From 6ab5bc91b353bf65373004366f51a478f5db7da0 Mon Sep 17 00:00:00 2001 From: Arthur Ma Date: Mon, 20 Feb 2023 15:00:03 +0800 Subject: [PATCH 01/72] Polish the Azure.ResourceManager.RecoveryServicesBackup (#34052) --- .../CHANGELOG.md | 23 +- .../README.md | 2 +- ...r.RecoveryServicesBackup.netstandard2.0.cs | 3856 ++++++++--------- .../Sample_BackupEngineBaseResource.cs | 51 - ...mple_BackupEngineBaseResourceCollection.cs | 123 - .../Sample_BackupResourceConfigResource.cs | 203 - ..._BackupResourceConfigResourceCollection.cs | 129 - ...esourceEncryptionConfigExtendedResource.cs | 89 - ...ryptionConfigExtendedResourceCollection.cs | 126 - ...ample_BackupResourceVaultConfigResource.cs | 89 - ...upResourceVaultConfigResourceCollection.cs | 129 - .../Generated/Samples/Sample_JobResource.cs | 108 - .../Samples/Sample_JobResourceCollection.cs | 199 - ...ample_PrivateEndpointConnectionResource.cs | 156 - ...ateEndpointConnectionResourceCollection.cs | 137 - .../Samples/Sample_ProtectedItemResource.cs | 315 -- .../Sample_ProtectedItemResourceCollection.cs | 253 -- .../Sample_ProtectionContainerResource.cs | 218 - ...e_ProtectionContainerResourceCollection.cs | 137 - .../Sample_ProtectionIntentResource.cs | 159 - ...mple_ProtectionIntentResourceCollection.cs | 135 - .../Sample_ProtectionPolicyResource.cs | 1031 ----- ...mple_ProtectionPolicyResourceCollection.cs | 1178 ----- .../Samples/Sample_RecoveryPointResource.cs | 500 --- .../Sample_RecoveryPointResourceCollection.cs | 131 - .../Sample_ResourceGroupResourceExtensions.cs | 659 --- .../Sample_ResourceGuardProxyBaseResource.cs | 157 - ...esourceGuardProxyBaseResourceCollection.cs | 168 - .../Sample_SubscriptionResourceExtensions.cs | 83 - ...ourceManager.RecoveryServicesBackup.csproj | 2 +- ...ollection.cs => BackupEngineCollection.cs} | 74 +- .../src/Generated/BackupEngineData.cs | 53 + ...aseResource.cs => BackupEngineResource.cs} | 54 +- ...ceCollection.cs => BackupJobCollection.cs} | 84 +- ...neBaseResourceData.cs => BackupJobData.cs} | 26 +- .../{JobResource.cs => BackupJobResource.cs} | 132 +- ...kupPrivateEndpointConnectionCollection.cs} | 66 +- ...=> BackupPrivateEndpointConnectionData.cs} | 14 +- ...ackupPrivateEndpointConnectionResource.cs} | 205 +- ...on.cs => BackupProtectedItemCollection.cs} | 70 +- .../src/Generated/BackupProtectedItemData.cs | 53 + ...urce.cs => BackupProtectedItemResource.cs} | 256 +- ...=> BackupProtectionContainerCollection.cs} | 66 +- .../BackupProtectionContainerData.cs | 53 + ...s => BackupProtectionContainerResource.cs} | 154 +- ...cs => BackupProtectionIntentCollection.cs} | 66 +- .../Generated/BackupProtectionIntentData.cs | 53 + ...e.cs => BackupProtectionIntentResource.cs} | 126 +- ...cs => BackupProtectionPolicyCollection.cs} | 100 +- .../Generated/BackupProtectionPolicyData.cs | 53 + ...e.cs => BackupProtectionPolicyResource.cs} | 209 +- ...on.cs => BackupRecoveryPointCollection.cs} | 78 +- .../src/Generated/BackupRecoveryPointData.cs | 53 + ...urce.cs => BackupRecoveryPointResource.cs} | 114 +- ...n.cs => BackupResourceConfigCollection.cs} | 50 +- ...rceData.cs => BackupResourceConfigData.cs} | 14 +- .../Generated/BackupResourceConfigResource.cs | 236 +- ...urceEncryptionConfigExtendedCollection.cs} | 50 +- ...upResourceEncryptionConfigExtendedData.cs} | 14 +- ...esourceEncryptionConfigExtendedResource.cs | 76 +- ...=> BackupResourceVaultConfigCollection.cs} | 50 +- ...ta.cs => BackupResourceVaultConfigData.cs} | 14 +- .../BackupResourceVaultConfigResource.cs | 76 +- .../RecoveryServicesBackupExtensions.cs | 844 +--- .../ResourceGroupResourceExtensionClient.cs | 718 +-- .../SubscriptionResourceExtensionClient.cs | 48 +- .../src/Generated/JobResourceData.cs | 53 - ...rivateEndpointConnectionOperationSource.cs | 40 + ...dpointConnectionResourceOperationSource.cs | 40 - .../Generated/Models/AzureFileShareType.cs | 54 - ...ureRecoveryServiceVaultProtectionIntent.cs | 35 - ...PAseSystemProtectableItem.Serialization.cs | 199 - ...PHanaDatabaseWorkloadItem.Serialization.cs | 156 - ...ilityGroupProtectableItem.Serialization.cs | 199 - ...ureVmWorkloadSQLDatabaseProtectableItem.cs | 41 - ...ainerAutoProtectionIntent.Serialization.cs | 102 - ...ureWorkloadSQLRecoveryPointExtendedInfo.cs | 37 - ... => BackupCommonSettings.Serialization.cs} | 6 +- .../{Settings.cs => BackupCommonSettings.cs} | 10 +- ...tion.cs => BackupContent.Serialization.cs} | 10 +- .../{BackupRequest.cs => BackupContent.cs} | 14 +- .../src/Generated/Models/BackupCreateMode.cs | 54 + ...s => BackupDailySchedule.Serialization.cs} | 6 +- ...ailySchedule.cs => BackupDailySchedule.cs} | 12 +- .../Generated/Models/BackupDataSourceType.cs | 93 + ...lization.cs => BackupDay.Serialization.cs} | 6 +- .../Generated/Models/{Day.cs => BackupDay.cs} | 10 +- .../Models/BackupDayOfWeek.Serialization.cs | 38 + .../{DayOfWeek.cs => BackupDayOfWeek.cs} | 4 +- .../Models/BackupEncryptionAtRestType.cs | 54 + ...kupEngineBaseResourceList.Serialization.cs | 6 +- .../Models/BackupEngineBaseResourceList.cs | 6 +- ...n.cs => BackupEngineData.Serialization.cs} | 10 +- ....cs => BackupErrorDetail.Serialization.cs} | 6 +- .../{ErrorDetail.cs => BackupErrorDetail.cs} | 10 +- .../src/Generated/Models/BackupFabricName.cs | 51 + .../Generated/Models/BackupFileShareType.cs | 54 + ...s => BackupGenericEngine.Serialization.cs} | 6 +- ...upEngineBase.cs => BackupGenericEngine.cs} | 14 +- ...n.cs => BackupGenericJob.Serialization.cs} | 18 +- .../Models/{Job.cs => BackupGenericJob.cs} | 14 +- ...ckupGenericProtectedItem.Serialization.cs} | 32 +- ...dItem.cs => BackupGenericProtectedItem.cs} | 34 +- ...nericProtectionContainer.Serialization.cs} | 20 +- ...cs => BackupGenericProtectionContainer.cs} | 14 +- ...pGenericProtectionIntent.Serialization.cs} | 14 +- ...nt.cs => BackupGenericProtectionIntent.cs} | 24 +- ...pGenericProtectionPolicy.Serialization.cs} | 12 +- ...cy.cs => BackupGenericProtectionPolicy.cs} | 14 +- ...ckupGenericRecoveryPoint.Serialization.cs} | 18 +- .../Models/BackupGenericRecoveryPoint.cs | 32 + ...oalFeatureSupportContent.Serialization.cs} | 2 +- ....cs => BackupGoalFeatureSupportContent.cs} | 6 +- ... => BackupHourlySchedule.Serialization.cs} | 6 +- ...rlySchedule.cs => BackupHourlySchedule.cs} | 12 +- ...cs => BackupIdentityInfo.Serialization.cs} | 15 +- ...{IdentityInfo.cs => BackupIdentityInfo.cs} | 14 +- .../src/Generated/Models/BackupItemType.cs | 20 +- ...tion.cs => BackupJobData.Serialization.cs} | 10 +- ...s => BackupJobListResult.Serialization.cs} | 12 +- ...ResourceList.cs => BackupJobListResult.cs} | 14 +- .../BackupManagementUsage.Serialization.cs | 8 +- .../Generated/Models/BackupManagementUsage.cs | 6 +- .../Models/BackupMonthOfYear.Serialization.cs | 50 + .../{MonthOfYear.cs => BackupMonthOfYear.cs} | 4 +- ...ion.cs => BackupNameInfo.Serialization.cs} | 6 +- .../Models/{NameInfo.cs => BackupNameInfo.cs} | 10 +- ...teEndpointConnectionData.Serialization.cs} | 10 +- ...ointConnectionProperties.Serialization.cs} | 10 +- ...kupPrivateEndpointConnectionProperties.cs} | 12 +- ...vateEndpointConnectionProvisioningState.cs | 57 + ... BackupProtectedItemData.Serialization.cs} | 10 +- ...upProtectionContainerData.Serialization.cs | 129 + ...ckupProtectionIntentData.Serialization.cs} | 10 +- ...ackupProtectionPolicyData.Serialization.cs | 129 + .../Generated/Models/BackupProtectionState.cs | 66 + .../Models/BackupProtectionStatus.cs | 60 + ... BackupRecoveryPointData.Serialization.cs} | 10 +- ...BackupResourceConfigData.Serialization.cs} | 10 +- ...ResourceConfigProperties.Serialization.cs} | 30 +- ...g.cs => BackupResourceConfigProperties.cs} | 26 +- ...pResourceEncryptionConfig.Serialization.cs | 4 +- .../Models/BackupResourceEncryptionConfig.cs | 4 +- ...dedCreateOrUpdateContent.Serialization.cs} | 6 +- ...ionConfigExtendedCreateOrUpdateContent.cs} | 12 +- ...yptionConfigExtendedData.Serialization.cs} | 10 +- ...ConfigExtendedProperties.Serialization.cs} | 19 +- ...urceEncryptionConfigExtendedProperties.cs} | 15 +- ...upResourceVaultConfigData.Serialization.cs | 129 + ...rceVaultConfigProperties.Serialization.cs} | 18 +- ...=> BackupResourceVaultConfigProperties.cs} | 16 +- ...=> BackupRetentionPolicy.Serialization.cs} | 4 +- ...tionPolicy.cs => BackupRetentionPolicy.cs} | 12 +- ... => BackupSchedulePolicy.Serialization.cs} | 4 +- ...edulePolicy.cs => BackupSchedulePolicy.cs} | 12 +- ...=> BackupServerContainer.Serialization.cs} | 10 +- ...rContainer.cs => BackupServerContainer.cs} | 12 +- ...cs => BackupServerEngine.Serialization.cs} | 6 +- ...pServerEngine.cs => BackupServerEngine.cs} | 10 +- .../Generated/Models/BackupStatusContent.cs | 6 +- ...cs => BackupStatusResult.Serialization.cs} | 23 +- ...tatusResponse.cs => BackupStatusResult.cs} | 18 +- .../src/Generated/Models/BackupStorageType.cs | 60 + .../Models/BackupStorageTypeState.cs | 54 + ...s => BackupTieringPolicy.Serialization.cs} | 6 +- ...ieringPolicy.cs => BackupTieringPolicy.cs} | 10 +- .../src/Generated/Models/BackupUsagesUnit.cs | 63 + .../Models/BackupValidationStatus.cs | 54 + .../Models/BackupWeekOfMonth.Serialization.cs | 36 + .../{WeekOfMonth.cs => BackupWeekOfMonth.cs} | 4 +- ... => BackupWeeklySchedule.Serialization.cs} | 12 +- ...klySchedule.cs => BackupWeeklySchedule.cs} | 16 +- .../Generated/Models/BackupWorkloadType.cs | 93 + ...ization.cs => BekDetails.Serialization.cs} | 15 +- .../Models/{BEKDetails.cs => BekDetails.cs} | 13 +- .../ClientScriptForConnect.Serialization.cs | 59 - .../Models/ClientScriptForConnect.cs | 52 - .../ContainerIdentityInfo.Serialization.cs | 14 +- .../Generated/Models/ContainerIdentityInfo.cs | 6 +- .../src/Generated/Models/CopyOption.cs | 60 - .../src/Generated/Models/CreateMode.cs | 54 - .../DailyRetentionFormat.Serialization.cs | 6 +- .../Generated/Models/DailyRetentionFormat.cs | 6 +- .../src/Generated/Models/DataSourceType.cs | 93 - .../Models/DayOfWeek.Serialization.cs | 38 - .../src/Generated/Models/DedupState.cs | 54 - .../DistributedNodesInfo.Serialization.cs | 4 +- .../Generated/Models/DistributedNodesInfo.cs | 4 +- .../src/Generated/Models/DpmBackupEngine.cs | 2 +- ...ation.cs => DpmBackupJob.Serialization.cs} | 10 +- .../Models/{DpmJob.cs => DpmBackupJob.cs} | 12 +- ...DpmBackupJobExtendedInfo.Serialization.cs} | 12 +- ...dedInfo.cs => DpmBackupJobExtendedInfo.cs} | 14 +- ... DpmBackupJobTaskDetails.Serialization.cs} | 6 +- ...kDetails.cs => DpmBackupJobTaskDetails.cs} | 10 +- .../Models/DpmContainer.Serialization.cs | 6 +- .../src/Generated/Models/DpmContainer.cs | 12 +- .../Models/DpmProtectedItem.Serialization.cs | 34 +- .../src/Generated/Models/DpmProtectedItem.cs | 9 +- ...ProtectedItemExtendedInfo.Serialization.cs | 16 +- .../Models/DpmProtectedItemExtendedInfo.cs | 26 +- .../Generated/Models/EncryptionAtRestType.cs | 54 - ...rtJobsOperationResultInfo.Serialization.cs | 64 - .../Models/ExportJobsOperationResultInfo.cs | 45 - .../src/Generated/Models/FabricName.cs | 51 - .../Generated/Models/FeatureSupportContent.cs | 2 +- ...> FileShareBackupContent.Serialization.cs} | 10 +- ...upRequest.cs => FileShareBackupContent.cs} | 16 +- .../Generated/Models/FileShareCopyOption.cs | 60 + ...FileShareProtectableItem.Serialization.cs} | 14 +- ...bleItem.cs => FileShareProtectableItem.cs} | 12 +- ...ileShareProtectionPolicy.Serialization.cs} | 18 +- ...Policy.cs => FileShareProtectionPolicy.cs} | 24 +- ...ShareProvisionIlrContent.Serialization.cs} | 15 +- ...est.cs => FileShareProvisionIlrContent.cs} | 14 +- ...> FileShareRecoveryPoint.Serialization.cs} | 6 +- ...veryPoint.cs => FileShareRecoveryPoint.cs} | 10 +- .../Generated/Models/FileShareRecoveryType.cs | 60 + ... FileShareRestoreContent.Serialization.cs} | 31 +- ...eRequest.cs => FileShareRestoreContent.cs} | 20 +- .../Generated/Models/FileShareRestoreType.cs | 54 + ...> FileshareProtectedItem.Serialization.cs} | 54 +- ...ectedItem.cs => FileshareProtectedItem.cs} | 22 +- ...rotectedItemExtendedInfo.Serialization.cs} | 10 +- ... => FileshareProtectedItemExtendedInfo.cs} | 16 +- .../src/Generated/Models/GenericContainer.cs | 2 +- .../GenericProtectedItem.Serialization.cs | 38 +- .../Generated/Models/GenericProtectedItem.cs | 10 +- .../Models/GenericProtectionPolicy.cs | 2 +- .../Generated/Models/GenericRecoveryPoint.cs | 2 +- .../src/Generated/Models/HealthStatus.cs | 57 - .../Models/HttpStatusCode.Serialization.cs | 118 - .../src/Generated/Models/HttpStatusCode.cs | 108 - ...lassicComputeVmContainer.Serialization.cs} | 15 +- ...er.cs => IaasClassicComputeVmContainer.cs} | 16 +- ...ComputeVmProtectableItem.Serialization.cs} | 19 +- ...=> IaasClassicComputeVmProtectableItem.cs} | 12 +- ...icComputeVmProtectedItem.Serialization.cs} | 77 +- ...s => IaasClassicComputeVmProtectedItem.cs} | 15 +- ...> IaasComputeVmContainer.Serialization.cs} | 15 +- ...Container.cs => IaasComputeVmContainer.cs} | 16 +- ...ComputeVmProtectableItem.Serialization.cs} | 19 +- ...tem.cs => IaasComputeVmProtectableItem.cs} | 12 +- ...asComputeVmProtectedItem.Serialization.cs} | 77 +- ...dItem.cs => IaasComputeVmProtectedItem.cs} | 15 +- ...s => IaasVmBackupContent.Serialization.cs} | 10 +- ...ackupRequest.cs => IaasVmBackupContent.cs} | 16 +- ...BackupExtendedProperties.Serialization.cs} | 6 +- ...s.cs => IaasVmBackupExtendedProperties.cs} | 10 +- ...on.cs => IaasVmBackupJob.Serialization.cs} | 16 +- .../{AzureIaasVmJob.cs => IaasVmBackupJob.cs} | 16 +- ...sVmBackupJobExtendedInfo.Serialization.cs} | 12 +- ...Info.cs => IaasVmBackupJobExtendedInfo.cs} | 14 +- ...asVmBackupJobTaskDetails.Serialization.cs} | 6 +- ...tails.cs => IaasVmBackupJobTaskDetails.cs} | 10 +- ....cs => IaasVmBackupJobV2.Serialization.cs} | 16 +- ...ureIaasVmJobV2.cs => IaasVmBackupJobV2.cs} | 16 +- .../Models/IaasVmContainer.Serialization.cs | 13 +- .../src/Generated/Models/IaasVmContainer.cs | 10 +- ...on.cs => IaasVmErrorInfo.Serialization.cs} | 6 +- ...eIaasVmErrorInfo.cs => IaasVmErrorInfo.cs} | 10 +- ...s => IaasVmHealthDetails.Serialization.cs} | 6 +- ...ealthDetails.cs => IaasVmHealthDetails.cs} | 10 +- ...VmIlrRegistrationContent.Serialization.cs} | 15 +- ...est.cs => IaasVmIlrRegistrationContent.cs} | 14 +- .../IaasVmProtectableItem.Serialization.cs | 17 +- .../Generated/Models/IaasVmProtectableItem.cs | 8 +- ...s => IaasVmProtectedItem.Serialization.cs} | 81 +- ...rotectedItem.cs => IaasVmProtectedItem.cs} | 36 +- ...rotectedItemExtendedInfo.Serialization.cs} | 14 +- ....cs => IaasVmProtectedItemExtendedInfo.cs} | 22 +- .../Models/IaasVmProtectedItemHealthStatus.cs | 57 + ...> IaasVmProtectionPolicy.Serialization.cs} | 24 +- ...ionPolicy.cs => IaasVmProtectionPolicy.cs} | 32 +- .../Generated/Models/IaasVmRecoveryPoint.cs | 2 +- ... => IaasVmRestoreContent.Serialization.cs} | 102 +- ...toreRequest.cs => IaasVmRestoreContent.cs} | 48 +- ...reWithRehydrationContent.Serialization.cs} | 100 +- ...=> IaasVmRestoreWithRehydrationContent.cs} | 15 +- ...entityBasedRestoreDetails.Serialization.cs | 9 +- .../Models/IdentityBasedRestoreDetails.cs | 6 +- ...ization.cs => IlrContent.Serialization.cs} | 10 +- .../Models/{ILRRequest.cs => IlrContent.cs} | 14 +- .../Models/InquiryValidation.Serialization.cs | 4 +- .../src/Generated/Models/InquiryValidation.cs | 4 +- ...InstantItemRecoveryTarget.Serialization.cs | 40 - .../Models/InstantItemRecoveryTarget.cs | 32 - ...ization.cs => KekDetails.Serialization.cs} | 15 +- .../Models/{KEKDetails.cs => KekDetails.cs} | 13 +- .../KeyAndSecretDetails.Serialization.cs | 8 +- .../Generated/Models/KeyAndSecretDetails.cs | 6 +- ...KpiResourceHealthDetails.Serialization.cs} | 6 +- ...Details.cs => KpiResourceHealthDetails.cs} | 10 +- .../src/Generated/Models/LogSchedulePolicy.cs | 2 +- .../Models/LongTermRetentionPolicy.cs | 2 +- .../Models/LongTermSchedulePolicy.cs | 2 +- ...ation.cs => MabBackupJob.Serialization.cs} | 14 +- .../Models/{MabJob.cs => MabBackupJob.cs} | 14 +- ...MabBackupJobExtendedInfo.Serialization.cs} | 12 +- ...dedInfo.cs => MabBackupJobExtendedInfo.cs} | 14 +- ... MabBackupJobTaskDetails.Serialization.cs} | 6 +- ...kDetails.cs => MabBackupJobTaskDetails.cs} | 10 +- .../src/Generated/Models/MabContainer.cs | 2 +- ...abFileFolderProtectedItem.Serialization.cs | 34 +- .../Models/MabFileFolderProtectedItem.cs | 9 +- ...ProtectedItemExtendedInfo.Serialization.cs | 4 +- .../MabFileFolderProtectedItemExtendedInfo.cs | 8 +- .../MabProtectionPolicy.Serialization.cs | 8 +- .../Generated/Models/MabProtectionPolicy.cs | 16 +- .../src/Generated/Models/MabServerType.cs | 4 +- .../Models/MonthOfYear.Serialization.cs | 50 - .../Models/MonthlyRetentionSchedule.cs | 2 +- .../OperationResultInfo.Serialization.cs | 46 - .../Generated/Models/OperationResultInfo.cs | 35 - .../OperationResultInfoBase.Serialization.cs | 27 - .../Models/OperationResultInfoBase.cs | 32 - ...ionResultInfoBaseResource.Serialization.cs | 67 - .../Models/OperationResultInfoBaseResource.cs | 40 - .../Models/OperationStatus.Serialization.cs | 91 - .../src/Generated/Models/OperationStatus.cs | 62 - .../OperationStatusError.Serialization.cs | 35 - .../Generated/Models/OperationStatusError.cs | 32 - ...erationStatusExtendedInfo.Serialization.cs | 29 - .../Models/OperationStatusExtendedInfo.cs | 32 - ...tionStatusJobExtendedInfo.Serialization.cs | 35 - .../Models/OperationStatusJobExtendedInfo.cs | 31 - ...ionStatusJobsExtendedInfo.Serialization.cs | 62 - .../Models/OperationStatusJobsExtendedInfo.cs | 40 - ...sProvisionILRExtendedInfo.Serialization.cs | 40 - ...OperationStatusProvisionILRExtendedInfo.cs | 38 - ...dateOperationExtendedInfo.Serialization.cs | 40 - ...tionStatusValidateOperationExtendedInfo.cs | 38 - .../Generated/Models/OperationStatusValue.cs | 60 - .../src/Generated/Models/OperationType.cs | 54 - .../OperationWorkerResponse.Serialization.cs | 56 - .../Models/OperationWorkerResponse.cs | 36 - .../src/Generated/Models/OverwriteOption.cs | 54 - .../src/Generated/Models/PolicyType.cs | 69 - .../Models/PreValidateEnableBackupContent.cs | 8 +- ...lidateEnableBackupResult.Serialization.cs} | 10 +- ...se.cs => PreValidateEnableBackupResult.cs} | 12 +- .../Models/PrepareDataMoveContent.cs | 13 +- .../PrepareDataMoveResponse.Serialization.cs | 52 - .../Models/PrepareDataMoveResponse.cs | 39 - ...intConnectionResourceData.Serialization.cs | 129 - .../ProtectableContainer.Serialization.cs | 4 +- .../Generated/Models/ProtectableContainer.cs | 2 +- .../Models/ProtectableContainerResource.cs | 4 +- .../ProtectableContainerType.Serialization.cs | 4 +- .../Models/ProtectableContainerType.cs | 2 +- .../Models/ProtectedItemHealthStatus.cs | 60 - ...ProtectedItemResourceList.Serialization.cs | 6 +- .../Models/ProtectedItemResourceList.cs | 6 +- ...tionContainerResourceList.Serialization.cs | 6 +- .../Models/ProtectionContainerResourceList.cs | 6 +- .../Models/ProtectionIntentItemType.cs | 4 +- ...tectionIntentResourceList.Serialization.cs | 6 +- .../Models/ProtectionIntentResourceList.cs | 6 +- ...tectionPolicyResourceData.Serialization.cs | 129 - ...tectionPolicyResourceList.Serialization.cs | 6 +- .../Models/ProtectionPolicyResourceList.cs | 6 +- .../src/Generated/Models/ProtectionState.cs | 66 - .../src/Generated/Models/ProtectionStatus.cs | 60 - ...sionIlrConnectionContent.Serialization.cs} | 10 +- ...ce.cs => ProvisionIlrConnectionContent.cs} | 20 +- .../src/Generated/Models/ProvisioningState.cs | 57 - .../src/Generated/Models/RecoveryPoint.cs | 32 - .../RecoveryPointProperties.Serialization.cs | 4 +- .../Models/RecoveryPointProperties.cs | 8 +- ...RecoveryPointResourceList.Serialization.cs | 6 +- .../Models/RecoveryPointResourceList.cs | 6 +- ...ecommendedForMoveContent.Serialization.cs} | 2 +- ...ecoveryPointsRecommendedForMoveContent.cs} | 6 +- ...iceVaultProtectionIntent.Serialization.cs} | 40 +- .../RecoveryServiceVaultProtectionIntent.cs | 37 + .../src/Generated/Models/RecoveryType.cs | 60 - ...ourceGuardOperationDetail.Serialization.cs | 13 +- .../Models/ResourceGuardOperationDetail.cs | 12 +- ...uardProxyBaseResourceData.Serialization.cs | 129 - ...uardProxyBaseResourceList.Serialization.cs | 6 +- .../ResourceGuardProxyBaseResourceList.cs | 6 +- ...> ResourceGuardProxyData.Serialization.cs} | 10 +- ...urceGuardProxyProperties.Serialization.cs} | 29 +- ...ase.cs => ResourceGuardProxyProperties.cs} | 23 +- ...ResourceProtectionIntent.Serialization.cs} | 37 +- ...nIntent.cs => ResourceProtectionIntent.cs} | 12 +- .../Models/RestoreContent.Serialization.cs | 47 + .../src/Generated/Models/RestoreContent.cs | 32 + .../Models/RestoreOverwriteOption.cs | 54 + .../Models/RestoreRequest.Serialization.cs | 47 - .../src/Generated/Models/RestoreRequest.cs | 32 - .../Models/RestoreRequestResource.cs | 52 - .../Generated/Models/RestoreRequestType.cs | 54 - ...cs => SecurityPinContent.Serialization.cs} | 2 +- ...curityPinBase.cs => SecurityPinContent.cs} | 6 +- .../Generated/Models/SimpleRetentionPolicy.cs | 2 +- .../SimpleSchedulePolicy.Serialization.cs | 10 +- .../Generated/Models/SimpleSchedulePolicy.cs | 10 +- .../SimpleSchedulePolicyV2.Serialization.cs | 12 +- .../Models/SimpleSchedulePolicyV2.cs | 12 +- ...kloadProtectionContainer.Serialization.cs} | 27 +- ...bilityGroupWorkloadProtectionContainer.cs} | 13 +- ...ation.cs => SqlContainer.Serialization.cs} | 6 +- .../{AzureSqlContainer.cs => SqlContainer.cs} | 10 +- ...n.cs => SqlDataDirectory.Serialization.cs} | 10 +- ...QLDataDirectory.cs => SqlDataDirectory.cs} | 12 +- ... SqlDataDirectoryMapping.Serialization.cs} | 10 +- ...yMapping.cs => SqlDataDirectoryMapping.cs} | 12 +- ...rectoryType.cs => SqlDataDirectoryType.cs} | 28 +- ...n.cs => SqlProtectedItem.Serialization.cs} | 44 +- ...qlProtectedItem.cs => SqlProtectedItem.cs} | 17 +- ...rotectedItemExtendedInfo.Serialization.cs} | 10 +- ...nfo.cs => SqlProtectedItemExtendedInfo.cs} | 16 +- ...s => SqlProtectionPolicy.Serialization.cs} | 10 +- ...ectionPolicy.cs => SqlProtectionPolicy.cs} | 16 +- ...n.cs => StorageBackupJob.Serialization.cs} | 16 +- ...AzureStorageJob.cs => StorageBackupJob.cs} | 16 +- ...ageBackupJobExtendedInfo.Serialization.cs} | 12 +- ...nfo.cs => StorageBackupJobExtendedInfo.cs} | 14 +- ...rageBackupJobTaskDetails.Serialization.cs} | 6 +- ...ails.cs => StorageBackupJobTaskDetails.cs} | 10 +- ...n.cs => StorageContainer.Serialization.cs} | 15 +- ...torageContainer.cs => StorageContainer.cs} | 14 +- ...n.cs => StorageErrorInfo.Serialization.cs} | 6 +- ...torageErrorInfo.cs => StorageErrorInfo.cs} | 10 +- ...rageProtectableContainer.Serialization.cs} | 6 +- ...iner.cs => StorageProtectableContainer.cs} | 10 +- .../src/Generated/Models/StorageType.cs | 60 - .../src/Generated/Models/StorageTypeState.cs | 54 - .../SubProtectionPolicy.Serialization.cs | 18 +- .../Generated/Models/SubProtectionPolicy.cs | 20 +- .../Models/SubProtectionPolicyType.cs | 69 + .../src/Generated/Models/SupportStatus.cs | 60 - ... => TargetAfsRestoreInfo.Serialization.cs} | 15 +- ...RestoreInfo.cs => TargetAfsRestoreInfo.cs} | 14 +- .../Models/TargetRestoreInfo.Serialization.cs | 4 +- .../src/Generated/Models/TargetRestoreInfo.cs | 4 +- .../Models/TokenInformation.Serialization.cs | 6 +- .../src/Generated/Models/TokenInformation.cs | 8 +- ... => TriggerBackupContent.Serialization.cs} | 10 +- ...estResource.cs => TriggerBackupContent.cs} | 20 +- .../TriggerDataMoveContent.Serialization.cs | 4 +- .../Models/TriggerDataMoveContent.cs | 15 +- ...=> TriggerRestoreContent.Serialization.cs} | 10 +- .../Generated/Models/TriggerRestoreContent.cs | 52 + .../Models/UnknownBackupEngineBase.cs | 2 +- .../Generated/Models/UnknownBackupRequest.cs | 2 +- ....cs => UnknownIlrRequest.Serialization.cs} | 6 +- ...nownILRRequest.cs => UnknownIlrRequest.cs} | 8 +- .../src/Generated/Models/UnknownJob.cs | 2 +- ...wnOperationResultInfoBase.Serialization.cs | 29 - .../Models/UnknownOperationResultInfoBase.cs | 20 - ...erationStatusExtendedInfo.Serialization.cs | 29 - .../UnknownOperationStatusExtendedInfo.cs | 20 - .../UnknownProtectedItem.Serialization.cs | 34 +- .../Generated/Models/UnknownProtectedItem.cs | 9 +- .../Models/UnknownProtectionContainer.cs | 2 +- .../UnknownProtectionIntent.Serialization.cs | 31 +- .../Models/UnknownProtectionIntent.cs | 6 +- .../Models/UnknownProtectionPolicy.cs | 2 +- .../Generated/Models/UnknownRecoveryPoint.cs | 2 +- .../Generated/Models/UnknownRestoreRequest.cs | 2 +- .../Models/UnknownRetentionPolicy.cs | 2 +- .../Generated/Models/UnknownSchedulePolicy.cs | 2 +- ...igOperationResultResponse.Serialization.cs | 29 - ...ultStorageConfigOperationResultResponse.cs | 20 - .../UnknownWorkloadItem.Serialization.cs | 4 +- .../Generated/Models/UnknownWorkloadItem.cs | 2 +- ...wnWorkloadProtectableItem.Serialization.cs | 4 +- .../Models/UnknownWorkloadProtectableItem.cs | 2 +- .../UnlockDeleteResponse.Serialization.cs | 29 - ...cs => UnlockDeleteResult.Serialization.cs} | 13 +- ...eleteResponse.cs => UnlockDeleteResult.cs} | 18 +- .../src/Generated/Models/UsagesUnit.cs | 63 - ...VmRestoreOperationRequest.Serialization.cs | 28 - .../ValidateIaasVmRestoreOperationRequest.cs | 19 - .../ValidateOperationRequest.Serialization.cs | 23 - .../Models/ValidateOperationRequest.cs | 25 - ...ValidateOperationResponse.Serialization.cs | 40 - .../Models/ValidateOperationResponse.cs | 32 - .../Models/ValidateOperationsResponse.cs | 35 - ...teRestoreOperationRequest.Serialization.cs | 28 - .../Models/ValidateRestoreOperationRequest.cs | 30 - .../src/Generated/Models/ValidationStatus.cs | 54 - ...ion.cs => VaultBackupJob.Serialization.cs} | 16 +- .../Models/{VaultJob.cs => VaultBackupJob.cs} | 18 +- ... VaultBackupJobErrorInfo.Serialization.cs} | 6 +- ...rrorInfo.cs => VaultBackupJobErrorInfo.cs} | 10 +- ...ultBackupJobExtendedInfo.Serialization.cs} | 6 +- ...dInfo.cs => VaultBackupJobExtendedInfo.cs} | 10 +- .../src/Generated/Models/VaultDedupState.cs | 54 + ...igOperationResultResponse.Serialization.cs | 26 - ...ultStorageConfigOperationResultResponse.cs | 32 - .../src/Generated/Models/VaultXcoolState.cs | 54 + ...inerProtectableContainer.Serialization.cs} | 6 +- ... => VmAppContainerProtectableContainer.cs} | 10 +- ...ainerProtectionContainer.Serialization.cs} | 27 +- ...s => VmAppContainerProtectionContainer.cs} | 11 +- ...s => VmEncryptionDetails.Serialization.cs} | 28 +- ...ptionDetails.cs => VmEncryptionDetails.cs} | 21 +- ...rceFeatureSupportContent.Serialization.cs} | 2 +- ....cs => VmResourceFeatureSupportContent.cs} | 6 +- ...urceFeatureSupportResult.Serialization.cs} | 10 +- ...e.cs => VmResourceFeatureSupportResult.cs} | 12 +- .../Models/VmResourceFeatureSupportStatus.cs | 60 + ...ion.cs => VmWorkloadItem.Serialization.cs} | 26 +- ...ureVmWorkloadItem.cs => VmWorkloadItem.cs} | 20 +- ...mWorkloadProtectableItem.Serialization.cs} | 38 +- ...leItem.cs => VmWorkloadProtectableItem.cs} | 32 +- ... VmWorkloadProtectedItem.Serialization.cs} | 70 +- ...ctedItem.cs => VmWorkloadProtectedItem.cs} | 30 +- ...rotectedItemExtendedInfo.Serialization.cs} | 10 +- ...=> VmWorkloadProtectedItemExtendedInfo.cs} | 16 +- .../VmWorkloadProtectedItemHealthStatus.cs | 60 + ...WorkloadProtectionPolicy.Serialization.cs} | 18 +- ...olicy.cs => VmWorkloadProtectionPolicy.cs} | 20 +- ...AseDatabaseProtectedItem.Serialization.cs} | 62 +- ... VmWorkloadSapAseDatabaseProtectedItem.cs} | 15 +- ...pAseDatabaseWorkloadItem.Serialization.cs} | 14 +- ...> VmWorkloadSapAseDatabaseWorkloadItem.cs} | 12 +- ...AseSystemProtectableItem.Serialization.cs} | 22 +- ... VmWorkloadSapAseSystemProtectableItem.cs} | 22 +- ...SapAseSystemWorkloadItem.Serialization.cs} | 14 +- ... => VmWorkloadSapAseSystemWorkloadItem.cs} | 12 +- ...orkloadSapHanaDBInstance.Serialization.cs} | 22 +- ...ance.cs => VmWorkloadSapHanaDBInstance.cs} | 16 +- ...aDBInstanceProtectedItem.Serialization.cs} | 62 +- ...WorkloadSapHanaDBInstanceProtectedItem.cs} | 15 +- ...aDatabaseProtectableItem.Serialization.cs} | 22 +- ...WorkloadSapHanaDatabaseProtectableItem.cs} | 16 +- ...anaDatabaseProtectedItem.Serialization.cs} | 62 +- ...VmWorkloadSapHanaDatabaseProtectedItem.cs} | 15 +- ...HanaDatabaseWorkloadItem.Serialization.cs} | 14 +- ... VmWorkloadSapHanaDatabaseWorkloadItem.cs} | 12 +- ... => VmWorkloadSapHanaHsr.Serialization.cs} | 22 +- ...dSAPHanaHSR.cs => VmWorkloadSapHanaHsr.cs} | 16 +- ...anaSystemProtectableItem.Serialization.cs} | 22 +- .../VmWorkloadSapHanaSystemProtectableItem.cs | 41 + ...apHanaSystemWorkloadItem.Serialization.cs} | 14 +- ...=> VmWorkloadSapHanaSystemWorkloadItem.cs} | 12 +- ...lityGroupProtectableItem.Serialization.cs} | 22 +- ...oadSqlAvailabilityGroupProtectableItem.cs} | 16 +- ...qlDatabaseProtectableItem.Serialization.cs | 199 + ...> VmWorkloadSqlDatabaseProtectableItem.cs} | 22 +- ...SqlDatabaseProtectedItem.Serialization.cs} | 62 +- ... => VmWorkloadSqlDatabaseProtectedItem.cs} | 15 +- ...adSqlDatabaseWorkloadItem.Serialization.cs | 156 + ...s => VmWorkloadSqlDatabaseWorkloadItem.cs} | 12 +- ...qlInstanceProtectableItem.Serialization.cs | 199 + ...> VmWorkloadSqlInstanceProtectableItem.cs} | 16 +- ...dSqlInstanceWorkloadItem.Serialization.cs} | 20 +- ...s => VmWorkloadSqlInstanceWorkloadItem.cs} | 16 +- .../Models/WeekOfMonth.Serialization.cs | 36 - .../WeeklyRetentionFormat.Serialization.cs | 12 +- .../Generated/Models/WeeklyRetentionFormat.cs | 10 +- .../WeeklyRetentionSchedule.Serialization.cs | 6 +- .../Models/WeeklyRetentionSchedule.cs | 6 +- ...loadAutoProtectionIntent.Serialization.cs} | 40 +- ...ent.cs => WorkloadAutoProtectionIntent.cs} | 16 +- ...=> WorkloadBackupContent.Serialization.cs} | 10 +- ...kupRequest.cs => WorkloadBackupContent.cs} | 16 +- ....cs => WorkloadBackupJob.Serialization.cs} | 16 +- ...ureWorkloadJob.cs => WorkloadBackupJob.cs} | 16 +- ...oadBackupJobExtendedInfo.Serialization.cs} | 12 +- ...fo.cs => WorkloadBackupJobExtendedInfo.cs} | 14 +- ...loadBackupJobTaskDetails.Serialization.cs} | 6 +- ...ils.cs => WorkloadBackupJobTaskDetails.cs} | 10 +- ....cs => WorkloadContainer.Serialization.cs} | 31 +- ...kloadContainer.cs => WorkloadContainer.cs} | 23 +- ...inerAutoProtectionIntent.Serialization.cs} | 53 +- ... WorkloadContainerAutoProtectionIntent.cs} | 12 +- ...oadContainerExtendedInfo.Serialization.cs} | 10 +- ...fo.cs => WorkloadContainerExtendedInfo.cs} | 12 +- ...loadContainerInquiryInfo.Serialization.cs} | 10 +- ...nfo.cs => WorkloadContainerInquiryInfo.cs} | 12 +- ....cs => WorkloadErrorInfo.Serialization.cs} | 6 +- ...kloadErrorInfo.cs => WorkloadErrorInfo.cs} | 10 +- .../Models/WorkloadItem.Serialization.cs | 14 +- .../src/Generated/Models/WorkloadItem.cs | 6 +- .../Generated/Models/WorkloadItemResource.cs | 4 +- .../src/Generated/Models/WorkloadItemType.cs | 28 +- .../Generated/Models/WorkloadOperationType.cs | 54 + ...PointInTimeRecoveryPoint.Serialization.cs} | 12 +- ...cs => WorkloadPointInTimeRecoveryPoint.cs} | 16 +- ...ointInTimeRestoreContent.Serialization.cs} | 28 +- ...s => WorkloadPointInTimeRestoreContent.cs} | 11 +- .../WorkloadProtectableItem.Serialization.cs | 24 +- .../Models/WorkloadProtectableItem.cs | 6 +- .../Models/WorkloadProtectableItemResource.cs | 4 +- ...=> WorkloadRecoveryPoint.Serialization.cs} | 20 +- ...overyPoint.cs => WorkloadRecoveryPoint.cs} | 20 +- ...> WorkloadRestoreContent.Serialization.cs} | 46 +- ...reRequest.cs => WorkloadRestoreContent.cs} | 20 +- ...PointInTimeRecoveryPoint.Serialization.cs} | 10 +- ...orkloadSapHanaPointInTimeRecoveryPoint.cs} | 12 +- ...ointInTimeRestoreContent.Serialization.cs} | 30 +- ...rkloadSapHanaPointInTimeRestoreContent.cs} | 15 +- ...toreWithRehydrateContent.Serialization.cs} | 28 +- ...PointInTimeRestoreWithRehydrateContent.cs} | 11 +- ...loadSapHanaRecoveryPoint.Serialization.cs} | 10 +- ...int.cs => WorkloadSapHanaRecoveryPoint.cs} | 12 +- ...oadSapHanaRestoreContent.Serialization.cs} | 34 +- ...st.cs => WorkloadSapHanaRestoreContent.cs} | 15 +- ...toreWithRehydrateContent.Serialization.cs} | 28 +- ...loadSapHanaRestoreWithRehydrateContent.cs} | 11 +- ...adSqlAutoProtectionIntent.Serialization.cs | 133 + ....cs => WorkloadSqlAutoProtectionIntent.cs} | 14 +- ...PointInTimeRecoveryPoint.Serialization.cs} | 14 +- ...=> WorkloadSqlPointInTimeRecoveryPoint.cs} | 12 +- ...ointInTimeRestoreContent.Serialization.cs} | 36 +- ...> WorkloadSqlPointInTimeRestoreContent.cs} | 15 +- ...toreWithRehydrateContent.Serialization.cs} | 34 +- ...PointInTimeRestoreWithRehydrateContent.cs} | 11 +- ...WorkloadSqlRecoveryPoint.Serialization.cs} | 16 +- ...ryPoint.cs => WorkloadSqlRecoveryPoint.cs} | 18 +- ...ecoveryPointExtendedInfo.Serialization.cs} | 16 +- .../WorkloadSqlRecoveryPointExtendedInfo.cs | 37 + ...orkloadSqlRestoreContent.Serialization.cs} | 40 +- ...equest.cs => WorkloadSqlRestoreContent.cs} | 18 +- ...toreWithRehydrateContent.Serialization.cs} | 34 +- ...WorkloadSqlRestoreWithRehydrateContent.cs} | 11 +- .../src/Generated/Models/WorkloadType.cs | 93 - .../src/Generated/Models/XcoolState.cs | 54 - .../YearlyRetentionSchedule.Serialization.cs | 6 +- .../Models/YearlyRetentionSchedule.cs | 8 +- .../Generated/ProtectedItemResourceData.cs | 53 - .../ProtectionContainerResourceData.cs | 53 - .../Generated/ProtectionIntentResourceData.cs | 53 - .../Generated/ProtectionPolicyResourceData.cs | 53 - .../Generated/RecoveryPointResourceData.cs | 53 - ...ion.cs => ResourceGuardProxyCollection.cs} | 99 +- ...ourceData.cs => ResourceGuardProxyData.cs} | 14 +- ...ource.cs => ResourceGuardProxyResource.cs} | 138 +- ...reDataMoveOperationResultRestOperations.cs | 128 - .../BackupEnginesRestOperations.cs | 16 +- .../BackupJobsRestOperations.cs | 24 +- .../BackupOperationResultsRestOperations.cs | 126 - .../BackupOperationStatusesRestOperations.cs | 132 - ...ResourceEncryptionConfigsRestOperations.cs | 22 +- ...ourceStorageConfigsNonCRRRestOperations.cs | 48 +- ...ackupResourceVaultConfigsRestOperations.cs | 44 +- .../BackupStatusRestOperations.cs | 34 +- .../RestOperations/BackupsRestOperations.cs | 28 +- ...xportJobsOperationResultsRestOperations.cs | 132 - .../FeatureSupportRestOperations.cs | 34 +- ...mLevelRecoveryConnectionsRestOperations.cs | 28 +- .../JobDetailsRestOperations.cs | 16 +- .../JobOperationResultsRestOperations.cs | 122 - .../RestOperations/OperationRestOperations.cs | 127 - ...PrivateEndpointConnectionRestOperations.cs | 22 +- .../PrivateEndpointRestOperations.cs | 130 - ...ctedItemOperationStatusesRestOperations.cs | 150 - .../ProtectedItemsRestOperations.cs | 34 +- ...erRefreshOperationResultsRestOperations.cs | 120 - .../ProtectionContainersRestOperations.cs | 34 +- .../ProtectionIntentRestOperations.cs | 64 +- .../ProtectionPoliciesRestOperations.cs | 34 +- ...onPolicyOperationStatusesRestOperations.cs | 138 - ...yPointsRecommendedForMoveRestOperations.cs | 12 +- .../RecoveryPointsRestOperations.cs | 16 +- .../RecoveryServicesBackupRestOperations.cs | 85 - .../ResourceGuardProxiesRestOperations.cs | 195 - .../ResourceGuardProxyRestOperations.cs | 197 +- .../RestOperations/RestoresRestOperations.cs | 28 +- .../SecurityPINsRestOperations.cs | 22 +- .../ValidateOperationRestOperations.cs | 116 - .../ValidateOperationResultsRestOperations.cs | 128 - ...ValidateOperationStatusesRestOperations.cs | 132 - .../src/autorest.md | 317 +- .../CHANGELOG.md | 9 +- 670 files changed, 10733 insertions(+), 22054 deletions(-) delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupEngineBaseResource.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupEngineBaseResourceCollection.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceConfigResource.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceConfigResourceCollection.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceEncryptionConfigExtendedResource.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceEncryptionConfigExtendedResourceCollection.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceVaultConfigResource.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceVaultConfigResourceCollection.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_JobResource.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_JobResourceCollection.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_PrivateEndpointConnectionResource.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_PrivateEndpointConnectionResourceCollection.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ProtectedItemResource.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ProtectedItemResourceCollection.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ProtectionContainerResource.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ProtectionContainerResourceCollection.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ProtectionIntentResource.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ProtectionIntentResourceCollection.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ProtectionPolicyResource.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ProtectionPolicyResourceCollection.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_RecoveryPointResource.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_RecoveryPointResourceCollection.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ResourceGroupResourceExtensions.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ResourceGuardProxyBaseResource.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ResourceGuardProxyBaseResourceCollection.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/{BackupEngineBaseResourceCollection.cs => BackupEngineCollection.cs} (65%) create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupEngineData.cs rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/{BackupEngineBaseResource.cs => BackupEngineResource.cs} (66%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/{JobResourceCollection.cs => BackupJobCollection.cs} (64%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/{BackupEngineBaseResourceData.cs => BackupJobData.cs} (50%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/{JobResource.cs => BackupJobResource.cs} (56%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/{PrivateEndpointConnectionResourceCollection.cs => BackupPrivateEndpointConnectionCollection.cs} (70%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/{PrivateEndpointConnectionResourceData.cs => BackupPrivateEndpointConnectionData.cs} (56%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/{PrivateEndpointConnectionResource.cs => BackupPrivateEndpointConnectionResource.cs} (63%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/{ProtectedItemResourceCollection.cs => BackupProtectedItemCollection.cs} (70%) create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectedItemData.cs rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/{ProtectedItemResource.cs => BackupProtectedItemResource.cs} (67%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/{ProtectionContainerResourceCollection.cs => BackupProtectionContainerCollection.cs} (73%) create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionContainerData.cs rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/{ProtectionContainerResource.cs => BackupProtectionContainerResource.cs} (75%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/{ProtectionIntentResourceCollection.cs => BackupProtectionIntentCollection.cs} (74%) create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionIntentData.cs rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/{ProtectionIntentResource.cs => BackupProtectionIntentResource.cs} (73%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/{ProtectionPolicyResourceCollection.cs => BackupProtectionPolicyCollection.cs} (65%) create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionPolicyData.cs rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/{ProtectionPolicyResource.cs => BackupProtectionPolicyResource.cs} (64%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/{RecoveryPointResourceCollection.cs => BackupRecoveryPointCollection.cs} (62%) create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupRecoveryPointData.cs rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/{RecoveryPointResource.cs => BackupRecoveryPointResource.cs} (82%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/{BackupResourceConfigResourceCollection.cs => BackupResourceConfigCollection.cs} (77%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/{BackupResourceConfigResourceData.cs => BackupResourceConfigData.cs} (65%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/{BackupResourceEncryptionConfigExtendedResourceCollection.cs => BackupResourceEncryptionConfigExtendedCollection.cs} (80%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/{BackupResourceEncryptionConfigExtendedResourceData.cs => BackupResourceEncryptionConfigExtendedData.cs} (64%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/{BackupResourceVaultConfigResourceCollection.cs => BackupResourceVaultConfigCollection.cs} (78%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/{BackupResourceVaultConfigResourceData.cs => BackupResourceVaultConfigData.cs} (67%) delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/JobResourceData.cs create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/LongRunningOperation/BackupPrivateEndpointConnectionOperationSource.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/LongRunningOperation/PrivateEndpointConnectionResourceOperationSource.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileShareType.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureRecoveryServiceVaultProtectionIntent.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPAseSystemProtectableItem.Serialization.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaDatabaseWorkloadItem.Serialization.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSQLAvailabilityGroupProtectableItem.Serialization.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSQLDatabaseProtectableItem.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadContainerAutoProtectionIntent.Serialization.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLRecoveryPointExtendedInfo.cs rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{Settings.Serialization.cs => BackupCommonSettings.Serialization.cs} (88%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{Settings.cs => BackupCommonSettings.cs} (80%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{BackupRequest.Serialization.cs => BackupContent.Serialization.cs} (66%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{BackupRequest.cs => BackupContent.cs} (66%) create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupCreateMode.cs rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{DailySchedule.Serialization.cs => BackupDailySchedule.Serialization.cs} (87%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{DailySchedule.cs => BackupDailySchedule.cs} (64%) create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupDataSourceType.cs rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{Day.Serialization.cs => BackupDay.Serialization.cs} (88%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{Day.cs => BackupDay.cs} (72%) create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupDayOfWeek.Serialization.cs rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{DayOfWeek.cs => BackupDayOfWeek.cs} (88%) create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupEncryptionAtRestType.cs rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{RecoveryPointResourceData.Serialization.cs => BackupEngineData.Serialization.cs} (90%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{ErrorDetail.Serialization.cs => BackupErrorDetail.Serialization.cs} (86%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{ErrorDetail.cs => BackupErrorDetail.cs} (76%) create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupFabricName.cs create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupFileShareType.cs rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{BackupEngineBase.Serialization.cs => BackupGenericEngine.Serialization.cs} (92%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{BackupEngineBase.cs => BackupGenericEngine.cs} (79%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{Job.Serialization.cs => BackupGenericJob.Serialization.cs} (71%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{Job.cs => BackupGenericJob.cs} (70%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{ProtectedItem.Serialization.cs => BackupGenericProtectedItem.Serialization.cs} (76%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{ProtectedItem.cs => BackupGenericProtectedItem.cs} (68%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{ProtectionContainer.Serialization.cs => BackupGenericProtectionContainer.Serialization.cs} (67%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{ProtectionContainer.cs => BackupGenericProtectionContainer.cs} (69%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{ProtectionIntent.Serialization.cs => BackupGenericProtectionIntent.Serialization.cs} (73%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{ProtectionIntent.cs => BackupGenericProtectionIntent.cs} (57%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{ProtectionPolicy.Serialization.cs => BackupGenericProtectionPolicy.Serialization.cs} (72%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{ProtectionPolicy.cs => BackupGenericProtectionPolicy.cs} (61%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{RecoveryPoint.Serialization.cs => BackupGenericRecoveryPoint.Serialization.cs} (59%) create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericRecoveryPoint.cs rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureBackupGoalFeatureSupportRequest.Serialization.cs => BackupGoalFeatureSupportContent.Serialization.cs} (85%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureBackupGoalFeatureSupportRequest.cs => BackupGoalFeatureSupportContent.cs} (59%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{HourlySchedule.Serialization.cs => BackupHourlySchedule.Serialization.cs} (88%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{HourlySchedule.cs => BackupHourlySchedule.cs} (74%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{IdentityInfo.Serialization.cs => BackupIdentityInfo.Serialization.cs} (70%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{IdentityInfo.cs => BackupIdentityInfo.cs} (72%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{JobResourceData.Serialization.cs => BackupJobData.Serialization.cs} (90%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{JobResourceList.Serialization.cs => BackupJobListResult.Serialization.cs} (72%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{JobResourceList.cs => BackupJobListResult.cs} (63%) create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupMonthOfYear.Serialization.cs rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{MonthOfYear.cs => BackupMonthOfYear.cs} (91%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{NameInfo.Serialization.cs => BackupNameInfo.Serialization.cs} (80%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{NameInfo.cs => BackupNameInfo.cs} (70%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{BackupResourceVaultConfigResourceData.Serialization.cs => BackupPrivateEndpointConnectionData.Serialization.cs} (87%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{RecoveryServicesBackupPrivateEndpointConnection.Serialization.cs => BackupPrivateEndpointConnectionProperties.Serialization.cs} (82%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{RecoveryServicesBackupPrivateEndpointConnection.cs => BackupPrivateEndpointConnectionProperties.cs} (72%) create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupPrivateEndpointConnectionProvisioningState.cs rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{ProtectionIntentResourceData.Serialization.cs => BackupProtectedItemData.Serialization.cs} (89%) create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupProtectionContainerData.Serialization.cs rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{BackupResourceConfigResourceData.Serialization.cs => BackupProtectionIntentData.Serialization.cs} (89%) create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupProtectionPolicyData.Serialization.cs create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupProtectionState.cs create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupProtectionStatus.cs rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{ProtectedItemResourceData.Serialization.cs => BackupRecoveryPointData.Serialization.cs} (89%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{ProtectionContainerResourceData.Serialization.cs => BackupResourceConfigData.Serialization.cs} (89%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{BackupResourceConfig.Serialization.cs => BackupResourceConfigProperties.Serialization.cs} (73%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{BackupResourceConfig.cs => BackupResourceConfigProperties.cs} (61%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{BackupResourceEncryptionConfigExtendedResourceCreateOrUpdateContent.Serialization.cs => BackupResourceEncryptionConfigExtendedCreateOrUpdateContent.Serialization.cs} (89%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{BackupResourceEncryptionConfigExtendedResourceCreateOrUpdateContent.cs => BackupResourceEncryptionConfigExtendedCreateOrUpdateContent.cs} (62%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{BackupResourceEncryptionConfigExtendedResourceData.Serialization.cs => BackupResourceEncryptionConfigExtendedData.Serialization.cs} (88%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{BackupResourceEncryptionConfigExtended.Serialization.cs => BackupResourceEncryptionConfigExtendedProperties.Serialization.cs} (80%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{BackupResourceEncryptionConfigExtended.cs => BackupResourceEncryptionConfigExtendedProperties.cs} (59%) create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceVaultConfigData.Serialization.cs rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{BackupResourceVaultConfig.Serialization.cs => BackupResourceVaultConfigProperties.Serialization.cs} (84%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{BackupResourceVaultConfig.cs => BackupResourceVaultConfigProperties.cs} (77%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{RetentionPolicy.Serialization.cs => BackupRetentionPolicy.Serialization.cs} (86%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{RetentionPolicy.cs => BackupRetentionPolicy.cs} (60%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{SchedulePolicy.Serialization.cs => BackupSchedulePolicy.Serialization.cs} (88%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{SchedulePolicy.cs => BackupSchedulePolicy.cs} (62%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureBackupServerContainer.Serialization.cs => BackupServerContainer.Serialization.cs} (92%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureBackupServerContainer.cs => BackupServerContainer.cs} (66%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureBackupServerEngine.Serialization.cs => BackupServerEngine.Serialization.cs} (92%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureBackupServerEngine.cs => BackupServerEngine.cs} (64%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{BackupStatusResponse.Serialization.cs => BackupStatusResult.Serialization.cs} (71%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{BackupStatusResponse.cs => BackupStatusResult.cs} (82%) create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupStorageType.cs create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupStorageTypeState.cs rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{TieringPolicy.Serialization.cs => BackupTieringPolicy.Serialization.cs} (89%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{TieringPolicy.cs => BackupTieringPolicy.cs} (86%) create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupUsagesUnit.cs create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupValidationStatus.cs create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupWeekOfMonth.Serialization.cs rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{WeekOfMonth.cs => BackupWeekOfMonth.cs} (86%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{WeeklySchedule.Serialization.cs => BackupWeeklySchedule.Serialization.cs} (83%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{WeeklySchedule.cs => BackupWeeklySchedule.cs} (60%) create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupWorkloadType.cs rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{BEKDetails.Serialization.cs => BekDetails.Serialization.cs} (77%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{BEKDetails.cs => BekDetails.cs} (72%) delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ClientScriptForConnect.Serialization.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ClientScriptForConnect.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/CopyOption.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/CreateMode.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DataSourceType.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DayOfWeek.Serialization.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DedupState.cs rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{DpmJob.Serialization.cs => DpmBackupJob.Serialization.cs} (92%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{DpmJob.cs => DpmBackupJob.cs} (79%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{MabJobExtendedInfo.Serialization.cs => DpmBackupJobExtendedInfo.Serialization.cs} (83%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{DpmJobExtendedInfo.cs => DpmBackupJobExtendedInfo.cs} (67%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{DpmJobTaskDetails.Serialization.cs => DpmBackupJobTaskDetails.Serialization.cs} (90%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{DpmJobTaskDetails.cs => DpmBackupJobTaskDetails.cs} (76%) delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/EncryptionAtRestType.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ExportJobsOperationResultInfo.Serialization.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ExportJobsOperationResultInfo.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FabricName.cs rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureFileShareBackupRequest.Serialization.cs => FileShareBackupContent.Serialization.cs} (76%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureFileShareBackupRequest.cs => FileShareBackupContent.cs} (51%) create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareCopyOption.cs rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureFileShareProtectableItem.Serialization.cs => FileShareProtectableItem.Serialization.cs} (84%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureFileShareProtectableItem.cs => FileShareProtectableItem.cs} (70%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureFileShareProtectionPolicy.Serialization.cs => FileShareProtectionPolicy.Serialization.cs} (83%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureFileShareProtectionPolicy.cs => FileShareProtectionPolicy.cs} (59%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureFileShareProvisionILRRequest.Serialization.cs => FileShareProvisionIlrContent.Serialization.cs} (70%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureFileShareProvisionILRRequest.cs => FileShareProvisionIlrContent.cs} (67%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureFileShareRecoveryPoint.Serialization.cs => FileShareRecoveryPoint.Serialization.cs} (90%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureFileShareRecoveryPoint.cs => FileShareRecoveryPoint.cs} (80%) create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareRecoveryType.cs rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureFileShareRestoreRequest.Serialization.cs => FileShareRestoreContent.Serialization.cs} (76%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureFileShareRestoreRequest.cs => FileShareRestoreContent.cs} (69%) create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareRestoreType.cs rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureFileshareProtectedItem.Serialization.cs => FileshareProtectedItem.Serialization.cs} (83%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureFileshareProtectedItem.cs => FileshareProtectedItem.cs} (68%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureFileshareProtectedItemExtendedInfo.Serialization.cs => FileshareProtectedItemExtendedInfo.Serialization.cs} (83%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureFileshareProtectedItemExtendedInfo.cs => FileshareProtectedItemExtendedInfo.cs} (70%) delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/HealthStatus.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/HttpStatusCode.Serialization.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/HttpStatusCode.cs rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureIaaSComputeVmContainer.Serialization.cs => IaasClassicComputeVmContainer.Serialization.cs} (84%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureIaaSComputeVmContainer.cs => IaasClassicComputeVmContainer.cs} (64%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureIaaSComputeVmProtectableItem.Serialization.cs => IaasClassicComputeVmProtectableItem.Serialization.cs} (80%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureIaaSClassicComputeVmProtectableItem.cs => IaasClassicComputeVmProtectableItem.cs} (62%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureIaaSComputeVmProtectedItem.Serialization.cs => IaasClassicComputeVmProtectedItem.Serialization.cs} (79%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureIaaSClassicComputeVmProtectedItem.cs => IaasClassicComputeVmProtectedItem.cs} (61%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureIaaSClassicComputeVmContainer.Serialization.cs => IaasComputeVmContainer.Serialization.cs} (85%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureIaaSClassicComputeVmContainer.cs => IaasComputeVmContainer.cs} (73%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureIaaSClassicComputeVmProtectableItem.Serialization.cs => IaasComputeVmProtectableItem.Serialization.cs} (80%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureIaaSComputeVmProtectableItem.cs => IaasComputeVmProtectableItem.cs} (63%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureIaaSClassicComputeVmProtectedItem.Serialization.cs => IaasComputeVmProtectedItem.Serialization.cs} (80%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureIaaSComputeVmProtectedItem.cs => IaasComputeVmProtectedItem.cs} (61%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{IaasVmBackupRequest.Serialization.cs => IaasVmBackupContent.Serialization.cs} (80%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{IaasVmBackupRequest.cs => IaasVmBackupContent.cs} (61%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{ExtendedProperties.Serialization.cs => IaasVmBackupExtendedProperties.Serialization.cs} (85%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{ExtendedProperties.cs => IaasVmBackupExtendedProperties.cs} (67%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureIaasVmJob.Serialization.cs => IaasVmBackupJob.Serialization.cs} (90%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureIaasVmJob.cs => IaasVmBackupJob.cs} (76%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureIaasVmJobExtendedInfo.Serialization.cs => IaasVmBackupJobExtendedInfo.Serialization.cs} (88%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureIaasVmJobExtendedInfo.cs => IaasVmBackupJobExtendedInfo.cs} (75%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureIaasVmJobTaskDetails.Serialization.cs => IaasVmBackupJobTaskDetails.Serialization.cs} (91%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureIaasVmJobTaskDetails.cs => IaasVmBackupJobTaskDetails.cs} (81%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureIaasVmJobV2.Serialization.cs => IaasVmBackupJobV2.Serialization.cs} (89%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureIaasVmJobV2.cs => IaasVmBackupJobV2.cs} (74%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureIaasVmErrorInfo.Serialization.cs => IaasVmErrorInfo.Serialization.cs} (87%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureIaasVmErrorInfo.cs => IaasVmErrorInfo.cs} (78%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureIaasVmHealthDetails.Serialization.cs => IaasVmHealthDetails.Serialization.cs} (87%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureIaasVmHealthDetails.cs => IaasVmHealthDetails.cs} (57%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{IaasVmilrRegistrationRequest.Serialization.cs => IaasVmIlrRegistrationContent.Serialization.cs} (82%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{IaasVmilrRegistrationRequest.cs => IaasVmIlrRegistrationContent.cs} (76%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureIaasVmProtectedItem.Serialization.cs => IaasVmProtectedItem.Serialization.cs} (79%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureIaasVmProtectedItem.cs => IaasVmProtectedItem.cs} (64%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureIaasVmProtectedItemExtendedInfo.Serialization.cs => IaasVmProtectedItemExtendedInfo.Serialization.cs} (85%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureIaasVmProtectedItemExtendedInfo.cs => IaasVmProtectedItemExtendedInfo.cs} (65%) create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectedItemHealthStatus.cs rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureIaasVmProtectionPolicy.Serialization.cs => IaasVmProtectionPolicy.Serialization.cs} (84%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureIaasVmProtectionPolicy.cs => IaasVmProtectionPolicy.cs} (62%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{IaasVmRestoreRequest.Serialization.cs => IaasVmRestoreContent.Serialization.cs} (72%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{IaasVmRestoreRequest.cs => IaasVmRestoreContent.cs} (79%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{IaasVmRestoreWithRehydrationRequest.Serialization.cs => IaasVmRestoreWithRehydrationContent.Serialization.cs} (73%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{IaasVmRestoreWithRehydrationRequest.cs => IaasVmRestoreWithRehydrationContent.cs} (71%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{ILRRequest.Serialization.cs => IlrContent.Serialization.cs} (71%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{ILRRequest.cs => IlrContent.cs} (66%) delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/InstantItemRecoveryTarget.Serialization.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/InstantItemRecoveryTarget.cs rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{KEKDetails.Serialization.cs => KekDetails.Serialization.cs} (77%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{KEKDetails.cs => KekDetails.cs} (71%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{KPIResourceHealthDetails.Serialization.cs => KpiResourceHealthDetails.Serialization.cs} (93%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{KPIResourceHealthDetails.cs => KpiResourceHealthDetails.cs} (79%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{MabJob.Serialization.cs => MabBackupJob.Serialization.cs} (91%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{MabJob.cs => MabBackupJob.cs} (75%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{DpmJobExtendedInfo.Serialization.cs => MabBackupJobExtendedInfo.Serialization.cs} (83%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{MabJobExtendedInfo.cs => MabBackupJobExtendedInfo.cs} (67%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{MabJobTaskDetails.Serialization.cs => MabBackupJobTaskDetails.Serialization.cs} (90%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{MabJobTaskDetails.cs => MabBackupJobTaskDetails.cs} (76%) delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MonthOfYear.Serialization.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationResultInfo.Serialization.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationResultInfo.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationResultInfoBase.Serialization.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationResultInfoBase.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationResultInfoBaseResource.Serialization.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationResultInfoBaseResource.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatus.Serialization.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatus.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatusError.Serialization.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatusError.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatusExtendedInfo.Serialization.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatusExtendedInfo.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatusJobExtendedInfo.Serialization.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatusJobExtendedInfo.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatusJobsExtendedInfo.Serialization.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatusJobsExtendedInfo.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatusProvisionILRExtendedInfo.Serialization.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatusProvisionILRExtendedInfo.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatusValidateOperationExtendedInfo.Serialization.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatusValidateOperationExtendedInfo.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatusValue.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationType.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationWorkerResponse.Serialization.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationWorkerResponse.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OverwriteOption.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/PolicyType.cs rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{PreValidateEnableBackupResponse.Serialization.cs => PreValidateEnableBackupResult.Serialization.cs} (79%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{PreValidateEnableBackupResponse.cs => PreValidateEnableBackupResult.cs} (84%) delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/PrepareDataMoveResponse.Serialization.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/PrepareDataMoveResponse.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/PrivateEndpointConnectionResourceData.Serialization.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectedItemHealthStatus.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionPolicyResourceData.Serialization.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionState.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionStatus.cs rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{RestoreRequestResource.Serialization.cs => ProvisionIlrConnectionContent.Serialization.cs} (89%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{ILRRequestResource.cs => ProvisionIlrConnectionContent.cs} (58%) delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProvisioningState.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPoint.cs rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{ListRecoveryPointsRecommendedForMoveContent.Serialization.cs => RecoveryPointsRecommendedForMoveContent.Serialization.cs} (91%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{ListRecoveryPointsRecommendedForMoveContent.cs => RecoveryPointsRecommendedForMoveContent.cs} (73%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureWorkloadAutoProtectionIntent.Serialization.cs => RecoveryServiceVaultProtectionIntent.Serialization.cs} (64%) create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryServiceVaultProtectionIntent.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryType.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ResourceGuardProxyBaseResourceData.Serialization.cs rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{BackupEngineBaseResourceData.Serialization.cs => ResourceGuardProxyData.Serialization.cs} (89%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{ResourceGuardProxyBase.Serialization.cs => ResourceGuardProxyProperties.Serialization.cs} (69%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{ResourceGuardProxyBase.cs => ResourceGuardProxyProperties.cs} (62%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureResourceProtectionIntent.Serialization.cs => ResourceProtectionIntent.Serialization.cs} (68%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureResourceProtectionIntent.cs => ResourceProtectionIntent.cs} (65%) create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RestoreContent.Serialization.cs create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RestoreContent.cs create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RestoreOverwriteOption.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RestoreRequest.Serialization.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RestoreRequest.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RestoreRequestResource.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RestoreRequestType.cs rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{SecurityPinBase.Serialization.cs => SecurityPinContent.Serialization.cs} (92%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{SecurityPinBase.cs => SecurityPinContent.cs} (78%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureVmAppContainerProtectionContainer.Serialization.cs => SqlAvailabilityGroupWorkloadProtectionContainer.Serialization.cs} (80%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureSqlAGWorkloadContainerProtectionContainer.cs => SqlAvailabilityGroupWorkloadProtectionContainer.cs} (62%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureSqlContainer.Serialization.cs => SqlContainer.Serialization.cs} (90%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureSqlContainer.cs => SqlContainer.cs} (70%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{SQLDataDirectory.Serialization.cs => SqlDataDirectory.Serialization.cs} (86%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{SQLDataDirectory.cs => SqlDataDirectory.cs} (74%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{SQLDataDirectoryMapping.Serialization.cs => SqlDataDirectoryMapping.Serialization.cs} (88%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{SQLDataDirectoryMapping.cs => SqlDataDirectoryMapping.cs} (79%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{SQLDataDirectoryType.cs => SqlDataDirectoryType.cs} (56%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureSqlProtectedItem.Serialization.cs => SqlProtectedItem.Serialization.cs} (84%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureSqlProtectedItem.cs => SqlProtectedItem.cs} (65%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureSqlProtectedItemExtendedInfo.Serialization.cs => SqlProtectedItemExtendedInfo.Serialization.cs} (81%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureSqlProtectedItemExtendedInfo.cs => SqlProtectedItemExtendedInfo.cs} (61%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureSqlProtectionPolicy.Serialization.cs => SqlProtectionPolicy.Serialization.cs} (86%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureSqlProtectionPolicy.cs => SqlProtectionPolicy.cs} (54%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureStorageJob.Serialization.cs => StorageBackupJob.Serialization.cs} (90%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureStorageJob.cs => StorageBackupJob.cs} (76%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureWorkloadJobExtendedInfo.Serialization.cs => StorageBackupJobExtendedInfo.Serialization.cs} (86%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureStorageJobExtendedInfo.cs => StorageBackupJobExtendedInfo.cs} (66%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureWorkloadJobTaskDetails.Serialization.cs => StorageBackupJobTaskDetails.Serialization.cs} (84%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureStorageJobTaskDetails.cs => StorageBackupJobTaskDetails.cs} (66%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureStorageContainer.Serialization.cs => StorageContainer.Serialization.cs} (87%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureStorageContainer.cs => StorageContainer.cs} (76%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{VaultJobErrorInfo.Serialization.cs => StorageErrorInfo.Serialization.cs} (90%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureStorageErrorInfo.cs => StorageErrorInfo.cs} (75%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureStorageProtectableContainer.Serialization.cs => StorageProtectableContainer.Serialization.cs} (88%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureStorageProtectableContainer.cs => StorageProtectableContainer.cs} (64%) delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageType.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageTypeState.cs create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SubProtectionPolicyType.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SupportStatus.cs rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{TargetAFSRestoreInfo.Serialization.cs => TargetAfsRestoreInfo.Serialization.cs} (68%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{TargetAFSRestoreInfo.cs => TargetAfsRestoreInfo.cs} (65%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{ILRRequestResource.Serialization.cs => TriggerBackupContent.Serialization.cs} (90%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{BackupRequestResource.cs => TriggerBackupContent.cs} (59%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{BackupRequestResource.Serialization.cs => TriggerRestoreContent.Serialization.cs} (92%) create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TriggerRestoreContent.cs rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{UnknownILRRequest.Serialization.cs => UnknownIlrRequest.Serialization.cs} (83%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{UnknownILRRequest.cs => UnknownIlrRequest.cs} (66%) delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownOperationResultInfoBase.Serialization.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownOperationResultInfoBase.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownOperationStatusExtendedInfo.Serialization.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownOperationStatusExtendedInfo.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownVaultStorageConfigOperationResultResponse.Serialization.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownVaultStorageConfigOperationResultResponse.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnlockDeleteResponse.Serialization.cs rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{ValidateOperationsResponse.Serialization.cs => UnlockDeleteResult.Serialization.cs} (55%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{UnlockDeleteResponse.cs => UnlockDeleteResult.cs} (54%) delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UsagesUnit.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ValidateIaasVmRestoreOperationRequest.Serialization.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ValidateIaasVmRestoreOperationRequest.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ValidateOperationRequest.Serialization.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ValidateOperationRequest.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ValidateOperationResponse.Serialization.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ValidateOperationResponse.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ValidateOperationsResponse.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ValidateRestoreOperationRequest.Serialization.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ValidateRestoreOperationRequest.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ValidationStatus.cs rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{VaultJob.Serialization.cs => VaultBackupJob.Serialization.cs} (89%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{VaultJob.cs => VaultBackupJob.cs} (71%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureStorageErrorInfo.Serialization.cs => VaultBackupJobErrorInfo.Serialization.cs} (89%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{VaultJobErrorInfo.cs => VaultBackupJobErrorInfo.cs} (75%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{VaultJobExtendedInfo.Serialization.cs => VaultBackupJobExtendedInfo.Serialization.cs} (86%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{VaultJobExtendedInfo.cs => VaultBackupJobExtendedInfo.cs} (64%) create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultDedupState.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultStorageConfigOperationResultResponse.Serialization.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultStorageConfigOperationResultResponse.cs create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultXcoolState.cs rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureVmAppContainerProtectableContainer.Serialization.cs => VmAppContainerProtectableContainer.Serialization.cs} (87%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureVmAppContainerProtectableContainer.cs => VmAppContainerProtectableContainer.cs} (62%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureSqlAGWorkloadContainerProtectionContainer.Serialization.cs => VmAppContainerProtectionContainer.Serialization.cs} (81%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureVmAppContainerProtectionContainer.cs => VmAppContainerProtectionContainer.cs} (67%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{EncryptionDetails.Serialization.cs => VmEncryptionDetails.Serialization.cs} (71%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{EncryptionDetails.cs => VmEncryptionDetails.cs} (60%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureVmResourceFeatureSupportRequest.Serialization.cs => VmResourceFeatureSupportContent.Serialization.cs} (91%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureVmResourceFeatureSupportRequest.cs => VmResourceFeatureSupportContent.cs} (72%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureVmResourceFeatureSupportResponse.Serialization.cs => VmResourceFeatureSupportResult.Serialization.cs} (61%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureVmResourceFeatureSupportResponse.cs => VmResourceFeatureSupportResult.cs} (53%) create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmResourceFeatureSupportStatus.cs rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureVmWorkloadItem.Serialization.cs => VmWorkloadItem.Serialization.cs} (77%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureVmWorkloadItem.cs => VmWorkloadItem.cs} (59%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureVmWorkloadProtectableItem.Serialization.cs => VmWorkloadProtectableItem.Serialization.cs} (76%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureVmWorkloadProtectableItem.cs => VmWorkloadProtectableItem.cs} (58%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureVmWorkloadProtectedItem.Serialization.cs => VmWorkloadProtectedItem.Serialization.cs} (81%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureVmWorkloadProtectedItem.cs => VmWorkloadProtectedItem.cs} (67%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureVmWorkloadProtectedItemExtendedInfo.Serialization.cs => VmWorkloadProtectedItemExtendedInfo.Serialization.cs} (87%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureVmWorkloadProtectedItemExtendedInfo.cs => VmWorkloadProtectedItemExtendedInfo.cs} (74%) create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectedItemHealthStatus.cs rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureVmWorkloadProtectionPolicy.Serialization.cs => VmWorkloadProtectionPolicy.Serialization.cs} (85%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureVmWorkloadProtectionPolicy.cs => VmWorkloadProtectionPolicy.cs} (63%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureVmWorkloadSAPHanaDBInstanceProtectedItem.Serialization.cs => VmWorkloadSapAseDatabaseProtectedItem.Serialization.cs} (82%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureVmWorkloadSAPAseDatabaseProtectedItem.cs => VmWorkloadSapAseDatabaseProtectedItem.cs} (61%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureVmWorkloadSAPAseSystemWorkloadItem.Serialization.cs => VmWorkloadSapAseDatabaseWorkloadItem.Serialization.cs} (86%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureVmWorkloadSAPAseDatabaseWorkloadItem.cs => VmWorkloadSapAseDatabaseWorkloadItem.cs} (59%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureVmWorkloadSQLDatabaseProtectableItem.Serialization.cs => VmWorkloadSapAseSystemProtectableItem.Serialization.cs} (85%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureVmWorkloadSAPHanaSystemProtectableItem.cs => VmWorkloadSapAseSystemProtectableItem.cs} (59%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureVmWorkloadSQLDatabaseWorkloadItem.Serialization.cs => VmWorkloadSapAseSystemWorkloadItem.Serialization.cs} (86%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureVmWorkloadSAPAseSystemWorkloadItem.cs => VmWorkloadSapAseSystemWorkloadItem.cs} (59%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureVmWorkloadSAPHanaDBInstance.Serialization.cs => VmWorkloadSapHanaDBInstance.Serialization.cs} (86%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureVmWorkloadSAPHanaDBInstance.cs => VmWorkloadSapHanaDBInstance.cs} (59%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureVmWorkloadSAPAseDatabaseProtectedItem.Serialization.cs => VmWorkloadSapHanaDBInstanceProtectedItem.Serialization.cs} (82%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureVmWorkloadSAPHanaDBInstanceProtectedItem.cs => VmWorkloadSapHanaDBInstanceProtectedItem.cs} (61%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureVmWorkloadSAPHanaSystemProtectableItem.Serialization.cs => VmWorkloadSapHanaDatabaseProtectableItem.Serialization.cs} (85%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureVmWorkloadSAPHanaDatabaseProtectableItem.cs => VmWorkloadSapHanaDatabaseProtectableItem.cs} (58%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureVmWorkloadSAPHanaDatabaseProtectedItem.Serialization.cs => VmWorkloadSapHanaDatabaseProtectedItem.Serialization.cs} (82%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureVmWorkloadSAPHanaDatabaseProtectedItem.cs => VmWorkloadSapHanaDatabaseProtectedItem.cs} (61%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureVmWorkloadSAPHanaSystemWorkloadItem.Serialization.cs => VmWorkloadSapHanaDatabaseWorkloadItem.Serialization.cs} (86%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureVmWorkloadSAPHanaDatabaseWorkloadItem.cs => VmWorkloadSapHanaDatabaseWorkloadItem.cs} (59%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureVmWorkloadSAPHanaHSR.Serialization.cs => VmWorkloadSapHanaHsr.Serialization.cs} (86%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureVmWorkloadSAPHanaHSR.cs => VmWorkloadSapHanaHsr.cs} (60%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureVmWorkloadSQLInstanceProtectableItem.Serialization.cs => VmWorkloadSapHanaSystemProtectableItem.Serialization.cs} (85%) create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaSystemProtectableItem.cs rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureVmWorkloadSAPAseDatabaseWorkloadItem.Serialization.cs => VmWorkloadSapHanaSystemWorkloadItem.Serialization.cs} (86%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureVmWorkloadSAPHanaSystemWorkloadItem.cs => VmWorkloadSapHanaSystemWorkloadItem.cs} (59%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureVmWorkloadSAPHanaDatabaseProtectableItem.Serialization.cs => VmWorkloadSqlAvailabilityGroupProtectableItem.Serialization.cs} (90%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureVmWorkloadSQLAvailabilityGroupProtectableItem.cs => VmWorkloadSqlAvailabilityGroupProtectableItem.cs} (60%) create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlDatabaseProtectableItem.Serialization.cs rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureVmWorkloadSAPAseSystemProtectableItem.cs => VmWorkloadSqlDatabaseProtectableItem.cs} (59%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureVmWorkloadSQLDatabaseProtectedItem.Serialization.cs => VmWorkloadSqlDatabaseProtectedItem.Serialization.cs} (83%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureVmWorkloadSQLDatabaseProtectedItem.cs => VmWorkloadSqlDatabaseProtectedItem.cs} (62%) create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlDatabaseWorkloadItem.Serialization.cs rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureVmWorkloadSQLDatabaseWorkloadItem.cs => VmWorkloadSqlDatabaseWorkloadItem.cs} (59%) create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlInstanceProtectableItem.Serialization.cs rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureVmWorkloadSQLInstanceProtectableItem.cs => VmWorkloadSqlInstanceProtectableItem.cs} (58%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureVmWorkloadSQLInstanceWorkloadItem.Serialization.cs => VmWorkloadSqlInstanceWorkloadItem.Serialization.cs} (85%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureVmWorkloadSQLInstanceWorkloadItem.cs => VmWorkloadSqlInstanceWorkloadItem.cs} (60%) delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WeekOfMonth.Serialization.cs rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureRecoveryServiceVaultProtectionIntent.Serialization.cs => WorkloadAutoProtectionIntent.Serialization.cs} (66%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureWorkloadAutoProtectionIntent.cs => WorkloadAutoProtectionIntent.cs} (51%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureWorkloadBackupRequest.Serialization.cs => WorkloadBackupContent.Serialization.cs} (84%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureWorkloadBackupRequest.cs => WorkloadBackupContent.cs} (63%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureWorkloadJob.Serialization.cs => WorkloadBackupJob.Serialization.cs} (89%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureWorkloadJob.cs => WorkloadBackupJob.cs} (71%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureStorageJobExtendedInfo.Serialization.cs => WorkloadBackupJobExtendedInfo.Serialization.cs} (82%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureWorkloadJobExtendedInfo.cs => WorkloadBackupJobExtendedInfo.cs} (65%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureStorageJobTaskDetails.Serialization.cs => WorkloadBackupJobTaskDetails.Serialization.cs} (82%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureWorkloadJobTaskDetails.cs => WorkloadBackupJobTaskDetails.cs} (65%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureWorkloadContainer.Serialization.cs => WorkloadContainer.Serialization.cs} (78%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureWorkloadContainer.cs => WorkloadContainer.cs} (64%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureWorkloadSQLAutoProtectionIntent.Serialization.cs => WorkloadContainerAutoProtectionIntent.Serialization.cs} (69%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureWorkloadContainerAutoProtectionIntent.cs => WorkloadContainerAutoProtectionIntent.cs} (59%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureWorkloadContainerExtendedInfo.Serialization.cs => WorkloadContainerExtendedInfo.Serialization.cs} (83%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureWorkloadContainerExtendedInfo.cs => WorkloadContainerExtendedInfo.cs} (71%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{InquiryInfo.Serialization.cs => WorkloadContainerInquiryInfo.Serialization.cs} (84%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{InquiryInfo.cs => WorkloadContainerInquiryInfo.cs} (76%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureWorkloadErrorInfo.Serialization.cs => WorkloadErrorInfo.Serialization.cs} (91%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureWorkloadErrorInfo.cs => WorkloadErrorInfo.cs} (80%) create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadOperationType.cs rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureWorkloadPointInTimeRecoveryPoint.Serialization.cs => WorkloadPointInTimeRecoveryPoint.Serialization.cs} (90%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureWorkloadPointInTimeRecoveryPoint.cs => WorkloadPointInTimeRecoveryPoint.cs} (52%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureWorkloadPointInTimeRestoreRequest.Serialization.cs => WorkloadPointInTimeRestoreContent.Serialization.cs} (79%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureWorkloadPointInTimeRestoreRequest.cs => WorkloadPointInTimeRestoreContent.cs} (68%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureWorkloadRecoveryPoint.Serialization.cs => WorkloadRecoveryPoint.Serialization.cs} (84%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureWorkloadRecoveryPoint.cs => WorkloadRecoveryPoint.cs} (62%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureWorkloadRestoreRequest.Serialization.cs => WorkloadRestoreContent.Serialization.cs} (69%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureWorkloadRestoreRequest.cs => WorkloadRestoreContent.cs} (62%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureWorkloadSAPHanaPointInTimeRecoveryPoint.Serialization.cs => WorkloadSapHanaPointInTimeRecoveryPoint.Serialization.cs} (90%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureWorkloadSAPHanaPointInTimeRecoveryPoint.cs => WorkloadSapHanaPointInTimeRecoveryPoint.cs} (54%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureWorkloadSAPHanaPointInTimeRestoreRequest.Serialization.cs => WorkloadSapHanaPointInTimeRestoreContent.Serialization.cs} (78%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureWorkloadSAPHanaPointInTimeRestoreRequest.cs => WorkloadSapHanaPointInTimeRestoreContent.cs} (58%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest.Serialization.cs => WorkloadSapHanaPointInTimeRestoreWithRehydrateContent.Serialization.cs} (80%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest.cs => WorkloadSapHanaPointInTimeRestoreWithRehydrateContent.cs} (65%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureWorkloadSAPHanaRecoveryPoint.Serialization.cs => WorkloadSapHanaRecoveryPoint.Serialization.cs} (90%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureWorkloadSAPHanaRecoveryPoint.cs => WorkloadSapHanaRecoveryPoint.cs} (56%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureWorkloadSAPHanaRestoreRequest.Serialization.cs => WorkloadSapHanaRestoreContent.Serialization.cs} (74%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureWorkloadSAPHanaRestoreRequest.cs => WorkloadSapHanaRestoreContent.cs} (53%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureWorkloadSAPHanaRestoreWithRehydrateRequest.Serialization.cs => WorkloadSapHanaRestoreWithRehydrateContent.Serialization.cs} (79%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureWorkloadSAPHanaRestoreWithRehydrateRequest.cs => WorkloadSapHanaRestoreWithRehydrateContent.cs} (67%) create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlAutoProtectionIntent.Serialization.cs rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureWorkloadSQLAutoProtectionIntent.cs => WorkloadSqlAutoProtectionIntent.cs} (63%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureWorkloadSQLPointInTimeRecoveryPoint.Serialization.cs => WorkloadSqlPointInTimeRecoveryPoint.Serialization.cs} (88%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureWorkloadSQLPointInTimeRecoveryPoint.cs => WorkloadSqlPointInTimeRecoveryPoint.cs} (62%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureWorkloadSQLPointInTimeRestoreRequest.Serialization.cs => WorkloadSqlPointInTimeRestoreContent.Serialization.cs} (80%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureWorkloadSQLPointInTimeRestoreRequest.cs => WorkloadSqlPointInTimeRestoreContent.cs} (60%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest.Serialization.cs => WorkloadSqlPointInTimeRestoreWithRehydrateContent.Serialization.cs} (81%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest.cs => WorkloadSqlPointInTimeRestoreWithRehydrateContent.cs} (66%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureWorkloadSQLRecoveryPoint.Serialization.cs => WorkloadSqlRecoveryPoint.Serialization.cs} (87%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureWorkloadSQLRecoveryPoint.cs => WorkloadSqlRecoveryPoint.cs} (57%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureWorkloadSQLRecoveryPointExtendedInfo.Serialization.cs => WorkloadSqlRecoveryPointExtendedInfo.Serialization.cs} (74%) create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlRecoveryPointExtendedInfo.cs rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureWorkloadSQLRestoreRequest.Serialization.cs => WorkloadSqlRestoreContent.Serialization.cs} (78%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureWorkloadSQLRestoreRequest.cs => WorkloadSqlRestoreContent.cs} (63%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureWorkloadSQLRestoreWithRehydrateRequest.Serialization.cs => WorkloadSqlRestoreWithRehydrateContent.Serialization.cs} (81%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/{AzureWorkloadSQLRestoreWithRehydrateRequest.cs => WorkloadSqlRestoreWithRehydrateContent.cs} (67%) delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadType.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/XcoolState.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ProtectedItemResourceData.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ProtectionContainerResourceData.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ProtectionIntentResourceData.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ProtectionPolicyResourceData.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RecoveryPointResourceData.cs rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/{ResourceGuardProxyBaseResourceCollection.cs => ResourceGuardProxyCollection.cs} (64%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/{ResourceGuardProxyBaseResourceData.cs => ResourceGuardProxyData.cs} (64%) rename sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/{ResourceGuardProxyBaseResource.cs => ResourceGuardProxyResource.cs} (75%) delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BMSPrepareDataMoveOperationResultRestOperations.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupOperationResultsRestOperations.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupOperationStatusesRestOperations.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ExportJobsOperationResultsRestOperations.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/JobOperationResultsRestOperations.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/OperationRestOperations.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/PrivateEndpointRestOperations.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectedItemOperationStatusesRestOperations.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionContainerRefreshOperationResultsRestOperations.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionPolicyOperationStatusesRestOperations.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ResourceGuardProxiesRestOperations.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ValidateOperationRestOperations.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ValidateOperationResultsRestOperations.cs delete mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ValidateOperationStatusesRestOperations.cs diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/CHANGELOG.md b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/CHANGELOG.md index d6e5bac0adf9a..51e613be5f238 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/CHANGELOG.md +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/CHANGELOG.md @@ -1,17 +1,30 @@ # Release History -## 1.0.0-beta.2 (Unreleased) +## 1.0.0 (2023-02-20) -### Features Added +This release is the first stable release of the Azure Recovery Services Backup Management client library. ### Breaking Changes -### Bugs Fixed +Polishing since last public beta release: +- Prepended `Backup` prefix to all single / simple model names. +- Corrected the format of all `Guid` type properties / parameters. +- Corrected the format of all `ResourceIdentifier` type properties / parameters. +- Corrected the format of all `ResouceType` type properties / parameters. +- Corrected the format of all `ETag` type properties / parameters. +- Corrected the format of all `AzureLocation` type properties / parameters. +- Corrected the format of all binary type properties / parameters. +- Corrected all acronyms that not follow [.Net Naming Guidelines](https://docs.microsoft.com/dotnet/standard/design-guidelines/naming-guidelines). +- Corrected enumeration name by following [Naming Enumerations Rule](https://docs.microsoft.com/dotnet/standard/design-guidelines/names-of-classes-structs-and-interfaces#naming-enumerations). +- Corrected the suffix of `DateTimeOffset` properties / parameters. +- Corrected the name of interval / duration properties / parameters that end with units. +- Optimized the name of some models and functions. ### Other Changes -Changed API version to 2023-01-01. - +- Changed API version to 2023-01-01. +- Upgraded dependent `Azure.Core` to `1.28.0`. +- Upgraded dependent `Azure.ResourceManager` to `1.4.0`. ## 1.0.0-beta.1 (2022-09-25) diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/README.md b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/README.md index d85eb6f6ebb07..7b00ff690d705 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/README.md +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/README.md @@ -17,7 +17,7 @@ This library follows the [new Azure SDK guidelines](https://azure.github.io/azur Install the Microsoft Azure Recovery Services Backup management library for .NET with [NuGet](https://www.nuget.org/): ```dotnetcli -dotnet add package Azure.ResourceManager.RecoveryServicesBackup --prerelease +dotnet add package Azure.ResourceManager.RecoveryServicesBackup ``` ### Prerequisites diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/api/Azure.ResourceManager.RecoveryServicesBackup.netstandard2.0.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/api/Azure.ResourceManager.RecoveryServicesBackup.netstandard2.0.cs index 65161e90151e8..326ccdcb262b7 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/api/Azure.ResourceManager.RecoveryServicesBackup.netstandard2.0.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/api/Azure.ResourceManager.RecoveryServicesBackup.netstandard2.0.cs @@ -1,548 +1,520 @@ namespace Azure.ResourceManager.RecoveryServicesBackup { - public partial class BackupEngineBaseResource : Azure.ResourceManager.ArmResource + public partial class BackupEngineCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { - public static readonly Azure.Core.ResourceType ResourceType; - protected BackupEngineBaseResource() { } - public virtual Azure.ResourceManager.RecoveryServicesBackup.BackupEngineBaseResourceData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string vaultName, string backupEngineName) { throw null; } - public virtual Azure.Response Get(string filter = null, string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string filter = null, string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class BackupEngineBaseResourceCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected BackupEngineBaseResourceCollection() { } + protected BackupEngineCollection() { } public virtual Azure.Response Exists(string backupEngineName, string filter = null, string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string backupEngineName, string filter = null, string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string backupEngineName, string filter = null, string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(string filter = null, string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(string filter = null, string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string backupEngineName, string filter = null, string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + public virtual Azure.Response Get(string backupEngineName, string filter = null, string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string filter = null, string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string filter = null, string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string backupEngineName, string filter = null, string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class BackupEngineBaseResourceData : Azure.ResourceManager.Models.TrackedResourceData - { - public BackupEngineBaseResourceData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } - public Azure.ETag? ETag { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupEngineBase Properties { get { throw null; } set { } } - } - public partial class BackupResourceConfigResource : Azure.ResourceManager.ArmResource - { - public static readonly Azure.Core.ResourceType ResourceType; - protected BackupResourceConfigResource() { } - public virtual Azure.ResourceManager.RecoveryServicesBackup.BackupResourceConfigResourceData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation BMSPrepareDataMove(Azure.WaitUntil waitUntil, Azure.ResourceManager.RecoveryServicesBackup.Models.PrepareDataMoveContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task BMSPrepareDataMoveAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.RecoveryServicesBackup.Models.PrepareDataMoveContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation BMSTriggerDataMove(Azure.WaitUntil waitUntil, Azure.ResourceManager.RecoveryServicesBackup.Models.TriggerDataMoveContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task BMSTriggerDataMoveAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.RecoveryServicesBackup.Models.TriggerDataMoveContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string vaultName) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetBMSPrepareDataMoveOperationResult(string operationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetBMSPrepareDataMoveOperationResultAsync(string operationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetOperationStatus(string operationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetOperationStatusAsync(string operationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Update(Azure.ResourceManager.RecoveryServicesBackup.BackupResourceConfigResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.RecoveryServicesBackup.BackupResourceConfigResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class BackupResourceConfigResourceCollection : Azure.ResourceManager.ArmCollection - { - protected BackupResourceConfigResourceCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string vaultName, Azure.ResourceManager.RecoveryServicesBackup.BackupResourceConfigResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string vaultName, Azure.ResourceManager.RecoveryServicesBackup.BackupResourceConfigResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string vaultName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string vaultName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string vaultName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string vaultName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class BackupResourceConfigResourceData : Azure.ResourceManager.Models.TrackedResourceData - { - public BackupResourceConfigResourceData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } - public Azure.ETag? ETag { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupResourceConfig Properties { get { throw null; } set { } } - } - public partial class BackupResourceEncryptionConfigExtendedResource : Azure.ResourceManager.ArmResource - { - public static readonly Azure.Core.ResourceType ResourceType; - protected BackupResourceEncryptionConfigExtendedResource() { } - public virtual Azure.ResourceManager.RecoveryServicesBackup.BackupResourceEncryptionConfigExtendedResourceData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string vaultName) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupResourceEncryptionConfigExtendedResourceCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupResourceEncryptionConfigExtendedResourceCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class BackupResourceEncryptionConfigExtendedResourceCollection : Azure.ResourceManager.ArmCollection - { - protected BackupResourceEncryptionConfigExtendedResourceCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string vaultName, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupResourceEncryptionConfigExtendedResourceCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string vaultName, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupResourceEncryptionConfigExtendedResourceCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string vaultName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string vaultName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string vaultName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string vaultName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class BackupResourceEncryptionConfigExtendedResourceData : Azure.ResourceManager.Models.TrackedResourceData + public partial class BackupEngineData : Azure.ResourceManager.Models.TrackedResourceData { - public BackupResourceEncryptionConfigExtendedResourceData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } + public BackupEngineData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } public Azure.ETag? ETag { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupResourceEncryptionConfigExtended Properties { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupGenericEngine Properties { get { throw null; } set { } } } - public partial class BackupResourceVaultConfigResource : Azure.ResourceManager.ArmResource + public partial class BackupEngineResource : Azure.ResourceManager.ArmResource { public static readonly Azure.Core.ResourceType ResourceType; - protected BackupResourceVaultConfigResource() { } - public virtual Azure.ResourceManager.RecoveryServicesBackup.BackupResourceVaultConfigResourceData Data { get { throw null; } } + protected BackupEngineResource() { } + public virtual Azure.ResourceManager.RecoveryServicesBackup.BackupEngineData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } - public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string vaultName) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Update(Azure.ResourceManager.RecoveryServicesBackup.BackupResourceVaultConfigResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.RecoveryServicesBackup.BackupResourceVaultConfigResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string vaultName, string backupEngineName) { throw null; } + public virtual Azure.Response Get(string filter = null, string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string filter = null, string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } - public partial class BackupResourceVaultConfigResourceCollection : Azure.ResourceManager.ArmCollection + public partial class BackupJobCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { - protected BackupResourceVaultConfigResourceCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string vaultName, Azure.ResourceManager.RecoveryServicesBackup.BackupResourceVaultConfigResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string vaultName, Azure.ResourceManager.RecoveryServicesBackup.BackupResourceVaultConfigResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string vaultName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string vaultName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string vaultName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string vaultName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected BackupJobCollection() { } + public virtual Azure.Response Exists(string jobName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string jobName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string jobName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string filter = null, string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string filter = null, string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string jobName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class BackupResourceVaultConfigResourceData : Azure.ResourceManager.Models.TrackedResourceData + public partial class BackupJobData : Azure.ResourceManager.Models.TrackedResourceData { - public BackupResourceVaultConfigResourceData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } + public BackupJobData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } public Azure.ETag? ETag { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupResourceVaultConfig Properties { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupGenericJob Properties { get { throw null; } set { } } } - public partial class JobResource : Azure.ResourceManager.ArmResource + public partial class BackupJobResource : Azure.ResourceManager.ArmResource { public static readonly Azure.Core.ResourceType ResourceType; - protected JobResource() { } - public virtual Azure.ResourceManager.RecoveryServicesBackup.JobResourceData Data { get { throw null; } } + protected BackupJobResource() { } + public virtual Azure.ResourceManager.RecoveryServicesBackup.BackupJobData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string vaultName, string jobName) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetJobOperationResult(string operationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task GetJobOperationResultAsync(string operationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response TriggerJobCancellation(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task TriggerJobCancellationAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } - public partial class JobResourceCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + public partial class BackupPrivateEndpointConnectionCollection : Azure.ResourceManager.ArmCollection { - protected JobResourceCollection() { } - public virtual Azure.Response Exists(string jobName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string jobName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string jobName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(string filter = null, string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(string filter = null, string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string jobName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + protected BackupPrivateEndpointConnectionCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string vaultName, string privateEndpointConnectionName, Azure.ResourceManager.RecoveryServicesBackup.BackupPrivateEndpointConnectionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string vaultName, string privateEndpointConnectionName, Azure.ResourceManager.RecoveryServicesBackup.BackupPrivateEndpointConnectionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string vaultName, string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string vaultName, string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string vaultName, string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string vaultName, string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } - public partial class JobResourceData : Azure.ResourceManager.Models.TrackedResourceData + public partial class BackupPrivateEndpointConnectionData : Azure.ResourceManager.Models.TrackedResourceData { - public JobResourceData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } + public BackupPrivateEndpointConnectionData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } public Azure.ETag? ETag { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.Job Properties { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupPrivateEndpointConnectionProperties Properties { get { throw null; } set { } } } - public partial class PrivateEndpointConnectionResource : Azure.ResourceManager.ArmResource + public partial class BackupPrivateEndpointConnectionResource : Azure.ResourceManager.ArmResource { public static readonly Azure.Core.ResourceType ResourceType; - protected PrivateEndpointConnectionResource() { } - public virtual Azure.ResourceManager.RecoveryServicesBackup.PrivateEndpointConnectionResourceData Data { get { throw null; } } + protected BackupPrivateEndpointConnectionResource() { } + public virtual Azure.ResourceManager.RecoveryServicesBackup.BackupPrivateEndpointConnectionData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } - public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string vaultName, string privateEndpointConnectionName) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetOperationStatusPrivateEndpoint(string operationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetOperationStatusPrivateEndpointAsync(string operationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.RecoveryServicesBackup.PrivateEndpointConnectionResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.RecoveryServicesBackup.PrivateEndpointConnectionResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class PrivateEndpointConnectionResourceCollection : Azure.ResourceManager.ArmCollection - { - protected PrivateEndpointConnectionResourceCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string vaultName, string privateEndpointConnectionName, Azure.ResourceManager.RecoveryServicesBackup.PrivateEndpointConnectionResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string vaultName, string privateEndpointConnectionName, Azure.ResourceManager.RecoveryServicesBackup.PrivateEndpointConnectionResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string vaultName, string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string vaultName, string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string vaultName, string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string vaultName, string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.RecoveryServicesBackup.BackupPrivateEndpointConnectionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.RecoveryServicesBackup.BackupPrivateEndpointConnectionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class BackupProtectedItemCollection : Azure.ResourceManager.ArmCollection + { + protected BackupProtectedItemCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string protectedItemName, Azure.ResourceManager.RecoveryServicesBackup.BackupProtectedItemData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string protectedItemName, Azure.ResourceManager.RecoveryServicesBackup.BackupProtectedItemData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string protectedItemName, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string protectedItemName, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string protectedItemName, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string protectedItemName, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } - public partial class PrivateEndpointConnectionResourceData : Azure.ResourceManager.Models.TrackedResourceData + public partial class BackupProtectedItemData : Azure.ResourceManager.Models.TrackedResourceData { - public PrivateEndpointConnectionResourceData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } + public BackupProtectedItemData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } public Azure.ETag? ETag { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryServicesBackupPrivateEndpointConnection Properties { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupGenericProtectedItem Properties { get { throw null; } set { } } } - public partial class ProtectedItemResource : Azure.ResourceManager.ArmResource + public partial class BackupProtectedItemResource : Azure.ResourceManager.ArmResource { public static readonly Azure.Core.ResourceType ResourceType; - protected ProtectedItemResource() { } - public virtual Azure.ResourceManager.RecoveryServicesBackup.ProtectedItemResourceData Data { get { throw null; } } + protected BackupProtectedItemResource() { } + public virtual Azure.ResourceManager.RecoveryServicesBackup.BackupProtectedItemData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } - public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetProtectedItemOperationStatus(string operationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetProtectedItemOperationStatusAsync(string operationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetRecoveryPointResource(string recoveryPointId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetRecoveryPointResourceAsync(string recoveryPointId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.RecoveryServicesBackup.RecoveryPointResourceCollection GetRecoveryPointResources() { throw null; } - public virtual Azure.Pageable GetRecoveryPointsRecommendedForMoves(Azure.ResourceManager.RecoveryServicesBackup.Models.ListRecoveryPointsRecommendedForMoveContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetRecoveryPointsRecommendedForMovesAsync(Azure.ResourceManager.RecoveryServicesBackup.Models.ListRecoveryPointsRecommendedForMoveContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response TriggerBackup(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupRequestResource backupRequestResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task TriggerBackupAsync(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupRequestResource backupRequestResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.RecoveryServicesBackup.ProtectedItemResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.RecoveryServicesBackup.ProtectedItemResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class ProtectedItemResourceCollection : Azure.ResourceManager.ArmCollection - { - protected ProtectedItemResourceCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string protectedItemName, Azure.ResourceManager.RecoveryServicesBackup.ProtectedItemResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string protectedItemName, Azure.ResourceManager.RecoveryServicesBackup.ProtectedItemResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string protectedItemName, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string protectedItemName, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string protectedItemName, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string protectedItemName, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetBackupRecoveryPoint(string recoveryPointId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetBackupRecoveryPointAsync(string recoveryPointId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.RecoveryServicesBackup.BackupRecoveryPointCollection GetBackupRecoveryPoints() { throw null; } + public virtual Azure.Pageable GetRecoveryPointsRecommendedForMove(Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPointsRecommendedForMoveContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetRecoveryPointsRecommendedForMoveAsync(Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPointsRecommendedForMoveContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response TriggerBackup(Azure.ResourceManager.RecoveryServicesBackup.Models.TriggerBackupContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task TriggerBackupAsync(Azure.ResourceManager.RecoveryServicesBackup.Models.TriggerBackupContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.RecoveryServicesBackup.BackupProtectedItemData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.RecoveryServicesBackup.BackupProtectedItemData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class BackupProtectionContainerCollection : Azure.ResourceManager.ArmCollection + { + protected BackupProtectionContainerCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string vaultName, string fabricName, string containerName, Azure.ResourceManager.RecoveryServicesBackup.BackupProtectionContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string vaultName, string fabricName, string containerName, Azure.ResourceManager.RecoveryServicesBackup.BackupProtectionContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string vaultName, string fabricName, string containerName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string vaultName, string fabricName, string containerName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string vaultName, string fabricName, string containerName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string vaultName, string fabricName, string containerName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } - public partial class ProtectedItemResourceData : Azure.ResourceManager.Models.TrackedResourceData + public partial class BackupProtectionContainerData : Azure.ResourceManager.Models.TrackedResourceData { - public ProtectedItemResourceData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } + public BackupProtectionContainerData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } public Azure.ETag? ETag { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectedItem Properties { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupGenericProtectionContainer Properties { get { throw null; } set { } } } - public partial class ProtectionContainerResource : Azure.ResourceManager.ArmResource + public partial class BackupProtectionContainerResource : Azure.ResourceManager.ArmResource { public static readonly Azure.Core.ResourceType ResourceType; - protected ProtectionContainerResource() { } - public virtual Azure.ResourceManager.RecoveryServicesBackup.ProtectionContainerResourceData Data { get { throw null; } } + protected BackupProtectionContainerResource() { } + public virtual Azure.ResourceManager.RecoveryServicesBackup.BackupProtectionContainerData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } - public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetBackupProtectedItem(string protectedItemName, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetBackupProtectedItemAsync(string protectedItemName, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.RecoveryServicesBackup.BackupProtectedItemCollection GetBackupProtectedItems() { throw null; } public virtual Azure.Pageable GetBackupWorkloadItems(string filter = null, string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetBackupWorkloadItemsAsync(string filter = null, string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetProtectedItemResource(string protectedItemName, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetProtectedItemResourceAsync(string protectedItemName, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.RecoveryServicesBackup.ProtectedItemResourceCollection GetProtectedItemResources() { throw null; } public virtual Azure.Response Inquire(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task InquireAsync(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.RecoveryServicesBackup.ProtectionContainerResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.RecoveryServicesBackup.ProtectionContainerResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class ProtectionContainerResourceCollection : Azure.ResourceManager.ArmCollection - { - protected ProtectionContainerResourceCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string vaultName, string fabricName, string containerName, Azure.ResourceManager.RecoveryServicesBackup.ProtectionContainerResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string vaultName, string fabricName, string containerName, Azure.ResourceManager.RecoveryServicesBackup.ProtectionContainerResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string vaultName, string fabricName, string containerName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string vaultName, string fabricName, string containerName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string vaultName, string fabricName, string containerName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string vaultName, string fabricName, string containerName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.RecoveryServicesBackup.BackupProtectionContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.RecoveryServicesBackup.BackupProtectionContainerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class BackupProtectionIntentCollection : Azure.ResourceManager.ArmCollection + { + protected BackupProtectionIntentCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string vaultName, string fabricName, string intentObjectName, Azure.ResourceManager.RecoveryServicesBackup.BackupProtectionIntentData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string vaultName, string fabricName, string intentObjectName, Azure.ResourceManager.RecoveryServicesBackup.BackupProtectionIntentData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string vaultName, string fabricName, string intentObjectName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string vaultName, string fabricName, string intentObjectName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string vaultName, string fabricName, string intentObjectName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string vaultName, string fabricName, string intentObjectName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } - public partial class ProtectionContainerResourceData : Azure.ResourceManager.Models.TrackedResourceData + public partial class BackupProtectionIntentData : Azure.ResourceManager.Models.TrackedResourceData { - public ProtectionContainerResourceData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } + public BackupProtectionIntentData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } public Azure.ETag? ETag { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectionContainer Properties { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupGenericProtectionIntent Properties { get { throw null; } set { } } } - public partial class ProtectionIntentResource : Azure.ResourceManager.ArmResource + public partial class BackupProtectionIntentResource : Azure.ResourceManager.ArmResource { public static readonly Azure.Core.ResourceType ResourceType; - protected ProtectionIntentResource() { } - public virtual Azure.ResourceManager.RecoveryServicesBackup.ProtectionIntentResourceData Data { get { throw null; } } + protected BackupProtectionIntentResource() { } + public virtual Azure.ResourceManager.RecoveryServicesBackup.BackupProtectionIntentData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } - public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string intentObjectName) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.RecoveryServicesBackup.ProtectionIntentResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.RecoveryServicesBackup.ProtectionIntentResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class ProtectionIntentResourceCollection : Azure.ResourceManager.ArmCollection - { - protected ProtectionIntentResourceCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string vaultName, string fabricName, string intentObjectName, Azure.ResourceManager.RecoveryServicesBackup.ProtectionIntentResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string vaultName, string fabricName, string intentObjectName, Azure.ResourceManager.RecoveryServicesBackup.ProtectionIntentResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string vaultName, string fabricName, string intentObjectName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string vaultName, string fabricName, string intentObjectName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string vaultName, string fabricName, string intentObjectName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string vaultName, string fabricName, string intentObjectName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.RecoveryServicesBackup.BackupProtectionIntentData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.RecoveryServicesBackup.BackupProtectionIntentData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class BackupProtectionPolicyCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected BackupProtectionPolicyCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string policyName, Azure.ResourceManager.RecoveryServicesBackup.BackupProtectionPolicyData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string policyName, Azure.ResourceManager.RecoveryServicesBackup.BackupProtectionPolicyData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string policyName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string policyName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string policyName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string policyName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class ProtectionIntentResourceData : Azure.ResourceManager.Models.TrackedResourceData + public partial class BackupProtectionPolicyData : Azure.ResourceManager.Models.TrackedResourceData { - public ProtectionIntentResourceData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } + public BackupProtectionPolicyData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } public Azure.ETag? ETag { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectionIntent Properties { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupGenericProtectionPolicy Properties { get { throw null; } set { } } } - public partial class ProtectionPolicyResource : Azure.ResourceManager.ArmResource + public partial class BackupProtectionPolicyResource : Azure.ResourceManager.ArmResource { public static readonly Azure.Core.ResourceType ResourceType; - protected ProtectionPolicyResource() { } - public virtual Azure.ResourceManager.RecoveryServicesBackup.ProtectionPolicyResourceData Data { get { throw null; } } + protected BackupProtectionPolicyResource() { } + public virtual Azure.ResourceManager.RecoveryServicesBackup.BackupProtectionPolicyData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } - public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string vaultName, string policyName) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetProtectionPolicyOperationStatus(string operationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetProtectionPolicyOperationStatusAsync(string operationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.RecoveryServicesBackup.ProtectionPolicyResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.RecoveryServicesBackup.ProtectionPolicyResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class ProtectionPolicyResourceCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected ProtectionPolicyResourceCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string policyName, Azure.ResourceManager.RecoveryServicesBackup.ProtectionPolicyResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string policyName, Azure.ResourceManager.RecoveryServicesBackup.ProtectionPolicyResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string policyName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string policyName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string policyName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string policyName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.RecoveryServicesBackup.BackupProtectionPolicyData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.RecoveryServicesBackup.BackupProtectionPolicyData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class BackupRecoveryPointCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected BackupRecoveryPointCollection() { } + public virtual Azure.Response Exists(string recoveryPointId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string recoveryPointId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string recoveryPointId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string recoveryPointId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class ProtectionPolicyResourceData : Azure.ResourceManager.Models.TrackedResourceData + public partial class BackupRecoveryPointData : Azure.ResourceManager.Models.TrackedResourceData { - public ProtectionPolicyResourceData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } + public BackupRecoveryPointData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } public Azure.ETag? ETag { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectionPolicy Properties { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupGenericRecoveryPoint Properties { get { throw null; } set { } } } - public partial class RecoveryPointResource : Azure.ResourceManager.ArmResource + public partial class BackupRecoveryPointResource : Azure.ResourceManager.ArmResource { public static readonly Azure.Core.ResourceType ResourceType; - protected RecoveryPointResource() { } - public virtual Azure.ResourceManager.RecoveryServicesBackup.RecoveryPointResourceData Data { get { throw null; } } + protected BackupRecoveryPointResource() { } + public virtual Azure.ResourceManager.RecoveryServicesBackup.BackupRecoveryPointData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, string recoveryPointId) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.ArmOperation MoveRecoveryPoint(Azure.WaitUntil waitUntil, Azure.ResourceManager.RecoveryServicesBackup.Models.MoveRPAcrossTiersContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task MoveRecoveryPointAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.RecoveryServicesBackup.Models.MoveRPAcrossTiersContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response ProvisionItemLevelRecoveryConnection(Azure.ResourceManager.RecoveryServicesBackup.Models.ILRRequestResource ilrRequestResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task ProvisionItemLevelRecoveryConnectionAsync(Azure.ResourceManager.RecoveryServicesBackup.Models.ILRRequestResource ilrRequestResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response ProvisionItemLevelRecoveryConnection(Azure.ResourceManager.RecoveryServicesBackup.Models.ProvisionIlrConnectionContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task ProvisionItemLevelRecoveryConnectionAsync(Azure.ResourceManager.RecoveryServicesBackup.Models.ProvisionIlrConnectionContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response RevokeItemLevelRecoveryConnection(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task RevokeItemLevelRecoveryConnectionAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation TriggerRestore(Azure.WaitUntil waitUntil, Azure.ResourceManager.RecoveryServicesBackup.Models.RestoreRequestResource restoreRequestResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task TriggerRestoreAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.RecoveryServicesBackup.Models.RestoreRequestResource restoreRequestResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation TriggerRestore(Azure.WaitUntil waitUntil, Azure.ResourceManager.RecoveryServicesBackup.Models.TriggerRestoreContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task TriggerRestoreAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.RecoveryServicesBackup.Models.TriggerRestoreContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } - public partial class RecoveryPointResourceCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + public partial class BackupResourceConfigCollection : Azure.ResourceManager.ArmCollection { - protected RecoveryPointResourceCollection() { } - public virtual Azure.Response Exists(string recoveryPointId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string recoveryPointId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string recoveryPointId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string recoveryPointId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + protected BackupResourceConfigCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string vaultName, Azure.ResourceManager.RecoveryServicesBackup.BackupResourceConfigData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string vaultName, Azure.ResourceManager.RecoveryServicesBackup.BackupResourceConfigData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string vaultName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string vaultName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string vaultName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string vaultName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class BackupResourceConfigData : Azure.ResourceManager.Models.TrackedResourceData + { + public BackupResourceConfigData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } + public Azure.ETag? ETag { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupResourceConfigProperties Properties { get { throw null; } set { } } + } + public partial class BackupResourceConfigResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected BackupResourceConfigResource() { } + public virtual Azure.ResourceManager.RecoveryServicesBackup.BackupResourceConfigData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string vaultName) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation PrepareDataMove(Azure.WaitUntil waitUntil, Azure.ResourceManager.RecoveryServicesBackup.Models.PrepareDataMoveContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task PrepareDataMoveAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.RecoveryServicesBackup.Models.PrepareDataMoveContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation TriggerDataMove(Azure.WaitUntil waitUntil, Azure.ResourceManager.RecoveryServicesBackup.Models.TriggerDataMoveContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task TriggerDataMoveAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.RecoveryServicesBackup.Models.TriggerDataMoveContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Update(Azure.ResourceManager.RecoveryServicesBackup.BackupResourceConfigData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.RecoveryServicesBackup.BackupResourceConfigData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class BackupResourceEncryptionConfigExtendedCollection : Azure.ResourceManager.ArmCollection + { + protected BackupResourceEncryptionConfigExtendedCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string vaultName, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupResourceEncryptionConfigExtendedCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string vaultName, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupResourceEncryptionConfigExtendedCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string vaultName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string vaultName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string vaultName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string vaultName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class BackupResourceEncryptionConfigExtendedData : Azure.ResourceManager.Models.TrackedResourceData + { + public BackupResourceEncryptionConfigExtendedData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } + public Azure.ETag? ETag { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupResourceEncryptionConfigExtendedProperties Properties { get { throw null; } set { } } + } + public partial class BackupResourceEncryptionConfigExtendedResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected BackupResourceEncryptionConfigExtendedResource() { } + public virtual Azure.ResourceManager.RecoveryServicesBackup.BackupResourceEncryptionConfigExtendedData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string vaultName) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupResourceEncryptionConfigExtendedCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupResourceEncryptionConfigExtendedCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class BackupResourceVaultConfigCollection : Azure.ResourceManager.ArmCollection + { + protected BackupResourceVaultConfigCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string vaultName, Azure.ResourceManager.RecoveryServicesBackup.BackupResourceVaultConfigData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string vaultName, Azure.ResourceManager.RecoveryServicesBackup.BackupResourceVaultConfigData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string vaultName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string vaultName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string vaultName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string vaultName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } - public partial class RecoveryPointResourceData : Azure.ResourceManager.Models.TrackedResourceData + public partial class BackupResourceVaultConfigData : Azure.ResourceManager.Models.TrackedResourceData { - public RecoveryPointResourceData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } + public BackupResourceVaultConfigData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } public Azure.ETag? ETag { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPoint Properties { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupResourceVaultConfigProperties Properties { get { throw null; } set { } } + } + public partial class BackupResourceVaultConfigResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected BackupResourceVaultConfigResource() { } + public virtual Azure.ResourceManager.RecoveryServicesBackup.BackupResourceVaultConfigData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string vaultName) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Update(Azure.ResourceManager.RecoveryServicesBackup.BackupResourceVaultConfigData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.RecoveryServicesBackup.BackupResourceVaultConfigData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } public static partial class RecoveryServicesBackupExtensions { public static Azure.Response ExportJob(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static System.Threading.Tasks.Task ExportJobAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.RecoveryServicesBackup.BackupEngineBaseResource GetBackupEngineBaseResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.Response GetBackupEngineBaseResource(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string backupEngineName, string filter = null, string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GetBackupEngineBaseResourceAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string backupEngineName, string filter = null, string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.RecoveryServicesBackup.BackupEngineBaseResourceCollection GetBackupEngineBaseResources(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName) { throw null; } - public static Azure.Response GetBackupOperationResult(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string operationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task GetBackupOperationResultAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string operationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.Response GetBackupOperationStatus(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string operationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GetBackupOperationStatusAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string operationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Response GetBackupEngine(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string backupEngineName, string filter = null, string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetBackupEngineAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string backupEngineName, string filter = null, string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.BackupEngineResource GetBackupEngineResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.BackupEngineCollection GetBackupEngines(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName) { throw null; } + public static Azure.Response GetBackupJob(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string jobName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetBackupJobAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string jobName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.BackupJobResource GetBackupJobResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.BackupJobCollection GetBackupJobs(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName) { throw null; } + public static Azure.Response GetBackupPrivateEndpointConnection(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetBackupPrivateEndpointConnectionAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.BackupPrivateEndpointConnectionResource GetBackupPrivateEndpointConnectionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.BackupPrivateEndpointConnectionCollection GetBackupPrivateEndpointConnections(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } public static Azure.Pageable GetBackupProtectableItems(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string filter = null, string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.AsyncPageable GetBackupProtectableItemsAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string filter = null, string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.BackupProtectedItemResource GetBackupProtectedItemResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.Pageable GetBackupProtectedItems(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string filter = null, string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.AsyncPageable GetBackupProtectedItemsAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string filter = null, string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Response GetBackupProtectionContainer(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string fabricName, string containerName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetBackupProtectionContainerAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string fabricName, string containerName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.BackupProtectionContainerResource GetBackupProtectionContainerResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.BackupProtectionContainerCollection GetBackupProtectionContainers(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } + public static Azure.Pageable GetBackupProtectionContainers(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.AsyncPageable GetBackupProtectionContainersAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Response GetBackupProtectionIntent(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string fabricName, string intentObjectName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetBackupProtectionIntentAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string fabricName, string intentObjectName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.BackupProtectionIntentResource GetBackupProtectionIntentResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.BackupProtectionIntentCollection GetBackupProtectionIntents(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } + public static Azure.Pageable GetBackupProtectionIntents(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string filter = null, string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.AsyncPageable GetBackupProtectionIntentsAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string filter = null, string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.BackupProtectionPolicyCollection GetBackupProtectionPolicies(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName) { throw null; } + public static Azure.Response GetBackupProtectionPolicy(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string policyName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetBackupProtectionPolicyAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string policyName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.BackupProtectionPolicyResource GetBackupProtectionPolicyResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.BackupRecoveryPointResource GetBackupRecoveryPointResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.Response GetBackupResourceConfig(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetBackupResourceConfigAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.BackupResourceConfigResource GetBackupResourceConfigResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.Response GetBackupResourceConfigResource(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GetBackupResourceConfigResourceAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.RecoveryServicesBackup.BackupResourceConfigResourceCollection GetBackupResourceConfigResources(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.BackupResourceConfigCollection GetBackupResourceConfigs(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } + public static Azure.Response GetBackupResourceEncryptionConfigExtended(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetBackupResourceEncryptionConfigExtendedAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.BackupResourceEncryptionConfigExtendedResource GetBackupResourceEncryptionConfigExtendedResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.Response GetBackupResourceEncryptionConfigExtendedResource(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GetBackupResourceEncryptionConfigExtendedResourceAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.RecoveryServicesBackup.BackupResourceEncryptionConfigExtendedResourceCollection GetBackupResourceEncryptionConfigExtendedResources(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.BackupResourceEncryptionConfigExtendedCollection GetBackupResourceEncryptionConfigExtendeds(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } + public static Azure.Response GetBackupResourceVaultConfig(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetBackupResourceVaultConfigAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.BackupResourceVaultConfigResource GetBackupResourceVaultConfigResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.Response GetBackupResourceVaultConfigResource(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GetBackupResourceVaultConfigResourceAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.RecoveryServicesBackup.BackupResourceVaultConfigResourceCollection GetBackupResourceVaultConfigResources(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } - public static Azure.Response GetBackupStatus(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string azureRegion, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupStatusContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GetBackupStatusAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string azureRegion, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupStatusContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.BackupResourceVaultConfigCollection GetBackupResourceVaultConfigs(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } + public static Azure.Response GetBackupStatus(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupStatusContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetBackupStatusAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupStatusContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Pageable GetBackupUsageSummaries(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string filter = null, string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.AsyncPageable GetBackupUsageSummariesAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string filter = null, string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.Response GetExportJobsOperationResult(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string operationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GetExportJobsOperationResultAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string operationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.RecoveryServicesBackup.JobResource GetJobResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.Response GetJobResource(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string jobName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GetJobResourceAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string jobName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.RecoveryServicesBackup.JobResourceCollection GetJobResources(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName) { throw null; } - public static Azure.ResourceManager.RecoveryServicesBackup.PrivateEndpointConnectionResource GetPrivateEndpointConnectionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.Response GetPrivateEndpointConnectionResource(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GetPrivateEndpointConnectionResourceAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.RecoveryServicesBackup.PrivateEndpointConnectionResourceCollection GetPrivateEndpointConnectionResources(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } public static Azure.Pageable GetProtectableContainers(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string fabricName, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.AsyncPageable GetProtectableContainersAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string fabricName, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.RecoveryServicesBackup.ProtectedItemResource GetProtectedItemResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.Pageable GetProtectedItemResourcesByBackupProtectedItem(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string filter = null, string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.AsyncPageable GetProtectedItemResourcesByBackupProtectedItemAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string filter = null, string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.Response GetProtectionContainerRefreshOperationResult(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string fabricName, string operationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task GetProtectionContainerRefreshOperationResultAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string fabricName, string operationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.RecoveryServicesBackup.ProtectionContainerResource GetProtectionContainerResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.Response GetProtectionContainerResource(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string fabricName, string containerName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GetProtectionContainerResourceAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string fabricName, string containerName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.RecoveryServicesBackup.ProtectionContainerResourceCollection GetProtectionContainerResources(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } - public static Azure.Pageable GetProtectionContainerResourcesByBackupProtectionContainer(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.AsyncPageable GetProtectionContainerResourcesByBackupProtectionContainerAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.RecoveryServicesBackup.ProtectionIntentResource GetProtectionIntentResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.Response GetProtectionIntentResource(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string fabricName, string intentObjectName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GetProtectionIntentResourceAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string fabricName, string intentObjectName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.RecoveryServicesBackup.ProtectionIntentResourceCollection GetProtectionIntentResources(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } - public static Azure.Pageable GetProtectionIntentResourcesByBackupProtectionIntent(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string filter = null, string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.AsyncPageable GetProtectionIntentResourcesByBackupProtectionIntentAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string filter = null, string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.RecoveryServicesBackup.ProtectionPolicyResource GetProtectionPolicyResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.Response GetProtectionPolicyResource(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string policyName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GetProtectionPolicyResourceAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string policyName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.RecoveryServicesBackup.ProtectionPolicyResourceCollection GetProtectionPolicyResources(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName) { throw null; } - public static Azure.ResourceManager.RecoveryServicesBackup.RecoveryPointResource GetRecoveryPointResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.RecoveryServicesBackup.ResourceGuardProxyBaseResource GetResourceGuardProxyBaseResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.Response GetResourceGuardProxyBaseResource(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string resourceGuardProxyName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GetResourceGuardProxyBaseResourceAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string resourceGuardProxyName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.RecoveryServicesBackup.ResourceGuardProxyBaseResourceCollection GetResourceGuardProxyBaseResources(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName) { throw null; } - public static Azure.Response GetSecurityPIN(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, Azure.ResourceManager.RecoveryServicesBackup.Models.SecurityPinBase securityPinBase = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GetSecurityPINAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, Azure.ResourceManager.RecoveryServicesBackup.Models.SecurityPinBase securityPinBase = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.Pageable GetSoftDeletedProtectionContainers(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.AsyncPageable GetSoftDeletedProtectionContainersAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.Response GetValidateOperationResult(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string operationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GetValidateOperationResultAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string operationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.Response GetValidateOperationStatus(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string operationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GetValidateOperationStatusAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string operationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.ResourceGuardProxyCollection GetResourceGuardProxies(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName) { throw null; } + public static Azure.Response GetResourceGuardProxy(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string resourceGuardProxyName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetResourceGuardProxyAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string resourceGuardProxyName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.ResourceGuardProxyResource GetResourceGuardProxyResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.Response GetSecurityPin(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, Azure.ResourceManager.RecoveryServicesBackup.Models.SecurityPinContent content = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetSecurityPinAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, Azure.ResourceManager.RecoveryServicesBackup.Models.SecurityPinContent content = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Pageable GetSoftDeletedProtectionContainers(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.AsyncPageable GetSoftDeletedProtectionContainersAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Response RefreshProtectionContainer(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string fabricName, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static System.Threading.Tasks.Task RefreshProtectionContainerAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string fabricName, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.ArmOperation TriggerValidateOperation(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.WaitUntil waitUntil, string vaultName, Azure.ResourceManager.RecoveryServicesBackup.Models.ValidateOperationRequest validateOperationRequest, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task TriggerValidateOperationAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.WaitUntil waitUntil, string vaultName, Azure.ResourceManager.RecoveryServicesBackup.Models.ValidateOperationRequest validateOperationRequest, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.Response ValidateFeatureSupport(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string azureRegion, Azure.ResourceManager.RecoveryServicesBackup.Models.FeatureSupportContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> ValidateFeatureSupportAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string azureRegion, Azure.ResourceManager.RecoveryServicesBackup.Models.FeatureSupportContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.Response ValidateOperation(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, Azure.ResourceManager.RecoveryServicesBackup.Models.ValidateOperationRequest validateOperationRequest, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> ValidateOperationAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, Azure.ResourceManager.RecoveryServicesBackup.Models.ValidateOperationRequest validateOperationRequest, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.Response ValidateProtectionIntent(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string azureRegion, Azure.ResourceManager.RecoveryServicesBackup.Models.PreValidateEnableBackupContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> ValidateProtectionIntentAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string azureRegion, Azure.ResourceManager.RecoveryServicesBackup.Models.PreValidateEnableBackupContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Response ValidateFeatureSupport(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, Azure.ResourceManager.RecoveryServicesBackup.Models.FeatureSupportContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> ValidateFeatureSupportAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, Azure.ResourceManager.RecoveryServicesBackup.Models.FeatureSupportContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Response ValidateProtectionIntent(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, Azure.ResourceManager.RecoveryServicesBackup.Models.PreValidateEnableBackupContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> ValidateProtectionIntentAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, Azure.ResourceManager.RecoveryServicesBackup.Models.PreValidateEnableBackupContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } - public partial class ResourceGuardProxyBaseResource : Azure.ResourceManager.ArmResource + public partial class ResourceGuardProxyCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { - public static readonly Azure.Core.ResourceType ResourceType; - protected ResourceGuardProxyBaseResource() { } - public virtual Azure.ResourceManager.RecoveryServicesBackup.ResourceGuardProxyBaseResourceData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string vaultName, string resourceGuardProxyName) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response UnlockDelete(Azure.ResourceManager.RecoveryServicesBackup.Models.UnlockDeleteContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UnlockDeleteAsync(Azure.ResourceManager.RecoveryServicesBackup.Models.UnlockDeleteContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.RecoveryServicesBackup.ResourceGuardProxyBaseResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.RecoveryServicesBackup.ResourceGuardProxyBaseResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class ResourceGuardProxyBaseResourceCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected ResourceGuardProxyBaseResourceCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string resourceGuardProxyName, Azure.ResourceManager.RecoveryServicesBackup.ResourceGuardProxyBaseResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string resourceGuardProxyName, Azure.ResourceManager.RecoveryServicesBackup.ResourceGuardProxyBaseResourceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected ResourceGuardProxyCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string resourceGuardProxyName, Azure.ResourceManager.RecoveryServicesBackup.ResourceGuardProxyData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string resourceGuardProxyName, Azure.ResourceManager.RecoveryServicesBackup.ResourceGuardProxyData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Exists(string resourceGuardProxyName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string resourceGuardProxyName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string resourceGuardProxyName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string resourceGuardProxyName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + public virtual Azure.Response Get(string resourceGuardProxyName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string resourceGuardProxyName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class ResourceGuardProxyBaseResourceData : Azure.ResourceManager.Models.TrackedResourceData + public partial class ResourceGuardProxyData : Azure.ResourceManager.Models.TrackedResourceData { - public ResourceGuardProxyBaseResourceData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } + public ResourceGuardProxyData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } public Azure.ETag? ETag { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.ResourceGuardProxyBase Properties { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.ResourceGuardProxyProperties Properties { get { throw null; } set { } } + } + public partial class ResourceGuardProxyResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected ResourceGuardProxyResource() { } + public virtual Azure.ResourceManager.RecoveryServicesBackup.ResourceGuardProxyData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string vaultName, string resourceGuardProxyName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response UnlockDelete(Azure.ResourceManager.RecoveryServicesBackup.Models.UnlockDeleteContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UnlockDeleteAsync(Azure.ResourceManager.RecoveryServicesBackup.Models.UnlockDeleteContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.RecoveryServicesBackup.ResourceGuardProxyData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.RecoveryServicesBackup.ResourceGuardProxyData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } } namespace Azure.ResourceManager.RecoveryServicesBackup.Models @@ -565,635 +537,251 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.AcquireStorageAccountLock left, Azure.ResourceManager.RecoveryServicesBackup.Models.AcquireStorageAccountLock right) { throw null; } public override string ToString() { throw null; } } - public partial class AzureBackupGoalFeatureSupportRequest : Azure.ResourceManager.RecoveryServicesBackup.Models.FeatureSupportContent - { - public AzureBackupGoalFeatureSupportRequest() { } - } - public partial class AzureBackupServerContainer : Azure.ResourceManager.RecoveryServicesBackup.Models.DpmContainer - { - public AzureBackupServerContainer() { } - } - public partial class AzureBackupServerEngine : Azure.ResourceManager.RecoveryServicesBackup.Models.BackupEngineBase + public partial class BackupCommonSettings { - public AzureBackupServerEngine() { } + public BackupCommonSettings() { } + public bool? IsCompression { get { throw null; } set { } } + public bool? IsSqlCompression { get { throw null; } set { } } + public string TimeZone { get { throw null; } set { } } } - public partial class AzureFileShareBackupRequest : Azure.ResourceManager.RecoveryServicesBackup.Models.BackupRequest + public abstract partial class BackupContent { - public AzureFileShareBackupRequest() { } - public System.DateTimeOffset? RecoveryPointExpiryTimeInUTC { get { throw null; } set { } } + protected BackupContent() { } } - public partial class AzureFileShareProtectableItem : Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadProtectableItem + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct BackupCreateMode : System.IEquatable { - public AzureFileShareProtectableItem() { } - public Azure.ResourceManager.RecoveryServicesBackup.Models.AzureFileShareType? AzureFileShareType { get { throw null; } set { } } - public string ParentContainerFabricId { get { throw null; } set { } } - public string ParentContainerFriendlyName { get { throw null; } set { } } + private readonly object _dummy; + private readonly int _dummyPrimitive; + public BackupCreateMode(string value) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode Default { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode Invalid { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode Recover { get { throw null; } } + public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode left, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode right) { throw null; } + public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode left, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode right) { throw null; } + public override string ToString() { throw null; } } - public partial class AzureFileshareProtectedItem : Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectedItem + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct BackupDataSourceType : System.IEquatable { - public AzureFileshareProtectedItem() { } - public Azure.ResourceManager.RecoveryServicesBackup.Models.AzureFileshareProtectedItemExtendedInfo ExtendedInfo { get { throw null; } set { } } - public string FriendlyName { get { throw null; } set { } } - public System.Collections.Generic.IDictionary KpisHealths { get { throw null; } } - public System.DateTimeOffset? LastBackupOn { get { throw null; } set { } } - public string LastBackupStatus { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectionState? ProtectionState { get { throw null; } set { } } - public string ProtectionStatus { get { throw null; } set { } } + private readonly object _dummy; + private readonly int _dummyPrimitive; + public BackupDataSourceType(string value) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType AzureFileShare { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType AzureSqlDB { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType Client { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType Exchange { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType FileFolder { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType GenericDataSource { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType Invalid { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType SapAseDatabase { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType SapHanaDatabase { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType SapHanaDBInstance { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType Sharepoint { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType SqlDatabase { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType SqlDB { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType SystemState { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType Vm { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType VMwareVm { get { throw null; } } + public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType left, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType right) { throw null; } + public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType left, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType right) { throw null; } + public override string ToString() { throw null; } } - public partial class AzureFileshareProtectedItemExtendedInfo + public partial class BackupDay { - public AzureFileshareProtectedItemExtendedInfo() { } - public System.DateTimeOffset? OldestRecoveryPoint { get { throw null; } set { } } - public string PolicyState { get { throw null; } set { } } - public int? RecoveryPointCount { get { throw null; } set { } } - public string ResourceState { get { throw null; } } - public System.DateTimeOffset? ResourceStateSyncOn { get { throw null; } } + public BackupDay() { } + public int? Date { get { throw null; } set { } } + public bool? IsLast { get { throw null; } set { } } } - public partial class AzureFileShareProtectionPolicy : Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectionPolicy + public enum BackupDayOfWeek { - public AzureFileShareProtectionPolicy() { } - public Azure.ResourceManager.RecoveryServicesBackup.Models.RetentionPolicy RetentionPolicy { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.SchedulePolicy SchedulePolicy { get { throw null; } set { } } - public string TimeZone { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadType? WorkLoadType { get { throw null; } set { } } + Sunday = 0, + Monday = 1, + Tuesday = 2, + Wednesday = 3, + Thursday = 4, + Friday = 5, + Saturday = 6, } - public partial class AzureFileShareProvisionILRRequest : Azure.ResourceManager.RecoveryServicesBackup.Models.ILRRequest + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct BackupEncryptionAtRestType : System.IEquatable { - public AzureFileShareProvisionILRRequest() { } - public string RecoveryPointId { get { throw null; } set { } } - public string SourceResourceId { get { throw null; } set { } } + private readonly object _dummy; + private readonly int _dummyPrimitive; + public BackupEncryptionAtRestType(string value) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupEncryptionAtRestType CustomerManaged { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupEncryptionAtRestType Invalid { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupEncryptionAtRestType MicrosoftManaged { get { throw null; } } + public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupEncryptionAtRestType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupEncryptionAtRestType left, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupEncryptionAtRestType right) { throw null; } + public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.BackupEncryptionAtRestType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupEncryptionAtRestType left, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupEncryptionAtRestType right) { throw null; } + public override string ToString() { throw null; } } - public partial class AzureFileShareRecoveryPoint : Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPoint + public partial class BackupEngineExtendedInfo { - public AzureFileShareRecoveryPoint() { } - public System.Uri FileShareSnapshotUri { get { throw null; } set { } } - public System.DateTimeOffset? RecoveryPointOn { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPointProperties RecoveryPointProperties { get { throw null; } set { } } - public int? RecoveryPointSizeInGB { get { throw null; } set { } } - public string RecoveryPointType { get { throw null; } set { } } + public BackupEngineExtendedInfo() { } + public double? AvailableDiskSpace { get { throw null; } set { } } + public int? AzureProtectedInstances { get { throw null; } set { } } + public string DatabaseName { get { throw null; } set { } } + public int? DiskCount { get { throw null; } set { } } + public int? ProtectedItemsCount { get { throw null; } set { } } + public int? ProtectedServersCount { get { throw null; } set { } } + public System.DateTimeOffset? RefreshedOn { get { throw null; } set { } } + public double? UsedDiskSpace { get { throw null; } set { } } } - public partial class AzureFileShareRestoreRequest : Azure.ResourceManager.RecoveryServicesBackup.Models.RestoreRequest + public partial class BackupErrorDetail { - public AzureFileShareRestoreRequest() { } - public Azure.ResourceManager.RecoveryServicesBackup.Models.CopyOption? CopyOptions { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryType? RecoveryType { get { throw null; } set { } } - public System.Collections.Generic.IList RestoreFileSpecs { get { throw null; } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.RestoreRequestType? RestoreRequestType { get { throw null; } set { } } - public string SourceResourceId { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.TargetAFSRestoreInfo TargetDetails { get { throw null; } set { } } + public BackupErrorDetail() { } + public string Code { get { throw null; } } + public string Message { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Recommendations { get { throw null; } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct AzureFileShareType : System.IEquatable + public readonly partial struct BackupFabricName : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public AzureFileShareType(string value) { throw null; } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.AzureFileShareType Invalid { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.AzureFileShareType Xsmb { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.AzureFileShareType XSync { get { throw null; } } - public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.AzureFileShareType other) { throw null; } + public BackupFabricName(string value) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupFabricName Azure { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupFabricName Invalid { get { throw null; } } + public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupFabricName other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.AzureFileShareType left, Azure.ResourceManager.RecoveryServicesBackup.Models.AzureFileShareType right) { throw null; } - public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.AzureFileShareType (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.AzureFileShareType left, Azure.ResourceManager.RecoveryServicesBackup.Models.AzureFileShareType right) { throw null; } + public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupFabricName left, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupFabricName right) { throw null; } + public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.BackupFabricName (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupFabricName left, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupFabricName right) { throw null; } public override string ToString() { throw null; } } - public partial class AzureIaaSClassicComputeVmContainer : Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmContainer - { - public AzureIaaSClassicComputeVmContainer() { } - } - public partial class AzureIaaSClassicComputeVmProtectableItem : Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectableItem - { - public AzureIaaSClassicComputeVmProtectableItem() { } - } - public partial class AzureIaaSClassicComputeVmProtectedItem : Azure.ResourceManager.RecoveryServicesBackup.Models.AzureIaasVmProtectedItem + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct BackupFileShareType : System.IEquatable { - public AzureIaaSClassicComputeVmProtectedItem() { } - } - public partial class AzureIaaSComputeVmContainer : Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmContainer - { - public AzureIaaSComputeVmContainer() { } - } - public partial class AzureIaaSComputeVmProtectableItem : Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectableItem - { - public AzureIaaSComputeVmProtectableItem() { } - } - public partial class AzureIaaSComputeVmProtectedItem : Azure.ResourceManager.RecoveryServicesBackup.Models.AzureIaasVmProtectedItem - { - public AzureIaaSComputeVmProtectedItem() { } - } - public partial class AzureIaasVmErrorInfo - { - public AzureIaasVmErrorInfo() { } - public int? ErrorCode { get { throw null; } } - public string ErrorString { get { throw null; } } - public string ErrorTitle { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Recommendations { get { throw null; } } - } - public partial class AzureIaasVmHealthDetails : Azure.ResourceManager.RecoveryServicesBackup.Models.ResourceHealthDetails - { - public AzureIaasVmHealthDetails() { } - } - public partial class AzureIaasVmJob : Azure.ResourceManager.RecoveryServicesBackup.Models.Job - { - public AzureIaasVmJob() { } - public System.Collections.Generic.IList ActionsInfo { get { throw null; } } - public string ContainerName { get { throw null; } set { } } - public System.TimeSpan? Duration { get { throw null; } set { } } - public System.Collections.Generic.IList ErrorDetails { get { throw null; } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.AzureIaasVmJobExtendedInfo ExtendedInfo { get { throw null; } set { } } - public bool? IsUserTriggered { get { throw null; } set { } } - public string VirtualMachineVersion { get { throw null; } set { } } + private readonly object _dummy; + private readonly int _dummyPrimitive; + public BackupFileShareType(string value) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupFileShareType Invalid { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupFileShareType Xsmb { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupFileShareType XSync { get { throw null; } } + public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupFileShareType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupFileShareType left, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupFileShareType right) { throw null; } + public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.BackupFileShareType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupFileShareType left, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupFileShareType right) { throw null; } + public override string ToString() { throw null; } } - public partial class AzureIaasVmJobExtendedInfo + public abstract partial class BackupGenericEngine { - public AzureIaasVmJobExtendedInfo() { } - public string DynamicErrorMessage { get { throw null; } set { } } - public string EstimatedRemainingDurationValue { get { throw null; } set { } } - public System.Collections.Generic.IDictionary InternalPropertyBag { get { throw null; } } - public double? ProgressPercentage { get { throw null; } set { } } - public System.Collections.Generic.IDictionary PropertyBag { get { throw null; } } - public System.Collections.Generic.IList TasksList { get { throw null; } } + protected BackupGenericEngine() { } + public string AzureBackupAgentVersion { get { throw null; } set { } } + public string BackupEngineId { get { throw null; } set { } } + public string BackupEngineState { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? BackupManagementType { get { throw null; } set { } } + public bool? CanReRegister { get { throw null; } set { } } + public string DpmVersion { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupEngineExtendedInfo ExtendedInfo { get { throw null; } set { } } + public string FriendlyName { get { throw null; } set { } } + public string HealthStatus { get { throw null; } set { } } + public bool? IsAzureBackupAgentUpgradeAvailable { get { throw null; } set { } } + public bool? IsDpmUpgradeAvailable { get { throw null; } set { } } + public string RegistrationStatus { get { throw null; } set { } } } - public partial class AzureIaasVmJobTaskDetails + public abstract partial class BackupGenericJob { - public AzureIaasVmJobTaskDetails() { } - public System.TimeSpan? Duration { get { throw null; } set { } } + protected BackupGenericJob() { } + public string ActivityId { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? BackupManagementType { get { throw null; } set { } } public System.DateTimeOffset? EndOn { get { throw null; } set { } } - public string InstanceId { get { throw null; } set { } } - public double? ProgressPercentage { get { throw null; } set { } } + public string EntityFriendlyName { get { throw null; } set { } } + public string Operation { get { throw null; } set { } } public System.DateTimeOffset? StartOn { get { throw null; } set { } } public string Status { get { throw null; } set { } } - public string TaskExecutionDetails { get { throw null; } set { } } - public string TaskId { get { throw null; } set { } } } - public partial class AzureIaasVmJobV2 : Azure.ResourceManager.RecoveryServicesBackup.Models.Job + public abstract partial class BackupGenericProtectedItem { - public AzureIaasVmJobV2() { } - public System.Collections.Generic.IList ActionsInfo { get { throw null; } } + protected BackupGenericProtectedItem() { } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? BackupManagementType { get { throw null; } } + public string BackupSetName { get { throw null; } set { } } public string ContainerName { get { throw null; } set { } } - public System.TimeSpan? Duration { get { throw null; } set { } } - public System.Collections.Generic.IList ErrorDetails { get { throw null; } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.AzureIaasVmJobExtendedInfo ExtendedInfo { get { throw null; } set { } } - public string VirtualMachineVersion { get { throw null; } set { } } - } - public partial class AzureIaasVmProtectedItem : Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectedItem - { - public AzureIaasVmProtectedItem() { } - public Azure.ResourceManager.RecoveryServicesBackup.Models.AzureIaasVmProtectedItemExtendedInfo ExtendedInfo { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.ExtendedProperties ExtendedProperties { get { throw null; } set { } } - public string FriendlyName { get { throw null; } } - public System.Collections.Generic.IList HealthDetails { get { throw null; } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.HealthStatus? HealthStatus { get { throw null; } } - public System.Collections.Generic.IDictionary KpisHealths { get { throw null; } } - public System.DateTimeOffset? LastBackupOn { get { throw null; } } - public string LastBackupStatus { get { throw null; } set { } } - public string ProtectedItemDataId { get { throw null; } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectionState? ProtectionState { get { throw null; } set { } } - public string ProtectionStatus { get { throw null; } set { } } - public string VirtualMachineId { get { throw null; } } - } - public partial class AzureIaasVmProtectedItemExtendedInfo - { - public AzureIaasVmProtectedItemExtendedInfo() { } - public System.DateTimeOffset? NewestRecoveryPointInArchive { get { throw null; } set { } } - public System.DateTimeOffset? OldestRecoveryPoint { get { throw null; } set { } } - public System.DateTimeOffset? OldestRecoveryPointInArchive { get { throw null; } set { } } - public System.DateTimeOffset? OldestRecoveryPointInVault { get { throw null; } set { } } - public bool? PolicyInconsistent { get { throw null; } set { } } - public int? RecoveryPointCount { get { throw null; } set { } } - } - public partial class AzureIaasVmProtectionPolicy : Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectionPolicy - { - public AzureIaasVmProtectionPolicy() { } - public Azure.ResourceManager.RecoveryServicesBackup.Models.InstantRPAdditionalDetails InstantRPDetails { get { throw null; } set { } } - public int? InstantRpRetentionRangeInDays { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmPolicyType? PolicyType { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.RetentionPolicy RetentionPolicy { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.SchedulePolicy SchedulePolicy { get { throw null; } set { } } - public System.Collections.Generic.IDictionary TieringPolicy { get { throw null; } } - public string TimeZone { get { throw null; } set { } } - } - public partial class AzureRecoveryServiceVaultProtectionIntent : Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectionIntent - { - public AzureRecoveryServiceVaultProtectionIntent() { } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCreateMode? CreateMode { get { throw null; } set { } } + public System.DateTimeOffset? DeferredDeletedOn { get { throw null; } set { } } + public string DeferredDeleteTimeRemaining { get { throw null; } set { } } + public bool? IsArchiveEnabled { get { throw null; } set { } } + public bool? IsDeferredDeleteScheduleUpcoming { get { throw null; } set { } } + public bool? IsRehydrate { get { throw null; } set { } } + public bool? IsScheduledForDeferredDelete { get { throw null; } set { } } + public System.DateTimeOffset? LastRecoverOn { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier PolicyId { get { throw null; } set { } } + public string PolicyName { get { throw null; } set { } } + public System.Collections.Generic.IList ResourceGuardOperationRequests { get { throw null; } } + public int? SoftDeleteRetentionPeriod { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier SourceResourceId { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? WorkloadType { get { throw null; } } } - public partial class AzureResourceProtectionIntent : Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectionIntent + public abstract partial class BackupGenericProtectionContainer { - public AzureResourceProtectionIntent() { } + protected BackupGenericProtectionContainer() { } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? BackupManagementType { get { throw null; } set { } } public string FriendlyName { get { throw null; } set { } } + public string HealthStatus { get { throw null; } set { } } + public string ProtectableObjectType { get { throw null; } set { } } + public string RegistrationStatus { get { throw null; } set { } } } - public partial class AzureSqlAGWorkloadContainerProtectionContainer : Azure.ResourceManager.RecoveryServicesBackup.Models.AzureWorkloadContainer - { - public AzureSqlAGWorkloadContainerProtectionContainer() { } - } - public partial class AzureSqlContainer : Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectionContainer - { - public AzureSqlContainer() { } - } - public partial class AzureSqlProtectedItem : Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectedItem - { - public AzureSqlProtectedItem() { } - public Azure.ResourceManager.RecoveryServicesBackup.Models.AzureSqlProtectedItemExtendedInfo ExtendedInfo { get { throw null; } set { } } - public string ProtectedItemDataId { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectedItemState? ProtectionState { get { throw null; } set { } } - } - public partial class AzureSqlProtectedItemExtendedInfo - { - public AzureSqlProtectedItemExtendedInfo() { } - public System.DateTimeOffset? OldestRecoveryPoint { get { throw null; } set { } } - public string PolicyState { get { throw null; } set { } } - public int? RecoveryPointCount { get { throw null; } set { } } - } - public partial class AzureSqlProtectionPolicy : Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectionPolicy - { - public AzureSqlProtectionPolicy() { } - public Azure.ResourceManager.RecoveryServicesBackup.Models.RetentionPolicy RetentionPolicy { get { throw null; } set { } } - } - public partial class AzureStorageContainer : Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectionContainer - { - public AzureStorageContainer() { } - public Azure.ResourceManager.RecoveryServicesBackup.Models.AcquireStorageAccountLock? AcquireStorageAccountLock { get { throw null; } set { } } - public long? ProtectedItemCount { get { throw null; } set { } } - public string ResourceGroup { get { throw null; } set { } } - public string SourceResourceId { get { throw null; } set { } } - public string StorageAccountVersion { get { throw null; } set { } } - } - public partial class AzureStorageErrorInfo - { - public AzureStorageErrorInfo() { } - public int? ErrorCode { get { throw null; } set { } } - public string ErrorString { get { throw null; } set { } } - public System.Collections.Generic.IList Recommendations { get { throw null; } } - } - public partial class AzureStorageJob : Azure.ResourceManager.RecoveryServicesBackup.Models.Job - { - public AzureStorageJob() { } - public System.Collections.Generic.IList ActionsInfo { get { throw null; } } - public System.TimeSpan? Duration { get { throw null; } set { } } - public System.Collections.Generic.IList ErrorDetails { get { throw null; } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.AzureStorageJobExtendedInfo ExtendedInfo { get { throw null; } set { } } - public bool? IsUserTriggered { get { throw null; } set { } } - public string StorageAccountName { get { throw null; } set { } } - public string StorageAccountVersion { get { throw null; } set { } } - } - public partial class AzureStorageJobExtendedInfo - { - public AzureStorageJobExtendedInfo() { } - public string DynamicErrorMessage { get { throw null; } set { } } - public System.Collections.Generic.IDictionary PropertyBag { get { throw null; } } - public System.Collections.Generic.IList TasksList { get { throw null; } } - } - public partial class AzureStorageJobTaskDetails - { - public AzureStorageJobTaskDetails() { } - public string Status { get { throw null; } set { } } - public string TaskId { get { throw null; } set { } } - } - public partial class AzureStorageProtectableContainer : Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectableContainer - { - public AzureStorageProtectableContainer() { } - } - public partial class AzureVmAppContainerProtectableContainer : Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectableContainer - { - public AzureVmAppContainerProtectableContainer() { } - } - public partial class AzureVmAppContainerProtectionContainer : Azure.ResourceManager.RecoveryServicesBackup.Models.AzureWorkloadContainer - { - public AzureVmAppContainerProtectionContainer() { } - } - public partial class AzureVmResourceFeatureSupportRequest : Azure.ResourceManager.RecoveryServicesBackup.Models.FeatureSupportContent - { - public AzureVmResourceFeatureSupportRequest() { } - public string VmSize { get { throw null; } set { } } - public string VmSku { get { throw null; } set { } } - } - public partial class AzureVmResourceFeatureSupportResponse - { - internal AzureVmResourceFeatureSupportResponse() { } - public Azure.ResourceManager.RecoveryServicesBackup.Models.SupportStatus? SupportStatus { get { throw null; } } - } - public partial class AzureVmWorkloadItem : Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadItem - { - public AzureVmWorkloadItem() { } - public bool? IsAutoProtectable { get { throw null; } set { } } - public string ParentName { get { throw null; } set { } } - public string ServerName { get { throw null; } set { } } - public int? Subinquireditemcount { get { throw null; } set { } } - public int? SubWorkloadItemCount { get { throw null; } set { } } - } - public partial class AzureVmWorkloadProtectableItem : Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadProtectableItem - { - public AzureVmWorkloadProtectableItem() { } - public bool? IsAutoProtectable { get { throw null; } set { } } - public bool? IsAutoProtected { get { throw null; } set { } } - public string ParentName { get { throw null; } set { } } - public string ParentUniqueName { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.PreBackupValidation Prebackupvalidation { get { throw null; } set { } } - public string ServerName { get { throw null; } set { } } - public int? Subinquireditemcount { get { throw null; } set { } } - public int? Subprotectableitemcount { get { throw null; } set { } } - } - public partial class AzureVmWorkloadProtectedItem : Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectedItem - { - public AzureVmWorkloadProtectedItem() { } - public Azure.ResourceManager.RecoveryServicesBackup.Models.AzureVmWorkloadProtectedItemExtendedInfo ExtendedInfo { get { throw null; } set { } } - public string FriendlyName { get { throw null; } } - public System.Collections.Generic.IDictionary KpisHealths { get { throw null; } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.ErrorDetail LastBackupErrorDetail { get { throw null; } set { } } - public System.DateTimeOffset? LastBackupOn { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.LastBackupStatus? LastBackupStatus { get { throw null; } set { } } - public string ParentName { get { throw null; } set { } } - public string ParentType { get { throw null; } set { } } - public string ProtectedItemDataSourceId { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectedItemHealthStatus? ProtectedItemHealthStatus { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectionState? ProtectionState { get { throw null; } set { } } - public string ProtectionStatus { get { throw null; } } - public string ServerName { get { throw null; } set { } } - } - public partial class AzureVmWorkloadProtectedItemExtendedInfo - { - public AzureVmWorkloadProtectedItemExtendedInfo() { } - public System.DateTimeOffset? NewestRecoveryPointInArchive { get { throw null; } set { } } - public System.DateTimeOffset? OldestRecoveryPoint { get { throw null; } set { } } - public System.DateTimeOffset? OldestRecoveryPointInArchive { get { throw null; } set { } } - public System.DateTimeOffset? OldestRecoveryPointInVault { get { throw null; } set { } } - public string PolicyState { get { throw null; } set { } } - public string RecoveryModel { get { throw null; } set { } } - public int? RecoveryPointCount { get { throw null; } set { } } - } - public partial class AzureVmWorkloadProtectionPolicy : Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectionPolicy - { - public AzureVmWorkloadProtectionPolicy() { } - public bool? MakePolicyConsistent { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.Settings Settings { get { throw null; } set { } } - public System.Collections.Generic.IList SubProtectionPolicy { get { throw null; } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadType? WorkLoadType { get { throw null; } set { } } - } - public partial class AzureVmWorkloadSAPAseDatabaseProtectedItem : Azure.ResourceManager.RecoveryServicesBackup.Models.AzureVmWorkloadProtectedItem - { - public AzureVmWorkloadSAPAseDatabaseProtectedItem() { } - } - public partial class AzureVmWorkloadSAPAseDatabaseWorkloadItem : Azure.ResourceManager.RecoveryServicesBackup.Models.AzureVmWorkloadItem - { - public AzureVmWorkloadSAPAseDatabaseWorkloadItem() { } - } - public partial class AzureVmWorkloadSAPAseSystemProtectableItem : Azure.ResourceManager.RecoveryServicesBackup.Models.AzureVmWorkloadProtectableItem - { - public AzureVmWorkloadSAPAseSystemProtectableItem() { } - } - public partial class AzureVmWorkloadSAPAseSystemWorkloadItem : Azure.ResourceManager.RecoveryServicesBackup.Models.AzureVmWorkloadItem - { - public AzureVmWorkloadSAPAseSystemWorkloadItem() { } - } - public partial class AzureVmWorkloadSAPHanaDatabaseProtectableItem : Azure.ResourceManager.RecoveryServicesBackup.Models.AzureVmWorkloadProtectableItem - { - public AzureVmWorkloadSAPHanaDatabaseProtectableItem() { } - } - public partial class AzureVmWorkloadSAPHanaDatabaseProtectedItem : Azure.ResourceManager.RecoveryServicesBackup.Models.AzureVmWorkloadProtectedItem - { - public AzureVmWorkloadSAPHanaDatabaseProtectedItem() { } - } - public partial class AzureVmWorkloadSAPHanaDatabaseWorkloadItem : Azure.ResourceManager.RecoveryServicesBackup.Models.AzureVmWorkloadItem - { - public AzureVmWorkloadSAPHanaDatabaseWorkloadItem() { } - } - public partial class AzureVmWorkloadSAPHanaDBInstance : Azure.ResourceManager.RecoveryServicesBackup.Models.AzureVmWorkloadProtectableItem - { - public AzureVmWorkloadSAPHanaDBInstance() { } - } - public partial class AzureVmWorkloadSAPHanaDBInstanceProtectedItem : Azure.ResourceManager.RecoveryServicesBackup.Models.AzureVmWorkloadProtectedItem - { - public AzureVmWorkloadSAPHanaDBInstanceProtectedItem() { } - } - public partial class AzureVmWorkloadSAPHanaHSR : Azure.ResourceManager.RecoveryServicesBackup.Models.AzureVmWorkloadProtectableItem - { - public AzureVmWorkloadSAPHanaHSR() { } - } - public partial class AzureVmWorkloadSAPHanaSystemProtectableItem : Azure.ResourceManager.RecoveryServicesBackup.Models.AzureVmWorkloadProtectableItem - { - public AzureVmWorkloadSAPHanaSystemProtectableItem() { } - } - public partial class AzureVmWorkloadSAPHanaSystemWorkloadItem : Azure.ResourceManager.RecoveryServicesBackup.Models.AzureVmWorkloadItem - { - public AzureVmWorkloadSAPHanaSystemWorkloadItem() { } - } - public partial class AzureVmWorkloadSQLAvailabilityGroupProtectableItem : Azure.ResourceManager.RecoveryServicesBackup.Models.AzureVmWorkloadProtectableItem - { - public AzureVmWorkloadSQLAvailabilityGroupProtectableItem() { } - } - public partial class AzureVmWorkloadSQLDatabaseProtectableItem : Azure.ResourceManager.RecoveryServicesBackup.Models.AzureVmWorkloadProtectableItem - { - public AzureVmWorkloadSQLDatabaseProtectableItem() { } - } - public partial class AzureVmWorkloadSQLDatabaseProtectedItem : Azure.ResourceManager.RecoveryServicesBackup.Models.AzureVmWorkloadProtectedItem - { - public AzureVmWorkloadSQLDatabaseProtectedItem() { } - } - public partial class AzureVmWorkloadSQLDatabaseWorkloadItem : Azure.ResourceManager.RecoveryServicesBackup.Models.AzureVmWorkloadItem - { - public AzureVmWorkloadSQLDatabaseWorkloadItem() { } - } - public partial class AzureVmWorkloadSQLInstanceProtectableItem : Azure.ResourceManager.RecoveryServicesBackup.Models.AzureVmWorkloadProtectableItem - { - public AzureVmWorkloadSQLInstanceProtectableItem() { } - } - public partial class AzureVmWorkloadSQLInstanceWorkloadItem : Azure.ResourceManager.RecoveryServicesBackup.Models.AzureVmWorkloadItem - { - public AzureVmWorkloadSQLInstanceWorkloadItem() { } - public System.Collections.Generic.IList DataDirectoryPaths { get { throw null; } } - } - public partial class AzureWorkloadAutoProtectionIntent : Azure.ResourceManager.RecoveryServicesBackup.Models.AzureRecoveryServiceVaultProtectionIntent - { - public AzureWorkloadAutoProtectionIntent() { } - } - public partial class AzureWorkloadBackupRequest : Azure.ResourceManager.RecoveryServicesBackup.Models.BackupRequest - { - public AzureWorkloadBackupRequest() { } - public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupType? BackupType { get { throw null; } set { } } - public bool? EnableCompression { get { throw null; } set { } } - public System.DateTimeOffset? RecoveryPointExpiryTimeInUTC { get { throw null; } set { } } - } - public partial class AzureWorkloadContainer : Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectionContainer - { - public AzureWorkloadContainer() { } - public Azure.ResourceManager.RecoveryServicesBackup.Models.AzureWorkloadContainerExtendedInfo ExtendedInfo { get { throw null; } set { } } - public System.DateTimeOffset? LastUpdatedOn { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.OperationType? OperationType { get { throw null; } set { } } - public string SourceResourceId { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadType? WorkloadType { get { throw null; } set { } } - } - public partial class AzureWorkloadContainerAutoProtectionIntent : Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectionIntent - { - public AzureWorkloadContainerAutoProtectionIntent() { } - } - public partial class AzureWorkloadContainerExtendedInfo - { - public AzureWorkloadContainerExtendedInfo() { } - public string HostServerName { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.InquiryInfo InquiryInfo { get { throw null; } set { } } - public System.Collections.Generic.IList NodesList { get { throw null; } } - } - public partial class AzureWorkloadErrorInfo - { - public AzureWorkloadErrorInfo() { } - public string AdditionalDetails { get { throw null; } set { } } - public int? ErrorCode { get { throw null; } set { } } - public string ErrorString { get { throw null; } set { } } - public string ErrorTitle { get { throw null; } set { } } - public System.Collections.Generic.IList Recommendations { get { throw null; } } - } - public partial class AzureWorkloadJob : Azure.ResourceManager.RecoveryServicesBackup.Models.Job - { - public AzureWorkloadJob() { } - public System.Collections.Generic.IList ActionsInfo { get { throw null; } } - public System.TimeSpan? Duration { get { throw null; } set { } } - public System.Collections.Generic.IList ErrorDetails { get { throw null; } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.AzureWorkloadJobExtendedInfo ExtendedInfo { get { throw null; } set { } } - public string WorkloadType { get { throw null; } set { } } - } - public partial class AzureWorkloadJobExtendedInfo - { - public AzureWorkloadJobExtendedInfo() { } - public string DynamicErrorMessage { get { throw null; } set { } } - public System.Collections.Generic.IDictionary PropertyBag { get { throw null; } } - public System.Collections.Generic.IList TasksList { get { throw null; } } - } - public partial class AzureWorkloadJobTaskDetails - { - public AzureWorkloadJobTaskDetails() { } - public string Status { get { throw null; } set { } } - public string TaskId { get { throw null; } set { } } - } - public partial class AzureWorkloadPointInTimeRecoveryPoint : Azure.ResourceManager.RecoveryServicesBackup.Models.AzureWorkloadRecoveryPoint - { - public AzureWorkloadPointInTimeRecoveryPoint() { } - public System.Collections.Generic.IList TimeRanges { get { throw null; } } - } - public partial class AzureWorkloadPointInTimeRestoreRequest : Azure.ResourceManager.RecoveryServicesBackup.Models.AzureWorkloadRestoreRequest - { - public AzureWorkloadPointInTimeRestoreRequest() { } - public System.DateTimeOffset? PointInTime { get { throw null; } set { } } - } - public partial class AzureWorkloadRecoveryPoint : Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPoint - { - public AzureWorkloadRecoveryPoint() { } - public System.Collections.Generic.IDictionary RecoveryPointMoveReadinessInfo { get { throw null; } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPointProperties RecoveryPointProperties { get { throw null; } set { } } - public System.Collections.Generic.IList RecoveryPointTierDetails { get { throw null; } } - public System.DateTimeOffset? RecoveryPointTimeInUTC { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.RestorePointType? RestorePointType { get { throw null; } set { } } - } - public partial class AzureWorkloadRestoreRequest : Azure.ResourceManager.RecoveryServicesBackup.Models.RestoreRequest - { - public AzureWorkloadRestoreRequest() { } - public System.Collections.Generic.IDictionary PropertyBag { get { throw null; } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryMode? RecoveryMode { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryType? RecoveryType { get { throw null; } set { } } - public string SourceResourceId { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.TargetRestoreInfo TargetInfo { get { throw null; } set { } } - public string TargetVirtualMachineId { get { throw null; } set { } } - } - public partial class AzureWorkloadSAPHanaPointInTimeRecoveryPoint : Azure.ResourceManager.RecoveryServicesBackup.Models.AzureWorkloadPointInTimeRecoveryPoint - { - public AzureWorkloadSAPHanaPointInTimeRecoveryPoint() { } - } - public partial class AzureWorkloadSAPHanaPointInTimeRestoreRequest : Azure.ResourceManager.RecoveryServicesBackup.Models.AzureWorkloadSAPHanaRestoreRequest - { - public AzureWorkloadSAPHanaPointInTimeRestoreRequest() { } - public System.DateTimeOffset? PointInTime { get { throw null; } set { } } - } - public partial class AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest : Azure.ResourceManager.RecoveryServicesBackup.Models.AzureWorkloadSAPHanaPointInTimeRestoreRequest - { - public AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest() { } - public Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPointRehydrationInfo RecoveryPointRehydrationInfo { get { throw null; } set { } } - } - public partial class AzureWorkloadSAPHanaRecoveryPoint : Azure.ResourceManager.RecoveryServicesBackup.Models.AzureWorkloadRecoveryPoint - { - public AzureWorkloadSAPHanaRecoveryPoint() { } - } - public partial class AzureWorkloadSAPHanaRestoreRequest : Azure.ResourceManager.RecoveryServicesBackup.Models.AzureWorkloadRestoreRequest - { - public AzureWorkloadSAPHanaRestoreRequest() { } - } - public partial class AzureWorkloadSAPHanaRestoreWithRehydrateRequest : Azure.ResourceManager.RecoveryServicesBackup.Models.AzureWorkloadSAPHanaRestoreRequest - { - public AzureWorkloadSAPHanaRestoreWithRehydrateRequest() { } - public Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPointRehydrationInfo RecoveryPointRehydrationInfo { get { throw null; } set { } } - } - public partial class AzureWorkloadSQLAutoProtectionIntent : Azure.ResourceManager.RecoveryServicesBackup.Models.AzureWorkloadAutoProtectionIntent - { - public AzureWorkloadSQLAutoProtectionIntent() { } - public Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadItemType? WorkloadItemType { get { throw null; } set { } } - } - public partial class AzureWorkloadSQLPointInTimeRecoveryPoint : Azure.ResourceManager.RecoveryServicesBackup.Models.AzureWorkloadSQLRecoveryPoint - { - public AzureWorkloadSQLPointInTimeRecoveryPoint() { } - public System.Collections.Generic.IList TimeRanges { get { throw null; } } - } - public partial class AzureWorkloadSQLPointInTimeRestoreRequest : Azure.ResourceManager.RecoveryServicesBackup.Models.AzureWorkloadSQLRestoreRequest - { - public AzureWorkloadSQLPointInTimeRestoreRequest() { } - public System.DateTimeOffset? PointInTime { get { throw null; } set { } } - } - public partial class AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest : Azure.ResourceManager.RecoveryServicesBackup.Models.AzureWorkloadSQLPointInTimeRestoreRequest - { - public AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest() { } - public Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPointRehydrationInfo RecoveryPointRehydrationInfo { get { throw null; } set { } } - } - public partial class AzureWorkloadSQLRecoveryPoint : Azure.ResourceManager.RecoveryServicesBackup.Models.AzureWorkloadRecoveryPoint + public abstract partial class BackupGenericProtectionIntent { - public AzureWorkloadSQLRecoveryPoint() { } - public Azure.ResourceManager.RecoveryServicesBackup.Models.AzureWorkloadSQLRecoveryPointExtendedInfo ExtendedInfo { get { throw null; } set { } } + protected BackupGenericProtectionIntent() { } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? BackupManagementType { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier ItemId { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier PolicyId { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionStatus? ProtectionState { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier SourceResourceId { get { throw null; } set { } } } - public partial class AzureWorkloadSQLRecoveryPointExtendedInfo + public abstract partial class BackupGenericProtectionPolicy { - public AzureWorkloadSQLRecoveryPointExtendedInfo() { } - public System.Collections.Generic.IList DataDirectoryPaths { get { throw null; } } - public System.DateTimeOffset? DataDirectoryTimeInUTC { get { throw null; } set { } } + protected BackupGenericProtectionPolicy() { } + public int? ProtectedItemsCount { get { throw null; } set { } } + public System.Collections.Generic.IList ResourceGuardOperationRequests { get { throw null; } } } - public partial class AzureWorkloadSQLRestoreRequest : Azure.ResourceManager.RecoveryServicesBackup.Models.AzureWorkloadRestoreRequest + public abstract partial class BackupGenericRecoveryPoint { - public AzureWorkloadSQLRestoreRequest() { } - public System.Collections.Generic.IList AlternateDirectoryPaths { get { throw null; } } - public bool? IsNonRecoverable { get { throw null; } set { } } - public bool? ShouldUseAlternateTargetLocation { get { throw null; } set { } } + protected BackupGenericRecoveryPoint() { } } - public partial class AzureWorkloadSQLRestoreWithRehydrateRequest : Azure.ResourceManager.RecoveryServicesBackup.Models.AzureWorkloadSQLRestoreRequest + public partial class BackupGoalFeatureSupportContent : Azure.ResourceManager.RecoveryServicesBackup.Models.FeatureSupportContent { - public AzureWorkloadSQLRestoreWithRehydrateRequest() { } - public Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPointRehydrationInfo RecoveryPointRehydrationInfo { get { throw null; } set { } } + public BackupGoalFeatureSupportContent() { } } - public abstract partial class BackupEngineBase + public partial class BackupHourlySchedule { - protected BackupEngineBase() { } - public string AzureBackupAgentVersion { get { throw null; } set { } } - public string BackupEngineId { get { throw null; } set { } } - public string BackupEngineState { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? BackupManagementType { get { throw null; } set { } } - public bool? CanReRegister { get { throw null; } set { } } - public string DpmVersion { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupEngineExtendedInfo ExtendedInfo { get { throw null; } set { } } - public string FriendlyName { get { throw null; } set { } } - public string HealthStatus { get { throw null; } set { } } - public bool? IsAzureBackupAgentUpgradeAvailable { get { throw null; } set { } } - public bool? IsDpmUpgradeAvailable { get { throw null; } set { } } - public string RegistrationStatus { get { throw null; } set { } } + public BackupHourlySchedule() { } + public int? Interval { get { throw null; } set { } } + public int? ScheduleWindowDuration { get { throw null; } set { } } + public System.DateTimeOffset? ScheduleWindowStartOn { get { throw null; } set { } } } - public partial class BackupEngineExtendedInfo + public partial class BackupIdentityInfo { - public BackupEngineExtendedInfo() { } - public double? AvailableDiskSpace { get { throw null; } set { } } - public int? AzureProtectedInstances { get { throw null; } set { } } - public string DatabaseName { get { throw null; } set { } } - public int? DiskCount { get { throw null; } set { } } - public int? ProtectedItemsCount { get { throw null; } set { } } - public int? ProtectedServersCount { get { throw null; } set { } } - public System.DateTimeOffset? RefreshedOn { get { throw null; } set { } } - public double? UsedDiskSpace { get { throw null; } set { } } + public BackupIdentityInfo() { } + public bool? IsSystemAssignedIdentity { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier ManagedIdentityResourceId { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct BackupItemType : System.IEquatable @@ -1202,17 +790,17 @@ public BackupEngineExtendedInfo() { } private readonly int _dummyPrimitive; public BackupItemType(string value) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupItemType AzureFileShare { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupItemType AzureSqlDb { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupItemType AzureSqlDB { get { throw null; } } public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupItemType Client { get { throw null; } } public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupItemType Exchange { get { throw null; } } public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupItemType FileFolder { get { throw null; } } public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupItemType GenericDataSource { get { throw null; } } public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupItemType Invalid { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupItemType SAPAseDatabase { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupItemType SAPHanaDatabase { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupItemType SAPHanaDBInstance { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupItemType SapAseDatabase { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupItemType SapHanaDatabase { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupItemType SapHanaDBInstance { get { throw null; } } public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupItemType Sharepoint { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupItemType SQLDataBase { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupItemType SqlDatabase { get { throw null; } } public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupItemType SqlDB { get { throw null; } } public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupItemType SystemState { get { throw null; } } public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupItemType Vm { get { throw null; } } @@ -1259,82 +847,228 @@ public partial class BackupManagementUsage internal BackupManagementUsage() { } public long? CurrentValue { get { throw null; } } public long? Limit { get { throw null; } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.NameInfo Name { get { throw null; } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupNameInfo Name { get { throw null; } } public System.DateTimeOffset? NextResetOn { get { throw null; } } public string QuotaPeriod { get { throw null; } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.UsagesUnit? Unit { get { throw null; } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupUsagesUnit? Unit { get { throw null; } } + } + public enum BackupMonthOfYear + { + Invalid = 0, + January = 1, + February = 2, + March = 3, + April = 4, + May = 5, + June = 6, + July = 7, + August = 8, + September = 9, + October = 10, + November = 11, + December = 12, } - public abstract partial class BackupRequest + public partial class BackupNameInfo { - protected BackupRequest() { } + internal BackupNameInfo() { } + public string LocalizedValue { get { throw null; } } + public string Value { get { throw null; } } } - public partial class BackupRequestResource : Azure.ResourceManager.Models.TrackedResourceData + public partial class BackupPrivateEndpointConnectionProperties { - public BackupRequestResource(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } - public Azure.ETag? ETag { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupRequest Properties { get { throw null; } set { } } + public BackupPrivateEndpointConnectionProperties() { } + public Azure.Core.ResourceIdentifier PrivateEndpointId { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryServicesBackupPrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupPrivateEndpointConnectionProvisioningState? ProvisioningState { get { throw null; } set { } } } - public partial class BackupResourceConfig + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct BackupPrivateEndpointConnectionProvisioningState : System.IEquatable { - public BackupResourceConfig() { } - public bool? CrossRegionRestoreFlag { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.DedupState? DedupState { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.StorageType? StorageModelType { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.StorageType? StorageType { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.StorageTypeState? StorageTypeState { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.XcoolState? XcoolState { get { throw null; } set { } } + private readonly object _dummy; + private readonly int _dummyPrimitive; + public BackupPrivateEndpointConnectionProvisioningState(string value) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupPrivateEndpointConnectionProvisioningState Deleting { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupPrivateEndpointConnectionProvisioningState Failed { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupPrivateEndpointConnectionProvisioningState Pending { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupPrivateEndpointConnectionProvisioningState Succeeded { get { throw null; } } + public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupPrivateEndpointConnectionProvisioningState other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupPrivateEndpointConnectionProvisioningState left, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupPrivateEndpointConnectionProvisioningState right) { throw null; } + public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.BackupPrivateEndpointConnectionProvisioningState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupPrivateEndpointConnectionProvisioningState left, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupPrivateEndpointConnectionProvisioningState right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct BackupProtectionState : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public BackupProtectionState(string value) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState BackupsSuspended { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState Invalid { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState IRPending { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState Protected { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState ProtectionError { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState ProtectionPaused { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState ProtectionStopped { get { throw null; } } + public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState left, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState right) { throw null; } + public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState left, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct BackupProtectionStatus : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public BackupProtectionStatus(string value) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionStatus Invalid { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionStatus NotProtected { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionStatus Protected { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionStatus Protecting { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionStatus ProtectionFailed { get { throw null; } } + public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionStatus other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionStatus left, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionStatus right) { throw null; } + public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionStatus (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionStatus left, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionStatus right) { throw null; } + public override string ToString() { throw null; } + } + public partial class BackupResourceConfigProperties + { + public BackupResourceConfigProperties() { } + public Azure.ResourceManager.RecoveryServicesBackup.Models.VaultDedupState? DedupState { get { throw null; } set { } } + public bool? EnableCrossRegionRestore { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupStorageType? StorageModelType { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupStorageType? StorageType { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupStorageTypeState? StorageTypeState { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.VaultXcoolState? XcoolState { get { throw null; } set { } } } public partial class BackupResourceEncryptionConfig { public BackupResourceEncryptionConfig() { } - public Azure.ResourceManager.RecoveryServicesBackup.Models.EncryptionAtRestType? EncryptionAtRestType { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupEncryptionAtRestType? EncryptionAtRestType { get { throw null; } set { } } public Azure.ResourceManager.RecoveryServicesBackup.Models.InfrastructureEncryptionState? InfrastructureEncryptionState { get { throw null; } set { } } public System.Uri KeyUri { get { throw null; } set { } } public Azure.ResourceManager.RecoveryServicesBackup.Models.LastUpdateStatus? LastUpdateStatus { get { throw null; } set { } } public string SubscriptionId { get { throw null; } set { } } } - public partial class BackupResourceEncryptionConfigExtended : Azure.ResourceManager.RecoveryServicesBackup.Models.BackupResourceEncryptionConfig + public partial class BackupResourceEncryptionConfigExtendedCreateOrUpdateContent : Azure.ResourceManager.Models.TrackedResourceData { - public BackupResourceEncryptionConfigExtended() { } - public string UserAssignedIdentity { get { throw null; } set { } } - public bool? UseSystemAssignedIdentity { get { throw null; } set { } } - } - public partial class BackupResourceEncryptionConfigExtendedResourceCreateOrUpdateContent : Azure.ResourceManager.Models.TrackedResourceData - { - public BackupResourceEncryptionConfigExtendedResourceCreateOrUpdateContent(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } + public BackupResourceEncryptionConfigExtendedCreateOrUpdateContent(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } public Azure.ETag? ETag { get { throw null; } set { } } public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupResourceEncryptionConfig Properties { get { throw null; } set { } } } - public partial class BackupResourceVaultConfig + public partial class BackupResourceEncryptionConfigExtendedProperties : Azure.ResourceManager.RecoveryServicesBackup.Models.BackupResourceEncryptionConfig + { + public BackupResourceEncryptionConfigExtendedProperties() { } + public Azure.Core.ResourceIdentifier UserAssignedIdentity { get { throw null; } set { } } + public bool? UseSystemAssignedIdentity { get { throw null; } set { } } + } + public partial class BackupResourceVaultConfigProperties { - public BackupResourceVaultConfig() { } + public BackupResourceVaultConfigProperties() { } public Azure.ResourceManager.RecoveryServicesBackup.Models.EnhancedSecurityState? EnhancedSecurityState { get { throw null; } set { } } public bool? IsSoftDeleteFeatureStateEditable { get { throw null; } set { } } public System.Collections.Generic.IList ResourceGuardOperationRequests { get { throw null; } } public Azure.ResourceManager.RecoveryServicesBackup.Models.SoftDeleteFeatureState? SoftDeleteFeatureState { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.StorageType? StorageModelType { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.StorageType? StorageType { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.StorageTypeState? StorageTypeState { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupStorageType? StorageModelType { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupStorageType? StorageType { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupStorageTypeState? StorageTypeState { get { throw null; } set { } } + } + public abstract partial class BackupRetentionPolicy + { + protected BackupRetentionPolicy() { } + } + public abstract partial class BackupSchedulePolicy + { + protected BackupSchedulePolicy() { } + } + public partial class BackupServerContainer : Azure.ResourceManager.RecoveryServicesBackup.Models.DpmContainer + { + public BackupServerContainer() { } + } + public partial class BackupServerEngine : Azure.ResourceManager.RecoveryServicesBackup.Models.BackupGenericEngine + { + public BackupServerEngine() { } } public partial class BackupStatusContent { public BackupStatusContent() { } public string PoLogicalName { get { throw null; } set { } } - public string ResourceId { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.DataSourceType? ResourceType { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier ResourceId { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? ResourceType { get { throw null; } set { } } } - public partial class BackupStatusResponse + public partial class BackupStatusResult { - internal BackupStatusResponse() { } + internal BackupStatusResult() { } public string ContainerName { get { throw null; } } public string ErrorCode { get { throw null; } } public string ErrorMessage { get { throw null; } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.FabricName? FabricName { get { throw null; } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupFabricName? FabricName { get { throw null; } } public string PolicyName { get { throw null; } } public string ProtectedItemName { get { throw null; } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectionStatus? ProtectionStatus { get { throw null; } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionStatus? ProtectionStatus { get { throw null; } } public string RegistrationStatus { get { throw null; } } - public string VaultId { get { throw null; } } + public Azure.Core.ResourceIdentifier VaultId { get { throw null; } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct BackupStorageType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public BackupStorageType(string value) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupStorageType GeoRedundant { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupStorageType Invalid { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupStorageType LocallyRedundant { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupStorageType ReadAccessGeoZoneRedundant { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupStorageType ZoneRedundant { get { throw null; } } + public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupStorageType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupStorageType left, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupStorageType right) { throw null; } + public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.BackupStorageType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupStorageType left, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupStorageType right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct BackupStorageTypeState : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public BackupStorageTypeState(string value) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupStorageTypeState Invalid { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupStorageTypeState Locked { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupStorageTypeState Unlocked { get { throw null; } } + public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupStorageTypeState other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupStorageTypeState left, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupStorageTypeState right) { throw null; } + public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.BackupStorageTypeState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupStorageTypeState left, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupStorageTypeState right) { throw null; } + public override string ToString() { throw null; } + } + public partial class BackupTieringPolicy + { + public BackupTieringPolicy() { } + public Azure.ResourceManager.RecoveryServicesBackup.Models.RetentionDurationType? DurationType { get { throw null; } set { } } + public int? DurationValue { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.TieringMode? TieringMode { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct BackupType : System.IEquatable @@ -1360,160 +1094,132 @@ internal BackupStatusResponse() { } public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupType left, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupType right) { throw null; } public override string ToString() { throw null; } } - public partial class BEKDetails - { - public BEKDetails() { } - public string SecretData { get { throw null; } set { } } - public System.Uri SecretUri { get { throw null; } set { } } - public string SecretVaultId { get { throw null; } set { } } - } - public partial class ClientScriptForConnect - { - internal ClientScriptForConnect() { } - public string OSType { get { throw null; } } - public string ScriptContent { get { throw null; } } - public string ScriptExtension { get { throw null; } } - public string ScriptNameSuffix { get { throw null; } } - public System.Uri Uri { get { throw null; } } - } - public partial class ContainerIdentityInfo - { - public ContainerIdentityInfo() { } - public string AadTenantId { get { throw null; } set { } } - public string Audience { get { throw null; } set { } } - public string ServicePrincipalClientId { get { throw null; } set { } } - public string UniqueName { get { throw null; } set { } } - } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct CopyOption : System.IEquatable + public readonly partial struct BackupUsagesUnit : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public CopyOption(string value) { throw null; } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.CopyOption CreateCopy { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.CopyOption FailOnConflict { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.CopyOption Invalid { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.CopyOption Overwrite { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.CopyOption Skip { get { throw null; } } - public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.CopyOption other) { throw null; } + public BackupUsagesUnit(string value) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupUsagesUnit Bytes { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupUsagesUnit BytesPerSecond { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupUsagesUnit Count { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupUsagesUnit CountPerSecond { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupUsagesUnit Percent { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupUsagesUnit Seconds { get { throw null; } } + public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupUsagesUnit other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.CopyOption left, Azure.ResourceManager.RecoveryServicesBackup.Models.CopyOption right) { throw null; } - public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.CopyOption (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.CopyOption left, Azure.ResourceManager.RecoveryServicesBackup.Models.CopyOption right) { throw null; } + public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupUsagesUnit left, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupUsagesUnit right) { throw null; } + public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.BackupUsagesUnit (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupUsagesUnit left, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupUsagesUnit right) { throw null; } public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct CreateMode : System.IEquatable + public readonly partial struct BackupValidationStatus : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public CreateMode(string value) { throw null; } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.CreateMode Default { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.CreateMode Invalid { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.CreateMode Recover { get { throw null; } } - public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.CreateMode other) { throw null; } + public BackupValidationStatus(string value) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupValidationStatus Failed { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupValidationStatus Invalid { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupValidationStatus Succeeded { get { throw null; } } + public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupValidationStatus other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.CreateMode left, Azure.ResourceManager.RecoveryServicesBackup.Models.CreateMode right) { throw null; } - public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.CreateMode (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.CreateMode left, Azure.ResourceManager.RecoveryServicesBackup.Models.CreateMode right) { throw null; } + public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupValidationStatus left, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupValidationStatus right) { throw null; } + public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.BackupValidationStatus (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupValidationStatus left, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupValidationStatus right) { throw null; } public override string ToString() { throw null; } } - public partial class DailyRetentionSchedule + public partial class BackupWeeklySchedule { - public DailyRetentionSchedule() { } - public Azure.ResourceManager.RecoveryServicesBackup.Models.RetentionDuration RetentionDuration { get { throw null; } set { } } - public System.Collections.Generic.IList RetentionTimes { get { throw null; } } + public BackupWeeklySchedule() { } + public System.Collections.Generic.IList ScheduleRunDays { get { throw null; } } + public System.Collections.Generic.IList ScheduleRunTimes { get { throw null; } } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct DataMoveLevel : System.IEquatable + public enum BackupWeekOfMonth { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public DataMoveLevel(string value) { throw null; } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.DataMoveLevel Container { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.DataMoveLevel Invalid { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.DataMoveLevel Vault { get { throw null; } } - public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.DataMoveLevel other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.DataMoveLevel left, Azure.ResourceManager.RecoveryServicesBackup.Models.DataMoveLevel right) { throw null; } - public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.DataMoveLevel (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.DataMoveLevel left, Azure.ResourceManager.RecoveryServicesBackup.Models.DataMoveLevel right) { throw null; } - public override string ToString() { throw null; } + First = 0, + Second = 1, + Third = 2, + Fourth = 3, + Last = 4, + Invalid = 5, } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct DataSourceType : System.IEquatable + public readonly partial struct BackupWorkloadType : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public DataSourceType(string value) { throw null; } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.DataSourceType AzureFileShare { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.DataSourceType AzureSqlDb { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.DataSourceType Client { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.DataSourceType Exchange { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.DataSourceType FileFolder { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.DataSourceType GenericDataSource { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.DataSourceType Invalid { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.DataSourceType SAPAseDatabase { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.DataSourceType SAPHanaDatabase { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.DataSourceType SAPHanaDBInstance { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.DataSourceType Sharepoint { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.DataSourceType SQLDataBase { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.DataSourceType SqlDB { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.DataSourceType SystemState { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.DataSourceType Vm { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.DataSourceType VMwareVm { get { throw null; } } - public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.DataSourceType other) { throw null; } + public BackupWorkloadType(string value) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupWorkloadType AzureFileShare { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupWorkloadType AzureSqlDB { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupWorkloadType Client { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupWorkloadType Exchange { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupWorkloadType FileFolder { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupWorkloadType GenericDataSource { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupWorkloadType Invalid { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupWorkloadType SapAseDatabase { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupWorkloadType SapHanaDatabase { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupWorkloadType SapHanaDBInstance { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupWorkloadType Sharepoint { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupWorkloadType SqlDatabase { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupWorkloadType SqlDB { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupWorkloadType SystemState { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupWorkloadType Vm { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.BackupWorkloadType VMwareVm { get { throw null; } } + public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupWorkloadType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.DataSourceType left, Azure.ResourceManager.RecoveryServicesBackup.Models.DataSourceType right) { throw null; } - public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.DataSourceType (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.DataSourceType left, Azure.ResourceManager.RecoveryServicesBackup.Models.DataSourceType right) { throw null; } + public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupWorkloadType left, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupWorkloadType right) { throw null; } + public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.BackupWorkloadType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.BackupWorkloadType left, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupWorkloadType right) { throw null; } public override string ToString() { throw null; } } - public partial class Day + public partial class BekDetails { - public Day() { } - public int? Date { get { throw null; } set { } } - public bool? IsLast { get { throw null; } set { } } + public BekDetails() { } + public string SecretData { get { throw null; } set { } } + public System.Uri SecretUri { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier SecretVaultId { get { throw null; } set { } } } - public enum DayOfWeek + public partial class ContainerIdentityInfo { - Sunday = 0, - Monday = 1, - Tuesday = 2, - Wednesday = 3, - Thursday = 4, - Friday = 5, - Saturday = 6, + public ContainerIdentityInfo() { } + public System.Guid? AadTenantId { get { throw null; } set { } } + public string Audience { get { throw null; } set { } } + public string ServicePrincipalClientId { get { throw null; } set { } } + public string UniqueName { get { throw null; } set { } } + } + public partial class DailyRetentionSchedule + { + public DailyRetentionSchedule() { } + public Azure.ResourceManager.RecoveryServicesBackup.Models.RetentionDuration RetentionDuration { get { throw null; } set { } } + public System.Collections.Generic.IList RetentionTimes { get { throw null; } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct DedupState : System.IEquatable + public readonly partial struct DataMoveLevel : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public DedupState(string value) { throw null; } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.DedupState Disabled { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.DedupState Enabled { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.DedupState Invalid { get { throw null; } } - public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.DedupState other) { throw null; } + public DataMoveLevel(string value) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.DataMoveLevel Container { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.DataMoveLevel Invalid { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.DataMoveLevel Vault { get { throw null; } } + public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.DataMoveLevel other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.DedupState left, Azure.ResourceManager.RecoveryServicesBackup.Models.DedupState right) { throw null; } - public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.DedupState (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.DedupState left, Azure.ResourceManager.RecoveryServicesBackup.Models.DedupState right) { throw null; } + public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.DataMoveLevel left, Azure.ResourceManager.RecoveryServicesBackup.Models.DataMoveLevel right) { throw null; } + public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.DataMoveLevel (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.DataMoveLevel left, Azure.ResourceManager.RecoveryServicesBackup.Models.DataMoveLevel right) { throw null; } public override string ToString() { throw null; } } public partial class DiskExclusionProperties @@ -1531,61 +1237,61 @@ public DiskInformation() { } public partial class DistributedNodesInfo { public DistributedNodesInfo() { } - public Azure.ResourceManager.RecoveryServicesBackup.Models.ErrorDetail ErrorDetail { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupErrorDetail ErrorDetail { get { throw null; } set { } } public string NodeName { get { throw null; } set { } } public string Status { get { throw null; } set { } } } - public partial class DpmBackupEngine : Azure.ResourceManager.RecoveryServicesBackup.Models.BackupEngineBase + public partial class DpmBackupEngine : Azure.ResourceManager.RecoveryServicesBackup.Models.BackupGenericEngine { public DpmBackupEngine() { } } - public partial class DpmContainer : Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectionContainer - { - public DpmContainer() { } - public bool? CanReRegister { get { throw null; } set { } } - public string ContainerId { get { throw null; } set { } } - public string DpmAgentVersion { get { throw null; } set { } } - public System.Collections.Generic.IList DpmServers { get { throw null; } } - public System.DateTimeOffset? ExtendedInfoLastRefreshedOn { get { throw null; } set { } } - public long? ProtectedItemCount { get { throw null; } set { } } - public string ProtectionStatus { get { throw null; } set { } } - public bool? UpgradeAvailable { get { throw null; } set { } } - } - public partial class DpmErrorInfo - { - public DpmErrorInfo() { } - public string ErrorString { get { throw null; } set { } } - public System.Collections.Generic.IList Recommendations { get { throw null; } } - } - public partial class DpmJob : Azure.ResourceManager.RecoveryServicesBackup.Models.Job + public partial class DpmBackupJob : Azure.ResourceManager.RecoveryServicesBackup.Models.BackupGenericJob { - public DpmJob() { } + public DpmBackupJob() { } public System.Collections.Generic.IList ActionsInfo { get { throw null; } } public string ContainerName { get { throw null; } set { } } public string ContainerType { get { throw null; } set { } } public string DpmServerName { get { throw null; } set { } } public System.TimeSpan? Duration { get { throw null; } set { } } public System.Collections.Generic.IList ErrorDetails { get { throw null; } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.DpmJobExtendedInfo ExtendedInfo { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.DpmBackupJobExtendedInfo ExtendedInfo { get { throw null; } set { } } public string WorkloadType { get { throw null; } set { } } } - public partial class DpmJobExtendedInfo + public partial class DpmBackupJobExtendedInfo { - public DpmJobExtendedInfo() { } + public DpmBackupJobExtendedInfo() { } public string DynamicErrorMessage { get { throw null; } set { } } public System.Collections.Generic.IDictionary PropertyBag { get { throw null; } } - public System.Collections.Generic.IList TasksList { get { throw null; } } + public System.Collections.Generic.IList TasksList { get { throw null; } } } - public partial class DpmJobTaskDetails + public partial class DpmBackupJobTaskDetails { - public DpmJobTaskDetails() { } + public DpmBackupJobTaskDetails() { } public System.TimeSpan? Duration { get { throw null; } set { } } public System.DateTimeOffset? EndOn { get { throw null; } set { } } public System.DateTimeOffset? StartOn { get { throw null; } set { } } public string Status { get { throw null; } set { } } public string TaskId { get { throw null; } set { } } } - public partial class DpmProtectedItem : Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectedItem + public partial class DpmContainer : Azure.ResourceManager.RecoveryServicesBackup.Models.BackupGenericProtectionContainer + { + public DpmContainer() { } + public bool? CanReRegister { get { throw null; } set { } } + public string ContainerId { get { throw null; } set { } } + public string DpmAgentVersion { get { throw null; } set { } } + public System.Collections.Generic.IList DpmServers { get { throw null; } } + public System.DateTimeOffset? ExtendedInfoLastRefreshedOn { get { throw null; } set { } } + public bool? IsUpgradeAvailable { get { throw null; } set { } } + public long? ProtectedItemCount { get { throw null; } set { } } + public string ProtectionStatus { get { throw null; } set { } } + } + public partial class DpmErrorInfo + { + public DpmErrorInfo() { } + public string ErrorString { get { throw null; } set { } } + public System.Collections.Generic.IList Recommendations { get { throw null; } } + } + public partial class DpmProtectedItem : Azure.ResourceManager.RecoveryServicesBackup.Models.BackupGenericProtectedItem { public DpmProtectedItem() { } public string BackupEngineName { get { throw null; } set { } } @@ -1599,109 +1305,168 @@ public DpmProtectedItemExtendedInfo() { } public string DiskStorageUsedInBytes { get { throw null; } set { } } public bool? IsCollocated { get { throw null; } set { } } public bool? IsPresentOnCloud { get { throw null; } set { } } + public bool? IsProtected { get { throw null; } set { } } public string LastBackupStatus { get { throw null; } set { } } public System.DateTimeOffset? LastRefreshedOn { get { throw null; } set { } } - public System.DateTimeOffset? OldestRecoveryPoint { get { throw null; } set { } } - public System.DateTimeOffset? OnPremiseLatestRecoveryPoint { get { throw null; } set { } } - public System.DateTimeOffset? OnPremiseOldestRecoveryPoint { get { throw null; } set { } } + public System.DateTimeOffset? OldestRecoverOn { get { throw null; } set { } } + public System.DateTimeOffset? OnPremiseLatestRecoverOn { get { throw null; } set { } } + public System.DateTimeOffset? OnPremiseOldestRecoverOn { get { throw null; } set { } } public int? OnPremiseRecoveryPointCount { get { throw null; } set { } } public System.Collections.Generic.IDictionary ProtectableObjectLoadPath { get { throw null; } } - public bool? Protected { get { throw null; } set { } } public string ProtectionGroupName { get { throw null; } set { } } public int? RecoveryPointCount { get { throw null; } set { } } public string TotalDiskStorageSizeInBytes { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct EncryptionAtRestType : System.IEquatable + public readonly partial struct EnhancedSecurityState : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public EncryptionAtRestType(string value) { throw null; } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.EncryptionAtRestType CustomerManaged { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.EncryptionAtRestType Invalid { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.EncryptionAtRestType MicrosoftManaged { get { throw null; } } - public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.EncryptionAtRestType other) { throw null; } + public EnhancedSecurityState(string value) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.EnhancedSecurityState Disabled { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.EnhancedSecurityState Enabled { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.EnhancedSecurityState Invalid { get { throw null; } } + public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.EnhancedSecurityState other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.EncryptionAtRestType left, Azure.ResourceManager.RecoveryServicesBackup.Models.EncryptionAtRestType right) { throw null; } - public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.EncryptionAtRestType (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.EncryptionAtRestType left, Azure.ResourceManager.RecoveryServicesBackup.Models.EncryptionAtRestType right) { throw null; } + public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.EnhancedSecurityState left, Azure.ResourceManager.RecoveryServicesBackup.Models.EnhancedSecurityState right) { throw null; } + public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.EnhancedSecurityState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.EnhancedSecurityState left, Azure.ResourceManager.RecoveryServicesBackup.Models.EnhancedSecurityState right) { throw null; } public override string ToString() { throw null; } } - public partial class EncryptionDetails + public abstract partial class FeatureSupportContent { - public EncryptionDetails() { } - public bool? EncryptionEnabled { get { throw null; } set { } } - public System.Uri KekUri { get { throw null; } set { } } - public string KekVaultId { get { throw null; } set { } } - public System.Uri SecretKeyUri { get { throw null; } set { } } - public string SecretKeyVaultId { get { throw null; } set { } } + protected FeatureSupportContent() { } + } + public partial class FileShareBackupContent : Azure.ResourceManager.RecoveryServicesBackup.Models.BackupContent + { + public FileShareBackupContent() { } + public System.DateTimeOffset? RecoveryPointExpireOn { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct EnhancedSecurityState : System.IEquatable + public readonly partial struct FileShareCopyOption : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public EnhancedSecurityState(string value) { throw null; } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.EnhancedSecurityState Disabled { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.EnhancedSecurityState Enabled { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.EnhancedSecurityState Invalid { get { throw null; } } - public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.EnhancedSecurityState other) { throw null; } + public FileShareCopyOption(string value) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.FileShareCopyOption CreateCopy { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.FileShareCopyOption FailOnConflict { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.FileShareCopyOption Invalid { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.FileShareCopyOption Overwrite { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.FileShareCopyOption Skip { get { throw null; } } + public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.FileShareCopyOption other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.EnhancedSecurityState left, Azure.ResourceManager.RecoveryServicesBackup.Models.EnhancedSecurityState right) { throw null; } - public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.EnhancedSecurityState (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.EnhancedSecurityState left, Azure.ResourceManager.RecoveryServicesBackup.Models.EnhancedSecurityState right) { throw null; } + public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.FileShareCopyOption left, Azure.ResourceManager.RecoveryServicesBackup.Models.FileShareCopyOption right) { throw null; } + public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.FileShareCopyOption (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.FileShareCopyOption left, Azure.ResourceManager.RecoveryServicesBackup.Models.FileShareCopyOption right) { throw null; } public override string ToString() { throw null; } } - public partial class ErrorDetail + public partial class FileShareProtectableItem : Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadProtectableItem { - public ErrorDetail() { } - public string Code { get { throw null; } } - public string Message { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Recommendations { get { throw null; } } + public FileShareProtectableItem() { } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupFileShareType? AzureFileShareType { get { throw null; } set { } } + public string ParentContainerFabricId { get { throw null; } set { } } + public string ParentContainerFriendlyName { get { throw null; } set { } } + } + public partial class FileshareProtectedItem : Azure.ResourceManager.RecoveryServicesBackup.Models.BackupGenericProtectedItem + { + public FileshareProtectedItem() { } + public Azure.ResourceManager.RecoveryServicesBackup.Models.FileshareProtectedItemExtendedInfo ExtendedInfo { get { throw null; } set { } } + public string FriendlyName { get { throw null; } set { } } + public System.Collections.Generic.IDictionary KpisHealths { get { throw null; } } + public System.DateTimeOffset? LastBackupOn { get { throw null; } set { } } + public string LastBackupStatus { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? ProtectionState { get { throw null; } set { } } + public string ProtectionStatus { get { throw null; } set { } } } - public partial class ExportJobsOperationResultInfo : Azure.ResourceManager.RecoveryServicesBackup.Models.OperationResultInfoBase + public partial class FileshareProtectedItemExtendedInfo { - internal ExportJobsOperationResultInfo() { } - public string BlobSasKey { get { throw null; } } - public System.Uri BlobUri { get { throw null; } } - public string ExcelFileBlobSasKey { get { throw null; } } - public System.Uri ExcelFileBlobUri { get { throw null; } } + public FileshareProtectedItemExtendedInfo() { } + public System.DateTimeOffset? OldestRecoverOn { get { throw null; } set { } } + public string PolicyState { get { throw null; } set { } } + public int? RecoveryPointCount { get { throw null; } set { } } + public string ResourceState { get { throw null; } } + public System.DateTimeOffset? ResourceStateSyncOn { get { throw null; } } } - public partial class ExtendedProperties + public partial class FileShareProtectionPolicy : Azure.ResourceManager.RecoveryServicesBackup.Models.BackupGenericProtectionPolicy { - public ExtendedProperties() { } - public Azure.ResourceManager.RecoveryServicesBackup.Models.DiskExclusionProperties DiskExclusionProperties { get { throw null; } set { } } - public string LinuxVmApplicationName { get { throw null; } set { } } + public FileShareProtectionPolicy() { } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupRetentionPolicy RetentionPolicy { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupSchedulePolicy SchedulePolicy { get { throw null; } set { } } + public string TimeZone { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupWorkloadType? WorkLoadType { get { throw null; } set { } } + } + public partial class FileShareProvisionIlrContent : Azure.ResourceManager.RecoveryServicesBackup.Models.IlrContent + { + public FileShareProvisionIlrContent() { } + public string RecoveryPointId { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier SourceResourceId { get { throw null; } set { } } + } + public partial class FileShareRecoveryPoint : Azure.ResourceManager.RecoveryServicesBackup.Models.BackupGenericRecoveryPoint + { + public FileShareRecoveryPoint() { } + public System.Uri FileShareSnapshotUri { get { throw null; } set { } } + public System.DateTimeOffset? RecoveryPointOn { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPointProperties RecoveryPointProperties { get { throw null; } set { } } + public int? RecoveryPointSizeInGB { get { throw null; } set { } } + public string RecoveryPointType { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct FabricName : System.IEquatable + public readonly partial struct FileShareRecoveryType : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public FabricName(string value) { throw null; } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.FabricName Azure { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.FabricName Invalid { get { throw null; } } - public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.FabricName other) { throw null; } + public FileShareRecoveryType(string value) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.FileShareRecoveryType AlternateLocation { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.FileShareRecoveryType Invalid { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.FileShareRecoveryType Offline { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.FileShareRecoveryType OriginalLocation { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.FileShareRecoveryType RestoreDisks { get { throw null; } } + public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.FileShareRecoveryType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.FabricName left, Azure.ResourceManager.RecoveryServicesBackup.Models.FabricName right) { throw null; } - public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.FabricName (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.FabricName left, Azure.ResourceManager.RecoveryServicesBackup.Models.FabricName right) { throw null; } + public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.FileShareRecoveryType left, Azure.ResourceManager.RecoveryServicesBackup.Models.FileShareRecoveryType right) { throw null; } + public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.FileShareRecoveryType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.FileShareRecoveryType left, Azure.ResourceManager.RecoveryServicesBackup.Models.FileShareRecoveryType right) { throw null; } public override string ToString() { throw null; } } - public abstract partial class FeatureSupportContent + public partial class FileShareRestoreContent : Azure.ResourceManager.RecoveryServicesBackup.Models.RestoreContent { - protected FeatureSupportContent() { } + public FileShareRestoreContent() { } + public Azure.ResourceManager.RecoveryServicesBackup.Models.FileShareCopyOption? CopyOptions { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.FileShareRecoveryType? RecoveryType { get { throw null; } set { } } + public System.Collections.Generic.IList RestoreFileSpecs { get { throw null; } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.FileShareRestoreType? RestoreRequestType { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier SourceResourceId { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.TargetAfsRestoreInfo TargetDetails { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct FileShareRestoreType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public FileShareRestoreType(string value) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.FileShareRestoreType FullShareRestore { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.FileShareRestoreType Invalid { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.FileShareRestoreType ItemLevelRestore { get { throw null; } } + public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.FileShareRestoreType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.FileShareRestoreType left, Azure.ResourceManager.RecoveryServicesBackup.Models.FileShareRestoreType right) { throw null; } + public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.FileShareRestoreType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.FileShareRestoreType left, Azure.ResourceManager.RecoveryServicesBackup.Models.FileShareRestoreType right) { throw null; } + public override string ToString() { throw null; } } - public partial class GenericContainer : Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectionContainer + public partial class GenericContainer : Azure.ResourceManager.RecoveryServicesBackup.Models.BackupGenericProtectionContainer { public GenericContainer() { } public Azure.ResourceManager.RecoveryServicesBackup.Models.GenericContainerExtendedInfo ExtendedInformation { get { throw null; } set { } } @@ -1714,24 +1479,24 @@ public GenericContainerExtendedInfo() { } public string RawCertData { get { throw null; } set { } } public System.Collections.Generic.IDictionary ServiceEndpoints { get { throw null; } } } - public partial class GenericProtectedItem : Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectedItem + public partial class GenericProtectedItem : Azure.ResourceManager.RecoveryServicesBackup.Models.BackupGenericProtectedItem { public GenericProtectedItem() { } public string FabricName { get { throw null; } set { } } public string FriendlyName { get { throw null; } set { } } public string PolicyState { get { throw null; } set { } } public long? ProtectedItemId { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectionState? ProtectionState { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? ProtectionState { get { throw null; } set { } } public System.Collections.Generic.IDictionary SourceAssociations { get { throw null; } } } - public partial class GenericProtectionPolicy : Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectionPolicy + public partial class GenericProtectionPolicy : Azure.ResourceManager.RecoveryServicesBackup.Models.BackupGenericProtectionPolicy { public GenericProtectionPolicy() { } public string FabricName { get { throw null; } set { } } public System.Collections.Generic.IList SubProtectionPolicy { get { throw null; } } public string TimeZone { get { throw null; } set { } } } - public partial class GenericRecoveryPoint : Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPoint + public partial class GenericRecoveryPoint : Azure.ResourceManager.RecoveryServicesBackup.Models.BackupGenericRecoveryPoint { public GenericRecoveryPoint() { } public string FriendlyName { get { throw null; } set { } } @@ -1740,102 +1505,110 @@ public GenericRecoveryPoint() { } public Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPointProperties RecoveryPointProperties { get { throw null; } set { } } public string RecoveryPointType { get { throw null; } set { } } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct HealthStatus : System.IEquatable + public partial class IaasClassicComputeVmContainer : Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmContainer { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public HealthStatus(string value) { throw null; } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.HealthStatus ActionRequired { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.HealthStatus ActionSuggested { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.HealthStatus Invalid { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.HealthStatus Passed { get { throw null; } } - public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.HealthStatus other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.HealthStatus left, Azure.ResourceManager.RecoveryServicesBackup.Models.HealthStatus right) { throw null; } - public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.HealthStatus (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.HealthStatus left, Azure.ResourceManager.RecoveryServicesBackup.Models.HealthStatus right) { throw null; } - public override string ToString() { throw null; } + public IaasClassicComputeVmContainer() { } } - public partial class HourlySchedule + public partial class IaasClassicComputeVmProtectableItem : Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectableItem { - public HourlySchedule() { } - public int? Interval { get { throw null; } set { } } - public int? ScheduleWindowDuration { get { throw null; } set { } } - public System.DateTimeOffset? ScheduleWindowStartOn { get { throw null; } set { } } + public IaasClassicComputeVmProtectableItem() { } + } + public partial class IaasClassicComputeVmProtectedItem : Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItem + { + public IaasClassicComputeVmProtectedItem() { } + } + public partial class IaasComputeVmContainer : Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmContainer + { + public IaasComputeVmContainer() { } + } + public partial class IaasComputeVmProtectableItem : Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectableItem + { + public IaasComputeVmProtectableItem() { } + } + public partial class IaasComputeVmProtectedItem : Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItem + { + public IaasComputeVmProtectedItem() { } + } + public partial class IaasVmBackupContent : Azure.ResourceManager.RecoveryServicesBackup.Models.BackupContent + { + public IaasVmBackupContent() { } + public System.DateTimeOffset? RecoveryPointExpireOn { get { throw null; } set { } } + } + public partial class IaasVmBackupExtendedProperties + { + public IaasVmBackupExtendedProperties() { } + public Azure.ResourceManager.RecoveryServicesBackup.Models.DiskExclusionProperties DiskExclusionProperties { get { throw null; } set { } } + public string LinuxVmApplicationName { get { throw null; } set { } } + } + public partial class IaasVmBackupJob : Azure.ResourceManager.RecoveryServicesBackup.Models.BackupGenericJob + { + public IaasVmBackupJob() { } + public System.Collections.Generic.IList ActionsInfo { get { throw null; } } + public string ContainerName { get { throw null; } set { } } + public System.TimeSpan? Duration { get { throw null; } set { } } + public System.Collections.Generic.IList ErrorDetails { get { throw null; } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmBackupJobExtendedInfo ExtendedInfo { get { throw null; } set { } } + public bool? IsUserTriggered { get { throw null; } set { } } + public string VirtualMachineVersion { get { throw null; } set { } } + } + public partial class IaasVmBackupJobExtendedInfo + { + public IaasVmBackupJobExtendedInfo() { } + public string DynamicErrorMessage { get { throw null; } set { } } + public string EstimatedRemainingDurationValue { get { throw null; } set { } } + public System.Collections.Generic.IDictionary InternalPropertyBag { get { throw null; } } + public double? ProgressPercentage { get { throw null; } set { } } + public System.Collections.Generic.IDictionary PropertyBag { get { throw null; } } + public System.Collections.Generic.IList TasksList { get { throw null; } } + } + public partial class IaasVmBackupJobTaskDetails + { + public IaasVmBackupJobTaskDetails() { } + public System.TimeSpan? Duration { get { throw null; } set { } } + public System.DateTimeOffset? EndOn { get { throw null; } set { } } + public string InstanceId { get { throw null; } set { } } + public double? ProgressPercentage { get { throw null; } set { } } + public System.DateTimeOffset? StartOn { get { throw null; } set { } } + public string Status { get { throw null; } set { } } + public string TaskExecutionDetails { get { throw null; } set { } } + public string TaskId { get { throw null; } set { } } + } + public partial class IaasVmBackupJobV2 : Azure.ResourceManager.RecoveryServicesBackup.Models.BackupGenericJob + { + public IaasVmBackupJobV2() { } + public System.Collections.Generic.IList ActionsInfo { get { throw null; } } + public string ContainerName { get { throw null; } set { } } + public System.TimeSpan? Duration { get { throw null; } set { } } + public System.Collections.Generic.IList ErrorDetails { get { throw null; } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmBackupJobExtendedInfo ExtendedInfo { get { throw null; } set { } } + public string VirtualMachineVersion { get { throw null; } set { } } } - public enum HttpStatusCode - { - Continue = 0, - SwitchingProtocols = 1, - OK = 2, - Created = 3, - Accepted = 4, - NonAuthoritativeInformation = 5, - NoContent = 6, - ResetContent = 7, - PartialContent = 8, - MultipleChoices = 9, - Ambiguous = 10, - MovedPermanently = 11, - Moved = 12, - Found = 13, - Redirect = 14, - SeeOther = 15, - RedirectMethod = 16, - NotModified = 17, - UseProxy = 18, - Unused = 19, - TemporaryRedirect = 20, - RedirectKeepVerb = 21, - BadRequest = 22, - Unauthorized = 23, - PaymentRequired = 24, - Forbidden = 25, - NotFound = 26, - MethodNotAllowed = 27, - NotAcceptable = 28, - ProxyAuthenticationRequired = 29, - RequestTimeout = 30, - Conflict = 31, - Gone = 32, - LengthRequired = 33, - PreconditionFailed = 34, - RequestEntityTooLarge = 35, - RequestUriTooLong = 36, - UnsupportedMediaType = 37, - RequestedRangeNotSatisfiable = 38, - ExpectationFailed = 39, - UpgradeRequired = 40, - InternalServerError = 41, - NotImplemented = 42, - BadGateway = 43, - ServiceUnavailable = 44, - GatewayTimeout = 45, - HttpVersionNotSupported = 46, - } - public partial class IaasVmBackupRequest : Azure.ResourceManager.RecoveryServicesBackup.Models.BackupRequest - { - public IaasVmBackupRequest() { } - public System.DateTimeOffset? RecoveryPointExpiryTimeInUTC { get { throw null; } set { } } - } - public partial class IaasVmContainer : Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectionContainer + public partial class IaasVmContainer : Azure.ResourceManager.RecoveryServicesBackup.Models.BackupGenericProtectionContainer { public IaasVmContainer() { } public string ResourceGroup { get { throw null; } set { } } - public string VirtualMachineId { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier VirtualMachineId { get { throw null; } set { } } public string VirtualMachineVersion { get { throw null; } set { } } } - public partial class IaasVmilrRegistrationRequest : Azure.ResourceManager.RecoveryServicesBackup.Models.ILRRequest + public partial class IaasVmErrorInfo + { + public IaasVmErrorInfo() { } + public int? ErrorCode { get { throw null; } } + public string ErrorString { get { throw null; } } + public string ErrorTitle { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Recommendations { get { throw null; } } + } + public partial class IaasVmHealthDetails : Azure.ResourceManager.RecoveryServicesBackup.Models.ResourceHealthDetails + { + public IaasVmHealthDetails() { } + } + public partial class IaasVmIlrRegistrationContent : Azure.ResourceManager.RecoveryServicesBackup.Models.IlrContent { - public IaasVmilrRegistrationRequest() { } + public IaasVmIlrRegistrationContent() { } public string InitiatorName { get { throw null; } set { } } public string RecoveryPointId { get { throw null; } set { } } public bool? RenewExistingRegistration { get { throw null; } set { } } - public string VirtualMachineId { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier VirtualMachineId { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct IaasVmPolicyType : System.IEquatable @@ -1860,10 +1633,67 @@ public partial class IaasVmProtectableItem : Azure.ResourceManager.RecoveryServi { public IaasVmProtectableItem() { } public string ResourceGroup { get { throw null; } set { } } - public string VirtualMachineId { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier VirtualMachineId { get { throw null; } set { } } public string VirtualMachineVersion { get { throw null; } set { } } } - public partial class IaasVmRecoveryPoint : Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPoint + public partial class IaasVmProtectedItem : Azure.ResourceManager.RecoveryServicesBackup.Models.BackupGenericProtectedItem + { + public IaasVmProtectedItem() { } + public Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemExtendedInfo ExtendedInfo { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmBackupExtendedProperties ExtendedProperties { get { throw null; } set { } } + public string FriendlyName { get { throw null; } } + public System.Collections.Generic.IList HealthDetails { get { throw null; } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemHealthStatus? HealthStatus { get { throw null; } } + public System.Collections.Generic.IDictionary KpisHealths { get { throw null; } } + public System.DateTimeOffset? LastBackupOn { get { throw null; } } + public string LastBackupStatus { get { throw null; } set { } } + public string ProtectedItemDataId { get { throw null; } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? ProtectionState { get { throw null; } set { } } + public string ProtectionStatus { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier VirtualMachineId { get { throw null; } } + } + public partial class IaasVmProtectedItemExtendedInfo + { + public IaasVmProtectedItemExtendedInfo() { } + public bool? IsPolicyInconsistent { get { throw null; } set { } } + public System.DateTimeOffset? NewestRecoveryPointInArchive { get { throw null; } set { } } + public System.DateTimeOffset? OldestRecoverOn { get { throw null; } set { } } + public System.DateTimeOffset? OldestRecoveryPointInArchive { get { throw null; } set { } } + public System.DateTimeOffset? OldestRecoveryPointInVault { get { throw null; } set { } } + public int? RecoveryPointCount { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct IaasVmProtectedItemHealthStatus : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public IaasVmProtectedItemHealthStatus(string value) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemHealthStatus ActionRequired { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemHealthStatus ActionSuggested { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemHealthStatus Invalid { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemHealthStatus Passed { get { throw null; } } + public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemHealthStatus other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemHealthStatus left, Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemHealthStatus right) { throw null; } + public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemHealthStatus (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemHealthStatus left, Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmProtectedItemHealthStatus right) { throw null; } + public override string ToString() { throw null; } + } + public partial class IaasVmProtectionPolicy : Azure.ResourceManager.RecoveryServicesBackup.Models.BackupGenericProtectionPolicy + { + public IaasVmProtectionPolicy() { } + public Azure.ResourceManager.RecoveryServicesBackup.Models.InstantRPAdditionalDetails InstantRPDetails { get { throw null; } set { } } + public int? InstantRPRetentionRangeInDays { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmPolicyType? PolicyType { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupRetentionPolicy RetentionPolicy { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupSchedulePolicy SchedulePolicy { get { throw null; } set { } } + public System.Collections.Generic.IDictionary TieringPolicy { get { throw null; } } + public string TimeZone { get { throw null; } set { } } + } + public partial class IaasVmRecoveryPoint : Azure.ResourceManager.RecoveryServicesBackup.Models.BackupGenericRecoveryPoint { public IaasVmRecoveryPoint() { } public bool? IsInstantIlrSessionActive { get { throw null; } set { } } @@ -1883,56 +1713,44 @@ public IaasVmRecoveryPoint() { } public string VirtualMachineSize { get { throw null; } set { } } public System.Collections.Generic.IList Zones { get { throw null; } } } - public partial class IaasVmRestoreRequest : Azure.ResourceManager.RecoveryServicesBackup.Models.RestoreRequest + public partial class IaasVmRestoreContent : Azure.ResourceManager.RecoveryServicesBackup.Models.RestoreContent { - public IaasVmRestoreRequest() { } + public IaasVmRestoreContent() { } public string AffinityGroup { get { throw null; } set { } } - public bool? CreateNewCloudService { get { throw null; } set { } } public string DiskEncryptionSetId { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.EncryptionDetails EncryptionDetails { get { throw null; } set { } } + public bool? DoesCreateNewCloudService { get { throw null; } set { } } + public bool? DoesRestoreWithManagedDisks { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.VmEncryptionDetails EncryptionDetails { get { throw null; } set { } } public Azure.ResourceManager.RecoveryServicesBackup.Models.IdentityBasedRestoreDetails IdentityBasedRestoreDetails { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.IdentityInfo IdentityInfo { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupIdentityInfo IdentityInfo { get { throw null; } set { } } public bool? OriginalStorageAccountOption { get { throw null; } set { } } public string RecoveryPointId { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryType? RecoveryType { get { throw null; } set { } } - public string Region { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.FileShareRecoveryType? RecoveryType { get { throw null; } set { } } + public Azure.Core.AzureLocation? Region { get { throw null; } set { } } public System.Collections.Generic.IList RestoreDiskLunList { get { throw null; } } - public bool? RestoreWithManagedDisks { get { throw null; } set { } } - public string SourceResourceId { get { throw null; } set { } } - public string StorageAccountId { get { throw null; } set { } } - public string SubnetId { get { throw null; } set { } } - public string TargetDomainNameId { get { throw null; } set { } } - public string TargetResourceGroupId { get { throw null; } set { } } - public string TargetVirtualMachineId { get { throw null; } set { } } - public string VirtualNetworkId { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier SourceResourceId { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier StorageAccountId { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier SubnetId { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier TargetDomainNameId { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier TargetResourceGroupId { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier TargetVirtualMachineId { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier VirtualNetworkId { get { throw null; } set { } } public System.Collections.Generic.IList Zones { get { throw null; } } } - public partial class IaasVmRestoreWithRehydrationRequest : Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmRestoreRequest + public partial class IaasVmRestoreWithRehydrationContent : Azure.ResourceManager.RecoveryServicesBackup.Models.IaasVmRestoreContent { - public IaasVmRestoreWithRehydrationRequest() { } + public IaasVmRestoreWithRehydrationContent() { } public Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPointRehydrationInfo RecoveryPointRehydrationInfo { get { throw null; } set { } } } public partial class IdentityBasedRestoreDetails { public IdentityBasedRestoreDetails() { } public string ObjectType { get { throw null; } set { } } - public string TargetStorageAccountId { get { throw null; } set { } } - } - public partial class IdentityInfo - { - public IdentityInfo() { } - public bool? IsSystemAssignedIdentity { get { throw null; } set { } } - public string ManagedIdentityResourceId { get { throw null; } set { } } - } - public abstract partial class ILRRequest - { - protected ILRRequest() { } + public Azure.Core.ResourceIdentifier TargetStorageAccountId { get { throw null; } set { } } } - public partial class ILRRequestResource : Azure.ResourceManager.Models.TrackedResourceData + public abstract partial class IlrContent { - public ILRRequestResource(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } - public Azure.ETag? ETag { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.ILRRequest Properties { get { throw null; } set { } } + protected IlrContent() { } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct InfrastructureEncryptionState : System.IEquatable @@ -1953,13 +1771,6 @@ public ILRRequestResource(Azure.Core.AzureLocation location) : base (default(Azu public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.InfrastructureEncryptionState left, Azure.ResourceManager.RecoveryServicesBackup.Models.InfrastructureEncryptionState right) { throw null; } public override string ToString() { throw null; } } - public partial class InquiryInfo - { - public InquiryInfo() { } - public Azure.ResourceManager.RecoveryServicesBackup.Models.ErrorDetail ErrorDetail { get { throw null; } set { } } - public System.Collections.Generic.IList InquiryDetails { get { throw null; } } - public string Status { get { throw null; } set { } } - } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct InquiryStatus : System.IEquatable { @@ -1983,7 +1794,7 @@ public partial class InquiryValidation { public InquiryValidation() { } public string AdditionalDetail { get { throw null; } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.ErrorDetail ErrorDetail { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupErrorDetail ErrorDetail { get { throw null; } set { } } public string Status { get { throw null; } set { } } } public partial class InstantRPAdditionalDetails @@ -1992,40 +1803,29 @@ public InstantRPAdditionalDetails() { } public string AzureBackupRGNamePrefix { get { throw null; } set { } } public string AzureBackupRGNameSuffix { get { throw null; } set { } } } - public abstract partial class Job - { - protected Job() { } - public string ActivityId { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? BackupManagementType { get { throw null; } set { } } - public System.DateTimeOffset? EndOn { get { throw null; } set { } } - public string EntityFriendlyName { get { throw null; } set { } } - public string Operation { get { throw null; } set { } } - public System.DateTimeOffset? StartOn { get { throw null; } set { } } - public string Status { get { throw null; } set { } } - } public enum JobSupportedAction { Invalid = 0, Cancellable = 1, Retriable = 2, } - public partial class KEKDetails + public partial class KekDetails { - public KEKDetails() { } + public KekDetails() { } public string KeyBackupData { get { throw null; } set { } } public System.Uri KeyUri { get { throw null; } set { } } - public string KeyVaultId { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier KeyVaultId { get { throw null; } set { } } } public partial class KeyAndSecretDetails { public KeyAndSecretDetails() { } - public Azure.ResourceManager.RecoveryServicesBackup.Models.BEKDetails BekDetails { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BekDetails BekDetails { get { throw null; } set { } } public string EncryptionMechanism { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.KEKDetails KekDetails { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.KekDetails KekDetails { get { throw null; } set { } } } - public partial class KPIResourceHealthDetails + public partial class KpiResourceHealthDetails { - public KPIResourceHealthDetails() { } + public KpiResourceHealthDetails() { } public System.Collections.Generic.IList ResourceHealthDetails { get { throw null; } } public Azure.ResourceManager.RecoveryServicesBackup.Models.ResourceHealthStatus? ResourceHealthStatus { get { throw null; } set { } } } @@ -2073,18 +1873,12 @@ public KPIResourceHealthDetails() { } public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.LastUpdateStatus left, Azure.ResourceManager.RecoveryServicesBackup.Models.LastUpdateStatus right) { throw null; } public override string ToString() { throw null; } } - public partial class ListRecoveryPointsRecommendedForMoveContent - { - public ListRecoveryPointsRecommendedForMoveContent() { } - public System.Collections.Generic.IList ExcludedRPList { get { throw null; } } - public string ObjectType { get { throw null; } set { } } - } - public partial class LogSchedulePolicy : Azure.ResourceManager.RecoveryServicesBackup.Models.SchedulePolicy + public partial class LogSchedulePolicy : Azure.ResourceManager.RecoveryServicesBackup.Models.BackupSchedulePolicy { public LogSchedulePolicy() { } public int? ScheduleFrequencyInMins { get { throw null; } set { } } } - public partial class LongTermRetentionPolicy : Azure.ResourceManager.RecoveryServicesBackup.Models.RetentionPolicy + public partial class LongTermRetentionPolicy : Azure.ResourceManager.RecoveryServicesBackup.Models.BackupRetentionPolicy { public LongTermRetentionPolicy() { } public Azure.ResourceManager.RecoveryServicesBackup.Models.DailyRetentionSchedule DailySchedule { get { throw null; } set { } } @@ -2092,11 +1886,38 @@ public LongTermRetentionPolicy() { } public Azure.ResourceManager.RecoveryServicesBackup.Models.WeeklyRetentionSchedule WeeklySchedule { get { throw null; } set { } } public Azure.ResourceManager.RecoveryServicesBackup.Models.YearlyRetentionSchedule YearlySchedule { get { throw null; } set { } } } - public partial class LongTermSchedulePolicy : Azure.ResourceManager.RecoveryServicesBackup.Models.SchedulePolicy + public partial class LongTermSchedulePolicy : Azure.ResourceManager.RecoveryServicesBackup.Models.BackupSchedulePolicy { public LongTermSchedulePolicy() { } } - public partial class MabContainer : Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectionContainer + public partial class MabBackupJob : Azure.ResourceManager.RecoveryServicesBackup.Models.BackupGenericJob + { + public MabBackupJob() { } + public System.Collections.Generic.IList ActionsInfo { get { throw null; } } + public System.TimeSpan? Duration { get { throw null; } set { } } + public System.Collections.Generic.IList ErrorDetails { get { throw null; } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.MabBackupJobExtendedInfo ExtendedInfo { get { throw null; } set { } } + public string MabServerName { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.MabServerType? MabServerType { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupWorkloadType? WorkloadType { get { throw null; } set { } } + } + public partial class MabBackupJobExtendedInfo + { + public MabBackupJobExtendedInfo() { } + public string DynamicErrorMessage { get { throw null; } set { } } + public System.Collections.Generic.IDictionary PropertyBag { get { throw null; } } + public System.Collections.Generic.IList TasksList { get { throw null; } } + } + public partial class MabBackupJobTaskDetails + { + public MabBackupJobTaskDetails() { } + public System.TimeSpan? Duration { get { throw null; } set { } } + public System.DateTimeOffset? EndOn { get { throw null; } set { } } + public System.DateTimeOffset? StartOn { get { throw null; } set { } } + public string Status { get { throw null; } set { } } + public string TaskId { get { throw null; } set { } } + } + public partial class MabContainer : Azure.ResourceManager.RecoveryServicesBackup.Models.BackupGenericProtectionContainer { public MabContainer() { } public string AgentVersion { get { throw null; } set { } } @@ -2130,56 +1951,29 @@ public MabErrorInfo() { } public string ErrorString { get { throw null; } } public System.Collections.Generic.IReadOnlyList Recommendations { get { throw null; } } } - public partial class MabFileFolderProtectedItem : Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectedItem + public partial class MabFileFolderProtectedItem : Azure.ResourceManager.RecoveryServicesBackup.Models.BackupGenericProtectedItem { public MabFileFolderProtectedItem() { } public string ComputerName { get { throw null; } set { } } public long? DeferredDeleteSyncTimeInUTC { get { throw null; } set { } } public Azure.ResourceManager.RecoveryServicesBackup.Models.MabFileFolderProtectedItemExtendedInfo ExtendedInfo { get { throw null; } set { } } public string FriendlyName { get { throw null; } set { } } - public System.DateTimeOffset? LastBackupOn { get { throw null; } set { } } - public string LastBackupStatus { get { throw null; } set { } } - public string ProtectionState { get { throw null; } set { } } - } - public partial class MabFileFolderProtectedItemExtendedInfo - { - public MabFileFolderProtectedItemExtendedInfo() { } - public System.DateTimeOffset? LastRefreshedOn { get { throw null; } set { } } - public System.DateTimeOffset? OldestRecoveryPoint { get { throw null; } set { } } - public int? RecoveryPointCount { get { throw null; } set { } } - } - public partial class MabJob : Azure.ResourceManager.RecoveryServicesBackup.Models.Job - { - public MabJob() { } - public System.Collections.Generic.IList ActionsInfo { get { throw null; } } - public System.TimeSpan? Duration { get { throw null; } set { } } - public System.Collections.Generic.IList ErrorDetails { get { throw null; } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.MabJobExtendedInfo ExtendedInfo { get { throw null; } set { } } - public string MabServerName { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.MabServerType? MabServerType { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadType? WorkloadType { get { throw null; } set { } } - } - public partial class MabJobExtendedInfo - { - public MabJobExtendedInfo() { } - public string DynamicErrorMessage { get { throw null; } set { } } - public System.Collections.Generic.IDictionary PropertyBag { get { throw null; } } - public System.Collections.Generic.IList TasksList { get { throw null; } } + public System.DateTimeOffset? LastBackupOn { get { throw null; } set { } } + public string LastBackupStatus { get { throw null; } set { } } + public string ProtectionState { get { throw null; } set { } } } - public partial class MabJobTaskDetails + public partial class MabFileFolderProtectedItemExtendedInfo { - public MabJobTaskDetails() { } - public System.TimeSpan? Duration { get { throw null; } set { } } - public System.DateTimeOffset? EndOn { get { throw null; } set { } } - public System.DateTimeOffset? StartOn { get { throw null; } set { } } - public string Status { get { throw null; } set { } } - public string TaskId { get { throw null; } set { } } + public MabFileFolderProtectedItemExtendedInfo() { } + public System.DateTimeOffset? LastRefreshedOn { get { throw null; } set { } } + public System.DateTimeOffset? OldestRecoverOn { get { throw null; } set { } } + public int? RecoveryPointCount { get { throw null; } set { } } } - public partial class MabProtectionPolicy : Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectionPolicy + public partial class MabProtectionPolicy : Azure.ResourceManager.RecoveryServicesBackup.Models.BackupGenericProtectionPolicy { public MabProtectionPolicy() { } - public Azure.ResourceManager.RecoveryServicesBackup.Models.RetentionPolicy RetentionPolicy { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.SchedulePolicy SchedulePolicy { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupRetentionPolicy RetentionPolicy { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupSchedulePolicy SchedulePolicy { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct MabServerType : System.IEquatable @@ -2196,7 +1990,7 @@ public MabProtectionPolicy() { } public static Azure.ResourceManager.RecoveryServicesBackup.Models.MabServerType IaasVmServiceContainer { get { throw null; } } public static Azure.ResourceManager.RecoveryServicesBackup.Models.MabServerType Invalid { get { throw null; } } public static Azure.ResourceManager.RecoveryServicesBackup.Models.MabServerType MabContainer { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.MabServerType SqlAGWorkLoadContainer { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.MabServerType SqlAvailabilityGroupWorkLoadContainer { get { throw null; } } public static Azure.ResourceManager.RecoveryServicesBackup.Models.MabServerType StorageContainer { get { throw null; } } public static Azure.ResourceManager.RecoveryServicesBackup.Models.MabServerType Unknown { get { throw null; } } public static Azure.ResourceManager.RecoveryServicesBackup.Models.MabServerType VCenter { get { throw null; } } @@ -2216,27 +2010,11 @@ public partial class MonthlyRetentionSchedule { public MonthlyRetentionSchedule() { } public Azure.ResourceManager.RecoveryServicesBackup.Models.RetentionDuration RetentionDuration { get { throw null; } set { } } - public System.Collections.Generic.IList RetentionScheduleDailyDaysOfTheMonth { get { throw null; } } + public System.Collections.Generic.IList RetentionScheduleDailyDaysOfTheMonth { get { throw null; } } public Azure.ResourceManager.RecoveryServicesBackup.Models.RetentionScheduleFormat? RetentionScheduleFormatType { get { throw null; } set { } } public Azure.ResourceManager.RecoveryServicesBackup.Models.WeeklyRetentionFormat RetentionScheduleWeekly { get { throw null; } set { } } public System.Collections.Generic.IList RetentionTimes { get { throw null; } } } - public enum MonthOfYear - { - Invalid = 0, - January = 1, - February = 2, - March = 3, - April = 4, - May = 5, - June = 6, - July = 7, - August = 8, - September = 9, - October = 10, - November = 11, - December = 12, - } public partial class MoveRPAcrossTiersContent { public MoveRPAcrossTiersContent() { } @@ -2244,163 +2022,12 @@ public MoveRPAcrossTiersContent() { } public Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPointTierType? SourceTierType { get { throw null; } set { } } public Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPointTierType? TargetTierType { get { throw null; } set { } } } - public partial class NameInfo - { - internal NameInfo() { } - public string LocalizedValue { get { throw null; } } - public string Value { get { throw null; } } - } - public partial class OperationResultInfo : Azure.ResourceManager.RecoveryServicesBackup.Models.OperationResultInfoBase - { - internal OperationResultInfo() { } - public System.Collections.Generic.IReadOnlyList JobList { get { throw null; } } - } - public abstract partial class OperationResultInfoBase - { - protected OperationResultInfoBase() { } - } - public partial class OperationResultInfoBaseResource : Azure.ResourceManager.RecoveryServicesBackup.Models.OperationWorkerResponse - { - internal OperationResultInfoBaseResource() { } - public Azure.ResourceManager.RecoveryServicesBackup.Models.OperationResultInfoBase Operation { get { throw null; } } - } - public partial class OperationStatus - { - internal OperationStatus() { } - public System.DateTimeOffset? EndOn { get { throw null; } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.OperationStatusError Error { get { throw null; } } - public string Id { get { throw null; } } - public string Name { get { throw null; } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.OperationStatusExtendedInfo Properties { get { throw null; } } - public System.DateTimeOffset? StartOn { get { throw null; } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.OperationStatusValue? Status { get { throw null; } } - } - public partial class OperationStatusError - { - internal OperationStatusError() { } - public string Code { get { throw null; } } - public string Message { get { throw null; } } - } - public abstract partial class OperationStatusExtendedInfo - { - protected OperationStatusExtendedInfo() { } - } - public partial class OperationStatusJobExtendedInfo : Azure.ResourceManager.RecoveryServicesBackup.Models.OperationStatusExtendedInfo - { - internal OperationStatusJobExtendedInfo() { } - public string JobId { get { throw null; } } - } - public partial class OperationStatusJobsExtendedInfo : Azure.ResourceManager.RecoveryServicesBackup.Models.OperationStatusExtendedInfo - { - internal OperationStatusJobsExtendedInfo() { } - public System.Collections.Generic.IReadOnlyDictionary FailedJobsError { get { throw null; } } - public System.Collections.Generic.IReadOnlyList JobIds { get { throw null; } } - } - public partial class OperationStatusProvisionILRExtendedInfo : Azure.ResourceManager.RecoveryServicesBackup.Models.OperationStatusExtendedInfo - { - internal OperationStatusProvisionILRExtendedInfo() { } - public System.Collections.Generic.IReadOnlyList RecoveryTargetClientScripts { get { throw null; } } - } - public partial class OperationStatusValidateOperationExtendedInfo : Azure.ResourceManager.RecoveryServicesBackup.Models.OperationStatusExtendedInfo - { - internal OperationStatusValidateOperationExtendedInfo() { } - public System.Collections.Generic.IReadOnlyList ValidateOperationResponseValidationResults { get { throw null; } } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct OperationStatusValue : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public OperationStatusValue(string value) { throw null; } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.OperationStatusValue Canceled { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.OperationStatusValue Failed { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.OperationStatusValue InProgress { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.OperationStatusValue Invalid { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.OperationStatusValue Succeeded { get { throw null; } } - public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.OperationStatusValue other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.OperationStatusValue left, Azure.ResourceManager.RecoveryServicesBackup.Models.OperationStatusValue right) { throw null; } - public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.OperationStatusValue (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.OperationStatusValue left, Azure.ResourceManager.RecoveryServicesBackup.Models.OperationStatusValue right) { throw null; } - public override string ToString() { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct OperationType : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public OperationType(string value) { throw null; } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.OperationType Invalid { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.OperationType Register { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.OperationType Reregister { get { throw null; } } - public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.OperationType other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.OperationType left, Azure.ResourceManager.RecoveryServicesBackup.Models.OperationType right) { throw null; } - public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.OperationType (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.OperationType left, Azure.ResourceManager.RecoveryServicesBackup.Models.OperationType right) { throw null; } - public override string ToString() { throw null; } - } - public partial class OperationWorkerResponse - { - internal OperationWorkerResponse() { } - public System.Collections.Generic.IReadOnlyDictionary> Headers { get { throw null; } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.HttpStatusCode? StatusCode { get { throw null; } } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct OverwriteOption : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public OverwriteOption(string value) { throw null; } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.OverwriteOption FailOnConflict { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.OverwriteOption Invalid { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.OverwriteOption Overwrite { get { throw null; } } - public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.OverwriteOption other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.OverwriteOption left, Azure.ResourceManager.RecoveryServicesBackup.Models.OverwriteOption right) { throw null; } - public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.OverwriteOption (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.OverwriteOption left, Azure.ResourceManager.RecoveryServicesBackup.Models.OverwriteOption right) { throw null; } - public override string ToString() { throw null; } - } public partial class PointInTimeRange { public PointInTimeRange() { } public System.DateTimeOffset? EndOn { get { throw null; } set { } } public System.DateTimeOffset? StartOn { get { throw null; } set { } } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct PolicyType : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public PolicyType(string value) { throw null; } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.PolicyType CopyOnlyFull { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.PolicyType Differential { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.PolicyType Full { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.PolicyType Incremental { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.PolicyType Invalid { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.PolicyType Log { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.PolicyType SnapshotCopyOnlyFull { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.PolicyType SnapshotFull { get { throw null; } } - public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.PolicyType other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.PolicyType left, Azure.ResourceManager.RecoveryServicesBackup.Models.PolicyType right) { throw null; } - public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.PolicyType (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.PolicyType left, Azure.ResourceManager.RecoveryServicesBackup.Models.PolicyType right) { throw null; } - public override string ToString() { throw null; } - } public partial class PreBackupValidation { public PreBackupValidation() { } @@ -2410,36 +2037,30 @@ public PreBackupValidation() { } } public partial class PrepareDataMoveContent { - public PrepareDataMoveContent(string targetResourceId, string targetRegion, Azure.ResourceManager.RecoveryServicesBackup.Models.DataMoveLevel dataMoveLevel) { } + public PrepareDataMoveContent(Azure.Core.ResourceIdentifier targetResourceId, Azure.Core.AzureLocation targetRegion, Azure.ResourceManager.RecoveryServicesBackup.Models.DataMoveLevel dataMoveLevel) { } public Azure.ResourceManager.RecoveryServicesBackup.Models.DataMoveLevel DataMoveLevel { get { throw null; } } public bool? IgnoreMoved { get { throw null; } set { } } - public System.Collections.Generic.IList SourceContainerArmIds { get { throw null; } } - public string TargetRegion { get { throw null; } } - public string TargetResourceId { get { throw null; } } - } - public partial class PrepareDataMoveResponse : Azure.ResourceManager.RecoveryServicesBackup.Models.VaultStorageConfigOperationResultResponse - { - internal PrepareDataMoveResponse() { } - public string CorrelationId { get { throw null; } } - public System.Collections.Generic.IReadOnlyDictionary SourceVaultProperties { get { throw null; } } + public System.Collections.Generic.IList SourceContainerArmIds { get { throw null; } } + public Azure.Core.AzureLocation TargetRegion { get { throw null; } } + public Azure.Core.ResourceIdentifier TargetResourceId { get { throw null; } } } public partial class PreValidateEnableBackupContent { public PreValidateEnableBackupContent() { } public string Properties { get { throw null; } set { } } - public string ResourceId { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.DataSourceType? ResourceType { get { throw null; } set { } } - public string VaultId { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier ResourceId { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupDataSourceType? ResourceType { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier VaultId { get { throw null; } set { } } } - public partial class PreValidateEnableBackupResponse + public partial class PreValidateEnableBackupResult { - internal PreValidateEnableBackupResponse() { } + internal PreValidateEnableBackupResult() { } public string ContainerName { get { throw null; } } public string ErrorCode { get { throw null; } } public string ErrorMessage { get { throw null; } } public string ProtectedItemName { get { throw null; } } public string Recommendation { get { throw null; } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.ValidationStatus? Status { get { throw null; } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupValidationStatus? Status { get { throw null; } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct PrivateEndpointConnectionStatus : System.IEquatable @@ -2475,48 +2096,6 @@ public ProtectableContainerResource(Azure.Core.AzureLocation location) : base (d public Azure.ETag? ETag { get { throw null; } set { } } public Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectableContainer Properties { get { throw null; } set { } } } - public abstract partial class ProtectedItem - { - protected ProtectedItem() { } - public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? BackupManagementType { get { throw null; } } - public string BackupSetName { get { throw null; } set { } } - public string ContainerName { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.CreateMode? CreateMode { get { throw null; } set { } } - public System.DateTimeOffset? DeferredDeleteTimeInUTC { get { throw null; } set { } } - public string DeferredDeleteTimeRemaining { get { throw null; } set { } } - public bool? IsArchiveEnabled { get { throw null; } set { } } - public bool? IsDeferredDeleteScheduleUpcoming { get { throw null; } set { } } - public bool? IsRehydrate { get { throw null; } set { } } - public bool? IsScheduledForDeferredDelete { get { throw null; } set { } } - public System.DateTimeOffset? LastRecoveryPoint { get { throw null; } set { } } - public string PolicyId { get { throw null; } set { } } - public string PolicyName { get { throw null; } set { } } - public System.Collections.Generic.IList ResourceGuardOperationRequests { get { throw null; } } - public int? SoftDeleteRetentionPeriod { get { throw null; } set { } } - public string SourceResourceId { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.DataSourceType? WorkloadType { get { throw null; } } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct ProtectedItemHealthStatus : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public ProtectedItemHealthStatus(string value) { throw null; } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectedItemHealthStatus Healthy { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectedItemHealthStatus Invalid { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectedItemHealthStatus IRPending { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectedItemHealthStatus NotReachable { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectedItemHealthStatus Unhealthy { get { throw null; } } - public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectedItemHealthStatus other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectedItemHealthStatus left, Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectedItemHealthStatus right) { throw null; } - public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectedItemHealthStatus (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectedItemHealthStatus left, Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectedItemHealthStatus right) { throw null; } - public override string ToString() { throw null; } - } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct ProtectedItemState : System.IEquatable { @@ -2540,93 +2119,11 @@ protected ProtectedItem() { } public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectedItemState left, Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectedItemState right) { throw null; } public override string ToString() { throw null; } } - public abstract partial class ProtectionContainer - { - protected ProtectionContainer() { } - public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? BackupManagementType { get { throw null; } set { } } - public string FriendlyName { get { throw null; } set { } } - public string HealthStatus { get { throw null; } set { } } - public string ProtectableObjectType { get { throw null; } set { } } - public string RegistrationStatus { get { throw null; } set { } } - } - public abstract partial class ProtectionIntent - { - protected ProtectionIntent() { } - public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupManagementType? BackupManagementType { get { throw null; } set { } } - public string ItemId { get { throw null; } set { } } - public string PolicyId { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectionStatus? ProtectionState { get { throw null; } set { } } - public string SourceResourceId { get { throw null; } set { } } - } - public abstract partial class ProtectionPolicy - { - protected ProtectionPolicy() { } - public int? ProtectedItemsCount { get { throw null; } set { } } - public System.Collections.Generic.IList ResourceGuardOperationRequests { get { throw null; } } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct ProtectionState : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public ProtectionState(string value) { throw null; } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectionState BackupsSuspended { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectionState Invalid { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectionState IRPending { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectionState Protected { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectionState ProtectionError { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectionState ProtectionPaused { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectionState ProtectionStopped { get { throw null; } } - public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectionState other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectionState left, Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectionState right) { throw null; } - public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectionState (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectionState left, Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectionState right) { throw null; } - public override string ToString() { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct ProtectionStatus : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public ProtectionStatus(string value) { throw null; } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectionStatus Invalid { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectionStatus NotProtected { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectionStatus Protected { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectionStatus Protecting { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectionStatus ProtectionFailed { get { throw null; } } - public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectionStatus other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectionStatus left, Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectionStatus right) { throw null; } - public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectionStatus (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectionStatus left, Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectionStatus right) { throw null; } - public override string ToString() { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct ProvisioningState : System.IEquatable + public partial class ProvisionIlrConnectionContent : Azure.ResourceManager.Models.TrackedResourceData { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public ProvisioningState(string value) { throw null; } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.ProvisioningState Deleting { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.ProvisioningState Failed { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.ProvisioningState Pending { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.ProvisioningState Succeeded { get { throw null; } } - public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.ProvisioningState other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.ProvisioningState left, Azure.ResourceManager.RecoveryServicesBackup.Models.ProvisioningState right) { throw null; } - public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.ProvisioningState (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.ProvisioningState left, Azure.ResourceManager.RecoveryServicesBackup.Models.ProvisioningState right) { throw null; } - public override string ToString() { throw null; } + public ProvisionIlrConnectionContent(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } + public Azure.ETag? ETag { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.IlrContent Properties { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct RecoveryMode : System.IEquatable @@ -2647,10 +2144,6 @@ protected ProtectionPolicy() { } public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryMode left, Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryMode right) { throw null; } public override string ToString() { throw null; } } - public abstract partial class RecoveryPoint - { - protected RecoveryPoint() { } - } public partial class RecoveryPointDiskConfiguration { public RecoveryPointDiskConfiguration() { } @@ -2668,7 +2161,7 @@ public RecoveryPointMoveReadinessInfo() { } public partial class RecoveryPointProperties { public RecoveryPointProperties() { } - public System.DateTimeOffset? ExpiryOn { get { throw null; } set { } } + public System.DateTimeOffset? ExpireOn { get { throw null; } set { } } public string RuleName { get { throw null; } set { } } } public partial class RecoveryPointRehydrationInfo @@ -2677,6 +2170,12 @@ public RecoveryPointRehydrationInfo() { } public Azure.ResourceManager.RecoveryServicesBackup.Models.RehydrationPriority? RehydrationPriority { get { throw null; } set { } } public System.TimeSpan? RehydrationRetentionDuration { get { throw null; } set { } } } + public partial class RecoveryPointsRecommendedForMoveContent + { + public RecoveryPointsRecommendedForMoveContent() { } + public System.Collections.Generic.IList ExcludedRPList { get { throw null; } } + public string ObjectType { get { throw null; } set { } } + } public partial class RecoveryPointTierInformation { public RecoveryPointTierInformation() { } @@ -2703,13 +2202,6 @@ public enum RecoveryPointTierType HardenedRP = 2, ArchivedRP = 3, } - public partial class RecoveryServicesBackupPrivateEndpointConnection - { - public RecoveryServicesBackupPrivateEndpointConnection() { } - public Azure.Core.ResourceIdentifier PrivateEndpointId { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryServicesBackupPrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.ProvisioningState? ProvisioningState { get { throw null; } set { } } - } public partial class RecoveryServicesBackupPrivateLinkServiceConnectionState { public RecoveryServicesBackupPrivateLinkServiceConnectionState() { } @@ -2717,26 +2209,9 @@ public RecoveryServicesBackupPrivateLinkServiceConnectionState() { } public string Description { get { throw null; } set { } } public Azure.ResourceManager.RecoveryServicesBackup.Models.PrivateEndpointConnectionStatus? Status { get { throw null; } set { } } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct RecoveryType : System.IEquatable + public partial class RecoveryServiceVaultProtectionIntent : Azure.ResourceManager.RecoveryServicesBackup.Models.BackupGenericProtectionIntent { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public RecoveryType(string value) { throw null; } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryType AlternateLocation { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryType Invalid { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryType Offline { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryType OriginalLocation { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryType RestoreDisks { get { throw null; } } - public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryType other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryType left, Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryType right) { throw null; } - public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryType (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryType left, Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryType right) { throw null; } - public override string ToString() { throw null; } + public RecoveryServiceVaultProtectionIntent() { } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct RehydrationPriority : System.IEquatable @@ -2759,16 +2234,16 @@ public RecoveryServicesBackupPrivateLinkServiceConnectionState() { } public partial class ResourceGuardOperationDetail { public ResourceGuardOperationDetail() { } - public string DefaultResourceRequest { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier DefaultResourceId { get { throw null; } set { } } public string VaultCriticalOperation { get { throw null; } set { } } } - public partial class ResourceGuardProxyBase + public partial class ResourceGuardProxyProperties { - public ResourceGuardProxyBase() { } + public ResourceGuardProxyProperties() { } public string Description { get { throw null; } set { } } - public string LastUpdatedTime { get { throw null; } set { } } + public System.DateTimeOffset? LastUpdatedOn { get { throw null; } set { } } public System.Collections.Generic.IList ResourceGuardOperationDetails { get { throw null; } } - public string ResourceGuardResourceId { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier ResourceGuardResourceId { get { throw null; } set { } } } public partial class ResourceHealthDetails { @@ -2800,6 +2275,15 @@ public ResourceHealthDetails() { } public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.ResourceHealthStatus left, Azure.ResourceManager.RecoveryServicesBackup.Models.ResourceHealthStatus right) { throw null; } public override string ToString() { throw null; } } + public partial class ResourceProtectionIntent : Azure.ResourceManager.RecoveryServicesBackup.Models.BackupGenericProtectionIntent + { + public ResourceProtectionIntent() { } + public string FriendlyName { get { throw null; } set { } } + } + public abstract partial class RestoreContent + { + protected RestoreContent() { } + } public partial class RestoreFileSpecs { public RestoreFileSpecs() { } @@ -2808,6 +2292,25 @@ public RestoreFileSpecs() { } public string TargetFolderPath { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct RestoreOverwriteOption : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public RestoreOverwriteOption(string value) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.RestoreOverwriteOption FailOnConflict { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.RestoreOverwriteOption Invalid { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.RestoreOverwriteOption Overwrite { get { throw null; } } + public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.RestoreOverwriteOption other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.RestoreOverwriteOption left, Azure.ResourceManager.RecoveryServicesBackup.Models.RestoreOverwriteOption right) { throw null; } + public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.RestoreOverwriteOption (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.RestoreOverwriteOption left, Azure.ResourceManager.RecoveryServicesBackup.Models.RestoreOverwriteOption right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct RestorePointType : System.IEquatable { private readonly object _dummy; @@ -2830,35 +2333,6 @@ public RestoreFileSpecs() { } public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.RestorePointType left, Azure.ResourceManager.RecoveryServicesBackup.Models.RestorePointType right) { throw null; } public override string ToString() { throw null; } } - public abstract partial class RestoreRequest - { - protected RestoreRequest() { } - } - public partial class RestoreRequestResource : Azure.ResourceManager.Models.TrackedResourceData - { - public RestoreRequestResource(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } - public Azure.ETag? ETag { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.RestoreRequest Properties { get { throw null; } set { } } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct RestoreRequestType : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public RestoreRequestType(string value) { throw null; } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.RestoreRequestType FullShareRestore { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.RestoreRequestType Invalid { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.RestoreRequestType ItemLevelRestore { get { throw null; } } - public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.RestoreRequestType other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.RestoreRequestType left, Azure.ResourceManager.RecoveryServicesBackup.Models.RestoreRequestType right) { throw null; } - public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.RestoreRequestType (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.RestoreRequestType left, Azure.ResourceManager.RecoveryServicesBackup.Models.RestoreRequestType right) { throw null; } - public override string ToString() { throw null; } - } public partial class RetentionDuration { public RetentionDuration() { } @@ -2886,10 +2360,6 @@ public RetentionDuration() { } public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.RetentionDurationType left, Azure.ResourceManager.RecoveryServicesBackup.Models.RetentionDurationType right) { throw null; } public override string ToString() { throw null; } } - public abstract partial class RetentionPolicy - { - protected RetentionPolicy() { } - } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct RetentionScheduleFormat : System.IEquatable { @@ -2909,10 +2379,6 @@ protected RetentionPolicy() { } public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.RetentionScheduleFormat left, Azure.ResourceManager.RecoveryServicesBackup.Models.RetentionScheduleFormat right) { throw null; } public override string ToString() { throw null; } } - public abstract partial class SchedulePolicy - { - protected SchedulePolicy() { } - } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct ScheduleRunType : System.IEquatable { @@ -2933,39 +2399,32 @@ protected SchedulePolicy() { } public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.ScheduleRunType left, Azure.ResourceManager.RecoveryServicesBackup.Models.ScheduleRunType right) { throw null; } public override string ToString() { throw null; } } - public partial class SecurityPinBase + public partial class SecurityPinContent { - public SecurityPinBase() { } + public SecurityPinContent() { } public System.Collections.Generic.IList ResourceGuardOperationRequests { get { throw null; } } } - public partial class Settings - { - public Settings() { } - public bool? IsCompression { get { throw null; } set { } } - public bool? IsSqlCompression { get { throw null; } set { } } - public string TimeZone { get { throw null; } set { } } - } - public partial class SimpleRetentionPolicy : Azure.ResourceManager.RecoveryServicesBackup.Models.RetentionPolicy + public partial class SimpleRetentionPolicy : Azure.ResourceManager.RecoveryServicesBackup.Models.BackupRetentionPolicy { public SimpleRetentionPolicy() { } public Azure.ResourceManager.RecoveryServicesBackup.Models.RetentionDuration RetentionDuration { get { throw null; } set { } } } - public partial class SimpleSchedulePolicy : Azure.ResourceManager.RecoveryServicesBackup.Models.SchedulePolicy + public partial class SimpleSchedulePolicy : Azure.ResourceManager.RecoveryServicesBackup.Models.BackupSchedulePolicy { public SimpleSchedulePolicy() { } - public Azure.ResourceManager.RecoveryServicesBackup.Models.HourlySchedule HourlySchedule { get { throw null; } set { } } - public System.Collections.Generic.IList ScheduleRunDays { get { throw null; } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupHourlySchedule HourlySchedule { get { throw null; } set { } } + public System.Collections.Generic.IList ScheduleRunDays { get { throw null; } } public Azure.ResourceManager.RecoveryServicesBackup.Models.ScheduleRunType? ScheduleRunFrequency { get { throw null; } set { } } public System.Collections.Generic.IList ScheduleRunTimes { get { throw null; } } public int? ScheduleWeeklyFrequency { get { throw null; } set { } } } - public partial class SimpleSchedulePolicyV2 : Azure.ResourceManager.RecoveryServicesBackup.Models.SchedulePolicy + public partial class SimpleSchedulePolicyV2 : Azure.ResourceManager.RecoveryServicesBackup.Models.BackupSchedulePolicy { public SimpleSchedulePolicyV2() { } - public Azure.ResourceManager.RecoveryServicesBackup.Models.HourlySchedule HourlySchedule { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupHourlySchedule HourlySchedule { get { throw null; } set { } } public Azure.ResourceManager.RecoveryServicesBackup.Models.ScheduleRunType? ScheduleRunFrequency { get { throw null; } set { } } public System.Collections.Generic.IList ScheduleRunTimes { get { throw null; } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.WeeklySchedule WeeklySchedule { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupWeeklySchedule WeeklySchedule { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct SoftDeleteFeatureState : System.IEquatable @@ -2986,121 +2445,155 @@ public SimpleSchedulePolicyV2() { } public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.SoftDeleteFeatureState left, Azure.ResourceManager.RecoveryServicesBackup.Models.SoftDeleteFeatureState right) { throw null; } public override string ToString() { throw null; } } - public partial class SQLDataDirectory + public partial class SqlAvailabilityGroupWorkloadProtectionContainer : Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadContainer + { + public SqlAvailabilityGroupWorkloadProtectionContainer() { } + } + public partial class SqlContainer : Azure.ResourceManager.RecoveryServicesBackup.Models.BackupGenericProtectionContainer { - public SQLDataDirectory() { } - public Azure.ResourceManager.RecoveryServicesBackup.Models.SQLDataDirectoryType? DirectoryType { get { throw null; } set { } } + public SqlContainer() { } + } + public partial class SqlDataDirectory + { + public SqlDataDirectory() { } + public Azure.ResourceManager.RecoveryServicesBackup.Models.SqlDataDirectoryType? DirectoryType { get { throw null; } set { } } public string LogicalName { get { throw null; } set { } } public string Path { get { throw null; } set { } } } - public partial class SQLDataDirectoryMapping + public partial class SqlDataDirectoryMapping { - public SQLDataDirectoryMapping() { } - public Azure.ResourceManager.RecoveryServicesBackup.Models.SQLDataDirectoryType? MappingType { get { throw null; } set { } } + public SqlDataDirectoryMapping() { } + public Azure.ResourceManager.RecoveryServicesBackup.Models.SqlDataDirectoryType? MappingType { get { throw null; } set { } } public string SourceLogicalName { get { throw null; } set { } } public string SourcePath { get { throw null; } set { } } public string TargetPath { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct SQLDataDirectoryType : System.IEquatable + public readonly partial struct SqlDataDirectoryType : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public SQLDataDirectoryType(string value) { throw null; } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.SQLDataDirectoryType Data { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.SQLDataDirectoryType Invalid { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.SQLDataDirectoryType Log { get { throw null; } } - public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.SQLDataDirectoryType other) { throw null; } + public SqlDataDirectoryType(string value) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.SqlDataDirectoryType Data { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.SqlDataDirectoryType Invalid { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.SqlDataDirectoryType Log { get { throw null; } } + public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.SqlDataDirectoryType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.SQLDataDirectoryType left, Azure.ResourceManager.RecoveryServicesBackup.Models.SQLDataDirectoryType right) { throw null; } - public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.SQLDataDirectoryType (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.SQLDataDirectoryType left, Azure.ResourceManager.RecoveryServicesBackup.Models.SQLDataDirectoryType right) { throw null; } + public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.SqlDataDirectoryType left, Azure.ResourceManager.RecoveryServicesBackup.Models.SqlDataDirectoryType right) { throw null; } + public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.SqlDataDirectoryType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.SqlDataDirectoryType left, Azure.ResourceManager.RecoveryServicesBackup.Models.SqlDataDirectoryType right) { throw null; } public override string ToString() { throw null; } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct StorageType : System.IEquatable + public partial class SqlProtectedItem : Azure.ResourceManager.RecoveryServicesBackup.Models.BackupGenericProtectedItem + { + public SqlProtectedItem() { } + public Azure.ResourceManager.RecoveryServicesBackup.Models.SqlProtectedItemExtendedInfo ExtendedInfo { get { throw null; } set { } } + public string ProtectedItemDataId { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectedItemState? ProtectionState { get { throw null; } set { } } + } + public partial class SqlProtectedItemExtendedInfo + { + public SqlProtectedItemExtendedInfo() { } + public System.DateTimeOffset? OldestRecoverOn { get { throw null; } set { } } + public string PolicyState { get { throw null; } set { } } + public int? RecoveryPointCount { get { throw null; } set { } } + } + public partial class SqlProtectionPolicy : Azure.ResourceManager.RecoveryServicesBackup.Models.BackupGenericProtectionPolicy + { + public SqlProtectionPolicy() { } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupRetentionPolicy RetentionPolicy { get { throw null; } set { } } + } + public partial class StorageBackupJob : Azure.ResourceManager.RecoveryServicesBackup.Models.BackupGenericJob + { + public StorageBackupJob() { } + public System.Collections.Generic.IList ActionsInfo { get { throw null; } } + public System.TimeSpan? Duration { get { throw null; } set { } } + public System.Collections.Generic.IList ErrorDetails { get { throw null; } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.StorageBackupJobExtendedInfo ExtendedInfo { get { throw null; } set { } } + public bool? IsUserTriggered { get { throw null; } set { } } + public string StorageAccountName { get { throw null; } set { } } + public string StorageAccountVersion { get { throw null; } set { } } + } + public partial class StorageBackupJobExtendedInfo + { + public StorageBackupJobExtendedInfo() { } + public string DynamicErrorMessage { get { throw null; } set { } } + public System.Collections.Generic.IDictionary PropertyBag { get { throw null; } } + public System.Collections.Generic.IList TasksList { get { throw null; } } + } + public partial class StorageBackupJobTaskDetails + { + public StorageBackupJobTaskDetails() { } + public string Status { get { throw null; } set { } } + public string TaskId { get { throw null; } set { } } + } + public partial class StorageContainer : Azure.ResourceManager.RecoveryServicesBackup.Models.BackupGenericProtectionContainer + { + public StorageContainer() { } + public Azure.ResourceManager.RecoveryServicesBackup.Models.AcquireStorageAccountLock? AcquireStorageAccountLock { get { throw null; } set { } } + public long? ProtectedItemCount { get { throw null; } set { } } + public string ResourceGroup { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier SourceResourceId { get { throw null; } set { } } + public string StorageAccountVersion { get { throw null; } set { } } + } + public partial class StorageErrorInfo { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public StorageType(string value) { throw null; } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.StorageType GeoRedundant { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.StorageType Invalid { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.StorageType LocallyRedundant { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.StorageType ReadAccessGeoZoneRedundant { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.StorageType ZoneRedundant { get { throw null; } } - public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.StorageType other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.StorageType left, Azure.ResourceManager.RecoveryServicesBackup.Models.StorageType right) { throw null; } - public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.StorageType (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.StorageType left, Azure.ResourceManager.RecoveryServicesBackup.Models.StorageType right) { throw null; } - public override string ToString() { throw null; } + public StorageErrorInfo() { } + public int? ErrorCode { get { throw null; } set { } } + public string ErrorString { get { throw null; } set { } } + public System.Collections.Generic.IList Recommendations { get { throw null; } } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct StorageTypeState : System.IEquatable + public partial class StorageProtectableContainer : Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectableContainer { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public StorageTypeState(string value) { throw null; } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.StorageTypeState Invalid { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.StorageTypeState Locked { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.StorageTypeState Unlocked { get { throw null; } } - public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.StorageTypeState other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.StorageTypeState left, Azure.ResourceManager.RecoveryServicesBackup.Models.StorageTypeState right) { throw null; } - public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.StorageTypeState (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.StorageTypeState left, Azure.ResourceManager.RecoveryServicesBackup.Models.StorageTypeState right) { throw null; } - public override string ToString() { throw null; } + public StorageProtectableContainer() { } } public partial class SubProtectionPolicy { public SubProtectionPolicy() { } - public Azure.ResourceManager.RecoveryServicesBackup.Models.PolicyType? PolicyType { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.RetentionPolicy RetentionPolicy { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.SchedulePolicy SchedulePolicy { get { throw null; } set { } } - public System.Collections.Generic.IDictionary TieringPolicy { get { throw null; } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.SubProtectionPolicyType? PolicyType { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupRetentionPolicy RetentionPolicy { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupSchedulePolicy SchedulePolicy { get { throw null; } set { } } + public System.Collections.Generic.IDictionary TieringPolicy { get { throw null; } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct SupportStatus : System.IEquatable + public readonly partial struct SubProtectionPolicyType : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public SupportStatus(string value) { throw null; } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.SupportStatus DefaultOFF { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.SupportStatus DefaultON { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.SupportStatus Invalid { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.SupportStatus NotSupported { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.SupportStatus Supported { get { throw null; } } - public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.SupportStatus other) { throw null; } + public SubProtectionPolicyType(string value) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.SubProtectionPolicyType CopyOnlyFull { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.SubProtectionPolicyType Differential { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.SubProtectionPolicyType Full { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.SubProtectionPolicyType Incremental { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.SubProtectionPolicyType Invalid { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.SubProtectionPolicyType Log { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.SubProtectionPolicyType SnapshotCopyOnlyFull { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.SubProtectionPolicyType SnapshotFull { get { throw null; } } + public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.SubProtectionPolicyType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.SupportStatus left, Azure.ResourceManager.RecoveryServicesBackup.Models.SupportStatus right) { throw null; } - public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.SupportStatus (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.SupportStatus left, Azure.ResourceManager.RecoveryServicesBackup.Models.SupportStatus right) { throw null; } + public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.SubProtectionPolicyType left, Azure.ResourceManager.RecoveryServicesBackup.Models.SubProtectionPolicyType right) { throw null; } + public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.SubProtectionPolicyType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.SubProtectionPolicyType left, Azure.ResourceManager.RecoveryServicesBackup.Models.SubProtectionPolicyType right) { throw null; } public override string ToString() { throw null; } } - public partial class TargetAFSRestoreInfo + public partial class TargetAfsRestoreInfo { - public TargetAFSRestoreInfo() { } + public TargetAfsRestoreInfo() { } public string Name { get { throw null; } set { } } - public string TargetResourceId { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier TargetResourceId { get { throw null; } set { } } } public partial class TargetRestoreInfo { public TargetRestoreInfo() { } public string ContainerId { get { throw null; } set { } } public string DatabaseName { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.OverwriteOption? OverwriteOption { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.RestoreOverwriteOption? OverwriteOption { get { throw null; } set { } } public string TargetDirectoryForFileRestore { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] @@ -3123,29 +2616,34 @@ public TargetRestoreInfo() { } public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.TieringMode left, Azure.ResourceManager.RecoveryServicesBackup.Models.TieringMode right) { throw null; } public override string ToString() { throw null; } } - public partial class TieringPolicy - { - public TieringPolicy() { } - public Azure.ResourceManager.RecoveryServicesBackup.Models.RetentionDurationType? DurationType { get { throw null; } set { } } - public int? DurationValue { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.TieringMode? TieringMode { get { throw null; } set { } } - } public partial class TokenInformation { internal TokenInformation() { } public long? ExpiryTimeInUtcTicks { get { throw null; } } - public string SecurityPIN { get { throw null; } } + public string SecurityPin { get { throw null; } } public string Token { get { throw null; } } } + public partial class TriggerBackupContent : Azure.ResourceManager.Models.TrackedResourceData + { + public TriggerBackupContent(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } + public Azure.ETag? ETag { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupContent Properties { get { throw null; } set { } } + } public partial class TriggerDataMoveContent { - public TriggerDataMoveContent(string sourceResourceId, string sourceRegion, Azure.ResourceManager.RecoveryServicesBackup.Models.DataMoveLevel dataMoveLevel, string correlationId) { } + public TriggerDataMoveContent(Azure.Core.ResourceIdentifier sourceResourceId, Azure.Core.AzureLocation sourceRegion, Azure.ResourceManager.RecoveryServicesBackup.Models.DataMoveLevel dataMoveLevel, string correlationId) { } public string CorrelationId { get { throw null; } } public Azure.ResourceManager.RecoveryServicesBackup.Models.DataMoveLevel DataMoveLevel { get { throw null; } } - public bool? PauseGC { get { throw null; } set { } } - public System.Collections.Generic.IList SourceContainerArmIds { get { throw null; } } - public string SourceRegion { get { throw null; } } - public string SourceResourceId { get { throw null; } } + public bool? DoesPauseGC { get { throw null; } set { } } + public System.Collections.Generic.IList SourceContainerArmIds { get { throw null; } } + public Azure.Core.AzureLocation SourceRegion { get { throw null; } } + public Azure.Core.ResourceIdentifier SourceResourceId { get { throw null; } } + } + public partial class TriggerRestoreContent : Azure.ResourceManager.Models.TrackedResourceData + { + public TriggerRestoreContent(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } + public Azure.ETag? ETag { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.RestoreContent Properties { get { throw null; } set { } } } public partial class UnlockDeleteContent { @@ -3153,116 +2651,345 @@ public UnlockDeleteContent() { } public System.Collections.Generic.IList ResourceGuardOperationRequests { get { throw null; } } public string ResourceToBeDeleted { get { throw null; } set { } } } - public partial class UnlockDeleteResponse + public partial class UnlockDeleteResult + { + internal UnlockDeleteResult() { } + public System.DateTimeOffset? UnlockDeleteExpireOn { get { throw null; } } + } + public partial class VaultBackupJob : Azure.ResourceManager.RecoveryServicesBackup.Models.BackupGenericJob + { + public VaultBackupJob() { } + public System.Collections.Generic.IList ActionsInfo { get { throw null; } } + public System.TimeSpan? Duration { get { throw null; } set { } } + public System.Collections.Generic.IList ErrorDetails { get { throw null; } } + public System.Collections.Generic.IDictionary ExtendedInfoPropertyBag { get { throw null; } } + } + public partial class VaultBackupJobErrorInfo + { + public VaultBackupJobErrorInfo() { } + public int? ErrorCode { get { throw null; } set { } } + public string ErrorString { get { throw null; } set { } } + public System.Collections.Generic.IList Recommendations { get { throw null; } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct VaultDedupState : System.IEquatable { - internal UnlockDeleteResponse() { } - public string UnlockDeleteExpiryTime { get { throw null; } } + private readonly object _dummy; + private readonly int _dummyPrimitive; + public VaultDedupState(string value) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.VaultDedupState Disabled { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.VaultDedupState Enabled { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.VaultDedupState Invalid { get { throw null; } } + public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.VaultDedupState other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.VaultDedupState left, Azure.ResourceManager.RecoveryServicesBackup.Models.VaultDedupState right) { throw null; } + public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.VaultDedupState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.VaultDedupState left, Azure.ResourceManager.RecoveryServicesBackup.Models.VaultDedupState right) { throw null; } + public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct UsagesUnit : System.IEquatable + public readonly partial struct VaultXcoolState : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public UsagesUnit(string value) { throw null; } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.UsagesUnit Bytes { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.UsagesUnit BytesPerSecond { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.UsagesUnit Count { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.UsagesUnit CountPerSecond { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.UsagesUnit Percent { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.UsagesUnit Seconds { get { throw null; } } - public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.UsagesUnit other) { throw null; } + public VaultXcoolState(string value) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.VaultXcoolState Disabled { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.VaultXcoolState Enabled { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.VaultXcoolState Invalid { get { throw null; } } + public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.VaultXcoolState other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.UsagesUnit left, Azure.ResourceManager.RecoveryServicesBackup.Models.UsagesUnit right) { throw null; } - public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.UsagesUnit (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.UsagesUnit left, Azure.ResourceManager.RecoveryServicesBackup.Models.UsagesUnit right) { throw null; } + public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.VaultXcoolState left, Azure.ResourceManager.RecoveryServicesBackup.Models.VaultXcoolState right) { throw null; } + public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.VaultXcoolState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.VaultXcoolState left, Azure.ResourceManager.RecoveryServicesBackup.Models.VaultXcoolState right) { throw null; } public override string ToString() { throw null; } } - public partial class ValidateIaasVmRestoreOperationRequest : Azure.ResourceManager.RecoveryServicesBackup.Models.ValidateRestoreOperationRequest + public partial class VmAppContainerProtectableContainer : Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectableContainer + { + public VmAppContainerProtectableContainer() { } + } + public partial class VmAppContainerProtectionContainer : Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadContainer { - public ValidateIaasVmRestoreOperationRequest() { } + public VmAppContainerProtectionContainer() { } } - public abstract partial class ValidateOperationRequest + public partial class VmEncryptionDetails { - protected ValidateOperationRequest() { } + public VmEncryptionDetails() { } + public bool? IsEncryptionEnabled { get { throw null; } set { } } + public System.Uri KekUri { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier KekVaultId { get { throw null; } set { } } + public System.Uri SecretKeyUri { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier SecretKeyVaultId { get { throw null; } set { } } } - public partial class ValidateOperationsResponse + public partial class VmResourceFeatureSupportContent : Azure.ResourceManager.RecoveryServicesBackup.Models.FeatureSupportContent { - internal ValidateOperationsResponse() { } - public System.Collections.Generic.IReadOnlyList ValidateOperationResponseValidationResults { get { throw null; } } + public VmResourceFeatureSupportContent() { } + public string VmSize { get { throw null; } set { } } + public string VmSku { get { throw null; } set { } } } - public partial class ValidateRestoreOperationRequest : Azure.ResourceManager.RecoveryServicesBackup.Models.ValidateOperationRequest + public partial class VmResourceFeatureSupportResult { - public ValidateRestoreOperationRequest() { } - public Azure.ResourceManager.RecoveryServicesBackup.Models.RestoreRequest RestoreRequest { get { throw null; } set { } } + internal VmResourceFeatureSupportResult() { } + public Azure.ResourceManager.RecoveryServicesBackup.Models.VmResourceFeatureSupportStatus? SupportStatus { get { throw null; } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct ValidationStatus : System.IEquatable + public readonly partial struct VmResourceFeatureSupportStatus : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public ValidationStatus(string value) { throw null; } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.ValidationStatus Failed { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.ValidationStatus Invalid { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.ValidationStatus Succeeded { get { throw null; } } - public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.ValidationStatus other) { throw null; } + public VmResourceFeatureSupportStatus(string value) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.VmResourceFeatureSupportStatus DefaultOff { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.VmResourceFeatureSupportStatus DefaultOn { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.VmResourceFeatureSupportStatus Invalid { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.VmResourceFeatureSupportStatus NotSupported { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.VmResourceFeatureSupportStatus Supported { get { throw null; } } + public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.VmResourceFeatureSupportStatus other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.ValidationStatus left, Azure.ResourceManager.RecoveryServicesBackup.Models.ValidationStatus right) { throw null; } - public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.ValidationStatus (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.ValidationStatus left, Azure.ResourceManager.RecoveryServicesBackup.Models.ValidationStatus right) { throw null; } + public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.VmResourceFeatureSupportStatus left, Azure.ResourceManager.RecoveryServicesBackup.Models.VmResourceFeatureSupportStatus right) { throw null; } + public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.VmResourceFeatureSupportStatus (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.VmResourceFeatureSupportStatus left, Azure.ResourceManager.RecoveryServicesBackup.Models.VmResourceFeatureSupportStatus right) { throw null; } public override string ToString() { throw null; } } - public partial class VaultJob : Azure.ResourceManager.RecoveryServicesBackup.Models.Job + public partial class VmWorkloadItem : Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadItem { - public VaultJob() { } - public System.Collections.Generic.IList ActionsInfo { get { throw null; } } - public System.TimeSpan? Duration { get { throw null; } set { } } - public System.Collections.Generic.IList ErrorDetails { get { throw null; } } - public System.Collections.Generic.IDictionary ExtendedInfoPropertyBag { get { throw null; } } + public VmWorkloadItem() { } + public bool? IsAutoProtectable { get { throw null; } set { } } + public string ParentName { get { throw null; } set { } } + public string ServerName { get { throw null; } set { } } + public int? SubInquiredItemCount { get { throw null; } set { } } + public int? SubWorkloadItemCount { get { throw null; } set { } } } - public partial class VaultJobErrorInfo + public partial class VmWorkloadProtectableItem : Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadProtectableItem { - public VaultJobErrorInfo() { } - public int? ErrorCode { get { throw null; } set { } } - public string ErrorString { get { throw null; } set { } } - public System.Collections.Generic.IList Recommendations { get { throw null; } } + public VmWorkloadProtectableItem() { } + public bool? IsAutoProtectable { get { throw null; } set { } } + public bool? IsAutoProtected { get { throw null; } set { } } + public string ParentName { get { throw null; } set { } } + public string ParentUniqueName { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.PreBackupValidation PreBackupValidation { get { throw null; } set { } } + public string ServerName { get { throw null; } set { } } + public int? SubInquiredItemCount { get { throw null; } set { } } + public int? SubProtectableItemCount { get { throw null; } set { } } + } + public partial class VmWorkloadProtectedItem : Azure.ResourceManager.RecoveryServicesBackup.Models.BackupGenericProtectedItem + { + public VmWorkloadProtectedItem() { } + public Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemExtendedInfo ExtendedInfo { get { throw null; } set { } } + public string FriendlyName { get { throw null; } } + public System.Collections.Generic.IDictionary KpisHealths { get { throw null; } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupErrorDetail LastBackupErrorDetail { get { throw null; } set { } } + public System.DateTimeOffset? LastBackupOn { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.LastBackupStatus? LastBackupStatus { get { throw null; } set { } } + public string ParentName { get { throw null; } set { } } + public string ParentType { get { throw null; } set { } } + public string ProtectedItemDataSourceId { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus? ProtectedItemHealthStatus { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionState? ProtectionState { get { throw null; } set { } } + public string ProtectionStatus { get { throw null; } } + public string ServerName { get { throw null; } set { } } + } + public partial class VmWorkloadProtectedItemExtendedInfo + { + public VmWorkloadProtectedItemExtendedInfo() { } + public System.DateTimeOffset? NewestRecoveryPointInArchive { get { throw null; } set { } } + public System.DateTimeOffset? OldestRecoverOn { get { throw null; } set { } } + public System.DateTimeOffset? OldestRecoveryPointInArchive { get { throw null; } set { } } + public System.DateTimeOffset? OldestRecoveryPointInVault { get { throw null; } set { } } + public string PolicyState { get { throw null; } set { } } + public string RecoveryModel { get { throw null; } set { } } + public int? RecoveryPointCount { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct VmWorkloadProtectedItemHealthStatus : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public VmWorkloadProtectedItemHealthStatus(string value) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus Healthy { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus Invalid { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus IRPending { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus NotReachable { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus Unhealthy { get { throw null; } } + public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus left, Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus right) { throw null; } + public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus left, Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItemHealthStatus right) { throw null; } + public override string ToString() { throw null; } + } + public partial class VmWorkloadProtectionPolicy : Azure.ResourceManager.RecoveryServicesBackup.Models.BackupGenericProtectionPolicy + { + public VmWorkloadProtectionPolicy() { } + public bool? DoesMakePolicyConsistent { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupCommonSettings Settings { get { throw null; } set { } } + public System.Collections.Generic.IList SubProtectionPolicy { get { throw null; } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupWorkloadType? WorkLoadType { get { throw null; } set { } } + } + public partial class VmWorkloadSapAseDatabaseProtectedItem : Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItem + { + public VmWorkloadSapAseDatabaseProtectedItem() { } + } + public partial class VmWorkloadSapAseDatabaseWorkloadItem : Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadItem + { + public VmWorkloadSapAseDatabaseWorkloadItem() { } + } + public partial class VmWorkloadSapAseSystemProtectableItem : Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectableItem + { + public VmWorkloadSapAseSystemProtectableItem() { } + } + public partial class VmWorkloadSapAseSystemWorkloadItem : Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadItem + { + public VmWorkloadSapAseSystemWorkloadItem() { } + } + public partial class VmWorkloadSapHanaDatabaseProtectableItem : Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectableItem + { + public VmWorkloadSapHanaDatabaseProtectableItem() { } + } + public partial class VmWorkloadSapHanaDatabaseProtectedItem : Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItem + { + public VmWorkloadSapHanaDatabaseProtectedItem() { } + } + public partial class VmWorkloadSapHanaDatabaseWorkloadItem : Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadItem + { + public VmWorkloadSapHanaDatabaseWorkloadItem() { } + } + public partial class VmWorkloadSapHanaDBInstance : Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectableItem + { + public VmWorkloadSapHanaDBInstance() { } + } + public partial class VmWorkloadSapHanaDBInstanceProtectedItem : Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItem + { + public VmWorkloadSapHanaDBInstanceProtectedItem() { } + } + public partial class VmWorkloadSapHanaHsr : Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectableItem + { + public VmWorkloadSapHanaHsr() { } + } + public partial class VmWorkloadSapHanaSystemProtectableItem : Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectableItem + { + public VmWorkloadSapHanaSystemProtectableItem() { } + } + public partial class VmWorkloadSapHanaSystemWorkloadItem : Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadItem + { + public VmWorkloadSapHanaSystemWorkloadItem() { } + } + public partial class VmWorkloadSqlAvailabilityGroupProtectableItem : Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectableItem + { + public VmWorkloadSqlAvailabilityGroupProtectableItem() { } + } + public partial class VmWorkloadSqlDatabaseProtectableItem : Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectableItem + { + public VmWorkloadSqlDatabaseProtectableItem() { } + } + public partial class VmWorkloadSqlDatabaseProtectedItem : Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectedItem + { + public VmWorkloadSqlDatabaseProtectedItem() { } + } + public partial class VmWorkloadSqlDatabaseWorkloadItem : Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadItem + { + public VmWorkloadSqlDatabaseWorkloadItem() { } + } + public partial class VmWorkloadSqlInstanceProtectableItem : Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadProtectableItem + { + public VmWorkloadSqlInstanceProtectableItem() { } } - public abstract partial class VaultStorageConfigOperationResultResponse + public partial class VmWorkloadSqlInstanceWorkloadItem : Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadItem { - protected VaultStorageConfigOperationResultResponse() { } + public VmWorkloadSqlInstanceWorkloadItem() { } + public System.Collections.Generic.IList DataDirectoryPaths { get { throw null; } } } public partial class WeeklyRetentionFormat { public WeeklyRetentionFormat() { } - public System.Collections.Generic.IList DaysOfTheWeek { get { throw null; } } - public System.Collections.Generic.IList WeeksOfTheMonth { get { throw null; } } + public System.Collections.Generic.IList DaysOfTheWeek { get { throw null; } } + public System.Collections.Generic.IList WeeksOfTheMonth { get { throw null; } } } public partial class WeeklyRetentionSchedule { public WeeklyRetentionSchedule() { } - public System.Collections.Generic.IList DaysOfTheWeek { get { throw null; } } + public System.Collections.Generic.IList DaysOfTheWeek { get { throw null; } } public Azure.ResourceManager.RecoveryServicesBackup.Models.RetentionDuration RetentionDuration { get { throw null; } set { } } public System.Collections.Generic.IList RetentionTimes { get { throw null; } } } - public partial class WeeklySchedule + public partial class WorkloadAutoProtectionIntent : Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryServiceVaultProtectionIntent { - public WeeklySchedule() { } - public System.Collections.Generic.IList ScheduleRunDays { get { throw null; } } - public System.Collections.Generic.IList ScheduleRunTimes { get { throw null; } } + public WorkloadAutoProtectionIntent() { } } - public enum WeekOfMonth + public partial class WorkloadBackupContent : Azure.ResourceManager.RecoveryServicesBackup.Models.BackupContent { - First = 0, - Second = 1, - Third = 2, - Fourth = 3, - Last = 4, - Invalid = 5, + public WorkloadBackupContent() { } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupType? BackupType { get { throw null; } set { } } + public bool? EnableCompression { get { throw null; } set { } } + public System.DateTimeOffset? RecoveryPointExpireOn { get { throw null; } set { } } + } + public partial class WorkloadBackupJob : Azure.ResourceManager.RecoveryServicesBackup.Models.BackupGenericJob + { + public WorkloadBackupJob() { } + public System.Collections.Generic.IList ActionsInfo { get { throw null; } } + public System.TimeSpan? Duration { get { throw null; } set { } } + public System.Collections.Generic.IList ErrorDetails { get { throw null; } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadBackupJobExtendedInfo ExtendedInfo { get { throw null; } set { } } + public string WorkloadType { get { throw null; } set { } } + } + public partial class WorkloadBackupJobExtendedInfo + { + public WorkloadBackupJobExtendedInfo() { } + public string DynamicErrorMessage { get { throw null; } set { } } + public System.Collections.Generic.IDictionary PropertyBag { get { throw null; } } + public System.Collections.Generic.IList TasksList { get { throw null; } } + } + public partial class WorkloadBackupJobTaskDetails + { + public WorkloadBackupJobTaskDetails() { } + public string Status { get { throw null; } set { } } + public string TaskId { get { throw null; } set { } } + } + public partial class WorkloadContainer : Azure.ResourceManager.RecoveryServicesBackup.Models.BackupGenericProtectionContainer + { + public WorkloadContainer() { } + public Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadContainerExtendedInfo ExtendedInfo { get { throw null; } set { } } + public System.DateTimeOffset? LastUpdatedOn { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadOperationType? OperationType { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier SourceResourceId { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupWorkloadType? WorkloadType { get { throw null; } set { } } + } + public partial class WorkloadContainerAutoProtectionIntent : Azure.ResourceManager.RecoveryServicesBackup.Models.BackupGenericProtectionIntent + { + public WorkloadContainerAutoProtectionIntent() { } + } + public partial class WorkloadContainerExtendedInfo + { + public WorkloadContainerExtendedInfo() { } + public string HostServerName { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadContainerInquiryInfo InquiryInfo { get { throw null; } set { } } + public System.Collections.Generic.IList NodesList { get { throw null; } } + } + public partial class WorkloadContainerInquiryInfo + { + public WorkloadContainerInquiryInfo() { } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupErrorDetail ErrorDetail { get { throw null; } set { } } + public System.Collections.Generic.IList InquiryDetails { get { throw null; } } + public string Status { get { throw null; } set { } } + } + public partial class WorkloadErrorInfo + { + public WorkloadErrorInfo() { } + public string AdditionalDetails { get { throw null; } set { } } + public int? ErrorCode { get { throw null; } set { } } + public string ErrorString { get { throw null; } set { } } + public string ErrorTitle { get { throw null; } set { } } + public System.Collections.Generic.IList Recommendations { get { throw null; } } } public partial class WorkloadInquiryDetails { @@ -3276,7 +3003,7 @@ public abstract partial class WorkloadItem protected WorkloadItem() { } public string BackupManagementType { get { throw null; } set { } } public string FriendlyName { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectionStatus? ProtectionState { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionStatus? ProtectionState { get { throw null; } set { } } public string WorkloadType { get { throw null; } set { } } } public partial class WorkloadItemResource : Azure.ResourceManager.Models.TrackedResourceData @@ -3292,13 +3019,13 @@ public WorkloadItemResource(Azure.Core.AzureLocation location) : base (default(A private readonly int _dummyPrimitive; public WorkloadItemType(string value) { throw null; } public static Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadItemType Invalid { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadItemType SAPAseDatabase { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadItemType SAPAseSystem { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadItemType SAPHanaDatabase { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadItemType SAPHanaDBInstance { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadItemType SAPHanaSystem { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadItemType SQLDataBase { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadItemType SQLInstance { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadItemType SapAseDatabase { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadItemType SapAseSystem { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadItemType SapHanaDatabase { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadItemType SapHanaDBInstance { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadItemType SapHanaSystem { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadItemType SqlDatabase { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadItemType SqlInstance { get { throw null; } } public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadItemType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } @@ -3309,12 +3036,41 @@ public WorkloadItemResource(Azure.Core.AzureLocation location) : base (default(A public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadItemType left, Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadItemType right) { throw null; } public override string ToString() { throw null; } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct WorkloadOperationType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public WorkloadOperationType(string value) { throw null; } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadOperationType Invalid { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadOperationType Register { get { throw null; } } + public static Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadOperationType Reregister { get { throw null; } } + public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadOperationType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadOperationType left, Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadOperationType right) { throw null; } + public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadOperationType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadOperationType left, Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadOperationType right) { throw null; } + public override string ToString() { throw null; } + } + public partial class WorkloadPointInTimeRecoveryPoint : Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadRecoveryPoint + { + public WorkloadPointInTimeRecoveryPoint() { } + public System.Collections.Generic.IList TimeRanges { get { throw null; } } + } + public partial class WorkloadPointInTimeRestoreContent : Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadRestoreContent + { + public WorkloadPointInTimeRestoreContent() { } + public System.DateTimeOffset? PointInTime { get { throw null; } set { } } + } public abstract partial class WorkloadProtectableItem { protected WorkloadProtectableItem() { } public string BackupManagementType { get { throw null; } set { } } public string FriendlyName { get { throw null; } set { } } - public Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectionStatus? ProtectionState { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.BackupProtectionStatus? ProtectionState { get { throw null; } set { } } public string WorkloadType { get { throw null; } set { } } } public partial class WorkloadProtectableItemResource : Azure.ResourceManager.Models.TrackedResourceData @@ -3323,63 +3079,101 @@ public WorkloadProtectableItemResource(Azure.Core.AzureLocation location) : base public Azure.ETag? ETag { get { throw null; } set { } } public Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadProtectableItem Properties { get { throw null; } set { } } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct WorkloadType : System.IEquatable + public partial class WorkloadRecoveryPoint : Azure.ResourceManager.RecoveryServicesBackup.Models.BackupGenericRecoveryPoint { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public WorkloadType(string value) { throw null; } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadType AzureFileShare { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadType AzureSqlDb { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadType Client { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadType Exchange { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadType FileFolder { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadType GenericDataSource { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadType Invalid { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadType SAPAseDatabase { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadType SAPHanaDatabase { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadType SAPHanaDBInstance { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadType Sharepoint { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadType SQLDataBase { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadType SqlDB { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadType SystemState { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadType Vm { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadType VMwareVm { get { throw null; } } - public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadType other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadType left, Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadType right) { throw null; } - public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadType (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadType left, Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadType right) { throw null; } - public override string ToString() { throw null; } + public WorkloadRecoveryPoint() { } + public System.DateTimeOffset? RecoveryPointCreatedOn { get { throw null; } set { } } + public System.Collections.Generic.IDictionary RecoveryPointMoveReadinessInfo { get { throw null; } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPointProperties RecoveryPointProperties { get { throw null; } set { } } + public System.Collections.Generic.IList RecoveryPointTierDetails { get { throw null; } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.RestorePointType? RestorePointType { get { throw null; } set { } } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct XcoolState : System.IEquatable + public partial class WorkloadRestoreContent : Azure.ResourceManager.RecoveryServicesBackup.Models.RestoreContent { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public XcoolState(string value) { throw null; } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.XcoolState Disabled { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.XcoolState Enabled { get { throw null; } } - public static Azure.ResourceManager.RecoveryServicesBackup.Models.XcoolState Invalid { get { throw null; } } - public bool Equals(Azure.ResourceManager.RecoveryServicesBackup.Models.XcoolState other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.RecoveryServicesBackup.Models.XcoolState left, Azure.ResourceManager.RecoveryServicesBackup.Models.XcoolState right) { throw null; } - public static implicit operator Azure.ResourceManager.RecoveryServicesBackup.Models.XcoolState (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.RecoveryServicesBackup.Models.XcoolState left, Azure.ResourceManager.RecoveryServicesBackup.Models.XcoolState right) { throw null; } - public override string ToString() { throw null; } + public WorkloadRestoreContent() { } + public System.Collections.Generic.IDictionary PropertyBag { get { throw null; } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryMode? RecoveryMode { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.FileShareRecoveryType? RecoveryType { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier SourceResourceId { get { throw null; } set { } } + public Azure.ResourceManager.RecoveryServicesBackup.Models.TargetRestoreInfo TargetInfo { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier TargetVirtualMachineId { get { throw null; } set { } } + } + public partial class WorkloadSapHanaPointInTimeRecoveryPoint : Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadPointInTimeRecoveryPoint + { + public WorkloadSapHanaPointInTimeRecoveryPoint() { } + } + public partial class WorkloadSapHanaPointInTimeRestoreContent : Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadSapHanaRestoreContent + { + public WorkloadSapHanaPointInTimeRestoreContent() { } + public System.DateTimeOffset? PointInTime { get { throw null; } set { } } + } + public partial class WorkloadSapHanaPointInTimeRestoreWithRehydrateContent : Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadSapHanaPointInTimeRestoreContent + { + public WorkloadSapHanaPointInTimeRestoreWithRehydrateContent() { } + public Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPointRehydrationInfo RecoveryPointRehydrationInfo { get { throw null; } set { } } + } + public partial class WorkloadSapHanaRecoveryPoint : Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadRecoveryPoint + { + public WorkloadSapHanaRecoveryPoint() { } + } + public partial class WorkloadSapHanaRestoreContent : Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadRestoreContent + { + public WorkloadSapHanaRestoreContent() { } + } + public partial class WorkloadSapHanaRestoreWithRehydrateContent : Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadSapHanaRestoreContent + { + public WorkloadSapHanaRestoreWithRehydrateContent() { } + public Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPointRehydrationInfo RecoveryPointRehydrationInfo { get { throw null; } set { } } + } + public partial class WorkloadSqlAutoProtectionIntent : Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadAutoProtectionIntent + { + public WorkloadSqlAutoProtectionIntent() { } + public Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadItemType? WorkloadItemType { get { throw null; } set { } } + } + public partial class WorkloadSqlPointInTimeRecoveryPoint : Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadSqlRecoveryPoint + { + public WorkloadSqlPointInTimeRecoveryPoint() { } + public System.Collections.Generic.IList TimeRanges { get { throw null; } } + } + public partial class WorkloadSqlPointInTimeRestoreContent : Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadSqlRestoreContent + { + public WorkloadSqlPointInTimeRestoreContent() { } + public System.DateTimeOffset? PointInTime { get { throw null; } set { } } + } + public partial class WorkloadSqlPointInTimeRestoreWithRehydrateContent : Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadSqlPointInTimeRestoreContent + { + public WorkloadSqlPointInTimeRestoreWithRehydrateContent() { } + public Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPointRehydrationInfo RecoveryPointRehydrationInfo { get { throw null; } set { } } + } + public partial class WorkloadSqlRecoveryPoint : Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadRecoveryPoint + { + public WorkloadSqlRecoveryPoint() { } + public Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadSqlRecoveryPointExtendedInfo ExtendedInfo { get { throw null; } set { } } + } + public partial class WorkloadSqlRecoveryPointExtendedInfo + { + public WorkloadSqlRecoveryPointExtendedInfo() { } + public System.DateTimeOffset? DataDirectoryInfoCapturedOn { get { throw null; } set { } } + public System.Collections.Generic.IList DataDirectoryPaths { get { throw null; } } + } + public partial class WorkloadSqlRestoreContent : Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadRestoreContent + { + public WorkloadSqlRestoreContent() { } + public System.Collections.Generic.IList AlternateDirectoryPaths { get { throw null; } } + public bool? IsNonRecoverable { get { throw null; } set { } } + public bool? ShouldUseAlternateTargetLocation { get { throw null; } set { } } + } + public partial class WorkloadSqlRestoreWithRehydrateContent : Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadSqlRestoreContent + { + public WorkloadSqlRestoreWithRehydrateContent() { } + public Azure.ResourceManager.RecoveryServicesBackup.Models.RecoveryPointRehydrationInfo RecoveryPointRehydrationInfo { get { throw null; } set { } } } public partial class YearlyRetentionSchedule { public YearlyRetentionSchedule() { } - public System.Collections.Generic.IList MonthsOfYear { get { throw null; } } + public System.Collections.Generic.IList MonthsOfYear { get { throw null; } } public Azure.ResourceManager.RecoveryServicesBackup.Models.RetentionDuration RetentionDuration { get { throw null; } set { } } - public System.Collections.Generic.IList RetentionScheduleDailyDaysOfTheMonth { get { throw null; } } + public System.Collections.Generic.IList RetentionScheduleDailyDaysOfTheMonth { get { throw null; } } public Azure.ResourceManager.RecoveryServicesBackup.Models.RetentionScheduleFormat? RetentionScheduleFormatType { get { throw null; } set { } } public Azure.ResourceManager.RecoveryServicesBackup.Models.WeeklyRetentionFormat RetentionScheduleWeekly { get { throw null; } set { } } public System.Collections.Generic.IList RetentionTimes { get { throw null; } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupEngineBaseResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupEngineBaseResource.cs deleted file mode 100644 index 6a0ef8f22f426..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupEngineBaseResource.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading.Tasks; -using Azure.Core; -using Azure.Identity; -using Azure.ResourceManager; -using Azure.ResourceManager.RecoveryServicesBackup; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Samples -{ - public partial class Sample_BackupEngineBaseResource - { - // Get Dpm/AzureBackupServer/Lajolla Backup Engine Details - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetDpmAzureBackupServerLajollaBackupEngineDetails() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Dpm/BackupEngines_Get.json - // this example is just showing the usage of "BackupEngines_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this BackupEngineBaseResource created on azure - // for more information of creating BackupEngineBaseResource, please refer to the document of BackupEngineBaseResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "testRG"; - string vaultName = "testVault"; - string backupEngineName = "testServer"; - ResourceIdentifier backupEngineBaseResourceId = BackupEngineBaseResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, backupEngineName); - BackupEngineBaseResource backupEngineBaseResource = client.GetBackupEngineBaseResource(backupEngineBaseResourceId); - - // invoke the operation - BackupEngineBaseResource result = await backupEngineBaseResource.GetAsync(); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - BackupEngineBaseResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupEngineBaseResourceCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupEngineBaseResourceCollection.cs deleted file mode 100644 index 5df6728d4105d..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupEngineBaseResourceCollection.cs +++ /dev/null @@ -1,123 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading.Tasks; -using Azure.Core; -using Azure.Identity; -using Azure.ResourceManager; -using Azure.ResourceManager.RecoveryServicesBackup; -using Azure.ResourceManager.Resources; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Samples -{ - public partial class Sample_BackupEngineBaseResourceCollection - { - // List Dpm/AzureBackupServer/Lajolla Backup Engines - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_ListDpmAzureBackupServerLajollaBackupEngines() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Dpm/BackupEngines_List.json - // this example is just showing the usage of "BackupEngines_List" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "testRG"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this BackupEngineBaseResource - string vaultName = "testVault"; - BackupEngineBaseResourceCollection collection = resourceGroupResource.GetBackupEngineBaseResources(vaultName); - - // invoke the operation and iterate over the result - await foreach (BackupEngineBaseResource item in collection.GetAllAsync()) - { - // the variable item is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - BackupEngineBaseResourceData resourceData = item.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - Console.WriteLine($"Succeeded"); - } - - // Get Dpm/AzureBackupServer/Lajolla Backup Engine Details - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetDpmAzureBackupServerLajollaBackupEngineDetails() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Dpm/BackupEngines_Get.json - // this example is just showing the usage of "BackupEngines_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "testRG"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this BackupEngineBaseResource - string vaultName = "testVault"; - BackupEngineBaseResourceCollection collection = resourceGroupResource.GetBackupEngineBaseResources(vaultName); - - // invoke the operation - string backupEngineName = "testServer"; - BackupEngineBaseResource result = await collection.GetAsync(backupEngineName); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - BackupEngineBaseResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // Get Dpm/AzureBackupServer/Lajolla Backup Engine Details - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Exists_GetDpmAzureBackupServerLajollaBackupEngineDetails() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Dpm/BackupEngines_Get.json - // this example is just showing the usage of "BackupEngines_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "testRG"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this BackupEngineBaseResource - string vaultName = "testVault"; - BackupEngineBaseResourceCollection collection = resourceGroupResource.GetBackupEngineBaseResources(vaultName); - - // invoke the operation - string backupEngineName = "testServer"; - bool result = await collection.ExistsAsync(backupEngineName); - - Console.WriteLine($"Succeeded: {result}"); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceConfigResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceConfigResource.cs deleted file mode 100644 index 464bd36e9a17c..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceConfigResource.cs +++ /dev/null @@ -1,203 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Identity; -using Azure.ResourceManager; -using Azure.ResourceManager.RecoveryServicesBackup; -using Azure.ResourceManager.RecoveryServicesBackup.Models; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Samples -{ - public partial class Sample_BackupResourceConfigResource - { - // Get Vault Storage Configuration - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetVaultStorageConfiguration() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/BackupStorageConfig_Get.json - // this example is just showing the usage of "BackupResourceStorageConfigsNonCRR_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this BackupResourceConfigResource created on azure - // for more information of creating BackupResourceConfigResource, please refer to the document of BackupResourceConfigResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "PythonSDKBackupTestRg"; - string vaultName = "PySDKBackupTestRsVault"; - ResourceIdentifier backupResourceConfigResourceId = BackupResourceConfigResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName); - BackupResourceConfigResource backupResourceConfigResource = client.GetBackupResourceConfigResource(backupResourceConfigResourceId); - - // invoke the operation - BackupResourceConfigResource result = await backupResourceConfigResource.GetAsync(); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - BackupResourceConfigResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // Update Vault Storage Configuration - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_UpdateVaultStorageConfiguration() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/BackupStorageConfig_Patch.json - // this example is just showing the usage of "BackupResourceStorageConfigsNonCRR_patch" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this BackupResourceConfigResource created on azure - // for more information of creating BackupResourceConfigResource, please refer to the document of BackupResourceConfigResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "PythonSDKBackupTestRg"; - string vaultName = "PySDKBackupTestRsVault"; - ResourceIdentifier backupResourceConfigResourceId = BackupResourceConfigResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName); - BackupResourceConfigResource backupResourceConfigResource = client.GetBackupResourceConfigResource(backupResourceConfigResourceId); - - // invoke the operation - BackupResourceConfigResourceData data = new BackupResourceConfigResourceData(new AzureLocation("placeholder")) - { - Properties = new BackupResourceConfig() - { - StorageType = StorageType.LocallyRedundant, - StorageTypeState = StorageTypeState.Unlocked, - }, - }; - BackupResourceConfigResource result = await backupResourceConfigResource.UpdateAsync(data); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - BackupResourceConfigResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // Get OperationStatus - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetOperationStatus_GetOperationStatus() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/BackupDataMove/BackupDataMoveOperationStatus_Get.json - // this example is just showing the usage of "GetOperationStatus" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this BackupResourceConfigResource created on azure - // for more information of creating BackupResourceConfigResource, please refer to the document of BackupResourceConfigResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "sourceRG"; - string vaultName = "source-rsv"; - ResourceIdentifier backupResourceConfigResourceId = BackupResourceConfigResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName); - BackupResourceConfigResource backupResourceConfigResource = client.GetBackupResourceConfigResource(backupResourceConfigResourceId); - - // invoke the operation - string operationId = "00000000-0000-0000-0000-000000000000"; - OperationStatus result = await backupResourceConfigResource.GetOperationStatusAsync(operationId); - - Console.WriteLine($"Succeeded: {result}"); - } - - // Prepare Data Move - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task BMSPrepareDataMove_PrepareDataMove() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/BackupDataMove/PrepareDataMove_Post.json - // this example is just showing the usage of "BMSPrepareDataMove" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this BackupResourceConfigResource created on azure - // for more information of creating BackupResourceConfigResource, please refer to the document of BackupResourceConfigResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "sourceRG"; - string vaultName = "source-rsv"; - ResourceIdentifier backupResourceConfigResourceId = BackupResourceConfigResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName); - BackupResourceConfigResource backupResourceConfigResource = client.GetBackupResourceConfigResource(backupResourceConfigResourceId); - - // invoke the operation - PrepareDataMoveContent content = new PrepareDataMoveContent("/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/targetRG/providers/Microsoft.RecoveryServices/vaults/target-rsv", "USGov Virginia", DataMoveLevel.Vault); - await backupResourceConfigResource.BMSPrepareDataMoveAsync(WaitUntil.Completed, content); - - Console.WriteLine($"Succeeded"); - } - - // Trigger Data Move - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task BMSTriggerDataMove_TriggerDataMove() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/BackupDataMove/TriggerDataMove_Post.json - // this example is just showing the usage of "BMSTriggerDataMove" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this BackupResourceConfigResource created on azure - // for more information of creating BackupResourceConfigResource, please refer to the document of BackupResourceConfigResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "targetRG"; - string vaultName = "target-rsv"; - ResourceIdentifier backupResourceConfigResourceId = BackupResourceConfigResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName); - BackupResourceConfigResource backupResourceConfigResource = client.GetBackupResourceConfigResource(backupResourceConfigResourceId); - - // invoke the operation - TriggerDataMoveContent content = new TriggerDataMoveContent("/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/sourceRG/providers/Microsoft.RecoveryServices/vaults/source-rsv", "USGov Iowa", DataMoveLevel.Vault, "MTg2OTcyMzM4NzYyMjc1NDY3Nzs1YmUzYmVmNi04YjJiLTRhOTItOTllYi01NTM0MDllYjk2NjE="); - await backupResourceConfigResource.BMSTriggerDataMoveAsync(WaitUntil.Completed, content); - - Console.WriteLine($"Succeeded"); - } - - // Get operation result for PrepareDataMove - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetBMSPrepareDataMoveOperationResult_GetOperationResultForPrepareDataMove() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/BackupDataMove/PrepareDataMoveOperationResult_Get.json - // this example is just showing the usage of "BMSPrepareDataMoveOperationResult_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this BackupResourceConfigResource created on azure - // for more information of creating BackupResourceConfigResource, please refer to the document of BackupResourceConfigResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "sourceRG"; - string vaultName = "source-rsv"; - ResourceIdentifier backupResourceConfigResourceId = BackupResourceConfigResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName); - BackupResourceConfigResource backupResourceConfigResource = client.GetBackupResourceConfigResource(backupResourceConfigResourceId); - - // invoke the operation - string operationId = "00000000-0000-0000-0000-000000000000"; - VaultStorageConfigOperationResultResponse result = await backupResourceConfigResource.GetBMSPrepareDataMoveOperationResultAsync(operationId); - - Console.WriteLine($"Succeeded: {result}"); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceConfigResourceCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceConfigResourceCollection.cs deleted file mode 100644 index 4be85282a126f..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceConfigResourceCollection.cs +++ /dev/null @@ -1,129 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Identity; -using Azure.ResourceManager; -using Azure.ResourceManager.RecoveryServicesBackup; -using Azure.ResourceManager.RecoveryServicesBackup.Models; -using Azure.ResourceManager.Resources; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Samples -{ - public partial class Sample_BackupResourceConfigResourceCollection - { - // Get Vault Storage Configuration - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetVaultStorageConfiguration() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/BackupStorageConfig_Get.json - // this example is just showing the usage of "BackupResourceStorageConfigsNonCRR_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "PythonSDKBackupTestRg"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this BackupResourceConfigResource - BackupResourceConfigResourceCollection collection = resourceGroupResource.GetBackupResourceConfigResources(); - - // invoke the operation - string vaultName = "PySDKBackupTestRsVault"; - BackupResourceConfigResource result = await collection.GetAsync(vaultName); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - BackupResourceConfigResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // Get Vault Storage Configuration - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Exists_GetVaultStorageConfiguration() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/BackupStorageConfig_Get.json - // this example is just showing the usage of "BackupResourceStorageConfigsNonCRR_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "PythonSDKBackupTestRg"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this BackupResourceConfigResource - BackupResourceConfigResourceCollection collection = resourceGroupResource.GetBackupResourceConfigResources(); - - // invoke the operation - string vaultName = "PySDKBackupTestRsVault"; - bool result = await collection.ExistsAsync(vaultName); - - Console.WriteLine($"Succeeded: {result}"); - } - - // Update Vault Storage Configuration - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task CreateOrUpdate_UpdateVaultStorageConfiguration() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/BackupStorageConfig_Put.json - // this example is just showing the usage of "BackupResourceStorageConfigsNonCRR_Update" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "PythonSDKBackupTestRg"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this BackupResourceConfigResource - BackupResourceConfigResourceCollection collection = resourceGroupResource.GetBackupResourceConfigResources(); - - // invoke the operation - string vaultName = "PySDKBackupTestRsVault"; - BackupResourceConfigResourceData data = new BackupResourceConfigResourceData(new AzureLocation("placeholder")) - { - Properties = new BackupResourceConfig() - { - StorageType = StorageType.LocallyRedundant, - StorageTypeState = StorageTypeState.Unlocked, - }, - }; - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, vaultName, data); - BackupResourceConfigResource result = lro.Value; - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - BackupResourceConfigResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceEncryptionConfigExtendedResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceEncryptionConfigExtendedResource.cs deleted file mode 100644 index 8dc16048384d2..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceEncryptionConfigExtendedResource.cs +++ /dev/null @@ -1,89 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Identity; -using Azure.ResourceManager; -using Azure.ResourceManager.RecoveryServicesBackup; -using Azure.ResourceManager.RecoveryServicesBackup.Models; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Samples -{ - public partial class Sample_BackupResourceEncryptionConfigExtendedResource - { - // Get Vault Encryption Configuration - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetVaultEncryptionConfiguration() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/BackupResourceEncryptionConfig_Get.json - // this example is just showing the usage of "BackupResourceEncryptionConfigs_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this BackupResourceEncryptionConfigExtendedResource created on azure - // for more information of creating BackupResourceEncryptionConfigExtendedResource, please refer to the document of BackupResourceEncryptionConfigExtendedResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "rishgrp"; - string vaultName = "rishTestVault"; - ResourceIdentifier backupResourceEncryptionConfigExtendedResourceId = BackupResourceEncryptionConfigExtendedResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName); - BackupResourceEncryptionConfigExtendedResource backupResourceEncryptionConfigExtendedResource = client.GetBackupResourceEncryptionConfigExtendedResource(backupResourceEncryptionConfigExtendedResourceId); - - // invoke the operation - BackupResourceEncryptionConfigExtendedResource result = await backupResourceEncryptionConfigExtendedResource.GetAsync(); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - BackupResourceEncryptionConfigExtendedResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // Update Vault Encryption Configuration - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_UpdateVaultEncryptionConfiguration() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/BackupResourceEncryptionConfig_Put.json - // this example is just showing the usage of "BackupResourceEncryptionConfigs_Update" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this BackupResourceEncryptionConfigExtendedResource created on azure - // for more information of creating BackupResourceEncryptionConfigExtendedResource, please refer to the document of BackupResourceEncryptionConfigExtendedResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "test-rg"; - string vaultName = "source-rsv"; - ResourceIdentifier backupResourceEncryptionConfigExtendedResourceId = BackupResourceEncryptionConfigExtendedResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName); - BackupResourceEncryptionConfigExtendedResource backupResourceEncryptionConfigExtendedResource = client.GetBackupResourceEncryptionConfigExtendedResource(backupResourceEncryptionConfigExtendedResourceId); - - // invoke the operation - BackupResourceEncryptionConfigExtendedResourceCreateOrUpdateContent content = new BackupResourceEncryptionConfigExtendedResourceCreateOrUpdateContent(new AzureLocation("placeholder")) - { - Properties = new BackupResourceEncryptionConfig() - { - EncryptionAtRestType = EncryptionAtRestType.CustomerManaged, - KeyUri = new Uri("https://gktestkv1.vault.azure.net/keys/Test1/ed2e8cdc7f86477ebf0c6462b504a9ed"), - SubscriptionId = "1a2311d9-66f5-47d3-a9fb-7a37da63934b", - InfrastructureEncryptionState = new InfrastructureEncryptionState("true"), - }, - }; - await backupResourceEncryptionConfigExtendedResource.UpdateAsync(WaitUntil.Completed, content); - - Console.WriteLine($"Succeeded"); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceEncryptionConfigExtendedResourceCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceEncryptionConfigExtendedResourceCollection.cs deleted file mode 100644 index 604b3a4f90790..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceEncryptionConfigExtendedResourceCollection.cs +++ /dev/null @@ -1,126 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Identity; -using Azure.ResourceManager; -using Azure.ResourceManager.RecoveryServicesBackup; -using Azure.ResourceManager.RecoveryServicesBackup.Models; -using Azure.ResourceManager.Resources; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Samples -{ - public partial class Sample_BackupResourceEncryptionConfigExtendedResourceCollection - { - // Get Vault Encryption Configuration - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetVaultEncryptionConfiguration() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/BackupResourceEncryptionConfig_Get.json - // this example is just showing the usage of "BackupResourceEncryptionConfigs_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "rishgrp"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this BackupResourceEncryptionConfigExtendedResource - BackupResourceEncryptionConfigExtendedResourceCollection collection = resourceGroupResource.GetBackupResourceEncryptionConfigExtendedResources(); - - // invoke the operation - string vaultName = "rishTestVault"; - BackupResourceEncryptionConfigExtendedResource result = await collection.GetAsync(vaultName); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - BackupResourceEncryptionConfigExtendedResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // Get Vault Encryption Configuration - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Exists_GetVaultEncryptionConfiguration() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/BackupResourceEncryptionConfig_Get.json - // this example is just showing the usage of "BackupResourceEncryptionConfigs_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "rishgrp"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this BackupResourceEncryptionConfigExtendedResource - BackupResourceEncryptionConfigExtendedResourceCollection collection = resourceGroupResource.GetBackupResourceEncryptionConfigExtendedResources(); - - // invoke the operation - string vaultName = "rishTestVault"; - bool result = await collection.ExistsAsync(vaultName); - - Console.WriteLine($"Succeeded: {result}"); - } - - // Update Vault Encryption Configuration - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task CreateOrUpdate_UpdateVaultEncryptionConfiguration() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/BackupResourceEncryptionConfig_Put.json - // this example is just showing the usage of "BackupResourceEncryptionConfigs_Update" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "test-rg"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this BackupResourceEncryptionConfigExtendedResource - BackupResourceEncryptionConfigExtendedResourceCollection collection = resourceGroupResource.GetBackupResourceEncryptionConfigExtendedResources(); - - // invoke the operation - string vaultName = "source-rsv"; - BackupResourceEncryptionConfigExtendedResourceCreateOrUpdateContent content = new BackupResourceEncryptionConfigExtendedResourceCreateOrUpdateContent(new AzureLocation("placeholder")) - { - Properties = new BackupResourceEncryptionConfig() - { - EncryptionAtRestType = EncryptionAtRestType.CustomerManaged, - KeyUri = new Uri("https://gktestkv1.vault.azure.net/keys/Test1/ed2e8cdc7f86477ebf0c6462b504a9ed"), - SubscriptionId = "1a2311d9-66f5-47d3-a9fb-7a37da63934b", - InfrastructureEncryptionState = new InfrastructureEncryptionState("true"), - }, - }; - await collection.CreateOrUpdateAsync(WaitUntil.Completed, vaultName, content); - - Console.WriteLine($"Succeeded"); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceVaultConfigResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceVaultConfigResource.cs deleted file mode 100644 index 475f43e7a4401..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceVaultConfigResource.cs +++ /dev/null @@ -1,89 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading.Tasks; -using Azure.Core; -using Azure.Identity; -using Azure.ResourceManager; -using Azure.ResourceManager.RecoveryServicesBackup; -using Azure.ResourceManager.RecoveryServicesBackup.Models; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Samples -{ - public partial class Sample_BackupResourceVaultConfigResource - { - // Get Vault Security Config - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetVaultSecurityConfig() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/BackupResourceVaultConfigs_Get.json - // this example is just showing the usage of "BackupResourceVaultConfigs_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this BackupResourceVaultConfigResource created on azure - // for more information of creating BackupResourceVaultConfigResource, please refer to the document of BackupResourceVaultConfigResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "SwaggerTestRg"; - string vaultName = "SwaggerTest"; - ResourceIdentifier backupResourceVaultConfigResourceId = BackupResourceVaultConfigResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName); - BackupResourceVaultConfigResource backupResourceVaultConfigResource = client.GetBackupResourceVaultConfigResource(backupResourceVaultConfigResourceId); - - // invoke the operation - BackupResourceVaultConfigResource result = await backupResourceVaultConfigResource.GetAsync(); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - BackupResourceVaultConfigResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // Update Vault Security Config - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_UpdateVaultSecurityConfig() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/BackupResourceVaultConfigs_Patch.json - // this example is just showing the usage of "BackupResourceVaultConfigs_Update" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this BackupResourceVaultConfigResource created on azure - // for more information of creating BackupResourceVaultConfigResource, please refer to the document of BackupResourceVaultConfigResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "SwaggerTestRg"; - string vaultName = "SwaggerTest"; - ResourceIdentifier backupResourceVaultConfigResourceId = BackupResourceVaultConfigResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName); - BackupResourceVaultConfigResource backupResourceVaultConfigResource = client.GetBackupResourceVaultConfigResource(backupResourceVaultConfigResourceId); - - // invoke the operation - BackupResourceVaultConfigResourceData data = new BackupResourceVaultConfigResourceData(new AzureLocation("placeholder")) - { - Properties = new BackupResourceVaultConfig() - { - EnhancedSecurityState = EnhancedSecurityState.Enabled, - }, - }; - BackupResourceVaultConfigResource result = await backupResourceVaultConfigResource.UpdateAsync(data); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - BackupResourceVaultConfigResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceVaultConfigResourceCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceVaultConfigResourceCollection.cs deleted file mode 100644 index 59dfe942879d0..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceVaultConfigResourceCollection.cs +++ /dev/null @@ -1,129 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Identity; -using Azure.ResourceManager; -using Azure.ResourceManager.RecoveryServicesBackup; -using Azure.ResourceManager.RecoveryServicesBackup.Models; -using Azure.ResourceManager.Resources; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Samples -{ - public partial class Sample_BackupResourceVaultConfigResourceCollection - { - // Get Vault Security Config - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetVaultSecurityConfig() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/BackupResourceVaultConfigs_Get.json - // this example is just showing the usage of "BackupResourceVaultConfigs_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "SwaggerTestRg"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this BackupResourceVaultConfigResource - BackupResourceVaultConfigResourceCollection collection = resourceGroupResource.GetBackupResourceVaultConfigResources(); - - // invoke the operation - string vaultName = "SwaggerTest"; - BackupResourceVaultConfigResource result = await collection.GetAsync(vaultName); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - BackupResourceVaultConfigResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // Get Vault Security Config - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Exists_GetVaultSecurityConfig() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/BackupResourceVaultConfigs_Get.json - // this example is just showing the usage of "BackupResourceVaultConfigs_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "SwaggerTestRg"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this BackupResourceVaultConfigResource - BackupResourceVaultConfigResourceCollection collection = resourceGroupResource.GetBackupResourceVaultConfigResources(); - - // invoke the operation - string vaultName = "SwaggerTest"; - bool result = await collection.ExistsAsync(vaultName); - - Console.WriteLine($"Succeeded: {result}"); - } - - // Update Vault Security Config - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task CreateOrUpdate_UpdateVaultSecurityConfig() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/BackupResourceVaultConfigs_Put.json - // this example is just showing the usage of "BackupResourceVaultConfigs_Put" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "SwaggerTestRg"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this BackupResourceVaultConfigResource - BackupResourceVaultConfigResourceCollection collection = resourceGroupResource.GetBackupResourceVaultConfigResources(); - - // invoke the operation - string vaultName = "SwaggerTest"; - BackupResourceVaultConfigResourceData data = new BackupResourceVaultConfigResourceData(new AzureLocation("placeholder")) - { - Properties = new BackupResourceVaultConfig() - { - EnhancedSecurityState = EnhancedSecurityState.Enabled, - SoftDeleteFeatureState = SoftDeleteFeatureState.Enabled, - }, - }; - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, vaultName, data); - BackupResourceVaultConfigResource result = lro.Value; - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - BackupResourceVaultConfigResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_JobResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_JobResource.cs deleted file mode 100644 index 15972290624e6..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_JobResource.cs +++ /dev/null @@ -1,108 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading.Tasks; -using Azure.Core; -using Azure.Identity; -using Azure.ResourceManager; -using Azure.ResourceManager.RecoveryServicesBackup; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Samples -{ - public partial class Sample_JobResource - { - // Get Job Details - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetJobDetails() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/GetJobDetails.json - // this example is just showing the usage of "JobDetails_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this JobResource created on azure - // for more information of creating JobResource, please refer to the document of JobResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "SwaggerTestRg"; - string vaultName = "NetSDKTestRsVault"; - string jobName = "00000000-0000-0000-0000-000000000000"; - ResourceIdentifier jobResourceId = JobResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, jobName); - JobResource jobResource = client.GetJobResource(jobResourceId); - - // invoke the operation - JobResource result = await jobResource.GetAsync(); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - JobResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // Cancel Job - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task TriggerJobCancellation_CancelJob() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/TriggerCancelJob.json - // this example is just showing the usage of "JobCancellations_Trigger" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this JobResource created on azure - // for more information of creating JobResource, please refer to the document of JobResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "SwaggerTestRg"; - string vaultName = "NetSDKTestRsVault"; - string jobName = "00000000-0000-0000-0000-000000000000"; - ResourceIdentifier jobResourceId = JobResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, jobName); - JobResource jobResource = client.GetJobResource(jobResourceId); - - // invoke the operation - await jobResource.TriggerJobCancellationAsync(); - - Console.WriteLine($"Succeeded"); - } - - // Cancel Job Operation Result - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetJobOperationResult_CancelJobOperationResult() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/CancelJobOperationResult.json - // this example is just showing the usage of "JobOperationResults_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this JobResource created on azure - // for more information of creating JobResource, please refer to the document of JobResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "SwaggerTestRg"; - string vaultName = "NetSDKTestRsVault"; - string jobName = "00000000-0000-0000-0000-000000000000"; - ResourceIdentifier jobResourceId = JobResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, jobName); - JobResource jobResource = client.GetJobResource(jobResourceId); - - // invoke the operation - string operationId = "00000000-0000-0000-0000-000000000000"; - await jobResource.GetJobOperationResultAsync(operationId); - - Console.WriteLine($"Succeeded"); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_JobResourceCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_JobResourceCollection.cs deleted file mode 100644 index d41d6c6e85f88..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_JobResourceCollection.cs +++ /dev/null @@ -1,199 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading.Tasks; -using Azure.Core; -using Azure.Identity; -using Azure.ResourceManager; -using Azure.ResourceManager.RecoveryServicesBackup; -using Azure.ResourceManager.Resources; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Samples -{ - public partial class Sample_JobResourceCollection - { - // List All Jobs - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_ListAllJobs() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/ListJobs.json - // this example is just showing the usage of "BackupJobs_List" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "SwaggerTestRg"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this JobResource - string vaultName = "NetSDKTestRsVault"; - JobResourceCollection collection = resourceGroupResource.GetJobResources(vaultName); - - // invoke the operation and iterate over the result - await foreach (JobResource item in collection.GetAllAsync()) - { - // the variable item is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - JobResourceData resourceData = item.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - Console.WriteLine($"Succeeded"); - } - - // List Jobs With Filters - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_ListJobsWithFilters() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/ListJobsWithAllSupportedFilters.json - // this example is just showing the usage of "BackupJobs_List" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "SwaggerTestRg"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this JobResource - string vaultName = "NetSDKTestRsVault"; - JobResourceCollection collection = resourceGroupResource.GetJobResources(vaultName); - - // invoke the operation and iterate over the result - string filter = "startTime eq '2016-01-01 00:00:00 AM' and endTime eq '2017-11-29 00:00:00 AM' and operation eq 'Backup' and backupManagementType eq 'AzureIaasVM' and status eq 'InProgress'"; - await foreach (JobResource item in collection.GetAllAsync(filter: filter)) - { - // the variable item is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - JobResourceData resourceData = item.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - Console.WriteLine($"Succeeded"); - } - - // List Jobs With Time Filter - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_ListJobsWithTimeFilter() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/ListJobsWithStartTimeAndEndTimeFilters.json - // this example is just showing the usage of "BackupJobs_List" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "SwaggerTestRg"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this JobResource - string vaultName = "NetSDKTestRsVault"; - JobResourceCollection collection = resourceGroupResource.GetJobResources(vaultName); - - // invoke the operation and iterate over the result - string filter = "startTime eq '2016-01-01 00:00:00 AM' and endTime eq '2017-11-29 00:00:00 AM'"; - await foreach (JobResource item in collection.GetAllAsync(filter: filter)) - { - // the variable item is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - JobResourceData resourceData = item.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - Console.WriteLine($"Succeeded"); - } - - // Get Job Details - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetJobDetails() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/GetJobDetails.json - // this example is just showing the usage of "JobDetails_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "SwaggerTestRg"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this JobResource - string vaultName = "NetSDKTestRsVault"; - JobResourceCollection collection = resourceGroupResource.GetJobResources(vaultName); - - // invoke the operation - string jobName = "00000000-0000-0000-0000-000000000000"; - JobResource result = await collection.GetAsync(jobName); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - JobResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // Get Job Details - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Exists_GetJobDetails() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/GetJobDetails.json - // this example is just showing the usage of "JobDetails_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "SwaggerTestRg"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this JobResource - string vaultName = "NetSDKTestRsVault"; - JobResourceCollection collection = resourceGroupResource.GetJobResources(vaultName); - - // invoke the operation - string jobName = "00000000-0000-0000-0000-000000000000"; - bool result = await collection.ExistsAsync(jobName); - - Console.WriteLine($"Succeeded: {result}"); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_PrivateEndpointConnectionResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_PrivateEndpointConnectionResource.cs deleted file mode 100644 index be0a2ceee4977..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_PrivateEndpointConnectionResource.cs +++ /dev/null @@ -1,156 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Identity; -using Azure.ResourceManager; -using Azure.ResourceManager.RecoveryServicesBackup; -using Azure.ResourceManager.RecoveryServicesBackup.Models; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Samples -{ - public partial class Sample_PrivateEndpointConnectionResource - { - // Get PrivateEndpointConnection - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetPrivateEndpointConnection() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/PrivateEndpointConnection/GetPrivateEndpointConnection.json - // this example is just showing the usage of "PrivateEndpointConnection_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this PrivateEndpointConnectionResource created on azure - // for more information of creating PrivateEndpointConnectionResource, please refer to the document of PrivateEndpointConnectionResource - string subscriptionId = "04cf684a-d41f-4550-9f70-7708a3a2283b"; - string resourceGroupName = "gaallaRG"; - string vaultName = "gaallavaultbvtd2msi"; - string privateEndpointConnectionName = "gaallatestpe2.5704c932-249a-490b-a142-1396838cd3b"; - ResourceIdentifier privateEndpointConnectionResourceId = PrivateEndpointConnectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, privateEndpointConnectionName); - PrivateEndpointConnectionResource privateEndpointConnectionResource = client.GetPrivateEndpointConnectionResource(privateEndpointConnectionResourceId); - - // invoke the operation - PrivateEndpointConnectionResource result = await privateEndpointConnectionResource.GetAsync(); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - PrivateEndpointConnectionResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // Update PrivateEndpointConnection - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_UpdatePrivateEndpointConnection() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/PrivateEndpointConnection/PutPrivateEndpointConnection.json - // this example is just showing the usage of "PrivateEndpointConnection_Put" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this PrivateEndpointConnectionResource created on azure - // for more information of creating PrivateEndpointConnectionResource, please refer to the document of PrivateEndpointConnectionResource - string subscriptionId = "04cf684a-d41f-4550-9f70-7708a3a2283b"; - string resourceGroupName = "gaallaRG"; - string vaultName = "gaallavaultbvtd2msi"; - string privateEndpointConnectionName = "gaallatestpe2.5704c932-249a-490b-a142-1396838cd3b"; - ResourceIdentifier privateEndpointConnectionResourceId = PrivateEndpointConnectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, privateEndpointConnectionName); - PrivateEndpointConnectionResource privateEndpointConnectionResource = client.GetPrivateEndpointConnectionResource(privateEndpointConnectionResourceId); - - // invoke the operation - PrivateEndpointConnectionResourceData data = new PrivateEndpointConnectionResourceData(new AzureLocation("placeholder")) - { - Properties = new RecoveryServicesBackupPrivateEndpointConnection() - { - ProvisioningState = ProvisioningState.Succeeded, - PrivateEndpointId = new ResourceIdentifier("/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/gaallaRG/providers/Microsoft.Network/privateEndpoints/gaallatestpe3"), - PrivateLinkServiceConnectionState = new RecoveryServicesBackupPrivateLinkServiceConnectionState() - { - Status = PrivateEndpointConnectionStatus.Approved, - Description = "Approved by johndoe@company.com", - }, - }, - }; - ArmOperation lro = await privateEndpointConnectionResource.UpdateAsync(WaitUntil.Completed, data); - PrivateEndpointConnectionResource result = lro.Value; - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - PrivateEndpointConnectionResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // Delete PrivateEndpointConnection - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Delete_DeletePrivateEndpointConnection() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/PrivateEndpointConnection/DeletePrivateEndpointConnection.json - // this example is just showing the usage of "PrivateEndpointConnection_Delete" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this PrivateEndpointConnectionResource created on azure - // for more information of creating PrivateEndpointConnectionResource, please refer to the document of PrivateEndpointConnectionResource - string subscriptionId = "04cf684a-d41f-4550-9f70-7708a3a2283b"; - string resourceGroupName = "gaallaRG"; - string vaultName = "gaallavaultbvtd2msi"; - string privateEndpointConnectionName = "gaallatestpe2.5704c932-249a-490b-a142-1396838cd3b"; - ResourceIdentifier privateEndpointConnectionResourceId = PrivateEndpointConnectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, privateEndpointConnectionName); - PrivateEndpointConnectionResource privateEndpointConnectionResource = client.GetPrivateEndpointConnectionResource(privateEndpointConnectionResourceId); - - // invoke the operation - await privateEndpointConnectionResource.DeleteAsync(WaitUntil.Completed); - - Console.WriteLine($"Succeeded"); - } - - // Get OperationStatus - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetOperationStatusPrivateEndpoint_GetOperationStatus() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/PrivateEndpointConnection/GetPrivateEndpointConnectionOperationStatus.json - // this example is just showing the usage of "PrivateEndpoint_GetOperationStatus" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this PrivateEndpointConnectionResource created on azure - // for more information of creating PrivateEndpointConnectionResource, please refer to the document of PrivateEndpointConnectionResource - string subscriptionId = "04cf684a-d41f-4550-9f70-7708a3a2283b"; - string resourceGroupName = "gaallaRG"; - string vaultName = "gaallavaultbvtd2msi"; - string privateEndpointConnectionName = "gaallatestpe2.5704c932-249a-490b-a142-1396838cd3b"; - ResourceIdentifier privateEndpointConnectionResourceId = PrivateEndpointConnectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, privateEndpointConnectionName); - PrivateEndpointConnectionResource privateEndpointConnectionResource = client.GetPrivateEndpointConnectionResource(privateEndpointConnectionResourceId); - - // invoke the operation - string operationId = "0f48183b-0a44-4dca-aec1-bba5daab888a"; - OperationStatus result = await privateEndpointConnectionResource.GetOperationStatusPrivateEndpointAsync(operationId); - - Console.WriteLine($"Succeeded: {result}"); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_PrivateEndpointConnectionResourceCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_PrivateEndpointConnectionResourceCollection.cs deleted file mode 100644 index 980e44b6ea8aa..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_PrivateEndpointConnectionResourceCollection.cs +++ /dev/null @@ -1,137 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Identity; -using Azure.ResourceManager; -using Azure.ResourceManager.RecoveryServicesBackup; -using Azure.ResourceManager.RecoveryServicesBackup.Models; -using Azure.ResourceManager.Resources; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Samples -{ - public partial class Sample_PrivateEndpointConnectionResourceCollection - { - // Get PrivateEndpointConnection - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetPrivateEndpointConnection() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/PrivateEndpointConnection/GetPrivateEndpointConnection.json - // this example is just showing the usage of "PrivateEndpointConnection_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "04cf684a-d41f-4550-9f70-7708a3a2283b"; - string resourceGroupName = "gaallaRG"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this PrivateEndpointConnectionResource - PrivateEndpointConnectionResourceCollection collection = resourceGroupResource.GetPrivateEndpointConnectionResources(); - - // invoke the operation - string vaultName = "gaallavaultbvtd2msi"; - string privateEndpointConnectionName = "gaallatestpe2.5704c932-249a-490b-a142-1396838cd3b"; - PrivateEndpointConnectionResource result = await collection.GetAsync(vaultName, privateEndpointConnectionName); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - PrivateEndpointConnectionResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // Get PrivateEndpointConnection - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Exists_GetPrivateEndpointConnection() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/PrivateEndpointConnection/GetPrivateEndpointConnection.json - // this example is just showing the usage of "PrivateEndpointConnection_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "04cf684a-d41f-4550-9f70-7708a3a2283b"; - string resourceGroupName = "gaallaRG"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this PrivateEndpointConnectionResource - PrivateEndpointConnectionResourceCollection collection = resourceGroupResource.GetPrivateEndpointConnectionResources(); - - // invoke the operation - string vaultName = "gaallavaultbvtd2msi"; - string privateEndpointConnectionName = "gaallatestpe2.5704c932-249a-490b-a142-1396838cd3b"; - bool result = await collection.ExistsAsync(vaultName, privateEndpointConnectionName); - - Console.WriteLine($"Succeeded: {result}"); - } - - // Update PrivateEndpointConnection - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task CreateOrUpdate_UpdatePrivateEndpointConnection() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/PrivateEndpointConnection/PutPrivateEndpointConnection.json - // this example is just showing the usage of "PrivateEndpointConnection_Put" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "04cf684a-d41f-4550-9f70-7708a3a2283b"; - string resourceGroupName = "gaallaRG"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this PrivateEndpointConnectionResource - PrivateEndpointConnectionResourceCollection collection = resourceGroupResource.GetPrivateEndpointConnectionResources(); - - // invoke the operation - string vaultName = "gaallavaultbvtd2msi"; - string privateEndpointConnectionName = "gaallatestpe2.5704c932-249a-490b-a142-1396838cd3b"; - PrivateEndpointConnectionResourceData data = new PrivateEndpointConnectionResourceData(new AzureLocation("placeholder")) - { - Properties = new RecoveryServicesBackupPrivateEndpointConnection() - { - ProvisioningState = ProvisioningState.Succeeded, - PrivateEndpointId = new ResourceIdentifier("/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/gaallaRG/providers/Microsoft.Network/privateEndpoints/gaallatestpe3"), - PrivateLinkServiceConnectionState = new RecoveryServicesBackupPrivateLinkServiceConnectionState() - { - Status = PrivateEndpointConnectionStatus.Approved, - Description = "Approved by johndoe@company.com", - }, - }, - }; - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, vaultName, privateEndpointConnectionName, data); - PrivateEndpointConnectionResource result = lro.Value; - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - PrivateEndpointConnectionResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ProtectedItemResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ProtectedItemResource.cs deleted file mode 100644 index 6940eaac0b0d9..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ProtectedItemResource.cs +++ /dev/null @@ -1,315 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Identity; -using Azure.ResourceManager; -using Azure.ResourceManager.RecoveryServicesBackup; -using Azure.ResourceManager.RecoveryServicesBackup.Models; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Samples -{ - public partial class Sample_ProtectedItemResource - { - // Get Protected Classic Virtual Machine Details - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetProtectedClassicVirtualMachineDetails() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/ClassicCompute_ProtectedItem_Get.json - // this example is just showing the usage of "ProtectedItems_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ProtectedItemResource created on azure - // for more information of creating ProtectedItemResource, please refer to the document of ProtectedItemResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "PythonSDKBackupTestRg"; - string vaultName = "PySDKBackupTestRsVault"; - string fabricName = "Azure"; - string containerName = "iaasvmcontainer;iaasvmcontainer;iaasvm-rg;iaasvm-1"; - string protectedItemName = "vm;iaasvmcontainer;iaasvm-rg;iaasvm-1"; - ResourceIdentifier protectedItemResourceId = ProtectedItemResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName); - ProtectedItemResource protectedItemResource = client.GetProtectedItemResource(protectedItemResourceId); - - // invoke the operation - ProtectedItemResource result = await protectedItemResource.GetAsync(); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - ProtectedItemResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // Get Protected Virtual Machine Details - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetProtectedVirtualMachineDetails() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/Compute_ProtectedItem_Get.json - // this example is just showing the usage of "ProtectedItems_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ProtectedItemResource created on azure - // for more information of creating ProtectedItemResource, please refer to the document of ProtectedItemResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "PythonSDKBackupTestRg"; - string vaultName = "PySDKBackupTestRsVault"; - string fabricName = "Azure"; - string containerName = "iaasvmcontainer;iaasvmcontainerv2;iaasvm-rg;iaasvm-1"; - string protectedItemName = "vm;iaasvmcontainerv2;iaasvm-rg;iaasvm-1"; - ResourceIdentifier protectedItemResourceId = ProtectedItemResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName); - ProtectedItemResource protectedItemResource = client.GetProtectedItemResource(protectedItemResourceId); - - // invoke the operation - ProtectedItemResource result = await protectedItemResource.GetAsync(); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - ProtectedItemResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // Enable Protection on Azure IaasVm - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_EnableProtectionOnAzureIaasVm() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/ConfigureProtection.json - // this example is just showing the usage of "ProtectedItems_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ProtectedItemResource created on azure - // for more information of creating ProtectedItemResource, please refer to the document of ProtectedItemResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "SwaggerTestRg"; - string vaultName = "NetSDKTestRsVault"; - string fabricName = "Azure"; - string containerName = "IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1"; - string protectedItemName = "VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1"; - ResourceIdentifier protectedItemResourceId = ProtectedItemResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName); - ProtectedItemResource protectedItemResource = client.GetProtectedItemResource(protectedItemResourceId); - - // invoke the operation - ProtectedItemResourceData data = new ProtectedItemResourceData(new AzureLocation("placeholder")) - { - Properties = new AzureIaaSComputeVmProtectedItem() - { - SourceResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1", - PolicyId = "/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupPolicies/DefaultPolicy", - }, - }; - ArmOperation lro = await protectedItemResource.UpdateAsync(WaitUntil.Completed, data); - ProtectedItemResource result = lro.Value; - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - ProtectedItemResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // Stop Protection with retain data on Azure IaasVm - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_StopProtectionWithRetainDataOnAzureIaasVm() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/StopProtection.json - // this example is just showing the usage of "ProtectedItems_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ProtectedItemResource created on azure - // for more information of creating ProtectedItemResource, please refer to the document of ProtectedItemResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "SwaggerTestRg"; - string vaultName = "NetSDKTestRsVault"; - string fabricName = "Azure"; - string containerName = "IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1"; - string protectedItemName = "VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1"; - ResourceIdentifier protectedItemResourceId = ProtectedItemResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName); - ProtectedItemResource protectedItemResource = client.GetProtectedItemResource(protectedItemResourceId); - - // invoke the operation - ProtectedItemResourceData data = new ProtectedItemResourceData(new AzureLocation("placeholder")) - { - Properties = new AzureIaaSComputeVmProtectedItem() - { - ProtectionState = ProtectionState.ProtectionStopped, - SourceResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1", - }, - }; - ArmOperation lro = await protectedItemResource.UpdateAsync(WaitUntil.Completed, data); - ProtectedItemResource result = lro.Value; - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - ProtectedItemResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // Delete Protection from Azure Virtual Machine - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Delete_DeleteProtectionFromAzureVirtualMachine() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/ProtectedItem_Delete.json - // this example is just showing the usage of "ProtectedItems_Delete" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ProtectedItemResource created on azure - // for more information of creating ProtectedItemResource, please refer to the document of ProtectedItemResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "PythonSDKBackupTestRg"; - string vaultName = "PySDKBackupTestRsVault"; - string fabricName = "Azure"; - string containerName = "iaasvmcontainer;iaasvmcontainerv2;pysdktestrg;pysdktestv2vm1"; - string protectedItemName = "vm;iaasvmcontainerv2;pysdktestrg;pysdktestv2vm1"; - ResourceIdentifier protectedItemResourceId = ProtectedItemResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName); - ProtectedItemResource protectedItemResource = client.GetProtectedItemResource(protectedItemResourceId); - - // invoke the operation - await protectedItemResource.DeleteAsync(WaitUntil.Completed); - - Console.WriteLine($"Succeeded"); - } - - // Trigger Backup - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task TriggerBackup_TriggerBackup() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/TriggerBackup_Post.json - // this example is just showing the usage of "Backups_Trigger" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ProtectedItemResource created on azure - // for more information of creating ProtectedItemResource, please refer to the document of ProtectedItemResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "linuxRsVaultRG"; - string vaultName = "linuxRsVault"; - string fabricName = "Azure"; - string containerName = "IaasVMContainer;iaasvmcontainerv2;testrg;v1win2012r"; - string protectedItemName = "VM;iaasvmcontainerv2;testrg;v1win2012r"; - ResourceIdentifier protectedItemResourceId = ProtectedItemResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName); - ProtectedItemResource protectedItemResource = client.GetProtectedItemResource(protectedItemResourceId); - - // invoke the operation - BackupRequestResource backupRequestResource = new BackupRequestResource(new AzureLocation("placeholder")) - { - Properties = new IaasVmBackupRequest(), - }; - await protectedItemResource.TriggerBackupAsync(backupRequestResource); - - Console.WriteLine($"Succeeded"); - } - - // Get Operation Status of Protected Vm - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetProtectedItemOperationStatus_GetOperationStatusOfProtectedVm() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/ProtectedItemOperationStatus.json - // this example is just showing the usage of "ProtectedItemOperationStatuses_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ProtectedItemResource created on azure - // for more information of creating ProtectedItemResource, please refer to the document of ProtectedItemResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "SwaggerTestRg"; - string vaultName = "NetSDKTestRsVault"; - string fabricName = "Azure"; - string containerName = "IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1"; - string protectedItemName = "VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1"; - ResourceIdentifier protectedItemResourceId = ProtectedItemResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName); - ProtectedItemResource protectedItemResource = client.GetProtectedItemResource(protectedItemResourceId); - - // invoke the operation - string operationId = "00000000-0000-0000-0000-000000000000"; - OperationStatus result = await protectedItemResource.GetProtectedItemOperationStatusAsync(operationId); - - Console.WriteLine($"Succeeded: {result}"); - } - - // Get Protected Azure Vm Recovery Points Recommended for Move - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetRecoveryPointsRecommendedForMoves_GetProtectedAzureVmRecoveryPointsRecommendedForMove() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/RecoveryPointsRecommendedForMove_List.json - // this example is just showing the usage of "RecoveryPointsRecommendedForMove_List" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ProtectedItemResource created on azure - // for more information of creating ProtectedItemResource, please refer to the document of ProtectedItemResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "rshhtestmdvmrg"; - string vaultName = "rshvault"; - string fabricName = "Azure"; - string containerName = "IaasVMContainer;iaasvmcontainerv2;rshhtestmdvmrg;rshmdvmsmall"; - string protectedItemName = "VM;iaasvmcontainerv2;rshhtestmdvmrg;rshmdvmsmall"; - ResourceIdentifier protectedItemResourceId = ProtectedItemResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName); - ProtectedItemResource protectedItemResource = client.GetProtectedItemResource(protectedItemResourceId); - - // invoke the operation and iterate over the result - ListRecoveryPointsRecommendedForMoveContent content = new ListRecoveryPointsRecommendedForMoveContent() - { - ObjectType = "ListRecoveryPointsRecommendedForMoveRequest", - ExcludedRPList = -{ -"348916168024334","348916168024335" -}, - }; - await foreach (RecoveryPointResource item in protectedItemResource.GetRecoveryPointsRecommendedForMovesAsync(content)) - { - // the variable item is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - RecoveryPointResourceData resourceData = item.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - Console.WriteLine($"Succeeded"); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ProtectedItemResourceCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ProtectedItemResourceCollection.cs deleted file mode 100644 index 0b9d7333d9801..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ProtectedItemResourceCollection.cs +++ /dev/null @@ -1,253 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Identity; -using Azure.ResourceManager; -using Azure.ResourceManager.RecoveryServicesBackup; -using Azure.ResourceManager.RecoveryServicesBackup.Models; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Samples -{ - public partial class Sample_ProtectedItemResourceCollection - { - // Get Protected Classic Virtual Machine Details - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetProtectedClassicVirtualMachineDetails() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/ClassicCompute_ProtectedItem_Get.json - // this example is just showing the usage of "ProtectedItems_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ProtectionContainerResource created on azure - // for more information of creating ProtectionContainerResource, please refer to the document of ProtectionContainerResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "PythonSDKBackupTestRg"; - string vaultName = "PySDKBackupTestRsVault"; - string fabricName = "Azure"; - string containerName = "iaasvmcontainer;iaasvmcontainer;iaasvm-rg;iaasvm-1"; - ResourceIdentifier protectionContainerResourceId = ProtectionContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName); - ProtectionContainerResource protectionContainerResource = client.GetProtectionContainerResource(protectionContainerResourceId); - - // get the collection of this ProtectedItemResource - ProtectedItemResourceCollection collection = protectionContainerResource.GetProtectedItemResources(); - - // invoke the operation - string protectedItemName = "vm;iaasvmcontainer;iaasvm-rg;iaasvm-1"; - ProtectedItemResource result = await collection.GetAsync(protectedItemName); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - ProtectedItemResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // Get Protected Classic Virtual Machine Details - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Exists_GetProtectedClassicVirtualMachineDetails() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/ClassicCompute_ProtectedItem_Get.json - // this example is just showing the usage of "ProtectedItems_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ProtectionContainerResource created on azure - // for more information of creating ProtectionContainerResource, please refer to the document of ProtectionContainerResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "PythonSDKBackupTestRg"; - string vaultName = "PySDKBackupTestRsVault"; - string fabricName = "Azure"; - string containerName = "iaasvmcontainer;iaasvmcontainer;iaasvm-rg;iaasvm-1"; - ResourceIdentifier protectionContainerResourceId = ProtectionContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName); - ProtectionContainerResource protectionContainerResource = client.GetProtectionContainerResource(protectionContainerResourceId); - - // get the collection of this ProtectedItemResource - ProtectedItemResourceCollection collection = protectionContainerResource.GetProtectedItemResources(); - - // invoke the operation - string protectedItemName = "vm;iaasvmcontainer;iaasvm-rg;iaasvm-1"; - bool result = await collection.ExistsAsync(protectedItemName); - - Console.WriteLine($"Succeeded: {result}"); - } - - // Get Protected Virtual Machine Details - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetProtectedVirtualMachineDetails() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/Compute_ProtectedItem_Get.json - // this example is just showing the usage of "ProtectedItems_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ProtectionContainerResource created on azure - // for more information of creating ProtectionContainerResource, please refer to the document of ProtectionContainerResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "PythonSDKBackupTestRg"; - string vaultName = "PySDKBackupTestRsVault"; - string fabricName = "Azure"; - string containerName = "iaasvmcontainer;iaasvmcontainerv2;iaasvm-rg;iaasvm-1"; - ResourceIdentifier protectionContainerResourceId = ProtectionContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName); - ProtectionContainerResource protectionContainerResource = client.GetProtectionContainerResource(protectionContainerResourceId); - - // get the collection of this ProtectedItemResource - ProtectedItemResourceCollection collection = protectionContainerResource.GetProtectedItemResources(); - - // invoke the operation - string protectedItemName = "vm;iaasvmcontainerv2;iaasvm-rg;iaasvm-1"; - ProtectedItemResource result = await collection.GetAsync(protectedItemName); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - ProtectedItemResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // Get Protected Virtual Machine Details - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Exists_GetProtectedVirtualMachineDetails() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/Compute_ProtectedItem_Get.json - // this example is just showing the usage of "ProtectedItems_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ProtectionContainerResource created on azure - // for more information of creating ProtectionContainerResource, please refer to the document of ProtectionContainerResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "PythonSDKBackupTestRg"; - string vaultName = "PySDKBackupTestRsVault"; - string fabricName = "Azure"; - string containerName = "iaasvmcontainer;iaasvmcontainerv2;iaasvm-rg;iaasvm-1"; - ResourceIdentifier protectionContainerResourceId = ProtectionContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName); - ProtectionContainerResource protectionContainerResource = client.GetProtectionContainerResource(protectionContainerResourceId); - - // get the collection of this ProtectedItemResource - ProtectedItemResourceCollection collection = protectionContainerResource.GetProtectedItemResources(); - - // invoke the operation - string protectedItemName = "vm;iaasvmcontainerv2;iaasvm-rg;iaasvm-1"; - bool result = await collection.ExistsAsync(protectedItemName); - - Console.WriteLine($"Succeeded: {result}"); - } - - // Enable Protection on Azure IaasVm - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task CreateOrUpdate_EnableProtectionOnAzureIaasVm() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/ConfigureProtection.json - // this example is just showing the usage of "ProtectedItems_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ProtectionContainerResource created on azure - // for more information of creating ProtectionContainerResource, please refer to the document of ProtectionContainerResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "SwaggerTestRg"; - string vaultName = "NetSDKTestRsVault"; - string fabricName = "Azure"; - string containerName = "IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1"; - ResourceIdentifier protectionContainerResourceId = ProtectionContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName); - ProtectionContainerResource protectionContainerResource = client.GetProtectionContainerResource(protectionContainerResourceId); - - // get the collection of this ProtectedItemResource - ProtectedItemResourceCollection collection = protectionContainerResource.GetProtectedItemResources(); - - // invoke the operation - string protectedItemName = "VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1"; - ProtectedItemResourceData data = new ProtectedItemResourceData(new AzureLocation("placeholder")) - { - Properties = new AzureIaaSComputeVmProtectedItem() - { - SourceResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1", - PolicyId = "/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupPolicies/DefaultPolicy", - }, - }; - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, protectedItemName, data); - ProtectedItemResource result = lro.Value; - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - ProtectedItemResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // Stop Protection with retain data on Azure IaasVm - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task CreateOrUpdate_StopProtectionWithRetainDataOnAzureIaasVm() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/StopProtection.json - // this example is just showing the usage of "ProtectedItems_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ProtectionContainerResource created on azure - // for more information of creating ProtectionContainerResource, please refer to the document of ProtectionContainerResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "SwaggerTestRg"; - string vaultName = "NetSDKTestRsVault"; - string fabricName = "Azure"; - string containerName = "IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1"; - ResourceIdentifier protectionContainerResourceId = ProtectionContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName); - ProtectionContainerResource protectionContainerResource = client.GetProtectionContainerResource(protectionContainerResourceId); - - // get the collection of this ProtectedItemResource - ProtectedItemResourceCollection collection = protectionContainerResource.GetProtectedItemResources(); - - // invoke the operation - string protectedItemName = "VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1"; - ProtectedItemResourceData data = new ProtectedItemResourceData(new AzureLocation("placeholder")) - { - Properties = new AzureIaaSComputeVmProtectedItem() - { - ProtectionState = ProtectionState.ProtectionStopped, - SourceResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1", - }, - }; - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, protectedItemName, data); - ProtectedItemResource result = lro.Value; - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - ProtectedItemResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ProtectionContainerResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ProtectionContainerResource.cs deleted file mode 100644 index 84c96595ca9a6..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ProtectionContainerResource.cs +++ /dev/null @@ -1,218 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Identity; -using Azure.ResourceManager; -using Azure.ResourceManager.RecoveryServicesBackup; -using Azure.ResourceManager.RecoveryServicesBackup.Models; -using Azure.ResourceManager.Resources; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Samples -{ - public partial class Sample_ProtectionContainerResource - { - // Get Protection Container Details - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetProtectionContainerDetails() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureWorkload/ProtectionContainers_Get.json - // this example is just showing the usage of "ProtectionContainers_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ProtectionContainerResource created on azure - // for more information of creating ProtectionContainerResource, please refer to the document of ProtectionContainerResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "testRg"; - string vaultName = "testVault"; - string fabricName = "Azure"; - string containerName = "VMAppContainer;Compute;testRG;testSQL"; - ResourceIdentifier protectionContainerResourceId = ProtectionContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName); - ProtectionContainerResource protectionContainerResource = client.GetProtectionContainerResource(protectionContainerResourceId); - - // invoke the operation - ProtectionContainerResource result = await protectionContainerResource.GetAsync(); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - ProtectionContainerResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // RegisterAzure Storage ProtectionContainers - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_RegisterAzureStorageProtectionContainers() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureStorage/ProtectionContainers_Register.json - // this example is just showing the usage of "ProtectionContainers_Register" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ProtectionContainerResource created on azure - // for more information of creating ProtectionContainerResource, please refer to the document of ProtectionContainerResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "SwaggerTestRg"; - string vaultName = "swaggertestvault"; - string fabricName = "Azure"; - string containerName = "StorageContainer;Storage;SwaggerTestRg;swaggertestsa"; - ResourceIdentifier protectionContainerResourceId = ProtectionContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName); - ProtectionContainerResource protectionContainerResource = client.GetProtectionContainerResource(protectionContainerResourceId); - - // invoke the operation - ProtectionContainerResourceData data = new ProtectionContainerResourceData(new AzureLocation("placeholder")) - { - Properties = new AzureStorageContainer() - { - SourceResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/SwaggerTestRg/providers/Microsoft.Storage/storageAccounts/swaggertestsa", - AcquireStorageAccountLock = AcquireStorageAccountLock.Acquire, - FriendlyName = "swaggertestsa", - BackupManagementType = BackupManagementType.AzureStorage, - }, - }; - ArmOperation lro = await protectionContainerResource.UpdateAsync(WaitUntil.Completed, data); - ProtectionContainerResource result = lro.Value; - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - ProtectionContainerResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // Unregister Protection Container - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Delete_UnregisterProtectionContainer() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureWorkload/ProtectionContainers_Unregister.json - // this example is just showing the usage of "ProtectionContainers_Unregister" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ProtectionContainerResource created on azure - // for more information of creating ProtectionContainerResource, please refer to the document of ProtectionContainerResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "testRg"; - string vaultName = "testVault"; - string fabricName = "Azure"; - string containerName = "storagecontainer;Storage;test-rg;teststorage"; - ResourceIdentifier protectionContainerResourceId = ProtectionContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName); - ProtectionContainerResource protectionContainerResource = client.GetProtectionContainerResource(protectionContainerResourceId); - - // invoke the operation - await protectionContainerResource.DeleteAsync(WaitUntil.Completed); - - Console.WriteLine($"Succeeded"); - } - - // Inquire Azure Storage Protection Containers - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Inquire_InquireAzureStorageProtectionContainers() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureStorage/ProtectionContainers_Inquire.json - // this example is just showing the usage of "ProtectionContainers_Inquire" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ProtectionContainerResource created on azure - // for more information of creating ProtectionContainerResource, please refer to the document of ProtectionContainerResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "test-rg"; - string vaultName = "testvault"; - string fabricName = "Azure"; - string containerName = "storagecontainer;Storage;test-rg;teststorage"; - ResourceIdentifier protectionContainerResourceId = ProtectionContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName); - ProtectionContainerResource protectionContainerResource = client.GetProtectionContainerResource(protectionContainerResourceId); - - // invoke the operation - await protectionContainerResource.InquireAsync(); - - Console.WriteLine($"Succeeded"); - } - - // Trigger Azure Vm Discovery - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task RefreshProtectionContainer_TriggerAzureVmDiscovery() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/RefreshContainers.json - // this example is just showing the usage of "ProtectionContainers_Refresh" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "SwaggerTestRg"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // invoke the operation - string vaultName = "NetSDKTestRsVault"; - string fabricName = "Azure"; - await resourceGroupResource.RefreshProtectionContainerAsync(vaultName, fabricName); - - Console.WriteLine($"Succeeded"); - } - - // List Workload Items in Container - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetBackupWorkloadItems_ListWorkloadItemsInContainer() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureWorkload/BackupWorkloadItems_List.json - // this example is just showing the usage of "BackupWorkloadItems_List" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ProtectionContainerResource created on azure - // for more information of creating ProtectionContainerResource, please refer to the document of ProtectionContainerResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "testRg"; - string vaultName = "suchandr-seacan-rsv"; - string fabricName = "Azure"; - string containerName = "VMAppContainer;Compute;bvtdtestag;sqlserver-1"; - ResourceIdentifier protectionContainerResourceId = ProtectionContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName); - ProtectionContainerResource protectionContainerResource = client.GetProtectionContainerResource(protectionContainerResourceId); - - // invoke the operation and iterate over the result - string filter = "backupManagementType eq 'AzureWorkload'"; - await foreach (WorkloadItemResource item in protectionContainerResource.GetBackupWorkloadItemsAsync(filter: filter)) - { - Console.WriteLine($"Succeeded: {item}"); - } - - Console.WriteLine($"Succeeded"); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ProtectionContainerResourceCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ProtectionContainerResourceCollection.cs deleted file mode 100644 index 5c9ba74b81f3f..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ProtectionContainerResourceCollection.cs +++ /dev/null @@ -1,137 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Identity; -using Azure.ResourceManager; -using Azure.ResourceManager.RecoveryServicesBackup; -using Azure.ResourceManager.RecoveryServicesBackup.Models; -using Azure.ResourceManager.Resources; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Samples -{ - public partial class Sample_ProtectionContainerResourceCollection - { - // Get Protection Container Details - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetProtectionContainerDetails() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureWorkload/ProtectionContainers_Get.json - // this example is just showing the usage of "ProtectionContainers_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "testRg"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this ProtectionContainerResource - ProtectionContainerResourceCollection collection = resourceGroupResource.GetProtectionContainerResources(); - - // invoke the operation - string vaultName = "testVault"; - string fabricName = "Azure"; - string containerName = "VMAppContainer;Compute;testRG;testSQL"; - ProtectionContainerResource result = await collection.GetAsync(vaultName, fabricName, containerName); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - ProtectionContainerResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // Get Protection Container Details - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Exists_GetProtectionContainerDetails() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureWorkload/ProtectionContainers_Get.json - // this example is just showing the usage of "ProtectionContainers_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "testRg"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this ProtectionContainerResource - ProtectionContainerResourceCollection collection = resourceGroupResource.GetProtectionContainerResources(); - - // invoke the operation - string vaultName = "testVault"; - string fabricName = "Azure"; - string containerName = "VMAppContainer;Compute;testRG;testSQL"; - bool result = await collection.ExistsAsync(vaultName, fabricName, containerName); - - Console.WriteLine($"Succeeded: {result}"); - } - - // RegisterAzure Storage ProtectionContainers - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task CreateOrUpdate_RegisterAzureStorageProtectionContainers() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureStorage/ProtectionContainers_Register.json - // this example is just showing the usage of "ProtectionContainers_Register" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "SwaggerTestRg"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this ProtectionContainerResource - ProtectionContainerResourceCollection collection = resourceGroupResource.GetProtectionContainerResources(); - - // invoke the operation - string vaultName = "swaggertestvault"; - string fabricName = "Azure"; - string containerName = "StorageContainer;Storage;SwaggerTestRg;swaggertestsa"; - ProtectionContainerResourceData data = new ProtectionContainerResourceData(new AzureLocation("placeholder")) - { - Properties = new AzureStorageContainer() - { - SourceResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/SwaggerTestRg/providers/Microsoft.Storage/storageAccounts/swaggertestsa", - AcquireStorageAccountLock = AcquireStorageAccountLock.Acquire, - FriendlyName = "swaggertestsa", - BackupManagementType = BackupManagementType.AzureStorage, - }, - }; - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, vaultName, fabricName, containerName, data); - ProtectionContainerResource result = lro.Value; - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - ProtectionContainerResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ProtectionIntentResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ProtectionIntentResource.cs deleted file mode 100644 index eb360f73c7d85..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ProtectionIntentResource.cs +++ /dev/null @@ -1,159 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Identity; -using Azure.ResourceManager; -using Azure.ResourceManager.RecoveryServicesBackup; -using Azure.ResourceManager.RecoveryServicesBackup.Models; -using Azure.ResourceManager.Resources; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Samples -{ - public partial class Sample_ProtectionIntentResource - { - // Validate Enable Protection on Azure Vm - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task ValidateProtectionIntent_ValidateEnableProtectionOnAzureVm() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/ProtectionIntent_Validate.json - // this example is just showing the usage of "ProtectionIntent_Validate" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this SubscriptionResource created on azure - // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId); - SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId); - - // invoke the operation - string azureRegion = "southeastasia"; - PreValidateEnableBackupContent content = new PreValidateEnableBackupContent() - { - ResourceType = DataSourceType.Vm, - ResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/arunaupgrade/providers/Microsoft.Compute/VirtualMachines/upgrade1", - VaultId = "/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.RecoveryServices/Vaults/myVault", - Properties = "", - }; - PreValidateEnableBackupResponse result = await subscriptionResource.ValidateProtectionIntentAsync(azureRegion, content); - - Console.WriteLine($"Succeeded: {result}"); - } - - // Get ProtectionIntent for an item - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetProtectionIntentForAnItem() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureWorkload/BackupProtectionIntent_Get.json - // this example is just showing the usage of "ProtectionIntent_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ProtectionIntentResource created on azure - // for more information of creating ProtectionIntentResource, please refer to the document of ProtectionIntentResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "myRG"; - string vaultName = "myVault"; - string fabricName = "Azure"; - string intentObjectName = "249D9B07-D2EF-4202-AA64-65F35418564E"; - ResourceIdentifier protectionIntentResourceId = ProtectionIntentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, intentObjectName); - ProtectionIntentResource protectionIntentResource = client.GetProtectionIntentResource(protectionIntentResourceId); - - // invoke the operation - ProtectionIntentResource result = await protectionIntentResource.GetAsync(); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - ProtectionIntentResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // Create or Update Azure Vm Protection Intent - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_CreateOrUpdateAzureVmProtectionIntent() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/ProtectionIntent_CreateOrUpdate.json - // this example is just showing the usage of "ProtectionIntent_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ProtectionIntentResource created on azure - // for more information of creating ProtectionIntentResource, please refer to the document of ProtectionIntentResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "myRG"; - string vaultName = "myVault"; - string fabricName = "Azure"; - string intentObjectName = "vm;iaasvmcontainerv2;chamsrgtest;chamscandel"; - ResourceIdentifier protectionIntentResourceId = ProtectionIntentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, intentObjectName); - ProtectionIntentResource protectionIntentResource = client.GetProtectionIntentResource(protectionIntentResourceId); - - // invoke the operation - ProtectionIntentResourceData data = new ProtectionIntentResourceData(new AzureLocation("placeholder")) - { - Properties = new AzureResourceProtectionIntent() - { - SourceResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/chamsrgtest/providers/Microsoft.Compute/virtualMachines/chamscandel", - PolicyId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.RecoveryServices/vaults/myVault/backupPolicies/myPolicy", - }, - }; - ArmOperation lro = await protectionIntentResource.UpdateAsync(WaitUntil.Completed, data); - ProtectionIntentResource result = lro.Value; - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - ProtectionIntentResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // Delete Protection intent from item - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Delete_DeleteProtectionIntentFromItem() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureWorkload/BackupProtectionIntent_Delete.json - // this example is just showing the usage of "ProtectionIntent_Delete" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ProtectionIntentResource created on azure - // for more information of creating ProtectionIntentResource, please refer to the document of ProtectionIntentResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "myRG"; - string vaultName = "myVault"; - string fabricName = "Azure"; - string intentObjectName = "249D9B07-D2EF-4202-AA64-65F35418564E"; - ResourceIdentifier protectionIntentResourceId = ProtectionIntentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, intentObjectName); - ProtectionIntentResource protectionIntentResource = client.GetProtectionIntentResource(protectionIntentResourceId); - - // invoke the operation - await protectionIntentResource.DeleteAsync(WaitUntil.Completed); - - Console.WriteLine($"Succeeded"); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ProtectionIntentResourceCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ProtectionIntentResourceCollection.cs deleted file mode 100644 index 2e4ac39cc0f3f..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ProtectionIntentResourceCollection.cs +++ /dev/null @@ -1,135 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Identity; -using Azure.ResourceManager; -using Azure.ResourceManager.RecoveryServicesBackup; -using Azure.ResourceManager.RecoveryServicesBackup.Models; -using Azure.ResourceManager.Resources; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Samples -{ - public partial class Sample_ProtectionIntentResourceCollection - { - // Get ProtectionIntent for an item - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetProtectionIntentForAnItem() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureWorkload/BackupProtectionIntent_Get.json - // this example is just showing the usage of "ProtectionIntent_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "myRG"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this ProtectionIntentResource - ProtectionIntentResourceCollection collection = resourceGroupResource.GetProtectionIntentResources(); - - // invoke the operation - string vaultName = "myVault"; - string fabricName = "Azure"; - string intentObjectName = "249D9B07-D2EF-4202-AA64-65F35418564E"; - ProtectionIntentResource result = await collection.GetAsync(vaultName, fabricName, intentObjectName); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - ProtectionIntentResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // Get ProtectionIntent for an item - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Exists_GetProtectionIntentForAnItem() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureWorkload/BackupProtectionIntent_Get.json - // this example is just showing the usage of "ProtectionIntent_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "myRG"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this ProtectionIntentResource - ProtectionIntentResourceCollection collection = resourceGroupResource.GetProtectionIntentResources(); - - // invoke the operation - string vaultName = "myVault"; - string fabricName = "Azure"; - string intentObjectName = "249D9B07-D2EF-4202-AA64-65F35418564E"; - bool result = await collection.ExistsAsync(vaultName, fabricName, intentObjectName); - - Console.WriteLine($"Succeeded: {result}"); - } - - // Create or Update Azure Vm Protection Intent - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task CreateOrUpdate_CreateOrUpdateAzureVmProtectionIntent() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/ProtectionIntent_CreateOrUpdate.json - // this example is just showing the usage of "ProtectionIntent_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "myRG"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this ProtectionIntentResource - ProtectionIntentResourceCollection collection = resourceGroupResource.GetProtectionIntentResources(); - - // invoke the operation - string vaultName = "myVault"; - string fabricName = "Azure"; - string intentObjectName = "vm;iaasvmcontainerv2;chamsrgtest;chamscandel"; - ProtectionIntentResourceData data = new ProtectionIntentResourceData(new AzureLocation("placeholder")) - { - Properties = new AzureResourceProtectionIntent() - { - SourceResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/chamsrgtest/providers/Microsoft.Compute/virtualMachines/chamscandel", - PolicyId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.RecoveryServices/vaults/myVault/backupPolicies/myPolicy", - }, - }; - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, vaultName, fabricName, intentObjectName, data); - ProtectionIntentResource result = lro.Value; - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - ProtectionIntentResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ProtectionPolicyResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ProtectionPolicyResource.cs deleted file mode 100644 index b732c43e8fde6..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ProtectionPolicyResource.cs +++ /dev/null @@ -1,1031 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Identity; -using Azure.ResourceManager; -using Azure.ResourceManager.RecoveryServicesBackup; -using Azure.ResourceManager.RecoveryServicesBackup.Models; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Samples -{ - public partial class Sample_ProtectionPolicyResource - { - // Get Azure IaasVm Enhanced Protection Policy Details - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetAzureIaasVmEnhancedProtectionPolicyDetails() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/V2Policy/v2-Get-Policy.json - // this example is just showing the usage of "ProtectionPolicies_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ProtectionPolicyResource created on azure - // for more information of creating ProtectionPolicyResource, please refer to the document of ProtectionPolicyResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "SwaggerTestRg"; - string vaultName = "NetSDKTestRsVault"; - string policyName = "v2-daily-sample"; - ResourceIdentifier protectionPolicyResourceId = ProtectionPolicyResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, policyName); - ProtectionPolicyResource protectionPolicyResource = client.GetProtectionPolicyResource(protectionPolicyResourceId); - - // invoke the operation - ProtectionPolicyResource result = await protectionPolicyResource.GetAsync(); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - ProtectionPolicyResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // Get Azure IaasVm Protection Policy Details - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetAzureIaasVmProtectionPolicyDetails() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/ProtectionPolicies_Get.json - // this example is just showing the usage of "ProtectionPolicies_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ProtectionPolicyResource created on azure - // for more information of creating ProtectionPolicyResource, please refer to the document of ProtectionPolicyResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "SwaggerTestRg"; - string vaultName = "NetSDKTestRsVault"; - string policyName = "testPolicy1"; - ResourceIdentifier protectionPolicyResourceId = ProtectionPolicyResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, policyName); - ProtectionPolicyResource protectionPolicyResource = client.GetProtectionPolicyResource(protectionPolicyResourceId); - - // invoke the operation - ProtectionPolicyResource result = await protectionPolicyResource.GetAsync(); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - ProtectionPolicyResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // Create or Update Daily Azure Storage Protection Policy - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_CreateOrUpdateDailyAzureStorageProtectionPolicy() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureStorage/ProtectionPolicies_CreateOrUpdate_Daily.json - // this example is just showing the usage of "ProtectionPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ProtectionPolicyResource created on azure - // for more information of creating ProtectionPolicyResource, please refer to the document of ProtectionPolicyResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "SwaggerTestRg"; - string vaultName = "swaggertestvault"; - string policyName = "dailyPolicy2"; - ResourceIdentifier protectionPolicyResourceId = ProtectionPolicyResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, policyName); - ProtectionPolicyResource protectionPolicyResource = client.GetProtectionPolicyResource(protectionPolicyResourceId); - - // invoke the operation - ProtectionPolicyResourceData data = new ProtectionPolicyResourceData(new AzureLocation("placeholder")) - { - Properties = new AzureFileShareProtectionPolicy() - { - WorkLoadType = WorkloadType.AzureFileShare, - SchedulePolicy = new SimpleSchedulePolicy() - { - ScheduleRunFrequency = ScheduleRunType.Daily, - ScheduleRunTimes = -{ -DateTimeOffset.Parse("2021-09-29T08:00:00.000Z") -}, - }, - RetentionPolicy = new LongTermRetentionPolicy() - { - DailySchedule = new DailyRetentionSchedule() - { - RetentionTimes = -{ -DateTimeOffset.Parse("2021-09-29T08:00:00.000Z") -}, - RetentionDuration = new RetentionDuration() - { - Count = 5, - DurationType = RetentionDurationType.Days, - }, - }, - WeeklySchedule = new WeeklyRetentionSchedule() - { - DaysOfTheWeek = -{ -DayOfWeek.Sunday -}, - RetentionTimes = -{ -DateTimeOffset.Parse("2021-09-29T08:00:00.000Z") -}, - RetentionDuration = new RetentionDuration() - { - Count = 12, - DurationType = RetentionDurationType.Weeks, - }, - }, - MonthlySchedule = new MonthlyRetentionSchedule() - { - RetentionScheduleFormatType = RetentionScheduleFormat.Weekly, - RetentionScheduleWeekly = new WeeklyRetentionFormat() - { - DaysOfTheWeek = -{ -DayOfWeek.Sunday -}, - WeeksOfTheMonth = -{ -WeekOfMonth.First -}, - }, - RetentionTimes = -{ -DateTimeOffset.Parse("2021-09-29T08:00:00.000Z") -}, - RetentionDuration = new RetentionDuration() - { - Count = 60, - DurationType = RetentionDurationType.Months, - }, - }, - YearlySchedule = new YearlyRetentionSchedule() - { - RetentionScheduleFormatType = RetentionScheduleFormat.Weekly, - MonthsOfYear = -{ -MonthOfYear.January -}, - RetentionScheduleWeekly = new WeeklyRetentionFormat() - { - DaysOfTheWeek = -{ -DayOfWeek.Sunday -}, - WeeksOfTheMonth = -{ -WeekOfMonth.First -}, - }, - RetentionTimes = -{ -DateTimeOffset.Parse("2021-09-29T08:00:00.000Z") -}, - RetentionDuration = new RetentionDuration() - { - Count = 10, - DurationType = RetentionDurationType.Years, - }, - }, - }, - TimeZone = "UTC", - }, - }; - ArmOperation lro = await protectionPolicyResource.UpdateAsync(WaitUntil.Completed, data); - ProtectionPolicyResource result = lro.Value; - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - ProtectionPolicyResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // Create or Update Enhanced Azure Vm Protection Policy with Hourly backup - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_CreateOrUpdateEnhancedAzureVmProtectionPolicyWithHourlyBackup() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/V2Policy/IaaS_v2_hourly.json - // this example is just showing the usage of "ProtectionPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ProtectionPolicyResource created on azure - // for more information of creating ProtectionPolicyResource, please refer to the document of ProtectionPolicyResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "SwaggerTestRg"; - string vaultName = "NetSDKTestRsVault"; - string policyName = "v2-daily-sample"; - ResourceIdentifier protectionPolicyResourceId = ProtectionPolicyResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, policyName); - ProtectionPolicyResource protectionPolicyResource = client.GetProtectionPolicyResource(protectionPolicyResourceId); - - // invoke the operation - ProtectionPolicyResourceData data = new ProtectionPolicyResourceData(new AzureLocation("placeholder")) - { - Properties = new AzureIaasVmProtectionPolicy() - { - SchedulePolicy = new SimpleSchedulePolicyV2() - { - ScheduleRunFrequency = ScheduleRunType.Hourly, - HourlySchedule = new HourlySchedule() - { - Interval = 4, - ScheduleWindowStartOn = DateTimeOffset.Parse("2021-12-17T08:00:00Z"), - ScheduleWindowDuration = 16, - }, - }, - RetentionPolicy = new LongTermRetentionPolicy() - { - DailySchedule = new DailyRetentionSchedule() - { - RetentionTimes = -{ -DateTimeOffset.Parse("2021-12-17T08:00:00+00:00") -}, - RetentionDuration = new RetentionDuration() - { - Count = 180, - DurationType = RetentionDurationType.Days, - }, - }, - WeeklySchedule = new WeeklyRetentionSchedule() - { - DaysOfTheWeek = -{ -DayOfWeek.Sunday -}, - RetentionTimes = -{ -DateTimeOffset.Parse("2021-12-17T08:00:00+00:00") -}, - RetentionDuration = new RetentionDuration() - { - Count = 12, - DurationType = RetentionDurationType.Weeks, - }, - }, - MonthlySchedule = new MonthlyRetentionSchedule() - { - RetentionScheduleFormatType = RetentionScheduleFormat.Weekly, - RetentionScheduleWeekly = new WeeklyRetentionFormat() - { - DaysOfTheWeek = -{ -DayOfWeek.Sunday -}, - WeeksOfTheMonth = -{ -WeekOfMonth.First -}, - }, - RetentionTimes = -{ -DateTimeOffset.Parse("2021-12-17T08:00:00+00:00") -}, - RetentionDuration = new RetentionDuration() - { - Count = 60, - DurationType = RetentionDurationType.Months, - }, - }, - YearlySchedule = new YearlyRetentionSchedule() - { - RetentionScheduleFormatType = RetentionScheduleFormat.Weekly, - MonthsOfYear = -{ -MonthOfYear.January -}, - RetentionScheduleWeekly = new WeeklyRetentionFormat() - { - DaysOfTheWeek = -{ -DayOfWeek.Sunday -}, - WeeksOfTheMonth = -{ -WeekOfMonth.First -}, - }, - RetentionTimes = -{ -DateTimeOffset.Parse("2021-12-17T08:00:00+00:00") -}, - RetentionDuration = new RetentionDuration() - { - Count = 10, - DurationType = RetentionDurationType.Years, - }, - }, - }, - InstantRpRetentionRangeInDays = 30, - TimeZone = "India Standard Time", - PolicyType = IaasVmPolicyType.V2, - }, - }; - ArmOperation lro = await protectionPolicyResource.UpdateAsync(WaitUntil.Completed, data); - ProtectionPolicyResource result = lro.Value; - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - ProtectionPolicyResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // Create or Update Enhanced Azure Vm Protection Policy with daily backup - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_CreateOrUpdateEnhancedAzureVmProtectionPolicyWithDailyBackup() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/V2Policy/IaaS_v2_daily.json - // this example is just showing the usage of "ProtectionPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ProtectionPolicyResource created on azure - // for more information of creating ProtectionPolicyResource, please refer to the document of ProtectionPolicyResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "SwaggerTestRg"; - string vaultName = "NetSDKTestRsVault"; - string policyName = "v2-daily-sample"; - ResourceIdentifier protectionPolicyResourceId = ProtectionPolicyResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, policyName); - ProtectionPolicyResource protectionPolicyResource = client.GetProtectionPolicyResource(protectionPolicyResourceId); - - // invoke the operation - ProtectionPolicyResourceData data = new ProtectionPolicyResourceData(new AzureLocation("placeholder")) - { - Properties = new AzureIaasVmProtectionPolicy() - { - SchedulePolicy = new SimpleSchedulePolicyV2() - { - ScheduleRunFrequency = ScheduleRunType.Daily, - ScheduleRunTimes = -{ -DateTimeOffset.Parse("2018-01-24T10:00:00Z") -}, - }, - RetentionPolicy = new LongTermRetentionPolicy() - { - DailySchedule = new DailyRetentionSchedule() - { - RetentionTimes = -{ -DateTimeOffset.Parse("2021-12-17T08:00:00+00:00") -}, - RetentionDuration = new RetentionDuration() - { - Count = 180, - DurationType = RetentionDurationType.Days, - }, - }, - WeeklySchedule = new WeeklyRetentionSchedule() - { - DaysOfTheWeek = -{ -DayOfWeek.Sunday -}, - RetentionTimes = -{ -DateTimeOffset.Parse("2021-12-17T08:00:00+00:00") -}, - RetentionDuration = new RetentionDuration() - { - Count = 12, - DurationType = RetentionDurationType.Weeks, - }, - }, - MonthlySchedule = new MonthlyRetentionSchedule() - { - RetentionScheduleFormatType = RetentionScheduleFormat.Weekly, - RetentionScheduleWeekly = new WeeklyRetentionFormat() - { - DaysOfTheWeek = -{ -DayOfWeek.Sunday -}, - WeeksOfTheMonth = -{ -WeekOfMonth.First -}, - }, - RetentionTimes = -{ -DateTimeOffset.Parse("2021-12-17T08:00:00+00:00") -}, - RetentionDuration = new RetentionDuration() - { - Count = 60, - DurationType = RetentionDurationType.Months, - }, - }, - YearlySchedule = new YearlyRetentionSchedule() - { - RetentionScheduleFormatType = RetentionScheduleFormat.Weekly, - MonthsOfYear = -{ -MonthOfYear.January -}, - RetentionScheduleWeekly = new WeeklyRetentionFormat() - { - DaysOfTheWeek = -{ -DayOfWeek.Sunday -}, - WeeksOfTheMonth = -{ -WeekOfMonth.First -}, - }, - RetentionTimes = -{ -DateTimeOffset.Parse("2021-12-17T08:00:00+00:00") -}, - RetentionDuration = new RetentionDuration() - { - Count = 10, - DurationType = RetentionDurationType.Years, - }, - }, - }, - InstantRpRetentionRangeInDays = 30, - TimeZone = "India Standard Time", - PolicyType = IaasVmPolicyType.V2, - }, - }; - ArmOperation lro = await protectionPolicyResource.UpdateAsync(WaitUntil.Completed, data); - ProtectionPolicyResource result = lro.Value; - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - ProtectionPolicyResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // Create or Update Full Azure Vm Protection Policy - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_CreateOrUpdateFullAzureVmProtectionPolicy() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/ProtectionPolicies_CreateOrUpdate_Complex.json - // this example is just showing the usage of "ProtectionPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ProtectionPolicyResource created on azure - // for more information of creating ProtectionPolicyResource, please refer to the document of ProtectionPolicyResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "SwaggerTestRg"; - string vaultName = "NetSDKTestRsVault"; - string policyName = "testPolicy1"; - ResourceIdentifier protectionPolicyResourceId = ProtectionPolicyResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, policyName); - ProtectionPolicyResource protectionPolicyResource = client.GetProtectionPolicyResource(protectionPolicyResourceId); - - // invoke the operation - ProtectionPolicyResourceData data = new ProtectionPolicyResourceData(new AzureLocation("placeholder")) - { - Properties = new AzureIaasVmProtectionPolicy() - { - SchedulePolicy = new SimpleSchedulePolicy() - { - ScheduleRunFrequency = ScheduleRunType.Weekly, - ScheduleRunDays = -{ -DayOfWeek.Monday,DayOfWeek.Wednesday,DayOfWeek.Thursday -}, - ScheduleRunTimes = -{ -DateTimeOffset.Parse("2018-01-24T10:00:00Z") -}, - }, - RetentionPolicy = new LongTermRetentionPolicy() - { - WeeklySchedule = new WeeklyRetentionSchedule() - { - DaysOfTheWeek = -{ -DayOfWeek.Monday,DayOfWeek.Wednesday,DayOfWeek.Thursday -}, - RetentionTimes = -{ -DateTimeOffset.Parse("2018-01-24T10:00:00Z") -}, - RetentionDuration = new RetentionDuration() - { - Count = 1, - DurationType = RetentionDurationType.Weeks, - }, - }, - MonthlySchedule = new MonthlyRetentionSchedule() - { - RetentionScheduleFormatType = RetentionScheduleFormat.Weekly, - RetentionScheduleWeekly = new WeeklyRetentionFormat() - { - DaysOfTheWeek = -{ -DayOfWeek.Wednesday,DayOfWeek.Thursday -}, - WeeksOfTheMonth = -{ -WeekOfMonth.First,WeekOfMonth.Third -}, - }, - RetentionTimes = -{ -DateTimeOffset.Parse("2018-01-24T10:00:00Z") -}, - RetentionDuration = new RetentionDuration() - { - Count = 2, - DurationType = RetentionDurationType.Months, - }, - }, - YearlySchedule = new YearlyRetentionSchedule() - { - RetentionScheduleFormatType = RetentionScheduleFormat.Weekly, - MonthsOfYear = -{ -MonthOfYear.February,MonthOfYear.November -}, - RetentionScheduleWeekly = new WeeklyRetentionFormat() - { - DaysOfTheWeek = -{ -DayOfWeek.Monday,DayOfWeek.Thursday -}, - WeeksOfTheMonth = -{ -WeekOfMonth.Fourth -}, - }, - RetentionTimes = -{ -DateTimeOffset.Parse("2018-01-24T10:00:00Z") -}, - RetentionDuration = new RetentionDuration() - { - Count = 4, - DurationType = RetentionDurationType.Years, - }, - }, - }, - TimeZone = "Pacific Standard Time", - }, - }; - ArmOperation lro = await protectionPolicyResource.UpdateAsync(WaitUntil.Completed, data); - ProtectionPolicyResource result = lro.Value; - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - ProtectionPolicyResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // Create or Update Full Azure Workload Protection Policy - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_CreateOrUpdateFullAzureWorkloadProtectionPolicy() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureWorkload/ProtectionPolicies_CreateOrUpdate_Complex.json - // this example is just showing the usage of "ProtectionPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ProtectionPolicyResource created on azure - // for more information of creating ProtectionPolicyResource, please refer to the document of ProtectionPolicyResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "SwaggerTestRg"; - string vaultName = "NetSDKTestRsVault"; - string policyName = "testPolicy1"; - ResourceIdentifier protectionPolicyResourceId = ProtectionPolicyResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, policyName); - ProtectionPolicyResource protectionPolicyResource = client.GetProtectionPolicyResource(protectionPolicyResourceId); - - // invoke the operation - ProtectionPolicyResourceData data = new ProtectionPolicyResourceData(new AzureLocation("placeholder")) - { - Properties = new AzureVmWorkloadProtectionPolicy() - { - WorkLoadType = WorkloadType.SQLDataBase, - Settings = new Settings() - { - TimeZone = "Pacific Standard Time", - IsSqlCompression = false, - }, - SubProtectionPolicy = -{ -new SubProtectionPolicy() -{ -PolicyType = PolicyType.Full, -SchedulePolicy = new SimpleSchedulePolicy() -{ -ScheduleRunFrequency = ScheduleRunType.Weekly, -ScheduleRunDays = -{ -DayOfWeek.Sunday,DayOfWeek.Tuesday -}, -ScheduleRunTimes = -{ -DateTimeOffset.Parse("2018-01-24T10:00:00Z") -}, -}, -RetentionPolicy = new LongTermRetentionPolicy() -{ -WeeklySchedule = new WeeklyRetentionSchedule() -{ -DaysOfTheWeek = -{ -DayOfWeek.Sunday,DayOfWeek.Tuesday -}, -RetentionTimes = -{ -DateTimeOffset.Parse("2018-01-24T10:00:00Z") -}, -RetentionDuration = new RetentionDuration() -{ -Count = 2, -DurationType = RetentionDurationType.Weeks, -}, -}, -MonthlySchedule = new MonthlyRetentionSchedule() -{ -RetentionScheduleFormatType = RetentionScheduleFormat.Weekly, -RetentionScheduleWeekly = new WeeklyRetentionFormat() -{ -DaysOfTheWeek = -{ -DayOfWeek.Sunday -}, -WeeksOfTheMonth = -{ -WeekOfMonth.Second -}, -}, -RetentionTimes = -{ -DateTimeOffset.Parse("2018-01-24T10:00:00Z") -}, -RetentionDuration = new RetentionDuration() -{ -Count = 1, -DurationType = RetentionDurationType.Months, -}, -}, -YearlySchedule = new YearlyRetentionSchedule() -{ -RetentionScheduleFormatType = RetentionScheduleFormat.Weekly, -MonthsOfYear = -{ -MonthOfYear.January,MonthOfYear.June,MonthOfYear.December -}, -RetentionScheduleWeekly = new WeeklyRetentionFormat() -{ -DaysOfTheWeek = -{ -DayOfWeek.Sunday -}, -WeeksOfTheMonth = -{ -WeekOfMonth.Last -}, -}, -RetentionTimes = -{ -DateTimeOffset.Parse("2018-01-24T10:00:00Z") -}, -RetentionDuration = new RetentionDuration() -{ -Count = 1, -DurationType = RetentionDurationType.Years, -}, -}, -}, -},new SubProtectionPolicy() -{ -PolicyType = PolicyType.Differential, -SchedulePolicy = new SimpleSchedulePolicy() -{ -ScheduleRunFrequency = ScheduleRunType.Weekly, -ScheduleRunDays = -{ -DayOfWeek.Friday -}, -ScheduleRunTimes = -{ -DateTimeOffset.Parse("2018-01-24T10:00:00Z") -}, -}, -RetentionPolicy = new SimpleRetentionPolicy() -{ -RetentionDuration = new RetentionDuration() -{ -Count = 8, -DurationType = RetentionDurationType.Days, -}, -}, -},new SubProtectionPolicy() -{ -PolicyType = PolicyType.Log, -SchedulePolicy = new LogSchedulePolicy() -{ -ScheduleFrequencyInMins = 60, -}, -RetentionPolicy = new SimpleRetentionPolicy() -{ -RetentionDuration = new RetentionDuration() -{ -Count = 7, -DurationType = RetentionDurationType.Days, -}, -}, -} -}, - }, - }; - ArmOperation lro = await protectionPolicyResource.UpdateAsync(WaitUntil.Completed, data); - ProtectionPolicyResource result = lro.Value; - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - ProtectionPolicyResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // Create or Update Hourly Azure Storage Protection Policy - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_CreateOrUpdateHourlyAzureStorageProtectionPolicy() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureStorage/ProtectionPolicies_CreateOrUpdate_Hourly.json - // this example is just showing the usage of "ProtectionPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ProtectionPolicyResource created on azure - // for more information of creating ProtectionPolicyResource, please refer to the document of ProtectionPolicyResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "SwaggerTestRg"; - string vaultName = "swaggertestvault"; - string policyName = "newPolicy2"; - ResourceIdentifier protectionPolicyResourceId = ProtectionPolicyResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, policyName); - ProtectionPolicyResource protectionPolicyResource = client.GetProtectionPolicyResource(protectionPolicyResourceId); - - // invoke the operation - ProtectionPolicyResourceData data = new ProtectionPolicyResourceData(new AzureLocation("placeholder")) - { - Properties = new AzureFileShareProtectionPolicy() - { - WorkLoadType = WorkloadType.AzureFileShare, - SchedulePolicy = new SimpleSchedulePolicy() - { - ScheduleRunFrequency = ScheduleRunType.Hourly, - HourlySchedule = new HourlySchedule() - { - Interval = 4, - ScheduleWindowStartOn = DateTimeOffset.Parse("2021-09-29T08:00:00.000Z"), - ScheduleWindowDuration = 12, - }, - }, - RetentionPolicy = new LongTermRetentionPolicy() - { - DailySchedule = new DailyRetentionSchedule() - { - RetentionTimes = -{ -}, - RetentionDuration = new RetentionDuration() - { - Count = 5, - DurationType = RetentionDurationType.Days, - }, - }, - WeeklySchedule = new WeeklyRetentionSchedule() - { - DaysOfTheWeek = -{ -DayOfWeek.Sunday -}, - RetentionTimes = -{ -}, - RetentionDuration = new RetentionDuration() - { - Count = 12, - DurationType = RetentionDurationType.Weeks, - }, - }, - MonthlySchedule = new MonthlyRetentionSchedule() - { - RetentionScheduleFormatType = RetentionScheduleFormat.Weekly, - RetentionScheduleWeekly = new WeeklyRetentionFormat() - { - DaysOfTheWeek = -{ -DayOfWeek.Sunday -}, - WeeksOfTheMonth = -{ -WeekOfMonth.First -}, - }, - RetentionTimes = -{ -}, - RetentionDuration = new RetentionDuration() - { - Count = 60, - DurationType = RetentionDurationType.Months, - }, - }, - YearlySchedule = new YearlyRetentionSchedule() - { - RetentionScheduleFormatType = RetentionScheduleFormat.Weekly, - MonthsOfYear = -{ -MonthOfYear.January -}, - RetentionScheduleWeekly = new WeeklyRetentionFormat() - { - DaysOfTheWeek = -{ -DayOfWeek.Sunday -}, - WeeksOfTheMonth = -{ -WeekOfMonth.First -}, - }, - RetentionTimes = -{ -}, - RetentionDuration = new RetentionDuration() - { - Count = 10, - DurationType = RetentionDurationType.Years, - }, - }, - }, - TimeZone = "UTC", - }, - }; - ArmOperation lro = await protectionPolicyResource.UpdateAsync(WaitUntil.Completed, data); - ProtectionPolicyResource result = lro.Value; - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - ProtectionPolicyResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // Create or Update Simple Azure Vm Protection Policy - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_CreateOrUpdateSimpleAzureVmProtectionPolicy() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/ProtectionPolicies_CreateOrUpdate_Simple.json - // this example is just showing the usage of "ProtectionPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ProtectionPolicyResource created on azure - // for more information of creating ProtectionPolicyResource, please refer to the document of ProtectionPolicyResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "SwaggerTestRg"; - string vaultName = "NetSDKTestRsVault"; - string policyName = "testPolicy1"; - ResourceIdentifier protectionPolicyResourceId = ProtectionPolicyResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, policyName); - ProtectionPolicyResource protectionPolicyResource = client.GetProtectionPolicyResource(protectionPolicyResourceId); - - // invoke the operation - ProtectionPolicyResourceData data = new ProtectionPolicyResourceData(new AzureLocation("placeholder")) - { - Properties = new AzureIaasVmProtectionPolicy() - { - SchedulePolicy = new SimpleSchedulePolicy() - { - ScheduleRunFrequency = ScheduleRunType.Daily, - ScheduleRunTimes = -{ -DateTimeOffset.Parse("2018-01-24T02:00:00Z") -}, - }, - RetentionPolicy = new LongTermRetentionPolicy() - { - DailySchedule = new DailyRetentionSchedule() - { - RetentionTimes = -{ -DateTimeOffset.Parse("2018-01-24T02:00:00Z") -}, - RetentionDuration = new RetentionDuration() - { - Count = 1, - DurationType = RetentionDurationType.Days, - }, - }, - }, - TimeZone = "Pacific Standard Time", - }, - }; - ArmOperation lro = await protectionPolicyResource.UpdateAsync(WaitUntil.Completed, data); - ProtectionPolicyResource result = lro.Value; - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - ProtectionPolicyResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // Delete Azure Vm Protection Policy - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Delete_DeleteAzureVmProtectionPolicy() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/ProtectionPolicies_Delete.json - // this example is just showing the usage of "ProtectionPolicies_Delete" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ProtectionPolicyResource created on azure - // for more information of creating ProtectionPolicyResource, please refer to the document of ProtectionPolicyResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "SwaggerTestRg"; - string vaultName = "NetSDKTestRsVault"; - string policyName = "testPolicy1"; - ResourceIdentifier protectionPolicyResourceId = ProtectionPolicyResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, policyName); - ProtectionPolicyResource protectionPolicyResource = client.GetProtectionPolicyResource(protectionPolicyResourceId); - - // invoke the operation - await protectionPolicyResource.DeleteAsync(WaitUntil.Completed); - - Console.WriteLine($"Succeeded"); - } - - // Get Protection Policy Operation Status - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetProtectionPolicyOperationStatus_GetProtectionPolicyOperationStatus() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/ProtectionPolicyOperationStatuses_Get.json - // this example is just showing the usage of "ProtectionPolicyOperationStatuses_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ProtectionPolicyResource created on azure - // for more information of creating ProtectionPolicyResource, please refer to the document of ProtectionPolicyResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "SwaggerTestRg"; - string vaultName = "NetSDKTestRsVault"; - string policyName = "testPolicy1"; - ResourceIdentifier protectionPolicyResourceId = ProtectionPolicyResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, policyName); - ProtectionPolicyResource protectionPolicyResource = client.GetProtectionPolicyResource(protectionPolicyResourceId); - - // invoke the operation - string operationId = "00000000-0000-0000-0000-000000000000"; - OperationStatus result = await protectionPolicyResource.GetProtectionPolicyOperationStatusAsync(operationId); - - Console.WriteLine($"Succeeded: {result}"); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ProtectionPolicyResourceCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ProtectionPolicyResourceCollection.cs deleted file mode 100644 index ccba5b69d8f43..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ProtectionPolicyResourceCollection.cs +++ /dev/null @@ -1,1178 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Identity; -using Azure.ResourceManager; -using Azure.ResourceManager.RecoveryServicesBackup; -using Azure.ResourceManager.RecoveryServicesBackup.Models; -using Azure.ResourceManager.Resources; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Samples -{ - public partial class Sample_ProtectionPolicyResourceCollection - { - // List protection policies with backupManagementType filter as AzureIaasVm - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_ListProtectionPoliciesWithBackupManagementTypeFilterAsAzureIaasVm() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/BackupPolicies_List.json - // this example is just showing the usage of "BackupPolicies_List" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "SwaggerTestRg"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this ProtectionPolicyResource - string vaultName = "NetSDKTestRsVault"; - ProtectionPolicyResourceCollection collection = resourceGroupResource.GetProtectionPolicyResources(vaultName); - - // invoke the operation and iterate over the result - string filter = "backupManagementType eq 'AzureIaasVM'"; - await foreach (ProtectionPolicyResource item in collection.GetAllAsync(filter: filter)) - { - // the variable item is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - ProtectionPolicyResourceData resourceData = item.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - Console.WriteLine($"Succeeded"); - } - - // List protection policies with backupManagementType filter as AzureIaasVm with both V1 and V2 policies - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_ListProtectionPoliciesWithBackupManagementTypeFilterAsAzureIaasVmWithBothV1AndV2Policies() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/V2Policy/v2-List-Policies.json - // this example is just showing the usage of "BackupPolicies_List" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "SwaggerTestRg"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this ProtectionPolicyResource - string vaultName = "NetSDKTestRsVault"; - ProtectionPolicyResourceCollection collection = resourceGroupResource.GetProtectionPolicyResources(vaultName); - - // invoke the operation and iterate over the result - string filter = "backupManagementType eq 'AzureIaasVM'"; - await foreach (ProtectionPolicyResource item in collection.GetAllAsync(filter: filter)) - { - // the variable item is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - ProtectionPolicyResourceData resourceData = item.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - Console.WriteLine($"Succeeded"); - } - - // List protection policies with backupManagementType filter as AzureWorkload - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_ListProtectionPoliciesWithBackupManagementTypeFilterAsAzureWorkload() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureWorkload/BackupPolicies_List.json - // this example is just showing the usage of "BackupPolicies_List" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "SwaggerTestRg"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this ProtectionPolicyResource - string vaultName = "NetSDKTestRsVault"; - ProtectionPolicyResourceCollection collection = resourceGroupResource.GetProtectionPolicyResources(vaultName); - - // invoke the operation and iterate over the result - string filter = "backupManagementType eq 'AzureWorkload'"; - await foreach (ProtectionPolicyResource item in collection.GetAllAsync(filter: filter)) - { - // the variable item is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - ProtectionPolicyResourceData resourceData = item.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - Console.WriteLine($"Succeeded"); - } - - // Get Azure IaasVm Enhanced Protection Policy Details - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetAzureIaasVmEnhancedProtectionPolicyDetails() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/V2Policy/v2-Get-Policy.json - // this example is just showing the usage of "ProtectionPolicies_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "SwaggerTestRg"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this ProtectionPolicyResource - string vaultName = "NetSDKTestRsVault"; - ProtectionPolicyResourceCollection collection = resourceGroupResource.GetProtectionPolicyResources(vaultName); - - // invoke the operation - string policyName = "v2-daily-sample"; - ProtectionPolicyResource result = await collection.GetAsync(policyName); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - ProtectionPolicyResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // Get Azure IaasVm Enhanced Protection Policy Details - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Exists_GetAzureIaasVmEnhancedProtectionPolicyDetails() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/V2Policy/v2-Get-Policy.json - // this example is just showing the usage of "ProtectionPolicies_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "SwaggerTestRg"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this ProtectionPolicyResource - string vaultName = "NetSDKTestRsVault"; - ProtectionPolicyResourceCollection collection = resourceGroupResource.GetProtectionPolicyResources(vaultName); - - // invoke the operation - string policyName = "v2-daily-sample"; - bool result = await collection.ExistsAsync(policyName); - - Console.WriteLine($"Succeeded: {result}"); - } - - // Get Azure IaasVm Protection Policy Details - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetAzureIaasVmProtectionPolicyDetails() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/ProtectionPolicies_Get.json - // this example is just showing the usage of "ProtectionPolicies_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "SwaggerTestRg"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this ProtectionPolicyResource - string vaultName = "NetSDKTestRsVault"; - ProtectionPolicyResourceCollection collection = resourceGroupResource.GetProtectionPolicyResources(vaultName); - - // invoke the operation - string policyName = "testPolicy1"; - ProtectionPolicyResource result = await collection.GetAsync(policyName); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - ProtectionPolicyResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // Get Azure IaasVm Protection Policy Details - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Exists_GetAzureIaasVmProtectionPolicyDetails() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/ProtectionPolicies_Get.json - // this example is just showing the usage of "ProtectionPolicies_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "SwaggerTestRg"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this ProtectionPolicyResource - string vaultName = "NetSDKTestRsVault"; - ProtectionPolicyResourceCollection collection = resourceGroupResource.GetProtectionPolicyResources(vaultName); - - // invoke the operation - string policyName = "testPolicy1"; - bool result = await collection.ExistsAsync(policyName); - - Console.WriteLine($"Succeeded: {result}"); - } - - // Create or Update Daily Azure Storage Protection Policy - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task CreateOrUpdate_CreateOrUpdateDailyAzureStorageProtectionPolicy() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureStorage/ProtectionPolicies_CreateOrUpdate_Daily.json - // this example is just showing the usage of "ProtectionPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "SwaggerTestRg"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this ProtectionPolicyResource - string vaultName = "swaggertestvault"; - ProtectionPolicyResourceCollection collection = resourceGroupResource.GetProtectionPolicyResources(vaultName); - - // invoke the operation - string policyName = "dailyPolicy2"; - ProtectionPolicyResourceData data = new ProtectionPolicyResourceData(new AzureLocation("placeholder")) - { - Properties = new AzureFileShareProtectionPolicy() - { - WorkLoadType = WorkloadType.AzureFileShare, - SchedulePolicy = new SimpleSchedulePolicy() - { - ScheduleRunFrequency = ScheduleRunType.Daily, - ScheduleRunTimes = -{ -DateTimeOffset.Parse("2021-09-29T08:00:00.000Z") -}, - }, - RetentionPolicy = new LongTermRetentionPolicy() - { - DailySchedule = new DailyRetentionSchedule() - { - RetentionTimes = -{ -DateTimeOffset.Parse("2021-09-29T08:00:00.000Z") -}, - RetentionDuration = new RetentionDuration() - { - Count = 5, - DurationType = RetentionDurationType.Days, - }, - }, - WeeklySchedule = new WeeklyRetentionSchedule() - { - DaysOfTheWeek = -{ -DayOfWeek.Sunday -}, - RetentionTimes = -{ -DateTimeOffset.Parse("2021-09-29T08:00:00.000Z") -}, - RetentionDuration = new RetentionDuration() - { - Count = 12, - DurationType = RetentionDurationType.Weeks, - }, - }, - MonthlySchedule = new MonthlyRetentionSchedule() - { - RetentionScheduleFormatType = RetentionScheduleFormat.Weekly, - RetentionScheduleWeekly = new WeeklyRetentionFormat() - { - DaysOfTheWeek = -{ -DayOfWeek.Sunday -}, - WeeksOfTheMonth = -{ -WeekOfMonth.First -}, - }, - RetentionTimes = -{ -DateTimeOffset.Parse("2021-09-29T08:00:00.000Z") -}, - RetentionDuration = new RetentionDuration() - { - Count = 60, - DurationType = RetentionDurationType.Months, - }, - }, - YearlySchedule = new YearlyRetentionSchedule() - { - RetentionScheduleFormatType = RetentionScheduleFormat.Weekly, - MonthsOfYear = -{ -MonthOfYear.January -}, - RetentionScheduleWeekly = new WeeklyRetentionFormat() - { - DaysOfTheWeek = -{ -DayOfWeek.Sunday -}, - WeeksOfTheMonth = -{ -WeekOfMonth.First -}, - }, - RetentionTimes = -{ -DateTimeOffset.Parse("2021-09-29T08:00:00.000Z") -}, - RetentionDuration = new RetentionDuration() - { - Count = 10, - DurationType = RetentionDurationType.Years, - }, - }, - }, - TimeZone = "UTC", - }, - }; - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, policyName, data); - ProtectionPolicyResource result = lro.Value; - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - ProtectionPolicyResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // Create or Update Enhanced Azure Vm Protection Policy with Hourly backup - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task CreateOrUpdate_CreateOrUpdateEnhancedAzureVmProtectionPolicyWithHourlyBackup() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/V2Policy/IaaS_v2_hourly.json - // this example is just showing the usage of "ProtectionPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "SwaggerTestRg"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this ProtectionPolicyResource - string vaultName = "NetSDKTestRsVault"; - ProtectionPolicyResourceCollection collection = resourceGroupResource.GetProtectionPolicyResources(vaultName); - - // invoke the operation - string policyName = "v2-daily-sample"; - ProtectionPolicyResourceData data = new ProtectionPolicyResourceData(new AzureLocation("placeholder")) - { - Properties = new AzureIaasVmProtectionPolicy() - { - SchedulePolicy = new SimpleSchedulePolicyV2() - { - ScheduleRunFrequency = ScheduleRunType.Hourly, - HourlySchedule = new HourlySchedule() - { - Interval = 4, - ScheduleWindowStartOn = DateTimeOffset.Parse("2021-12-17T08:00:00Z"), - ScheduleWindowDuration = 16, - }, - }, - RetentionPolicy = new LongTermRetentionPolicy() - { - DailySchedule = new DailyRetentionSchedule() - { - RetentionTimes = -{ -DateTimeOffset.Parse("2021-12-17T08:00:00+00:00") -}, - RetentionDuration = new RetentionDuration() - { - Count = 180, - DurationType = RetentionDurationType.Days, - }, - }, - WeeklySchedule = new WeeklyRetentionSchedule() - { - DaysOfTheWeek = -{ -DayOfWeek.Sunday -}, - RetentionTimes = -{ -DateTimeOffset.Parse("2021-12-17T08:00:00+00:00") -}, - RetentionDuration = new RetentionDuration() - { - Count = 12, - DurationType = RetentionDurationType.Weeks, - }, - }, - MonthlySchedule = new MonthlyRetentionSchedule() - { - RetentionScheduleFormatType = RetentionScheduleFormat.Weekly, - RetentionScheduleWeekly = new WeeklyRetentionFormat() - { - DaysOfTheWeek = -{ -DayOfWeek.Sunday -}, - WeeksOfTheMonth = -{ -WeekOfMonth.First -}, - }, - RetentionTimes = -{ -DateTimeOffset.Parse("2021-12-17T08:00:00+00:00") -}, - RetentionDuration = new RetentionDuration() - { - Count = 60, - DurationType = RetentionDurationType.Months, - }, - }, - YearlySchedule = new YearlyRetentionSchedule() - { - RetentionScheduleFormatType = RetentionScheduleFormat.Weekly, - MonthsOfYear = -{ -MonthOfYear.January -}, - RetentionScheduleWeekly = new WeeklyRetentionFormat() - { - DaysOfTheWeek = -{ -DayOfWeek.Sunday -}, - WeeksOfTheMonth = -{ -WeekOfMonth.First -}, - }, - RetentionTimes = -{ -DateTimeOffset.Parse("2021-12-17T08:00:00+00:00") -}, - RetentionDuration = new RetentionDuration() - { - Count = 10, - DurationType = RetentionDurationType.Years, - }, - }, - }, - InstantRpRetentionRangeInDays = 30, - TimeZone = "India Standard Time", - PolicyType = IaasVmPolicyType.V2, - }, - }; - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, policyName, data); - ProtectionPolicyResource result = lro.Value; - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - ProtectionPolicyResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // Create or Update Enhanced Azure Vm Protection Policy with daily backup - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task CreateOrUpdate_CreateOrUpdateEnhancedAzureVmProtectionPolicyWithDailyBackup() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/V2Policy/IaaS_v2_daily.json - // this example is just showing the usage of "ProtectionPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "SwaggerTestRg"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this ProtectionPolicyResource - string vaultName = "NetSDKTestRsVault"; - ProtectionPolicyResourceCollection collection = resourceGroupResource.GetProtectionPolicyResources(vaultName); - - // invoke the operation - string policyName = "v2-daily-sample"; - ProtectionPolicyResourceData data = new ProtectionPolicyResourceData(new AzureLocation("placeholder")) - { - Properties = new AzureIaasVmProtectionPolicy() - { - SchedulePolicy = new SimpleSchedulePolicyV2() - { - ScheduleRunFrequency = ScheduleRunType.Daily, - ScheduleRunTimes = -{ -DateTimeOffset.Parse("2018-01-24T10:00:00Z") -}, - }, - RetentionPolicy = new LongTermRetentionPolicy() - { - DailySchedule = new DailyRetentionSchedule() - { - RetentionTimes = -{ -DateTimeOffset.Parse("2021-12-17T08:00:00+00:00") -}, - RetentionDuration = new RetentionDuration() - { - Count = 180, - DurationType = RetentionDurationType.Days, - }, - }, - WeeklySchedule = new WeeklyRetentionSchedule() - { - DaysOfTheWeek = -{ -DayOfWeek.Sunday -}, - RetentionTimes = -{ -DateTimeOffset.Parse("2021-12-17T08:00:00+00:00") -}, - RetentionDuration = new RetentionDuration() - { - Count = 12, - DurationType = RetentionDurationType.Weeks, - }, - }, - MonthlySchedule = new MonthlyRetentionSchedule() - { - RetentionScheduleFormatType = RetentionScheduleFormat.Weekly, - RetentionScheduleWeekly = new WeeklyRetentionFormat() - { - DaysOfTheWeek = -{ -DayOfWeek.Sunday -}, - WeeksOfTheMonth = -{ -WeekOfMonth.First -}, - }, - RetentionTimes = -{ -DateTimeOffset.Parse("2021-12-17T08:00:00+00:00") -}, - RetentionDuration = new RetentionDuration() - { - Count = 60, - DurationType = RetentionDurationType.Months, - }, - }, - YearlySchedule = new YearlyRetentionSchedule() - { - RetentionScheduleFormatType = RetentionScheduleFormat.Weekly, - MonthsOfYear = -{ -MonthOfYear.January -}, - RetentionScheduleWeekly = new WeeklyRetentionFormat() - { - DaysOfTheWeek = -{ -DayOfWeek.Sunday -}, - WeeksOfTheMonth = -{ -WeekOfMonth.First -}, - }, - RetentionTimes = -{ -DateTimeOffset.Parse("2021-12-17T08:00:00+00:00") -}, - RetentionDuration = new RetentionDuration() - { - Count = 10, - DurationType = RetentionDurationType.Years, - }, - }, - }, - InstantRpRetentionRangeInDays = 30, - TimeZone = "India Standard Time", - PolicyType = IaasVmPolicyType.V2, - }, - }; - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, policyName, data); - ProtectionPolicyResource result = lro.Value; - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - ProtectionPolicyResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // Create or Update Full Azure Vm Protection Policy - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task CreateOrUpdate_CreateOrUpdateFullAzureVmProtectionPolicy() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/ProtectionPolicies_CreateOrUpdate_Complex.json - // this example is just showing the usage of "ProtectionPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "SwaggerTestRg"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this ProtectionPolicyResource - string vaultName = "NetSDKTestRsVault"; - ProtectionPolicyResourceCollection collection = resourceGroupResource.GetProtectionPolicyResources(vaultName); - - // invoke the operation - string policyName = "testPolicy1"; - ProtectionPolicyResourceData data = new ProtectionPolicyResourceData(new AzureLocation("placeholder")) - { - Properties = new AzureIaasVmProtectionPolicy() - { - SchedulePolicy = new SimpleSchedulePolicy() - { - ScheduleRunFrequency = ScheduleRunType.Weekly, - ScheduleRunDays = -{ -DayOfWeek.Monday,DayOfWeek.Wednesday,DayOfWeek.Thursday -}, - ScheduleRunTimes = -{ -DateTimeOffset.Parse("2018-01-24T10:00:00Z") -}, - }, - RetentionPolicy = new LongTermRetentionPolicy() - { - WeeklySchedule = new WeeklyRetentionSchedule() - { - DaysOfTheWeek = -{ -DayOfWeek.Monday,DayOfWeek.Wednesday,DayOfWeek.Thursday -}, - RetentionTimes = -{ -DateTimeOffset.Parse("2018-01-24T10:00:00Z") -}, - RetentionDuration = new RetentionDuration() - { - Count = 1, - DurationType = RetentionDurationType.Weeks, - }, - }, - MonthlySchedule = new MonthlyRetentionSchedule() - { - RetentionScheduleFormatType = RetentionScheduleFormat.Weekly, - RetentionScheduleWeekly = new WeeklyRetentionFormat() - { - DaysOfTheWeek = -{ -DayOfWeek.Wednesday,DayOfWeek.Thursday -}, - WeeksOfTheMonth = -{ -WeekOfMonth.First,WeekOfMonth.Third -}, - }, - RetentionTimes = -{ -DateTimeOffset.Parse("2018-01-24T10:00:00Z") -}, - RetentionDuration = new RetentionDuration() - { - Count = 2, - DurationType = RetentionDurationType.Months, - }, - }, - YearlySchedule = new YearlyRetentionSchedule() - { - RetentionScheduleFormatType = RetentionScheduleFormat.Weekly, - MonthsOfYear = -{ -MonthOfYear.February,MonthOfYear.November -}, - RetentionScheduleWeekly = new WeeklyRetentionFormat() - { - DaysOfTheWeek = -{ -DayOfWeek.Monday,DayOfWeek.Thursday -}, - WeeksOfTheMonth = -{ -WeekOfMonth.Fourth -}, - }, - RetentionTimes = -{ -DateTimeOffset.Parse("2018-01-24T10:00:00Z") -}, - RetentionDuration = new RetentionDuration() - { - Count = 4, - DurationType = RetentionDurationType.Years, - }, - }, - }, - TimeZone = "Pacific Standard Time", - }, - }; - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, policyName, data); - ProtectionPolicyResource result = lro.Value; - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - ProtectionPolicyResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // Create or Update Full Azure Workload Protection Policy - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task CreateOrUpdate_CreateOrUpdateFullAzureWorkloadProtectionPolicy() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureWorkload/ProtectionPolicies_CreateOrUpdate_Complex.json - // this example is just showing the usage of "ProtectionPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "SwaggerTestRg"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this ProtectionPolicyResource - string vaultName = "NetSDKTestRsVault"; - ProtectionPolicyResourceCollection collection = resourceGroupResource.GetProtectionPolicyResources(vaultName); - - // invoke the operation - string policyName = "testPolicy1"; - ProtectionPolicyResourceData data = new ProtectionPolicyResourceData(new AzureLocation("placeholder")) - { - Properties = new AzureVmWorkloadProtectionPolicy() - { - WorkLoadType = WorkloadType.SQLDataBase, - Settings = new Settings() - { - TimeZone = "Pacific Standard Time", - IsSqlCompression = false, - }, - SubProtectionPolicy = -{ -new SubProtectionPolicy() -{ -PolicyType = PolicyType.Full, -SchedulePolicy = new SimpleSchedulePolicy() -{ -ScheduleRunFrequency = ScheduleRunType.Weekly, -ScheduleRunDays = -{ -DayOfWeek.Sunday,DayOfWeek.Tuesday -}, -ScheduleRunTimes = -{ -DateTimeOffset.Parse("2018-01-24T10:00:00Z") -}, -}, -RetentionPolicy = new LongTermRetentionPolicy() -{ -WeeklySchedule = new WeeklyRetentionSchedule() -{ -DaysOfTheWeek = -{ -DayOfWeek.Sunday,DayOfWeek.Tuesday -}, -RetentionTimes = -{ -DateTimeOffset.Parse("2018-01-24T10:00:00Z") -}, -RetentionDuration = new RetentionDuration() -{ -Count = 2, -DurationType = RetentionDurationType.Weeks, -}, -}, -MonthlySchedule = new MonthlyRetentionSchedule() -{ -RetentionScheduleFormatType = RetentionScheduleFormat.Weekly, -RetentionScheduleWeekly = new WeeklyRetentionFormat() -{ -DaysOfTheWeek = -{ -DayOfWeek.Sunday -}, -WeeksOfTheMonth = -{ -WeekOfMonth.Second -}, -}, -RetentionTimes = -{ -DateTimeOffset.Parse("2018-01-24T10:00:00Z") -}, -RetentionDuration = new RetentionDuration() -{ -Count = 1, -DurationType = RetentionDurationType.Months, -}, -}, -YearlySchedule = new YearlyRetentionSchedule() -{ -RetentionScheduleFormatType = RetentionScheduleFormat.Weekly, -MonthsOfYear = -{ -MonthOfYear.January,MonthOfYear.June,MonthOfYear.December -}, -RetentionScheduleWeekly = new WeeklyRetentionFormat() -{ -DaysOfTheWeek = -{ -DayOfWeek.Sunday -}, -WeeksOfTheMonth = -{ -WeekOfMonth.Last -}, -}, -RetentionTimes = -{ -DateTimeOffset.Parse("2018-01-24T10:00:00Z") -}, -RetentionDuration = new RetentionDuration() -{ -Count = 1, -DurationType = RetentionDurationType.Years, -}, -}, -}, -},new SubProtectionPolicy() -{ -PolicyType = PolicyType.Differential, -SchedulePolicy = new SimpleSchedulePolicy() -{ -ScheduleRunFrequency = ScheduleRunType.Weekly, -ScheduleRunDays = -{ -DayOfWeek.Friday -}, -ScheduleRunTimes = -{ -DateTimeOffset.Parse("2018-01-24T10:00:00Z") -}, -}, -RetentionPolicy = new SimpleRetentionPolicy() -{ -RetentionDuration = new RetentionDuration() -{ -Count = 8, -DurationType = RetentionDurationType.Days, -}, -}, -},new SubProtectionPolicy() -{ -PolicyType = PolicyType.Log, -SchedulePolicy = new LogSchedulePolicy() -{ -ScheduleFrequencyInMins = 60, -}, -RetentionPolicy = new SimpleRetentionPolicy() -{ -RetentionDuration = new RetentionDuration() -{ -Count = 7, -DurationType = RetentionDurationType.Days, -}, -}, -} -}, - }, - }; - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, policyName, data); - ProtectionPolicyResource result = lro.Value; - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - ProtectionPolicyResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // Create or Update Hourly Azure Storage Protection Policy - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task CreateOrUpdate_CreateOrUpdateHourlyAzureStorageProtectionPolicy() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureStorage/ProtectionPolicies_CreateOrUpdate_Hourly.json - // this example is just showing the usage of "ProtectionPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "SwaggerTestRg"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this ProtectionPolicyResource - string vaultName = "swaggertestvault"; - ProtectionPolicyResourceCollection collection = resourceGroupResource.GetProtectionPolicyResources(vaultName); - - // invoke the operation - string policyName = "newPolicy2"; - ProtectionPolicyResourceData data = new ProtectionPolicyResourceData(new AzureLocation("placeholder")) - { - Properties = new AzureFileShareProtectionPolicy() - { - WorkLoadType = WorkloadType.AzureFileShare, - SchedulePolicy = new SimpleSchedulePolicy() - { - ScheduleRunFrequency = ScheduleRunType.Hourly, - HourlySchedule = new HourlySchedule() - { - Interval = 4, - ScheduleWindowStartOn = DateTimeOffset.Parse("2021-09-29T08:00:00.000Z"), - ScheduleWindowDuration = 12, - }, - }, - RetentionPolicy = new LongTermRetentionPolicy() - { - DailySchedule = new DailyRetentionSchedule() - { - RetentionTimes = -{ -}, - RetentionDuration = new RetentionDuration() - { - Count = 5, - DurationType = RetentionDurationType.Days, - }, - }, - WeeklySchedule = new WeeklyRetentionSchedule() - { - DaysOfTheWeek = -{ -DayOfWeek.Sunday -}, - RetentionTimes = -{ -}, - RetentionDuration = new RetentionDuration() - { - Count = 12, - DurationType = RetentionDurationType.Weeks, - }, - }, - MonthlySchedule = new MonthlyRetentionSchedule() - { - RetentionScheduleFormatType = RetentionScheduleFormat.Weekly, - RetentionScheduleWeekly = new WeeklyRetentionFormat() - { - DaysOfTheWeek = -{ -DayOfWeek.Sunday -}, - WeeksOfTheMonth = -{ -WeekOfMonth.First -}, - }, - RetentionTimes = -{ -}, - RetentionDuration = new RetentionDuration() - { - Count = 60, - DurationType = RetentionDurationType.Months, - }, - }, - YearlySchedule = new YearlyRetentionSchedule() - { - RetentionScheduleFormatType = RetentionScheduleFormat.Weekly, - MonthsOfYear = -{ -MonthOfYear.January -}, - RetentionScheduleWeekly = new WeeklyRetentionFormat() - { - DaysOfTheWeek = -{ -DayOfWeek.Sunday -}, - WeeksOfTheMonth = -{ -WeekOfMonth.First -}, - }, - RetentionTimes = -{ -}, - RetentionDuration = new RetentionDuration() - { - Count = 10, - DurationType = RetentionDurationType.Years, - }, - }, - }, - TimeZone = "UTC", - }, - }; - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, policyName, data); - ProtectionPolicyResource result = lro.Value; - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - ProtectionPolicyResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // Create or Update Simple Azure Vm Protection Policy - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task CreateOrUpdate_CreateOrUpdateSimpleAzureVmProtectionPolicy() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/ProtectionPolicies_CreateOrUpdate_Simple.json - // this example is just showing the usage of "ProtectionPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "SwaggerTestRg"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this ProtectionPolicyResource - string vaultName = "NetSDKTestRsVault"; - ProtectionPolicyResourceCollection collection = resourceGroupResource.GetProtectionPolicyResources(vaultName); - - // invoke the operation - string policyName = "testPolicy1"; - ProtectionPolicyResourceData data = new ProtectionPolicyResourceData(new AzureLocation("placeholder")) - { - Properties = new AzureIaasVmProtectionPolicy() - { - SchedulePolicy = new SimpleSchedulePolicy() - { - ScheduleRunFrequency = ScheduleRunType.Daily, - ScheduleRunTimes = -{ -DateTimeOffset.Parse("2018-01-24T02:00:00Z") -}, - }, - RetentionPolicy = new LongTermRetentionPolicy() - { - DailySchedule = new DailyRetentionSchedule() - { - RetentionTimes = -{ -DateTimeOffset.Parse("2018-01-24T02:00:00Z") -}, - RetentionDuration = new RetentionDuration() - { - Count = 1, - DurationType = RetentionDurationType.Days, - }, - }, - }, - TimeZone = "Pacific Standard Time", - }, - }; - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, policyName, data); - ProtectionPolicyResource result = lro.Value; - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - ProtectionPolicyResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_RecoveryPointResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_RecoveryPointResource.cs deleted file mode 100644 index e26df86f9d62a..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_RecoveryPointResource.cs +++ /dev/null @@ -1,500 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading.Tasks; -using System.Xml; -using Azure; -using Azure.Core; -using Azure.Identity; -using Azure.ResourceManager; -using Azure.ResourceManager.RecoveryServicesBackup; -using Azure.ResourceManager.RecoveryServicesBackup.Models; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Samples -{ - public partial class Sample_RecoveryPointResource - { - // Trigger RP Move Operation - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task MoveRecoveryPoint_TriggerRPMoveOperation() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/TriggerRecoveryPointMove_Post.json - // this example is just showing the usage of "MoveRecoveryPoint" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this RecoveryPointResource created on azure - // for more information of creating RecoveryPointResource, please refer to the document of RecoveryPointResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "netsdktestrg"; - string vaultName = "testVault"; - string fabricName = "Azure"; - string containerName = "IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1"; - string protectedItemName = "VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1"; - string recoveryPointId = "348916168024334"; - ResourceIdentifier recoveryPointResourceId = RecoveryPointResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName, recoveryPointId); - RecoveryPointResource recoveryPointResource = client.GetRecoveryPointResource(recoveryPointResourceId); - - // invoke the operation - MoveRPAcrossTiersContent content = new MoveRPAcrossTiersContent() - { - ObjectType = "MoveRPAcrossTiersRequest", - SourceTierType = RecoveryPointTierType.HardenedRP, - TargetTierType = RecoveryPointTierType.ArchivedRP, - }; - await recoveryPointResource.MoveRecoveryPointAsync(WaitUntil.Completed, content); - - Console.WriteLine($"Succeeded"); - } - - // Get Azure Vm Recovery Point Details - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetAzureVmRecoveryPointDetails() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/RecoveryPoints_Get.json - // this example is just showing the usage of "RecoveryPoints_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this RecoveryPointResource created on azure - // for more information of creating RecoveryPointResource, please refer to the document of RecoveryPointResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "rshhtestmdvmrg"; - string vaultName = "rshvault"; - string fabricName = "Azure"; - string containerName = "IaasVMContainer;iaasvmcontainerv2;rshhtestmdvmrg;rshmdvmsmall"; - string protectedItemName = "VM;iaasvmcontainerv2;rshhtestmdvmrg;rshmdvmsmall"; - string recoveryPointId = "26083826328862"; - ResourceIdentifier recoveryPointResourceId = RecoveryPointResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName, recoveryPointId); - RecoveryPointResource recoveryPointResource = client.GetRecoveryPointResource(recoveryPointResourceId); - - // invoke the operation - RecoveryPointResource result = await recoveryPointResource.GetAsync(); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - RecoveryPointResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // Restore Disks with IaasVMRestoreRequest - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task TriggerRestore_RestoreDisksWithIaasVMRestoreRequest() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/TriggerRestore_RestoreDisks_IaasVMRestoreRequest.json - // this example is just showing the usage of "Restores_Trigger" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this RecoveryPointResource created on azure - // for more information of creating RecoveryPointResource, please refer to the document of RecoveryPointResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "netsdktestrg"; - string vaultName = "testVault"; - string fabricName = "Azure"; - string containerName = "IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1"; - string protectedItemName = "VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1"; - string recoveryPointId = "348916168024334"; - ResourceIdentifier recoveryPointResourceId = RecoveryPointResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName, recoveryPointId); - RecoveryPointResource recoveryPointResource = client.GetRecoveryPointResource(recoveryPointResourceId); - - // invoke the operation - RestoreRequestResource restoreRequestResource = new RestoreRequestResource(new AzureLocation("placeholder")) - { - Properties = new IaasVmRestoreRequest() - { - RecoveryPointId = "348916168024334", - RecoveryType = RecoveryType.RestoreDisks, - SourceResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1", - StorageAccountId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testingRg/providers/Microsoft.Storage/storageAccounts/testAccount", - Region = "southeastasia", - CreateNewCloudService = true, - OriginalStorageAccountOption = false, - EncryptionDetails = new EncryptionDetails() - { - EncryptionEnabled = false, - }, - IdentityInfo = new IdentityInfo() - { - IsSystemAssignedIdentity = false, - ManagedIdentityResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/asmaskarRG1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/asmaskartestmsi", - }, - }, - }; - await recoveryPointResource.TriggerRestoreAsync(WaitUntil.Completed, restoreRequestResource); - - Console.WriteLine($"Succeeded"); - } - - // Restore Disks with IaasVMRestoreRequest with IdentityBasedRestoreDetails - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task TriggerRestore_RestoreDisksWithIaasVMRestoreRequestWithIdentityBasedRestoreDetails() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/TriggerRestore_RestoreDisks_IaasVMRestoreRequest_IdentityBasedRestoreDetails.json - // this example is just showing the usage of "Restores_Trigger" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this RecoveryPointResource created on azure - // for more information of creating RecoveryPointResource, please refer to the document of RecoveryPointResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "netsdktestrg"; - string vaultName = "testVault"; - string fabricName = "Azure"; - string containerName = "IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1"; - string protectedItemName = "VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1"; - string recoveryPointId = "348916168024334"; - ResourceIdentifier recoveryPointResourceId = RecoveryPointResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName, recoveryPointId); - RecoveryPointResource recoveryPointResource = client.GetRecoveryPointResource(recoveryPointResourceId); - - // invoke the operation - RestoreRequestResource restoreRequestResource = new RestoreRequestResource(new AzureLocation("placeholder")) - { - Properties = new IaasVmRestoreRequest() - { - RecoveryPointId = "348916168024334", - RecoveryType = RecoveryType.RestoreDisks, - SourceResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1", - Region = "southeastasia", - CreateNewCloudService = true, - OriginalStorageAccountOption = false, - EncryptionDetails = new EncryptionDetails() - { - EncryptionEnabled = false, - }, - IdentityInfo = new IdentityInfo() - { - IsSystemAssignedIdentity = false, - ManagedIdentityResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/asmaskarRG1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/asmaskartestmsi", - }, - IdentityBasedRestoreDetails = new IdentityBasedRestoreDetails() - { - TargetStorageAccountId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testingRg/providers/Microsoft.Storage/storageAccounts/testAccount", - }, - }, - }; - await recoveryPointResource.TriggerRestoreAsync(WaitUntil.Completed, restoreRequestResource); - - Console.WriteLine($"Succeeded"); - } - - // Restore Disks with IaasVMRestoreWithRehydrationRequest - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task TriggerRestore_RestoreDisksWithIaasVMRestoreWithRehydrationRequest() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/TriggerRestore_RestoreDisks_IaasVMRestoreWithRehydrationRequest.json - // this example is just showing the usage of "Restores_Trigger" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this RecoveryPointResource created on azure - // for more information of creating RecoveryPointResource, please refer to the document of RecoveryPointResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "netsdktestrg"; - string vaultName = "testVault"; - string fabricName = "Azure"; - string containerName = "IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1"; - string protectedItemName = "VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1"; - string recoveryPointId = "348916168024334"; - ResourceIdentifier recoveryPointResourceId = RecoveryPointResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName, recoveryPointId); - RecoveryPointResource recoveryPointResource = client.GetRecoveryPointResource(recoveryPointResourceId); - - // invoke the operation - RestoreRequestResource restoreRequestResource = new RestoreRequestResource(new AzureLocation("placeholder")) - { - Properties = new IaasVmRestoreWithRehydrationRequest() - { - RecoveryPointRehydrationInfo = new RecoveryPointRehydrationInfo() - { - RehydrationRetentionDuration = XmlConvert.ToTimeSpan("P7D"), - RehydrationPriority = RehydrationPriority.Standard, - }, - RecoveryPointId = "348916168024334", - RecoveryType = RecoveryType.RestoreDisks, - SourceResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1", - StorageAccountId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testingRg/providers/Microsoft.Storage/storageAccounts/testAccount", - Region = "southeastasia", - CreateNewCloudService = true, - OriginalStorageAccountOption = false, - EncryptionDetails = new EncryptionDetails() - { - EncryptionEnabled = false, - }, - }, - }; - await recoveryPointResource.TriggerRestoreAsync(WaitUntil.Completed, restoreRequestResource); - - Console.WriteLine($"Succeeded"); - } - - // Restore to New Azure IaasVm with IaasVMRestoreRequest - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task TriggerRestore_RestoreToNewAzureIaasVmWithIaasVMRestoreRequest() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/TriggerRestore_ALR_IaasVMRestoreRequest.json - // this example is just showing the usage of "Restores_Trigger" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this RecoveryPointResource created on azure - // for more information of creating RecoveryPointResource, please refer to the document of RecoveryPointResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "netsdktestrg"; - string vaultName = "testVault"; - string fabricName = "Azure"; - string containerName = "IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1"; - string protectedItemName = "VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1"; - string recoveryPointId = "348916168024334"; - ResourceIdentifier recoveryPointResourceId = RecoveryPointResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName, recoveryPointId); - RecoveryPointResource recoveryPointResource = client.GetRecoveryPointResource(recoveryPointResourceId); - - // invoke the operation - RestoreRequestResource restoreRequestResource = new RestoreRequestResource(new AzureLocation("placeholder")) - { - Properties = new IaasVmRestoreRequest() - { - RecoveryPointId = "348916168024334", - RecoveryType = RecoveryType.AlternateLocation, - SourceResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1", - TargetVirtualMachineId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg2/providers/Microsoft.Compute/virtualmachines/RSMDALRVM981435", - TargetResourceGroupId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg2", - StorageAccountId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Storage/storageAccounts/testingAccount", - VirtualNetworkId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Network/virtualNetworks/testNet", - SubnetId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Network/virtualNetworks/testNet/subnets/default", - Region = "southeastasia", - CreateNewCloudService = false, - OriginalStorageAccountOption = false, - EncryptionDetails = new EncryptionDetails() - { - EncryptionEnabled = false, - }, - IdentityInfo = new IdentityInfo() - { - IsSystemAssignedIdentity = true, - }, - }, - }; - await recoveryPointResource.TriggerRestoreAsync(WaitUntil.Completed, restoreRequestResource); - - Console.WriteLine($"Succeeded"); - } - - // Restore to New Azure IaasVm with IaasVMRestoreRequest with identityBasedRestoreDetails - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task TriggerRestore_RestoreToNewAzureIaasVmWithIaasVMRestoreRequestWithIdentityBasedRestoreDetails() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/TriggerRestore_ALR_IaasVMRestoreRequest_IdentityBasedRestoreDetails.json - // this example is just showing the usage of "Restores_Trigger" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this RecoveryPointResource created on azure - // for more information of creating RecoveryPointResource, please refer to the document of RecoveryPointResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "netsdktestrg"; - string vaultName = "testVault"; - string fabricName = "Azure"; - string containerName = "IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1"; - string protectedItemName = "VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1"; - string recoveryPointId = "348916168024334"; - ResourceIdentifier recoveryPointResourceId = RecoveryPointResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName, recoveryPointId); - RecoveryPointResource recoveryPointResource = client.GetRecoveryPointResource(recoveryPointResourceId); - - // invoke the operation - RestoreRequestResource restoreRequestResource = new RestoreRequestResource(new AzureLocation("placeholder")) - { - Properties = new IaasVmRestoreRequest() - { - RecoveryPointId = "348916168024334", - RecoveryType = RecoveryType.AlternateLocation, - SourceResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1", - TargetVirtualMachineId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg2/providers/Microsoft.Compute/virtualmachines/RSMDALRVM981435", - TargetResourceGroupId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg2", - VirtualNetworkId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Network/virtualNetworks/testNet", - SubnetId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Network/virtualNetworks/testNet/subnets/default", - Region = "southeastasia", - CreateNewCloudService = false, - OriginalStorageAccountOption = false, - EncryptionDetails = new EncryptionDetails() - { - EncryptionEnabled = false, - }, - IdentityInfo = new IdentityInfo() - { - IsSystemAssignedIdentity = true, - }, - IdentityBasedRestoreDetails = new IdentityBasedRestoreDetails() - { - TargetStorageAccountId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Storage/storageAccounts/testingAccount", - }, - }, - }; - await recoveryPointResource.TriggerRestoreAsync(WaitUntil.Completed, restoreRequestResource); - - Console.WriteLine($"Succeeded"); - } - - // Restore to New Azure IaasVm with IaasVMRestoreWithRehydrationRequest - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task TriggerRestore_RestoreToNewAzureIaasVmWithIaasVMRestoreWithRehydrationRequest() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/TriggerRestore_ALR_IaasVMRestoreWithRehydrationRequest.json - // this example is just showing the usage of "Restores_Trigger" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this RecoveryPointResource created on azure - // for more information of creating RecoveryPointResource, please refer to the document of RecoveryPointResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "netsdktestrg"; - string vaultName = "testVault"; - string fabricName = "Azure"; - string containerName = "IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1"; - string protectedItemName = "VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1"; - string recoveryPointId = "348916168024334"; - ResourceIdentifier recoveryPointResourceId = RecoveryPointResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName, recoveryPointId); - RecoveryPointResource recoveryPointResource = client.GetRecoveryPointResource(recoveryPointResourceId); - - // invoke the operation - RestoreRequestResource restoreRequestResource = new RestoreRequestResource(new AzureLocation("placeholder")) - { - Properties = new IaasVmRestoreWithRehydrationRequest() - { - RecoveryPointRehydrationInfo = new RecoveryPointRehydrationInfo() - { - RehydrationRetentionDuration = XmlConvert.ToTimeSpan("P7D"), - RehydrationPriority = RehydrationPriority.High, - }, - RecoveryPointId = "348916168024334", - RecoveryType = RecoveryType.AlternateLocation, - SourceResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1", - TargetVirtualMachineId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg2/providers/Microsoft.Compute/virtualmachines/RSMDALRVM981435", - TargetResourceGroupId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg2", - StorageAccountId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Storage/storageAccounts/testingAccount", - VirtualNetworkId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Network/virtualNetworks/testNet", - SubnetId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Network/virtualNetworks/testNet/subnets/default", - Region = "southeastasia", - CreateNewCloudService = false, - OriginalStorageAccountOption = false, - EncryptionDetails = new EncryptionDetails() - { - EncryptionEnabled = false, - }, - }, - }; - await recoveryPointResource.TriggerRestoreAsync(WaitUntil.Completed, restoreRequestResource); - - Console.WriteLine($"Succeeded"); - } - - // Provision Instant Item Level Recovery for Azure Vm - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task ProvisionItemLevelRecoveryConnection_ProvisionInstantItemLevelRecoveryForAzureVm() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/Provision_Ilr.json - // this example is just showing the usage of "ItemLevelRecoveryConnections_Provision" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this RecoveryPointResource created on azure - // for more information of creating RecoveryPointResource, please refer to the document of RecoveryPointResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "PythonSDKBackupTestRg"; - string vaultName = "PySDKBackupTestRsVault"; - string fabricName = "Azure"; - string containerName = "iaasvmcontainer;iaasvmcontainerv2;pysdktestrg;pysdktestv2vm1"; - string protectedItemName = "vm;iaasvmcontainerv2;pysdktestrg;pysdktestv2vm1"; - string recoveryPointId = "1"; - ResourceIdentifier recoveryPointResourceId = RecoveryPointResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName, recoveryPointId); - RecoveryPointResource recoveryPointResource = client.GetRecoveryPointResource(recoveryPointResourceId); - - // invoke the operation - ILRRequestResource ilrRequestResource = new ILRRequestResource(new AzureLocation("placeholder")) - { - Properties = new IaasVmilrRegistrationRequest() - { - RecoveryPointId = "38823086363464", - VirtualMachineId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/pysdktestrg/providers/Microsoft.Compute/virtualMachines/pysdktestv2vm1", - InitiatorName = "Hello World", - RenewExistingRegistration = true, - }, - }; - await recoveryPointResource.ProvisionItemLevelRecoveryConnectionAsync(ilrRequestResource); - - Console.WriteLine($"Succeeded"); - } - - // Revoke Instant Item Level Recovery for Azure Vm - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task RevokeItemLevelRecoveryConnection_RevokeInstantItemLevelRecoveryForAzureVm() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/Revoke_Ilr.json - // this example is just showing the usage of "ItemLevelRecoveryConnections_Revoke" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this RecoveryPointResource created on azure - // for more information of creating RecoveryPointResource, please refer to the document of RecoveryPointResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "PythonSDKBackupTestRg"; - string vaultName = "PySDKBackupTestRsVault"; - string fabricName = "Azure"; - string containerName = "iaasvmcontainer;iaasvmcontainerv2;pysdktestrg;pysdktestv2vm1"; - string protectedItemName = "vm;iaasvmcontainerv2;pysdktestrg;pysdktestv2vm1"; - string recoveryPointId = "1"; - ResourceIdentifier recoveryPointResourceId = RecoveryPointResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName, recoveryPointId); - RecoveryPointResource recoveryPointResource = client.GetRecoveryPointResource(recoveryPointResourceId); - - // invoke the operation - await recoveryPointResource.RevokeItemLevelRecoveryConnectionAsync(); - - Console.WriteLine($"Succeeded"); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_RecoveryPointResourceCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_RecoveryPointResourceCollection.cs deleted file mode 100644 index 81e26bb944da3..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_RecoveryPointResourceCollection.cs +++ /dev/null @@ -1,131 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading.Tasks; -using Azure.Core; -using Azure.Identity; -using Azure.ResourceManager; -using Azure.ResourceManager.RecoveryServicesBackup; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Samples -{ - public partial class Sample_RecoveryPointResourceCollection - { - // Get Protected Azure Vm Recovery Points - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_GetProtectedAzureVmRecoveryPoints() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/RecoveryPoints_List.json - // this example is just showing the usage of "RecoveryPoints_List" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ProtectedItemResource created on azure - // for more information of creating ProtectedItemResource, please refer to the document of ProtectedItemResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "rshhtestmdvmrg"; - string vaultName = "rshvault"; - string fabricName = "Azure"; - string containerName = "IaasVMContainer;iaasvmcontainerv2;rshhtestmdvmrg;rshmdvmsmall"; - string protectedItemName = "VM;iaasvmcontainerv2;rshhtestmdvmrg;rshmdvmsmall"; - ResourceIdentifier protectedItemResourceId = ProtectedItemResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName); - ProtectedItemResource protectedItemResource = client.GetProtectedItemResource(protectedItemResourceId); - - // get the collection of this RecoveryPointResource - RecoveryPointResourceCollection collection = protectedItemResource.GetRecoveryPointResources(); - - // invoke the operation and iterate over the result - await foreach (RecoveryPointResource item in collection.GetAllAsync()) - { - // the variable item is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - RecoveryPointResourceData resourceData = item.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - Console.WriteLine($"Succeeded"); - } - - // Get Azure Vm Recovery Point Details - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetAzureVmRecoveryPointDetails() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/RecoveryPoints_Get.json - // this example is just showing the usage of "RecoveryPoints_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ProtectedItemResource created on azure - // for more information of creating ProtectedItemResource, please refer to the document of ProtectedItemResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "rshhtestmdvmrg"; - string vaultName = "rshvault"; - string fabricName = "Azure"; - string containerName = "IaasVMContainer;iaasvmcontainerv2;rshhtestmdvmrg;rshmdvmsmall"; - string protectedItemName = "VM;iaasvmcontainerv2;rshhtestmdvmrg;rshmdvmsmall"; - ResourceIdentifier protectedItemResourceId = ProtectedItemResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName); - ProtectedItemResource protectedItemResource = client.GetProtectedItemResource(protectedItemResourceId); - - // get the collection of this RecoveryPointResource - RecoveryPointResourceCollection collection = protectedItemResource.GetRecoveryPointResources(); - - // invoke the operation - string recoveryPointId = "26083826328862"; - RecoveryPointResource result = await collection.GetAsync(recoveryPointId); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - RecoveryPointResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // Get Azure Vm Recovery Point Details - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Exists_GetAzureVmRecoveryPointDetails() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/RecoveryPoints_Get.json - // this example is just showing the usage of "RecoveryPoints_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ProtectedItemResource created on azure - // for more information of creating ProtectedItemResource, please refer to the document of ProtectedItemResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "rshhtestmdvmrg"; - string vaultName = "rshvault"; - string fabricName = "Azure"; - string containerName = "IaasVMContainer;iaasvmcontainerv2;rshhtestmdvmrg;rshmdvmsmall"; - string protectedItemName = "VM;iaasvmcontainerv2;rshhtestmdvmrg;rshmdvmsmall"; - ResourceIdentifier protectedItemResourceId = ProtectedItemResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName); - ProtectedItemResource protectedItemResource = client.GetProtectedItemResource(protectedItemResourceId); - - // get the collection of this RecoveryPointResource - RecoveryPointResourceCollection collection = protectedItemResource.GetRecoveryPointResources(); - - // invoke the operation - string recoveryPointId = "26083826328862"; - bool result = await collection.ExistsAsync(recoveryPointId); - - Console.WriteLine($"Succeeded: {result}"); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ResourceGroupResourceExtensions.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ResourceGroupResourceExtensions.cs deleted file mode 100644 index ab5492ba5347a..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ResourceGroupResourceExtensions.cs +++ /dev/null @@ -1,659 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Identity; -using Azure.ResourceManager; -using Azure.ResourceManager.RecoveryServicesBackup; -using Azure.ResourceManager.RecoveryServicesBackup.Models; -using Azure.ResourceManager.Resources; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Samples -{ - public partial class Sample_ResourceGroupResourceExtensions - { - // List protection intent with backupManagementType filter - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetProtectionIntentResourcesByBackupProtectionIntent_ListProtectionIntentWithBackupManagementTypeFilter() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureWorkload/BackupProtectionIntent_List.json - // this example is just showing the usage of "BackupProtectionIntent_List" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "myRG"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // invoke the operation and iterate over the result - string vaultName = "myVault"; - await foreach (ProtectionIntentResource item in resourceGroupResource.GetProtectionIntentResourcesByBackupProtectionIntentAsync(vaultName)) - { - // the variable item is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - ProtectionIntentResourceData resourceData = item.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - Console.WriteLine($"Succeeded"); - } - - // Get Protected Containers Usages Summary - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetBackupUsageSummaries_GetProtectedContainersUsagesSummary() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/BackupProtectionContainers_UsageSummary_Get.json - // this example is just showing the usage of "BackupUsageSummaries_List" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "testRG"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // invoke the operation and iterate over the result - string vaultName = "testVault"; - string filter = "type eq 'BackupProtectionContainerCountSummary'"; - await foreach (BackupManagementUsage item in resourceGroupResource.GetBackupUsageSummariesAsync(vaultName, filter: filter)) - { - Console.WriteLine($"Succeeded: {item}"); - } - - Console.WriteLine($"Succeeded"); - } - - // Get Protected Items Usages Summary - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetBackupUsageSummaries_GetProtectedItemsUsagesSummary() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/BackupProtectedItem_UsageSummary_Get.json - // this example is just showing the usage of "BackupUsageSummaries_List" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "testRG"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // invoke the operation and iterate over the result - string vaultName = "testVault"; - string filter = "type eq 'BackupProtectedItemCountSummary'"; - await foreach (BackupManagementUsage item in resourceGroupResource.GetBackupUsageSummariesAsync(vaultName, filter: filter)) - { - Console.WriteLine($"Succeeded: {item}"); - } - - Console.WriteLine($"Succeeded"); - } - - // Export Jobs Operation Results - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetExportJobsOperationResult_ExportJobsOperationResults() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/ExportJobsOperationResult.json - // this example is just showing the usage of "ExportJobsOperationResults_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "SwaggerTestRg"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // invoke the operation - string vaultName = "NetSDKTestRsVault"; - string operationId = "00000000-0000-0000-0000-000000000000"; - OperationResultInfoBaseResource result = await resourceGroupResource.GetExportJobsOperationResultAsync(vaultName, operationId); - - Console.WriteLine($"Succeeded: {result}"); - } - - // Export Jobs - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task ExportJob_ExportJobs() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/TriggerExportJobs.json - // this example is just showing the usage of "Jobs_Export" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "SwaggerTestRg"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // invoke the operation - string vaultName = "NetSDKTestRsVault"; - await resourceGroupResource.ExportJobAsync(vaultName); - - Console.WriteLine($"Succeeded"); - } - - // List protected items with backupManagementType filter as AzureIaasVm - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetProtectedItemResourcesByBackupProtectedItem_ListProtectedItemsWithBackupManagementTypeFilterAsAzureIaasVm() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/BackupProtectedItems_List.json - // this example is just showing the usage of "BackupProtectedItems_List" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "SwaggerTestRg"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // invoke the operation and iterate over the result - string vaultName = "NetSDKTestRsVault"; - string filter = "backupManagementType eq 'AzureIaasVM' and itemType eq 'VM'"; - await foreach (ProtectedItemResource item in resourceGroupResource.GetProtectedItemResourcesByBackupProtectedItemAsync(vaultName, filter: filter)) - { - // the variable item is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - ProtectedItemResourceData resourceData = item.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - Console.WriteLine($"Succeeded"); - } - - // Validate Operation - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task ValidateOperation_ValidateOperation() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/ValidateOperation_RestoreDisk.json - // this example is just showing the usage of "Operation_Validate" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "testRG"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // invoke the operation - string vaultName = "testVault"; - ValidateOperationRequest validateOperationRequest = new ValidateIaasVmRestoreOperationRequest() - { - RestoreRequest = new IaasVmRestoreRequest() - { - RecoveryPointId = "348916168024334", - RecoveryType = RecoveryType.RestoreDisks, - SourceResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1", - StorageAccountId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testingRg/providers/Microsoft.Storage/storageAccounts/testAccount", - Region = "southeastasia", - CreateNewCloudService = true, - OriginalStorageAccountOption = false, - EncryptionDetails = new EncryptionDetails() - { - EncryptionEnabled = false, - }, - IdentityInfo = new IdentityInfo() - { - IsSystemAssignedIdentity = false, - ManagedIdentityResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/asmaskarRG1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/asmaskartestmsi", - }, - }, - }; - ValidateOperationsResponse result = await resourceGroupResource.ValidateOperationAsync(vaultName, validateOperationRequest); - - Console.WriteLine($"Succeeded: {result}"); - } - - // Validate Operation with identityBasedRestoreDetails - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task ValidateOperation_ValidateOperationWithIdentityBasedRestoreDetails() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/ValidateOperation_RestoreDisk_IdentityBasedRestoreDetails.json - // this example is just showing the usage of "Operation_Validate" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "testRG"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // invoke the operation - string vaultName = "testVault"; - ValidateOperationRequest validateOperationRequest = new ValidateIaasVmRestoreOperationRequest() - { - RestoreRequest = new IaasVmRestoreRequest() - { - RecoveryPointId = "348916168024334", - RecoveryType = RecoveryType.RestoreDisks, - SourceResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1", - Region = "southeastasia", - CreateNewCloudService = true, - OriginalStorageAccountOption = false, - EncryptionDetails = new EncryptionDetails() - { - EncryptionEnabled = false, - }, - IdentityInfo = new IdentityInfo() - { - IsSystemAssignedIdentity = false, - ManagedIdentityResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/asmaskarRG1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/asmaskartestmsi", - }, - IdentityBasedRestoreDetails = new IdentityBasedRestoreDetails() - { - TargetStorageAccountId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testingRg/providers/Microsoft.Storage/storageAccounts/testAccount", - }, - }, - }; - ValidateOperationsResponse result = await resourceGroupResource.ValidateOperationAsync(vaultName, validateOperationRequest); - - Console.WriteLine($"Succeeded: {result}"); - } - - // Trigger Validate Operation - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task TriggerValidateOperation_TriggerValidateOperation() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/TriggerValidateOperation_RestoreDisk.json - // this example is just showing the usage of "ValidateOperation_Trigger" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "testRG"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // invoke the operation - string vaultName = "testVault"; - ValidateOperationRequest validateOperationRequest = new ValidateIaasVmRestoreOperationRequest() - { - RestoreRequest = new IaasVmRestoreRequest() - { - RecoveryPointId = "348916168024334", - RecoveryType = RecoveryType.RestoreDisks, - SourceResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1", - StorageAccountId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testingRg/providers/Microsoft.Storage/storageAccounts/testAccount", - Region = "southeastasia", - CreateNewCloudService = true, - OriginalStorageAccountOption = false, - EncryptionDetails = new EncryptionDetails() - { - EncryptionEnabled = false, - }, - IdentityInfo = new IdentityInfo() - { - IsSystemAssignedIdentity = false, - ManagedIdentityResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/asmaskarRG1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/asmaskartestmsi", - }, - }, - }; - await resourceGroupResource.TriggerValidateOperationAsync(WaitUntil.Completed, vaultName, validateOperationRequest); - - Console.WriteLine($"Succeeded"); - } - - // Get Operation Results of Validate Operation - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetValidateOperationResult_GetOperationResultsOfValidateOperation() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/ValidateOperationResults.json - // this example is just showing the usage of "ValidateOperationResults_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "SwaggerTestRg"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // invoke the operation - string vaultName = "NetSDKTestRsVault"; - string operationId = "00000000-0000-0000-0000-000000000000"; - ValidateOperationsResponse result = await resourceGroupResource.GetValidateOperationResultAsync(vaultName, operationId); - - Console.WriteLine($"Succeeded: {result}"); - } - - // Get Operation Status of Validate Operation - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetValidateOperationStatus_GetOperationStatusOfValidateOperation() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/ValidateOperationStatus.json - // this example is just showing the usage of "ValidateOperationStatuses_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "SwaggerTestRg"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // invoke the operation - string vaultName = "NetSDKTestRsVault"; - string operationId = "00000000-0000-0000-0000-000000000000"; - OperationStatus result = await resourceGroupResource.GetValidateOperationStatusAsync(vaultName, operationId); - - Console.WriteLine($"Succeeded: {result}"); - } - - // Azure Vm Discovery Operation Result - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetProtectionContainerRefreshOperationResult_AzureVmDiscoveryOperationResult() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/RefreshContainers_OperationResults.json - // this example is just showing the usage of "ProtectionContainerRefreshOperationResults_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "SwaggerTestRg"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // invoke the operation - string vaultName = "NetSDKTestRsVault"; - string fabricName = "Azure"; - string operationId = "00000000-0000-0000-0000-000000000000"; - await resourceGroupResource.GetProtectionContainerRefreshOperationResultAsync(vaultName, fabricName, operationId); - - Console.WriteLine($"Succeeded"); - } - - // List protectable items with backupManagementType filter as AzureStorage - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetProtectableContainers_ListProtectableItemsWithBackupManagementTypeFilterAsAzureStorage() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureStorage/ProtectableContainers_List.json - // this example is just showing the usage of "ProtectableContainers_List" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "testRg"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // invoke the operation and iterate over the result - string vaultName = "testvault"; - string fabricName = "Azure"; - string filter = "backupManagementType eq 'AzureStorage' and workloadType eq 'AzureFileShare'"; - await foreach (ProtectableContainerResource item in resourceGroupResource.GetProtectableContainersAsync(vaultName, fabricName, filter: filter)) - { - Console.WriteLine($"Succeeded: {item}"); - } - - Console.WriteLine($"Succeeded"); - } - - // Get Result for Protected Item Delete Operation - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetBackupOperationResult_GetResultForProtectedItemDeleteOperation() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/ProtectedItem_Delete_OperationResult.json - // this example is just showing the usage of "BackupOperationResults_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "PythonSDKBackupTestRg"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // invoke the operation - string vaultName = "PySDKBackupTestRsVault"; - string operationId = "00000000-0000-0000-0000-000000000000"; - await resourceGroupResource.GetBackupOperationResultAsync(vaultName, operationId); - - Console.WriteLine($"Succeeded"); - } - - // Get Protected Item Delete Operation Status - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetBackupOperationStatus_GetProtectedItemDeleteOperationStatus() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/ProtectedItem_Delete_OperationStatus.json - // this example is just showing the usage of "BackupOperationStatuses_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "PythonSDKBackupTestRg"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // invoke the operation - string vaultName = "PySDKBackupTestRsVault"; - string operationId = "00000000-0000-0000-0000-000000000000"; - OperationStatus result = await resourceGroupResource.GetBackupOperationStatusAsync(vaultName, operationId); - - Console.WriteLine($"Succeeded: {result}"); - } - - // List protectable items with backupManagementType filter as AzureIaasVm - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetBackupProtectableItems_ListProtectableItemsWithBackupManagementTypeFilterAsAzureIaasVm() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/BackupProtectableItems_List.json - // this example is just showing the usage of "BackupProtectableItems_List" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "SwaggerTestRg"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // invoke the operation and iterate over the result - string vaultName = "NetSDKTestRsVault"; - string filter = "backupManagementType eq 'AzureIaasVM'"; - await foreach (WorkloadProtectableItemResource item in resourceGroupResource.GetBackupProtectableItemsAsync(vaultName, filter: filter)) - { - Console.WriteLine($"Succeeded: {item}"); - } - - Console.WriteLine($"Succeeded"); - } - - // List Backup Protection Containers - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetProtectionContainerResourcesByBackupProtectionContainer_ListBackupProtectionContainers() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureStorage/ProtectionContainers_List.json - // this example is just showing the usage of "BackupProtectionContainers_List" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "testRg"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // invoke the operation and iterate over the result - string vaultName = "testVault"; - string filter = "backupManagementType eq 'AzureWorkload'"; - await foreach (ProtectionContainerResource item in resourceGroupResource.GetProtectionContainerResourcesByBackupProtectionContainerAsync(vaultName, filter: filter)) - { - // the variable item is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - ProtectionContainerResourceData resourceData = item.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - Console.WriteLine($"Succeeded"); - } - - // List Backup Protection Containers - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetSoftDeletedProtectionContainers_ListBackupProtectionContainers() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureStorage/SoftDeletedContainers_List.json - // this example is just showing the usage of "DeletedProtectionContainers_List" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "testRg"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // invoke the operation and iterate over the result - string vaultName = "testVault"; - string filter = "backupManagementType eq 'AzureWorkload'"; - await foreach (ProtectionContainerResource item in resourceGroupResource.GetSoftDeletedProtectionContainersAsync(vaultName, filter: filter)) - { - // the variable item is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - ProtectionContainerResourceData resourceData = item.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - Console.WriteLine($"Succeeded"); - } - - // Get Vault Security Pin - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetSecurityPIN_GetVaultSecurityPin() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/BackupSecurityPin_Get.json - // this example is just showing the usage of "SecurityPINs_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "SwaggerTestRg"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // invoke the operation - string vaultName = "SwaggerTest"; - TokenInformation result = await resourceGroupResource.GetSecurityPINAsync(vaultName); - - Console.WriteLine($"Succeeded: {result}"); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ResourceGuardProxyBaseResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ResourceGuardProxyBaseResource.cs deleted file mode 100644 index b86211023a589..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ResourceGuardProxyBaseResource.cs +++ /dev/null @@ -1,157 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Identity; -using Azure.ResourceManager; -using Azure.ResourceManager.RecoveryServicesBackup; -using Azure.ResourceManager.RecoveryServicesBackup.Models; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Samples -{ - public partial class Sample_ResourceGuardProxyBaseResource - { - // Get ResourceGuardProxy - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetResourceGuardProxy() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/ResourceGuardProxyCRUD/GetResourceGuardProxy.json - // this example is just showing the usage of "ResourceGuardProxy_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGuardProxyBaseResource created on azure - // for more information of creating ResourceGuardProxyBaseResource, please refer to the document of ResourceGuardProxyBaseResource - string subscriptionId = "0b352192-dcac-4cc7-992e-a96190ccc68c"; - string resourceGroupName = "SampleResourceGroup"; - string vaultName = "sampleVault"; - string resourceGuardProxyName = "swaggerExample"; - ResourceIdentifier resourceGuardProxyBaseResourceId = ResourceGuardProxyBaseResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, resourceGuardProxyName); - ResourceGuardProxyBaseResource resourceGuardProxyBaseResource = client.GetResourceGuardProxyBaseResource(resourceGuardProxyBaseResourceId); - - // invoke the operation - ResourceGuardProxyBaseResource result = await resourceGuardProxyBaseResource.GetAsync(); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - ResourceGuardProxyBaseResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // Create ResourceGuardProxy - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_CreateResourceGuardProxy() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/ResourceGuardProxyCRUD/PutResourceGuardProxy.json - // this example is just showing the usage of "ResourceGuardProxy_Put" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGuardProxyBaseResource created on azure - // for more information of creating ResourceGuardProxyBaseResource, please refer to the document of ResourceGuardProxyBaseResource - string subscriptionId = "0b352192-dcac-4cc7-992e-a96190ccc68c"; - string resourceGroupName = "SampleResourceGroup"; - string vaultName = "sampleVault"; - string resourceGuardProxyName = "swaggerExample"; - ResourceIdentifier resourceGuardProxyBaseResourceId = ResourceGuardProxyBaseResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, resourceGuardProxyName); - ResourceGuardProxyBaseResource resourceGuardProxyBaseResource = client.GetResourceGuardProxyBaseResource(resourceGuardProxyBaseResourceId); - - // invoke the operation - ResourceGuardProxyBaseResourceData data = new ResourceGuardProxyBaseResourceData(new AzureLocation("placeholder")) - { - Properties = new ResourceGuardProxyBase() - { - ResourceGuardResourceId = "/subscriptions/c999d45b-944f-418c-a0d8-c3fcfd1802c8/resourceGroups/vaultguardRGNew/providers/Microsoft.DataProtection/resourceGuards/VaultGuardTestNew", - }, - }; - ArmOperation lro = await resourceGuardProxyBaseResource.UpdateAsync(WaitUntil.Completed, data); - ResourceGuardProxyBaseResource result = lro.Value; - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - ResourceGuardProxyBaseResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // Delete ResourceGuardProxy - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Delete_DeleteResourceGuardProxy() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/ResourceGuardProxyCRUD/DeleteResourceGuardProxy.json - // this example is just showing the usage of "ResourceGuardProxy_Delete" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGuardProxyBaseResource created on azure - // for more information of creating ResourceGuardProxyBaseResource, please refer to the document of ResourceGuardProxyBaseResource - string subscriptionId = "0b352192-dcac-4cc7-992e-a96190ccc68c"; - string resourceGroupName = "SampleResourceGroup"; - string vaultName = "sampleVault"; - string resourceGuardProxyName = "swaggerExample"; - ResourceIdentifier resourceGuardProxyBaseResourceId = ResourceGuardProxyBaseResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, resourceGuardProxyName); - ResourceGuardProxyBaseResource resourceGuardProxyBaseResource = client.GetResourceGuardProxyBaseResource(resourceGuardProxyBaseResourceId); - - // invoke the operation - await resourceGuardProxyBaseResource.DeleteAsync(WaitUntil.Completed); - - Console.WriteLine($"Succeeded"); - } - - // UnlockDelete ResourceGuardProxy - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task UnlockDelete_UnlockDeleteResourceGuardProxy() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/ResourceGuardProxyCRUD/UnlockDeleteResourceGuardProxy.json - // this example is just showing the usage of "ResourceGuardProxy_UnlockDelete" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGuardProxyBaseResource created on azure - // for more information of creating ResourceGuardProxyBaseResource, please refer to the document of ResourceGuardProxyBaseResource - string subscriptionId = "0b352192-dcac-4cc7-992e-a96190ccc68c"; - string resourceGroupName = "SampleResourceGroup"; - string vaultName = "sampleVault"; - string resourceGuardProxyName = "swaggerExample"; - ResourceIdentifier resourceGuardProxyBaseResourceId = ResourceGuardProxyBaseResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, resourceGuardProxyName); - ResourceGuardProxyBaseResource resourceGuardProxyBaseResource = client.GetResourceGuardProxyBaseResource(resourceGuardProxyBaseResourceId); - - // invoke the operation - UnlockDeleteContent content = new UnlockDeleteContent() - { - ResourceGuardOperationRequests = -{ -"/subscriptions/c999d45b-944f-418c-a0d8-c3fcfd1802c8/resourceGroups/vaultguardRGNew/providers/Microsoft.DataProtection/resourceGuards/VaultGuardTestNew/deleteProtectedItemRequests/default" -}, - ResourceToBeDeleted = "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/gaallarg/providers/Microsoft.RecoveryServices/vaults/MercuryCrrVault/backupFabrics/Azure/protectionContainers/VMAppContainer;compute;crrtestrg;crrtestvm/protectedItems/SQLDataBase;mssqlserver;testdb", - }; - UnlockDeleteResponse result = await resourceGuardProxyBaseResource.UnlockDeleteAsync(content); - - Console.WriteLine($"Succeeded: {result}"); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ResourceGuardProxyBaseResourceCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ResourceGuardProxyBaseResourceCollection.cs deleted file mode 100644 index 27b2971e4ab65..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ResourceGuardProxyBaseResourceCollection.cs +++ /dev/null @@ -1,168 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Identity; -using Azure.ResourceManager; -using Azure.ResourceManager.RecoveryServicesBackup; -using Azure.ResourceManager.RecoveryServicesBackup.Models; -using Azure.ResourceManager.Resources; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Samples -{ - public partial class Sample_ResourceGuardProxyBaseResourceCollection - { - // Get VaultGuardProxies - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_GetVaultGuardProxies() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/ResourceGuardProxyCRUD/ListResourceGuardProxy.json - // this example is just showing the usage of "ResourceGuardProxies_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "0b352192-dcac-4cc7-992e-a96190ccc68c"; - string resourceGroupName = "SampleResourceGroup"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this ResourceGuardProxyBaseResource - string vaultName = "sampleVault"; - ResourceGuardProxyBaseResourceCollection collection = resourceGroupResource.GetResourceGuardProxyBaseResources(vaultName); - - // invoke the operation and iterate over the result - await foreach (ResourceGuardProxyBaseResource item in collection.GetAllAsync()) - { - // the variable item is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - ResourceGuardProxyBaseResourceData resourceData = item.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - Console.WriteLine($"Succeeded"); - } - - // Get ResourceGuardProxy - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetResourceGuardProxy() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/ResourceGuardProxyCRUD/GetResourceGuardProxy.json - // this example is just showing the usage of "ResourceGuardProxy_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "0b352192-dcac-4cc7-992e-a96190ccc68c"; - string resourceGroupName = "SampleResourceGroup"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this ResourceGuardProxyBaseResource - string vaultName = "sampleVault"; - ResourceGuardProxyBaseResourceCollection collection = resourceGroupResource.GetResourceGuardProxyBaseResources(vaultName); - - // invoke the operation - string resourceGuardProxyName = "swaggerExample"; - ResourceGuardProxyBaseResource result = await collection.GetAsync(resourceGuardProxyName); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - ResourceGuardProxyBaseResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // Get ResourceGuardProxy - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Exists_GetResourceGuardProxy() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/ResourceGuardProxyCRUD/GetResourceGuardProxy.json - // this example is just showing the usage of "ResourceGuardProxy_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "0b352192-dcac-4cc7-992e-a96190ccc68c"; - string resourceGroupName = "SampleResourceGroup"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this ResourceGuardProxyBaseResource - string vaultName = "sampleVault"; - ResourceGuardProxyBaseResourceCollection collection = resourceGroupResource.GetResourceGuardProxyBaseResources(vaultName); - - // invoke the operation - string resourceGuardProxyName = "swaggerExample"; - bool result = await collection.ExistsAsync(resourceGuardProxyName); - - Console.WriteLine($"Succeeded: {result}"); - } - - // Create ResourceGuardProxy - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task CreateOrUpdate_CreateResourceGuardProxy() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/ResourceGuardProxyCRUD/PutResourceGuardProxy.json - // this example is just showing the usage of "ResourceGuardProxy_Put" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "0b352192-dcac-4cc7-992e-a96190ccc68c"; - string resourceGroupName = "SampleResourceGroup"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this ResourceGuardProxyBaseResource - string vaultName = "sampleVault"; - ResourceGuardProxyBaseResourceCollection collection = resourceGroupResource.GetResourceGuardProxyBaseResources(vaultName); - - // invoke the operation - string resourceGuardProxyName = "swaggerExample"; - ResourceGuardProxyBaseResourceData data = new ResourceGuardProxyBaseResourceData(new AzureLocation("placeholder")) - { - Properties = new ResourceGuardProxyBase() - { - ResourceGuardResourceId = "/subscriptions/c999d45b-944f-418c-a0d8-c3fcfd1802c8/resourceGroups/vaultguardRGNew/providers/Microsoft.DataProtection/resourceGuards/VaultGuardTestNew", - }, - }; - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, resourceGuardProxyName, data); - ResourceGuardProxyBaseResource result = lro.Value; - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - ResourceGuardProxyBaseResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs deleted file mode 100644 index 9a82daad99360..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading.Tasks; -using Azure.Core; -using Azure.Identity; -using Azure.ResourceManager; -using Azure.ResourceManager.RecoveryServicesBackup; -using Azure.ResourceManager.RecoveryServicesBackup.Models; -using Azure.ResourceManager.Resources; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Samples -{ - public partial class Sample_SubscriptionResourceExtensions - { - // Get Azure Virtual Machine Backup Status - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetBackupStatus_GetAzureVirtualMachineBackupStatus() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/GetBackupStatus.json - // this example is just showing the usage of "BackupStatus_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this SubscriptionResource created on azure - // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId); - SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId); - - // invoke the operation - string azureRegion = "southeastasia"; - BackupStatusContent content = new BackupStatusContent() - { - ResourceType = DataSourceType.Vm, - ResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Compute/VirtualMachines/testVm", - }; - BackupStatusResponse result = await subscriptionResource.GetBackupStatusAsync(azureRegion, content); - - Console.WriteLine($"Succeeded: {result}"); - } - - // Check Azure Vm Backup Feature Support - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task ValidateFeatureSupport_CheckAzureVmBackupFeatureSupport() - { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/BackupFeature_Validate.json - // this example is just showing the usage of "FeatureSupport_Validate" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this SubscriptionResource created on azure - // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId); - SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId); - - // invoke the operation - string azureRegion = "southeastasia"; - FeatureSupportContent content = new AzureVmResourceFeatureSupportRequest() - { - VmSize = "Basic_A0", - VmSku = "Premium", - }; - AzureVmResourceFeatureSupportResponse result = await subscriptionResource.ValidateFeatureSupportAsync(azureRegion, content); - - Console.WriteLine($"Succeeded: {result}"); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Azure.ResourceManager.RecoveryServicesBackup.csproj b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Azure.ResourceManager.RecoveryServicesBackup.csproj index 6321807987372..e643950e479b1 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Azure.ResourceManager.RecoveryServicesBackup.csproj +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Azure.ResourceManager.RecoveryServicesBackup.csproj @@ -1,6 +1,6 @@ - 1.0.0-beta.2 + 1.0.0 Azure.ResourceManager.RecoveryServicesBackup Microsoft Azure Resource Manager client SDK for Azure resource provider Microsoft.RecoveryServices Backup. azure;management;arm;resource manager;recoveryservicesbackup diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupEngineBaseResourceCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupEngineCollection.cs similarity index 65% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupEngineBaseResourceCollection.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupEngineCollection.cs index 23327a95a1c49..ec16ade39c70a 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupEngineBaseResourceCollection.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupEngineCollection.cs @@ -20,33 +20,33 @@ namespace Azure.ResourceManager.RecoveryServicesBackup { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetBackupEngineBaseResources method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetBackupEngines method from an instance of . /// - public partial class BackupEngineBaseResourceCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class BackupEngineCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _backupEngineBaseResourceBackupEnginesClientDiagnostics; - private readonly BackupEnginesRestOperations _backupEngineBaseResourceBackupEnginesRestClient; + private readonly ClientDiagnostics _backupEngineClientDiagnostics; + private readonly BackupEnginesRestOperations _backupEngineRestClient; private readonly string _vaultName; - /// Initializes a new instance of the class for mocking. - protected BackupEngineBaseResourceCollection() + /// Initializes a new instance of the class for mocking. + protected BackupEngineCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. /// The name of the recovery services vault. /// is null. /// is an empty string, and was expected to be non-empty. - internal BackupEngineBaseResourceCollection(ArmClient client, ResourceIdentifier id, string vaultName) : base(client, id) + internal BackupEngineCollection(ArmClient client, ResourceIdentifier id, string vaultName) : base(client, id) { _vaultName = vaultName; - _backupEngineBaseResourceBackupEnginesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", BackupEngineBaseResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(BackupEngineBaseResource.ResourceType, out string backupEngineBaseResourceBackupEnginesApiVersion); - _backupEngineBaseResourceBackupEnginesRestClient = new BackupEnginesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, backupEngineBaseResourceBackupEnginesApiVersion); + _backupEngineClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", BackupEngineResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(BackupEngineResource.ResourceType, out string backupEngineApiVersion); + _backupEngineRestClient = new BackupEnginesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, backupEngineApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -77,18 +77,18 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string backupEngineName, string filter = null, string skipToken = null, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string backupEngineName, string filter = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(backupEngineName, nameof(backupEngineName)); - using var scope = _backupEngineBaseResourceBackupEnginesClientDiagnostics.CreateScope("BackupEngineBaseResourceCollection.Get"); + using var scope = _backupEngineClientDiagnostics.CreateScope("BackupEngineCollection.Get"); scope.Start(); try { - var response = await _backupEngineBaseResourceBackupEnginesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, backupEngineName, filter, skipToken, cancellationToken).ConfigureAwait(false); + var response = await _backupEngineRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, backupEngineName, filter, skipToken, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new BackupEngineBaseResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new BackupEngineResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -116,18 +116,18 @@ public virtual async Task> GetAsync(string ba /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string backupEngineName, string filter = null, string skipToken = null, CancellationToken cancellationToken = default) + public virtual Response Get(string backupEngineName, string filter = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(backupEngineName, nameof(backupEngineName)); - using var scope = _backupEngineBaseResourceBackupEnginesClientDiagnostics.CreateScope("BackupEngineBaseResourceCollection.Get"); + using var scope = _backupEngineClientDiagnostics.CreateScope("BackupEngineCollection.Get"); scope.Start(); try { - var response = _backupEngineBaseResourceBackupEnginesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, backupEngineName, filter, skipToken, cancellationToken); + var response = _backupEngineRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, backupEngineName, filter, skipToken, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new BackupEngineBaseResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new BackupEngineResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -152,12 +152,12 @@ public virtual Response Get(string backupEngineName, s /// OData filter options. /// skipToken Filter. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(string filter = null, string skipToken = null, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string filter = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _backupEngineBaseResourceBackupEnginesRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, filter, skipToken); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _backupEngineBaseResourceBackupEnginesRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, _vaultName, filter, skipToken); - return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new BackupEngineBaseResource(Client, BackupEngineBaseResourceData.DeserializeBackupEngineBaseResourceData(e)), _backupEngineBaseResourceBackupEnginesClientDiagnostics, Pipeline, "BackupEngineBaseResourceCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _backupEngineRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, filter, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _backupEngineRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, _vaultName, filter, skipToken); + return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new BackupEngineResource(Client, BackupEngineData.DeserializeBackupEngineData(e)), _backupEngineClientDiagnostics, Pipeline, "BackupEngineCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -176,12 +176,12 @@ public virtual AsyncPageable GetAllAsync(string filter /// OData filter options. /// skipToken Filter. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(string filter = null, string skipToken = null, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string filter = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _backupEngineBaseResourceBackupEnginesRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, filter, skipToken); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _backupEngineBaseResourceBackupEnginesRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, _vaultName, filter, skipToken); - return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new BackupEngineBaseResource(Client, BackupEngineBaseResourceData.DeserializeBackupEngineBaseResourceData(e)), _backupEngineBaseResourceBackupEnginesClientDiagnostics, Pipeline, "BackupEngineBaseResourceCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _backupEngineRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, filter, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _backupEngineRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, _vaultName, filter, skipToken); + return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new BackupEngineResource(Client, BackupEngineData.DeserializeBackupEngineData(e)), _backupEngineClientDiagnostics, Pipeline, "BackupEngineCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -207,11 +207,11 @@ public virtual async Task> ExistsAsync(string backupEngineName, s { Argument.AssertNotNullOrEmpty(backupEngineName, nameof(backupEngineName)); - using var scope = _backupEngineBaseResourceBackupEnginesClientDiagnostics.CreateScope("BackupEngineBaseResourceCollection.Exists"); + using var scope = _backupEngineClientDiagnostics.CreateScope("BackupEngineCollection.Exists"); scope.Start(); try { - var response = await _backupEngineBaseResourceBackupEnginesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, backupEngineName, filter, skipToken, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _backupEngineRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, backupEngineName, filter, skipToken, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -244,11 +244,11 @@ public virtual Response Exists(string backupEngineName, string filter = nu { Argument.AssertNotNullOrEmpty(backupEngineName, nameof(backupEngineName)); - using var scope = _backupEngineBaseResourceBackupEnginesClientDiagnostics.CreateScope("BackupEngineBaseResourceCollection.Exists"); + using var scope = _backupEngineClientDiagnostics.CreateScope("BackupEngineCollection.Exists"); scope.Start(); try { - var response = _backupEngineBaseResourceBackupEnginesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, backupEngineName, filter, skipToken, cancellationToken: cancellationToken); + var response = _backupEngineRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, backupEngineName, filter, skipToken, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -258,7 +258,7 @@ public virtual Response Exists(string backupEngineName, string filter = nu } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -268,7 +268,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupEngineData.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupEngineData.cs new file mode 100644 index 0000000000000..cd63209947e69 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupEngineData.cs @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure; +using Azure.Core; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.RecoveryServicesBackup.Models; + +namespace Azure.ResourceManager.RecoveryServicesBackup +{ + /// A class representing the BackupEngine data model. + public partial class BackupEngineData : TrackedResourceData + { + /// Initializes a new instance of BackupEngineData. + /// The location. + public BackupEngineData(AzureLocation location) : base(location) + { + } + + /// Initializes a new instance of BackupEngineData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// + /// BackupEngineBaseResource properties + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + /// Optional ETag. + internal BackupEngineData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, BackupGenericEngine properties, ETag? eTag) : base(id, name, resourceType, systemData, tags, location) + { + Properties = properties; + ETag = eTag; + } + + /// + /// BackupEngineBaseResource properties + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + public BackupGenericEngine Properties { get; set; } + /// Optional ETag. + public ETag? ETag { get; set; } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupEngineBaseResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupEngineResource.cs similarity index 66% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupEngineBaseResource.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupEngineResource.cs index 742a2d114b0da..dd5a4c96ef9a4 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupEngineBaseResource.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupEngineResource.cs @@ -18,46 +18,46 @@ namespace Azure.ResourceManager.RecoveryServicesBackup { /// - /// A Class representing a BackupEngineBaseResource along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetBackupEngineBaseResource method. - /// Otherwise you can get one from its parent resource using the GetBackupEngineBaseResource method. + /// A Class representing a BackupEngine along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetBackupEngineResource method. + /// Otherwise you can get one from its parent resource using the GetBackupEngine method. /// - public partial class BackupEngineBaseResource : ArmResource + public partial class BackupEngineResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string vaultName, string backupEngineName) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupEngines/{backupEngineName}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _backupEngineBaseResourceBackupEnginesClientDiagnostics; - private readonly BackupEnginesRestOperations _backupEngineBaseResourceBackupEnginesRestClient; - private readonly BackupEngineBaseResourceData _data; + private readonly ClientDiagnostics _backupEngineClientDiagnostics; + private readonly BackupEnginesRestOperations _backupEngineRestClient; + private readonly BackupEngineData _data; - /// Initializes a new instance of the class for mocking. - protected BackupEngineBaseResource() + /// Initializes a new instance of the class for mocking. + protected BackupEngineResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal BackupEngineBaseResource(ArmClient client, BackupEngineBaseResourceData data) : this(client, data.Id) + internal BackupEngineResource(ArmClient client, BackupEngineData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal BackupEngineBaseResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal BackupEngineResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _backupEngineBaseResourceBackupEnginesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string backupEngineBaseResourceBackupEnginesApiVersion); - _backupEngineBaseResourceBackupEnginesRestClient = new BackupEnginesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, backupEngineBaseResourceBackupEnginesApiVersion); + _backupEngineClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string backupEngineApiVersion); + _backupEngineRestClient = new BackupEnginesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, backupEngineApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -71,7 +71,7 @@ internal BackupEngineBaseResource(ArmClient client, ResourceIdentifier id) : bas /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual BackupEngineBaseResourceData Data + public virtual BackupEngineData Data { get { @@ -103,16 +103,16 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// OData filter options. /// skipToken Filter. /// The cancellation token to use. - public virtual async Task> GetAsync(string filter = null, string skipToken = null, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string filter = null, string skipToken = null, CancellationToken cancellationToken = default) { - using var scope = _backupEngineBaseResourceBackupEnginesClientDiagnostics.CreateScope("BackupEngineBaseResource.Get"); + using var scope = _backupEngineClientDiagnostics.CreateScope("BackupEngineResource.Get"); scope.Start(); try { - var response = await _backupEngineBaseResourceBackupEnginesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, filter, skipToken, cancellationToken).ConfigureAwait(false); + var response = await _backupEngineRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, filter, skipToken, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new BackupEngineBaseResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new BackupEngineResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -137,16 +137,16 @@ public virtual async Task> GetAsync(string fi /// OData filter options. /// skipToken Filter. /// The cancellation token to use. - public virtual Response Get(string filter = null, string skipToken = null, CancellationToken cancellationToken = default) + public virtual Response Get(string filter = null, string skipToken = null, CancellationToken cancellationToken = default) { - using var scope = _backupEngineBaseResourceBackupEnginesClientDiagnostics.CreateScope("BackupEngineBaseResource.Get"); + using var scope = _backupEngineClientDiagnostics.CreateScope("BackupEngineResource.Get"); scope.Start(); try { - var response = _backupEngineBaseResourceBackupEnginesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, filter, skipToken, cancellationToken); + var response = _backupEngineRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, filter, skipToken, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new BackupEngineBaseResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new BackupEngineResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/JobResourceCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupJobCollection.cs similarity index 64% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/JobResourceCollection.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupJobCollection.cs index cd9ad1257a50b..81e99566d1cf2 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/JobResourceCollection.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupJobCollection.cs @@ -20,38 +20,38 @@ namespace Azure.ResourceManager.RecoveryServicesBackup { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetJobResources method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetBackupJobs method from an instance of . /// - public partial class JobResourceCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class BackupJobCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _jobResourceJobDetailsClientDiagnostics; - private readonly JobDetailsRestOperations _jobResourceJobDetailsRestClient; - private readonly ClientDiagnostics _jobResourceBackupJobsClientDiagnostics; - private readonly BackupJobsRestOperations _jobResourceBackupJobsRestClient; + private readonly ClientDiagnostics _backupJobJobDetailsClientDiagnostics; + private readonly JobDetailsRestOperations _backupJobJobDetailsRestClient; + private readonly ClientDiagnostics _backupJobClientDiagnostics; + private readonly BackupJobsRestOperations _backupJobRestClient; private readonly string _vaultName; - /// Initializes a new instance of the class for mocking. - protected JobResourceCollection() + /// Initializes a new instance of the class for mocking. + protected BackupJobCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. /// The name of the recovery services vault. /// is null. /// is an empty string, and was expected to be non-empty. - internal JobResourceCollection(ArmClient client, ResourceIdentifier id, string vaultName) : base(client, id) + internal BackupJobCollection(ArmClient client, ResourceIdentifier id, string vaultName) : base(client, id) { _vaultName = vaultName; - _jobResourceJobDetailsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", JobResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(JobResource.ResourceType, out string jobResourceJobDetailsApiVersion); - _jobResourceJobDetailsRestClient = new JobDetailsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, jobResourceJobDetailsApiVersion); - _jobResourceBackupJobsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", JobResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(JobResource.ResourceType, out string jobResourceBackupJobsApiVersion); - _jobResourceBackupJobsRestClient = new BackupJobsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, jobResourceBackupJobsApiVersion); + _backupJobJobDetailsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", BackupJobResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(BackupJobResource.ResourceType, out string backupJobJobDetailsApiVersion); + _backupJobJobDetailsRestClient = new JobDetailsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, backupJobJobDetailsApiVersion); + _backupJobClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", BackupJobResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(BackupJobResource.ResourceType, out string backupJobApiVersion); + _backupJobRestClient = new BackupJobsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, backupJobApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -80,18 +80,18 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string jobName, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string jobName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(jobName, nameof(jobName)); - using var scope = _jobResourceJobDetailsClientDiagnostics.CreateScope("JobResourceCollection.Get"); + using var scope = _backupJobJobDetailsClientDiagnostics.CreateScope("BackupJobCollection.Get"); scope.Start(); try { - var response = await _jobResourceJobDetailsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, jobName, cancellationToken).ConfigureAwait(false); + var response = await _backupJobJobDetailsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, jobName, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new JobResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new BackupJobResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -117,18 +117,18 @@ public virtual async Task> GetAsync(string jobName, Cancel /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string jobName, CancellationToken cancellationToken = default) + public virtual Response Get(string jobName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(jobName, nameof(jobName)); - using var scope = _jobResourceJobDetailsClientDiagnostics.CreateScope("JobResourceCollection.Get"); + using var scope = _backupJobJobDetailsClientDiagnostics.CreateScope("BackupJobCollection.Get"); scope.Start(); try { - var response = _jobResourceJobDetailsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, jobName, cancellationToken); + var response = _backupJobJobDetailsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, jobName, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new JobResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new BackupJobResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -153,12 +153,12 @@ public virtual Response Get(string jobName, CancellationToken cance /// OData filter options. /// skipToken Filter. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(string filter = null, string skipToken = null, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string filter = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _jobResourceBackupJobsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, filter, skipToken); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _jobResourceBackupJobsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, _vaultName, filter, skipToken); - return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new JobResource(Client, JobResourceData.DeserializeJobResourceData(e)), _jobResourceBackupJobsClientDiagnostics, Pipeline, "JobResourceCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _backupJobRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, filter, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _backupJobRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, _vaultName, filter, skipToken); + return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new BackupJobResource(Client, BackupJobData.DeserializeBackupJobData(e)), _backupJobClientDiagnostics, Pipeline, "BackupJobCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -177,12 +177,12 @@ public virtual AsyncPageable GetAllAsync(string filter = null, stri /// OData filter options. /// skipToken Filter. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(string filter = null, string skipToken = null, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string filter = null, string skipToken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _jobResourceBackupJobsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, filter, skipToken); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _jobResourceBackupJobsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, _vaultName, filter, skipToken); - return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new JobResource(Client, JobResourceData.DeserializeJobResourceData(e)), _jobResourceBackupJobsClientDiagnostics, Pipeline, "JobResourceCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _backupJobRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, filter, skipToken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _backupJobRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, _vaultName, filter, skipToken); + return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new BackupJobResource(Client, BackupJobData.DeserializeBackupJobData(e)), _backupJobClientDiagnostics, Pipeline, "BackupJobCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -206,11 +206,11 @@ public virtual async Task> ExistsAsync(string jobName, Cancellati { Argument.AssertNotNullOrEmpty(jobName, nameof(jobName)); - using var scope = _jobResourceJobDetailsClientDiagnostics.CreateScope("JobResourceCollection.Exists"); + using var scope = _backupJobJobDetailsClientDiagnostics.CreateScope("BackupJobCollection.Exists"); scope.Start(); try { - var response = await _jobResourceJobDetailsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, jobName, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _backupJobJobDetailsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, jobName, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -241,11 +241,11 @@ public virtual Response Exists(string jobName, CancellationToken cancellat { Argument.AssertNotNullOrEmpty(jobName, nameof(jobName)); - using var scope = _jobResourceJobDetailsClientDiagnostics.CreateScope("JobResourceCollection.Exists"); + using var scope = _backupJobJobDetailsClientDiagnostics.CreateScope("BackupJobCollection.Exists"); scope.Start(); try { - var response = _jobResourceJobDetailsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, jobName, cancellationToken: cancellationToken); + var response = _backupJobJobDetailsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, jobName, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -255,7 +255,7 @@ public virtual Response Exists(string jobName, CancellationToken cancellat } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -265,7 +265,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupEngineBaseResourceData.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupJobData.cs similarity index 50% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupEngineBaseResourceData.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupJobData.cs index f81144fb69995..5341cef6aa036 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupEngineBaseResourceData.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupJobData.cs @@ -13,16 +13,16 @@ namespace Azure.ResourceManager.RecoveryServicesBackup { - /// A class representing the BackupEngineBaseResource data model. - public partial class BackupEngineBaseResourceData : TrackedResourceData + /// A class representing the BackupJob data model. + public partial class BackupJobData : TrackedResourceData { - /// Initializes a new instance of BackupEngineBaseResourceData. + /// Initializes a new instance of BackupJobData. /// The location. - public BackupEngineBaseResourceData(AzureLocation location) : base(location) + public BackupJobData(AzureLocation location) : base(location) { } - /// Initializes a new instance of BackupEngineBaseResourceData. + /// Initializes a new instance of BackupJobData. /// The id. /// The name. /// The resourceType. @@ -30,23 +30,23 @@ public BackupEngineBaseResourceData(AzureLocation location) : base(location) /// The tags. /// The location. /// - /// BackupEngineBaseResource properties - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . + /// JobResource properties + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , and . /// /// Optional ETag. - internal BackupEngineBaseResourceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, BackupEngineBase properties, ETag? eTag) : base(id, name, resourceType, systemData, tags, location) + internal BackupJobData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, BackupGenericJob properties, ETag? eTag) : base(id, name, resourceType, systemData, tags, location) { Properties = properties; ETag = eTag; } /// - /// BackupEngineBaseResource properties - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . + /// JobResource properties + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , and . /// - public BackupEngineBase Properties { get; set; } + public BackupGenericJob Properties { get; set; } /// Optional ETag. public ETag? ETag { get; set; } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/JobResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupJobResource.cs similarity index 56% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/JobResource.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupJobResource.cs index e4e27e2a437ad..cd445587cb755 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/JobResource.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupJobResource.cs @@ -18,54 +18,50 @@ namespace Azure.ResourceManager.RecoveryServicesBackup { /// - /// A Class representing a JobResource along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetJobResource method. - /// Otherwise you can get one from its parent resource using the GetJobResource method. + /// A Class representing a BackupJob along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetBackupJobResource method. + /// Otherwise you can get one from its parent resource using the GetBackupJob method. /// - public partial class JobResource : ArmResource + public partial class BackupJobResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string vaultName, string jobName) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobs/{jobName}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _jobResourceJobDetailsClientDiagnostics; - private readonly JobDetailsRestOperations _jobResourceJobDetailsRestClient; + private readonly ClientDiagnostics _backupJobJobDetailsClientDiagnostics; + private readonly JobDetailsRestOperations _backupJobJobDetailsRestClient; private readonly ClientDiagnostics _jobCancellationsClientDiagnostics; private readonly JobCancellationsRestOperations _jobCancellationsRestClient; - private readonly ClientDiagnostics _jobOperationResultsClientDiagnostics; - private readonly JobOperationResultsRestOperations _jobOperationResultsRestClient; - private readonly JobResourceData _data; + private readonly BackupJobData _data; - /// Initializes a new instance of the class for mocking. - protected JobResource() + /// Initializes a new instance of the class for mocking. + protected BackupJobResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal JobResource(ArmClient client, JobResourceData data) : this(client, data.Id) + internal BackupJobResource(ArmClient client, BackupJobData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal JobResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal BackupJobResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _jobResourceJobDetailsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string jobResourceJobDetailsApiVersion); - _jobResourceJobDetailsRestClient = new JobDetailsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, jobResourceJobDetailsApiVersion); + _backupJobJobDetailsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string backupJobJobDetailsApiVersion); + _backupJobJobDetailsRestClient = new JobDetailsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, backupJobJobDetailsApiVersion); _jobCancellationsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ProviderConstants.DefaultProviderNamespace, Diagnostics); _jobCancellationsRestClient = new JobCancellationsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); - _jobOperationResultsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ProviderConstants.DefaultProviderNamespace, Diagnostics); - _jobOperationResultsRestClient = new JobOperationResultsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); #if DEBUG ValidateResourceId(Id); #endif @@ -79,7 +75,7 @@ internal JobResource(ArmClient client, ResourceIdentifier id) : base(client, id) /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual JobResourceData Data + public virtual BackupJobData Data { get { @@ -109,16 +105,16 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _jobResourceJobDetailsClientDiagnostics.CreateScope("JobResource.Get"); + using var scope = _backupJobJobDetailsClientDiagnostics.CreateScope("BackupJobResource.Get"); scope.Start(); try { - var response = await _jobResourceJobDetailsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _backupJobJobDetailsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new JobResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new BackupJobResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -141,16 +137,16 @@ public virtual async Task> GetAsync(CancellationToken canc /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _jobResourceJobDetailsClientDiagnostics.CreateScope("JobResource.Get"); + using var scope = _backupJobJobDetailsClientDiagnostics.CreateScope("BackupJobResource.Get"); scope.Start(); try { - var response = _jobResourceJobDetailsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _backupJobJobDetailsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new JobResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new BackupJobResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -176,7 +172,7 @@ public virtual Response Get(CancellationToken cancellationToken = d /// The cancellation token to use. public virtual async Task TriggerJobCancellationAsync(CancellationToken cancellationToken = default) { - using var scope = _jobCancellationsClientDiagnostics.CreateScope("JobResource.TriggerJobCancellation"); + using var scope = _jobCancellationsClientDiagnostics.CreateScope("BackupJobResource.TriggerJobCancellation"); scope.Start(); try { @@ -207,7 +203,7 @@ public virtual async Task TriggerJobCancellationAsync(CancellationToke /// The cancellation token to use. public virtual Response TriggerJobCancellation(CancellationToken cancellationToken = default) { - using var scope = _jobCancellationsClientDiagnostics.CreateScope("JobResource.TriggerJobCancellation"); + using var scope = _jobCancellationsClientDiagnostics.CreateScope("BackupJobResource.TriggerJobCancellation"); scope.Start(); try { @@ -220,75 +216,5 @@ public virtual Response TriggerJobCancellation(CancellationToken cancellationTok throw; } } - - /// - /// Fetches the result of any operation. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobs/{jobName}/operationResults/{operationId} - /// - /// - /// Operation Id - /// JobOperationResults_Get - /// - /// - /// - /// OperationID which represents the operation whose result has to be fetched. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual async Task GetJobOperationResultAsync(string operationId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(operationId, nameof(operationId)); - - using var scope = _jobOperationResultsClientDiagnostics.CreateScope("JobResource.GetJobOperationResult"); - scope.Start(); - try - { - var response = await _jobOperationResultsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, operationId, cancellationToken).ConfigureAwait(false); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Fetches the result of any operation. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobs/{jobName}/operationResults/{operationId} - /// - /// - /// Operation Id - /// JobOperationResults_Get - /// - /// - /// - /// OperationID which represents the operation whose result has to be fetched. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual Response GetJobOperationResult(string operationId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(operationId, nameof(operationId)); - - using var scope = _jobOperationResultsClientDiagnostics.CreateScope("JobResource.GetJobOperationResult"); - scope.Start(); - try - { - var response = _jobOperationResultsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, operationId, cancellationToken); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/PrivateEndpointConnectionResourceCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupPrivateEndpointConnectionCollection.cs similarity index 70% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/PrivateEndpointConnectionResourceCollection.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupPrivateEndpointConnectionCollection.cs index 74ace7e89b700..d9895b2160e1a 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/PrivateEndpointConnectionResourceCollection.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupPrivateEndpointConnectionCollection.cs @@ -18,28 +18,28 @@ namespace Azure.ResourceManager.RecoveryServicesBackup { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetPrivateEndpointConnectionResources method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetBackupPrivateEndpointConnections method from an instance of . /// - public partial class PrivateEndpointConnectionResourceCollection : ArmCollection + public partial class BackupPrivateEndpointConnectionCollection : ArmCollection { - private readonly ClientDiagnostics _privateEndpointConnectionResourcePrivateEndpointConnectionClientDiagnostics; - private readonly PrivateEndpointConnectionRestOperations _privateEndpointConnectionResourcePrivateEndpointConnectionRestClient; + private readonly ClientDiagnostics _backupPrivateEndpointConnectionPrivateEndpointConnectionClientDiagnostics; + private readonly PrivateEndpointConnectionRestOperations _backupPrivateEndpointConnectionPrivateEndpointConnectionRestClient; - /// Initializes a new instance of the class for mocking. - protected PrivateEndpointConnectionResourceCollection() + /// Initializes a new instance of the class for mocking. + protected BackupPrivateEndpointConnectionCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal PrivateEndpointConnectionResourceCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal BackupPrivateEndpointConnectionCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _privateEndpointConnectionResourcePrivateEndpointConnectionClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", PrivateEndpointConnectionResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(PrivateEndpointConnectionResource.ResourceType, out string privateEndpointConnectionResourcePrivateEndpointConnectionApiVersion); - _privateEndpointConnectionResourcePrivateEndpointConnectionRestClient = new PrivateEndpointConnectionRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, privateEndpointConnectionResourcePrivateEndpointConnectionApiVersion); + _backupPrivateEndpointConnectionPrivateEndpointConnectionClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", BackupPrivateEndpointConnectionResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(BackupPrivateEndpointConnectionResource.ResourceType, out string backupPrivateEndpointConnectionPrivateEndpointConnectionApiVersion); + _backupPrivateEndpointConnectionPrivateEndpointConnectionRestClient = new PrivateEndpointConnectionRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, backupPrivateEndpointConnectionPrivateEndpointConnectionApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -71,18 +71,18 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// or is an empty string, and was expected to be non-empty. /// , or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string vaultName, string privateEndpointConnectionName, PrivateEndpointConnectionResourceData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string vaultName, string privateEndpointConnectionName, BackupPrivateEndpointConnectionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _privateEndpointConnectionResourcePrivateEndpointConnectionClientDiagnostics.CreateScope("PrivateEndpointConnectionResourceCollection.CreateOrUpdate"); + using var scope = _backupPrivateEndpointConnectionPrivateEndpointConnectionClientDiagnostics.CreateScope("BackupPrivateEndpointConnectionCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _privateEndpointConnectionResourcePrivateEndpointConnectionRestClient.PutAsync(Id.SubscriptionId, Id.ResourceGroupName, vaultName, privateEndpointConnectionName, data, cancellationToken).ConfigureAwait(false); - var operation = new RecoveryServicesBackupArmOperation(new PrivateEndpointConnectionResourceOperationSource(Client), _privateEndpointConnectionResourcePrivateEndpointConnectionClientDiagnostics, Pipeline, _privateEndpointConnectionResourcePrivateEndpointConnectionRestClient.CreatePutRequest(Id.SubscriptionId, Id.ResourceGroupName, vaultName, privateEndpointConnectionName, data).Request, response, OperationFinalStateVia.Location); + var response = await _backupPrivateEndpointConnectionPrivateEndpointConnectionRestClient.PutAsync(Id.SubscriptionId, Id.ResourceGroupName, vaultName, privateEndpointConnectionName, data, cancellationToken).ConfigureAwait(false); + var operation = new RecoveryServicesBackupArmOperation(new BackupPrivateEndpointConnectionOperationSource(Client), _backupPrivateEndpointConnectionPrivateEndpointConnectionClientDiagnostics, Pipeline, _backupPrivateEndpointConnectionPrivateEndpointConnectionRestClient.CreatePutRequest(Id.SubscriptionId, Id.ResourceGroupName, vaultName, privateEndpointConnectionName, data).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -114,18 +114,18 @@ public virtual async Task> Creat /// The cancellation token to use. /// or is an empty string, and was expected to be non-empty. /// , or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string vaultName, string privateEndpointConnectionName, PrivateEndpointConnectionResourceData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string vaultName, string privateEndpointConnectionName, BackupPrivateEndpointConnectionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _privateEndpointConnectionResourcePrivateEndpointConnectionClientDiagnostics.CreateScope("PrivateEndpointConnectionResourceCollection.CreateOrUpdate"); + using var scope = _backupPrivateEndpointConnectionPrivateEndpointConnectionClientDiagnostics.CreateScope("BackupPrivateEndpointConnectionCollection.CreateOrUpdate"); scope.Start(); try { - var response = _privateEndpointConnectionResourcePrivateEndpointConnectionRestClient.Put(Id.SubscriptionId, Id.ResourceGroupName, vaultName, privateEndpointConnectionName, data, cancellationToken); - var operation = new RecoveryServicesBackupArmOperation(new PrivateEndpointConnectionResourceOperationSource(Client), _privateEndpointConnectionResourcePrivateEndpointConnectionClientDiagnostics, Pipeline, _privateEndpointConnectionResourcePrivateEndpointConnectionRestClient.CreatePutRequest(Id.SubscriptionId, Id.ResourceGroupName, vaultName, privateEndpointConnectionName, data).Request, response, OperationFinalStateVia.Location); + var response = _backupPrivateEndpointConnectionPrivateEndpointConnectionRestClient.Put(Id.SubscriptionId, Id.ResourceGroupName, vaultName, privateEndpointConnectionName, data, cancellationToken); + var operation = new RecoveryServicesBackupArmOperation(new BackupPrivateEndpointConnectionOperationSource(Client), _backupPrivateEndpointConnectionPrivateEndpointConnectionClientDiagnostics, Pipeline, _backupPrivateEndpointConnectionPrivateEndpointConnectionRestClient.CreatePutRequest(Id.SubscriptionId, Id.ResourceGroupName, vaultName, privateEndpointConnectionName, data).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -155,19 +155,19 @@ public virtual ArmOperation CreateOrUpdate(Wa /// The cancellation token to use. /// or is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> GetAsync(string vaultName, string privateEndpointConnectionName, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string vaultName, string privateEndpointConnectionName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); - using var scope = _privateEndpointConnectionResourcePrivateEndpointConnectionClientDiagnostics.CreateScope("PrivateEndpointConnectionResourceCollection.Get"); + using var scope = _backupPrivateEndpointConnectionPrivateEndpointConnectionClientDiagnostics.CreateScope("BackupPrivateEndpointConnectionCollection.Get"); scope.Start(); try { - var response = await _privateEndpointConnectionResourcePrivateEndpointConnectionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, vaultName, privateEndpointConnectionName, cancellationToken).ConfigureAwait(false); + var response = await _backupPrivateEndpointConnectionPrivateEndpointConnectionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, vaultName, privateEndpointConnectionName, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new PrivateEndpointConnectionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new BackupPrivateEndpointConnectionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -194,19 +194,19 @@ public virtual async Task> GetAsync( /// The cancellation token to use. /// or is an empty string, and was expected to be non-empty. /// or is null. - public virtual Response Get(string vaultName, string privateEndpointConnectionName, CancellationToken cancellationToken = default) + public virtual Response Get(string vaultName, string privateEndpointConnectionName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); - using var scope = _privateEndpointConnectionResourcePrivateEndpointConnectionClientDiagnostics.CreateScope("PrivateEndpointConnectionResourceCollection.Get"); + using var scope = _backupPrivateEndpointConnectionPrivateEndpointConnectionClientDiagnostics.CreateScope("BackupPrivateEndpointConnectionCollection.Get"); scope.Start(); try { - var response = _privateEndpointConnectionResourcePrivateEndpointConnectionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, vaultName, privateEndpointConnectionName, cancellationToken); + var response = _backupPrivateEndpointConnectionPrivateEndpointConnectionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, vaultName, privateEndpointConnectionName, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new PrivateEndpointConnectionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new BackupPrivateEndpointConnectionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -238,11 +238,11 @@ public virtual async Task> ExistsAsync(string vaultName, string p Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); - using var scope = _privateEndpointConnectionResourcePrivateEndpointConnectionClientDiagnostics.CreateScope("PrivateEndpointConnectionResourceCollection.Exists"); + using var scope = _backupPrivateEndpointConnectionPrivateEndpointConnectionClientDiagnostics.CreateScope("BackupPrivateEndpointConnectionCollection.Exists"); scope.Start(); try { - var response = await _privateEndpointConnectionResourcePrivateEndpointConnectionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, vaultName, privateEndpointConnectionName, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _backupPrivateEndpointConnectionPrivateEndpointConnectionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, vaultName, privateEndpointConnectionName, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -275,11 +275,11 @@ public virtual Response Exists(string vaultName, string privateEndpointCon Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); - using var scope = _privateEndpointConnectionResourcePrivateEndpointConnectionClientDiagnostics.CreateScope("PrivateEndpointConnectionResourceCollection.Exists"); + using var scope = _backupPrivateEndpointConnectionPrivateEndpointConnectionClientDiagnostics.CreateScope("BackupPrivateEndpointConnectionCollection.Exists"); scope.Start(); try { - var response = _privateEndpointConnectionResourcePrivateEndpointConnectionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, vaultName, privateEndpointConnectionName, cancellationToken: cancellationToken); + var response = _backupPrivateEndpointConnectionPrivateEndpointConnectionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, vaultName, privateEndpointConnectionName, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/PrivateEndpointConnectionResourceData.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupPrivateEndpointConnectionData.cs similarity index 56% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/PrivateEndpointConnectionResourceData.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupPrivateEndpointConnectionData.cs index bcd754c39e79e..258ce5827232f 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/PrivateEndpointConnectionResourceData.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupPrivateEndpointConnectionData.cs @@ -13,16 +13,16 @@ namespace Azure.ResourceManager.RecoveryServicesBackup { - /// A class representing the PrivateEndpointConnectionResource data model. - public partial class PrivateEndpointConnectionResourceData : TrackedResourceData + /// A class representing the BackupPrivateEndpointConnection data model. + public partial class BackupPrivateEndpointConnectionData : TrackedResourceData { - /// Initializes a new instance of PrivateEndpointConnectionResourceData. + /// Initializes a new instance of BackupPrivateEndpointConnectionData. /// The location. - public PrivateEndpointConnectionResourceData(AzureLocation location) : base(location) + public BackupPrivateEndpointConnectionData(AzureLocation location) : base(location) { } - /// Initializes a new instance of PrivateEndpointConnectionResourceData. + /// Initializes a new instance of BackupPrivateEndpointConnectionData. /// The id. /// The name. /// The resourceType. @@ -31,14 +31,14 @@ public PrivateEndpointConnectionResourceData(AzureLocation location) : base(loca /// The location. /// PrivateEndpointConnectionResource properties. /// Optional ETag. - internal PrivateEndpointConnectionResourceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, RecoveryServicesBackupPrivateEndpointConnection properties, ETag? eTag) : base(id, name, resourceType, systemData, tags, location) + internal BackupPrivateEndpointConnectionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, BackupPrivateEndpointConnectionProperties properties, ETag? eTag) : base(id, name, resourceType, systemData, tags, location) { Properties = properties; ETag = eTag; } /// PrivateEndpointConnectionResource properties. - public RecoveryServicesBackupPrivateEndpointConnection Properties { get; set; } + public BackupPrivateEndpointConnectionProperties Properties { get; set; } /// Optional ETag. public ETag? ETag { get; set; } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/PrivateEndpointConnectionResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupPrivateEndpointConnectionResource.cs similarity index 63% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/PrivateEndpointConnectionResource.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupPrivateEndpointConnectionResource.cs index 38915dc69fb3f..c2a958d493c28 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/PrivateEndpointConnectionResource.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupPrivateEndpointConnectionResource.cs @@ -14,56 +14,51 @@ using Azure.Core; using Azure.Core.Pipeline; using Azure.ResourceManager; -using Azure.ResourceManager.RecoveryServicesBackup.Models; using Azure.ResourceManager.Resources; namespace Azure.ResourceManager.RecoveryServicesBackup { /// - /// A Class representing a PrivateEndpointConnectionResource along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetPrivateEndpointConnectionResource method. - /// Otherwise you can get one from its parent resource using the GetPrivateEndpointConnectionResource method. + /// A Class representing a BackupPrivateEndpointConnection along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetBackupPrivateEndpointConnectionResource method. + /// Otherwise you can get one from its parent resource using the GetBackupPrivateEndpointConnection method. /// - public partial class PrivateEndpointConnectionResource : ArmResource + public partial class BackupPrivateEndpointConnectionResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string vaultName, string privateEndpointConnectionName) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/privateEndpointConnections/{privateEndpointConnectionName}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _privateEndpointConnectionResourcePrivateEndpointConnectionClientDiagnostics; - private readonly PrivateEndpointConnectionRestOperations _privateEndpointConnectionResourcePrivateEndpointConnectionRestClient; - private readonly ClientDiagnostics _privateEndpointClientDiagnostics; - private readonly PrivateEndpointRestOperations _privateEndpointRestClient; - private readonly PrivateEndpointConnectionResourceData _data; + private readonly ClientDiagnostics _backupPrivateEndpointConnectionPrivateEndpointConnectionClientDiagnostics; + private readonly PrivateEndpointConnectionRestOperations _backupPrivateEndpointConnectionPrivateEndpointConnectionRestClient; + private readonly BackupPrivateEndpointConnectionData _data; - /// Initializes a new instance of the class for mocking. - protected PrivateEndpointConnectionResource() + /// Initializes a new instance of the class for mocking. + protected BackupPrivateEndpointConnectionResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal PrivateEndpointConnectionResource(ArmClient client, PrivateEndpointConnectionResourceData data) : this(client, data.Id) + internal BackupPrivateEndpointConnectionResource(ArmClient client, BackupPrivateEndpointConnectionData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal PrivateEndpointConnectionResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal BackupPrivateEndpointConnectionResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _privateEndpointConnectionResourcePrivateEndpointConnectionClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string privateEndpointConnectionResourcePrivateEndpointConnectionApiVersion); - _privateEndpointConnectionResourcePrivateEndpointConnectionRestClient = new PrivateEndpointConnectionRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, privateEndpointConnectionResourcePrivateEndpointConnectionApiVersion); - _privateEndpointClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ProviderConstants.DefaultProviderNamespace, Diagnostics); - _privateEndpointRestClient = new PrivateEndpointRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); + _backupPrivateEndpointConnectionPrivateEndpointConnectionClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string backupPrivateEndpointConnectionPrivateEndpointConnectionApiVersion); + _backupPrivateEndpointConnectionPrivateEndpointConnectionRestClient = new PrivateEndpointConnectionRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, backupPrivateEndpointConnectionPrivateEndpointConnectionApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -77,7 +72,7 @@ internal PrivateEndpointConnectionResource(ArmClient client, ResourceIdentifier /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual PrivateEndpointConnectionResourceData Data + public virtual BackupPrivateEndpointConnectionData Data { get { @@ -107,16 +102,16 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _privateEndpointConnectionResourcePrivateEndpointConnectionClientDiagnostics.CreateScope("PrivateEndpointConnectionResource.Get"); + using var scope = _backupPrivateEndpointConnectionPrivateEndpointConnectionClientDiagnostics.CreateScope("BackupPrivateEndpointConnectionResource.Get"); scope.Start(); try { - var response = await _privateEndpointConnectionResourcePrivateEndpointConnectionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _backupPrivateEndpointConnectionPrivateEndpointConnectionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new PrivateEndpointConnectionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new BackupPrivateEndpointConnectionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -139,16 +134,16 @@ public virtual async Task> GetAsync( /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _privateEndpointConnectionResourcePrivateEndpointConnectionClientDiagnostics.CreateScope("PrivateEndpointConnectionResource.Get"); + using var scope = _backupPrivateEndpointConnectionPrivateEndpointConnectionClientDiagnostics.CreateScope("BackupPrivateEndpointConnectionResource.Get"); scope.Start(); try { - var response = _privateEndpointConnectionResourcePrivateEndpointConnectionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _backupPrivateEndpointConnectionPrivateEndpointConnectionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new PrivateEndpointConnectionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new BackupPrivateEndpointConnectionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -174,12 +169,12 @@ public virtual Response Get(CancellationToken /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _privateEndpointConnectionResourcePrivateEndpointConnectionClientDiagnostics.CreateScope("PrivateEndpointConnectionResource.Delete"); + using var scope = _backupPrivateEndpointConnectionPrivateEndpointConnectionClientDiagnostics.CreateScope("BackupPrivateEndpointConnectionResource.Delete"); scope.Start(); try { - var response = await _privateEndpointConnectionResourcePrivateEndpointConnectionRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new RecoveryServicesBackupArmOperation(_privateEndpointConnectionResourcePrivateEndpointConnectionClientDiagnostics, Pipeline, _privateEndpointConnectionResourcePrivateEndpointConnectionRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = await _backupPrivateEndpointConnectionPrivateEndpointConnectionRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new RecoveryServicesBackupArmOperation(_backupPrivateEndpointConnectionPrivateEndpointConnectionClientDiagnostics, Pipeline, _backupPrivateEndpointConnectionPrivateEndpointConnectionRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -208,12 +203,12 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _privateEndpointConnectionResourcePrivateEndpointConnectionClientDiagnostics.CreateScope("PrivateEndpointConnectionResource.Delete"); + using var scope = _backupPrivateEndpointConnectionPrivateEndpointConnectionClientDiagnostics.CreateScope("BackupPrivateEndpointConnectionResource.Delete"); scope.Start(); try { - var response = _privateEndpointConnectionResourcePrivateEndpointConnectionRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new RecoveryServicesBackupArmOperation(_privateEndpointConnectionResourcePrivateEndpointConnectionClientDiagnostics, Pipeline, _privateEndpointConnectionResourcePrivateEndpointConnectionRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = _backupPrivateEndpointConnectionPrivateEndpointConnectionRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new RecoveryServicesBackupArmOperation(_backupPrivateEndpointConnectionPrivateEndpointConnectionClientDiagnostics, Pipeline, _backupPrivateEndpointConnectionPrivateEndpointConnectionRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -242,16 +237,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// Request body for operation. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, PrivateEndpointConnectionResourceData data, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(WaitUntil waitUntil, BackupPrivateEndpointConnectionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _privateEndpointConnectionResourcePrivateEndpointConnectionClientDiagnostics.CreateScope("PrivateEndpointConnectionResource.Update"); + using var scope = _backupPrivateEndpointConnectionPrivateEndpointConnectionClientDiagnostics.CreateScope("BackupPrivateEndpointConnectionResource.Update"); scope.Start(); try { - var response = await _privateEndpointConnectionResourcePrivateEndpointConnectionRestClient.PutAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new RecoveryServicesBackupArmOperation(new PrivateEndpointConnectionResourceOperationSource(Client), _privateEndpointConnectionResourcePrivateEndpointConnectionClientDiagnostics, Pipeline, _privateEndpointConnectionResourcePrivateEndpointConnectionRestClient.CreatePutRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.Location); + var response = await _backupPrivateEndpointConnectionPrivateEndpointConnectionRestClient.PutAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new RecoveryServicesBackupArmOperation(new BackupPrivateEndpointConnectionOperationSource(Client), _backupPrivateEndpointConnectionPrivateEndpointConnectionClientDiagnostics, Pipeline, _backupPrivateEndpointConnectionPrivateEndpointConnectionRestClient.CreatePutRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -280,16 +275,16 @@ public virtual async Task> Updat /// Request body for operation. /// The cancellation token to use. /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, PrivateEndpointConnectionResourceData data, CancellationToken cancellationToken = default) + public virtual ArmOperation Update(WaitUntil waitUntil, BackupPrivateEndpointConnectionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _privateEndpointConnectionResourcePrivateEndpointConnectionClientDiagnostics.CreateScope("PrivateEndpointConnectionResource.Update"); + using var scope = _backupPrivateEndpointConnectionPrivateEndpointConnectionClientDiagnostics.CreateScope("BackupPrivateEndpointConnectionResource.Update"); scope.Start(); try { - var response = _privateEndpointConnectionResourcePrivateEndpointConnectionRestClient.Put(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new RecoveryServicesBackupArmOperation(new PrivateEndpointConnectionResourceOperationSource(Client), _privateEndpointConnectionResourcePrivateEndpointConnectionClientDiagnostics, Pipeline, _privateEndpointConnectionResourcePrivateEndpointConnectionRestClient.CreatePutRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.Location); + var response = _backupPrivateEndpointConnectionPrivateEndpointConnectionRestClient.Put(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new RecoveryServicesBackupArmOperation(new BackupPrivateEndpointConnectionOperationSource(Client), _backupPrivateEndpointConnectionPrivateEndpointConnectionClientDiagnostics, Pipeline, _backupPrivateEndpointConnectionPrivateEndpointConnectionRestClient.CreatePutRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -301,76 +296,6 @@ public virtual ArmOperation Update(WaitUntil } } - /// - /// Gets the operation status for a private endpoint connection. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/privateEndpointConnections/{privateEndpointConnectionName}/operationsStatus/{operationId} - /// - /// - /// Operation Id - /// PrivateEndpoint_GetOperationStatus - /// - /// - /// - /// Operation id. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual async Task> GetOperationStatusPrivateEndpointAsync(string operationId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(operationId, nameof(operationId)); - - using var scope = _privateEndpointClientDiagnostics.CreateScope("PrivateEndpointConnectionResource.GetOperationStatusPrivateEndpoint"); - scope.Start(); - try - { - var response = await _privateEndpointRestClient.GetOperationStatusAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, operationId, cancellationToken).ConfigureAwait(false); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Gets the operation status for a private endpoint connection. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/privateEndpointConnections/{privateEndpointConnectionName}/operationsStatus/{operationId} - /// - /// - /// Operation Id - /// PrivateEndpoint_GetOperationStatus - /// - /// - /// - /// Operation id. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual Response GetOperationStatusPrivateEndpoint(string operationId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(operationId, nameof(operationId)); - - using var scope = _privateEndpointClientDiagnostics.CreateScope("PrivateEndpointConnectionResource.GetOperationStatusPrivateEndpoint"); - scope.Start(); - try - { - var response = _privateEndpointRestClient.GetOperationStatus(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, operationId, cancellationToken); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - /// /// Add a tag to the current resource. /// @@ -388,12 +313,12 @@ public virtual Response GetOperationStatusPrivateEndpoint(strin /// The value for the tag. /// The cancellation token to use. /// or is null. - public virtual async Task> AddTagAsync(string key, string value, CancellationToken cancellationToken = default) + public virtual async Task> AddTagAsync(string key, string value, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); Argument.AssertNotNull(value, nameof(value)); - using var scope = _privateEndpointConnectionResourcePrivateEndpointConnectionClientDiagnostics.CreateScope("PrivateEndpointConnectionResource.AddTag"); + using var scope = _backupPrivateEndpointConnectionPrivateEndpointConnectionClientDiagnostics.CreateScope("BackupPrivateEndpointConnectionResource.AddTag"); scope.Start(); try { @@ -402,8 +327,8 @@ public virtual async Task> AddTagAsy var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); originalTags.Value.Data.TagValues[key] = value; await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); - var originalResponse = await _privateEndpointConnectionResourcePrivateEndpointConnectionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new PrivateEndpointConnectionResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = await _backupPrivateEndpointConnectionPrivateEndpointConnectionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new BackupPrivateEndpointConnectionResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { @@ -437,12 +362,12 @@ public virtual async Task> AddTagAsy /// The value for the tag. /// The cancellation token to use. /// or is null. - public virtual Response AddTag(string key, string value, CancellationToken cancellationToken = default) + public virtual Response AddTag(string key, string value, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); Argument.AssertNotNull(value, nameof(value)); - using var scope = _privateEndpointConnectionResourcePrivateEndpointConnectionClientDiagnostics.CreateScope("PrivateEndpointConnectionResource.AddTag"); + using var scope = _backupPrivateEndpointConnectionPrivateEndpointConnectionClientDiagnostics.CreateScope("BackupPrivateEndpointConnectionResource.AddTag"); scope.Start(); try { @@ -451,8 +376,8 @@ public virtual Response AddTag(string key, st var originalTags = GetTagResource().Get(cancellationToken); originalTags.Value.Data.TagValues[key] = value; GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); - var originalResponse = _privateEndpointConnectionResourcePrivateEndpointConnectionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - return Response.FromValue(new PrivateEndpointConnectionResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = _backupPrivateEndpointConnectionPrivateEndpointConnectionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + return Response.FromValue(new BackupPrivateEndpointConnectionResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { @@ -485,11 +410,11 @@ public virtual Response AddTag(string key, st /// The set of tags to use as replacement. /// The cancellation token to use. /// is null. - public virtual async Task> SetTagsAsync(IDictionary tags, CancellationToken cancellationToken = default) + public virtual async Task> SetTagsAsync(IDictionary tags, CancellationToken cancellationToken = default) { Argument.AssertNotNull(tags, nameof(tags)); - using var scope = _privateEndpointConnectionResourcePrivateEndpointConnectionClientDiagnostics.CreateScope("PrivateEndpointConnectionResource.SetTags"); + using var scope = _backupPrivateEndpointConnectionPrivateEndpointConnectionClientDiagnostics.CreateScope("BackupPrivateEndpointConnectionResource.SetTags"); scope.Start(); try { @@ -499,8 +424,8 @@ public virtual async Task> SetTagsAs var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); originalTags.Value.Data.TagValues.ReplaceWith(tags); await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); - var originalResponse = await _privateEndpointConnectionResourcePrivateEndpointConnectionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new PrivateEndpointConnectionResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = await _backupPrivateEndpointConnectionPrivateEndpointConnectionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new BackupPrivateEndpointConnectionResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { @@ -533,11 +458,11 @@ public virtual async Task> SetTagsAs /// The set of tags to use as replacement. /// The cancellation token to use. /// is null. - public virtual Response SetTags(IDictionary tags, CancellationToken cancellationToken = default) + public virtual Response SetTags(IDictionary tags, CancellationToken cancellationToken = default) { Argument.AssertNotNull(tags, nameof(tags)); - using var scope = _privateEndpointConnectionResourcePrivateEndpointConnectionClientDiagnostics.CreateScope("PrivateEndpointConnectionResource.SetTags"); + using var scope = _backupPrivateEndpointConnectionPrivateEndpointConnectionClientDiagnostics.CreateScope("BackupPrivateEndpointConnectionResource.SetTags"); scope.Start(); try { @@ -547,8 +472,8 @@ public virtual Response SetTags(IDictionary SetTags(IDictionary The key for the tag. /// The cancellation token to use. /// is null. - public virtual async Task> RemoveTagAsync(string key, CancellationToken cancellationToken = default) + public virtual async Task> RemoveTagAsync(string key, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); - using var scope = _privateEndpointConnectionResourcePrivateEndpointConnectionClientDiagnostics.CreateScope("PrivateEndpointConnectionResource.RemoveTag"); + using var scope = _backupPrivateEndpointConnectionPrivateEndpointConnectionClientDiagnostics.CreateScope("BackupPrivateEndpointConnectionResource.RemoveTag"); scope.Start(); try { @@ -594,8 +519,8 @@ public virtual async Task> RemoveTag var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); originalTags.Value.Data.TagValues.Remove(key); await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); - var originalResponse = await _privateEndpointConnectionResourcePrivateEndpointConnectionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new PrivateEndpointConnectionResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = await _backupPrivateEndpointConnectionPrivateEndpointConnectionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new BackupPrivateEndpointConnectionResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { @@ -628,11 +553,11 @@ public virtual async Task> RemoveTag /// The key for the tag. /// The cancellation token to use. /// is null. - public virtual Response RemoveTag(string key, CancellationToken cancellationToken = default) + public virtual Response RemoveTag(string key, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); - using var scope = _privateEndpointConnectionResourcePrivateEndpointConnectionClientDiagnostics.CreateScope("PrivateEndpointConnectionResource.RemoveTag"); + using var scope = _backupPrivateEndpointConnectionPrivateEndpointConnectionClientDiagnostics.CreateScope("BackupPrivateEndpointConnectionResource.RemoveTag"); scope.Start(); try { @@ -641,8 +566,8 @@ public virtual Response RemoveTag(string key, var originalTags = GetTagResource().Get(cancellationToken); originalTags.Value.Data.TagValues.Remove(key); GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); - var originalResponse = _privateEndpointConnectionResourcePrivateEndpointConnectionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - return Response.FromValue(new PrivateEndpointConnectionResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = _backupPrivateEndpointConnectionPrivateEndpointConnectionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + return Response.FromValue(new BackupPrivateEndpointConnectionResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ProtectedItemResourceCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectedItemCollection.cs similarity index 70% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ProtectedItemResourceCollection.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectedItemCollection.cs index 559868a8d08d6..cc7c2a448902d 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ProtectedItemResourceCollection.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectedItemCollection.cs @@ -17,28 +17,28 @@ namespace Azure.ResourceManager.RecoveryServicesBackup { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetProtectedItemResources method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetBackupProtectedItems method from an instance of . /// - public partial class ProtectedItemResourceCollection : ArmCollection + public partial class BackupProtectedItemCollection : ArmCollection { - private readonly ClientDiagnostics _protectedItemResourceProtectedItemsClientDiagnostics; - private readonly ProtectedItemsRestOperations _protectedItemResourceProtectedItemsRestClient; + private readonly ClientDiagnostics _backupProtectedItemProtectedItemsClientDiagnostics; + private readonly ProtectedItemsRestOperations _backupProtectedItemProtectedItemsRestClient; - /// Initializes a new instance of the class for mocking. - protected ProtectedItemResourceCollection() + /// Initializes a new instance of the class for mocking. + protected BackupProtectedItemCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal ProtectedItemResourceCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal BackupProtectedItemCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _protectedItemResourceProtectedItemsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ProtectedItemResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ProtectedItemResource.ResourceType, out string protectedItemResourceProtectedItemsApiVersion); - _protectedItemResourceProtectedItemsRestClient = new ProtectedItemsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, protectedItemResourceProtectedItemsApiVersion); + _backupProtectedItemProtectedItemsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", BackupProtectedItemResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(BackupProtectedItemResource.ResourceType, out string backupProtectedItemProtectedItemsApiVersion); + _backupProtectedItemProtectedItemsRestClient = new ProtectedItemsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, backupProtectedItemProtectedItemsApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -46,8 +46,8 @@ internal ProtectedItemResourceCollection(ArmClient client, ResourceIdentifier id internal static void ValidateResourceId(ResourceIdentifier id) { - if (id.ResourceType != ProtectionContainerResource.ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ProtectionContainerResource.ResourceType), nameof(id)); + if (id.ResourceType != BackupProtectionContainerResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, BackupProtectionContainerResource.ResourceType), nameof(id)); } /// @@ -70,17 +70,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string protectedItemName, ProtectedItemResourceData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string protectedItemName, BackupProtectedItemData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(protectedItemName, nameof(protectedItemName)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _protectedItemResourceProtectedItemsClientDiagnostics.CreateScope("ProtectedItemResourceCollection.CreateOrUpdate"); + using var scope = _backupProtectedItemProtectedItemsClientDiagnostics.CreateScope("BackupProtectedItemCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _protectedItemResourceProtectedItemsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, protectedItemName, data, cancellationToken).ConfigureAwait(false); - var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new ProtectedItemResource(Client, response), response.GetRawResponse())); + var response = await _backupProtectedItemProtectedItemsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, protectedItemName, data, cancellationToken).ConfigureAwait(false); + var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new BackupProtectedItemResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -112,17 +112,17 @@ public virtual async Task> CreateOrUpdateAsy /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string protectedItemName, ProtectedItemResourceData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string protectedItemName, BackupProtectedItemData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(protectedItemName, nameof(protectedItemName)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _protectedItemResourceProtectedItemsClientDiagnostics.CreateScope("ProtectedItemResourceCollection.CreateOrUpdate"); + using var scope = _backupProtectedItemProtectedItemsClientDiagnostics.CreateScope("BackupProtectedItemCollection.CreateOrUpdate"); scope.Start(); try { - var response = _protectedItemResourceProtectedItemsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, protectedItemName, data, cancellationToken); - var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new ProtectedItemResource(Client, response), response.GetRawResponse())); + var response = _backupProtectedItemProtectedItemsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, protectedItemName, data, cancellationToken); + var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new BackupProtectedItemResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -153,18 +153,18 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wait /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string protectedItemName, string filter = null, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string protectedItemName, string filter = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(protectedItemName, nameof(protectedItemName)); - using var scope = _protectedItemResourceProtectedItemsClientDiagnostics.CreateScope("ProtectedItemResourceCollection.Get"); + using var scope = _backupProtectedItemProtectedItemsClientDiagnostics.CreateScope("BackupProtectedItemCollection.Get"); scope.Start(); try { - var response = await _protectedItemResourceProtectedItemsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, protectedItemName, filter, cancellationToken).ConfigureAwait(false); + var response = await _backupProtectedItemProtectedItemsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, protectedItemName, filter, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new ProtectedItemResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new BackupProtectedItemResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -192,18 +192,18 @@ public virtual async Task> GetAsync(string prote /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string protectedItemName, string filter = null, CancellationToken cancellationToken = default) + public virtual Response Get(string protectedItemName, string filter = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(protectedItemName, nameof(protectedItemName)); - using var scope = _protectedItemResourceProtectedItemsClientDiagnostics.CreateScope("ProtectedItemResourceCollection.Get"); + using var scope = _backupProtectedItemProtectedItemsClientDiagnostics.CreateScope("BackupProtectedItemCollection.Get"); scope.Start(); try { - var response = _protectedItemResourceProtectedItemsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, protectedItemName, filter, cancellationToken); + var response = _backupProtectedItemProtectedItemsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, protectedItemName, filter, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new ProtectedItemResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new BackupProtectedItemResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -234,11 +234,11 @@ public virtual async Task> ExistsAsync(string protectedItemName, { Argument.AssertNotNullOrEmpty(protectedItemName, nameof(protectedItemName)); - using var scope = _protectedItemResourceProtectedItemsClientDiagnostics.CreateScope("ProtectedItemResourceCollection.Exists"); + using var scope = _backupProtectedItemProtectedItemsClientDiagnostics.CreateScope("BackupProtectedItemCollection.Exists"); scope.Start(); try { - var response = await _protectedItemResourceProtectedItemsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, protectedItemName, filter, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _backupProtectedItemProtectedItemsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, protectedItemName, filter, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -270,11 +270,11 @@ public virtual Response Exists(string protectedItemName, string filter = n { Argument.AssertNotNullOrEmpty(protectedItemName, nameof(protectedItemName)); - using var scope = _protectedItemResourceProtectedItemsClientDiagnostics.CreateScope("ProtectedItemResourceCollection.Exists"); + using var scope = _backupProtectedItemProtectedItemsClientDiagnostics.CreateScope("BackupProtectedItemCollection.Exists"); scope.Start(); try { - var response = _protectedItemResourceProtectedItemsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, protectedItemName, filter, cancellationToken: cancellationToken); + var response = _backupProtectedItemProtectedItemsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, protectedItemName, filter, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectedItemData.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectedItemData.cs new file mode 100644 index 0000000000000..761840f838dc5 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectedItemData.cs @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure; +using Azure.Core; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.RecoveryServicesBackup.Models; + +namespace Azure.ResourceManager.RecoveryServicesBackup +{ + /// A class representing the BackupProtectedItem data model. + public partial class BackupProtectedItemData : TrackedResourceData + { + /// Initializes a new instance of BackupProtectedItemData. + /// The location. + public BackupProtectedItemData(AzureLocation location) : base(location) + { + } + + /// Initializes a new instance of BackupProtectedItemData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// + /// ProtectedItemResource properties + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , , , , , , and . + /// + /// Optional ETag. + internal BackupProtectedItemData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, BackupGenericProtectedItem properties, ETag? eTag) : base(id, name, resourceType, systemData, tags, location) + { + Properties = properties; + ETag = eTag; + } + + /// + /// ProtectedItemResource properties + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , , , , , , and . + /// + public BackupGenericProtectedItem Properties { get; set; } + /// Optional ETag. + public ETag? ETag { get; set; } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ProtectedItemResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectedItemResource.cs similarity index 67% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ProtectedItemResource.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectedItemResource.cs index 80b5786dea682..dba7b0ab5c90e 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ProtectedItemResource.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectedItemResource.cs @@ -19,56 +19,52 @@ namespace Azure.ResourceManager.RecoveryServicesBackup { /// - /// A Class representing a ProtectedItemResource along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetProtectedItemResource method. - /// Otherwise you can get one from its parent resource using the GetProtectedItemResource method. + /// A Class representing a BackupProtectedItem along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetBackupProtectedItemResource method. + /// Otherwise you can get one from its parent resource using the GetBackupProtectedItem method. /// - public partial class ProtectedItemResource : ArmResource + public partial class BackupProtectedItemResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _protectedItemResourceProtectedItemsClientDiagnostics; - private readonly ProtectedItemsRestOperations _protectedItemResourceProtectedItemsRestClient; + private readonly ClientDiagnostics _backupProtectedItemProtectedItemsClientDiagnostics; + private readonly ProtectedItemsRestOperations _backupProtectedItemProtectedItemsRestClient; private readonly ClientDiagnostics _backupsClientDiagnostics; private readonly BackupsRestOperations _backupsRestClient; - private readonly ClientDiagnostics _protectedItemOperationStatusesClientDiagnostics; - private readonly ProtectedItemOperationStatusesRestOperations _protectedItemOperationStatusesRestClient; private readonly ClientDiagnostics _recoveryPointsRecommendedForMoveClientDiagnostics; private readonly RecoveryPointsRecommendedForMoveRestOperations _recoveryPointsRecommendedForMoveRestClient; - private readonly ProtectedItemResourceData _data; + private readonly BackupProtectedItemData _data; - /// Initializes a new instance of the class for mocking. - protected ProtectedItemResource() + /// Initializes a new instance of the class for mocking. + protected BackupProtectedItemResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal ProtectedItemResource(ArmClient client, ProtectedItemResourceData data) : this(client, data.Id) + internal BackupProtectedItemResource(ArmClient client, BackupProtectedItemData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal ProtectedItemResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal BackupProtectedItemResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _protectedItemResourceProtectedItemsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string protectedItemResourceProtectedItemsApiVersion); - _protectedItemResourceProtectedItemsRestClient = new ProtectedItemsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, protectedItemResourceProtectedItemsApiVersion); + _backupProtectedItemProtectedItemsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string backupProtectedItemProtectedItemsApiVersion); + _backupProtectedItemProtectedItemsRestClient = new ProtectedItemsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, backupProtectedItemProtectedItemsApiVersion); _backupsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ProviderConstants.DefaultProviderNamespace, Diagnostics); _backupsRestClient = new BackupsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); - _protectedItemOperationStatusesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ProviderConstants.DefaultProviderNamespace, Diagnostics); - _protectedItemOperationStatusesRestClient = new ProtectedItemOperationStatusesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); _recoveryPointsRecommendedForMoveClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ProviderConstants.DefaultProviderNamespace, Diagnostics); _recoveryPointsRecommendedForMoveRestClient = new RecoveryPointsRecommendedForMoveRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); #if DEBUG @@ -84,7 +80,7 @@ internal ProtectedItemResource(ArmClient client, ResourceIdentifier id) : base(c /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual ProtectedItemResourceData Data + public virtual BackupProtectedItemData Data { get { @@ -100,11 +96,11 @@ internal static void ValidateResourceId(ResourceIdentifier id) throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); } - /// Gets a collection of RecoveryPointResources in the ProtectedItemResource. - /// An object representing collection of RecoveryPointResources and their operations over a RecoveryPointResource. - public virtual RecoveryPointResourceCollection GetRecoveryPointResources() + /// Gets a collection of BackupRecoveryPointResources in the BackupProtectedItem. + /// An object representing collection of BackupRecoveryPointResources and their operations over a BackupRecoveryPointResource. + public virtual BackupRecoveryPointCollection GetBackupRecoveryPoints() { - return GetCachedClient(Client => new RecoveryPointResourceCollection(Client, Id)); + return GetCachedClient(Client => new BackupRecoveryPointCollection(Client, Id)); } /// @@ -126,9 +122,9 @@ public virtual RecoveryPointResourceCollection GetRecoveryPointResources() /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual async Task> GetRecoveryPointResourceAsync(string recoveryPointId, CancellationToken cancellationToken = default) + public virtual async Task> GetBackupRecoveryPointAsync(string recoveryPointId, CancellationToken cancellationToken = default) { - return await GetRecoveryPointResources().GetAsync(recoveryPointId, cancellationToken).ConfigureAwait(false); + return await GetBackupRecoveryPoints().GetAsync(recoveryPointId, cancellationToken).ConfigureAwait(false); } /// @@ -150,9 +146,9 @@ public virtual async Task> GetRecoveryPointResou /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual Response GetRecoveryPointResource(string recoveryPointId, CancellationToken cancellationToken = default) + public virtual Response GetBackupRecoveryPoint(string recoveryPointId, CancellationToken cancellationToken = default) { - return GetRecoveryPointResources().Get(recoveryPointId, cancellationToken); + return GetBackupRecoveryPoints().Get(recoveryPointId, cancellationToken); } /// @@ -171,16 +167,16 @@ public virtual Response GetRecoveryPointResource(string r /// /// OData filter options. /// The cancellation token to use. - public virtual async Task> GetAsync(string filter = null, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string filter = null, CancellationToken cancellationToken = default) { - using var scope = _protectedItemResourceProtectedItemsClientDiagnostics.CreateScope("ProtectedItemResource.Get"); + using var scope = _backupProtectedItemProtectedItemsClientDiagnostics.CreateScope("BackupProtectedItemResource.Get"); scope.Start(); try { - var response = await _protectedItemResourceProtectedItemsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, filter, cancellationToken).ConfigureAwait(false); + var response = await _backupProtectedItemProtectedItemsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, filter, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new ProtectedItemResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new BackupProtectedItemResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -205,16 +201,16 @@ public virtual async Task> GetAsync(string filte /// /// OData filter options. /// The cancellation token to use. - public virtual Response Get(string filter = null, CancellationToken cancellationToken = default) + public virtual Response Get(string filter = null, CancellationToken cancellationToken = default) { - using var scope = _protectedItemResourceProtectedItemsClientDiagnostics.CreateScope("ProtectedItemResource.Get"); + using var scope = _backupProtectedItemProtectedItemsClientDiagnostics.CreateScope("BackupProtectedItemResource.Get"); scope.Start(); try { - var response = _protectedItemResourceProtectedItemsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, filter, cancellationToken); + var response = _backupProtectedItemProtectedItemsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, filter, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new ProtectedItemResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new BackupProtectedItemResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -241,11 +237,11 @@ public virtual Response Get(string filter = null, Cancell /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _protectedItemResourceProtectedItemsClientDiagnostics.CreateScope("ProtectedItemResource.Delete"); + using var scope = _backupProtectedItemProtectedItemsClientDiagnostics.CreateScope("BackupProtectedItemResource.Delete"); scope.Start(); try { - var response = await _protectedItemResourceProtectedItemsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _backupProtectedItemProtectedItemsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); var operation = new RecoveryServicesBackupArmOperation(response); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); @@ -276,11 +272,11 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _protectedItemResourceProtectedItemsClientDiagnostics.CreateScope("ProtectedItemResource.Delete"); + using var scope = _backupProtectedItemProtectedItemsClientDiagnostics.CreateScope("BackupProtectedItemResource.Delete"); scope.Start(); try { - var response = _protectedItemResourceProtectedItemsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var response = _backupProtectedItemProtectedItemsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); var operation = new RecoveryServicesBackupArmOperation(response); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); @@ -311,16 +307,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// resource backed up item. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, ProtectedItemResourceData data, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(WaitUntil waitUntil, BackupProtectedItemData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _protectedItemResourceProtectedItemsClientDiagnostics.CreateScope("ProtectedItemResource.Update"); + using var scope = _backupProtectedItemProtectedItemsClientDiagnostics.CreateScope("BackupProtectedItemResource.Update"); scope.Start(); try { - var response = await _protectedItemResourceProtectedItemsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new ProtectedItemResource(Client, response), response.GetRawResponse())); + var response = await _backupProtectedItemProtectedItemsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new BackupProtectedItemResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -350,16 +346,16 @@ public virtual async Task> UpdateAsync(WaitU /// resource backed up item. /// The cancellation token to use. /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, ProtectedItemResourceData data, CancellationToken cancellationToken = default) + public virtual ArmOperation Update(WaitUntil waitUntil, BackupProtectedItemData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _protectedItemResourceProtectedItemsClientDiagnostics.CreateScope("ProtectedItemResource.Update"); + using var scope = _backupProtectedItemProtectedItemsClientDiagnostics.CreateScope("BackupProtectedItemResource.Update"); scope.Start(); try { - var response = _protectedItemResourceProtectedItemsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new ProtectedItemResource(Client, response), response.GetRawResponse())); + var response = _backupProtectedItemProtectedItemsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new BackupProtectedItemResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -385,18 +381,18 @@ public virtual ArmOperation Update(WaitUntil waitUntil, P /// /// /// - /// resource backup request. + /// resource backup request. /// The cancellation token to use. - /// is null. - public virtual async Task TriggerBackupAsync(BackupRequestResource backupRequestResource, CancellationToken cancellationToken = default) + /// is null. + public virtual async Task TriggerBackupAsync(TriggerBackupContent content, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(backupRequestResource, nameof(backupRequestResource)); + Argument.AssertNotNull(content, nameof(content)); - using var scope = _backupsClientDiagnostics.CreateScope("ProtectedItemResource.TriggerBackup"); + using var scope = _backupsClientDiagnostics.CreateScope("BackupProtectedItemResource.TriggerBackup"); scope.Start(); try { - var response = await _backupsRestClient.TriggerAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, backupRequestResource, cancellationToken).ConfigureAwait(false); + var response = await _backupsRestClient.TriggerAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken).ConfigureAwait(false); return response; } catch (Exception e) @@ -420,92 +416,18 @@ public virtual async Task TriggerBackupAsync(BackupRequestResource bac /// /// /// - /// resource backup request. - /// The cancellation token to use. - /// is null. - public virtual Response TriggerBackup(BackupRequestResource backupRequestResource, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(backupRequestResource, nameof(backupRequestResource)); - - using var scope = _backupsClientDiagnostics.CreateScope("ProtectedItemResource.TriggerBackup"); - scope.Start(); - try - { - var response = _backupsRestClient.Trigger(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, backupRequestResource, cancellationToken); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Fetches the status of an operation such as triggering a backup, restore. The status can be in progress, completed - /// or failed. You can refer to the OperationStatus enum for all the possible states of the operation. Some operations - /// create jobs. This method returns the list of jobs associated with the operation. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/operationsStatus/{operationId} - /// - /// - /// Operation Id - /// ProtectedItemOperationStatuses_Get - /// - /// - /// - /// OperationID represents the operation whose status needs to be fetched. + /// resource backup request. /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual async Task> GetProtectedItemOperationStatusAsync(string operationId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(operationId, nameof(operationId)); - - using var scope = _protectedItemOperationStatusesClientDiagnostics.CreateScope("ProtectedItemResource.GetProtectedItemOperationStatus"); - scope.Start(); - try - { - var response = await _protectedItemOperationStatusesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, operationId, cancellationToken).ConfigureAwait(false); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Fetches the status of an operation such as triggering a backup, restore. The status can be in progress, completed - /// or failed. You can refer to the OperationStatus enum for all the possible states of the operation. Some operations - /// create jobs. This method returns the list of jobs associated with the operation. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/operationsStatus/{operationId} - /// - /// - /// Operation Id - /// ProtectedItemOperationStatuses_Get - /// - /// - /// - /// OperationID represents the operation whose status needs to be fetched. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual Response GetProtectedItemOperationStatus(string operationId, CancellationToken cancellationToken = default) + /// is null. + public virtual Response TriggerBackup(TriggerBackupContent content, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(operationId, nameof(operationId)); + Argument.AssertNotNull(content, nameof(content)); - using var scope = _protectedItemOperationStatusesClientDiagnostics.CreateScope("ProtectedItemResource.GetProtectedItemOperationStatus"); + using var scope = _backupsClientDiagnostics.CreateScope("BackupProtectedItemResource.TriggerBackup"); scope.Start(); try { - var response = _protectedItemOperationStatusesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, operationId, cancellationToken); + var response = _backupsRestClient.Trigger(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken); return response; } catch (Exception e) @@ -531,14 +453,14 @@ public virtual Response GetProtectedItemOperationStatus(string /// List Recovery points Recommended for Move Request. /// The cancellation token to use. /// is null. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetRecoveryPointsRecommendedForMovesAsync(ListRecoveryPointsRecommendedForMoveContent content, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetRecoveryPointsRecommendedForMoveAsync(RecoveryPointsRecommendedForMoveContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(content, nameof(content)); HttpMessage FirstPageRequest(int? pageSizeHint) => _recoveryPointsRecommendedForMoveRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _recoveryPointsRecommendedForMoveRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content); - return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new RecoveryPointResource(Client, RecoveryPointResourceData.DeserializeRecoveryPointResourceData(e)), _recoveryPointsRecommendedForMoveClientDiagnostics, Pipeline, "ProtectedItemResource.GetRecoveryPointsRecommendedForMoves", "value", "nextLink", cancellationToken); + return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new BackupRecoveryPointResource(Client, BackupRecoveryPointData.DeserializeBackupRecoveryPointData(e)), _recoveryPointsRecommendedForMoveClientDiagnostics, Pipeline, "BackupProtectedItemResource.GetRecoveryPointsRecommendedForMove", "value", "nextLink", cancellationToken); } /// @@ -557,14 +479,14 @@ public virtual AsyncPageable GetRecoveryPointsRecommended /// List Recovery points Recommended for Move Request. /// The cancellation token to use. /// is null. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetRecoveryPointsRecommendedForMoves(ListRecoveryPointsRecommendedForMoveContent content, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetRecoveryPointsRecommendedForMove(RecoveryPointsRecommendedForMoveContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(content, nameof(content)); HttpMessage FirstPageRequest(int? pageSizeHint) => _recoveryPointsRecommendedForMoveRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _recoveryPointsRecommendedForMoveRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content); - return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new RecoveryPointResource(Client, RecoveryPointResourceData.DeserializeRecoveryPointResourceData(e)), _recoveryPointsRecommendedForMoveClientDiagnostics, Pipeline, "ProtectedItemResource.GetRecoveryPointsRecommendedForMoves", "value", "nextLink", cancellationToken); + return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new BackupRecoveryPointResource(Client, BackupRecoveryPointData.DeserializeBackupRecoveryPointData(e)), _recoveryPointsRecommendedForMoveClientDiagnostics, Pipeline, "BackupProtectedItemResource.GetRecoveryPointsRecommendedForMove", "value", "nextLink", cancellationToken); } /// @@ -584,12 +506,12 @@ public virtual Pageable GetRecoveryPointsRecommendedForMo /// The value for the tag. /// The cancellation token to use. /// or is null. - public virtual async Task> AddTagAsync(string key, string value, CancellationToken cancellationToken = default) + public virtual async Task> AddTagAsync(string key, string value, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); Argument.AssertNotNull(value, nameof(value)); - using var scope = _protectedItemResourceProtectedItemsClientDiagnostics.CreateScope("ProtectedItemResource.AddTag"); + using var scope = _backupProtectedItemProtectedItemsClientDiagnostics.CreateScope("BackupProtectedItemResource.AddTag"); scope.Start(); try { @@ -598,8 +520,8 @@ public virtual async Task> AddTagAsync(string ke var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); originalTags.Value.Data.TagValues[key] = value; await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); - var originalResponse = await _protectedItemResourceProtectedItemsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, null, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new ProtectedItemResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = await _backupProtectedItemProtectedItemsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, null, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new BackupProtectedItemResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { @@ -633,12 +555,12 @@ public virtual async Task> AddTagAsync(string ke /// The value for the tag. /// The cancellation token to use. /// or is null. - public virtual Response AddTag(string key, string value, CancellationToken cancellationToken = default) + public virtual Response AddTag(string key, string value, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); Argument.AssertNotNull(value, nameof(value)); - using var scope = _protectedItemResourceProtectedItemsClientDiagnostics.CreateScope("ProtectedItemResource.AddTag"); + using var scope = _backupProtectedItemProtectedItemsClientDiagnostics.CreateScope("BackupProtectedItemResource.AddTag"); scope.Start(); try { @@ -647,8 +569,8 @@ public virtual Response AddTag(string key, string value, var originalTags = GetTagResource().Get(cancellationToken); originalTags.Value.Data.TagValues[key] = value; GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); - var originalResponse = _protectedItemResourceProtectedItemsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, null, cancellationToken); - return Response.FromValue(new ProtectedItemResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = _backupProtectedItemProtectedItemsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, null, cancellationToken); + return Response.FromValue(new BackupProtectedItemResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { @@ -681,11 +603,11 @@ public virtual Response AddTag(string key, string value, /// The set of tags to use as replacement. /// The cancellation token to use. /// is null. - public virtual async Task> SetTagsAsync(IDictionary tags, CancellationToken cancellationToken = default) + public virtual async Task> SetTagsAsync(IDictionary tags, CancellationToken cancellationToken = default) { Argument.AssertNotNull(tags, nameof(tags)); - using var scope = _protectedItemResourceProtectedItemsClientDiagnostics.CreateScope("ProtectedItemResource.SetTags"); + using var scope = _backupProtectedItemProtectedItemsClientDiagnostics.CreateScope("BackupProtectedItemResource.SetTags"); scope.Start(); try { @@ -695,8 +617,8 @@ public virtual async Task> SetTagsAsync(IDiction var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); originalTags.Value.Data.TagValues.ReplaceWith(tags); await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); - var originalResponse = await _protectedItemResourceProtectedItemsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, null, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new ProtectedItemResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = await _backupProtectedItemProtectedItemsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, null, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new BackupProtectedItemResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { @@ -729,11 +651,11 @@ public virtual async Task> SetTagsAsync(IDiction /// The set of tags to use as replacement. /// The cancellation token to use. /// is null. - public virtual Response SetTags(IDictionary tags, CancellationToken cancellationToken = default) + public virtual Response SetTags(IDictionary tags, CancellationToken cancellationToken = default) { Argument.AssertNotNull(tags, nameof(tags)); - using var scope = _protectedItemResourceProtectedItemsClientDiagnostics.CreateScope("ProtectedItemResource.SetTags"); + using var scope = _backupProtectedItemProtectedItemsClientDiagnostics.CreateScope("BackupProtectedItemResource.SetTags"); scope.Start(); try { @@ -743,8 +665,8 @@ public virtual Response SetTags(IDictionary SetTags(IDictionary The key for the tag. /// The cancellation token to use. /// is null. - public virtual async Task> RemoveTagAsync(string key, CancellationToken cancellationToken = default) + public virtual async Task> RemoveTagAsync(string key, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); - using var scope = _protectedItemResourceProtectedItemsClientDiagnostics.CreateScope("ProtectedItemResource.RemoveTag"); + using var scope = _backupProtectedItemProtectedItemsClientDiagnostics.CreateScope("BackupProtectedItemResource.RemoveTag"); scope.Start(); try { @@ -790,8 +712,8 @@ public virtual async Task> RemoveTagAsync(string var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); originalTags.Value.Data.TagValues.Remove(key); await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); - var originalResponse = await _protectedItemResourceProtectedItemsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, null, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new ProtectedItemResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = await _backupProtectedItemProtectedItemsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, null, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new BackupProtectedItemResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { @@ -824,11 +746,11 @@ public virtual async Task> RemoveTagAsync(string /// The key for the tag. /// The cancellation token to use. /// is null. - public virtual Response RemoveTag(string key, CancellationToken cancellationToken = default) + public virtual Response RemoveTag(string key, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); - using var scope = _protectedItemResourceProtectedItemsClientDiagnostics.CreateScope("ProtectedItemResource.RemoveTag"); + using var scope = _backupProtectedItemProtectedItemsClientDiagnostics.CreateScope("BackupProtectedItemResource.RemoveTag"); scope.Start(); try { @@ -837,8 +759,8 @@ public virtual Response RemoveTag(string key, Cancellatio var originalTags = GetTagResource().Get(cancellationToken); originalTags.Value.Data.TagValues.Remove(key); GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); - var originalResponse = _protectedItemResourceProtectedItemsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, null, cancellationToken); - return Response.FromValue(new ProtectedItemResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = _backupProtectedItemProtectedItemsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, null, cancellationToken); + return Response.FromValue(new BackupProtectedItemResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ProtectionContainerResourceCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionContainerCollection.cs similarity index 73% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ProtectionContainerResourceCollection.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionContainerCollection.cs index 00e36818d5923..9bc03b642712c 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ProtectionContainerResourceCollection.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionContainerCollection.cs @@ -18,28 +18,28 @@ namespace Azure.ResourceManager.RecoveryServicesBackup { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetProtectionContainerResources method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetBackupProtectionContainers method from an instance of . /// - public partial class ProtectionContainerResourceCollection : ArmCollection + public partial class BackupProtectionContainerCollection : ArmCollection { - private readonly ClientDiagnostics _protectionContainerResourceProtectionContainersClientDiagnostics; - private readonly ProtectionContainersRestOperations _protectionContainerResourceProtectionContainersRestClient; + private readonly ClientDiagnostics _backupProtectionContainerProtectionContainersClientDiagnostics; + private readonly ProtectionContainersRestOperations _backupProtectionContainerProtectionContainersRestClient; - /// Initializes a new instance of the class for mocking. - protected ProtectionContainerResourceCollection() + /// Initializes a new instance of the class for mocking. + protected BackupProtectionContainerCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal ProtectionContainerResourceCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal BackupProtectionContainerCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _protectionContainerResourceProtectionContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ProtectionContainerResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ProtectionContainerResource.ResourceType, out string protectionContainerResourceProtectionContainersApiVersion); - _protectionContainerResourceProtectionContainersRestClient = new ProtectionContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, protectionContainerResourceProtectionContainersApiVersion); + _backupProtectionContainerProtectionContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", BackupProtectionContainerResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(BackupProtectionContainerResource.ResourceType, out string backupProtectionContainerProtectionContainersApiVersion); + _backupProtectionContainerProtectionContainersRestClient = new ProtectionContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, backupProtectionContainerProtectionContainersApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -74,19 +74,19 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// , or is an empty string, and was expected to be non-empty. /// , , or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string vaultName, string fabricName, string containerName, ProtectionContainerResourceData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string vaultName, string fabricName, string containerName, BackupProtectionContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); Argument.AssertNotNullOrEmpty(fabricName, nameof(fabricName)); Argument.AssertNotNullOrEmpty(containerName, nameof(containerName)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _protectionContainerResourceProtectionContainersClientDiagnostics.CreateScope("ProtectionContainerResourceCollection.CreateOrUpdate"); + using var scope = _backupProtectionContainerProtectionContainersClientDiagnostics.CreateScope("BackupProtectionContainerCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _protectionContainerResourceProtectionContainersRestClient.RegisterAsync(Id.SubscriptionId, Id.ResourceGroupName, vaultName, fabricName, containerName, data, cancellationToken).ConfigureAwait(false); - var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new ProtectionContainerResource(Client, response), response.GetRawResponse())); + var response = await _backupProtectionContainerProtectionContainersRestClient.RegisterAsync(Id.SubscriptionId, Id.ResourceGroupName, vaultName, fabricName, containerName, data, cancellationToken).ConfigureAwait(false); + var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new BackupProtectionContainerResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -121,19 +121,19 @@ public virtual async Task> CreateOrUpd /// The cancellation token to use. /// , or is an empty string, and was expected to be non-empty. /// , , or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string vaultName, string fabricName, string containerName, ProtectionContainerResourceData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string vaultName, string fabricName, string containerName, BackupProtectionContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); Argument.AssertNotNullOrEmpty(fabricName, nameof(fabricName)); Argument.AssertNotNullOrEmpty(containerName, nameof(containerName)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _protectionContainerResourceProtectionContainersClientDiagnostics.CreateScope("ProtectionContainerResourceCollection.CreateOrUpdate"); + using var scope = _backupProtectionContainerProtectionContainersClientDiagnostics.CreateScope("BackupProtectionContainerCollection.CreateOrUpdate"); scope.Start(); try { - var response = _protectionContainerResourceProtectionContainersRestClient.Register(Id.SubscriptionId, Id.ResourceGroupName, vaultName, fabricName, containerName, data, cancellationToken); - var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new ProtectionContainerResource(Client, response), response.GetRawResponse())); + var response = _backupProtectionContainerProtectionContainersRestClient.Register(Id.SubscriptionId, Id.ResourceGroupName, vaultName, fabricName, containerName, data, cancellationToken); + var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new BackupProtectionContainerResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -164,20 +164,20 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti /// The cancellation token to use. /// , or is an empty string, and was expected to be non-empty. /// , or is null. - public virtual async Task> GetAsync(string vaultName, string fabricName, string containerName, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string vaultName, string fabricName, string containerName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); Argument.AssertNotNullOrEmpty(fabricName, nameof(fabricName)); Argument.AssertNotNullOrEmpty(containerName, nameof(containerName)); - using var scope = _protectionContainerResourceProtectionContainersClientDiagnostics.CreateScope("ProtectionContainerResourceCollection.Get"); + using var scope = _backupProtectionContainerProtectionContainersClientDiagnostics.CreateScope("BackupProtectionContainerCollection.Get"); scope.Start(); try { - var response = await _protectionContainerResourceProtectionContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, vaultName, fabricName, containerName, cancellationToken).ConfigureAwait(false); + var response = await _backupProtectionContainerProtectionContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, vaultName, fabricName, containerName, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new ProtectionContainerResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new BackupProtectionContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -205,20 +205,20 @@ public virtual async Task> GetAsync(string /// The cancellation token to use. /// , or is an empty string, and was expected to be non-empty. /// , or is null. - public virtual Response Get(string vaultName, string fabricName, string containerName, CancellationToken cancellationToken = default) + public virtual Response Get(string vaultName, string fabricName, string containerName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); Argument.AssertNotNullOrEmpty(fabricName, nameof(fabricName)); Argument.AssertNotNullOrEmpty(containerName, nameof(containerName)); - using var scope = _protectionContainerResourceProtectionContainersClientDiagnostics.CreateScope("ProtectionContainerResourceCollection.Get"); + using var scope = _backupProtectionContainerProtectionContainersClientDiagnostics.CreateScope("BackupProtectionContainerCollection.Get"); scope.Start(); try { - var response = _protectionContainerResourceProtectionContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, vaultName, fabricName, containerName, cancellationToken); + var response = _backupProtectionContainerProtectionContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, vaultName, fabricName, containerName, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new ProtectionContainerResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new BackupProtectionContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -252,11 +252,11 @@ public virtual async Task> ExistsAsync(string vaultName, string f Argument.AssertNotNullOrEmpty(fabricName, nameof(fabricName)); Argument.AssertNotNullOrEmpty(containerName, nameof(containerName)); - using var scope = _protectionContainerResourceProtectionContainersClientDiagnostics.CreateScope("ProtectionContainerResourceCollection.Exists"); + using var scope = _backupProtectionContainerProtectionContainersClientDiagnostics.CreateScope("BackupProtectionContainerCollection.Exists"); scope.Start(); try { - var response = await _protectionContainerResourceProtectionContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, vaultName, fabricName, containerName, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _backupProtectionContainerProtectionContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, vaultName, fabricName, containerName, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -291,11 +291,11 @@ public virtual Response Exists(string vaultName, string fabricName, string Argument.AssertNotNullOrEmpty(fabricName, nameof(fabricName)); Argument.AssertNotNullOrEmpty(containerName, nameof(containerName)); - using var scope = _protectionContainerResourceProtectionContainersClientDiagnostics.CreateScope("ProtectionContainerResourceCollection.Exists"); + using var scope = _backupProtectionContainerProtectionContainersClientDiagnostics.CreateScope("BackupProtectionContainerCollection.Exists"); scope.Start(); try { - var response = _protectionContainerResourceProtectionContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, vaultName, fabricName, containerName, cancellationToken: cancellationToken); + var response = _backupProtectionContainerProtectionContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, vaultName, fabricName, containerName, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionContainerData.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionContainerData.cs new file mode 100644 index 0000000000000..ff01ca56d9a1f --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionContainerData.cs @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure; +using Azure.Core; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.RecoveryServicesBackup.Models; + +namespace Azure.ResourceManager.RecoveryServicesBackup +{ + /// A class representing the BackupProtectionContainer data model. + public partial class BackupProtectionContainerData : TrackedResourceData + { + /// Initializes a new instance of BackupProtectionContainerData. + /// The location. + public BackupProtectionContainerData(AzureLocation location) : base(location) + { + } + + /// Initializes a new instance of BackupProtectionContainerData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// + /// ProtectionContainerResource properties + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , , , , , and . + /// + /// Optional ETag. + internal BackupProtectionContainerData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, BackupGenericProtectionContainer properties, ETag? eTag) : base(id, name, resourceType, systemData, tags, location) + { + Properties = properties; + ETag = eTag; + } + + /// + /// ProtectionContainerResource properties + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , , , , , and . + /// + public BackupGenericProtectionContainer Properties { get; set; } + /// Optional ETag. + public ETag? ETag { get; set; } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ProtectionContainerResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionContainerResource.cs similarity index 75% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ProtectionContainerResource.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionContainerResource.cs index 379410374e24c..a610f8e411b5c 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ProtectionContainerResource.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionContainerResource.cs @@ -20,48 +20,48 @@ namespace Azure.ResourceManager.RecoveryServicesBackup { /// - /// A Class representing a ProtectionContainerResource along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetProtectionContainerResource method. - /// Otherwise you can get one from its parent resource using the GetProtectionContainerResource method. + /// A Class representing a BackupProtectionContainer along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetBackupProtectionContainerResource method. + /// Otherwise you can get one from its parent resource using the GetBackupProtectionContainer method. /// - public partial class ProtectionContainerResource : ArmResource + public partial class BackupProtectionContainerResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _protectionContainerResourceProtectionContainersClientDiagnostics; - private readonly ProtectionContainersRestOperations _protectionContainerResourceProtectionContainersRestClient; + private readonly ClientDiagnostics _backupProtectionContainerProtectionContainersClientDiagnostics; + private readonly ProtectionContainersRestOperations _backupProtectionContainerProtectionContainersRestClient; private readonly ClientDiagnostics _backupWorkloadItemsClientDiagnostics; private readonly BackupWorkloadItemsRestOperations _backupWorkloadItemsRestClient; - private readonly ProtectionContainerResourceData _data; + private readonly BackupProtectionContainerData _data; - /// Initializes a new instance of the class for mocking. - protected ProtectionContainerResource() + /// Initializes a new instance of the class for mocking. + protected BackupProtectionContainerResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal ProtectionContainerResource(ArmClient client, ProtectionContainerResourceData data) : this(client, data.Id) + internal BackupProtectionContainerResource(ArmClient client, BackupProtectionContainerData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal ProtectionContainerResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal BackupProtectionContainerResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _protectionContainerResourceProtectionContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string protectionContainerResourceProtectionContainersApiVersion); - _protectionContainerResourceProtectionContainersRestClient = new ProtectionContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, protectionContainerResourceProtectionContainersApiVersion); + _backupProtectionContainerProtectionContainersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string backupProtectionContainerProtectionContainersApiVersion); + _backupProtectionContainerProtectionContainersRestClient = new ProtectionContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, backupProtectionContainerProtectionContainersApiVersion); _backupWorkloadItemsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ProviderConstants.DefaultProviderNamespace, Diagnostics); _backupWorkloadItemsRestClient = new BackupWorkloadItemsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); #if DEBUG @@ -77,7 +77,7 @@ internal ProtectionContainerResource(ArmClient client, ResourceIdentifier id) : /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual ProtectionContainerResourceData Data + public virtual BackupProtectionContainerData Data { get { @@ -93,11 +93,11 @@ internal static void ValidateResourceId(ResourceIdentifier id) throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); } - /// Gets a collection of ProtectedItemResources in the ProtectionContainerResource. - /// An object representing collection of ProtectedItemResources and their operations over a ProtectedItemResource. - public virtual ProtectedItemResourceCollection GetProtectedItemResources() + /// Gets a collection of BackupProtectedItemResources in the BackupProtectionContainer. + /// An object representing collection of BackupProtectedItemResources and their operations over a BackupProtectedItemResource. + public virtual BackupProtectedItemCollection GetBackupProtectedItems() { - return GetCachedClient(Client => new ProtectedItemResourceCollection(Client, Id)); + return GetCachedClient(Client => new BackupProtectedItemCollection(Client, Id)); } /// @@ -120,9 +120,9 @@ public virtual ProtectedItemResourceCollection GetProtectedItemResources() /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual async Task> GetProtectedItemResourceAsync(string protectedItemName, string filter = null, CancellationToken cancellationToken = default) + public virtual async Task> GetBackupProtectedItemAsync(string protectedItemName, string filter = null, CancellationToken cancellationToken = default) { - return await GetProtectedItemResources().GetAsync(protectedItemName, filter, cancellationToken).ConfigureAwait(false); + return await GetBackupProtectedItems().GetAsync(protectedItemName, filter, cancellationToken).ConfigureAwait(false); } /// @@ -145,9 +145,9 @@ public virtual async Task> GetProtectedItemResou /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual Response GetProtectedItemResource(string protectedItemName, string filter = null, CancellationToken cancellationToken = default) + public virtual Response GetBackupProtectedItem(string protectedItemName, string filter = null, CancellationToken cancellationToken = default) { - return GetProtectedItemResources().Get(protectedItemName, filter, cancellationToken); + return GetBackupProtectedItems().Get(protectedItemName, filter, cancellationToken); } /// @@ -164,16 +164,16 @@ public virtual Response GetProtectedItemResource(string p /// /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _protectionContainerResourceProtectionContainersClientDiagnostics.CreateScope("ProtectionContainerResource.Get"); + using var scope = _backupProtectionContainerProtectionContainersClientDiagnostics.CreateScope("BackupProtectionContainerResource.Get"); scope.Start(); try { - var response = await _protectionContainerResourceProtectionContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _backupProtectionContainerProtectionContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new ProtectionContainerResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new BackupProtectionContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -196,16 +196,16 @@ public virtual async Task> GetAsync(Cancel /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _protectionContainerResourceProtectionContainersClientDiagnostics.CreateScope("ProtectionContainerResource.Get"); + using var scope = _backupProtectionContainerProtectionContainersClientDiagnostics.CreateScope("BackupProtectionContainerResource.Get"); scope.Start(); try { - var response = _protectionContainerResourceProtectionContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var response = _backupProtectionContainerProtectionContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new ProtectionContainerResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new BackupProtectionContainerResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -232,11 +232,11 @@ public virtual Response Get(CancellationToken cance /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _protectionContainerResourceProtectionContainersClientDiagnostics.CreateScope("ProtectionContainerResource.Delete"); + using var scope = _backupProtectionContainerProtectionContainersClientDiagnostics.CreateScope("BackupProtectionContainerResource.Delete"); scope.Start(); try { - var response = await _protectionContainerResourceProtectionContainersRestClient.UnregisterAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _backupProtectionContainerProtectionContainersRestClient.UnregisterAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); var operation = new RecoveryServicesBackupArmOperation(response); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); @@ -267,11 +267,11 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _protectionContainerResourceProtectionContainersClientDiagnostics.CreateScope("ProtectionContainerResource.Delete"); + using var scope = _backupProtectionContainerProtectionContainersClientDiagnostics.CreateScope("BackupProtectionContainerResource.Delete"); scope.Start(); try { - var response = _protectionContainerResourceProtectionContainersRestClient.Unregister(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var response = _backupProtectionContainerProtectionContainersRestClient.Unregister(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); var operation = new RecoveryServicesBackupArmOperation(response); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); @@ -303,16 +303,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// Request body for operation. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, ProtectionContainerResourceData data, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(WaitUntil waitUntil, BackupProtectionContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _protectionContainerResourceProtectionContainersClientDiagnostics.CreateScope("ProtectionContainerResource.Update"); + using var scope = _backupProtectionContainerProtectionContainersClientDiagnostics.CreateScope("BackupProtectionContainerResource.Update"); scope.Start(); try { - var response = await _protectionContainerResourceProtectionContainersRestClient.RegisterAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new ProtectionContainerResource(Client, response), response.GetRawResponse())); + var response = await _backupProtectionContainerProtectionContainersRestClient.RegisterAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new BackupProtectionContainerResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -343,16 +343,16 @@ public virtual async Task> UpdateAsync /// Request body for operation. /// The cancellation token to use. /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, ProtectionContainerResourceData data, CancellationToken cancellationToken = default) + public virtual ArmOperation Update(WaitUntil waitUntil, BackupProtectionContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _protectionContainerResourceProtectionContainersClientDiagnostics.CreateScope("ProtectionContainerResource.Update"); + using var scope = _backupProtectionContainerProtectionContainersClientDiagnostics.CreateScope("BackupProtectionContainerResource.Update"); scope.Start(); try { - var response = _protectionContainerResourceProtectionContainersRestClient.Register(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new ProtectionContainerResource(Client, response), response.GetRawResponse())); + var response = _backupProtectionContainerProtectionContainersRestClient.Register(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new BackupProtectionContainerResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -381,11 +381,11 @@ public virtual ArmOperation Update(WaitUntil waitUn /// The cancellation token to use. public virtual async Task InquireAsync(string filter = null, CancellationToken cancellationToken = default) { - using var scope = _protectionContainerResourceProtectionContainersClientDiagnostics.CreateScope("ProtectionContainerResource.Inquire"); + using var scope = _backupProtectionContainerProtectionContainersClientDiagnostics.CreateScope("BackupProtectionContainerResource.Inquire"); scope.Start(); try { - var response = await _protectionContainerResourceProtectionContainersRestClient.InquireAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, filter, cancellationToken).ConfigureAwait(false); + var response = await _backupProtectionContainerProtectionContainersRestClient.InquireAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, filter, cancellationToken).ConfigureAwait(false); return response; } catch (Exception e) @@ -412,11 +412,11 @@ public virtual async Task InquireAsync(string filter = null, Cancellat /// The cancellation token to use. public virtual Response Inquire(string filter = null, CancellationToken cancellationToken = default) { - using var scope = _protectionContainerResourceProtectionContainersClientDiagnostics.CreateScope("ProtectionContainerResource.Inquire"); + using var scope = _backupProtectionContainerProtectionContainersClientDiagnostics.CreateScope("BackupProtectionContainerResource.Inquire"); scope.Start(); try { - var response = _protectionContainerResourceProtectionContainersRestClient.Inquire(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, filter, cancellationToken); + var response = _backupProtectionContainerProtectionContainersRestClient.Inquire(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, filter, cancellationToken); return response; } catch (Exception e) @@ -448,7 +448,7 @@ public virtual AsyncPageable GetBackupWorkloadItemsAsync(s { HttpMessage FirstPageRequest(int? pageSizeHint) => _backupWorkloadItemsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, filter, skipToken); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _backupWorkloadItemsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, filter, skipToken); - return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, WorkloadItemResource.DeserializeWorkloadItemResource, _backupWorkloadItemsClientDiagnostics, Pipeline, "ProtectionContainerResource.GetBackupWorkloadItems", "value", "nextLink", cancellationToken); + return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, WorkloadItemResource.DeserializeWorkloadItemResource, _backupWorkloadItemsClientDiagnostics, Pipeline, "BackupProtectionContainerResource.GetBackupWorkloadItems", "value", "nextLink", cancellationToken); } /// @@ -473,7 +473,7 @@ public virtual Pageable GetBackupWorkloadItems(string filt { HttpMessage FirstPageRequest(int? pageSizeHint) => _backupWorkloadItemsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, filter, skipToken); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _backupWorkloadItemsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, filter, skipToken); - return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, WorkloadItemResource.DeserializeWorkloadItemResource, _backupWorkloadItemsClientDiagnostics, Pipeline, "ProtectionContainerResource.GetBackupWorkloadItems", "value", "nextLink", cancellationToken); + return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, WorkloadItemResource.DeserializeWorkloadItemResource, _backupWorkloadItemsClientDiagnostics, Pipeline, "BackupProtectionContainerResource.GetBackupWorkloadItems", "value", "nextLink", cancellationToken); } /// @@ -493,12 +493,12 @@ public virtual Pageable GetBackupWorkloadItems(string filt /// The value for the tag. /// The cancellation token to use. /// or is null. - public virtual async Task> AddTagAsync(string key, string value, CancellationToken cancellationToken = default) + public virtual async Task> AddTagAsync(string key, string value, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); Argument.AssertNotNull(value, nameof(value)); - using var scope = _protectionContainerResourceProtectionContainersClientDiagnostics.CreateScope("ProtectionContainerResource.AddTag"); + using var scope = _backupProtectionContainerProtectionContainersClientDiagnostics.CreateScope("BackupProtectionContainerResource.AddTag"); scope.Start(); try { @@ -507,8 +507,8 @@ public virtual async Task> AddTagAsync(str var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); originalTags.Value.Data.TagValues[key] = value; await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); - var originalResponse = await _protectionContainerResourceProtectionContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new ProtectionContainerResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = await _backupProtectionContainerProtectionContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new BackupProtectionContainerResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { @@ -542,12 +542,12 @@ public virtual async Task> AddTagAsync(str /// The value for the tag. /// The cancellation token to use. /// or is null. - public virtual Response AddTag(string key, string value, CancellationToken cancellationToken = default) + public virtual Response AddTag(string key, string value, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); Argument.AssertNotNull(value, nameof(value)); - using var scope = _protectionContainerResourceProtectionContainersClientDiagnostics.CreateScope("ProtectionContainerResource.AddTag"); + using var scope = _backupProtectionContainerProtectionContainersClientDiagnostics.CreateScope("BackupProtectionContainerResource.AddTag"); scope.Start(); try { @@ -556,8 +556,8 @@ public virtual Response AddTag(string key, string v var originalTags = GetTagResource().Get(cancellationToken); originalTags.Value.Data.TagValues[key] = value; GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); - var originalResponse = _protectionContainerResourceProtectionContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - return Response.FromValue(new ProtectionContainerResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = _backupProtectionContainerProtectionContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + return Response.FromValue(new BackupProtectionContainerResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { @@ -590,11 +590,11 @@ public virtual Response AddTag(string key, string v /// The set of tags to use as replacement. /// The cancellation token to use. /// is null. - public virtual async Task> SetTagsAsync(IDictionary tags, CancellationToken cancellationToken = default) + public virtual async Task> SetTagsAsync(IDictionary tags, CancellationToken cancellationToken = default) { Argument.AssertNotNull(tags, nameof(tags)); - using var scope = _protectionContainerResourceProtectionContainersClientDiagnostics.CreateScope("ProtectionContainerResource.SetTags"); + using var scope = _backupProtectionContainerProtectionContainersClientDiagnostics.CreateScope("BackupProtectionContainerResource.SetTags"); scope.Start(); try { @@ -604,8 +604,8 @@ public virtual async Task> SetTagsAsync(ID var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); originalTags.Value.Data.TagValues.ReplaceWith(tags); await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); - var originalResponse = await _protectionContainerResourceProtectionContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new ProtectionContainerResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = await _backupProtectionContainerProtectionContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new BackupProtectionContainerResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { @@ -638,11 +638,11 @@ public virtual async Task> SetTagsAsync(ID /// The set of tags to use as replacement. /// The cancellation token to use. /// is null. - public virtual Response SetTags(IDictionary tags, CancellationToken cancellationToken = default) + public virtual Response SetTags(IDictionary tags, CancellationToken cancellationToken = default) { Argument.AssertNotNull(tags, nameof(tags)); - using var scope = _protectionContainerResourceProtectionContainersClientDiagnostics.CreateScope("ProtectionContainerResource.SetTags"); + using var scope = _backupProtectionContainerProtectionContainersClientDiagnostics.CreateScope("BackupProtectionContainerResource.SetTags"); scope.Start(); try { @@ -652,8 +652,8 @@ public virtual Response SetTags(IDictionary SetTags(IDictionary The key for the tag. /// The cancellation token to use. /// is null. - public virtual async Task> RemoveTagAsync(string key, CancellationToken cancellationToken = default) + public virtual async Task> RemoveTagAsync(string key, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); - using var scope = _protectionContainerResourceProtectionContainersClientDiagnostics.CreateScope("ProtectionContainerResource.RemoveTag"); + using var scope = _backupProtectionContainerProtectionContainersClientDiagnostics.CreateScope("BackupProtectionContainerResource.RemoveTag"); scope.Start(); try { @@ -699,8 +699,8 @@ public virtual async Task> RemoveTagAsync( var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); originalTags.Value.Data.TagValues.Remove(key); await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); - var originalResponse = await _protectionContainerResourceProtectionContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new ProtectionContainerResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = await _backupProtectionContainerProtectionContainersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new BackupProtectionContainerResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { @@ -733,11 +733,11 @@ public virtual async Task> RemoveTagAsync( /// The key for the tag. /// The cancellation token to use. /// is null. - public virtual Response RemoveTag(string key, CancellationToken cancellationToken = default) + public virtual Response RemoveTag(string key, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); - using var scope = _protectionContainerResourceProtectionContainersClientDiagnostics.CreateScope("ProtectionContainerResource.RemoveTag"); + using var scope = _backupProtectionContainerProtectionContainersClientDiagnostics.CreateScope("BackupProtectionContainerResource.RemoveTag"); scope.Start(); try { @@ -746,8 +746,8 @@ public virtual Response RemoveTag(string key, Cance var originalTags = GetTagResource().Get(cancellationToken); originalTags.Value.Data.TagValues.Remove(key); GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); - var originalResponse = _protectionContainerResourceProtectionContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - return Response.FromValue(new ProtectionContainerResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = _backupProtectionContainerProtectionContainersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + return Response.FromValue(new BackupProtectionContainerResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ProtectionIntentResourceCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionIntentCollection.cs similarity index 74% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ProtectionIntentResourceCollection.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionIntentCollection.cs index 31660147da9e9..5068099c8d13a 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ProtectionIntentResourceCollection.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionIntentCollection.cs @@ -18,28 +18,28 @@ namespace Azure.ResourceManager.RecoveryServicesBackup { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetProtectionIntentResources method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetBackupProtectionIntents method from an instance of . /// - public partial class ProtectionIntentResourceCollection : ArmCollection + public partial class BackupProtectionIntentCollection : ArmCollection { - private readonly ClientDiagnostics _protectionIntentResourceProtectionIntentClientDiagnostics; - private readonly ProtectionIntentRestOperations _protectionIntentResourceProtectionIntentRestClient; + private readonly ClientDiagnostics _backupProtectionIntentProtectionIntentClientDiagnostics; + private readonly ProtectionIntentRestOperations _backupProtectionIntentProtectionIntentRestClient; - /// Initializes a new instance of the class for mocking. - protected ProtectionIntentResourceCollection() + /// Initializes a new instance of the class for mocking. + protected BackupProtectionIntentCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal ProtectionIntentResourceCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal BackupProtectionIntentCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _protectionIntentResourceProtectionIntentClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ProtectionIntentResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ProtectionIntentResource.ResourceType, out string protectionIntentResourceProtectionIntentApiVersion); - _protectionIntentResourceProtectionIntentRestClient = new ProtectionIntentRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, protectionIntentResourceProtectionIntentApiVersion); + _backupProtectionIntentProtectionIntentClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", BackupProtectionIntentResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(BackupProtectionIntentResource.ResourceType, out string backupProtectionIntentProtectionIntentApiVersion); + _backupProtectionIntentProtectionIntentRestClient = new ProtectionIntentRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, backupProtectionIntentProtectionIntentApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -72,19 +72,19 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// , or is an empty string, and was expected to be non-empty. /// , , or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string vaultName, string fabricName, string intentObjectName, ProtectionIntentResourceData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string vaultName, string fabricName, string intentObjectName, BackupProtectionIntentData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); Argument.AssertNotNullOrEmpty(fabricName, nameof(fabricName)); Argument.AssertNotNullOrEmpty(intentObjectName, nameof(intentObjectName)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _protectionIntentResourceProtectionIntentClientDiagnostics.CreateScope("ProtectionIntentResourceCollection.CreateOrUpdate"); + using var scope = _backupProtectionIntentProtectionIntentClientDiagnostics.CreateScope("BackupProtectionIntentCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _protectionIntentResourceProtectionIntentRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, vaultName, fabricName, intentObjectName, data, cancellationToken).ConfigureAwait(false); - var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new ProtectionIntentResource(Client, response), response.GetRawResponse())); + var response = await _backupProtectionIntentProtectionIntentRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, vaultName, fabricName, intentObjectName, data, cancellationToken).ConfigureAwait(false); + var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new BackupProtectionIntentResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -117,19 +117,19 @@ public virtual async Task> CreateOrUpdate /// The cancellation token to use. /// , or is an empty string, and was expected to be non-empty. /// , , or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string vaultName, string fabricName, string intentObjectName, ProtectionIntentResourceData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string vaultName, string fabricName, string intentObjectName, BackupProtectionIntentData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); Argument.AssertNotNullOrEmpty(fabricName, nameof(fabricName)); Argument.AssertNotNullOrEmpty(intentObjectName, nameof(intentObjectName)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _protectionIntentResourceProtectionIntentClientDiagnostics.CreateScope("ProtectionIntentResourceCollection.CreateOrUpdate"); + using var scope = _backupProtectionIntentProtectionIntentClientDiagnostics.CreateScope("BackupProtectionIntentCollection.CreateOrUpdate"); scope.Start(); try { - var response = _protectionIntentResourceProtectionIntentRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, vaultName, fabricName, intentObjectName, data, cancellationToken); - var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new ProtectionIntentResource(Client, response), response.GetRawResponse())); + var response = _backupProtectionIntentProtectionIntentRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, vaultName, fabricName, intentObjectName, data, cancellationToken); + var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new BackupProtectionIntentResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -161,20 +161,20 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil w /// The cancellation token to use. /// , or is an empty string, and was expected to be non-empty. /// , or is null. - public virtual async Task> GetAsync(string vaultName, string fabricName, string intentObjectName, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string vaultName, string fabricName, string intentObjectName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); Argument.AssertNotNullOrEmpty(fabricName, nameof(fabricName)); Argument.AssertNotNullOrEmpty(intentObjectName, nameof(intentObjectName)); - using var scope = _protectionIntentResourceProtectionIntentClientDiagnostics.CreateScope("ProtectionIntentResourceCollection.Get"); + using var scope = _backupProtectionIntentProtectionIntentClientDiagnostics.CreateScope("BackupProtectionIntentCollection.Get"); scope.Start(); try { - var response = await _protectionIntentResourceProtectionIntentRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, vaultName, fabricName, intentObjectName, cancellationToken).ConfigureAwait(false); + var response = await _backupProtectionIntentProtectionIntentRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, vaultName, fabricName, intentObjectName, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new ProtectionIntentResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new BackupProtectionIntentResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -203,20 +203,20 @@ public virtual async Task> GetAsync(string va /// The cancellation token to use. /// , or is an empty string, and was expected to be non-empty. /// , or is null. - public virtual Response Get(string vaultName, string fabricName, string intentObjectName, CancellationToken cancellationToken = default) + public virtual Response Get(string vaultName, string fabricName, string intentObjectName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); Argument.AssertNotNullOrEmpty(fabricName, nameof(fabricName)); Argument.AssertNotNullOrEmpty(intentObjectName, nameof(intentObjectName)); - using var scope = _protectionIntentResourceProtectionIntentClientDiagnostics.CreateScope("ProtectionIntentResourceCollection.Get"); + using var scope = _backupProtectionIntentProtectionIntentClientDiagnostics.CreateScope("BackupProtectionIntentCollection.Get"); scope.Start(); try { - var response = _protectionIntentResourceProtectionIntentRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, vaultName, fabricName, intentObjectName, cancellationToken); + var response = _backupProtectionIntentProtectionIntentRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, vaultName, fabricName, intentObjectName, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new ProtectionIntentResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new BackupProtectionIntentResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -250,11 +250,11 @@ public virtual async Task> ExistsAsync(string vaultName, string f Argument.AssertNotNullOrEmpty(fabricName, nameof(fabricName)); Argument.AssertNotNullOrEmpty(intentObjectName, nameof(intentObjectName)); - using var scope = _protectionIntentResourceProtectionIntentClientDiagnostics.CreateScope("ProtectionIntentResourceCollection.Exists"); + using var scope = _backupProtectionIntentProtectionIntentClientDiagnostics.CreateScope("BackupProtectionIntentCollection.Exists"); scope.Start(); try { - var response = await _protectionIntentResourceProtectionIntentRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, vaultName, fabricName, intentObjectName, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _backupProtectionIntentProtectionIntentRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, vaultName, fabricName, intentObjectName, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -289,11 +289,11 @@ public virtual Response Exists(string vaultName, string fabricName, string Argument.AssertNotNullOrEmpty(fabricName, nameof(fabricName)); Argument.AssertNotNullOrEmpty(intentObjectName, nameof(intentObjectName)); - using var scope = _protectionIntentResourceProtectionIntentClientDiagnostics.CreateScope("ProtectionIntentResourceCollection.Exists"); + using var scope = _backupProtectionIntentProtectionIntentClientDiagnostics.CreateScope("BackupProtectionIntentCollection.Exists"); scope.Start(); try { - var response = _protectionIntentResourceProtectionIntentRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, vaultName, fabricName, intentObjectName, cancellationToken: cancellationToken); + var response = _backupProtectionIntentProtectionIntentRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, vaultName, fabricName, intentObjectName, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionIntentData.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionIntentData.cs new file mode 100644 index 0000000000000..8c8cfe31ec3dc --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionIntentData.cs @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure; +using Azure.Core; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.RecoveryServicesBackup.Models; + +namespace Azure.ResourceManager.RecoveryServicesBackup +{ + /// A class representing the BackupProtectionIntent data model. + public partial class BackupProtectionIntentData : TrackedResourceData + { + /// Initializes a new instance of BackupProtectionIntentData. + /// The location. + public BackupProtectionIntentData(AzureLocation location) : base(location) + { + } + + /// Initializes a new instance of BackupProtectionIntentData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// + /// ProtectionIntentResource properties + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . + /// + /// Optional ETag. + internal BackupProtectionIntentData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, BackupGenericProtectionIntent properties, ETag? eTag) : base(id, name, resourceType, systemData, tags, location) + { + Properties = properties; + ETag = eTag; + } + + /// + /// ProtectionIntentResource properties + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . + /// + public BackupGenericProtectionIntent Properties { get; set; } + /// Optional ETag. + public ETag? ETag { get; set; } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ProtectionIntentResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionIntentResource.cs similarity index 73% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ProtectionIntentResource.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionIntentResource.cs index 104e3d68ec0bc..55eed6a2afb8e 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ProtectionIntentResource.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionIntentResource.cs @@ -19,46 +19,46 @@ namespace Azure.ResourceManager.RecoveryServicesBackup { /// - /// A Class representing a ProtectionIntentResource along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetProtectionIntentResource method. - /// Otherwise you can get one from its parent resource using the GetProtectionIntentResource method. + /// A Class representing a BackupProtectionIntent along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetBackupProtectionIntentResource method. + /// Otherwise you can get one from its parent resource using the GetBackupProtectionIntent method. /// - public partial class ProtectionIntentResource : ArmResource + public partial class BackupProtectionIntentResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string intentObjectName) { var resourceId = $"/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/backupProtectionIntent/{intentObjectName}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _protectionIntentResourceProtectionIntentClientDiagnostics; - private readonly ProtectionIntentRestOperations _protectionIntentResourceProtectionIntentRestClient; - private readonly ProtectionIntentResourceData _data; + private readonly ClientDiagnostics _backupProtectionIntentProtectionIntentClientDiagnostics; + private readonly ProtectionIntentRestOperations _backupProtectionIntentProtectionIntentRestClient; + private readonly BackupProtectionIntentData _data; - /// Initializes a new instance of the class for mocking. - protected ProtectionIntentResource() + /// Initializes a new instance of the class for mocking. + protected BackupProtectionIntentResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal ProtectionIntentResource(ArmClient client, ProtectionIntentResourceData data) : this(client, data.Id) + internal BackupProtectionIntentResource(ArmClient client, BackupProtectionIntentData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal ProtectionIntentResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal BackupProtectionIntentResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _protectionIntentResourceProtectionIntentClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string protectionIntentResourceProtectionIntentApiVersion); - _protectionIntentResourceProtectionIntentRestClient = new ProtectionIntentRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, protectionIntentResourceProtectionIntentApiVersion); + _backupProtectionIntentProtectionIntentClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string backupProtectionIntentProtectionIntentApiVersion); + _backupProtectionIntentProtectionIntentRestClient = new ProtectionIntentRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, backupProtectionIntentProtectionIntentApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -72,7 +72,7 @@ internal ProtectionIntentResource(ArmClient client, ResourceIdentifier id) : bas /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual ProtectionIntentResourceData Data + public virtual BackupProtectionIntentData Data { get { @@ -103,16 +103,16 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _protectionIntentResourceProtectionIntentClientDiagnostics.CreateScope("ProtectionIntentResource.Get"); + using var scope = _backupProtectionIntentProtectionIntentClientDiagnostics.CreateScope("BackupProtectionIntentResource.Get"); scope.Start(); try { - var response = await _protectionIntentResourceProtectionIntentRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _backupProtectionIntentProtectionIntentRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new ProtectionIntentResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new BackupProtectionIntentResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -136,16 +136,16 @@ public virtual async Task> GetAsync(Cancellat /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _protectionIntentResourceProtectionIntentClientDiagnostics.CreateScope("ProtectionIntentResource.Get"); + using var scope = _backupProtectionIntentProtectionIntentClientDiagnostics.CreateScope("BackupProtectionIntentResource.Get"); scope.Start(); try { - var response = _protectionIntentResourceProtectionIntentRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var response = _backupProtectionIntentProtectionIntentRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new ProtectionIntentResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new BackupProtectionIntentResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -171,11 +171,11 @@ public virtual Response Get(CancellationToken cancella /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _protectionIntentResourceProtectionIntentClientDiagnostics.CreateScope("ProtectionIntentResource.Delete"); + using var scope = _backupProtectionIntentProtectionIntentClientDiagnostics.CreateScope("BackupProtectionIntentResource.Delete"); scope.Start(); try { - var response = await _protectionIntentResourceProtectionIntentRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _backupProtectionIntentProtectionIntentRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); var operation = new RecoveryServicesBackupArmOperation(response); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); @@ -205,11 +205,11 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _protectionIntentResourceProtectionIntentClientDiagnostics.CreateScope("ProtectionIntentResource.Delete"); + using var scope = _backupProtectionIntentProtectionIntentClientDiagnostics.CreateScope("BackupProtectionIntentResource.Delete"); scope.Start(); try { - var response = _protectionIntentResourceProtectionIntentRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var response = _backupProtectionIntentProtectionIntentRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); var operation = new RecoveryServicesBackupArmOperation(response); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); @@ -239,16 +239,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// resource backed up item. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, ProtectionIntentResourceData data, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(WaitUntil waitUntil, BackupProtectionIntentData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _protectionIntentResourceProtectionIntentClientDiagnostics.CreateScope("ProtectionIntentResource.Update"); + using var scope = _backupProtectionIntentProtectionIntentClientDiagnostics.CreateScope("BackupProtectionIntentResource.Update"); scope.Start(); try { - var response = await _protectionIntentResourceProtectionIntentRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new ProtectionIntentResource(Client, response), response.GetRawResponse())); + var response = await _backupProtectionIntentProtectionIntentRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new BackupProtectionIntentResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -277,16 +277,16 @@ public virtual async Task> UpdateAsync(Wa /// resource backed up item. /// The cancellation token to use. /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, ProtectionIntentResourceData data, CancellationToken cancellationToken = default) + public virtual ArmOperation Update(WaitUntil waitUntil, BackupProtectionIntentData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _protectionIntentResourceProtectionIntentClientDiagnostics.CreateScope("ProtectionIntentResource.Update"); + using var scope = _backupProtectionIntentProtectionIntentClientDiagnostics.CreateScope("BackupProtectionIntentResource.Update"); scope.Start(); try { - var response = _protectionIntentResourceProtectionIntentRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new ProtectionIntentResource(Client, response), response.GetRawResponse())); + var response = _backupProtectionIntentProtectionIntentRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new BackupProtectionIntentResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -315,12 +315,12 @@ public virtual ArmOperation Update(WaitUntil waitUntil /// The value for the tag. /// The cancellation token to use. /// or is null. - public virtual async Task> AddTagAsync(string key, string value, CancellationToken cancellationToken = default) + public virtual async Task> AddTagAsync(string key, string value, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); Argument.AssertNotNull(value, nameof(value)); - using var scope = _protectionIntentResourceProtectionIntentClientDiagnostics.CreateScope("ProtectionIntentResource.AddTag"); + using var scope = _backupProtectionIntentProtectionIntentClientDiagnostics.CreateScope("BackupProtectionIntentResource.AddTag"); scope.Start(); try { @@ -329,8 +329,8 @@ public virtual async Task> AddTagAsync(string var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); originalTags.Value.Data.TagValues[key] = value; await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); - var originalResponse = await _protectionIntentResourceProtectionIntentRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new ProtectionIntentResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = await _backupProtectionIntentProtectionIntentRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new BackupProtectionIntentResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { @@ -364,12 +364,12 @@ public virtual async Task> AddTagAsync(string /// The value for the tag. /// The cancellation token to use. /// or is null. - public virtual Response AddTag(string key, string value, CancellationToken cancellationToken = default) + public virtual Response AddTag(string key, string value, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); Argument.AssertNotNull(value, nameof(value)); - using var scope = _protectionIntentResourceProtectionIntentClientDiagnostics.CreateScope("ProtectionIntentResource.AddTag"); + using var scope = _backupProtectionIntentProtectionIntentClientDiagnostics.CreateScope("BackupProtectionIntentResource.AddTag"); scope.Start(); try { @@ -378,8 +378,8 @@ public virtual Response AddTag(string key, string valu var originalTags = GetTagResource().Get(cancellationToken); originalTags.Value.Data.TagValues[key] = value; GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); - var originalResponse = _protectionIntentResourceProtectionIntentRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - return Response.FromValue(new ProtectionIntentResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = _backupProtectionIntentProtectionIntentRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + return Response.FromValue(new BackupProtectionIntentResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { @@ -412,11 +412,11 @@ public virtual Response AddTag(string key, string valu /// The set of tags to use as replacement. /// The cancellation token to use. /// is null. - public virtual async Task> SetTagsAsync(IDictionary tags, CancellationToken cancellationToken = default) + public virtual async Task> SetTagsAsync(IDictionary tags, CancellationToken cancellationToken = default) { Argument.AssertNotNull(tags, nameof(tags)); - using var scope = _protectionIntentResourceProtectionIntentClientDiagnostics.CreateScope("ProtectionIntentResource.SetTags"); + using var scope = _backupProtectionIntentProtectionIntentClientDiagnostics.CreateScope("BackupProtectionIntentResource.SetTags"); scope.Start(); try { @@ -426,8 +426,8 @@ public virtual async Task> SetTagsAsync(IDict var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); originalTags.Value.Data.TagValues.ReplaceWith(tags); await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); - var originalResponse = await _protectionIntentResourceProtectionIntentRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new ProtectionIntentResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = await _backupProtectionIntentProtectionIntentRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new BackupProtectionIntentResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { @@ -460,11 +460,11 @@ public virtual async Task> SetTagsAsync(IDict /// The set of tags to use as replacement. /// The cancellation token to use. /// is null. - public virtual Response SetTags(IDictionary tags, CancellationToken cancellationToken = default) + public virtual Response SetTags(IDictionary tags, CancellationToken cancellationToken = default) { Argument.AssertNotNull(tags, nameof(tags)); - using var scope = _protectionIntentResourceProtectionIntentClientDiagnostics.CreateScope("ProtectionIntentResource.SetTags"); + using var scope = _backupProtectionIntentProtectionIntentClientDiagnostics.CreateScope("BackupProtectionIntentResource.SetTags"); scope.Start(); try { @@ -474,8 +474,8 @@ public virtual Response SetTags(IDictionary SetTags(IDictionary The key for the tag. /// The cancellation token to use. /// is null. - public virtual async Task> RemoveTagAsync(string key, CancellationToken cancellationToken = default) + public virtual async Task> RemoveTagAsync(string key, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); - using var scope = _protectionIntentResourceProtectionIntentClientDiagnostics.CreateScope("ProtectionIntentResource.RemoveTag"); + using var scope = _backupProtectionIntentProtectionIntentClientDiagnostics.CreateScope("BackupProtectionIntentResource.RemoveTag"); scope.Start(); try { @@ -521,8 +521,8 @@ public virtual async Task> RemoveTagAsync(str var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); originalTags.Value.Data.TagValues.Remove(key); await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); - var originalResponse = await _protectionIntentResourceProtectionIntentRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new ProtectionIntentResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = await _backupProtectionIntentProtectionIntentRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new BackupProtectionIntentResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { @@ -555,11 +555,11 @@ public virtual async Task> RemoveTagAsync(str /// The key for the tag. /// The cancellation token to use. /// is null. - public virtual Response RemoveTag(string key, CancellationToken cancellationToken = default) + public virtual Response RemoveTag(string key, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); - using var scope = _protectionIntentResourceProtectionIntentClientDiagnostics.CreateScope("ProtectionIntentResource.RemoveTag"); + using var scope = _backupProtectionIntentProtectionIntentClientDiagnostics.CreateScope("BackupProtectionIntentResource.RemoveTag"); scope.Start(); try { @@ -568,8 +568,8 @@ public virtual Response RemoveTag(string key, Cancella var originalTags = GetTagResource().Get(cancellationToken); originalTags.Value.Data.TagValues.Remove(key); GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); - var originalResponse = _protectionIntentResourceProtectionIntentRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - return Response.FromValue(new ProtectionIntentResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = _backupProtectionIntentProtectionIntentRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + return Response.FromValue(new BackupProtectionIntentResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ProtectionPolicyResourceCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionPolicyCollection.cs similarity index 65% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ProtectionPolicyResourceCollection.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionPolicyCollection.cs index 3ad29fe16bef7..6c3cb0b01cfd5 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ProtectionPolicyResourceCollection.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionPolicyCollection.cs @@ -20,38 +20,38 @@ namespace Azure.ResourceManager.RecoveryServicesBackup { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetProtectionPolicyResources method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetBackupProtectionPolicies method from an instance of . /// - public partial class ProtectionPolicyResourceCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class BackupProtectionPolicyCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _protectionPolicyResourceProtectionPoliciesClientDiagnostics; - private readonly ProtectionPoliciesRestOperations _protectionPolicyResourceProtectionPoliciesRestClient; - private readonly ClientDiagnostics _protectionPolicyResourceBackupPoliciesClientDiagnostics; - private readonly BackupPoliciesRestOperations _protectionPolicyResourceBackupPoliciesRestClient; + private readonly ClientDiagnostics _backupProtectionPolicyProtectionPoliciesClientDiagnostics; + private readonly ProtectionPoliciesRestOperations _backupProtectionPolicyProtectionPoliciesRestClient; + private readonly ClientDiagnostics _backupProtectionPolicyBackupPoliciesClientDiagnostics; + private readonly BackupPoliciesRestOperations _backupProtectionPolicyBackupPoliciesRestClient; private readonly string _vaultName; - /// Initializes a new instance of the class for mocking. - protected ProtectionPolicyResourceCollection() + /// Initializes a new instance of the class for mocking. + protected BackupProtectionPolicyCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. /// The name of the recovery services vault. /// is null. /// is an empty string, and was expected to be non-empty. - internal ProtectionPolicyResourceCollection(ArmClient client, ResourceIdentifier id, string vaultName) : base(client, id) + internal BackupProtectionPolicyCollection(ArmClient client, ResourceIdentifier id, string vaultName) : base(client, id) { _vaultName = vaultName; - _protectionPolicyResourceProtectionPoliciesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ProtectionPolicyResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ProtectionPolicyResource.ResourceType, out string protectionPolicyResourceProtectionPoliciesApiVersion); - _protectionPolicyResourceProtectionPoliciesRestClient = new ProtectionPoliciesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, protectionPolicyResourceProtectionPoliciesApiVersion); - _protectionPolicyResourceBackupPoliciesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ProtectionPolicyResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ProtectionPolicyResource.ResourceType, out string protectionPolicyResourceBackupPoliciesApiVersion); - _protectionPolicyResourceBackupPoliciesRestClient = new BackupPoliciesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, protectionPolicyResourceBackupPoliciesApiVersion); + _backupProtectionPolicyProtectionPoliciesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", BackupProtectionPolicyResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(BackupProtectionPolicyResource.ResourceType, out string backupProtectionPolicyProtectionPoliciesApiVersion); + _backupProtectionPolicyProtectionPoliciesRestClient = new ProtectionPoliciesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, backupProtectionPolicyProtectionPoliciesApiVersion); + _backupProtectionPolicyBackupPoliciesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", BackupProtectionPolicyResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(BackupProtectionPolicyResource.ResourceType, out string backupProtectionPolicyBackupPoliciesApiVersion); + _backupProtectionPolicyBackupPoliciesRestClient = new BackupPoliciesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, backupProtectionPolicyBackupPoliciesApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -83,17 +83,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string policyName, ProtectionPolicyResourceData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string policyName, BackupProtectionPolicyData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(policyName, nameof(policyName)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _protectionPolicyResourceProtectionPoliciesClientDiagnostics.CreateScope("ProtectionPolicyResourceCollection.CreateOrUpdate"); + using var scope = _backupProtectionPolicyProtectionPoliciesClientDiagnostics.CreateScope("BackupProtectionPolicyCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _protectionPolicyResourceProtectionPoliciesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, policyName, data, cancellationToken).ConfigureAwait(false); - var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new ProtectionPolicyResource(Client, response), response.GetRawResponse())); + var response = await _backupProtectionPolicyProtectionPoliciesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, policyName, data, cancellationToken).ConfigureAwait(false); + var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new BackupProtectionPolicyResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -125,17 +125,17 @@ public virtual async Task> CreateOrUpdate /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string policyName, ProtectionPolicyResourceData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string policyName, BackupProtectionPolicyData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(policyName, nameof(policyName)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _protectionPolicyResourceProtectionPoliciesClientDiagnostics.CreateScope("ProtectionPolicyResourceCollection.CreateOrUpdate"); + using var scope = _backupProtectionPolicyProtectionPoliciesClientDiagnostics.CreateScope("BackupProtectionPolicyCollection.CreateOrUpdate"); scope.Start(); try { - var response = _protectionPolicyResourceProtectionPoliciesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, policyName, data, cancellationToken); - var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new ProtectionPolicyResource(Client, response), response.GetRawResponse())); + var response = _backupProtectionPolicyProtectionPoliciesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, policyName, data, cancellationToken); + var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new BackupProtectionPolicyResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -165,18 +165,18 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil w /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string policyName, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string policyName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(policyName, nameof(policyName)); - using var scope = _protectionPolicyResourceProtectionPoliciesClientDiagnostics.CreateScope("ProtectionPolicyResourceCollection.Get"); + using var scope = _backupProtectionPolicyProtectionPoliciesClientDiagnostics.CreateScope("BackupProtectionPolicyCollection.Get"); scope.Start(); try { - var response = await _protectionPolicyResourceProtectionPoliciesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, policyName, cancellationToken).ConfigureAwait(false); + var response = await _backupProtectionPolicyProtectionPoliciesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, policyName, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new ProtectionPolicyResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new BackupProtectionPolicyResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -203,18 +203,18 @@ public virtual async Task> GetAsync(string po /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string policyName, CancellationToken cancellationToken = default) + public virtual Response Get(string policyName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(policyName, nameof(policyName)); - using var scope = _protectionPolicyResourceProtectionPoliciesClientDiagnostics.CreateScope("ProtectionPolicyResourceCollection.Get"); + using var scope = _backupProtectionPolicyProtectionPoliciesClientDiagnostics.CreateScope("BackupProtectionPolicyCollection.Get"); scope.Start(); try { - var response = _protectionPolicyResourceProtectionPoliciesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, policyName, cancellationToken); + var response = _backupProtectionPolicyProtectionPoliciesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, policyName, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new ProtectionPolicyResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new BackupProtectionPolicyResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -239,12 +239,12 @@ public virtual Response Get(string policyName, Cancell /// /// OData filter options. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(string filter = null, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string filter = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _protectionPolicyResourceBackupPoliciesRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, filter); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _protectionPolicyResourceBackupPoliciesRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, _vaultName, filter); - return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new ProtectionPolicyResource(Client, ProtectionPolicyResourceData.DeserializeProtectionPolicyResourceData(e)), _protectionPolicyResourceBackupPoliciesClientDiagnostics, Pipeline, "ProtectionPolicyResourceCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _backupProtectionPolicyBackupPoliciesRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, filter); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _backupProtectionPolicyBackupPoliciesRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, _vaultName, filter); + return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new BackupProtectionPolicyResource(Client, BackupProtectionPolicyData.DeserializeBackupProtectionPolicyData(e)), _backupProtectionPolicyBackupPoliciesClientDiagnostics, Pipeline, "BackupProtectionPolicyCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -263,12 +263,12 @@ public virtual AsyncPageable GetAllAsync(string filter /// /// OData filter options. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(string filter = null, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string filter = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _protectionPolicyResourceBackupPoliciesRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, filter); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _protectionPolicyResourceBackupPoliciesRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, _vaultName, filter); - return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new ProtectionPolicyResource(Client, ProtectionPolicyResourceData.DeserializeProtectionPolicyResourceData(e)), _protectionPolicyResourceBackupPoliciesClientDiagnostics, Pipeline, "ProtectionPolicyResourceCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _backupProtectionPolicyBackupPoliciesRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, filter); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _backupProtectionPolicyBackupPoliciesRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, _vaultName, filter); + return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new BackupProtectionPolicyResource(Client, BackupProtectionPolicyData.DeserializeBackupProtectionPolicyData(e)), _backupProtectionPolicyBackupPoliciesClientDiagnostics, Pipeline, "BackupProtectionPolicyCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -292,11 +292,11 @@ public virtual async Task> ExistsAsync(string policyName, Cancell { Argument.AssertNotNullOrEmpty(policyName, nameof(policyName)); - using var scope = _protectionPolicyResourceProtectionPoliciesClientDiagnostics.CreateScope("ProtectionPolicyResourceCollection.Exists"); + using var scope = _backupProtectionPolicyProtectionPoliciesClientDiagnostics.CreateScope("BackupProtectionPolicyCollection.Exists"); scope.Start(); try { - var response = await _protectionPolicyResourceProtectionPoliciesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, policyName, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _backupProtectionPolicyProtectionPoliciesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, policyName, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -327,11 +327,11 @@ public virtual Response Exists(string policyName, CancellationToken cancel { Argument.AssertNotNullOrEmpty(policyName, nameof(policyName)); - using var scope = _protectionPolicyResourceProtectionPoliciesClientDiagnostics.CreateScope("ProtectionPolicyResourceCollection.Exists"); + using var scope = _backupProtectionPolicyProtectionPoliciesClientDiagnostics.CreateScope("BackupProtectionPolicyCollection.Exists"); scope.Start(); try { - var response = _protectionPolicyResourceProtectionPoliciesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, policyName, cancellationToken: cancellationToken); + var response = _backupProtectionPolicyProtectionPoliciesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, policyName, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -341,7 +341,7 @@ public virtual Response Exists(string policyName, CancellationToken cancel } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -351,7 +351,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionPolicyData.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionPolicyData.cs new file mode 100644 index 0000000000000..159f597298869 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionPolicyData.cs @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure; +using Azure.Core; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.RecoveryServicesBackup.Models; + +namespace Azure.ResourceManager.RecoveryServicesBackup +{ + /// A class representing the BackupProtectionPolicy data model. + public partial class BackupProtectionPolicyData : TrackedResourceData + { + /// Initializes a new instance of BackupProtectionPolicyData. + /// The location. + public BackupProtectionPolicyData(AzureLocation location) : base(location) + { + } + + /// Initializes a new instance of BackupProtectionPolicyData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// + /// ProtectionPolicyResource properties + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , and . + /// + /// Optional ETag. + internal BackupProtectionPolicyData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, BackupGenericProtectionPolicy properties, ETag? eTag) : base(id, name, resourceType, systemData, tags, location) + { + Properties = properties; + ETag = eTag; + } + + /// + /// ProtectionPolicyResource properties + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , and . + /// + public BackupGenericProtectionPolicy Properties { get; set; } + /// Optional ETag. + public ETag? ETag { get; set; } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ProtectionPolicyResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionPolicyResource.cs similarity index 64% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ProtectionPolicyResource.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionPolicyResource.cs index fc45f098cd1d6..5d4951ddc6cd2 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ProtectionPolicyResource.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionPolicyResource.cs @@ -14,56 +14,51 @@ using Azure.Core; using Azure.Core.Pipeline; using Azure.ResourceManager; -using Azure.ResourceManager.RecoveryServicesBackup.Models; using Azure.ResourceManager.Resources; namespace Azure.ResourceManager.RecoveryServicesBackup { /// - /// A Class representing a ProtectionPolicyResource along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetProtectionPolicyResource method. - /// Otherwise you can get one from its parent resource using the GetProtectionPolicyResource method. + /// A Class representing a BackupProtectionPolicy along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetBackupProtectionPolicyResource method. + /// Otherwise you can get one from its parent resource using the GetBackupProtectionPolicy method. /// - public partial class ProtectionPolicyResource : ArmResource + public partial class BackupProtectionPolicyResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string vaultName, string policyName) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _protectionPolicyResourceProtectionPoliciesClientDiagnostics; - private readonly ProtectionPoliciesRestOperations _protectionPolicyResourceProtectionPoliciesRestClient; - private readonly ClientDiagnostics _protectionPolicyOperationStatusesClientDiagnostics; - private readonly ProtectionPolicyOperationStatusesRestOperations _protectionPolicyOperationStatusesRestClient; - private readonly ProtectionPolicyResourceData _data; + private readonly ClientDiagnostics _backupProtectionPolicyProtectionPoliciesClientDiagnostics; + private readonly ProtectionPoliciesRestOperations _backupProtectionPolicyProtectionPoliciesRestClient; + private readonly BackupProtectionPolicyData _data; - /// Initializes a new instance of the class for mocking. - protected ProtectionPolicyResource() + /// Initializes a new instance of the class for mocking. + protected BackupProtectionPolicyResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal ProtectionPolicyResource(ArmClient client, ProtectionPolicyResourceData data) : this(client, data.Id) + internal BackupProtectionPolicyResource(ArmClient client, BackupProtectionPolicyData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal ProtectionPolicyResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal BackupProtectionPolicyResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _protectionPolicyResourceProtectionPoliciesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string protectionPolicyResourceProtectionPoliciesApiVersion); - _protectionPolicyResourceProtectionPoliciesRestClient = new ProtectionPoliciesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, protectionPolicyResourceProtectionPoliciesApiVersion); - _protectionPolicyOperationStatusesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ProviderConstants.DefaultProviderNamespace, Diagnostics); - _protectionPolicyOperationStatusesRestClient = new ProtectionPolicyOperationStatusesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); + _backupProtectionPolicyProtectionPoliciesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string backupProtectionPolicyProtectionPoliciesApiVersion); + _backupProtectionPolicyProtectionPoliciesRestClient = new ProtectionPoliciesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, backupProtectionPolicyProtectionPoliciesApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -77,7 +72,7 @@ internal ProtectionPolicyResource(ArmClient client, ResourceIdentifier id) : bas /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual ProtectionPolicyResourceData Data + public virtual BackupProtectionPolicyData Data { get { @@ -108,16 +103,16 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _protectionPolicyResourceProtectionPoliciesClientDiagnostics.CreateScope("ProtectionPolicyResource.Get"); + using var scope = _backupProtectionPolicyProtectionPoliciesClientDiagnostics.CreateScope("BackupProtectionPolicyResource.Get"); scope.Start(); try { - var response = await _protectionPolicyResourceProtectionPoliciesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _backupProtectionPolicyProtectionPoliciesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new ProtectionPolicyResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new BackupProtectionPolicyResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -141,16 +136,16 @@ public virtual async Task> GetAsync(Cancellat /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _protectionPolicyResourceProtectionPoliciesClientDiagnostics.CreateScope("ProtectionPolicyResource.Get"); + using var scope = _backupProtectionPolicyProtectionPoliciesClientDiagnostics.CreateScope("BackupProtectionPolicyResource.Get"); scope.Start(); try { - var response = _protectionPolicyResourceProtectionPoliciesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _backupProtectionPolicyProtectionPoliciesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new ProtectionPolicyResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new BackupProtectionPolicyResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -177,12 +172,12 @@ public virtual Response Get(CancellationToken cancella /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _protectionPolicyResourceProtectionPoliciesClientDiagnostics.CreateScope("ProtectionPolicyResource.Delete"); + using var scope = _backupProtectionPolicyProtectionPoliciesClientDiagnostics.CreateScope("BackupProtectionPolicyResource.Delete"); scope.Start(); try { - var response = await _protectionPolicyResourceProtectionPoliciesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new RecoveryServicesBackupArmOperation(_protectionPolicyResourceProtectionPoliciesClientDiagnostics, Pipeline, _protectionPolicyResourceProtectionPoliciesRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = await _backupProtectionPolicyProtectionPoliciesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new RecoveryServicesBackupArmOperation(_backupProtectionPolicyProtectionPoliciesClientDiagnostics, Pipeline, _backupProtectionPolicyProtectionPoliciesRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -212,12 +207,12 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _protectionPolicyResourceProtectionPoliciesClientDiagnostics.CreateScope("ProtectionPolicyResource.Delete"); + using var scope = _backupProtectionPolicyProtectionPoliciesClientDiagnostics.CreateScope("BackupProtectionPolicyResource.Delete"); scope.Start(); try { - var response = _protectionPolicyResourceProtectionPoliciesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new RecoveryServicesBackupArmOperation(_protectionPolicyResourceProtectionPoliciesClientDiagnostics, Pipeline, _protectionPolicyResourceProtectionPoliciesRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = _backupProtectionPolicyProtectionPoliciesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new RecoveryServicesBackupArmOperation(_backupProtectionPolicyProtectionPoliciesClientDiagnostics, Pipeline, _backupProtectionPolicyProtectionPoliciesRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -247,16 +242,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// resource backup policy. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, ProtectionPolicyResourceData data, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(WaitUntil waitUntil, BackupProtectionPolicyData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _protectionPolicyResourceProtectionPoliciesClientDiagnostics.CreateScope("ProtectionPolicyResource.Update"); + using var scope = _backupProtectionPolicyProtectionPoliciesClientDiagnostics.CreateScope("BackupProtectionPolicyResource.Update"); scope.Start(); try { - var response = await _protectionPolicyResourceProtectionPoliciesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new ProtectionPolicyResource(Client, response), response.GetRawResponse())); + var response = await _backupProtectionPolicyProtectionPoliciesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new BackupProtectionPolicyResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -286,16 +281,16 @@ public virtual async Task> UpdateAsync(Wa /// resource backup policy. /// The cancellation token to use. /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, ProtectionPolicyResourceData data, CancellationToken cancellationToken = default) + public virtual ArmOperation Update(WaitUntil waitUntil, BackupProtectionPolicyData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _protectionPolicyResourceProtectionPoliciesClientDiagnostics.CreateScope("ProtectionPolicyResource.Update"); + using var scope = _backupProtectionPolicyProtectionPoliciesClientDiagnostics.CreateScope("BackupProtectionPolicyResource.Update"); scope.Start(); try { - var response = _protectionPolicyResourceProtectionPoliciesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new ProtectionPolicyResource(Client, response), response.GetRawResponse())); + var response = _backupProtectionPolicyProtectionPoliciesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new BackupProtectionPolicyResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -307,80 +302,6 @@ public virtual ArmOperation Update(WaitUntil waitUntil } } - /// - /// Provides the status of the asynchronous operations like backup, restore. The status can be in progress, completed - /// or failed. You can refer to the Operation Status enum for all the possible states of an operation. Some operations - /// create jobs. This method returns the list of jobs associated with operation. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}/operations/{operationId} - /// - /// - /// Operation Id - /// ProtectionPolicyOperationStatuses_Get - /// - /// - /// - /// Operation ID which represents an operation whose status needs to be fetched. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual async Task> GetProtectionPolicyOperationStatusAsync(string operationId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(operationId, nameof(operationId)); - - using var scope = _protectionPolicyOperationStatusesClientDiagnostics.CreateScope("ProtectionPolicyResource.GetProtectionPolicyOperationStatus"); - scope.Start(); - try - { - var response = await _protectionPolicyOperationStatusesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, operationId, cancellationToken).ConfigureAwait(false); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Provides the status of the asynchronous operations like backup, restore. The status can be in progress, completed - /// or failed. You can refer to the Operation Status enum for all the possible states of an operation. Some operations - /// create jobs. This method returns the list of jobs associated with operation. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}/operations/{operationId} - /// - /// - /// Operation Id - /// ProtectionPolicyOperationStatuses_Get - /// - /// - /// - /// Operation ID which represents an operation whose status needs to be fetched. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual Response GetProtectionPolicyOperationStatus(string operationId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(operationId, nameof(operationId)); - - using var scope = _protectionPolicyOperationStatusesClientDiagnostics.CreateScope("ProtectionPolicyResource.GetProtectionPolicyOperationStatus"); - scope.Start(); - try - { - var response = _protectionPolicyOperationStatusesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, operationId, cancellationToken); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - /// /// Add a tag to the current resource. /// @@ -398,12 +319,12 @@ public virtual Response GetProtectionPolicyOperationStatus(stri /// The value for the tag. /// The cancellation token to use. /// or is null. - public virtual async Task> AddTagAsync(string key, string value, CancellationToken cancellationToken = default) + public virtual async Task> AddTagAsync(string key, string value, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); Argument.AssertNotNull(value, nameof(value)); - using var scope = _protectionPolicyResourceProtectionPoliciesClientDiagnostics.CreateScope("ProtectionPolicyResource.AddTag"); + using var scope = _backupProtectionPolicyProtectionPoliciesClientDiagnostics.CreateScope("BackupProtectionPolicyResource.AddTag"); scope.Start(); try { @@ -412,8 +333,8 @@ public virtual async Task> AddTagAsync(string var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); originalTags.Value.Data.TagValues[key] = value; await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); - var originalResponse = await _protectionPolicyResourceProtectionPoliciesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new ProtectionPolicyResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = await _backupProtectionPolicyProtectionPoliciesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new BackupProtectionPolicyResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { @@ -447,12 +368,12 @@ public virtual async Task> AddTagAsync(string /// The value for the tag. /// The cancellation token to use. /// or is null. - public virtual Response AddTag(string key, string value, CancellationToken cancellationToken = default) + public virtual Response AddTag(string key, string value, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); Argument.AssertNotNull(value, nameof(value)); - using var scope = _protectionPolicyResourceProtectionPoliciesClientDiagnostics.CreateScope("ProtectionPolicyResource.AddTag"); + using var scope = _backupProtectionPolicyProtectionPoliciesClientDiagnostics.CreateScope("BackupProtectionPolicyResource.AddTag"); scope.Start(); try { @@ -461,8 +382,8 @@ public virtual Response AddTag(string key, string valu var originalTags = GetTagResource().Get(cancellationToken); originalTags.Value.Data.TagValues[key] = value; GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); - var originalResponse = _protectionPolicyResourceProtectionPoliciesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - return Response.FromValue(new ProtectionPolicyResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = _backupProtectionPolicyProtectionPoliciesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + return Response.FromValue(new BackupProtectionPolicyResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { @@ -495,11 +416,11 @@ public virtual Response AddTag(string key, string valu /// The set of tags to use as replacement. /// The cancellation token to use. /// is null. - public virtual async Task> SetTagsAsync(IDictionary tags, CancellationToken cancellationToken = default) + public virtual async Task> SetTagsAsync(IDictionary tags, CancellationToken cancellationToken = default) { Argument.AssertNotNull(tags, nameof(tags)); - using var scope = _protectionPolicyResourceProtectionPoliciesClientDiagnostics.CreateScope("ProtectionPolicyResource.SetTags"); + using var scope = _backupProtectionPolicyProtectionPoliciesClientDiagnostics.CreateScope("BackupProtectionPolicyResource.SetTags"); scope.Start(); try { @@ -509,8 +430,8 @@ public virtual async Task> SetTagsAsync(IDict var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); originalTags.Value.Data.TagValues.ReplaceWith(tags); await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); - var originalResponse = await _protectionPolicyResourceProtectionPoliciesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new ProtectionPolicyResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = await _backupProtectionPolicyProtectionPoliciesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new BackupProtectionPolicyResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { @@ -543,11 +464,11 @@ public virtual async Task> SetTagsAsync(IDict /// The set of tags to use as replacement. /// The cancellation token to use. /// is null. - public virtual Response SetTags(IDictionary tags, CancellationToken cancellationToken = default) + public virtual Response SetTags(IDictionary tags, CancellationToken cancellationToken = default) { Argument.AssertNotNull(tags, nameof(tags)); - using var scope = _protectionPolicyResourceProtectionPoliciesClientDiagnostics.CreateScope("ProtectionPolicyResource.SetTags"); + using var scope = _backupProtectionPolicyProtectionPoliciesClientDiagnostics.CreateScope("BackupProtectionPolicyResource.SetTags"); scope.Start(); try { @@ -557,8 +478,8 @@ public virtual Response SetTags(IDictionary SetTags(IDictionary The key for the tag. /// The cancellation token to use. /// is null. - public virtual async Task> RemoveTagAsync(string key, CancellationToken cancellationToken = default) + public virtual async Task> RemoveTagAsync(string key, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); - using var scope = _protectionPolicyResourceProtectionPoliciesClientDiagnostics.CreateScope("ProtectionPolicyResource.RemoveTag"); + using var scope = _backupProtectionPolicyProtectionPoliciesClientDiagnostics.CreateScope("BackupProtectionPolicyResource.RemoveTag"); scope.Start(); try { @@ -604,8 +525,8 @@ public virtual async Task> RemoveTagAsync(str var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); originalTags.Value.Data.TagValues.Remove(key); await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); - var originalResponse = await _protectionPolicyResourceProtectionPoliciesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new ProtectionPolicyResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = await _backupProtectionPolicyProtectionPoliciesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new BackupProtectionPolicyResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { @@ -638,11 +559,11 @@ public virtual async Task> RemoveTagAsync(str /// The key for the tag. /// The cancellation token to use. /// is null. - public virtual Response RemoveTag(string key, CancellationToken cancellationToken = default) + public virtual Response RemoveTag(string key, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); - using var scope = _protectionPolicyResourceProtectionPoliciesClientDiagnostics.CreateScope("ProtectionPolicyResource.RemoveTag"); + using var scope = _backupProtectionPolicyProtectionPoliciesClientDiagnostics.CreateScope("BackupProtectionPolicyResource.RemoveTag"); scope.Start(); try { @@ -651,8 +572,8 @@ public virtual Response RemoveTag(string key, Cancella var originalTags = GetTagResource().Get(cancellationToken); originalTags.Value.Data.TagValues.Remove(key); GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); - var originalResponse = _protectionPolicyResourceProtectionPoliciesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - return Response.FromValue(new ProtectionPolicyResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = _backupProtectionPolicyProtectionPoliciesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + return Response.FromValue(new BackupProtectionPolicyResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RecoveryPointResourceCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupRecoveryPointCollection.cs similarity index 62% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RecoveryPointResourceCollection.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupRecoveryPointCollection.cs index 28179f4acf2dc..567693751e31a 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RecoveryPointResourceCollection.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupRecoveryPointCollection.cs @@ -19,28 +19,28 @@ namespace Azure.ResourceManager.RecoveryServicesBackup { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetRecoveryPointResources method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetBackupRecoveryPoints method from an instance of . /// - public partial class RecoveryPointResourceCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class BackupRecoveryPointCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _recoveryPointResourceRecoveryPointsClientDiagnostics; - private readonly RecoveryPointsRestOperations _recoveryPointResourceRecoveryPointsRestClient; + private readonly ClientDiagnostics _backupRecoveryPointRecoveryPointsClientDiagnostics; + private readonly RecoveryPointsRestOperations _backupRecoveryPointRecoveryPointsRestClient; - /// Initializes a new instance of the class for mocking. - protected RecoveryPointResourceCollection() + /// Initializes a new instance of the class for mocking. + protected BackupRecoveryPointCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal RecoveryPointResourceCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal BackupRecoveryPointCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _recoveryPointResourceRecoveryPointsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", RecoveryPointResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(RecoveryPointResource.ResourceType, out string recoveryPointResourceRecoveryPointsApiVersion); - _recoveryPointResourceRecoveryPointsRestClient = new RecoveryPointsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, recoveryPointResourceRecoveryPointsApiVersion); + _backupRecoveryPointRecoveryPointsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", BackupRecoveryPointResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(BackupRecoveryPointResource.ResourceType, out string backupRecoveryPointRecoveryPointsApiVersion); + _backupRecoveryPointRecoveryPointsRestClient = new RecoveryPointsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, backupRecoveryPointRecoveryPointsApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -48,8 +48,8 @@ internal RecoveryPointResourceCollection(ArmClient client, ResourceIdentifier id internal static void ValidateResourceId(ResourceIdentifier id) { - if (id.ResourceType != ProtectedItemResource.ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ProtectedItemResource.ResourceType), nameof(id)); + if (id.ResourceType != BackupProtectedItemResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, BackupProtectedItemResource.ResourceType), nameof(id)); } /// @@ -70,18 +70,18 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string recoveryPointId, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string recoveryPointId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(recoveryPointId, nameof(recoveryPointId)); - using var scope = _recoveryPointResourceRecoveryPointsClientDiagnostics.CreateScope("RecoveryPointResourceCollection.Get"); + using var scope = _backupRecoveryPointRecoveryPointsClientDiagnostics.CreateScope("BackupRecoveryPointCollection.Get"); scope.Start(); try { - var response = await _recoveryPointResourceRecoveryPointsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, recoveryPointId, cancellationToken).ConfigureAwait(false); + var response = await _backupRecoveryPointRecoveryPointsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, recoveryPointId, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RecoveryPointResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new BackupRecoveryPointResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -108,18 +108,18 @@ public virtual async Task> GetAsync(string recov /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string recoveryPointId, CancellationToken cancellationToken = default) + public virtual Response Get(string recoveryPointId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(recoveryPointId, nameof(recoveryPointId)); - using var scope = _recoveryPointResourceRecoveryPointsClientDiagnostics.CreateScope("RecoveryPointResourceCollection.Get"); + using var scope = _backupRecoveryPointRecoveryPointsClientDiagnostics.CreateScope("BackupRecoveryPointCollection.Get"); scope.Start(); try { - var response = _recoveryPointResourceRecoveryPointsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, recoveryPointId, cancellationToken); + var response = _backupRecoveryPointRecoveryPointsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, recoveryPointId, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RecoveryPointResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new BackupRecoveryPointResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -143,12 +143,12 @@ public virtual Response Get(string recoveryPointId, Cance /// /// OData filter options. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(string filter = null, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string filter = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _recoveryPointResourceRecoveryPointsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, filter); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _recoveryPointResourceRecoveryPointsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, filter); - return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new RecoveryPointResource(Client, RecoveryPointResourceData.DeserializeRecoveryPointResourceData(e)), _recoveryPointResourceRecoveryPointsClientDiagnostics, Pipeline, "RecoveryPointResourceCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _backupRecoveryPointRecoveryPointsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, filter); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _backupRecoveryPointRecoveryPointsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, filter); + return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new BackupRecoveryPointResource(Client, BackupRecoveryPointData.DeserializeBackupRecoveryPointData(e)), _backupRecoveryPointRecoveryPointsClientDiagnostics, Pipeline, "BackupRecoveryPointCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -166,12 +166,12 @@ public virtual AsyncPageable GetAllAsync(string filter = /// /// OData filter options. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(string filter = null, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string filter = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _recoveryPointResourceRecoveryPointsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, filter); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _recoveryPointResourceRecoveryPointsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, filter); - return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new RecoveryPointResource(Client, RecoveryPointResourceData.DeserializeRecoveryPointResourceData(e)), _recoveryPointResourceRecoveryPointsClientDiagnostics, Pipeline, "RecoveryPointResourceCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _backupRecoveryPointRecoveryPointsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, filter); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _backupRecoveryPointRecoveryPointsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, filter); + return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new BackupRecoveryPointResource(Client, BackupRecoveryPointData.DeserializeBackupRecoveryPointData(e)), _backupRecoveryPointRecoveryPointsClientDiagnostics, Pipeline, "BackupRecoveryPointCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -195,11 +195,11 @@ public virtual async Task> ExistsAsync(string recoveryPointId, Ca { Argument.AssertNotNullOrEmpty(recoveryPointId, nameof(recoveryPointId)); - using var scope = _recoveryPointResourceRecoveryPointsClientDiagnostics.CreateScope("RecoveryPointResourceCollection.Exists"); + using var scope = _backupRecoveryPointRecoveryPointsClientDiagnostics.CreateScope("BackupRecoveryPointCollection.Exists"); scope.Start(); try { - var response = await _recoveryPointResourceRecoveryPointsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, recoveryPointId, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _backupRecoveryPointRecoveryPointsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, recoveryPointId, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -230,11 +230,11 @@ public virtual Response Exists(string recoveryPointId, CancellationToken c { Argument.AssertNotNullOrEmpty(recoveryPointId, nameof(recoveryPointId)); - using var scope = _recoveryPointResourceRecoveryPointsClientDiagnostics.CreateScope("RecoveryPointResourceCollection.Exists"); + using var scope = _backupRecoveryPointRecoveryPointsClientDiagnostics.CreateScope("BackupRecoveryPointCollection.Exists"); scope.Start(); try { - var response = _recoveryPointResourceRecoveryPointsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, recoveryPointId, cancellationToken: cancellationToken); + var response = _backupRecoveryPointRecoveryPointsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, recoveryPointId, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -244,7 +244,7 @@ public virtual Response Exists(string recoveryPointId, CancellationToken c } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -254,7 +254,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupRecoveryPointData.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupRecoveryPointData.cs new file mode 100644 index 0000000000000..eeeb6c6f68635 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupRecoveryPointData.cs @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure; +using Azure.Core; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.RecoveryServicesBackup.Models; + +namespace Azure.ResourceManager.RecoveryServicesBackup +{ + /// A class representing the BackupRecoveryPoint data model. + public partial class BackupRecoveryPointData : TrackedResourceData + { + /// Initializes a new instance of BackupRecoveryPointData. + /// The location. + public BackupRecoveryPointData(AzureLocation location) : base(location) + { + } + + /// Initializes a new instance of BackupRecoveryPointData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// + /// RecoveryPointResource properties + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , , and . + /// + /// Optional ETag. + internal BackupRecoveryPointData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, BackupGenericRecoveryPoint properties, ETag? eTag) : base(id, name, resourceType, systemData, tags, location) + { + Properties = properties; + ETag = eTag; + } + + /// + /// RecoveryPointResource properties + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , , and . + /// + public BackupGenericRecoveryPoint Properties { get; set; } + /// Optional ETag. + public ETag? ETag { get; set; } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RecoveryPointResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupRecoveryPointResource.cs similarity index 82% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RecoveryPointResource.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupRecoveryPointResource.cs index ba649eb654a35..69d8f1f2129c2 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RecoveryPointResource.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupRecoveryPointResource.cs @@ -18,52 +18,52 @@ namespace Azure.ResourceManager.RecoveryServicesBackup { /// - /// A Class representing a RecoveryPointResource along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetRecoveryPointResource method. - /// Otherwise you can get one from its parent resource using the GetRecoveryPointResource method. + /// A Class representing a BackupRecoveryPoint along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetBackupRecoveryPointResource method. + /// Otherwise you can get one from its parent resource using the GetBackupRecoveryPoint method. /// - public partial class RecoveryPointResource : ArmResource + public partial class BackupRecoveryPointResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, string recoveryPointId) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/{recoveryPointId}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _recoveryPointResourceRecoveryPointsClientDiagnostics; - private readonly RecoveryPointsRestOperations _recoveryPointResourceRecoveryPointsRestClient; + private readonly ClientDiagnostics _backupRecoveryPointRecoveryPointsClientDiagnostics; + private readonly RecoveryPointsRestOperations _backupRecoveryPointRecoveryPointsRestClient; private readonly ClientDiagnostics _defaultClientDiagnostics; private readonly RecoveryServicesBackupRestOperations _defaultRestClient; private readonly ClientDiagnostics _restoresClientDiagnostics; private readonly RestoresRestOperations _restoresRestClient; private readonly ClientDiagnostics _itemLevelRecoveryConnectionsClientDiagnostics; private readonly ItemLevelRecoveryConnectionsRestOperations _itemLevelRecoveryConnectionsRestClient; - private readonly RecoveryPointResourceData _data; + private readonly BackupRecoveryPointData _data; - /// Initializes a new instance of the class for mocking. - protected RecoveryPointResource() + /// Initializes a new instance of the class for mocking. + protected BackupRecoveryPointResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal RecoveryPointResource(ArmClient client, RecoveryPointResourceData data) : this(client, data.Id) + internal BackupRecoveryPointResource(ArmClient client, BackupRecoveryPointData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal RecoveryPointResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal BackupRecoveryPointResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _recoveryPointResourceRecoveryPointsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string recoveryPointResourceRecoveryPointsApiVersion); - _recoveryPointResourceRecoveryPointsRestClient = new RecoveryPointsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, recoveryPointResourceRecoveryPointsApiVersion); + _backupRecoveryPointRecoveryPointsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string backupRecoveryPointRecoveryPointsApiVersion); + _backupRecoveryPointRecoveryPointsRestClient = new RecoveryPointsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, backupRecoveryPointRecoveryPointsApiVersion); _defaultClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ProviderConstants.DefaultProviderNamespace, Diagnostics); _defaultRestClient = new RecoveryServicesBackupRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); _restoresClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ProviderConstants.DefaultProviderNamespace, Diagnostics); @@ -83,7 +83,7 @@ internal RecoveryPointResource(ArmClient client, ResourceIdentifier id) : base(c /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual RecoveryPointResourceData Data + public virtual BackupRecoveryPointData Data { get { @@ -114,16 +114,16 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _recoveryPointResourceRecoveryPointsClientDiagnostics.CreateScope("RecoveryPointResource.Get"); + using var scope = _backupRecoveryPointRecoveryPointsClientDiagnostics.CreateScope("BackupRecoveryPointResource.Get"); scope.Start(); try { - var response = await _recoveryPointResourceRecoveryPointsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _backupRecoveryPointRecoveryPointsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RecoveryPointResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new BackupRecoveryPointResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -147,16 +147,16 @@ public virtual async Task> GetAsync(Cancellation /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _recoveryPointResourceRecoveryPointsClientDiagnostics.CreateScope("RecoveryPointResource.Get"); + using var scope = _backupRecoveryPointRecoveryPointsClientDiagnostics.CreateScope("BackupRecoveryPointResource.Get"); scope.Start(); try { - var response = _recoveryPointResourceRecoveryPointsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var response = _backupRecoveryPointRecoveryPointsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RecoveryPointResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new BackupRecoveryPointResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -186,7 +186,7 @@ public virtual async Task MoveRecoveryPointAsync(WaitUntil waitUnt { Argument.AssertNotNull(content, nameof(content)); - using var scope = _defaultClientDiagnostics.CreateScope("RecoveryPointResource.MoveRecoveryPoint"); + using var scope = _defaultClientDiagnostics.CreateScope("BackupRecoveryPointResource.MoveRecoveryPoint"); scope.Start(); try { @@ -224,7 +224,7 @@ public virtual ArmOperation MoveRecoveryPoint(WaitUntil waitUntil, MoveRPAcrossT { Argument.AssertNotNull(content, nameof(content)); - using var scope = _defaultClientDiagnostics.CreateScope("RecoveryPointResource.MoveRecoveryPoint"); + using var scope = _defaultClientDiagnostics.CreateScope("BackupRecoveryPointResource.MoveRecoveryPoint"); scope.Start(); try { @@ -256,19 +256,19 @@ public virtual ArmOperation MoveRecoveryPoint(WaitUntil waitUntil, MoveRPAcrossT /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// resource restore request. + /// resource restore request. /// The cancellation token to use. - /// is null. - public virtual async Task TriggerRestoreAsync(WaitUntil waitUntil, RestoreRequestResource restoreRequestResource, CancellationToken cancellationToken = default) + /// is null. + public virtual async Task TriggerRestoreAsync(WaitUntil waitUntil, TriggerRestoreContent content, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(restoreRequestResource, nameof(restoreRequestResource)); + Argument.AssertNotNull(content, nameof(content)); - using var scope = _restoresClientDiagnostics.CreateScope("RecoveryPointResource.TriggerRestore"); + using var scope = _restoresClientDiagnostics.CreateScope("BackupRecoveryPointResource.TriggerRestore"); scope.Start(); try { - var response = await _restoresRestClient.TriggerAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, restoreRequestResource, cancellationToken).ConfigureAwait(false); - var operation = new RecoveryServicesBackupArmOperation(_restoresClientDiagnostics, Pipeline, _restoresRestClient.CreateTriggerRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, restoreRequestResource).Request, response, OperationFinalStateVia.Location); + var response = await _restoresRestClient.TriggerAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken).ConfigureAwait(false); + var operation = new RecoveryServicesBackupArmOperation(_restoresClientDiagnostics, Pipeline, _restoresRestClient.CreateTriggerRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -295,19 +295,19 @@ public virtual async Task TriggerRestoreAsync(WaitUntil waitUntil, /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// resource restore request. + /// resource restore request. /// The cancellation token to use. - /// is null. - public virtual ArmOperation TriggerRestore(WaitUntil waitUntil, RestoreRequestResource restoreRequestResource, CancellationToken cancellationToken = default) + /// is null. + public virtual ArmOperation TriggerRestore(WaitUntil waitUntil, TriggerRestoreContent content, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(restoreRequestResource, nameof(restoreRequestResource)); + Argument.AssertNotNull(content, nameof(content)); - using var scope = _restoresClientDiagnostics.CreateScope("RecoveryPointResource.TriggerRestore"); + using var scope = _restoresClientDiagnostics.CreateScope("BackupRecoveryPointResource.TriggerRestore"); scope.Start(); try { - var response = _restoresRestClient.Trigger(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, restoreRequestResource, cancellationToken); - var operation = new RecoveryServicesBackupArmOperation(_restoresClientDiagnostics, Pipeline, _restoresRestClient.CreateTriggerRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, restoreRequestResource).Request, response, OperationFinalStateVia.Location); + var response = _restoresRestClient.Trigger(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken); + var operation = new RecoveryServicesBackupArmOperation(_restoresClientDiagnostics, Pipeline, _restoresRestClient.CreateTriggerRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -334,18 +334,18 @@ public virtual ArmOperation TriggerRestore(WaitUntil waitUntil, RestoreRequestRe /// /// /// - /// resource ILR request. + /// resource ILR request. /// The cancellation token to use. - /// is null. - public virtual async Task ProvisionItemLevelRecoveryConnectionAsync(ILRRequestResource ilrRequestResource, CancellationToken cancellationToken = default) + /// is null. + public virtual async Task ProvisionItemLevelRecoveryConnectionAsync(ProvisionIlrConnectionContent content, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(ilrRequestResource, nameof(ilrRequestResource)); + Argument.AssertNotNull(content, nameof(content)); - using var scope = _itemLevelRecoveryConnectionsClientDiagnostics.CreateScope("RecoveryPointResource.ProvisionItemLevelRecoveryConnection"); + using var scope = _itemLevelRecoveryConnectionsClientDiagnostics.CreateScope("BackupRecoveryPointResource.ProvisionItemLevelRecoveryConnection"); scope.Start(); try { - var response = await _itemLevelRecoveryConnectionsRestClient.ProvisionAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ilrRequestResource, cancellationToken).ConfigureAwait(false); + var response = await _itemLevelRecoveryConnectionsRestClient.ProvisionAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken).ConfigureAwait(false); return response; } catch (Exception e) @@ -370,18 +370,18 @@ public virtual async Task ProvisionItemLevelRecoveryConnectionAsync(IL /// /// /// - /// resource ILR request. + /// resource ILR request. /// The cancellation token to use. - /// is null. - public virtual Response ProvisionItemLevelRecoveryConnection(ILRRequestResource ilrRequestResource, CancellationToken cancellationToken = default) + /// is null. + public virtual Response ProvisionItemLevelRecoveryConnection(ProvisionIlrConnectionContent content, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(ilrRequestResource, nameof(ilrRequestResource)); + Argument.AssertNotNull(content, nameof(content)); - using var scope = _itemLevelRecoveryConnectionsClientDiagnostics.CreateScope("RecoveryPointResource.ProvisionItemLevelRecoveryConnection"); + using var scope = _itemLevelRecoveryConnectionsClientDiagnostics.CreateScope("BackupRecoveryPointResource.ProvisionItemLevelRecoveryConnection"); scope.Start(); try { - var response = _itemLevelRecoveryConnectionsRestClient.Provision(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ilrRequestResource, cancellationToken); + var response = _itemLevelRecoveryConnectionsRestClient.Provision(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken); return response; } catch (Exception e) @@ -408,7 +408,7 @@ public virtual Response ProvisionItemLevelRecoveryConnection(ILRRequestResource /// The cancellation token to use. public virtual async Task RevokeItemLevelRecoveryConnectionAsync(CancellationToken cancellationToken = default) { - using var scope = _itemLevelRecoveryConnectionsClientDiagnostics.CreateScope("RecoveryPointResource.RevokeItemLevelRecoveryConnection"); + using var scope = _itemLevelRecoveryConnectionsClientDiagnostics.CreateScope("BackupRecoveryPointResource.RevokeItemLevelRecoveryConnection"); scope.Start(); try { @@ -439,7 +439,7 @@ public virtual async Task RevokeItemLevelRecoveryConnectionAsync(Cance /// The cancellation token to use. public virtual Response RevokeItemLevelRecoveryConnection(CancellationToken cancellationToken = default) { - using var scope = _itemLevelRecoveryConnectionsClientDiagnostics.CreateScope("RecoveryPointResource.RevokeItemLevelRecoveryConnection"); + using var scope = _itemLevelRecoveryConnectionsClientDiagnostics.CreateScope("BackupRecoveryPointResource.RevokeItemLevelRecoveryConnection"); scope.Start(); try { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceConfigResourceCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceConfigCollection.cs similarity index 77% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceConfigResourceCollection.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceConfigCollection.cs index 4d094fec469d2..f8e5c269ff32b 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceConfigResourceCollection.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceConfigCollection.cs @@ -20,26 +20,26 @@ namespace Azure.ResourceManager.RecoveryServicesBackup /// /// A class representing a collection of and their operations. /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetBackupResourceConfigResources method from an instance of . + /// To get a instance call the GetBackupResourceConfigs method from an instance of . /// - public partial class BackupResourceConfigResourceCollection : ArmCollection + public partial class BackupResourceConfigCollection : ArmCollection { - private readonly ClientDiagnostics _backupResourceConfigResourceBackupResourceStorageConfigsNonCRRClientDiagnostics; - private readonly BackupResourceStorageConfigsNonCRRRestOperations _backupResourceConfigResourceBackupResourceStorageConfigsNonCRRRestClient; + private readonly ClientDiagnostics _backupResourceConfigBackupResourceStorageConfigsNonCRRClientDiagnostics; + private readonly BackupResourceStorageConfigsNonCRRRestOperations _backupResourceConfigBackupResourceStorageConfigsNonCRRRestClient; - /// Initializes a new instance of the class for mocking. - protected BackupResourceConfigResourceCollection() + /// Initializes a new instance of the class for mocking. + protected BackupResourceConfigCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal BackupResourceConfigResourceCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal BackupResourceConfigCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _backupResourceConfigResourceBackupResourceStorageConfigsNonCRRClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", BackupResourceConfigResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(BackupResourceConfigResource.ResourceType, out string backupResourceConfigResourceBackupResourceStorageConfigsNonCRRApiVersion); - _backupResourceConfigResourceBackupResourceStorageConfigsNonCRRRestClient = new BackupResourceStorageConfigsNonCRRRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, backupResourceConfigResourceBackupResourceStorageConfigsNonCRRApiVersion); + _backupResourceConfigBackupResourceStorageConfigsNonCRRClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", BackupResourceConfigResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(BackupResourceConfigResource.ResourceType, out string backupResourceConfigBackupResourceStorageConfigsNonCRRApiVersion); + _backupResourceConfigBackupResourceStorageConfigsNonCRRRestClient = new BackupResourceStorageConfigsNonCRRRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, backupResourceConfigBackupResourceStorageConfigsNonCRRApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -70,16 +70,16 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string vaultName, BackupResourceConfigResourceData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string vaultName, BackupResourceConfigData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _backupResourceConfigResourceBackupResourceStorageConfigsNonCRRClientDiagnostics.CreateScope("BackupResourceConfigResourceCollection.CreateOrUpdate"); + using var scope = _backupResourceConfigBackupResourceStorageConfigsNonCRRClientDiagnostics.CreateScope("BackupResourceConfigCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _backupResourceConfigResourceBackupResourceStorageConfigsNonCRRRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, vaultName, data, cancellationToken).ConfigureAwait(false); + var response = await _backupResourceConfigBackupResourceStorageConfigsNonCRRRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, vaultName, data, cancellationToken).ConfigureAwait(false); var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new BackupResourceConfigResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); @@ -111,16 +111,16 @@ public virtual async Task> CreateOrUp /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string vaultName, BackupResourceConfigResourceData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string vaultName, BackupResourceConfigData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _backupResourceConfigResourceBackupResourceStorageConfigsNonCRRClientDiagnostics.CreateScope("BackupResourceConfigResourceCollection.CreateOrUpdate"); + using var scope = _backupResourceConfigBackupResourceStorageConfigsNonCRRClientDiagnostics.CreateScope("BackupResourceConfigCollection.CreateOrUpdate"); scope.Start(); try { - var response = _backupResourceConfigResourceBackupResourceStorageConfigsNonCRRRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, vaultName, data, cancellationToken); + var response = _backupResourceConfigBackupResourceStorageConfigsNonCRRRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, vaultName, data, cancellationToken); var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new BackupResourceConfigResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); @@ -154,11 +154,11 @@ public virtual async Task> GetAsync(strin { Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - using var scope = _backupResourceConfigResourceBackupResourceStorageConfigsNonCRRClientDiagnostics.CreateScope("BackupResourceConfigResourceCollection.Get"); + using var scope = _backupResourceConfigBackupResourceStorageConfigsNonCRRClientDiagnostics.CreateScope("BackupResourceConfigCollection.Get"); scope.Start(); try { - var response = await _backupResourceConfigResourceBackupResourceStorageConfigsNonCRRRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, vaultName, cancellationToken).ConfigureAwait(false); + var response = await _backupResourceConfigBackupResourceStorageConfigsNonCRRRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, vaultName, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); return Response.FromValue(new BackupResourceConfigResource(Client, response.Value), response.GetRawResponse()); @@ -191,11 +191,11 @@ public virtual Response Get(string vaultName, Canc { Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - using var scope = _backupResourceConfigResourceBackupResourceStorageConfigsNonCRRClientDiagnostics.CreateScope("BackupResourceConfigResourceCollection.Get"); + using var scope = _backupResourceConfigBackupResourceStorageConfigsNonCRRClientDiagnostics.CreateScope("BackupResourceConfigCollection.Get"); scope.Start(); try { - var response = _backupResourceConfigResourceBackupResourceStorageConfigsNonCRRRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, vaultName, cancellationToken); + var response = _backupResourceConfigBackupResourceStorageConfigsNonCRRRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, vaultName, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); return Response.FromValue(new BackupResourceConfigResource(Client, response.Value), response.GetRawResponse()); @@ -228,11 +228,11 @@ public virtual async Task> ExistsAsync(string vaultName, Cancella { Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - using var scope = _backupResourceConfigResourceBackupResourceStorageConfigsNonCRRClientDiagnostics.CreateScope("BackupResourceConfigResourceCollection.Exists"); + using var scope = _backupResourceConfigBackupResourceStorageConfigsNonCRRClientDiagnostics.CreateScope("BackupResourceConfigCollection.Exists"); scope.Start(); try { - var response = await _backupResourceConfigResourceBackupResourceStorageConfigsNonCRRRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, vaultName, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _backupResourceConfigBackupResourceStorageConfigsNonCRRRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, vaultName, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -263,11 +263,11 @@ public virtual Response Exists(string vaultName, CancellationToken cancell { Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - using var scope = _backupResourceConfigResourceBackupResourceStorageConfigsNonCRRClientDiagnostics.CreateScope("BackupResourceConfigResourceCollection.Exists"); + using var scope = _backupResourceConfigBackupResourceStorageConfigsNonCRRClientDiagnostics.CreateScope("BackupResourceConfigCollection.Exists"); scope.Start(); try { - var response = _backupResourceConfigResourceBackupResourceStorageConfigsNonCRRRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, vaultName, cancellationToken: cancellationToken); + var response = _backupResourceConfigBackupResourceStorageConfigsNonCRRRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, vaultName, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceConfigResourceData.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceConfigData.cs similarity index 65% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceConfigResourceData.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceConfigData.cs index 2444d169b1224..937ca68de86a1 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceConfigResourceData.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceConfigData.cs @@ -13,16 +13,16 @@ namespace Azure.ResourceManager.RecoveryServicesBackup { - /// A class representing the BackupResourceConfigResource data model. - public partial class BackupResourceConfigResourceData : TrackedResourceData + /// A class representing the BackupResourceConfig data model. + public partial class BackupResourceConfigData : TrackedResourceData { - /// Initializes a new instance of BackupResourceConfigResourceData. + /// Initializes a new instance of BackupResourceConfigData. /// The location. - public BackupResourceConfigResourceData(AzureLocation location) : base(location) + public BackupResourceConfigData(AzureLocation location) : base(location) { } - /// Initializes a new instance of BackupResourceConfigResourceData. + /// Initializes a new instance of BackupResourceConfigData. /// The id. /// The name. /// The resourceType. @@ -31,14 +31,14 @@ public BackupResourceConfigResourceData(AzureLocation location) : base(location) /// The location. /// BackupResourceConfigResource properties. /// Optional ETag. - internal BackupResourceConfigResourceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, BackupResourceConfig properties, ETag? eTag) : base(id, name, resourceType, systemData, tags, location) + internal BackupResourceConfigData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, BackupResourceConfigProperties properties, ETag? eTag) : base(id, name, resourceType, systemData, tags, location) { Properties = properties; ETag = eTag; } /// BackupResourceConfigResource properties. - public BackupResourceConfig Properties { get; set; } + public BackupResourceConfigProperties Properties { get; set; } /// Optional ETag. public ETag? ETag { get; set; } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceConfigResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceConfigResource.cs index 793d8876e3ebf..4e1a445e60cb1 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceConfigResource.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceConfigResource.cs @@ -20,10 +20,10 @@ namespace Azure.ResourceManager.RecoveryServicesBackup { /// - /// A Class representing a BackupResourceConfigResource along with the instance operations that can be performed on it. + /// A Class representing a BackupResourceConfig along with the instance operations that can be performed on it. /// If you have a you can construct a /// from an instance of using the GetBackupResourceConfigResource method. - /// Otherwise you can get one from its parent resource using the GetBackupResourceConfigResource method. + /// Otherwise you can get one from its parent resource using the GetBackupResourceConfig method. /// public partial class BackupResourceConfigResource : ArmResource { @@ -34,13 +34,11 @@ public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _backupResourceConfigResourceBackupResourceStorageConfigsNonCRRClientDiagnostics; - private readonly BackupResourceStorageConfigsNonCRRRestOperations _backupResourceConfigResourceBackupResourceStorageConfigsNonCRRRestClient; + private readonly ClientDiagnostics _backupResourceConfigBackupResourceStorageConfigsNonCRRClientDiagnostics; + private readonly BackupResourceStorageConfigsNonCRRRestOperations _backupResourceConfigBackupResourceStorageConfigsNonCRRRestClient; private readonly ClientDiagnostics _defaultClientDiagnostics; private readonly RecoveryServicesBackupRestOperations _defaultRestClient; - private readonly ClientDiagnostics _bmsPrepareDataMoveOperationResultClientDiagnostics; - private readonly BMSPrepareDataMoveOperationResultRestOperations _bmsPrepareDataMoveOperationResultRestClient; - private readonly BackupResourceConfigResourceData _data; + private readonly BackupResourceConfigData _data; /// Initializes a new instance of the class for mocking. protected BackupResourceConfigResource() @@ -50,7 +48,7 @@ protected BackupResourceConfigResource() /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal BackupResourceConfigResource(ArmClient client, BackupResourceConfigResourceData data) : this(client, data.Id) + internal BackupResourceConfigResource(ArmClient client, BackupResourceConfigData data) : this(client, data.Id) { HasData = true; _data = data; @@ -61,13 +59,11 @@ internal BackupResourceConfigResource(ArmClient client, BackupResourceConfigReso /// The identifier of the resource that is the target of operations. internal BackupResourceConfigResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _backupResourceConfigResourceBackupResourceStorageConfigsNonCRRClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string backupResourceConfigResourceBackupResourceStorageConfigsNonCRRApiVersion); - _backupResourceConfigResourceBackupResourceStorageConfigsNonCRRRestClient = new BackupResourceStorageConfigsNonCRRRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, backupResourceConfigResourceBackupResourceStorageConfigsNonCRRApiVersion); + _backupResourceConfigBackupResourceStorageConfigsNonCRRClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string backupResourceConfigBackupResourceStorageConfigsNonCRRApiVersion); + _backupResourceConfigBackupResourceStorageConfigsNonCRRRestClient = new BackupResourceStorageConfigsNonCRRRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, backupResourceConfigBackupResourceStorageConfigsNonCRRApiVersion); _defaultClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ProviderConstants.DefaultProviderNamespace, Diagnostics); _defaultRestClient = new RecoveryServicesBackupRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); - _bmsPrepareDataMoveOperationResultClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ProviderConstants.DefaultProviderNamespace, Diagnostics); - _bmsPrepareDataMoveOperationResultRestClient = new BMSPrepareDataMoveOperationResultRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); #if DEBUG ValidateResourceId(Id); #endif @@ -81,7 +77,7 @@ internal BackupResourceConfigResource(ArmClient client, ResourceIdentifier id) : /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual BackupResourceConfigResourceData Data + public virtual BackupResourceConfigData Data { get { @@ -113,11 +109,11 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _backupResourceConfigResourceBackupResourceStorageConfigsNonCRRClientDiagnostics.CreateScope("BackupResourceConfigResource.Get"); + using var scope = _backupResourceConfigBackupResourceStorageConfigsNonCRRClientDiagnostics.CreateScope("BackupResourceConfigResource.Get"); scope.Start(); try { - var response = await _backupResourceConfigResourceBackupResourceStorageConfigsNonCRRRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, cancellationToken).ConfigureAwait(false); + var response = await _backupResourceConfigBackupResourceStorageConfigsNonCRRRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); return Response.FromValue(new BackupResourceConfigResource(Client, response.Value), response.GetRawResponse()); @@ -145,11 +141,11 @@ public virtual async Task> GetAsync(Cance /// The cancellation token to use. public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _backupResourceConfigResourceBackupResourceStorageConfigsNonCRRClientDiagnostics.CreateScope("BackupResourceConfigResource.Get"); + using var scope = _backupResourceConfigBackupResourceStorageConfigsNonCRRClientDiagnostics.CreateScope("BackupResourceConfigResource.Get"); scope.Start(); try { - var response = _backupResourceConfigResourceBackupResourceStorageConfigsNonCRRRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, cancellationToken); + var response = _backupResourceConfigBackupResourceStorageConfigsNonCRRRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); return Response.FromValue(new BackupResourceConfigResource(Client, response.Value), response.GetRawResponse()); @@ -177,15 +173,15 @@ public virtual Response Get(CancellationToken canc /// Vault storage config request. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(BackupResourceConfigResourceData data, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(BackupResourceConfigData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _backupResourceConfigResourceBackupResourceStorageConfigsNonCRRClientDiagnostics.CreateScope("BackupResourceConfigResource.Update"); + using var scope = _backupResourceConfigBackupResourceStorageConfigsNonCRRClientDiagnostics.CreateScope("BackupResourceConfigResource.Update"); scope.Start(); try { - var response = await _backupResourceConfigResourceBackupResourceStorageConfigsNonCRRRestClient.PatchAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, cancellationToken).ConfigureAwait(false); + var response = await _backupResourceConfigBackupResourceStorageConfigsNonCRRRestClient.PatchAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, cancellationToken).ConfigureAwait(false); return Response.FromValue(new BackupResourceConfigResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -211,15 +207,15 @@ public virtual async Task> UpdateAsync(Ba /// Vault storage config request. /// The cancellation token to use. /// is null. - public virtual Response Update(BackupResourceConfigResourceData data, CancellationToken cancellationToken = default) + public virtual Response Update(BackupResourceConfigData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _backupResourceConfigResourceBackupResourceStorageConfigsNonCRRClientDiagnostics.CreateScope("BackupResourceConfigResource.Update"); + using var scope = _backupResourceConfigBackupResourceStorageConfigsNonCRRClientDiagnostics.CreateScope("BackupResourceConfigResource.Update"); scope.Start(); try { - var response = _backupResourceConfigResourceBackupResourceStorageConfigsNonCRRRestClient.Patch(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, cancellationToken); + var response = _backupResourceConfigBackupResourceStorageConfigsNonCRRRestClient.Patch(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, cancellationToken); return Response.FromValue(new BackupResourceConfigResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -229,76 +225,6 @@ public virtual Response Update(BackupResourceConfi } } - /// - /// Fetches operation status for data move operation on vault - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig/operationStatus/{operationId} - /// - /// - /// Operation Id - /// GetOperationStatus - /// - /// - /// - /// The String to use. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual async Task> GetOperationStatusAsync(string operationId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(operationId, nameof(operationId)); - - using var scope = _defaultClientDiagnostics.CreateScope("BackupResourceConfigResource.GetOperationStatus"); - scope.Start(); - try - { - var response = await _defaultRestClient.GetOperationStatusAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, operationId, cancellationToken).ConfigureAwait(false); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Fetches operation status for data move operation on vault - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig/operationStatus/{operationId} - /// - /// - /// Operation Id - /// GetOperationStatus - /// - /// - /// - /// The String to use. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual Response GetOperationStatus(string operationId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(operationId, nameof(operationId)); - - using var scope = _defaultClientDiagnostics.CreateScope("BackupResourceConfigResource.GetOperationStatus"); - scope.Start(); - try - { - var response = _defaultRestClient.GetOperationStatus(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, operationId, cancellationToken); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - /// /// Prepares source vault for Data Move operation /// @@ -316,11 +242,11 @@ public virtual Response GetOperationStatus(string operationId, /// Prepare data move request. /// The cancellation token to use. /// is null. - public virtual async Task BMSPrepareDataMoveAsync(WaitUntil waitUntil, PrepareDataMoveContent content, CancellationToken cancellationToken = default) + public virtual async Task PrepareDataMoveAsync(WaitUntil waitUntil, PrepareDataMoveContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(content, nameof(content)); - using var scope = _defaultClientDiagnostics.CreateScope("BackupResourceConfigResource.BMSPrepareDataMove"); + using var scope = _defaultClientDiagnostics.CreateScope("BackupResourceConfigResource.PrepareDataMove"); scope.Start(); try { @@ -354,11 +280,11 @@ public virtual async Task BMSPrepareDataMoveAsync(WaitUntil waitUn /// Prepare data move request. /// The cancellation token to use. /// is null. - public virtual ArmOperation BMSPrepareDataMove(WaitUntil waitUntil, PrepareDataMoveContent content, CancellationToken cancellationToken = default) + public virtual ArmOperation PrepareDataMove(WaitUntil waitUntil, PrepareDataMoveContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(content, nameof(content)); - using var scope = _defaultClientDiagnostics.CreateScope("BackupResourceConfigResource.BMSPrepareDataMove"); + using var scope = _defaultClientDiagnostics.CreateScope("BackupResourceConfigResource.PrepareDataMove"); scope.Start(); try { @@ -392,11 +318,11 @@ public virtual ArmOperation BMSPrepareDataMove(WaitUntil waitUntil, PrepareDataM /// Trigger data move request. /// The cancellation token to use. /// is null. - public virtual async Task BMSTriggerDataMoveAsync(WaitUntil waitUntil, TriggerDataMoveContent content, CancellationToken cancellationToken = default) + public virtual async Task TriggerDataMoveAsync(WaitUntil waitUntil, TriggerDataMoveContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(content, nameof(content)); - using var scope = _defaultClientDiagnostics.CreateScope("BackupResourceConfigResource.BMSTriggerDataMove"); + using var scope = _defaultClientDiagnostics.CreateScope("BackupResourceConfigResource.TriggerDataMove"); scope.Start(); try { @@ -430,11 +356,11 @@ public virtual async Task BMSTriggerDataMoveAsync(WaitUntil waitUn /// Trigger data move request. /// The cancellation token to use. /// is null. - public virtual ArmOperation BMSTriggerDataMove(WaitUntil waitUntil, TriggerDataMoveContent content, CancellationToken cancellationToken = default) + public virtual ArmOperation TriggerDataMove(WaitUntil waitUntil, TriggerDataMoveContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(content, nameof(content)); - using var scope = _defaultClientDiagnostics.CreateScope("BackupResourceConfigResource.BMSTriggerDataMove"); + using var scope = _defaultClientDiagnostics.CreateScope("BackupResourceConfigResource.TriggerDataMove"); scope.Start(); try { @@ -451,76 +377,6 @@ public virtual ArmOperation BMSTriggerDataMove(WaitUntil waitUntil, TriggerDataM } } - /// - /// Fetches Operation Result for Prepare Data Move - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig/operationResults/{operationId} - /// - /// - /// Operation Id - /// BMSPrepareDataMoveOperationResult_Get - /// - /// - /// - /// The String to use. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual async Task> GetBMSPrepareDataMoveOperationResultAsync(string operationId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(operationId, nameof(operationId)); - - using var scope = _bmsPrepareDataMoveOperationResultClientDiagnostics.CreateScope("BackupResourceConfigResource.GetBMSPrepareDataMoveOperationResult"); - scope.Start(); - try - { - var response = await _bmsPrepareDataMoveOperationResultRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, operationId, cancellationToken).ConfigureAwait(false); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Fetches Operation Result for Prepare Data Move - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig/operationResults/{operationId} - /// - /// - /// Operation Id - /// BMSPrepareDataMoveOperationResult_Get - /// - /// - /// - /// The String to use. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual Response GetBMSPrepareDataMoveOperationResult(string operationId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(operationId, nameof(operationId)); - - using var scope = _bmsPrepareDataMoveOperationResultClientDiagnostics.CreateScope("BackupResourceConfigResource.GetBMSPrepareDataMoveOperationResult"); - scope.Start(); - try - { - var response = _bmsPrepareDataMoveOperationResultRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, operationId, cancellationToken); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - /// /// Add a tag to the current resource. /// @@ -543,7 +399,7 @@ public virtual async Task> AddTagAsync(st Argument.AssertNotNull(key, nameof(key)); Argument.AssertNotNull(value, nameof(value)); - using var scope = _backupResourceConfigResourceBackupResourceStorageConfigsNonCRRClientDiagnostics.CreateScope("BackupResourceConfigResource.AddTag"); + using var scope = _backupResourceConfigBackupResourceStorageConfigsNonCRRClientDiagnostics.CreateScope("BackupResourceConfigResource.AddTag"); scope.Start(); try { @@ -552,13 +408,13 @@ public virtual async Task> AddTagAsync(st var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); originalTags.Value.Data.TagValues[key] = value; await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); - var originalResponse = await _backupResourceConfigResourceBackupResourceStorageConfigsNonCRRRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, cancellationToken).ConfigureAwait(false); + var originalResponse = await _backupResourceConfigBackupResourceStorageConfigsNonCRRRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, cancellationToken).ConfigureAwait(false); return Response.FromValue(new BackupResourceConfigResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; - var patch = new BackupResourceConfigResourceData(current.Location); + var patch = new BackupResourceConfigData(current.Location); foreach (var tag in current.Tags) { patch.Tags.Add(tag); @@ -597,7 +453,7 @@ public virtual Response AddTag(string key, string Argument.AssertNotNull(key, nameof(key)); Argument.AssertNotNull(value, nameof(value)); - using var scope = _backupResourceConfigResourceBackupResourceStorageConfigsNonCRRClientDiagnostics.CreateScope("BackupResourceConfigResource.AddTag"); + using var scope = _backupResourceConfigBackupResourceStorageConfigsNonCRRClientDiagnostics.CreateScope("BackupResourceConfigResource.AddTag"); scope.Start(); try { @@ -606,13 +462,13 @@ public virtual Response AddTag(string key, string var originalTags = GetTagResource().Get(cancellationToken); originalTags.Value.Data.TagValues[key] = value; GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); - var originalResponse = _backupResourceConfigResourceBackupResourceStorageConfigsNonCRRRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, cancellationToken); + var originalResponse = _backupResourceConfigBackupResourceStorageConfigsNonCRRRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, cancellationToken); return Response.FromValue(new BackupResourceConfigResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { var current = Get(cancellationToken: cancellationToken).Value.Data; - var patch = new BackupResourceConfigResourceData(current.Location); + var patch = new BackupResourceConfigData(current.Location); foreach (var tag in current.Tags) { patch.Tags.Add(tag); @@ -649,7 +505,7 @@ public virtual async Task> SetTagsAsync(I { Argument.AssertNotNull(tags, nameof(tags)); - using var scope = _backupResourceConfigResourceBackupResourceStorageConfigsNonCRRClientDiagnostics.CreateScope("BackupResourceConfigResource.SetTags"); + using var scope = _backupResourceConfigBackupResourceStorageConfigsNonCRRClientDiagnostics.CreateScope("BackupResourceConfigResource.SetTags"); scope.Start(); try { @@ -659,13 +515,13 @@ public virtual async Task> SetTagsAsync(I var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); originalTags.Value.Data.TagValues.ReplaceWith(tags); await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); - var originalResponse = await _backupResourceConfigResourceBackupResourceStorageConfigsNonCRRRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, cancellationToken).ConfigureAwait(false); + var originalResponse = await _backupResourceConfigBackupResourceStorageConfigsNonCRRRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, cancellationToken).ConfigureAwait(false); return Response.FromValue(new BackupResourceConfigResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; - var patch = new BackupResourceConfigResourceData(current.Location); + var patch = new BackupResourceConfigData(current.Location); patch.Tags.ReplaceWith(tags); var result = await UpdateAsync(patch, cancellationToken: cancellationToken).ConfigureAwait(false); return result; @@ -698,7 +554,7 @@ public virtual Response SetTags(IDictionary SetTags(IDictionary> RemoveTagAsync { Argument.AssertNotNull(key, nameof(key)); - using var scope = _backupResourceConfigResourceBackupResourceStorageConfigsNonCRRClientDiagnostics.CreateScope("BackupResourceConfigResource.RemoveTag"); + using var scope = _backupResourceConfigBackupResourceStorageConfigsNonCRRClientDiagnostics.CreateScope("BackupResourceConfigResource.RemoveTag"); scope.Start(); try { @@ -756,13 +612,13 @@ public virtual async Task> RemoveTagAsync var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); originalTags.Value.Data.TagValues.Remove(key); await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); - var originalResponse = await _backupResourceConfigResourceBackupResourceStorageConfigsNonCRRRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, cancellationToken).ConfigureAwait(false); + var originalResponse = await _backupResourceConfigBackupResourceStorageConfigsNonCRRRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, cancellationToken).ConfigureAwait(false); return Response.FromValue(new BackupResourceConfigResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; - var patch = new BackupResourceConfigResourceData(current.Location); + var patch = new BackupResourceConfigData(current.Location); foreach (var tag in current.Tags) { patch.Tags.Add(tag); @@ -799,7 +655,7 @@ public virtual Response RemoveTag(string key, Canc { Argument.AssertNotNull(key, nameof(key)); - using var scope = _backupResourceConfigResourceBackupResourceStorageConfigsNonCRRClientDiagnostics.CreateScope("BackupResourceConfigResource.RemoveTag"); + using var scope = _backupResourceConfigBackupResourceStorageConfigsNonCRRClientDiagnostics.CreateScope("BackupResourceConfigResource.RemoveTag"); scope.Start(); try { @@ -808,13 +664,13 @@ public virtual Response RemoveTag(string key, Canc var originalTags = GetTagResource().Get(cancellationToken); originalTags.Value.Data.TagValues.Remove(key); GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); - var originalResponse = _backupResourceConfigResourceBackupResourceStorageConfigsNonCRRRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, cancellationToken); + var originalResponse = _backupResourceConfigBackupResourceStorageConfigsNonCRRRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, cancellationToken); return Response.FromValue(new BackupResourceConfigResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { var current = Get(cancellationToken: cancellationToken).Value.Data; - var patch = new BackupResourceConfigResourceData(current.Location); + var patch = new BackupResourceConfigData(current.Location); foreach (var tag in current.Tags) { patch.Tags.Add(tag); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceEncryptionConfigExtendedResourceCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceEncryptionConfigExtendedCollection.cs similarity index 80% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceEncryptionConfigExtendedResourceCollection.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceEncryptionConfigExtendedCollection.cs index 29c7449135940..28234a4f5bd68 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceEncryptionConfigExtendedResourceCollection.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceEncryptionConfigExtendedCollection.cs @@ -21,26 +21,26 @@ namespace Azure.ResourceManager.RecoveryServicesBackup /// /// A class representing a collection of and their operations. /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetBackupResourceEncryptionConfigExtendedResources method from an instance of . + /// To get a instance call the GetBackupResourceEncryptionConfigExtendeds method from an instance of . /// - public partial class BackupResourceEncryptionConfigExtendedResourceCollection : ArmCollection + public partial class BackupResourceEncryptionConfigExtendedCollection : ArmCollection { - private readonly ClientDiagnostics _backupResourceEncryptionConfigExtendedResourceBackupResourceEncryptionConfigsClientDiagnostics; - private readonly BackupResourceEncryptionConfigsRestOperations _backupResourceEncryptionConfigExtendedResourceBackupResourceEncryptionConfigsRestClient; + private readonly ClientDiagnostics _backupResourceEncryptionConfigExtendedBackupResourceEncryptionConfigsClientDiagnostics; + private readonly BackupResourceEncryptionConfigsRestOperations _backupResourceEncryptionConfigExtendedBackupResourceEncryptionConfigsRestClient; - /// Initializes a new instance of the class for mocking. - protected BackupResourceEncryptionConfigExtendedResourceCollection() + /// Initializes a new instance of the class for mocking. + protected BackupResourceEncryptionConfigExtendedCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal BackupResourceEncryptionConfigExtendedResourceCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal BackupResourceEncryptionConfigExtendedCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _backupResourceEncryptionConfigExtendedResourceBackupResourceEncryptionConfigsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", BackupResourceEncryptionConfigExtendedResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(BackupResourceEncryptionConfigExtendedResource.ResourceType, out string backupResourceEncryptionConfigExtendedResourceBackupResourceEncryptionConfigsApiVersion); - _backupResourceEncryptionConfigExtendedResourceBackupResourceEncryptionConfigsRestClient = new BackupResourceEncryptionConfigsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, backupResourceEncryptionConfigExtendedResourceBackupResourceEncryptionConfigsApiVersion); + _backupResourceEncryptionConfigExtendedBackupResourceEncryptionConfigsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", BackupResourceEncryptionConfigExtendedResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(BackupResourceEncryptionConfigExtendedResource.ResourceType, out string backupResourceEncryptionConfigExtendedBackupResourceEncryptionConfigsApiVersion); + _backupResourceEncryptionConfigExtendedBackupResourceEncryptionConfigsRestClient = new BackupResourceEncryptionConfigsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, backupResourceEncryptionConfigExtendedBackupResourceEncryptionConfigsApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -71,16 +71,16 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task CreateOrUpdateAsync(WaitUntil waitUntil, string vaultName, BackupResourceEncryptionConfigExtendedResourceCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public virtual async Task CreateOrUpdateAsync(WaitUntil waitUntil, string vaultName, BackupResourceEncryptionConfigExtendedCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); Argument.AssertNotNull(content, nameof(content)); - using var scope = _backupResourceEncryptionConfigExtendedResourceBackupResourceEncryptionConfigsClientDiagnostics.CreateScope("BackupResourceEncryptionConfigExtendedResourceCollection.CreateOrUpdate"); + using var scope = _backupResourceEncryptionConfigExtendedBackupResourceEncryptionConfigsClientDiagnostics.CreateScope("BackupResourceEncryptionConfigExtendedCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _backupResourceEncryptionConfigExtendedResourceBackupResourceEncryptionConfigsRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, vaultName, content, cancellationToken).ConfigureAwait(false); + var response = await _backupResourceEncryptionConfigExtendedBackupResourceEncryptionConfigsRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, vaultName, content, cancellationToken).ConfigureAwait(false); var operation = new RecoveryServicesBackupArmOperation(response); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); @@ -112,16 +112,16 @@ public virtual async Task CreateOrUpdateAsync(WaitUntil waitUntil, /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string vaultName, BackupResourceEncryptionConfigExtendedResourceCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string vaultName, BackupResourceEncryptionConfigExtendedCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); Argument.AssertNotNull(content, nameof(content)); - using var scope = _backupResourceEncryptionConfigExtendedResourceBackupResourceEncryptionConfigsClientDiagnostics.CreateScope("BackupResourceEncryptionConfigExtendedResourceCollection.CreateOrUpdate"); + using var scope = _backupResourceEncryptionConfigExtendedBackupResourceEncryptionConfigsClientDiagnostics.CreateScope("BackupResourceEncryptionConfigExtendedCollection.CreateOrUpdate"); scope.Start(); try { - var response = _backupResourceEncryptionConfigExtendedResourceBackupResourceEncryptionConfigsRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, vaultName, content, cancellationToken); + var response = _backupResourceEncryptionConfigExtendedBackupResourceEncryptionConfigsRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, vaultName, content, cancellationToken); var operation = new RecoveryServicesBackupArmOperation(response); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); @@ -155,11 +155,11 @@ public virtual async Task Get(stri { Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - using var scope = _backupResourceEncryptionConfigExtendedResourceBackupResourceEncryptionConfigsClientDiagnostics.CreateScope("BackupResourceEncryptionConfigExtendedResourceCollection.Get"); + using var scope = _backupResourceEncryptionConfigExtendedBackupResourceEncryptionConfigsClientDiagnostics.CreateScope("BackupResourceEncryptionConfigExtendedCollection.Get"); scope.Start(); try { - var response = _backupResourceEncryptionConfigExtendedResourceBackupResourceEncryptionConfigsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, vaultName, cancellationToken); + var response = _backupResourceEncryptionConfigExtendedBackupResourceEncryptionConfigsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, vaultName, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); return Response.FromValue(new BackupResourceEncryptionConfigExtendedResource(Client, response.Value), response.GetRawResponse()); @@ -229,11 +229,11 @@ public virtual async Task> ExistsAsync(string vaultName, Cancella { Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - using var scope = _backupResourceEncryptionConfigExtendedResourceBackupResourceEncryptionConfigsClientDiagnostics.CreateScope("BackupResourceEncryptionConfigExtendedResourceCollection.Exists"); + using var scope = _backupResourceEncryptionConfigExtendedBackupResourceEncryptionConfigsClientDiagnostics.CreateScope("BackupResourceEncryptionConfigExtendedCollection.Exists"); scope.Start(); try { - var response = await _backupResourceEncryptionConfigExtendedResourceBackupResourceEncryptionConfigsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, vaultName, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _backupResourceEncryptionConfigExtendedBackupResourceEncryptionConfigsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, vaultName, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -264,11 +264,11 @@ public virtual Response Exists(string vaultName, CancellationToken cancell { Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - using var scope = _backupResourceEncryptionConfigExtendedResourceBackupResourceEncryptionConfigsClientDiagnostics.CreateScope("BackupResourceEncryptionConfigExtendedResourceCollection.Exists"); + using var scope = _backupResourceEncryptionConfigExtendedBackupResourceEncryptionConfigsClientDiagnostics.CreateScope("BackupResourceEncryptionConfigExtendedCollection.Exists"); scope.Start(); try { - var response = _backupResourceEncryptionConfigExtendedResourceBackupResourceEncryptionConfigsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, vaultName, cancellationToken: cancellationToken); + var response = _backupResourceEncryptionConfigExtendedBackupResourceEncryptionConfigsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, vaultName, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceEncryptionConfigExtendedResourceData.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceEncryptionConfigExtendedData.cs similarity index 64% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceEncryptionConfigExtendedResourceData.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceEncryptionConfigExtendedData.cs index 929b4c8167d11..0a7404b71d4be 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceEncryptionConfigExtendedResourceData.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceEncryptionConfigExtendedData.cs @@ -13,16 +13,16 @@ namespace Azure.ResourceManager.RecoveryServicesBackup { - /// A class representing the BackupResourceEncryptionConfigExtendedResource data model. - public partial class BackupResourceEncryptionConfigExtendedResourceData : TrackedResourceData + /// A class representing the BackupResourceEncryptionConfigExtended data model. + public partial class BackupResourceEncryptionConfigExtendedData : TrackedResourceData { - /// Initializes a new instance of BackupResourceEncryptionConfigExtendedResourceData. + /// Initializes a new instance of BackupResourceEncryptionConfigExtendedData. /// The location. - public BackupResourceEncryptionConfigExtendedResourceData(AzureLocation location) : base(location) + public BackupResourceEncryptionConfigExtendedData(AzureLocation location) : base(location) { } - /// Initializes a new instance of BackupResourceEncryptionConfigExtendedResourceData. + /// Initializes a new instance of BackupResourceEncryptionConfigExtendedData. /// The id. /// The name. /// The resourceType. @@ -31,14 +31,14 @@ public BackupResourceEncryptionConfigExtendedResourceData(AzureLocation location /// The location. /// BackupResourceEncryptionConfigExtendedResource properties. /// Optional ETag. - internal BackupResourceEncryptionConfigExtendedResourceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, BackupResourceEncryptionConfigExtended properties, ETag? eTag) : base(id, name, resourceType, systemData, tags, location) + internal BackupResourceEncryptionConfigExtendedData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, BackupResourceEncryptionConfigExtendedProperties properties, ETag? eTag) : base(id, name, resourceType, systemData, tags, location) { Properties = properties; ETag = eTag; } /// BackupResourceEncryptionConfigExtendedResource properties. - public BackupResourceEncryptionConfigExtended Properties { get; set; } + public BackupResourceEncryptionConfigExtendedProperties Properties { get; set; } /// Optional ETag. public ETag? ETag { get; set; } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceEncryptionConfigExtendedResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceEncryptionConfigExtendedResource.cs index 9e011f32b8541..9538c9a5964ec 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceEncryptionConfigExtendedResource.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceEncryptionConfigExtendedResource.cs @@ -20,10 +20,10 @@ namespace Azure.ResourceManager.RecoveryServicesBackup { /// - /// A Class representing a BackupResourceEncryptionConfigExtendedResource along with the instance operations that can be performed on it. + /// A Class representing a BackupResourceEncryptionConfigExtended along with the instance operations that can be performed on it. /// If you have a you can construct a /// from an instance of using the GetBackupResourceEncryptionConfigExtendedResource method. - /// Otherwise you can get one from its parent resource using the GetBackupResourceEncryptionConfigExtendedResource method. + /// Otherwise you can get one from its parent resource using the GetBackupResourceEncryptionConfigExtended method. /// public partial class BackupResourceEncryptionConfigExtendedResource : ArmResource { @@ -34,9 +34,9 @@ public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _backupResourceEncryptionConfigExtendedResourceBackupResourceEncryptionConfigsClientDiagnostics; - private readonly BackupResourceEncryptionConfigsRestOperations _backupResourceEncryptionConfigExtendedResourceBackupResourceEncryptionConfigsRestClient; - private readonly BackupResourceEncryptionConfigExtendedResourceData _data; + private readonly ClientDiagnostics _backupResourceEncryptionConfigExtendedBackupResourceEncryptionConfigsClientDiagnostics; + private readonly BackupResourceEncryptionConfigsRestOperations _backupResourceEncryptionConfigExtendedBackupResourceEncryptionConfigsRestClient; + private readonly BackupResourceEncryptionConfigExtendedData _data; /// Initializes a new instance of the class for mocking. protected BackupResourceEncryptionConfigExtendedResource() @@ -46,7 +46,7 @@ protected BackupResourceEncryptionConfigExtendedResource() /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal BackupResourceEncryptionConfigExtendedResource(ArmClient client, BackupResourceEncryptionConfigExtendedResourceData data) : this(client, data.Id) + internal BackupResourceEncryptionConfigExtendedResource(ArmClient client, BackupResourceEncryptionConfigExtendedData data) : this(client, data.Id) { HasData = true; _data = data; @@ -57,9 +57,9 @@ internal BackupResourceEncryptionConfigExtendedResource(ArmClient client, Backup /// The identifier of the resource that is the target of operations. internal BackupResourceEncryptionConfigExtendedResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _backupResourceEncryptionConfigExtendedResourceBackupResourceEncryptionConfigsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string backupResourceEncryptionConfigExtendedResourceBackupResourceEncryptionConfigsApiVersion); - _backupResourceEncryptionConfigExtendedResourceBackupResourceEncryptionConfigsRestClient = new BackupResourceEncryptionConfigsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, backupResourceEncryptionConfigExtendedResourceBackupResourceEncryptionConfigsApiVersion); + _backupResourceEncryptionConfigExtendedBackupResourceEncryptionConfigsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string backupResourceEncryptionConfigExtendedBackupResourceEncryptionConfigsApiVersion); + _backupResourceEncryptionConfigExtendedBackupResourceEncryptionConfigsRestClient = new BackupResourceEncryptionConfigsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, backupResourceEncryptionConfigExtendedBackupResourceEncryptionConfigsApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -73,7 +73,7 @@ internal BackupResourceEncryptionConfigExtendedResource(ArmClient client, Resour /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual BackupResourceEncryptionConfigExtendedResourceData Data + public virtual BackupResourceEncryptionConfigExtendedData Data { get { @@ -105,11 +105,11 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _backupResourceEncryptionConfigExtendedResourceBackupResourceEncryptionConfigsClientDiagnostics.CreateScope("BackupResourceEncryptionConfigExtendedResource.Get"); + using var scope = _backupResourceEncryptionConfigExtendedBackupResourceEncryptionConfigsClientDiagnostics.CreateScope("BackupResourceEncryptionConfigExtendedResource.Get"); scope.Start(); try { - var response = await _backupResourceEncryptionConfigExtendedResourceBackupResourceEncryptionConfigsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, cancellationToken).ConfigureAwait(false); + var response = await _backupResourceEncryptionConfigExtendedBackupResourceEncryptionConfigsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); return Response.FromValue(new BackupResourceEncryptionConfigExtendedResource(Client, response.Value), response.GetRawResponse()); @@ -137,11 +137,11 @@ public virtual async Task The cancellation token to use. public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _backupResourceEncryptionConfigExtendedResourceBackupResourceEncryptionConfigsClientDiagnostics.CreateScope("BackupResourceEncryptionConfigExtendedResource.Get"); + using var scope = _backupResourceEncryptionConfigExtendedBackupResourceEncryptionConfigsClientDiagnostics.CreateScope("BackupResourceEncryptionConfigExtendedResource.Get"); scope.Start(); try { - var response = _backupResourceEncryptionConfigExtendedResourceBackupResourceEncryptionConfigsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, cancellationToken); + var response = _backupResourceEncryptionConfigExtendedBackupResourceEncryptionConfigsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); return Response.FromValue(new BackupResourceEncryptionConfigExtendedResource(Client, response.Value), response.GetRawResponse()); @@ -170,15 +170,15 @@ public virtual Response Get(Canc /// Vault encryption input config request. /// The cancellation token to use. /// is null. - public virtual async Task UpdateAsync(WaitUntil waitUntil, BackupResourceEncryptionConfigExtendedResourceCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public virtual async Task UpdateAsync(WaitUntil waitUntil, BackupResourceEncryptionConfigExtendedCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(content, nameof(content)); - using var scope = _backupResourceEncryptionConfigExtendedResourceBackupResourceEncryptionConfigsClientDiagnostics.CreateScope("BackupResourceEncryptionConfigExtendedResource.Update"); + using var scope = _backupResourceEncryptionConfigExtendedBackupResourceEncryptionConfigsClientDiagnostics.CreateScope("BackupResourceEncryptionConfigExtendedResource.Update"); scope.Start(); try { - var response = await _backupResourceEncryptionConfigExtendedResourceBackupResourceEncryptionConfigsRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, content, cancellationToken).ConfigureAwait(false); + var response = await _backupResourceEncryptionConfigExtendedBackupResourceEncryptionConfigsRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, content, cancellationToken).ConfigureAwait(false); var operation = new RecoveryServicesBackupArmOperation(response); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); @@ -208,15 +208,15 @@ public virtual async Task UpdateAsync(WaitUntil waitUntil, BackupR /// Vault encryption input config request. /// The cancellation token to use. /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, BackupResourceEncryptionConfigExtendedResourceCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public virtual ArmOperation Update(WaitUntil waitUntil, BackupResourceEncryptionConfigExtendedCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(content, nameof(content)); - using var scope = _backupResourceEncryptionConfigExtendedResourceBackupResourceEncryptionConfigsClientDiagnostics.CreateScope("BackupResourceEncryptionConfigExtendedResource.Update"); + using var scope = _backupResourceEncryptionConfigExtendedBackupResourceEncryptionConfigsClientDiagnostics.CreateScope("BackupResourceEncryptionConfigExtendedResource.Update"); scope.Start(); try { - var response = _backupResourceEncryptionConfigExtendedResourceBackupResourceEncryptionConfigsRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, content, cancellationToken); + var response = _backupResourceEncryptionConfigExtendedBackupResourceEncryptionConfigsRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, content, cancellationToken); var operation = new RecoveryServicesBackupArmOperation(response); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); @@ -251,7 +251,7 @@ public virtual async Task AddTag(s Argument.AssertNotNull(key, nameof(key)); Argument.AssertNotNull(value, nameof(value)); - using var scope = _backupResourceEncryptionConfigExtendedResourceBackupResourceEncryptionConfigsClientDiagnostics.CreateScope("BackupResourceEncryptionConfigExtendedResource.AddTag"); + using var scope = _backupResourceEncryptionConfigExtendedBackupResourceEncryptionConfigsClientDiagnostics.CreateScope("BackupResourceEncryptionConfigExtendedResource.AddTag"); scope.Start(); try { @@ -314,13 +314,13 @@ public virtual Response AddTag(s var originalTags = GetTagResource().Get(cancellationToken); originalTags.Value.Data.TagValues[key] = value; GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); - var originalResponse = _backupResourceEncryptionConfigExtendedResourceBackupResourceEncryptionConfigsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, cancellationToken); + var originalResponse = _backupResourceEncryptionConfigExtendedBackupResourceEncryptionConfigsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, cancellationToken); return Response.FromValue(new BackupResourceEncryptionConfigExtendedResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { var current = Get(cancellationToken: cancellationToken).Value.Data; - var patch = new BackupResourceEncryptionConfigExtendedResourceCreateOrUpdateContent(current.Location); + var patch = new BackupResourceEncryptionConfigExtendedCreateOrUpdateContent(current.Location); foreach (var tag in current.Tags) { patch.Tags.Add(tag); @@ -357,7 +357,7 @@ public virtual async Task SetTags( { Argument.AssertNotNull(tags, nameof(tags)); - using var scope = _backupResourceEncryptionConfigExtendedResourceBackupResourceEncryptionConfigsClientDiagnostics.CreateScope("BackupResourceEncryptionConfigExtendedResource.SetTags"); + using var scope = _backupResourceEncryptionConfigExtendedBackupResourceEncryptionConfigsClientDiagnostics.CreateScope("BackupResourceEncryptionConfigExtendedResource.SetTags"); scope.Start(); try { @@ -416,13 +416,13 @@ public virtual Response SetTags( var originalTags = GetTagResource().Get(cancellationToken); originalTags.Value.Data.TagValues.ReplaceWith(tags); GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); - var originalResponse = _backupResourceEncryptionConfigExtendedResourceBackupResourceEncryptionConfigsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, cancellationToken); + var originalResponse = _backupResourceEncryptionConfigExtendedBackupResourceEncryptionConfigsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, cancellationToken); return Response.FromValue(new BackupResourceEncryptionConfigExtendedResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { var current = Get(cancellationToken: cancellationToken).Value.Data; - var patch = new BackupResourceEncryptionConfigExtendedResourceCreateOrUpdateContent(current.Location); + var patch = new BackupResourceEncryptionConfigExtendedCreateOrUpdateContent(current.Location); patch.Tags.ReplaceWith(tags); var result = Update(WaitUntil.Completed, patch, cancellationToken: cancellationToken); return Get(cancellationToken: cancellationToken); @@ -455,7 +455,7 @@ public virtual async Task RemoveTa { Argument.AssertNotNull(key, nameof(key)); - using var scope = _backupResourceEncryptionConfigExtendedResourceBackupResourceEncryptionConfigsClientDiagnostics.CreateScope("BackupResourceEncryptionConfigExtendedResource.RemoveTag"); + using var scope = _backupResourceEncryptionConfigExtendedBackupResourceEncryptionConfigsClientDiagnostics.CreateScope("BackupResourceEncryptionConfigExtendedResource.RemoveTag"); scope.Start(); try { @@ -516,13 +516,13 @@ public virtual Response RemoveTa var originalTags = GetTagResource().Get(cancellationToken); originalTags.Value.Data.TagValues.Remove(key); GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); - var originalResponse = _backupResourceEncryptionConfigExtendedResourceBackupResourceEncryptionConfigsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, cancellationToken); + var originalResponse = _backupResourceEncryptionConfigExtendedBackupResourceEncryptionConfigsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, cancellationToken); return Response.FromValue(new BackupResourceEncryptionConfigExtendedResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { var current = Get(cancellationToken: cancellationToken).Value.Data; - var patch = new BackupResourceEncryptionConfigExtendedResourceCreateOrUpdateContent(current.Location); + var patch = new BackupResourceEncryptionConfigExtendedCreateOrUpdateContent(current.Location); foreach (var tag in current.Tags) { patch.Tags.Add(tag); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceVaultConfigResourceCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceVaultConfigCollection.cs similarity index 78% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceVaultConfigResourceCollection.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceVaultConfigCollection.cs index 9e8bffc244572..d16d9f29f9b9e 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceVaultConfigResourceCollection.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceVaultConfigCollection.cs @@ -20,26 +20,26 @@ namespace Azure.ResourceManager.RecoveryServicesBackup /// /// A class representing a collection of and their operations. /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetBackupResourceVaultConfigResources method from an instance of . + /// To get a instance call the GetBackupResourceVaultConfigs method from an instance of . /// - public partial class BackupResourceVaultConfigResourceCollection : ArmCollection + public partial class BackupResourceVaultConfigCollection : ArmCollection { - private readonly ClientDiagnostics _backupResourceVaultConfigResourceBackupResourceVaultConfigsClientDiagnostics; - private readonly BackupResourceVaultConfigsRestOperations _backupResourceVaultConfigResourceBackupResourceVaultConfigsRestClient; + private readonly ClientDiagnostics _backupResourceVaultConfigClientDiagnostics; + private readonly BackupResourceVaultConfigsRestOperations _backupResourceVaultConfigRestClient; - /// Initializes a new instance of the class for mocking. - protected BackupResourceVaultConfigResourceCollection() + /// Initializes a new instance of the class for mocking. + protected BackupResourceVaultConfigCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal BackupResourceVaultConfigResourceCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal BackupResourceVaultConfigCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _backupResourceVaultConfigResourceBackupResourceVaultConfigsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", BackupResourceVaultConfigResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(BackupResourceVaultConfigResource.ResourceType, out string backupResourceVaultConfigResourceBackupResourceVaultConfigsApiVersion); - _backupResourceVaultConfigResourceBackupResourceVaultConfigsRestClient = new BackupResourceVaultConfigsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, backupResourceVaultConfigResourceBackupResourceVaultConfigsApiVersion); + _backupResourceVaultConfigClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", BackupResourceVaultConfigResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(BackupResourceVaultConfigResource.ResourceType, out string backupResourceVaultConfigApiVersion); + _backupResourceVaultConfigRestClient = new BackupResourceVaultConfigsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, backupResourceVaultConfigApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -70,16 +70,16 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string vaultName, BackupResourceVaultConfigResourceData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string vaultName, BackupResourceVaultConfigData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _backupResourceVaultConfigResourceBackupResourceVaultConfigsClientDiagnostics.CreateScope("BackupResourceVaultConfigResourceCollection.CreateOrUpdate"); + using var scope = _backupResourceVaultConfigClientDiagnostics.CreateScope("BackupResourceVaultConfigCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _backupResourceVaultConfigResourceBackupResourceVaultConfigsRestClient.PutAsync(Id.SubscriptionId, Id.ResourceGroupName, vaultName, data, cancellationToken).ConfigureAwait(false); + var response = await _backupResourceVaultConfigRestClient.PutAsync(Id.SubscriptionId, Id.ResourceGroupName, vaultName, data, cancellationToken).ConfigureAwait(false); var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new BackupResourceVaultConfigResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); @@ -111,16 +111,16 @@ public virtual async Task> Creat /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string vaultName, BackupResourceVaultConfigResourceData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string vaultName, BackupResourceVaultConfigData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _backupResourceVaultConfigResourceBackupResourceVaultConfigsClientDiagnostics.CreateScope("BackupResourceVaultConfigResourceCollection.CreateOrUpdate"); + using var scope = _backupResourceVaultConfigClientDiagnostics.CreateScope("BackupResourceVaultConfigCollection.CreateOrUpdate"); scope.Start(); try { - var response = _backupResourceVaultConfigResourceBackupResourceVaultConfigsRestClient.Put(Id.SubscriptionId, Id.ResourceGroupName, vaultName, data, cancellationToken); + var response = _backupResourceVaultConfigRestClient.Put(Id.SubscriptionId, Id.ResourceGroupName, vaultName, data, cancellationToken); var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new BackupResourceVaultConfigResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); @@ -154,11 +154,11 @@ public virtual async Task> GetAsync( { Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - using var scope = _backupResourceVaultConfigResourceBackupResourceVaultConfigsClientDiagnostics.CreateScope("BackupResourceVaultConfigResourceCollection.Get"); + using var scope = _backupResourceVaultConfigClientDiagnostics.CreateScope("BackupResourceVaultConfigCollection.Get"); scope.Start(); try { - var response = await _backupResourceVaultConfigResourceBackupResourceVaultConfigsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, vaultName, cancellationToken).ConfigureAwait(false); + var response = await _backupResourceVaultConfigRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, vaultName, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); return Response.FromValue(new BackupResourceVaultConfigResource(Client, response.Value), response.GetRawResponse()); @@ -191,11 +191,11 @@ public virtual Response Get(string vaultName, { Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - using var scope = _backupResourceVaultConfigResourceBackupResourceVaultConfigsClientDiagnostics.CreateScope("BackupResourceVaultConfigResourceCollection.Get"); + using var scope = _backupResourceVaultConfigClientDiagnostics.CreateScope("BackupResourceVaultConfigCollection.Get"); scope.Start(); try { - var response = _backupResourceVaultConfigResourceBackupResourceVaultConfigsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, vaultName, cancellationToken); + var response = _backupResourceVaultConfigRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, vaultName, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); return Response.FromValue(new BackupResourceVaultConfigResource(Client, response.Value), response.GetRawResponse()); @@ -228,11 +228,11 @@ public virtual async Task> ExistsAsync(string vaultName, Cancella { Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - using var scope = _backupResourceVaultConfigResourceBackupResourceVaultConfigsClientDiagnostics.CreateScope("BackupResourceVaultConfigResourceCollection.Exists"); + using var scope = _backupResourceVaultConfigClientDiagnostics.CreateScope("BackupResourceVaultConfigCollection.Exists"); scope.Start(); try { - var response = await _backupResourceVaultConfigResourceBackupResourceVaultConfigsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, vaultName, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _backupResourceVaultConfigRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, vaultName, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -263,11 +263,11 @@ public virtual Response Exists(string vaultName, CancellationToken cancell { Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - using var scope = _backupResourceVaultConfigResourceBackupResourceVaultConfigsClientDiagnostics.CreateScope("BackupResourceVaultConfigResourceCollection.Exists"); + using var scope = _backupResourceVaultConfigClientDiagnostics.CreateScope("BackupResourceVaultConfigCollection.Exists"); scope.Start(); try { - var response = _backupResourceVaultConfigResourceBackupResourceVaultConfigsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, vaultName, cancellationToken: cancellationToken); + var response = _backupResourceVaultConfigRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, vaultName, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceVaultConfigResourceData.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceVaultConfigData.cs similarity index 67% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceVaultConfigResourceData.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceVaultConfigData.cs index eb1ff0ba45127..0e5d4798bdee4 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceVaultConfigResourceData.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceVaultConfigData.cs @@ -13,16 +13,16 @@ namespace Azure.ResourceManager.RecoveryServicesBackup { - /// A class representing the BackupResourceVaultConfigResource data model. - public partial class BackupResourceVaultConfigResourceData : TrackedResourceData + /// A class representing the BackupResourceVaultConfig data model. + public partial class BackupResourceVaultConfigData : TrackedResourceData { - /// Initializes a new instance of BackupResourceVaultConfigResourceData. + /// Initializes a new instance of BackupResourceVaultConfigData. /// The location. - public BackupResourceVaultConfigResourceData(AzureLocation location) : base(location) + public BackupResourceVaultConfigData(AzureLocation location) : base(location) { } - /// Initializes a new instance of BackupResourceVaultConfigResourceData. + /// Initializes a new instance of BackupResourceVaultConfigData. /// The id. /// The name. /// The resourceType. @@ -31,14 +31,14 @@ public BackupResourceVaultConfigResourceData(AzureLocation location) : base(loca /// The location. /// BackupResourceVaultConfigResource properties. /// Optional ETag. - internal BackupResourceVaultConfigResourceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, BackupResourceVaultConfig properties, ETag? eTag) : base(id, name, resourceType, systemData, tags, location) + internal BackupResourceVaultConfigData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, BackupResourceVaultConfigProperties properties, ETag? eTag) : base(id, name, resourceType, systemData, tags, location) { Properties = properties; ETag = eTag; } /// BackupResourceVaultConfigResource properties. - public BackupResourceVaultConfig Properties { get; set; } + public BackupResourceVaultConfigProperties Properties { get; set; } /// Optional ETag. public ETag? ETag { get; set; } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceVaultConfigResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceVaultConfigResource.cs index b6470f3fd8f66..7320c5103f9ad 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceVaultConfigResource.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceVaultConfigResource.cs @@ -19,10 +19,10 @@ namespace Azure.ResourceManager.RecoveryServicesBackup { /// - /// A Class representing a BackupResourceVaultConfigResource along with the instance operations that can be performed on it. + /// A Class representing a BackupResourceVaultConfig along with the instance operations that can be performed on it. /// If you have a you can construct a /// from an instance of using the GetBackupResourceVaultConfigResource method. - /// Otherwise you can get one from its parent resource using the GetBackupResourceVaultConfigResource method. + /// Otherwise you can get one from its parent resource using the GetBackupResourceVaultConfig method. /// public partial class BackupResourceVaultConfigResource : ArmResource { @@ -33,9 +33,9 @@ public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _backupResourceVaultConfigResourceBackupResourceVaultConfigsClientDiagnostics; - private readonly BackupResourceVaultConfigsRestOperations _backupResourceVaultConfigResourceBackupResourceVaultConfigsRestClient; - private readonly BackupResourceVaultConfigResourceData _data; + private readonly ClientDiagnostics _backupResourceVaultConfigClientDiagnostics; + private readonly BackupResourceVaultConfigsRestOperations _backupResourceVaultConfigRestClient; + private readonly BackupResourceVaultConfigData _data; /// Initializes a new instance of the class for mocking. protected BackupResourceVaultConfigResource() @@ -45,7 +45,7 @@ protected BackupResourceVaultConfigResource() /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal BackupResourceVaultConfigResource(ArmClient client, BackupResourceVaultConfigResourceData data) : this(client, data.Id) + internal BackupResourceVaultConfigResource(ArmClient client, BackupResourceVaultConfigData data) : this(client, data.Id) { HasData = true; _data = data; @@ -56,9 +56,9 @@ internal BackupResourceVaultConfigResource(ArmClient client, BackupResourceVault /// The identifier of the resource that is the target of operations. internal BackupResourceVaultConfigResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _backupResourceVaultConfigResourceBackupResourceVaultConfigsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string backupResourceVaultConfigResourceBackupResourceVaultConfigsApiVersion); - _backupResourceVaultConfigResourceBackupResourceVaultConfigsRestClient = new BackupResourceVaultConfigsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, backupResourceVaultConfigResourceBackupResourceVaultConfigsApiVersion); + _backupResourceVaultConfigClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string backupResourceVaultConfigApiVersion); + _backupResourceVaultConfigRestClient = new BackupResourceVaultConfigsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, backupResourceVaultConfigApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -72,7 +72,7 @@ internal BackupResourceVaultConfigResource(ArmClient client, ResourceIdentifier /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual BackupResourceVaultConfigResourceData Data + public virtual BackupResourceVaultConfigData Data { get { @@ -104,11 +104,11 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _backupResourceVaultConfigResourceBackupResourceVaultConfigsClientDiagnostics.CreateScope("BackupResourceVaultConfigResource.Get"); + using var scope = _backupResourceVaultConfigClientDiagnostics.CreateScope("BackupResourceVaultConfigResource.Get"); scope.Start(); try { - var response = await _backupResourceVaultConfigResourceBackupResourceVaultConfigsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, cancellationToken).ConfigureAwait(false); + var response = await _backupResourceVaultConfigRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); return Response.FromValue(new BackupResourceVaultConfigResource(Client, response.Value), response.GetRawResponse()); @@ -136,11 +136,11 @@ public virtual async Task> GetAsync( /// The cancellation token to use. public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _backupResourceVaultConfigResourceBackupResourceVaultConfigsClientDiagnostics.CreateScope("BackupResourceVaultConfigResource.Get"); + using var scope = _backupResourceVaultConfigClientDiagnostics.CreateScope("BackupResourceVaultConfigResource.Get"); scope.Start(); try { - var response = _backupResourceVaultConfigResourceBackupResourceVaultConfigsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, cancellationToken); + var response = _backupResourceVaultConfigRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); return Response.FromValue(new BackupResourceVaultConfigResource(Client, response.Value), response.GetRawResponse()); @@ -168,15 +168,15 @@ public virtual Response Get(CancellationToken /// resource config request. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(BackupResourceVaultConfigResourceData data, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(BackupResourceVaultConfigData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _backupResourceVaultConfigResourceBackupResourceVaultConfigsClientDiagnostics.CreateScope("BackupResourceVaultConfigResource.Update"); + using var scope = _backupResourceVaultConfigClientDiagnostics.CreateScope("BackupResourceVaultConfigResource.Update"); scope.Start(); try { - var response = await _backupResourceVaultConfigResourceBackupResourceVaultConfigsRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, cancellationToken).ConfigureAwait(false); + var response = await _backupResourceVaultConfigRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, cancellationToken).ConfigureAwait(false); return Response.FromValue(new BackupResourceVaultConfigResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -202,15 +202,15 @@ public virtual async Task> UpdateAsy /// resource config request. /// The cancellation token to use. /// is null. - public virtual Response Update(BackupResourceVaultConfigResourceData data, CancellationToken cancellationToken = default) + public virtual Response Update(BackupResourceVaultConfigData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _backupResourceVaultConfigResourceBackupResourceVaultConfigsClientDiagnostics.CreateScope("BackupResourceVaultConfigResource.Update"); + using var scope = _backupResourceVaultConfigClientDiagnostics.CreateScope("BackupResourceVaultConfigResource.Update"); scope.Start(); try { - var response = _backupResourceVaultConfigResourceBackupResourceVaultConfigsRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, cancellationToken); + var response = _backupResourceVaultConfigRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, cancellationToken); return Response.FromValue(new BackupResourceVaultConfigResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -242,7 +242,7 @@ public virtual async Task> AddTagAsy Argument.AssertNotNull(key, nameof(key)); Argument.AssertNotNull(value, nameof(value)); - using var scope = _backupResourceVaultConfigResourceBackupResourceVaultConfigsClientDiagnostics.CreateScope("BackupResourceVaultConfigResource.AddTag"); + using var scope = _backupResourceVaultConfigClientDiagnostics.CreateScope("BackupResourceVaultConfigResource.AddTag"); scope.Start(); try { @@ -251,13 +251,13 @@ public virtual async Task> AddTagAsy var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); originalTags.Value.Data.TagValues[key] = value; await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); - var originalResponse = await _backupResourceVaultConfigResourceBackupResourceVaultConfigsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, cancellationToken).ConfigureAwait(false); + var originalResponse = await _backupResourceVaultConfigRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, cancellationToken).ConfigureAwait(false); return Response.FromValue(new BackupResourceVaultConfigResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; - var patch = new BackupResourceVaultConfigResourceData(current.Location); + var patch = new BackupResourceVaultConfigData(current.Location); foreach (var tag in current.Tags) { patch.Tags.Add(tag); @@ -296,7 +296,7 @@ public virtual Response AddTag(string key, st Argument.AssertNotNull(key, nameof(key)); Argument.AssertNotNull(value, nameof(value)); - using var scope = _backupResourceVaultConfigResourceBackupResourceVaultConfigsClientDiagnostics.CreateScope("BackupResourceVaultConfigResource.AddTag"); + using var scope = _backupResourceVaultConfigClientDiagnostics.CreateScope("BackupResourceVaultConfigResource.AddTag"); scope.Start(); try { @@ -305,13 +305,13 @@ public virtual Response AddTag(string key, st var originalTags = GetTagResource().Get(cancellationToken); originalTags.Value.Data.TagValues[key] = value; GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); - var originalResponse = _backupResourceVaultConfigResourceBackupResourceVaultConfigsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, cancellationToken); + var originalResponse = _backupResourceVaultConfigRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, cancellationToken); return Response.FromValue(new BackupResourceVaultConfigResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { var current = Get(cancellationToken: cancellationToken).Value.Data; - var patch = new BackupResourceVaultConfigResourceData(current.Location); + var patch = new BackupResourceVaultConfigData(current.Location); foreach (var tag in current.Tags) { patch.Tags.Add(tag); @@ -348,7 +348,7 @@ public virtual async Task> SetTagsAs { Argument.AssertNotNull(tags, nameof(tags)); - using var scope = _backupResourceVaultConfigResourceBackupResourceVaultConfigsClientDiagnostics.CreateScope("BackupResourceVaultConfigResource.SetTags"); + using var scope = _backupResourceVaultConfigClientDiagnostics.CreateScope("BackupResourceVaultConfigResource.SetTags"); scope.Start(); try { @@ -358,13 +358,13 @@ public virtual async Task> SetTagsAs var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); originalTags.Value.Data.TagValues.ReplaceWith(tags); await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); - var originalResponse = await _backupResourceVaultConfigResourceBackupResourceVaultConfigsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, cancellationToken).ConfigureAwait(false); + var originalResponse = await _backupResourceVaultConfigRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, cancellationToken).ConfigureAwait(false); return Response.FromValue(new BackupResourceVaultConfigResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; - var patch = new BackupResourceVaultConfigResourceData(current.Location); + var patch = new BackupResourceVaultConfigData(current.Location); patch.Tags.ReplaceWith(tags); var result = await UpdateAsync(patch, cancellationToken: cancellationToken).ConfigureAwait(false); return result; @@ -397,7 +397,7 @@ public virtual Response SetTags(IDictionary SetTags(IDictionary> RemoveTag { Argument.AssertNotNull(key, nameof(key)); - using var scope = _backupResourceVaultConfigResourceBackupResourceVaultConfigsClientDiagnostics.CreateScope("BackupResourceVaultConfigResource.RemoveTag"); + using var scope = _backupResourceVaultConfigClientDiagnostics.CreateScope("BackupResourceVaultConfigResource.RemoveTag"); scope.Start(); try { @@ -455,13 +455,13 @@ public virtual async Task> RemoveTag var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); originalTags.Value.Data.TagValues.Remove(key); await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); - var originalResponse = await _backupResourceVaultConfigResourceBackupResourceVaultConfigsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, cancellationToken).ConfigureAwait(false); + var originalResponse = await _backupResourceVaultConfigRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, cancellationToken).ConfigureAwait(false); return Response.FromValue(new BackupResourceVaultConfigResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; - var patch = new BackupResourceVaultConfigResourceData(current.Location); + var patch = new BackupResourceVaultConfigData(current.Location); foreach (var tag in current.Tags) { patch.Tags.Add(tag); @@ -498,7 +498,7 @@ public virtual Response RemoveTag(string key, { Argument.AssertNotNull(key, nameof(key)); - using var scope = _backupResourceVaultConfigResourceBackupResourceVaultConfigsClientDiagnostics.CreateScope("BackupResourceVaultConfigResource.RemoveTag"); + using var scope = _backupResourceVaultConfigClientDiagnostics.CreateScope("BackupResourceVaultConfigResource.RemoveTag"); scope.Start(); try { @@ -507,13 +507,13 @@ public virtual Response RemoveTag(string key, var originalTags = GetTagResource().Get(cancellationToken); originalTags.Value.Data.TagValues.Remove(key); GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); - var originalResponse = _backupResourceVaultConfigResourceBackupResourceVaultConfigsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, cancellationToken); + var originalResponse = _backupResourceVaultConfigRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, cancellationToken); return Response.FromValue(new BackupResourceVaultConfigResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { var current = Get(cancellationToken: cancellationToken).Value.Data; - var patch = new BackupResourceVaultConfigResourceData(current.Location); + var patch = new BackupResourceVaultConfigData(current.Location); foreach (var tag in current.Tags) { patch.Tags.Add(tag); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Extensions/RecoveryServicesBackupExtensions.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Extensions/RecoveryServicesBackupExtensions.cs index d115c89b80be1..dc730f7c4fd4f 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Extensions/RecoveryServicesBackupExtensions.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Extensions/RecoveryServicesBackupExtensions.cs @@ -45,17 +45,15 @@ private static SubscriptionResourceExtensionClient GetExtensionClient(Subscripti /// /// /// The instance the method will execute against. - /// Azure region to hit Api. + /// Azure region to hit Api. /// Enable backup validation request on Virtual Machine. /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// or is null. - public static async Task> ValidateProtectionIntentAsync(this SubscriptionResource subscriptionResource, string azureRegion, PreValidateEnableBackupContent content, CancellationToken cancellationToken = default) + /// is null. + public static async Task> ValidateProtectionIntentAsync(this SubscriptionResource subscriptionResource, AzureLocation location, PreValidateEnableBackupContent content, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(azureRegion, nameof(azureRegion)); Argument.AssertNotNull(content, nameof(content)); - return await GetExtensionClient(subscriptionResource).ValidateProtectionIntentAsync(azureRegion, content, cancellationToken).ConfigureAwait(false); + return await GetExtensionClient(subscriptionResource).ValidateProtectionIntentAsync(location, content, cancellationToken).ConfigureAwait(false); } /// @@ -75,17 +73,15 @@ public static async Task> ValidateProt /// /// /// The instance the method will execute against. - /// Azure region to hit Api. + /// Azure region to hit Api. /// Enable backup validation request on Virtual Machine. /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// or is null. - public static Response ValidateProtectionIntent(this SubscriptionResource subscriptionResource, string azureRegion, PreValidateEnableBackupContent content, CancellationToken cancellationToken = default) + /// is null. + public static Response ValidateProtectionIntent(this SubscriptionResource subscriptionResource, AzureLocation location, PreValidateEnableBackupContent content, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(azureRegion, nameof(azureRegion)); Argument.AssertNotNull(content, nameof(content)); - return GetExtensionClient(subscriptionResource).ValidateProtectionIntent(azureRegion, content, cancellationToken); + return GetExtensionClient(subscriptionResource).ValidateProtectionIntent(location, content, cancellationToken); } /// @@ -102,17 +98,15 @@ public static Response ValidateProtectionIntent /// /// /// The instance the method will execute against. - /// Azure region to hit Api. + /// Azure region to hit Api. /// Container Backup Status Request. /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// or is null. - public static async Task> GetBackupStatusAsync(this SubscriptionResource subscriptionResource, string azureRegion, BackupStatusContent content, CancellationToken cancellationToken = default) + /// is null. + public static async Task> GetBackupStatusAsync(this SubscriptionResource subscriptionResource, AzureLocation location, BackupStatusContent content, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(azureRegion, nameof(azureRegion)); Argument.AssertNotNull(content, nameof(content)); - return await GetExtensionClient(subscriptionResource).GetBackupStatusAsync(azureRegion, content, cancellationToken).ConfigureAwait(false); + return await GetExtensionClient(subscriptionResource).GetBackupStatusAsync(location, content, cancellationToken).ConfigureAwait(false); } /// @@ -129,17 +123,15 @@ public static async Task> GetBackupStatusAsync(th /// /// /// The instance the method will execute against. - /// Azure region to hit Api. + /// Azure region to hit Api. /// Container Backup Status Request. /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// or is null. - public static Response GetBackupStatus(this SubscriptionResource subscriptionResource, string azureRegion, BackupStatusContent content, CancellationToken cancellationToken = default) + /// is null. + public static Response GetBackupStatus(this SubscriptionResource subscriptionResource, AzureLocation location, BackupStatusContent content, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(azureRegion, nameof(azureRegion)); Argument.AssertNotNull(content, nameof(content)); - return GetExtensionClient(subscriptionResource).GetBackupStatus(azureRegion, content, cancellationToken); + return GetExtensionClient(subscriptionResource).GetBackupStatus(location, content, cancellationToken); } /// @@ -156,17 +148,15 @@ public static Response GetBackupStatus(this SubscriptionRe /// /// /// The instance the method will execute against. - /// Azure region to hit Api. + /// Azure region to hit Api. /// Feature support request object. /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// or is null. - public static async Task> ValidateFeatureSupportAsync(this SubscriptionResource subscriptionResource, string azureRegion, FeatureSupportContent content, CancellationToken cancellationToken = default) + /// is null. + public static async Task> ValidateFeatureSupportAsync(this SubscriptionResource subscriptionResource, AzureLocation location, FeatureSupportContent content, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(azureRegion, nameof(azureRegion)); Argument.AssertNotNull(content, nameof(content)); - return await GetExtensionClient(subscriptionResource).ValidateFeatureSupportAsync(azureRegion, content, cancellationToken).ConfigureAwait(false); + return await GetExtensionClient(subscriptionResource).ValidateFeatureSupportAsync(location, content, cancellationToken).ConfigureAwait(false); } /// @@ -183,17 +173,15 @@ public static async Task> Valida /// /// /// The instance the method will execute against. - /// Azure region to hit Api. + /// Azure region to hit Api. /// Feature support request object. /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// or is null. - public static Response ValidateFeatureSupport(this SubscriptionResource subscriptionResource, string azureRegion, FeatureSupportContent content, CancellationToken cancellationToken = default) + /// is null. + public static Response ValidateFeatureSupport(this SubscriptionResource subscriptionResource, AzureLocation location, FeatureSupportContent content, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(azureRegion, nameof(azureRegion)); Argument.AssertNotNull(content, nameof(content)); - return GetExtensionClient(subscriptionResource).ValidateFeatureSupport(azureRegion, content, cancellationToken); + return GetExtensionClient(subscriptionResource).ValidateFeatureSupport(location, content, cancellationToken); } private static ResourceGroupResourceExtensionClient GetExtensionClient(ResourceGroupResource resourceGroupResource) @@ -208,9 +196,9 @@ private static ResourceGroupResourceExtensionClient GetExtensionClient(ResourceG /// Gets a collection of BackupResourceConfigResources in the ResourceGroupResource. /// The instance the method will execute against. /// An object representing collection of BackupResourceConfigResources and their operations over a BackupResourceConfigResource. - public static BackupResourceConfigResourceCollection GetBackupResourceConfigResources(this ResourceGroupResource resourceGroupResource) + public static BackupResourceConfigCollection GetBackupResourceConfigs(this ResourceGroupResource resourceGroupResource) { - return GetExtensionClient(resourceGroupResource).GetBackupResourceConfigResources(); + return GetExtensionClient(resourceGroupResource).GetBackupResourceConfigs(); } /// @@ -232,9 +220,9 @@ public static BackupResourceConfigResourceCollection GetBackupResourceConfigReso /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public static async Task> GetBackupResourceConfigResourceAsync(this ResourceGroupResource resourceGroupResource, string vaultName, CancellationToken cancellationToken = default) + public static async Task> GetBackupResourceConfigAsync(this ResourceGroupResource resourceGroupResource, string vaultName, CancellationToken cancellationToken = default) { - return await resourceGroupResource.GetBackupResourceConfigResources().GetAsync(vaultName, cancellationToken).ConfigureAwait(false); + return await resourceGroupResource.GetBackupResourceConfigs().GetAsync(vaultName, cancellationToken).ConfigureAwait(false); } /// @@ -256,17 +244,17 @@ public static async Task> GetBackupResour /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public static Response GetBackupResourceConfigResource(this ResourceGroupResource resourceGroupResource, string vaultName, CancellationToken cancellationToken = default) + public static Response GetBackupResourceConfig(this ResourceGroupResource resourceGroupResource, string vaultName, CancellationToken cancellationToken = default) { - return resourceGroupResource.GetBackupResourceConfigResources().Get(vaultName, cancellationToken); + return resourceGroupResource.GetBackupResourceConfigs().Get(vaultName, cancellationToken); } - /// Gets a collection of ProtectionIntentResources in the ResourceGroupResource. + /// Gets a collection of BackupProtectionIntentResources in the ResourceGroupResource. /// The instance the method will execute against. - /// An object representing collection of ProtectionIntentResources and their operations over a ProtectionIntentResource. - public static ProtectionIntentResourceCollection GetProtectionIntentResources(this ResourceGroupResource resourceGroupResource) + /// An object representing collection of BackupProtectionIntentResources and their operations over a BackupProtectionIntentResource. + public static BackupProtectionIntentCollection GetBackupProtectionIntents(this ResourceGroupResource resourceGroupResource) { - return GetExtensionClient(resourceGroupResource).GetProtectionIntentResources(); + return GetExtensionClient(resourceGroupResource).GetBackupProtectionIntents(); } /// @@ -291,9 +279,9 @@ public static ProtectionIntentResourceCollection GetProtectionIntentResources(th /// , or is an empty string, and was expected to be non-empty. /// , or is null. [ForwardsClientCalls] - public static async Task> GetProtectionIntentResourceAsync(this ResourceGroupResource resourceGroupResource, string vaultName, string fabricName, string intentObjectName, CancellationToken cancellationToken = default) + public static async Task> GetBackupProtectionIntentAsync(this ResourceGroupResource resourceGroupResource, string vaultName, string fabricName, string intentObjectName, CancellationToken cancellationToken = default) { - return await resourceGroupResource.GetProtectionIntentResources().GetAsync(vaultName, fabricName, intentObjectName, cancellationToken).ConfigureAwait(false); + return await resourceGroupResource.GetBackupProtectionIntents().GetAsync(vaultName, fabricName, intentObjectName, cancellationToken).ConfigureAwait(false); } /// @@ -318,17 +306,17 @@ public static async Task> GetProtectionIntent /// , or is an empty string, and was expected to be non-empty. /// , or is null. [ForwardsClientCalls] - public static Response GetProtectionIntentResource(this ResourceGroupResource resourceGroupResource, string vaultName, string fabricName, string intentObjectName, CancellationToken cancellationToken = default) + public static Response GetBackupProtectionIntent(this ResourceGroupResource resourceGroupResource, string vaultName, string fabricName, string intentObjectName, CancellationToken cancellationToken = default) { - return resourceGroupResource.GetProtectionIntentResources().Get(vaultName, fabricName, intentObjectName, cancellationToken); + return resourceGroupResource.GetBackupProtectionIntents().Get(vaultName, fabricName, intentObjectName, cancellationToken); } /// Gets a collection of BackupResourceVaultConfigResources in the ResourceGroupResource. /// The instance the method will execute against. /// An object representing collection of BackupResourceVaultConfigResources and their operations over a BackupResourceVaultConfigResource. - public static BackupResourceVaultConfigResourceCollection GetBackupResourceVaultConfigResources(this ResourceGroupResource resourceGroupResource) + public static BackupResourceVaultConfigCollection GetBackupResourceVaultConfigs(this ResourceGroupResource resourceGroupResource) { - return GetExtensionClient(resourceGroupResource).GetBackupResourceVaultConfigResources(); + return GetExtensionClient(resourceGroupResource).GetBackupResourceVaultConfigs(); } /// @@ -350,9 +338,9 @@ public static BackupResourceVaultConfigResourceCollection GetBackupResourceVault /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public static async Task> GetBackupResourceVaultConfigResourceAsync(this ResourceGroupResource resourceGroupResource, string vaultName, CancellationToken cancellationToken = default) + public static async Task> GetBackupResourceVaultConfigAsync(this ResourceGroupResource resourceGroupResource, string vaultName, CancellationToken cancellationToken = default) { - return await resourceGroupResource.GetBackupResourceVaultConfigResources().GetAsync(vaultName, cancellationToken).ConfigureAwait(false); + return await resourceGroupResource.GetBackupResourceVaultConfigs().GetAsync(vaultName, cancellationToken).ConfigureAwait(false); } /// @@ -374,17 +362,17 @@ public static async Task> GetBackupR /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public static Response GetBackupResourceVaultConfigResource(this ResourceGroupResource resourceGroupResource, string vaultName, CancellationToken cancellationToken = default) + public static Response GetBackupResourceVaultConfig(this ResourceGroupResource resourceGroupResource, string vaultName, CancellationToken cancellationToken = default) { - return resourceGroupResource.GetBackupResourceVaultConfigResources().Get(vaultName, cancellationToken); + return resourceGroupResource.GetBackupResourceVaultConfigs().Get(vaultName, cancellationToken); } /// Gets a collection of BackupResourceEncryptionConfigExtendedResources in the ResourceGroupResource. /// The instance the method will execute against. /// An object representing collection of BackupResourceEncryptionConfigExtendedResources and their operations over a BackupResourceEncryptionConfigExtendedResource. - public static BackupResourceEncryptionConfigExtendedResourceCollection GetBackupResourceEncryptionConfigExtendedResources(this ResourceGroupResource resourceGroupResource) + public static BackupResourceEncryptionConfigExtendedCollection GetBackupResourceEncryptionConfigExtendeds(this ResourceGroupResource resourceGroupResource) { - return GetExtensionClient(resourceGroupResource).GetBackupResourceEncryptionConfigExtendedResources(); + return GetExtensionClient(resourceGroupResource).GetBackupResourceEncryptionConfigExtendeds(); } /// @@ -406,9 +394,9 @@ public static BackupResourceEncryptionConfigExtendedResourceCollection GetBackup /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public static async Task> GetBackupResourceEncryptionConfigExtendedResourceAsync(this ResourceGroupResource resourceGroupResource, string vaultName, CancellationToken cancellationToken = default) + public static async Task> GetBackupResourceEncryptionConfigExtendedAsync(this ResourceGroupResource resourceGroupResource, string vaultName, CancellationToken cancellationToken = default) { - return await resourceGroupResource.GetBackupResourceEncryptionConfigExtendedResources().GetAsync(vaultName, cancellationToken).ConfigureAwait(false); + return await resourceGroupResource.GetBackupResourceEncryptionConfigExtendeds().GetAsync(vaultName, cancellationToken).ConfigureAwait(false); } /// @@ -430,17 +418,17 @@ public static async Task is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public static Response GetBackupResourceEncryptionConfigExtendedResource(this ResourceGroupResource resourceGroupResource, string vaultName, CancellationToken cancellationToken = default) + public static Response GetBackupResourceEncryptionConfigExtended(this ResourceGroupResource resourceGroupResource, string vaultName, CancellationToken cancellationToken = default) { - return resourceGroupResource.GetBackupResourceEncryptionConfigExtendedResources().Get(vaultName, cancellationToken); + return resourceGroupResource.GetBackupResourceEncryptionConfigExtendeds().Get(vaultName, cancellationToken); } - /// Gets a collection of PrivateEndpointConnectionResources in the ResourceGroupResource. + /// Gets a collection of BackupPrivateEndpointConnectionResources in the ResourceGroupResource. /// The instance the method will execute against. - /// An object representing collection of PrivateEndpointConnectionResources and their operations over a PrivateEndpointConnectionResource. - public static PrivateEndpointConnectionResourceCollection GetPrivateEndpointConnectionResources(this ResourceGroupResource resourceGroupResource) + /// An object representing collection of BackupPrivateEndpointConnectionResources and their operations over a BackupPrivateEndpointConnectionResource. + public static BackupPrivateEndpointConnectionCollection GetBackupPrivateEndpointConnections(this ResourceGroupResource resourceGroupResource) { - return GetExtensionClient(resourceGroupResource).GetPrivateEndpointConnectionResources(); + return GetExtensionClient(resourceGroupResource).GetBackupPrivateEndpointConnections(); } /// @@ -463,9 +451,9 @@ public static PrivateEndpointConnectionResourceCollection GetPrivateEndpointConn /// or is an empty string, and was expected to be non-empty. /// or is null. [ForwardsClientCalls] - public static async Task> GetPrivateEndpointConnectionResourceAsync(this ResourceGroupResource resourceGroupResource, string vaultName, string privateEndpointConnectionName, CancellationToken cancellationToken = default) + public static async Task> GetBackupPrivateEndpointConnectionAsync(this ResourceGroupResource resourceGroupResource, string vaultName, string privateEndpointConnectionName, CancellationToken cancellationToken = default) { - return await resourceGroupResource.GetPrivateEndpointConnectionResources().GetAsync(vaultName, privateEndpointConnectionName, cancellationToken).ConfigureAwait(false); + return await resourceGroupResource.GetBackupPrivateEndpointConnections().GetAsync(vaultName, privateEndpointConnectionName, cancellationToken).ConfigureAwait(false); } /// @@ -488,22 +476,22 @@ public static async Task> GetPrivate /// or is an empty string, and was expected to be non-empty. /// or is null. [ForwardsClientCalls] - public static Response GetPrivateEndpointConnectionResource(this ResourceGroupResource resourceGroupResource, string vaultName, string privateEndpointConnectionName, CancellationToken cancellationToken = default) + public static Response GetBackupPrivateEndpointConnection(this ResourceGroupResource resourceGroupResource, string vaultName, string privateEndpointConnectionName, CancellationToken cancellationToken = default) { - return resourceGroupResource.GetPrivateEndpointConnectionResources().Get(vaultName, privateEndpointConnectionName, cancellationToken); + return resourceGroupResource.GetBackupPrivateEndpointConnections().Get(vaultName, privateEndpointConnectionName, cancellationToken); } - /// Gets a collection of ProtectionPolicyResources in the ResourceGroupResource. + /// Gets a collection of BackupProtectionPolicyResources in the ResourceGroupResource. /// The instance the method will execute against. /// The name of the recovery services vault. /// is an empty string, and was expected to be non-empty. /// is null. - /// An object representing collection of ProtectionPolicyResources and their operations over a ProtectionPolicyResource. - public static ProtectionPolicyResourceCollection GetProtectionPolicyResources(this ResourceGroupResource resourceGroupResource, string vaultName) + /// An object representing collection of BackupProtectionPolicyResources and their operations over a BackupProtectionPolicyResource. + public static BackupProtectionPolicyCollection GetBackupProtectionPolicies(this ResourceGroupResource resourceGroupResource, string vaultName) { Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - return GetExtensionClient(resourceGroupResource).GetProtectionPolicyResources(vaultName); + return GetExtensionClient(resourceGroupResource).GetBackupProtectionPolicies(vaultName); } /// @@ -527,9 +515,9 @@ public static ProtectionPolicyResourceCollection GetProtectionPolicyResources(th /// or is an empty string, and was expected to be non-empty. /// or is null. [ForwardsClientCalls] - public static async Task> GetProtectionPolicyResourceAsync(this ResourceGroupResource resourceGroupResource, string vaultName, string policyName, CancellationToken cancellationToken = default) + public static async Task> GetBackupProtectionPolicyAsync(this ResourceGroupResource resourceGroupResource, string vaultName, string policyName, CancellationToken cancellationToken = default) { - return await resourceGroupResource.GetProtectionPolicyResources(vaultName).GetAsync(policyName, cancellationToken).ConfigureAwait(false); + return await resourceGroupResource.GetBackupProtectionPolicies(vaultName).GetAsync(policyName, cancellationToken).ConfigureAwait(false); } /// @@ -553,22 +541,22 @@ public static async Task> GetProtectionPolicy /// or is an empty string, and was expected to be non-empty. /// or is null. [ForwardsClientCalls] - public static Response GetProtectionPolicyResource(this ResourceGroupResource resourceGroupResource, string vaultName, string policyName, CancellationToken cancellationToken = default) + public static Response GetBackupProtectionPolicy(this ResourceGroupResource resourceGroupResource, string vaultName, string policyName, CancellationToken cancellationToken = default) { - return resourceGroupResource.GetProtectionPolicyResources(vaultName).Get(policyName, cancellationToken); + return resourceGroupResource.GetBackupProtectionPolicies(vaultName).Get(policyName, cancellationToken); } - /// Gets a collection of JobResources in the ResourceGroupResource. + /// Gets a collection of BackupJobResources in the ResourceGroupResource. /// The instance the method will execute against. /// The name of the recovery services vault. /// is an empty string, and was expected to be non-empty. /// is null. - /// An object representing collection of JobResources and their operations over a JobResource. - public static JobResourceCollection GetJobResources(this ResourceGroupResource resourceGroupResource, string vaultName) + /// An object representing collection of BackupJobResources and their operations over a BackupJobResource. + public static BackupJobCollection GetBackupJobs(this ResourceGroupResource resourceGroupResource, string vaultName) { Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - return GetExtensionClient(resourceGroupResource).GetJobResources(vaultName); + return GetExtensionClient(resourceGroupResource).GetBackupJobs(vaultName); } /// @@ -591,9 +579,9 @@ public static JobResourceCollection GetJobResources(this ResourceGroupResource r /// or is an empty string, and was expected to be non-empty. /// or is null. [ForwardsClientCalls] - public static async Task> GetJobResourceAsync(this ResourceGroupResource resourceGroupResource, string vaultName, string jobName, CancellationToken cancellationToken = default) + public static async Task> GetBackupJobAsync(this ResourceGroupResource resourceGroupResource, string vaultName, string jobName, CancellationToken cancellationToken = default) { - return await resourceGroupResource.GetJobResources(vaultName).GetAsync(jobName, cancellationToken).ConfigureAwait(false); + return await resourceGroupResource.GetBackupJobs(vaultName).GetAsync(jobName, cancellationToken).ConfigureAwait(false); } /// @@ -616,22 +604,22 @@ public static async Task> GetJobResourceAsync(this Resourc /// or is an empty string, and was expected to be non-empty. /// or is null. [ForwardsClientCalls] - public static Response GetJobResource(this ResourceGroupResource resourceGroupResource, string vaultName, string jobName, CancellationToken cancellationToken = default) + public static Response GetBackupJob(this ResourceGroupResource resourceGroupResource, string vaultName, string jobName, CancellationToken cancellationToken = default) { - return resourceGroupResource.GetJobResources(vaultName).Get(jobName, cancellationToken); + return resourceGroupResource.GetBackupJobs(vaultName).Get(jobName, cancellationToken); } - /// Gets a collection of BackupEngineBaseResources in the ResourceGroupResource. + /// Gets a collection of BackupEngineResources in the ResourceGroupResource. /// The instance the method will execute against. /// The name of the recovery services vault. /// is an empty string, and was expected to be non-empty. /// is null. - /// An object representing collection of BackupEngineBaseResources and their operations over a BackupEngineBaseResource. - public static BackupEngineBaseResourceCollection GetBackupEngineBaseResources(this ResourceGroupResource resourceGroupResource, string vaultName) + /// An object representing collection of BackupEngineResources and their operations over a BackupEngineResource. + public static BackupEngineCollection GetBackupEngines(this ResourceGroupResource resourceGroupResource, string vaultName) { Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - return GetExtensionClient(resourceGroupResource).GetBackupEngineBaseResources(vaultName); + return GetExtensionClient(resourceGroupResource).GetBackupEngines(vaultName); } /// @@ -656,9 +644,9 @@ public static BackupEngineBaseResourceCollection GetBackupEngineBaseResources(th /// or is an empty string, and was expected to be non-empty. /// or is null. [ForwardsClientCalls] - public static async Task> GetBackupEngineBaseResourceAsync(this ResourceGroupResource resourceGroupResource, string vaultName, string backupEngineName, string filter = null, string skipToken = null, CancellationToken cancellationToken = default) + public static async Task> GetBackupEngineAsync(this ResourceGroupResource resourceGroupResource, string vaultName, string backupEngineName, string filter = null, string skipToken = null, CancellationToken cancellationToken = default) { - return await resourceGroupResource.GetBackupEngineBaseResources(vaultName).GetAsync(backupEngineName, filter, skipToken, cancellationToken).ConfigureAwait(false); + return await resourceGroupResource.GetBackupEngines(vaultName).GetAsync(backupEngineName, filter, skipToken, cancellationToken).ConfigureAwait(false); } /// @@ -683,17 +671,17 @@ public static async Task> GetBackupEngineBase /// or is an empty string, and was expected to be non-empty. /// or is null. [ForwardsClientCalls] - public static Response GetBackupEngineBaseResource(this ResourceGroupResource resourceGroupResource, string vaultName, string backupEngineName, string filter = null, string skipToken = null, CancellationToken cancellationToken = default) + public static Response GetBackupEngine(this ResourceGroupResource resourceGroupResource, string vaultName, string backupEngineName, string filter = null, string skipToken = null, CancellationToken cancellationToken = default) { - return resourceGroupResource.GetBackupEngineBaseResources(vaultName).Get(backupEngineName, filter, skipToken, cancellationToken); + return resourceGroupResource.GetBackupEngines(vaultName).Get(backupEngineName, filter, skipToken, cancellationToken); } - /// Gets a collection of ProtectionContainerResources in the ResourceGroupResource. + /// Gets a collection of BackupProtectionContainerResources in the ResourceGroupResource. /// The instance the method will execute against. - /// An object representing collection of ProtectionContainerResources and their operations over a ProtectionContainerResource. - public static ProtectionContainerResourceCollection GetProtectionContainerResources(this ResourceGroupResource resourceGroupResource) + /// An object representing collection of BackupProtectionContainerResources and their operations over a BackupProtectionContainerResource. + public static BackupProtectionContainerCollection GetBackupProtectionContainers(this ResourceGroupResource resourceGroupResource) { - return GetExtensionClient(resourceGroupResource).GetProtectionContainerResources(); + return GetExtensionClient(resourceGroupResource).GetBackupProtectionContainers(); } /// @@ -717,9 +705,9 @@ public static ProtectionContainerResourceCollection GetProtectionContainerResour /// , or is an empty string, and was expected to be non-empty. /// , or is null. [ForwardsClientCalls] - public static async Task> GetProtectionContainerResourceAsync(this ResourceGroupResource resourceGroupResource, string vaultName, string fabricName, string containerName, CancellationToken cancellationToken = default) + public static async Task> GetBackupProtectionContainerAsync(this ResourceGroupResource resourceGroupResource, string vaultName, string fabricName, string containerName, CancellationToken cancellationToken = default) { - return await resourceGroupResource.GetProtectionContainerResources().GetAsync(vaultName, fabricName, containerName, cancellationToken).ConfigureAwait(false); + return await resourceGroupResource.GetBackupProtectionContainers().GetAsync(vaultName, fabricName, containerName, cancellationToken).ConfigureAwait(false); } /// @@ -743,22 +731,22 @@ public static async Task> GetProtectionCon /// , or is an empty string, and was expected to be non-empty. /// , or is null. [ForwardsClientCalls] - public static Response GetProtectionContainerResource(this ResourceGroupResource resourceGroupResource, string vaultName, string fabricName, string containerName, CancellationToken cancellationToken = default) + public static Response GetBackupProtectionContainer(this ResourceGroupResource resourceGroupResource, string vaultName, string fabricName, string containerName, CancellationToken cancellationToken = default) { - return resourceGroupResource.GetProtectionContainerResources().Get(vaultName, fabricName, containerName, cancellationToken); + return resourceGroupResource.GetBackupProtectionContainers().Get(vaultName, fabricName, containerName, cancellationToken); } - /// Gets a collection of ResourceGuardProxyBaseResources in the ResourceGroupResource. + /// Gets a collection of ResourceGuardProxyResources in the ResourceGroupResource. /// The instance the method will execute against. /// The name of the recovery services vault. /// is an empty string, and was expected to be non-empty. /// is null. - /// An object representing collection of ResourceGuardProxyBaseResources and their operations over a ResourceGuardProxyBaseResource. - public static ResourceGuardProxyBaseResourceCollection GetResourceGuardProxyBaseResources(this ResourceGroupResource resourceGroupResource, string vaultName) + /// An object representing collection of ResourceGuardProxyResources and their operations over a ResourceGuardProxyResource. + public static ResourceGuardProxyCollection GetResourceGuardProxies(this ResourceGroupResource resourceGroupResource, string vaultName) { Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - return GetExtensionClient(resourceGroupResource).GetResourceGuardProxyBaseResources(vaultName); + return GetExtensionClient(resourceGroupResource).GetResourceGuardProxies(vaultName); } /// @@ -781,9 +769,9 @@ public static ResourceGuardProxyBaseResourceCollection GetResourceGuardProxyBase /// or is an empty string, and was expected to be non-empty. /// or is null. [ForwardsClientCalls] - public static async Task> GetResourceGuardProxyBaseResourceAsync(this ResourceGroupResource resourceGroupResource, string vaultName, string resourceGuardProxyName, CancellationToken cancellationToken = default) + public static async Task> GetResourceGuardProxyAsync(this ResourceGroupResource resourceGroupResource, string vaultName, string resourceGuardProxyName, CancellationToken cancellationToken = default) { - return await resourceGroupResource.GetResourceGuardProxyBaseResources(vaultName).GetAsync(resourceGuardProxyName, cancellationToken).ConfigureAwait(false); + return await resourceGroupResource.GetResourceGuardProxies(vaultName).GetAsync(resourceGuardProxyName, cancellationToken).ConfigureAwait(false); } /// @@ -806,9 +794,9 @@ public static async Task> GetResourceGu /// or is an empty string, and was expected to be non-empty. /// or is null. [ForwardsClientCalls] - public static Response GetResourceGuardProxyBaseResource(this ResourceGroupResource resourceGroupResource, string vaultName, string resourceGuardProxyName, CancellationToken cancellationToken = default) + public static Response GetResourceGuardProxy(this ResourceGroupResource resourceGroupResource, string vaultName, string resourceGuardProxyName, CancellationToken cancellationToken = default) { - return resourceGroupResource.GetResourceGuardProxyBaseResources(vaultName).Get(resourceGuardProxyName, cancellationToken); + return resourceGroupResource.GetResourceGuardProxies(vaultName).Get(resourceGuardProxyName, cancellationToken); } /// @@ -831,12 +819,12 @@ public static Response GetResourceGuardProxyBase /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - /// An async collection of that may take multiple service requests to iterate over. - public static AsyncPageable GetProtectionIntentResourcesByBackupProtectionIntentAsync(this ResourceGroupResource resourceGroupResource, string vaultName, string filter = null, string skipToken = null, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public static AsyncPageable GetBackupProtectionIntentsAsync(this ResourceGroupResource resourceGroupResource, string vaultName, string filter = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - return GetExtensionClient(resourceGroupResource).GetProtectionIntentResourcesByBackupProtectionIntentAsync(vaultName, filter, skipToken, cancellationToken); + return GetExtensionClient(resourceGroupResource).GetBackupProtectionIntentsAsync(vaultName, filter, skipToken, cancellationToken); } /// @@ -859,12 +847,12 @@ public static AsyncPageable GetProtectionIntentResourc /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - /// A collection of that may take multiple service requests to iterate over. - public static Pageable GetProtectionIntentResourcesByBackupProtectionIntent(this ResourceGroupResource resourceGroupResource, string vaultName, string filter = null, string skipToken = null, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public static Pageable GetBackupProtectionIntents(this ResourceGroupResource resourceGroupResource, string vaultName, string filter = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - return GetExtensionClient(resourceGroupResource).GetProtectionIntentResourcesByBackupProtectionIntent(vaultName, filter, skipToken, cancellationToken); + return GetExtensionClient(resourceGroupResource).GetBackupProtectionIntents(vaultName, filter, skipToken, cancellationToken); } /// @@ -923,62 +911,6 @@ public static Pageable GetBackupUsageSummaries(this Resou return GetExtensionClient(resourceGroupResource).GetBackupUsageSummaries(vaultName, filter, skipToken, cancellationToken); } - /// - /// Gets the operation result of operation triggered by Export Jobs API. If the operation is successful, then it also - /// contains URL of a Blob and a SAS key to access the same. The blob contains exported jobs in JSON serialized format. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobs/operationResults/{operationId} - /// - /// - /// Operation Id - /// ExportJobsOperationResults_Get - /// - /// - /// - /// The instance the method will execute against. - /// The name of the recovery services vault. - /// OperationID which represents the export job. - /// The cancellation token to use. - /// or is an empty string, and was expected to be non-empty. - /// or is null. - public static async Task> GetExportJobsOperationResultAsync(this ResourceGroupResource resourceGroupResource, string vaultName, string operationId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - Argument.AssertNotNullOrEmpty(operationId, nameof(operationId)); - - return await GetExtensionClient(resourceGroupResource).GetExportJobsOperationResultAsync(vaultName, operationId, cancellationToken).ConfigureAwait(false); - } - - /// - /// Gets the operation result of operation triggered by Export Jobs API. If the operation is successful, then it also - /// contains URL of a Blob and a SAS key to access the same. The blob contains exported jobs in JSON serialized format. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobs/operationResults/{operationId} - /// - /// - /// Operation Id - /// ExportJobsOperationResults_Get - /// - /// - /// - /// The instance the method will execute against. - /// The name of the recovery services vault. - /// OperationID which represents the export job. - /// The cancellation token to use. - /// or is an empty string, and was expected to be non-empty. - /// or is null. - public static Response GetExportJobsOperationResult(this ResourceGroupResource resourceGroupResource, string vaultName, string operationId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - Argument.AssertNotNullOrEmpty(operationId, nameof(operationId)); - - return GetExtensionClient(resourceGroupResource).GetExportJobsOperationResult(vaultName, operationId, cancellationToken); - } - /// /// Triggers export of jobs specified by filters and returns an OperationID to track. /// @@ -1051,12 +983,12 @@ public static Response ExportJob(this ResourceGroupResource resourceGroupResourc /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - /// An async collection of that may take multiple service requests to iterate over. - public static AsyncPageable GetProtectedItemResourcesByBackupProtectedItemAsync(this ResourceGroupResource resourceGroupResource, string vaultName, string filter = null, string skipToken = null, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public static AsyncPageable GetBackupProtectedItemsAsync(this ResourceGroupResource resourceGroupResource, string vaultName, string filter = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - return GetExtensionClient(resourceGroupResource).GetProtectedItemResourcesByBackupProtectedItemAsync(vaultName, filter, skipToken, cancellationToken); + return GetExtensionClient(resourceGroupResource).GetBackupProtectedItemsAsync(vaultName, filter, skipToken, cancellationToken); } /// @@ -1079,292 +1011,12 @@ public static AsyncPageable GetProtectedItemResourcesByBa /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - /// A collection of that may take multiple service requests to iterate over. - public static Pageable GetProtectedItemResourcesByBackupProtectedItem(this ResourceGroupResource resourceGroupResource, string vaultName, string filter = null, string skipToken = null, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - - return GetExtensionClient(resourceGroupResource).GetProtectedItemResourcesByBackupProtectedItem(vaultName, filter, skipToken, cancellationToken); - } - - /// - /// Validate operation for specified backed up item. This is a synchronous operation. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupValidateOperation - /// - /// - /// Operation Id - /// Operation_Validate - /// - /// - /// - /// The instance the method will execute against. - /// The name of the recovery services vault. - /// resource validate operation request. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// or is null. - public static async Task> ValidateOperationAsync(this ResourceGroupResource resourceGroupResource, string vaultName, ValidateOperationRequest validateOperationRequest, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - Argument.AssertNotNull(validateOperationRequest, nameof(validateOperationRequest)); - - return await GetExtensionClient(resourceGroupResource).ValidateOperationAsync(vaultName, validateOperationRequest, cancellationToken).ConfigureAwait(false); - } - - /// - /// Validate operation for specified backed up item. This is a synchronous operation. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupValidateOperation - /// - /// - /// Operation Id - /// Operation_Validate - /// - /// - /// - /// The instance the method will execute against. - /// The name of the recovery services vault. - /// resource validate operation request. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// or is null. - public static Response ValidateOperation(this ResourceGroupResource resourceGroupResource, string vaultName, ValidateOperationRequest validateOperationRequest, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - Argument.AssertNotNull(validateOperationRequest, nameof(validateOperationRequest)); - - return GetExtensionClient(resourceGroupResource).ValidateOperation(vaultName, validateOperationRequest, cancellationToken); - } - - /// - /// Validate operation for specified backed up item in the form of an asynchronous operation. Returns tracking headers which can be tracked using GetValidateOperationResult API. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupTriggerValidateOperation - /// - /// - /// Operation Id - /// ValidateOperation_Trigger - /// - /// - /// - /// The instance the method will execute against. - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the recovery services vault. - /// resource validate operation request. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// or is null. - public static async Task TriggerValidateOperationAsync(this ResourceGroupResource resourceGroupResource, WaitUntil waitUntil, string vaultName, ValidateOperationRequest validateOperationRequest, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - Argument.AssertNotNull(validateOperationRequest, nameof(validateOperationRequest)); - - return await GetExtensionClient(resourceGroupResource).TriggerValidateOperationAsync(waitUntil, vaultName, validateOperationRequest, cancellationToken).ConfigureAwait(false); - } - - /// - /// Validate operation for specified backed up item in the form of an asynchronous operation. Returns tracking headers which can be tracked using GetValidateOperationResult API. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupTriggerValidateOperation - /// - /// - /// Operation Id - /// ValidateOperation_Trigger - /// - /// - /// - /// The instance the method will execute against. - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the recovery services vault. - /// resource validate operation request. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// or is null. - public static ArmOperation TriggerValidateOperation(this ResourceGroupResource resourceGroupResource, WaitUntil waitUntil, string vaultName, ValidateOperationRequest validateOperationRequest, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - Argument.AssertNotNull(validateOperationRequest, nameof(validateOperationRequest)); - - return GetExtensionClient(resourceGroupResource).TriggerValidateOperation(waitUntil, vaultName, validateOperationRequest, cancellationToken); - } - - /// - /// Fetches the result of a triggered validate operation. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupValidateOperationResults/{operationId} - /// - /// - /// Operation Id - /// ValidateOperationResults_Get - /// - /// - /// - /// The instance the method will execute against. - /// The name of the recovery services vault. - /// OperationID which represents the operation whose result needs to be fetched. - /// The cancellation token to use. - /// or is an empty string, and was expected to be non-empty. - /// or is null. - public static async Task> GetValidateOperationResultAsync(this ResourceGroupResource resourceGroupResource, string vaultName, string operationId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - Argument.AssertNotNullOrEmpty(operationId, nameof(operationId)); - - return await GetExtensionClient(resourceGroupResource).GetValidateOperationResultAsync(vaultName, operationId, cancellationToken).ConfigureAwait(false); - } - - /// - /// Fetches the result of a triggered validate operation. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupValidateOperationResults/{operationId} - /// - /// - /// Operation Id - /// ValidateOperationResults_Get - /// - /// - /// - /// The instance the method will execute against. - /// The name of the recovery services vault. - /// OperationID which represents the operation whose result needs to be fetched. - /// The cancellation token to use. - /// or is an empty string, and was expected to be non-empty. - /// or is null. - public static Response GetValidateOperationResult(this ResourceGroupResource resourceGroupResource, string vaultName, string operationId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - Argument.AssertNotNullOrEmpty(operationId, nameof(operationId)); - - return GetExtensionClient(resourceGroupResource).GetValidateOperationResult(vaultName, operationId, cancellationToken); - } - - /// - /// Fetches the status of a triggered validate operation. The status can be in progress, completed - /// or failed. You can refer to the OperationStatus enum for all the possible states of the operation. - /// If operation has completed, this method returns the list of errors obtained while validating the operation. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupValidateOperationsStatuses/{operationId} - /// - /// - /// Operation Id - /// ValidateOperationStatuses_Get - /// - /// - /// - /// The instance the method will execute against. - /// The name of the recovery services vault. - /// OperationID represents the operation whose status needs to be fetched. - /// The cancellation token to use. - /// or is an empty string, and was expected to be non-empty. - /// or is null. - public static async Task> GetValidateOperationStatusAsync(this ResourceGroupResource resourceGroupResource, string vaultName, string operationId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - Argument.AssertNotNullOrEmpty(operationId, nameof(operationId)); - - return await GetExtensionClient(resourceGroupResource).GetValidateOperationStatusAsync(vaultName, operationId, cancellationToken).ConfigureAwait(false); - } - - /// - /// Fetches the status of a triggered validate operation. The status can be in progress, completed - /// or failed. You can refer to the OperationStatus enum for all the possible states of the operation. - /// If operation has completed, this method returns the list of errors obtained while validating the operation. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupValidateOperationsStatuses/{operationId} - /// - /// - /// Operation Id - /// ValidateOperationStatuses_Get - /// - /// - /// - /// The instance the method will execute against. - /// The name of the recovery services vault. - /// OperationID represents the operation whose status needs to be fetched. - /// The cancellation token to use. - /// or is an empty string, and was expected to be non-empty. - /// or is null. - public static Response GetValidateOperationStatus(this ResourceGroupResource resourceGroupResource, string vaultName, string operationId, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public static Pageable GetBackupProtectedItems(this ResourceGroupResource resourceGroupResource, string vaultName, string filter = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - Argument.AssertNotNullOrEmpty(operationId, nameof(operationId)); - return GetExtensionClient(resourceGroupResource).GetValidateOperationStatus(vaultName, operationId, cancellationToken); - } - - /// - /// Provides the result of the refresh operation triggered by the BeginRefresh operation. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/operationResults/{operationId} - /// - /// - /// Operation Id - /// ProtectionContainerRefreshOperationResults_Get - /// - /// - /// - /// The instance the method will execute against. - /// The name of the recovery services vault. - /// Fabric name associated with the container. - /// Operation ID associated with the operation whose result needs to be fetched. - /// The cancellation token to use. - /// , or is an empty string, and was expected to be non-empty. - /// , or is null. - public static async Task GetProtectionContainerRefreshOperationResultAsync(this ResourceGroupResource resourceGroupResource, string vaultName, string fabricName, string operationId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - Argument.AssertNotNullOrEmpty(fabricName, nameof(fabricName)); - Argument.AssertNotNullOrEmpty(operationId, nameof(operationId)); - - return await GetExtensionClient(resourceGroupResource).GetProtectionContainerRefreshOperationResultAsync(vaultName, fabricName, operationId, cancellationToken).ConfigureAwait(false); - } - - /// - /// Provides the result of the refresh operation triggered by the BeginRefresh operation. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/operationResults/{operationId} - /// - /// - /// Operation Id - /// ProtectionContainerRefreshOperationResults_Get - /// - /// - /// - /// The instance the method will execute against. - /// The name of the recovery services vault. - /// Fabric name associated with the container. - /// Operation ID associated with the operation whose result needs to be fetched. - /// The cancellation token to use. - /// , or is an empty string, and was expected to be non-empty. - /// , or is null. - public static Response GetProtectionContainerRefreshOperationResult(this ResourceGroupResource resourceGroupResource, string vaultName, string fabricName, string operationId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - Argument.AssertNotNullOrEmpty(fabricName, nameof(fabricName)); - Argument.AssertNotNullOrEmpty(operationId, nameof(operationId)); - - return GetExtensionClient(resourceGroupResource).GetProtectionContainerRefreshOperationResult(vaultName, fabricName, operationId, cancellationToken); + return GetExtensionClient(resourceGroupResource).GetBackupProtectedItems(vaultName, filter, skipToken, cancellationToken); } /// @@ -1483,124 +1135,6 @@ public static Response RefreshProtectionContainer(this ResourceGroupResource res return GetExtensionClient(resourceGroupResource).RefreshProtectionContainer(vaultName, fabricName, filter, cancellationToken); } - /// - /// Provides the status of the delete operations such as deleting backed up item. Once the operation has started, the - /// status code in the response would be Accepted. It will continue to be in this state till it reaches completion. On - /// successful completion, the status code will be OK. This method expects OperationID as an argument. OperationID is - /// part of the Location header of the operation response. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupOperationResults/{operationId} - /// - /// - /// Operation Id - /// BackupOperationResults_Get - /// - /// - /// - /// The instance the method will execute against. - /// The name of the recovery services vault. - /// OperationID which represents the operation. - /// The cancellation token to use. - /// or is an empty string, and was expected to be non-empty. - /// or is null. - public static async Task GetBackupOperationResultAsync(this ResourceGroupResource resourceGroupResource, string vaultName, string operationId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - Argument.AssertNotNullOrEmpty(operationId, nameof(operationId)); - - return await GetExtensionClient(resourceGroupResource).GetBackupOperationResultAsync(vaultName, operationId, cancellationToken).ConfigureAwait(false); - } - - /// - /// Provides the status of the delete operations such as deleting backed up item. Once the operation has started, the - /// status code in the response would be Accepted. It will continue to be in this state till it reaches completion. On - /// successful completion, the status code will be OK. This method expects OperationID as an argument. OperationID is - /// part of the Location header of the operation response. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupOperationResults/{operationId} - /// - /// - /// Operation Id - /// BackupOperationResults_Get - /// - /// - /// - /// The instance the method will execute against. - /// The name of the recovery services vault. - /// OperationID which represents the operation. - /// The cancellation token to use. - /// or is an empty string, and was expected to be non-empty. - /// or is null. - public static Response GetBackupOperationResult(this ResourceGroupResource resourceGroupResource, string vaultName, string operationId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - Argument.AssertNotNullOrEmpty(operationId, nameof(operationId)); - - return GetExtensionClient(resourceGroupResource).GetBackupOperationResult(vaultName, operationId, cancellationToken); - } - - /// - /// Fetches the status of an operation such as triggering a backup, restore. The status can be in progress, completed - /// or failed. You can refer to the OperationStatus enum for all the possible states of an operation. Some operations - /// create jobs. This method returns the list of jobs when the operation is complete. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupOperations/{operationId} - /// - /// - /// Operation Id - /// BackupOperationStatuses_Get - /// - /// - /// - /// The instance the method will execute against. - /// The name of the recovery services vault. - /// OperationID which represents the operation. - /// The cancellation token to use. - /// or is an empty string, and was expected to be non-empty. - /// or is null. - public static async Task> GetBackupOperationStatusAsync(this ResourceGroupResource resourceGroupResource, string vaultName, string operationId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - Argument.AssertNotNullOrEmpty(operationId, nameof(operationId)); - - return await GetExtensionClient(resourceGroupResource).GetBackupOperationStatusAsync(vaultName, operationId, cancellationToken).ConfigureAwait(false); - } - - /// - /// Fetches the status of an operation such as triggering a backup, restore. The status can be in progress, completed - /// or failed. You can refer to the OperationStatus enum for all the possible states of an operation. Some operations - /// create jobs. This method returns the list of jobs when the operation is complete. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupOperations/{operationId} - /// - /// - /// Operation Id - /// BackupOperationStatuses_Get - /// - /// - /// - /// The instance the method will execute against. - /// The name of the recovery services vault. - /// OperationID which represents the operation. - /// The cancellation token to use. - /// or is an empty string, and was expected to be non-empty. - /// or is null. - public static Response GetBackupOperationStatus(this ResourceGroupResource resourceGroupResource, string vaultName, string operationId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - Argument.AssertNotNullOrEmpty(operationId, nameof(operationId)); - - return GetExtensionClient(resourceGroupResource).GetBackupOperationStatus(vaultName, operationId, cancellationToken); - } - /// /// Provides a pageable list of protectable objects within your subscription according to the query filter and the /// pagination parameters. @@ -1678,12 +1212,12 @@ public static Pageable GetBackupProtectableItem /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - /// An async collection of that may take multiple service requests to iterate over. - public static AsyncPageable GetProtectionContainerResourcesByBackupProtectionContainerAsync(this ResourceGroupResource resourceGroupResource, string vaultName, string filter = null, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public static AsyncPageable GetBackupProtectionContainersAsync(this ResourceGroupResource resourceGroupResource, string vaultName, string filter = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - return GetExtensionClient(resourceGroupResource).GetProtectionContainerResourcesByBackupProtectionContainerAsync(vaultName, filter, cancellationToken); + return GetExtensionClient(resourceGroupResource).GetBackupProtectionContainersAsync(vaultName, filter, cancellationToken); } /// @@ -1705,12 +1239,12 @@ public static AsyncPageable GetProtectionContainerR /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - /// A collection of that may take multiple service requests to iterate over. - public static Pageable GetProtectionContainerResourcesByBackupProtectionContainer(this ResourceGroupResource resourceGroupResource, string vaultName, string filter = null, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public static Pageable GetBackupProtectionContainers(this ResourceGroupResource resourceGroupResource, string vaultName, string filter = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - return GetExtensionClient(resourceGroupResource).GetProtectionContainerResourcesByBackupProtectionContainer(vaultName, filter, cancellationToken); + return GetExtensionClient(resourceGroupResource).GetBackupProtectionContainers(vaultName, filter, cancellationToken); } /// @@ -1732,8 +1266,8 @@ public static Pageable GetProtectionContainerResour /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - /// An async collection of that may take multiple service requests to iterate over. - public static AsyncPageable GetSoftDeletedProtectionContainersAsync(this ResourceGroupResource resourceGroupResource, string vaultName, string filter = null, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public static AsyncPageable GetSoftDeletedProtectionContainersAsync(this ResourceGroupResource resourceGroupResource, string vaultName, string filter = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); @@ -1759,8 +1293,8 @@ public static AsyncPageable GetSoftDeletedProtectio /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - /// A collection of that may take multiple service requests to iterate over. - public static Pageable GetSoftDeletedProtectionContainers(this ResourceGroupResource resourceGroupResource, string vaultName, string filter = null, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public static Pageable GetSoftDeletedProtectionContainers(this ResourceGroupResource resourceGroupResource, string vaultName, string filter = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); @@ -1782,15 +1316,15 @@ public static Pageable GetSoftDeletedProtectionCont /// /// The instance the method will execute against. /// The name of the recovery services vault. - /// security pin request. + /// security pin request. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public static async Task> GetSecurityPINAsync(this ResourceGroupResource resourceGroupResource, string vaultName, SecurityPinBase securityPinBase = null, CancellationToken cancellationToken = default) + public static async Task> GetSecurityPinAsync(this ResourceGroupResource resourceGroupResource, string vaultName, SecurityPinContent content = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - return await GetExtensionClient(resourceGroupResource).GetSecurityPINAsync(vaultName, securityPinBase, cancellationToken).ConfigureAwait(false); + return await GetExtensionClient(resourceGroupResource).GetSecurityPinAsync(vaultName, content, cancellationToken).ConfigureAwait(false); } /// @@ -1808,15 +1342,15 @@ public static async Task> GetSecurityPINAsync(this Re /// /// The instance the method will execute against. /// The name of the recovery services vault. - /// security pin request. + /// security pin request. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public static Response GetSecurityPIN(this ResourceGroupResource resourceGroupResource, string vaultName, SecurityPinBase securityPinBase = null, CancellationToken cancellationToken = default) + public static Response GetSecurityPin(this ResourceGroupResource resourceGroupResource, string vaultName, SecurityPinContent content = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - return GetExtensionClient(resourceGroupResource).GetSecurityPIN(vaultName, securityPinBase, cancellationToken); + return GetExtensionClient(resourceGroupResource).GetSecurityPin(vaultName, content, cancellationToken); } #region BackupResourceConfigResource @@ -1838,20 +1372,20 @@ public static BackupResourceConfigResource GetBackupResourceConfigResource(this } #endregion - #region ProtectionIntentResource + #region BackupProtectionIntentResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static ProtectionIntentResource GetProtectionIntentResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static BackupProtectionIntentResource GetBackupProtectionIntentResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - ProtectionIntentResource.ValidateResourceId(id); - return new ProtectionIntentResource(client, id); + BackupProtectionIntentResource.ValidateResourceId(id); + return new BackupProtectionIntentResource(client, id); } ); } @@ -1895,153 +1429,153 @@ public static BackupResourceEncryptionConfigExtendedResource GetBackupResourceEn } #endregion - #region PrivateEndpointConnectionResource + #region BackupPrivateEndpointConnectionResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static PrivateEndpointConnectionResource GetPrivateEndpointConnectionResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static BackupPrivateEndpointConnectionResource GetBackupPrivateEndpointConnectionResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - PrivateEndpointConnectionResource.ValidateResourceId(id); - return new PrivateEndpointConnectionResource(client, id); + BackupPrivateEndpointConnectionResource.ValidateResourceId(id); + return new BackupPrivateEndpointConnectionResource(client, id); } ); } #endregion - #region ProtectedItemResource + #region BackupProtectedItemResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static ProtectedItemResource GetProtectedItemResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static BackupProtectedItemResource GetBackupProtectedItemResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - ProtectedItemResource.ValidateResourceId(id); - return new ProtectedItemResource(client, id); + BackupProtectedItemResource.ValidateResourceId(id); + return new BackupProtectedItemResource(client, id); } ); } #endregion - #region RecoveryPointResource + #region BackupRecoveryPointResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static RecoveryPointResource GetRecoveryPointResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static BackupRecoveryPointResource GetBackupRecoveryPointResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - RecoveryPointResource.ValidateResourceId(id); - return new RecoveryPointResource(client, id); + BackupRecoveryPointResource.ValidateResourceId(id); + return new BackupRecoveryPointResource(client, id); } ); } #endregion - #region ProtectionPolicyResource + #region BackupProtectionPolicyResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static ProtectionPolicyResource GetProtectionPolicyResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static BackupProtectionPolicyResource GetBackupProtectionPolicyResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - ProtectionPolicyResource.ValidateResourceId(id); - return new ProtectionPolicyResource(client, id); + BackupProtectionPolicyResource.ValidateResourceId(id); + return new BackupProtectionPolicyResource(client, id); } ); } #endregion - #region JobResource + #region BackupJobResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static JobResource GetJobResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static BackupJobResource GetBackupJobResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - JobResource.ValidateResourceId(id); - return new JobResource(client, id); + BackupJobResource.ValidateResourceId(id); + return new BackupJobResource(client, id); } ); } #endregion - #region BackupEngineBaseResource + #region BackupEngineResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static BackupEngineBaseResource GetBackupEngineBaseResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static BackupEngineResource GetBackupEngineResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - BackupEngineBaseResource.ValidateResourceId(id); - return new BackupEngineBaseResource(client, id); + BackupEngineResource.ValidateResourceId(id); + return new BackupEngineResource(client, id); } ); } #endregion - #region ProtectionContainerResource + #region BackupProtectionContainerResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static ProtectionContainerResource GetProtectionContainerResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static BackupProtectionContainerResource GetBackupProtectionContainerResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - ProtectionContainerResource.ValidateResourceId(id); - return new ProtectionContainerResource(client, id); + BackupProtectionContainerResource.ValidateResourceId(id); + return new BackupProtectionContainerResource(client, id); } ); } #endregion - #region ResourceGuardProxyBaseResource + #region ResourceGuardProxyResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static ResourceGuardProxyBaseResource GetResourceGuardProxyBaseResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static ResourceGuardProxyResource GetResourceGuardProxyResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - ResourceGuardProxyBaseResource.ValidateResourceId(id); - return new ResourceGuardProxyBaseResource(client, id); + ResourceGuardProxyResource.ValidateResourceId(id); + return new ResourceGuardProxyResource(client, id); } ); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs index d8576061360e5..8354d019e9226 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs @@ -23,30 +23,14 @@ internal partial class ResourceGroupResourceExtensionClient : ArmResource private BackupProtectionIntentRestOperations _backupProtectionIntentRestClient; private ClientDiagnostics _backupUsageSummariesClientDiagnostics; private BackupUsageSummariesRestOperations _backupUsageSummariesRestClient; - private ClientDiagnostics _exportJobsOperationResultsClientDiagnostics; - private ExportJobsOperationResultsRestOperations _exportJobsOperationResultsRestClient; private ClientDiagnostics _jobsClientDiagnostics; private JobsRestOperations _jobsRestClient; private ClientDiagnostics _backupProtectedItemsClientDiagnostics; private BackupProtectedItemsRestOperations _backupProtectedItemsRestClient; - private ClientDiagnostics _operationClientDiagnostics; - private OperationRestOperations _operationRestClient; - private ClientDiagnostics _validateOperationClientDiagnostics; - private ValidateOperationRestOperations _validateOperationRestClient; - private ClientDiagnostics _validateOperationResultsClientDiagnostics; - private ValidateOperationResultsRestOperations _validateOperationResultsRestClient; - private ClientDiagnostics _validateOperationStatusesClientDiagnostics; - private ValidateOperationStatusesRestOperations _validateOperationStatusesRestClient; - private ClientDiagnostics _protectionContainerRefreshOperationResultsClientDiagnostics; - private ProtectionContainerRefreshOperationResultsRestOperations _protectionContainerRefreshOperationResultsRestClient; private ClientDiagnostics _protectableContainersClientDiagnostics; private ProtectableContainersRestOperations _protectableContainersRestClient; - private ClientDiagnostics _protectionContainerResourceProtectionContainersClientDiagnostics; - private ProtectionContainersRestOperations _protectionContainerResourceProtectionContainersRestClient; - private ClientDiagnostics _backupOperationResultsClientDiagnostics; - private BackupOperationResultsRestOperations _backupOperationResultsRestClient; - private ClientDiagnostics _backupOperationStatusesClientDiagnostics; - private BackupOperationStatusesRestOperations _backupOperationStatusesRestClient; + private ClientDiagnostics _backupProtectionContainerProtectionContainersClientDiagnostics; + private ProtectionContainersRestOperations _backupProtectionContainerProtectionContainersRestClient; private ClientDiagnostics _backupProtectableItemsClientDiagnostics; private BackupProtectableItemsRestOperations _backupProtectableItemsRestClient; private ClientDiagnostics _backupProtectionContainersClientDiagnostics; @@ -72,30 +56,14 @@ internal ResourceGroupResourceExtensionClient(ArmClient client, ResourceIdentifi private BackupProtectionIntentRestOperations BackupProtectionIntentRestClient => _backupProtectionIntentRestClient ??= new BackupProtectionIntentRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); private ClientDiagnostics BackupUsageSummariesClientDiagnostics => _backupUsageSummariesClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ProviderConstants.DefaultProviderNamespace, Diagnostics); private BackupUsageSummariesRestOperations BackupUsageSummariesRestClient => _backupUsageSummariesRestClient ??= new BackupUsageSummariesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); - private ClientDiagnostics ExportJobsOperationResultsClientDiagnostics => _exportJobsOperationResultsClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ProviderConstants.DefaultProviderNamespace, Diagnostics); - private ExportJobsOperationResultsRestOperations ExportJobsOperationResultsRestClient => _exportJobsOperationResultsRestClient ??= new ExportJobsOperationResultsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); private ClientDiagnostics JobsClientDiagnostics => _jobsClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ProviderConstants.DefaultProviderNamespace, Diagnostics); private JobsRestOperations JobsRestClient => _jobsRestClient ??= new JobsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); private ClientDiagnostics BackupProtectedItemsClientDiagnostics => _backupProtectedItemsClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ProviderConstants.DefaultProviderNamespace, Diagnostics); private BackupProtectedItemsRestOperations BackupProtectedItemsRestClient => _backupProtectedItemsRestClient ??= new BackupProtectedItemsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); - private ClientDiagnostics OperationClientDiagnostics => _operationClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ProviderConstants.DefaultProviderNamespace, Diagnostics); - private OperationRestOperations OperationRestClient => _operationRestClient ??= new OperationRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); - private ClientDiagnostics ValidateOperationClientDiagnostics => _validateOperationClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ProviderConstants.DefaultProviderNamespace, Diagnostics); - private ValidateOperationRestOperations ValidateOperationRestClient => _validateOperationRestClient ??= new ValidateOperationRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); - private ClientDiagnostics ValidateOperationResultsClientDiagnostics => _validateOperationResultsClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ProviderConstants.DefaultProviderNamespace, Diagnostics); - private ValidateOperationResultsRestOperations ValidateOperationResultsRestClient => _validateOperationResultsRestClient ??= new ValidateOperationResultsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); - private ClientDiagnostics ValidateOperationStatusesClientDiagnostics => _validateOperationStatusesClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ProviderConstants.DefaultProviderNamespace, Diagnostics); - private ValidateOperationStatusesRestOperations ValidateOperationStatusesRestClient => _validateOperationStatusesRestClient ??= new ValidateOperationStatusesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); - private ClientDiagnostics ProtectionContainerRefreshOperationResultsClientDiagnostics => _protectionContainerRefreshOperationResultsClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ProviderConstants.DefaultProviderNamespace, Diagnostics); - private ProtectionContainerRefreshOperationResultsRestOperations ProtectionContainerRefreshOperationResultsRestClient => _protectionContainerRefreshOperationResultsRestClient ??= new ProtectionContainerRefreshOperationResultsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); private ClientDiagnostics ProtectableContainersClientDiagnostics => _protectableContainersClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ProviderConstants.DefaultProviderNamespace, Diagnostics); private ProtectableContainersRestOperations ProtectableContainersRestClient => _protectableContainersRestClient ??= new ProtectableContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); - private ClientDiagnostics ProtectionContainerResourceProtectionContainersClientDiagnostics => _protectionContainerResourceProtectionContainersClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ProtectionContainerResource.ResourceType.Namespace, Diagnostics); - private ProtectionContainersRestOperations ProtectionContainerResourceProtectionContainersRestClient => _protectionContainerResourceProtectionContainersRestClient ??= new ProtectionContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(ProtectionContainerResource.ResourceType)); - private ClientDiagnostics BackupOperationResultsClientDiagnostics => _backupOperationResultsClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ProviderConstants.DefaultProviderNamespace, Diagnostics); - private BackupOperationResultsRestOperations BackupOperationResultsRestClient => _backupOperationResultsRestClient ??= new BackupOperationResultsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); - private ClientDiagnostics BackupOperationStatusesClientDiagnostics => _backupOperationStatusesClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ProviderConstants.DefaultProviderNamespace, Diagnostics); - private BackupOperationStatusesRestOperations BackupOperationStatusesRestClient => _backupOperationStatusesRestClient ??= new BackupOperationStatusesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); + private ClientDiagnostics BackupProtectionContainerProtectionContainersClientDiagnostics => _backupProtectionContainerProtectionContainersClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", BackupProtectionContainerResource.ResourceType.Namespace, Diagnostics); + private ProtectionContainersRestOperations BackupProtectionContainerProtectionContainersRestClient => _backupProtectionContainerProtectionContainersRestClient ??= new ProtectionContainersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(BackupProtectionContainerResource.ResourceType)); private ClientDiagnostics BackupProtectableItemsClientDiagnostics => _backupProtectableItemsClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ProviderConstants.DefaultProviderNamespace, Diagnostics); private BackupProtectableItemsRestOperations BackupProtectableItemsRestClient => _backupProtectableItemsRestClient ??= new BackupProtectableItemsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); private ClientDiagnostics BackupProtectionContainersClientDiagnostics => _backupProtectionContainersClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ProviderConstants.DefaultProviderNamespace, Diagnostics); @@ -113,76 +81,76 @@ private string GetApiVersionOrNull(ResourceType resourceType) /// Gets a collection of BackupResourceConfigResources in the ResourceGroupResource. /// An object representing collection of BackupResourceConfigResources and their operations over a BackupResourceConfigResource. - public virtual BackupResourceConfigResourceCollection GetBackupResourceConfigResources() + public virtual BackupResourceConfigCollection GetBackupResourceConfigs() { - return GetCachedClient(Client => new BackupResourceConfigResourceCollection(Client, Id)); + return GetCachedClient(Client => new BackupResourceConfigCollection(Client, Id)); } - /// Gets a collection of ProtectionIntentResources in the ResourceGroupResource. - /// An object representing collection of ProtectionIntentResources and their operations over a ProtectionIntentResource. - public virtual ProtectionIntentResourceCollection GetProtectionIntentResources() + /// Gets a collection of BackupProtectionIntentResources in the ResourceGroupResource. + /// An object representing collection of BackupProtectionIntentResources and their operations over a BackupProtectionIntentResource. + public virtual BackupProtectionIntentCollection GetBackupProtectionIntents() { - return GetCachedClient(Client => new ProtectionIntentResourceCollection(Client, Id)); + return GetCachedClient(Client => new BackupProtectionIntentCollection(Client, Id)); } /// Gets a collection of BackupResourceVaultConfigResources in the ResourceGroupResource. /// An object representing collection of BackupResourceVaultConfigResources and their operations over a BackupResourceVaultConfigResource. - public virtual BackupResourceVaultConfigResourceCollection GetBackupResourceVaultConfigResources() + public virtual BackupResourceVaultConfigCollection GetBackupResourceVaultConfigs() { - return GetCachedClient(Client => new BackupResourceVaultConfigResourceCollection(Client, Id)); + return GetCachedClient(Client => new BackupResourceVaultConfigCollection(Client, Id)); } /// Gets a collection of BackupResourceEncryptionConfigExtendedResources in the ResourceGroupResource. /// An object representing collection of BackupResourceEncryptionConfigExtendedResources and their operations over a BackupResourceEncryptionConfigExtendedResource. - public virtual BackupResourceEncryptionConfigExtendedResourceCollection GetBackupResourceEncryptionConfigExtendedResources() + public virtual BackupResourceEncryptionConfigExtendedCollection GetBackupResourceEncryptionConfigExtendeds() { - return GetCachedClient(Client => new BackupResourceEncryptionConfigExtendedResourceCollection(Client, Id)); + return GetCachedClient(Client => new BackupResourceEncryptionConfigExtendedCollection(Client, Id)); } - /// Gets a collection of PrivateEndpointConnectionResources in the ResourceGroupResource. - /// An object representing collection of PrivateEndpointConnectionResources and their operations over a PrivateEndpointConnectionResource. - public virtual PrivateEndpointConnectionResourceCollection GetPrivateEndpointConnectionResources() + /// Gets a collection of BackupPrivateEndpointConnectionResources in the ResourceGroupResource. + /// An object representing collection of BackupPrivateEndpointConnectionResources and their operations over a BackupPrivateEndpointConnectionResource. + public virtual BackupPrivateEndpointConnectionCollection GetBackupPrivateEndpointConnections() { - return GetCachedClient(Client => new PrivateEndpointConnectionResourceCollection(Client, Id)); + return GetCachedClient(Client => new BackupPrivateEndpointConnectionCollection(Client, Id)); } - /// Gets a collection of ProtectionPolicyResources in the ResourceGroupResource. + /// Gets a collection of BackupProtectionPolicyResources in the ResourceGroupResource. /// The name of the recovery services vault. - /// An object representing collection of ProtectionPolicyResources and their operations over a ProtectionPolicyResource. - public virtual ProtectionPolicyResourceCollection GetProtectionPolicyResources(string vaultName) + /// An object representing collection of BackupProtectionPolicyResources and their operations over a BackupProtectionPolicyResource. + public virtual BackupProtectionPolicyCollection GetBackupProtectionPolicies(string vaultName) { - return new ProtectionPolicyResourceCollection(Client, Id, vaultName); + return new BackupProtectionPolicyCollection(Client, Id, vaultName); } - /// Gets a collection of JobResources in the ResourceGroupResource. + /// Gets a collection of BackupJobResources in the ResourceGroupResource. /// The name of the recovery services vault. - /// An object representing collection of JobResources and their operations over a JobResource. - public virtual JobResourceCollection GetJobResources(string vaultName) + /// An object representing collection of BackupJobResources and their operations over a BackupJobResource. + public virtual BackupJobCollection GetBackupJobs(string vaultName) { - return new JobResourceCollection(Client, Id, vaultName); + return new BackupJobCollection(Client, Id, vaultName); } - /// Gets a collection of BackupEngineBaseResources in the ResourceGroupResource. + /// Gets a collection of BackupEngineResources in the ResourceGroupResource. /// The name of the recovery services vault. - /// An object representing collection of BackupEngineBaseResources and their operations over a BackupEngineBaseResource. - public virtual BackupEngineBaseResourceCollection GetBackupEngineBaseResources(string vaultName) + /// An object representing collection of BackupEngineResources and their operations over a BackupEngineResource. + public virtual BackupEngineCollection GetBackupEngines(string vaultName) { - return new BackupEngineBaseResourceCollection(Client, Id, vaultName); + return new BackupEngineCollection(Client, Id, vaultName); } - /// Gets a collection of ProtectionContainerResources in the ResourceGroupResource. - /// An object representing collection of ProtectionContainerResources and their operations over a ProtectionContainerResource. - public virtual ProtectionContainerResourceCollection GetProtectionContainerResources() + /// Gets a collection of BackupProtectionContainerResources in the ResourceGroupResource. + /// An object representing collection of BackupProtectionContainerResources and their operations over a BackupProtectionContainerResource. + public virtual BackupProtectionContainerCollection GetBackupProtectionContainers() { - return GetCachedClient(Client => new ProtectionContainerResourceCollection(Client, Id)); + return GetCachedClient(Client => new BackupProtectionContainerCollection(Client, Id)); } - /// Gets a collection of ResourceGuardProxyBaseResources in the ResourceGroupResource. + /// Gets a collection of ResourceGuardProxyResources in the ResourceGroupResource. /// The name of the recovery services vault. - /// An object representing collection of ResourceGuardProxyBaseResources and their operations over a ResourceGuardProxyBaseResource. - public virtual ResourceGuardProxyBaseResourceCollection GetResourceGuardProxyBaseResources(string vaultName) + /// An object representing collection of ResourceGuardProxyResources and their operations over a ResourceGuardProxyResource. + public virtual ResourceGuardProxyCollection GetResourceGuardProxies(string vaultName) { - return new ResourceGuardProxyBaseResourceCollection(Client, Id, vaultName); + return new ResourceGuardProxyCollection(Client, Id, vaultName); } /// @@ -202,12 +170,12 @@ public virtual ResourceGuardProxyBaseResourceCollection GetResourceGuardProxyBas /// OData filter options. /// skipToken Filter. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetProtectionIntentResourcesByBackupProtectionIntentAsync(string vaultName, string filter = null, string skipToken = null, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetBackupProtectionIntentsAsync(string vaultName, string filter = null, string skipToken = null, CancellationToken cancellationToken = default) { HttpMessage FirstPageRequest(int? pageSizeHint) => BackupProtectionIntentRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, vaultName, filter, skipToken); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => BackupProtectionIntentRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, vaultName, filter, skipToken); - return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new ProtectionIntentResource(Client, ProtectionIntentResourceData.DeserializeProtectionIntentResourceData(e)), BackupProtectionIntentClientDiagnostics, Pipeline, "ResourceGroupResourceExtensionClient.GetProtectionIntentResourcesByBackupProtectionIntent", "value", "nextLink", cancellationToken); + return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new BackupProtectionIntentResource(Client, BackupProtectionIntentData.DeserializeBackupProtectionIntentData(e)), BackupProtectionIntentClientDiagnostics, Pipeline, "ResourceGroupResourceExtensionClient.GetBackupProtectionIntents", "value", "nextLink", cancellationToken); } /// @@ -227,12 +195,12 @@ public virtual AsyncPageable GetProtectionIntentResour /// OData filter options. /// skipToken Filter. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetProtectionIntentResourcesByBackupProtectionIntent(string vaultName, string filter = null, string skipToken = null, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetBackupProtectionIntents(string vaultName, string filter = null, string skipToken = null, CancellationToken cancellationToken = default) { HttpMessage FirstPageRequest(int? pageSizeHint) => BackupProtectionIntentRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, vaultName, filter, skipToken); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => BackupProtectionIntentRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, vaultName, filter, skipToken); - return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new ProtectionIntentResource(Client, ProtectionIntentResourceData.DeserializeProtectionIntentResourceData(e)), BackupProtectionIntentClientDiagnostics, Pipeline, "ResourceGroupResourceExtensionClient.GetProtectionIntentResourcesByBackupProtectionIntent", "value", "nextLink", cancellationToken); + return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new BackupProtectionIntentResource(Client, BackupProtectionIntentData.DeserializeBackupProtectionIntentData(e)), BackupProtectionIntentClientDiagnostics, Pipeline, "ResourceGroupResourceExtensionClient.GetBackupProtectionIntents", "value", "nextLink", cancellationToken); } /// @@ -283,72 +251,6 @@ public virtual Pageable GetBackupUsageSummaries(string va return PageableHelpers.CreatePageable(FirstPageRequest, null, BackupManagementUsage.DeserializeBackupManagementUsage, BackupUsageSummariesClientDiagnostics, Pipeline, "ResourceGroupResourceExtensionClient.GetBackupUsageSummaries", "value", null, cancellationToken); } - /// - /// Gets the operation result of operation triggered by Export Jobs API. If the operation is successful, then it also - /// contains URL of a Blob and a SAS key to access the same. The blob contains exported jobs in JSON serialized format. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobs/operationResults/{operationId} - /// - /// - /// Operation Id - /// ExportJobsOperationResults_Get - /// - /// - /// - /// The name of the recovery services vault. - /// OperationID which represents the export job. - /// The cancellation token to use. - public virtual async Task> GetExportJobsOperationResultAsync(string vaultName, string operationId, CancellationToken cancellationToken = default) - { - using var scope = ExportJobsOperationResultsClientDiagnostics.CreateScope("ResourceGroupResourceExtensionClient.GetExportJobsOperationResult"); - scope.Start(); - try - { - var response = await ExportJobsOperationResultsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, vaultName, operationId, cancellationToken).ConfigureAwait(false); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Gets the operation result of operation triggered by Export Jobs API. If the operation is successful, then it also - /// contains URL of a Blob and a SAS key to access the same. The blob contains exported jobs in JSON serialized format. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobs/operationResults/{operationId} - /// - /// - /// Operation Id - /// ExportJobsOperationResults_Get - /// - /// - /// - /// The name of the recovery services vault. - /// OperationID which represents the export job. - /// The cancellation token to use. - public virtual Response GetExportJobsOperationResult(string vaultName, string operationId, CancellationToken cancellationToken = default) - { - using var scope = ExportJobsOperationResultsClientDiagnostics.CreateScope("ResourceGroupResourceExtensionClient.GetExportJobsOperationResult"); - scope.Start(); - try - { - var response = ExportJobsOperationResultsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, vaultName, operationId, cancellationToken); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - /// /// Triggers export of jobs specified by filters and returns an OperationID to track. /// @@ -430,12 +332,12 @@ public virtual Response ExportJob(string vaultName, string filter = null, Cancel /// OData filter options. /// skipToken Filter. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetProtectedItemResourcesByBackupProtectedItemAsync(string vaultName, string filter = null, string skipToken = null, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetBackupProtectedItemsAsync(string vaultName, string filter = null, string skipToken = null, CancellationToken cancellationToken = default) { HttpMessage FirstPageRequest(int? pageSizeHint) => BackupProtectedItemsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, vaultName, filter, skipToken); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => BackupProtectedItemsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, vaultName, filter, skipToken); - return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new ProtectedItemResource(Client, ProtectedItemResourceData.DeserializeProtectedItemResourceData(e)), BackupProtectedItemsClientDiagnostics, Pipeline, "ResourceGroupResourceExtensionClient.GetProtectedItemResourcesByBackupProtectedItem", "value", "nextLink", cancellationToken); + return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new BackupProtectedItemResource(Client, BackupProtectedItemData.DeserializeBackupProtectedItemData(e)), BackupProtectedItemsClientDiagnostics, Pipeline, "ResourceGroupResourceExtensionClient.GetBackupProtectedItems", "value", "nextLink", cancellationToken); } /// @@ -455,346 +357,12 @@ public virtual AsyncPageable GetProtectedItemResourcesByB /// OData filter options. /// skipToken Filter. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetProtectedItemResourcesByBackupProtectedItem(string vaultName, string filter = null, string skipToken = null, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetBackupProtectedItems(string vaultName, string filter = null, string skipToken = null, CancellationToken cancellationToken = default) { HttpMessage FirstPageRequest(int? pageSizeHint) => BackupProtectedItemsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, vaultName, filter, skipToken); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => BackupProtectedItemsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, vaultName, filter, skipToken); - return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new ProtectedItemResource(Client, ProtectedItemResourceData.DeserializeProtectedItemResourceData(e)), BackupProtectedItemsClientDiagnostics, Pipeline, "ResourceGroupResourceExtensionClient.GetProtectedItemResourcesByBackupProtectedItem", "value", "nextLink", cancellationToken); - } - - /// - /// Validate operation for specified backed up item. This is a synchronous operation. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupValidateOperation - /// - /// - /// Operation Id - /// Operation_Validate - /// - /// - /// - /// The name of the recovery services vault. - /// resource validate operation request. - /// The cancellation token to use. - public virtual async Task> ValidateOperationAsync(string vaultName, ValidateOperationRequest validateOperationRequest, CancellationToken cancellationToken = default) - { - using var scope = OperationClientDiagnostics.CreateScope("ResourceGroupResourceExtensionClient.ValidateOperation"); - scope.Start(); - try - { - var response = await OperationRestClient.ValidateAsync(Id.SubscriptionId, Id.ResourceGroupName, vaultName, validateOperationRequest, cancellationToken).ConfigureAwait(false); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Validate operation for specified backed up item. This is a synchronous operation. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupValidateOperation - /// - /// - /// Operation Id - /// Operation_Validate - /// - /// - /// - /// The name of the recovery services vault. - /// resource validate operation request. - /// The cancellation token to use. - public virtual Response ValidateOperation(string vaultName, ValidateOperationRequest validateOperationRequest, CancellationToken cancellationToken = default) - { - using var scope = OperationClientDiagnostics.CreateScope("ResourceGroupResourceExtensionClient.ValidateOperation"); - scope.Start(); - try - { - var response = OperationRestClient.Validate(Id.SubscriptionId, Id.ResourceGroupName, vaultName, validateOperationRequest, cancellationToken); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Validate operation for specified backed up item in the form of an asynchronous operation. Returns tracking headers which can be tracked using GetValidateOperationResult API. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupTriggerValidateOperation - /// - /// - /// Operation Id - /// ValidateOperation_Trigger - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the recovery services vault. - /// resource validate operation request. - /// The cancellation token to use. - public virtual async Task TriggerValidateOperationAsync(WaitUntil waitUntil, string vaultName, ValidateOperationRequest validateOperationRequest, CancellationToken cancellationToken = default) - { - using var scope = ValidateOperationClientDiagnostics.CreateScope("ResourceGroupResourceExtensionClient.TriggerValidateOperation"); - scope.Start(); - try - { - var response = await ValidateOperationRestClient.TriggerAsync(Id.SubscriptionId, Id.ResourceGroupName, vaultName, validateOperationRequest, cancellationToken).ConfigureAwait(false); - var operation = new RecoveryServicesBackupArmOperation(ValidateOperationClientDiagnostics, Pipeline, ValidateOperationRestClient.CreateTriggerRequest(Id.SubscriptionId, Id.ResourceGroupName, vaultName, validateOperationRequest).Request, response, OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Validate operation for specified backed up item in the form of an asynchronous operation. Returns tracking headers which can be tracked using GetValidateOperationResult API. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupTriggerValidateOperation - /// - /// - /// Operation Id - /// ValidateOperation_Trigger - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the recovery services vault. - /// resource validate operation request. - /// The cancellation token to use. - public virtual ArmOperation TriggerValidateOperation(WaitUntil waitUntil, string vaultName, ValidateOperationRequest validateOperationRequest, CancellationToken cancellationToken = default) - { - using var scope = ValidateOperationClientDiagnostics.CreateScope("ResourceGroupResourceExtensionClient.TriggerValidateOperation"); - scope.Start(); - try - { - var response = ValidateOperationRestClient.Trigger(Id.SubscriptionId, Id.ResourceGroupName, vaultName, validateOperationRequest, cancellationToken); - var operation = new RecoveryServicesBackupArmOperation(ValidateOperationClientDiagnostics, Pipeline, ValidateOperationRestClient.CreateTriggerRequest(Id.SubscriptionId, Id.ResourceGroupName, vaultName, validateOperationRequest).Request, response, OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletionResponse(cancellationToken); - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Fetches the result of a triggered validate operation. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupValidateOperationResults/{operationId} - /// - /// - /// Operation Id - /// ValidateOperationResults_Get - /// - /// - /// - /// The name of the recovery services vault. - /// OperationID which represents the operation whose result needs to be fetched. - /// The cancellation token to use. - public virtual async Task> GetValidateOperationResultAsync(string vaultName, string operationId, CancellationToken cancellationToken = default) - { - using var scope = ValidateOperationResultsClientDiagnostics.CreateScope("ResourceGroupResourceExtensionClient.GetValidateOperationResult"); - scope.Start(); - try - { - var response = await ValidateOperationResultsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, vaultName, operationId, cancellationToken).ConfigureAwait(false); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Fetches the result of a triggered validate operation. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupValidateOperationResults/{operationId} - /// - /// - /// Operation Id - /// ValidateOperationResults_Get - /// - /// - /// - /// The name of the recovery services vault. - /// OperationID which represents the operation whose result needs to be fetched. - /// The cancellation token to use. - public virtual Response GetValidateOperationResult(string vaultName, string operationId, CancellationToken cancellationToken = default) - { - using var scope = ValidateOperationResultsClientDiagnostics.CreateScope("ResourceGroupResourceExtensionClient.GetValidateOperationResult"); - scope.Start(); - try - { - var response = ValidateOperationResultsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, vaultName, operationId, cancellationToken); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Fetches the status of a triggered validate operation. The status can be in progress, completed - /// or failed. You can refer to the OperationStatus enum for all the possible states of the operation. - /// If operation has completed, this method returns the list of errors obtained while validating the operation. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupValidateOperationsStatuses/{operationId} - /// - /// - /// Operation Id - /// ValidateOperationStatuses_Get - /// - /// - /// - /// The name of the recovery services vault. - /// OperationID represents the operation whose status needs to be fetched. - /// The cancellation token to use. - public virtual async Task> GetValidateOperationStatusAsync(string vaultName, string operationId, CancellationToken cancellationToken = default) - { - using var scope = ValidateOperationStatusesClientDiagnostics.CreateScope("ResourceGroupResourceExtensionClient.GetValidateOperationStatus"); - scope.Start(); - try - { - var response = await ValidateOperationStatusesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, vaultName, operationId, cancellationToken).ConfigureAwait(false); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Fetches the status of a triggered validate operation. The status can be in progress, completed - /// or failed. You can refer to the OperationStatus enum for all the possible states of the operation. - /// If operation has completed, this method returns the list of errors obtained while validating the operation. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupValidateOperationsStatuses/{operationId} - /// - /// - /// Operation Id - /// ValidateOperationStatuses_Get - /// - /// - /// - /// The name of the recovery services vault. - /// OperationID represents the operation whose status needs to be fetched. - /// The cancellation token to use. - public virtual Response GetValidateOperationStatus(string vaultName, string operationId, CancellationToken cancellationToken = default) - { - using var scope = ValidateOperationStatusesClientDiagnostics.CreateScope("ResourceGroupResourceExtensionClient.GetValidateOperationStatus"); - scope.Start(); - try - { - var response = ValidateOperationStatusesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, vaultName, operationId, cancellationToken); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Provides the result of the refresh operation triggered by the BeginRefresh operation. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/operationResults/{operationId} - /// - /// - /// Operation Id - /// ProtectionContainerRefreshOperationResults_Get - /// - /// - /// - /// The name of the recovery services vault. - /// Fabric name associated with the container. - /// Operation ID associated with the operation whose result needs to be fetched. - /// The cancellation token to use. - public virtual async Task GetProtectionContainerRefreshOperationResultAsync(string vaultName, string fabricName, string operationId, CancellationToken cancellationToken = default) - { - using var scope = ProtectionContainerRefreshOperationResultsClientDiagnostics.CreateScope("ResourceGroupResourceExtensionClient.GetProtectionContainerRefreshOperationResult"); - scope.Start(); - try - { - var response = await ProtectionContainerRefreshOperationResultsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, vaultName, fabricName, operationId, cancellationToken).ConfigureAwait(false); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Provides the result of the refresh operation triggered by the BeginRefresh operation. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/operationResults/{operationId} - /// - /// - /// Operation Id - /// ProtectionContainerRefreshOperationResults_Get - /// - /// - /// - /// The name of the recovery services vault. - /// Fabric name associated with the container. - /// Operation ID associated with the operation whose result needs to be fetched. - /// The cancellation token to use. - public virtual Response GetProtectionContainerRefreshOperationResult(string vaultName, string fabricName, string operationId, CancellationToken cancellationToken = default) - { - using var scope = ProtectionContainerRefreshOperationResultsClientDiagnostics.CreateScope("ResourceGroupResourceExtensionClient.GetProtectionContainerRefreshOperationResult"); - scope.Start(); - try - { - var response = ProtectionContainerRefreshOperationResultsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, vaultName, fabricName, operationId, cancellationToken); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } + return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new BackupProtectedItemResource(Client, BackupProtectedItemData.DeserializeBackupProtectedItemData(e)), BackupProtectedItemsClientDiagnostics, Pipeline, "ResourceGroupResourceExtensionClient.GetBackupProtectedItems", "value", "nextLink", cancellationToken); } /// @@ -867,11 +435,11 @@ public virtual Pageable GetProtectableContainers(s /// The cancellation token to use. public virtual async Task RefreshProtectionContainerAsync(string vaultName, string fabricName, string filter = null, CancellationToken cancellationToken = default) { - using var scope = ProtectionContainerResourceProtectionContainersClientDiagnostics.CreateScope("ResourceGroupResourceExtensionClient.RefreshProtectionContainer"); + using var scope = BackupProtectionContainerProtectionContainersClientDiagnostics.CreateScope("ResourceGroupResourceExtensionClient.RefreshProtectionContainer"); scope.Start(); try { - var response = await ProtectionContainerResourceProtectionContainersRestClient.RefreshAsync(Id.SubscriptionId, Id.ResourceGroupName, vaultName, fabricName, filter, cancellationToken).ConfigureAwait(false); + var response = await BackupProtectionContainerProtectionContainersRestClient.RefreshAsync(Id.SubscriptionId, Id.ResourceGroupName, vaultName, fabricName, filter, cancellationToken).ConfigureAwait(false); return response; } catch (Exception e) @@ -901,149 +469,11 @@ public virtual async Task RefreshProtectionContainerAsync(string vault /// The cancellation token to use. public virtual Response RefreshProtectionContainer(string vaultName, string fabricName, string filter = null, CancellationToken cancellationToken = default) { - using var scope = ProtectionContainerResourceProtectionContainersClientDiagnostics.CreateScope("ResourceGroupResourceExtensionClient.RefreshProtectionContainer"); - scope.Start(); - try - { - var response = ProtectionContainerResourceProtectionContainersRestClient.Refresh(Id.SubscriptionId, Id.ResourceGroupName, vaultName, fabricName, filter, cancellationToken); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Provides the status of the delete operations such as deleting backed up item. Once the operation has started, the - /// status code in the response would be Accepted. It will continue to be in this state till it reaches completion. On - /// successful completion, the status code will be OK. This method expects OperationID as an argument. OperationID is - /// part of the Location header of the operation response. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupOperationResults/{operationId} - /// - /// - /// Operation Id - /// BackupOperationResults_Get - /// - /// - /// - /// The name of the recovery services vault. - /// OperationID which represents the operation. - /// The cancellation token to use. - public virtual async Task GetBackupOperationResultAsync(string vaultName, string operationId, CancellationToken cancellationToken = default) - { - using var scope = BackupOperationResultsClientDiagnostics.CreateScope("ResourceGroupResourceExtensionClient.GetBackupOperationResult"); - scope.Start(); - try - { - var response = await BackupOperationResultsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, vaultName, operationId, cancellationToken).ConfigureAwait(false); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Provides the status of the delete operations such as deleting backed up item. Once the operation has started, the - /// status code in the response would be Accepted. It will continue to be in this state till it reaches completion. On - /// successful completion, the status code will be OK. This method expects OperationID as an argument. OperationID is - /// part of the Location header of the operation response. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupOperationResults/{operationId} - /// - /// - /// Operation Id - /// BackupOperationResults_Get - /// - /// - /// - /// The name of the recovery services vault. - /// OperationID which represents the operation. - /// The cancellation token to use. - public virtual Response GetBackupOperationResult(string vaultName, string operationId, CancellationToken cancellationToken = default) - { - using var scope = BackupOperationResultsClientDiagnostics.CreateScope("ResourceGroupResourceExtensionClient.GetBackupOperationResult"); - scope.Start(); - try - { - var response = BackupOperationResultsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, vaultName, operationId, cancellationToken); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Fetches the status of an operation such as triggering a backup, restore. The status can be in progress, completed - /// or failed. You can refer to the OperationStatus enum for all the possible states of an operation. Some operations - /// create jobs. This method returns the list of jobs when the operation is complete. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupOperations/{operationId} - /// - /// - /// Operation Id - /// BackupOperationStatuses_Get - /// - /// - /// - /// The name of the recovery services vault. - /// OperationID which represents the operation. - /// The cancellation token to use. - public virtual async Task> GetBackupOperationStatusAsync(string vaultName, string operationId, CancellationToken cancellationToken = default) - { - using var scope = BackupOperationStatusesClientDiagnostics.CreateScope("ResourceGroupResourceExtensionClient.GetBackupOperationStatus"); - scope.Start(); - try - { - var response = await BackupOperationStatusesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, vaultName, operationId, cancellationToken).ConfigureAwait(false); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Fetches the status of an operation such as triggering a backup, restore. The status can be in progress, completed - /// or failed. You can refer to the OperationStatus enum for all the possible states of an operation. Some operations - /// create jobs. This method returns the list of jobs when the operation is complete. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupOperations/{operationId} - /// - /// - /// Operation Id - /// BackupOperationStatuses_Get - /// - /// - /// - /// The name of the recovery services vault. - /// OperationID which represents the operation. - /// The cancellation token to use. - public virtual Response GetBackupOperationStatus(string vaultName, string operationId, CancellationToken cancellationToken = default) - { - using var scope = BackupOperationStatusesClientDiagnostics.CreateScope("ResourceGroupResourceExtensionClient.GetBackupOperationStatus"); + using var scope = BackupProtectionContainerProtectionContainersClientDiagnostics.CreateScope("ResourceGroupResourceExtensionClient.RefreshProtectionContainer"); scope.Start(); try { - var response = BackupOperationStatusesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, vaultName, operationId, cancellationToken); + var response = BackupProtectionContainerProtectionContainersRestClient.Refresh(Id.SubscriptionId, Id.ResourceGroupName, vaultName, fabricName, filter, cancellationToken); return response; } catch (Exception e) @@ -1121,12 +551,12 @@ public virtual Pageable GetBackupProtectableIte /// The name of the recovery services vault. /// OData filter options. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetProtectionContainerResourcesByBackupProtectionContainerAsync(string vaultName, string filter = null, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetBackupProtectionContainersAsync(string vaultName, string filter = null, CancellationToken cancellationToken = default) { HttpMessage FirstPageRequest(int? pageSizeHint) => BackupProtectionContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, vaultName, filter); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => BackupProtectionContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, vaultName, filter); - return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new ProtectionContainerResource(Client, ProtectionContainerResourceData.DeserializeProtectionContainerResourceData(e)), BackupProtectionContainersClientDiagnostics, Pipeline, "ResourceGroupResourceExtensionClient.GetProtectionContainerResourcesByBackupProtectionContainer", "value", "nextLink", cancellationToken); + return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new BackupProtectionContainerResource(Client, BackupProtectionContainerData.DeserializeBackupProtectionContainerData(e)), BackupProtectionContainersClientDiagnostics, Pipeline, "ResourceGroupResourceExtensionClient.GetBackupProtectionContainers", "value", "nextLink", cancellationToken); } /// @@ -1145,12 +575,12 @@ public virtual AsyncPageable GetProtectionContainer /// The name of the recovery services vault. /// OData filter options. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetProtectionContainerResourcesByBackupProtectionContainer(string vaultName, string filter = null, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetBackupProtectionContainers(string vaultName, string filter = null, CancellationToken cancellationToken = default) { HttpMessage FirstPageRequest(int? pageSizeHint) => BackupProtectionContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, vaultName, filter); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => BackupProtectionContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, vaultName, filter); - return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new ProtectionContainerResource(Client, ProtectionContainerResourceData.DeserializeProtectionContainerResourceData(e)), BackupProtectionContainersClientDiagnostics, Pipeline, "ResourceGroupResourceExtensionClient.GetProtectionContainerResourcesByBackupProtectionContainer", "value", "nextLink", cancellationToken); + return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new BackupProtectionContainerResource(Client, BackupProtectionContainerData.DeserializeBackupProtectionContainerData(e)), BackupProtectionContainersClientDiagnostics, Pipeline, "ResourceGroupResourceExtensionClient.GetBackupProtectionContainers", "value", "nextLink", cancellationToken); } /// @@ -1169,12 +599,12 @@ public virtual Pageable GetProtectionContainerResou /// The name of the recovery services vault. /// OData filter options. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetSoftDeletedProtectionContainersAsync(string vaultName, string filter = null, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetSoftDeletedProtectionContainersAsync(string vaultName, string filter = null, CancellationToken cancellationToken = default) { HttpMessage FirstPageRequest(int? pageSizeHint) => DeletedProtectionContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, vaultName, filter); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => DeletedProtectionContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, vaultName, filter); - return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new ProtectionContainerResource(Client, ProtectionContainerResourceData.DeserializeProtectionContainerResourceData(e)), DeletedProtectionContainersClientDiagnostics, Pipeline, "ResourceGroupResourceExtensionClient.GetSoftDeletedProtectionContainers", "value", "nextLink", cancellationToken); + return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new BackupProtectionContainerResource(Client, BackupProtectionContainerData.DeserializeBackupProtectionContainerData(e)), DeletedProtectionContainersClientDiagnostics, Pipeline, "ResourceGroupResourceExtensionClient.GetSoftDeletedProtectionContainers", "value", "nextLink", cancellationToken); } /// @@ -1193,12 +623,12 @@ public virtual AsyncPageable GetSoftDeletedProtecti /// The name of the recovery services vault. /// OData filter options. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetSoftDeletedProtectionContainers(string vaultName, string filter = null, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetSoftDeletedProtectionContainers(string vaultName, string filter = null, CancellationToken cancellationToken = default) { HttpMessage FirstPageRequest(int? pageSizeHint) => DeletedProtectionContainersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, vaultName, filter); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => DeletedProtectionContainersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, vaultName, filter); - return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new ProtectionContainerResource(Client, ProtectionContainerResourceData.DeserializeProtectionContainerResourceData(e)), DeletedProtectionContainersClientDiagnostics, Pipeline, "ResourceGroupResourceExtensionClient.GetSoftDeletedProtectionContainers", "value", "nextLink", cancellationToken); + return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new BackupProtectionContainerResource(Client, BackupProtectionContainerData.DeserializeBackupProtectionContainerData(e)), DeletedProtectionContainersClientDiagnostics, Pipeline, "ResourceGroupResourceExtensionClient.GetSoftDeletedProtectionContainers", "value", "nextLink", cancellationToken); } /// @@ -1215,15 +645,15 @@ public virtual Pageable GetSoftDeletedProtectionCon /// /// /// The name of the recovery services vault. - /// security pin request. + /// security pin request. /// The cancellation token to use. - public virtual async Task> GetSecurityPINAsync(string vaultName, SecurityPinBase securityPinBase = null, CancellationToken cancellationToken = default) + public virtual async Task> GetSecurityPinAsync(string vaultName, SecurityPinContent content = null, CancellationToken cancellationToken = default) { - using var scope = SecurityPINsClientDiagnostics.CreateScope("ResourceGroupResourceExtensionClient.GetSecurityPIN"); + using var scope = SecurityPINsClientDiagnostics.CreateScope("ResourceGroupResourceExtensionClient.GetSecurityPin"); scope.Start(); try { - var response = await SecurityPINsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, vaultName, securityPinBase, cancellationToken).ConfigureAwait(false); + var response = await SecurityPINsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, vaultName, content, cancellationToken).ConfigureAwait(false); return response; } catch (Exception e) @@ -1247,15 +677,15 @@ public virtual async Task> GetSecurityPINAsync(string /// /// /// The name of the recovery services vault. - /// security pin request. + /// security pin request. /// The cancellation token to use. - public virtual Response GetSecurityPIN(string vaultName, SecurityPinBase securityPinBase = null, CancellationToken cancellationToken = default) + public virtual Response GetSecurityPin(string vaultName, SecurityPinContent content = null, CancellationToken cancellationToken = default) { - using var scope = SecurityPINsClientDiagnostics.CreateScope("ResourceGroupResourceExtensionClient.GetSecurityPIN"); + using var scope = SecurityPINsClientDiagnostics.CreateScope("ResourceGroupResourceExtensionClient.GetSecurityPin"); scope.Start(); try { - var response = SecurityPINsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, vaultName, securityPinBase, cancellationToken); + var response = SecurityPINsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, vaultName, content, cancellationToken); return response; } catch (Exception e) diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs index 38d41b03677be..67dcfe9ae991b 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs @@ -19,8 +19,8 @@ namespace Azure.ResourceManager.RecoveryServicesBackup /// A class to add extension methods to SubscriptionResource. internal partial class SubscriptionResourceExtensionClient : ArmResource { - private ClientDiagnostics _protectionIntentResourceProtectionIntentClientDiagnostics; - private ProtectionIntentRestOperations _protectionIntentResourceProtectionIntentRestClient; + private ClientDiagnostics _backupProtectionIntentProtectionIntentClientDiagnostics; + private ProtectionIntentRestOperations _backupProtectionIntentProtectionIntentRestClient; private ClientDiagnostics _backupStatusClientDiagnostics; private BackupStatusRestOperations _backupStatusRestClient; private ClientDiagnostics _featureSupportClientDiagnostics; @@ -38,8 +38,8 @@ internal SubscriptionResourceExtensionClient(ArmClient client, ResourceIdentifie { } - private ClientDiagnostics ProtectionIntentResourceProtectionIntentClientDiagnostics => _protectionIntentResourceProtectionIntentClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ProtectionIntentResource.ResourceType.Namespace, Diagnostics); - private ProtectionIntentRestOperations ProtectionIntentResourceProtectionIntentRestClient => _protectionIntentResourceProtectionIntentRestClient ??= new ProtectionIntentRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(ProtectionIntentResource.ResourceType)); + private ClientDiagnostics BackupProtectionIntentProtectionIntentClientDiagnostics => _backupProtectionIntentProtectionIntentClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", BackupProtectionIntentResource.ResourceType.Namespace, Diagnostics); + private ProtectionIntentRestOperations BackupProtectionIntentProtectionIntentRestClient => _backupProtectionIntentProtectionIntentRestClient ??= new ProtectionIntentRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(BackupProtectionIntentResource.ResourceType)); private ClientDiagnostics BackupStatusClientDiagnostics => _backupStatusClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ProviderConstants.DefaultProviderNamespace, Diagnostics); private BackupStatusRestOperations BackupStatusRestClient => _backupStatusRestClient ??= new BackupStatusRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); private ClientDiagnostics FeatureSupportClientDiagnostics => _featureSupportClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ProviderConstants.DefaultProviderNamespace, Diagnostics); @@ -67,16 +67,16 @@ private string GetApiVersionOrNull(ResourceType resourceType) /// /// /// - /// Azure region to hit Api. + /// Azure region to hit Api. /// Enable backup validation request on Virtual Machine. /// The cancellation token to use. - public virtual async Task> ValidateProtectionIntentAsync(string azureRegion, PreValidateEnableBackupContent content, CancellationToken cancellationToken = default) + public virtual async Task> ValidateProtectionIntentAsync(AzureLocation location, PreValidateEnableBackupContent content, CancellationToken cancellationToken = default) { - using var scope = ProtectionIntentResourceProtectionIntentClientDiagnostics.CreateScope("SubscriptionResourceExtensionClient.ValidateProtectionIntent"); + using var scope = BackupProtectionIntentProtectionIntentClientDiagnostics.CreateScope("SubscriptionResourceExtensionClient.ValidateProtectionIntent"); scope.Start(); try { - var response = await ProtectionIntentResourceProtectionIntentRestClient.ValidateAsync(Id.SubscriptionId, azureRegion, content, cancellationToken).ConfigureAwait(false); + var response = await BackupProtectionIntentProtectionIntentRestClient.ValidateAsync(Id.SubscriptionId, location, content, cancellationToken).ConfigureAwait(false); return response; } catch (Exception e) @@ -102,16 +102,16 @@ public virtual async Task> ValidatePro /// /// /// - /// Azure region to hit Api. + /// Azure region to hit Api. /// Enable backup validation request on Virtual Machine. /// The cancellation token to use. - public virtual Response ValidateProtectionIntent(string azureRegion, PreValidateEnableBackupContent content, CancellationToken cancellationToken = default) + public virtual Response ValidateProtectionIntent(AzureLocation location, PreValidateEnableBackupContent content, CancellationToken cancellationToken = default) { - using var scope = ProtectionIntentResourceProtectionIntentClientDiagnostics.CreateScope("SubscriptionResourceExtensionClient.ValidateProtectionIntent"); + using var scope = BackupProtectionIntentProtectionIntentClientDiagnostics.CreateScope("SubscriptionResourceExtensionClient.ValidateProtectionIntent"); scope.Start(); try { - var response = ProtectionIntentResourceProtectionIntentRestClient.Validate(Id.SubscriptionId, azureRegion, content, cancellationToken); + var response = BackupProtectionIntentProtectionIntentRestClient.Validate(Id.SubscriptionId, location, content, cancellationToken); return response; } catch (Exception e) @@ -134,16 +134,16 @@ public virtual Response ValidateProtectionInten /// /// /// - /// Azure region to hit Api. + /// Azure region to hit Api. /// Container Backup Status Request. /// The cancellation token to use. - public virtual async Task> GetBackupStatusAsync(string azureRegion, BackupStatusContent content, CancellationToken cancellationToken = default) + public virtual async Task> GetBackupStatusAsync(AzureLocation location, BackupStatusContent content, CancellationToken cancellationToken = default) { using var scope = BackupStatusClientDiagnostics.CreateScope("SubscriptionResourceExtensionClient.GetBackupStatus"); scope.Start(); try { - var response = await BackupStatusRestClient.GetAsync(Id.SubscriptionId, azureRegion, content, cancellationToken).ConfigureAwait(false); + var response = await BackupStatusRestClient.GetAsync(Id.SubscriptionId, location, content, cancellationToken).ConfigureAwait(false); return response; } catch (Exception e) @@ -166,16 +166,16 @@ public virtual async Task> GetBackupStatusAsync(s /// /// /// - /// Azure region to hit Api. + /// Azure region to hit Api. /// Container Backup Status Request. /// The cancellation token to use. - public virtual Response GetBackupStatus(string azureRegion, BackupStatusContent content, CancellationToken cancellationToken = default) + public virtual Response GetBackupStatus(AzureLocation location, BackupStatusContent content, CancellationToken cancellationToken = default) { using var scope = BackupStatusClientDiagnostics.CreateScope("SubscriptionResourceExtensionClient.GetBackupStatus"); scope.Start(); try { - var response = BackupStatusRestClient.Get(Id.SubscriptionId, azureRegion, content, cancellationToken); + var response = BackupStatusRestClient.Get(Id.SubscriptionId, location, content, cancellationToken); return response; } catch (Exception e) @@ -198,16 +198,16 @@ public virtual Response GetBackupStatus(string azureRegion /// /// /// - /// Azure region to hit Api. + /// Azure region to hit Api. /// Feature support request object. /// The cancellation token to use. - public virtual async Task> ValidateFeatureSupportAsync(string azureRegion, FeatureSupportContent content, CancellationToken cancellationToken = default) + public virtual async Task> ValidateFeatureSupportAsync(AzureLocation location, FeatureSupportContent content, CancellationToken cancellationToken = default) { using var scope = FeatureSupportClientDiagnostics.CreateScope("SubscriptionResourceExtensionClient.ValidateFeatureSupport"); scope.Start(); try { - var response = await FeatureSupportRestClient.ValidateAsync(Id.SubscriptionId, azureRegion, content, cancellationToken).ConfigureAwait(false); + var response = await FeatureSupportRestClient.ValidateAsync(Id.SubscriptionId, location, content, cancellationToken).ConfigureAwait(false); return response; } catch (Exception e) @@ -230,16 +230,16 @@ public virtual async Task> Valid /// /// /// - /// Azure region to hit Api. + /// Azure region to hit Api. /// Feature support request object. /// The cancellation token to use. - public virtual Response ValidateFeatureSupport(string azureRegion, FeatureSupportContent content, CancellationToken cancellationToken = default) + public virtual Response ValidateFeatureSupport(AzureLocation location, FeatureSupportContent content, CancellationToken cancellationToken = default) { using var scope = FeatureSupportClientDiagnostics.CreateScope("SubscriptionResourceExtensionClient.ValidateFeatureSupport"); scope.Start(); try { - var response = FeatureSupportRestClient.Validate(Id.SubscriptionId, azureRegion, content, cancellationToken); + var response = FeatureSupportRestClient.Validate(Id.SubscriptionId, location, content, cancellationToken); return response; } catch (Exception e) diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/JobResourceData.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/JobResourceData.cs deleted file mode 100644 index e2a726a8e733f..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/JobResourceData.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using Azure; -using Azure.Core; -using Azure.ResourceManager.Models; -using Azure.ResourceManager.RecoveryServicesBackup.Models; - -namespace Azure.ResourceManager.RecoveryServicesBackup -{ - /// A class representing the JobResource data model. - public partial class JobResourceData : TrackedResourceData - { - /// Initializes a new instance of JobResourceData. - /// The location. - public JobResourceData(AzureLocation location) : base(location) - { - } - - /// Initializes a new instance of JobResourceData. - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// The tags. - /// The location. - /// - /// JobResource properties - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , and . - /// - /// Optional ETag. - internal JobResourceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, Job properties, ETag? eTag) : base(id, name, resourceType, systemData, tags, location) - { - Properties = properties; - ETag = eTag; - } - - /// - /// JobResource properties - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , and . - /// - public Job Properties { get; set; } - /// Optional ETag. - public ETag? ETag { get; set; } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/LongRunningOperation/BackupPrivateEndpointConnectionOperationSource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/LongRunningOperation/BackupPrivateEndpointConnectionOperationSource.cs new file mode 100644 index 0000000000000..43bf41132baa9 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/LongRunningOperation/BackupPrivateEndpointConnectionOperationSource.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.RecoveryServicesBackup +{ + internal class BackupPrivateEndpointConnectionOperationSource : IOperationSource + { + private readonly ArmClient _client; + + internal BackupPrivateEndpointConnectionOperationSource(ArmClient client) + { + _client = client; + } + + BackupPrivateEndpointConnectionResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + var data = BackupPrivateEndpointConnectionData.DeserializeBackupPrivateEndpointConnectionData(document.RootElement); + return new BackupPrivateEndpointConnectionResource(_client, data); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + var data = BackupPrivateEndpointConnectionData.DeserializeBackupPrivateEndpointConnectionData(document.RootElement); + return new BackupPrivateEndpointConnectionResource(_client, data); + } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/LongRunningOperation/PrivateEndpointConnectionResourceOperationSource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/LongRunningOperation/PrivateEndpointConnectionResourceOperationSource.cs deleted file mode 100644 index 2e72805d09b43..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/LongRunningOperation/PrivateEndpointConnectionResourceOperationSource.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.ResourceManager; - -namespace Azure.ResourceManager.RecoveryServicesBackup -{ - internal class PrivateEndpointConnectionResourceOperationSource : IOperationSource - { - private readonly ArmClient _client; - - internal PrivateEndpointConnectionResourceOperationSource(ArmClient client) - { - _client = client; - } - - PrivateEndpointConnectionResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) - { - using var document = JsonDocument.Parse(response.ContentStream); - var data = PrivateEndpointConnectionResourceData.DeserializePrivateEndpointConnectionResourceData(document.RootElement); - return new PrivateEndpointConnectionResource(_client, data); - } - - async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) - { - using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); - var data = PrivateEndpointConnectionResourceData.DeserializePrivateEndpointConnectionResourceData(document.RootElement); - return new PrivateEndpointConnectionResource(_client, data); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileShareType.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileShareType.cs deleted file mode 100644 index 0fc70c0d66fd2..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileShareType.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - /// File Share type XSync or XSMB. - public readonly partial struct AzureFileShareType : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public AzureFileShareType(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string InvalidValue = "Invalid"; - private const string XsmbValue = "XSMB"; - private const string XSyncValue = "XSync"; - - /// Invalid. - public static AzureFileShareType Invalid { get; } = new AzureFileShareType(InvalidValue); - /// XSMB. - public static AzureFileShareType Xsmb { get; } = new AzureFileShareType(XsmbValue); - /// XSync. - public static AzureFileShareType XSync { get; } = new AzureFileShareType(XSyncValue); - /// Determines if two values are the same. - public static bool operator ==(AzureFileShareType left, AzureFileShareType right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(AzureFileShareType left, AzureFileShareType right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator AzureFileShareType(string value) => new AzureFileShareType(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is AzureFileShareType other && Equals(other); - /// - public bool Equals(AzureFileShareType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureRecoveryServiceVaultProtectionIntent.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureRecoveryServiceVaultProtectionIntent.cs deleted file mode 100644 index c8e0d6e0cc2e4..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureRecoveryServiceVaultProtectionIntent.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - /// - /// Azure Recovery Services Vault specific protection intent item. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . - /// - public partial class AzureRecoveryServiceVaultProtectionIntent : ProtectionIntent - { - /// Initializes a new instance of AzureRecoveryServiceVaultProtectionIntent. - public AzureRecoveryServiceVaultProtectionIntent() - { - ProtectionIntentItemType = ProtectionIntentItemType.RecoveryServiceVaultItem; - } - - /// Initializes a new instance of AzureRecoveryServiceVaultProtectionIntent. - /// backup protectionIntent type. - /// Type of backup management for the backed up item. - /// ARM ID of the resource to be backed up. - /// ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId. - /// ID of the backup policy with which this item is backed up. - /// Backup state of this backup item. - internal AzureRecoveryServiceVaultProtectionIntent(ProtectionIntentItemType protectionIntentItemType, BackupManagementType? backupManagementType, string sourceResourceId, string itemId, string policyId, ProtectionStatus? protectionState) : base(protectionIntentItemType, backupManagementType, sourceResourceId, itemId, policyId, protectionState) - { - ProtectionIntentItemType = protectionIntentItemType; - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPAseSystemProtectableItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPAseSystemProtectableItem.Serialization.cs deleted file mode 100644 index 3ad26e4b8dd40..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPAseSystemProtectableItem.Serialization.cs +++ /dev/null @@ -1,199 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - public partial class AzureVmWorkloadSAPAseSystemProtectableItem : IUtf8JsonSerializable - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) - { - writer.WriteStartObject(); - if (Optional.IsDefined(ParentName)) - { - writer.WritePropertyName("parentName"u8); - writer.WriteStringValue(ParentName); - } - if (Optional.IsDefined(ParentUniqueName)) - { - writer.WritePropertyName("parentUniqueName"u8); - writer.WriteStringValue(ParentUniqueName); - } - if (Optional.IsDefined(ServerName)) - { - writer.WritePropertyName("serverName"u8); - writer.WriteStringValue(ServerName); - } - if (Optional.IsDefined(IsAutoProtectable)) - { - writer.WritePropertyName("isAutoProtectable"u8); - writer.WriteBooleanValue(IsAutoProtectable.Value); - } - if (Optional.IsDefined(IsAutoProtected)) - { - writer.WritePropertyName("isAutoProtected"u8); - writer.WriteBooleanValue(IsAutoProtected.Value); - } - if (Optional.IsDefined(Subinquireditemcount)) - { - writer.WritePropertyName("subinquireditemcount"u8); - writer.WriteNumberValue(Subinquireditemcount.Value); - } - if (Optional.IsDefined(Subprotectableitemcount)) - { - writer.WritePropertyName("subprotectableitemcount"u8); - writer.WriteNumberValue(Subprotectableitemcount.Value); - } - if (Optional.IsDefined(Prebackupvalidation)) - { - writer.WritePropertyName("prebackupvalidation"u8); - writer.WriteObjectValue(Prebackupvalidation); - } - if (Optional.IsDefined(BackupManagementType)) - { - writer.WritePropertyName("backupManagementType"u8); - writer.WriteStringValue(BackupManagementType); - } - if (Optional.IsDefined(WorkloadType)) - { - writer.WritePropertyName("workloadType"u8); - writer.WriteStringValue(WorkloadType); - } - writer.WritePropertyName("protectableItemType"u8); - writer.WriteStringValue(ProtectableItemType); - if (Optional.IsDefined(FriendlyName)) - { - writer.WritePropertyName("friendlyName"u8); - writer.WriteStringValue(FriendlyName); - } - if (Optional.IsDefined(ProtectionState)) - { - writer.WritePropertyName("protectionState"u8); - writer.WriteStringValue(ProtectionState.Value.ToString()); - } - writer.WriteEndObject(); - } - - internal static AzureVmWorkloadSAPAseSystemProtectableItem DeserializeAzureVmWorkloadSAPAseSystemProtectableItem(JsonElement element) - { - Optional parentName = default; - Optional parentUniqueName = default; - Optional serverName = default; - Optional isAutoProtectable = default; - Optional isAutoProtected = default; - Optional subinquireditemcount = default; - Optional subprotectableitemcount = default; - Optional prebackupvalidation = default; - Optional backupManagementType = default; - Optional workloadType = default; - string protectableItemType = default; - Optional friendlyName = default; - Optional protectionState = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("parentName"u8)) - { - parentName = property.Value.GetString(); - continue; - } - if (property.NameEquals("parentUniqueName"u8)) - { - parentUniqueName = property.Value.GetString(); - continue; - } - if (property.NameEquals("serverName"u8)) - { - serverName = property.Value.GetString(); - continue; - } - if (property.NameEquals("isAutoProtectable"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - isAutoProtectable = property.Value.GetBoolean(); - continue; - } - if (property.NameEquals("isAutoProtected"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - isAutoProtected = property.Value.GetBoolean(); - continue; - } - if (property.NameEquals("subinquireditemcount"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - subinquireditemcount = property.Value.GetInt32(); - continue; - } - if (property.NameEquals("subprotectableitemcount"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - subprotectableitemcount = property.Value.GetInt32(); - continue; - } - if (property.NameEquals("prebackupvalidation"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - prebackupvalidation = PreBackupValidation.DeserializePreBackupValidation(property.Value); - continue; - } - if (property.NameEquals("backupManagementType"u8)) - { - backupManagementType = property.Value.GetString(); - continue; - } - if (property.NameEquals("workloadType"u8)) - { - workloadType = property.Value.GetString(); - continue; - } - if (property.NameEquals("protectableItemType"u8)) - { - protectableItemType = property.Value.GetString(); - continue; - } - if (property.NameEquals("friendlyName"u8)) - { - friendlyName = property.Value.GetString(); - continue; - } - if (property.NameEquals("protectionState"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - protectionState = new ProtectionStatus(property.Value.GetString()); - continue; - } - } - return new AzureVmWorkloadSAPAseSystemProtectableItem(backupManagementType.Value, workloadType.Value, protectableItemType, friendlyName.Value, Optional.ToNullable(protectionState), parentName.Value, parentUniqueName.Value, serverName.Value, Optional.ToNullable(isAutoProtectable), Optional.ToNullable(isAutoProtected), Optional.ToNullable(subinquireditemcount), Optional.ToNullable(subprotectableitemcount), prebackupvalidation.Value); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaDatabaseWorkloadItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaDatabaseWorkloadItem.Serialization.cs deleted file mode 100644 index 6c159366ff444..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaDatabaseWorkloadItem.Serialization.cs +++ /dev/null @@ -1,156 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - public partial class AzureVmWorkloadSAPHanaDatabaseWorkloadItem : IUtf8JsonSerializable - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) - { - writer.WriteStartObject(); - if (Optional.IsDefined(ParentName)) - { - writer.WritePropertyName("parentName"u8); - writer.WriteStringValue(ParentName); - } - if (Optional.IsDefined(ServerName)) - { - writer.WritePropertyName("serverName"u8); - writer.WriteStringValue(ServerName); - } - if (Optional.IsDefined(IsAutoProtectable)) - { - writer.WritePropertyName("isAutoProtectable"u8); - writer.WriteBooleanValue(IsAutoProtectable.Value); - } - if (Optional.IsDefined(Subinquireditemcount)) - { - writer.WritePropertyName("subinquireditemcount"u8); - writer.WriteNumberValue(Subinquireditemcount.Value); - } - if (Optional.IsDefined(SubWorkloadItemCount)) - { - writer.WritePropertyName("subWorkloadItemCount"u8); - writer.WriteNumberValue(SubWorkloadItemCount.Value); - } - if (Optional.IsDefined(BackupManagementType)) - { - writer.WritePropertyName("backupManagementType"u8); - writer.WriteStringValue(BackupManagementType); - } - if (Optional.IsDefined(WorkloadType)) - { - writer.WritePropertyName("workloadType"u8); - writer.WriteStringValue(WorkloadType); - } - writer.WritePropertyName("workloadItemType"u8); - writer.WriteStringValue(WorkloadItemType); - if (Optional.IsDefined(FriendlyName)) - { - writer.WritePropertyName("friendlyName"u8); - writer.WriteStringValue(FriendlyName); - } - if (Optional.IsDefined(ProtectionState)) - { - writer.WritePropertyName("protectionState"u8); - writer.WriteStringValue(ProtectionState.Value.ToString()); - } - writer.WriteEndObject(); - } - - internal static AzureVmWorkloadSAPHanaDatabaseWorkloadItem DeserializeAzureVmWorkloadSAPHanaDatabaseWorkloadItem(JsonElement element) - { - Optional parentName = default; - Optional serverName = default; - Optional isAutoProtectable = default; - Optional subinquireditemcount = default; - Optional subWorkloadItemCount = default; - Optional backupManagementType = default; - Optional workloadType = default; - string workloadItemType = default; - Optional friendlyName = default; - Optional protectionState = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("parentName"u8)) - { - parentName = property.Value.GetString(); - continue; - } - if (property.NameEquals("serverName"u8)) - { - serverName = property.Value.GetString(); - continue; - } - if (property.NameEquals("isAutoProtectable"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - isAutoProtectable = property.Value.GetBoolean(); - continue; - } - if (property.NameEquals("subinquireditemcount"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - subinquireditemcount = property.Value.GetInt32(); - continue; - } - if (property.NameEquals("subWorkloadItemCount"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - subWorkloadItemCount = property.Value.GetInt32(); - continue; - } - if (property.NameEquals("backupManagementType"u8)) - { - backupManagementType = property.Value.GetString(); - continue; - } - if (property.NameEquals("workloadType"u8)) - { - workloadType = property.Value.GetString(); - continue; - } - if (property.NameEquals("workloadItemType"u8)) - { - workloadItemType = property.Value.GetString(); - continue; - } - if (property.NameEquals("friendlyName"u8)) - { - friendlyName = property.Value.GetString(); - continue; - } - if (property.NameEquals("protectionState"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - protectionState = new ProtectionStatus(property.Value.GetString()); - continue; - } - } - return new AzureVmWorkloadSAPHanaDatabaseWorkloadItem(backupManagementType.Value, workloadType.Value, workloadItemType, friendlyName.Value, Optional.ToNullable(protectionState), parentName.Value, serverName.Value, Optional.ToNullable(isAutoProtectable), Optional.ToNullable(subinquireditemcount), Optional.ToNullable(subWorkloadItemCount)); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSQLAvailabilityGroupProtectableItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSQLAvailabilityGroupProtectableItem.Serialization.cs deleted file mode 100644 index 9f703c2dfd1a4..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSQLAvailabilityGroupProtectableItem.Serialization.cs +++ /dev/null @@ -1,199 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - public partial class AzureVmWorkloadSQLAvailabilityGroupProtectableItem : IUtf8JsonSerializable - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) - { - writer.WriteStartObject(); - if (Optional.IsDefined(ParentName)) - { - writer.WritePropertyName("parentName"u8); - writer.WriteStringValue(ParentName); - } - if (Optional.IsDefined(ParentUniqueName)) - { - writer.WritePropertyName("parentUniqueName"u8); - writer.WriteStringValue(ParentUniqueName); - } - if (Optional.IsDefined(ServerName)) - { - writer.WritePropertyName("serverName"u8); - writer.WriteStringValue(ServerName); - } - if (Optional.IsDefined(IsAutoProtectable)) - { - writer.WritePropertyName("isAutoProtectable"u8); - writer.WriteBooleanValue(IsAutoProtectable.Value); - } - if (Optional.IsDefined(IsAutoProtected)) - { - writer.WritePropertyName("isAutoProtected"u8); - writer.WriteBooleanValue(IsAutoProtected.Value); - } - if (Optional.IsDefined(Subinquireditemcount)) - { - writer.WritePropertyName("subinquireditemcount"u8); - writer.WriteNumberValue(Subinquireditemcount.Value); - } - if (Optional.IsDefined(Subprotectableitemcount)) - { - writer.WritePropertyName("subprotectableitemcount"u8); - writer.WriteNumberValue(Subprotectableitemcount.Value); - } - if (Optional.IsDefined(Prebackupvalidation)) - { - writer.WritePropertyName("prebackupvalidation"u8); - writer.WriteObjectValue(Prebackupvalidation); - } - if (Optional.IsDefined(BackupManagementType)) - { - writer.WritePropertyName("backupManagementType"u8); - writer.WriteStringValue(BackupManagementType); - } - if (Optional.IsDefined(WorkloadType)) - { - writer.WritePropertyName("workloadType"u8); - writer.WriteStringValue(WorkloadType); - } - writer.WritePropertyName("protectableItemType"u8); - writer.WriteStringValue(ProtectableItemType); - if (Optional.IsDefined(FriendlyName)) - { - writer.WritePropertyName("friendlyName"u8); - writer.WriteStringValue(FriendlyName); - } - if (Optional.IsDefined(ProtectionState)) - { - writer.WritePropertyName("protectionState"u8); - writer.WriteStringValue(ProtectionState.Value.ToString()); - } - writer.WriteEndObject(); - } - - internal static AzureVmWorkloadSQLAvailabilityGroupProtectableItem DeserializeAzureVmWorkloadSQLAvailabilityGroupProtectableItem(JsonElement element) - { - Optional parentName = default; - Optional parentUniqueName = default; - Optional serverName = default; - Optional isAutoProtectable = default; - Optional isAutoProtected = default; - Optional subinquireditemcount = default; - Optional subprotectableitemcount = default; - Optional prebackupvalidation = default; - Optional backupManagementType = default; - Optional workloadType = default; - string protectableItemType = default; - Optional friendlyName = default; - Optional protectionState = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("parentName"u8)) - { - parentName = property.Value.GetString(); - continue; - } - if (property.NameEquals("parentUniqueName"u8)) - { - parentUniqueName = property.Value.GetString(); - continue; - } - if (property.NameEquals("serverName"u8)) - { - serverName = property.Value.GetString(); - continue; - } - if (property.NameEquals("isAutoProtectable"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - isAutoProtectable = property.Value.GetBoolean(); - continue; - } - if (property.NameEquals("isAutoProtected"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - isAutoProtected = property.Value.GetBoolean(); - continue; - } - if (property.NameEquals("subinquireditemcount"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - subinquireditemcount = property.Value.GetInt32(); - continue; - } - if (property.NameEquals("subprotectableitemcount"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - subprotectableitemcount = property.Value.GetInt32(); - continue; - } - if (property.NameEquals("prebackupvalidation"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - prebackupvalidation = PreBackupValidation.DeserializePreBackupValidation(property.Value); - continue; - } - if (property.NameEquals("backupManagementType"u8)) - { - backupManagementType = property.Value.GetString(); - continue; - } - if (property.NameEquals("workloadType"u8)) - { - workloadType = property.Value.GetString(); - continue; - } - if (property.NameEquals("protectableItemType"u8)) - { - protectableItemType = property.Value.GetString(); - continue; - } - if (property.NameEquals("friendlyName"u8)) - { - friendlyName = property.Value.GetString(); - continue; - } - if (property.NameEquals("protectionState"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - protectionState = new ProtectionStatus(property.Value.GetString()); - continue; - } - } - return new AzureVmWorkloadSQLAvailabilityGroupProtectableItem(backupManagementType.Value, workloadType.Value, protectableItemType, friendlyName.Value, Optional.ToNullable(protectionState), parentName.Value, parentUniqueName.Value, serverName.Value, Optional.ToNullable(isAutoProtectable), Optional.ToNullable(isAutoProtected), Optional.ToNullable(subinquireditemcount), Optional.ToNullable(subprotectableitemcount), prebackupvalidation.Value); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSQLDatabaseProtectableItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSQLDatabaseProtectableItem.cs deleted file mode 100644 index e1140fa34d165..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSQLDatabaseProtectableItem.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - /// Azure VM workload-specific protectable item representing SQL Database. - public partial class AzureVmWorkloadSQLDatabaseProtectableItem : AzureVmWorkloadProtectableItem - { - /// Initializes a new instance of AzureVmWorkloadSQLDatabaseProtectableItem. - public AzureVmWorkloadSQLDatabaseProtectableItem() - { - ProtectableItemType = "SQLDataBase"; - } - - /// Initializes a new instance of AzureVmWorkloadSQLDatabaseProtectableItem. - /// Type of backup management to backup an item. - /// Type of workload for the backup management. - /// Type of the backup item. - /// Friendly name of the backup item. - /// State of the back up item. - /// Name for instance or AG. - /// - /// Parent Unique Name is added to provide the service formatted URI Name of the Parent - /// Only Applicable for data bases where the parent would be either Instance or a SQL AG. - /// - /// Host/Cluster Name for instance or AG. - /// Indicates if protectable item is auto-protectable. - /// Indicates if protectable item is auto-protected. - /// For instance or AG, indicates number of DB's present. - /// For instance or AG, indicates number of DB's to be protected. - /// Pre-backup validation for protectable objects. - internal AzureVmWorkloadSQLDatabaseProtectableItem(string backupManagementType, string workloadType, string protectableItemType, string friendlyName, ProtectionStatus? protectionState, string parentName, string parentUniqueName, string serverName, bool? isAutoProtectable, bool? isAutoProtected, int? subinquireditemcount, int? subprotectableitemcount, PreBackupValidation prebackupvalidation) : base(backupManagementType, workloadType, protectableItemType, friendlyName, protectionState, parentName, parentUniqueName, serverName, isAutoProtectable, isAutoProtected, subinquireditemcount, subprotectableitemcount, prebackupvalidation) - { - ProtectableItemType = protectableItemType ?? "SQLDataBase"; - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadContainerAutoProtectionIntent.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadContainerAutoProtectionIntent.Serialization.cs deleted file mode 100644 index db9393590f4a1..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadContainerAutoProtectionIntent.Serialization.cs +++ /dev/null @@ -1,102 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - public partial class AzureWorkloadContainerAutoProtectionIntent : IUtf8JsonSerializable - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) - { - writer.WriteStartObject(); - writer.WritePropertyName("protectionIntentItemType"u8); - writer.WriteStringValue(ProtectionIntentItemType.ToString()); - if (Optional.IsDefined(BackupManagementType)) - { - writer.WritePropertyName("backupManagementType"u8); - writer.WriteStringValue(BackupManagementType.Value.ToString()); - } - if (Optional.IsDefined(SourceResourceId)) - { - writer.WritePropertyName("sourceResourceId"u8); - writer.WriteStringValue(SourceResourceId); - } - if (Optional.IsDefined(ItemId)) - { - writer.WritePropertyName("itemId"u8); - writer.WriteStringValue(ItemId); - } - if (Optional.IsDefined(PolicyId)) - { - writer.WritePropertyName("policyId"u8); - writer.WriteStringValue(PolicyId); - } - if (Optional.IsDefined(ProtectionState)) - { - writer.WritePropertyName("protectionState"u8); - writer.WriteStringValue(ProtectionState.Value.ToString()); - } - writer.WriteEndObject(); - } - - internal static AzureWorkloadContainerAutoProtectionIntent DeserializeAzureWorkloadContainerAutoProtectionIntent(JsonElement element) - { - ProtectionIntentItemType protectionIntentItemType = default; - Optional backupManagementType = default; - Optional sourceResourceId = default; - Optional itemId = default; - Optional policyId = default; - Optional protectionState = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("protectionIntentItemType"u8)) - { - protectionIntentItemType = new ProtectionIntentItemType(property.Value.GetString()); - continue; - } - if (property.NameEquals("backupManagementType"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - backupManagementType = new BackupManagementType(property.Value.GetString()); - continue; - } - if (property.NameEquals("sourceResourceId"u8)) - { - sourceResourceId = property.Value.GetString(); - continue; - } - if (property.NameEquals("itemId"u8)) - { - itemId = property.Value.GetString(); - continue; - } - if (property.NameEquals("policyId"u8)) - { - policyId = property.Value.GetString(); - continue; - } - if (property.NameEquals("protectionState"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - protectionState = new ProtectionStatus(property.Value.GetString()); - continue; - } - } - return new AzureWorkloadContainerAutoProtectionIntent(protectionIntentItemType, Optional.ToNullable(backupManagementType), sourceResourceId.Value, itemId.Value, policyId.Value, Optional.ToNullable(protectionState)); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLRecoveryPointExtendedInfo.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLRecoveryPointExtendedInfo.cs deleted file mode 100644 index c950dc18ff1b3..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLRecoveryPointExtendedInfo.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using Azure.Core; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - /// Extended info class details. - public partial class AzureWorkloadSQLRecoveryPointExtendedInfo - { - /// Initializes a new instance of AzureWorkloadSQLRecoveryPointExtendedInfo. - public AzureWorkloadSQLRecoveryPointExtendedInfo() - { - DataDirectoryPaths = new ChangeTrackingList(); - } - - /// Initializes a new instance of AzureWorkloadSQLRecoveryPointExtendedInfo. - /// UTC time at which data directory info was captured. - /// List of data directory paths during restore operation. - internal AzureWorkloadSQLRecoveryPointExtendedInfo(DateTimeOffset? dataDirectoryTimeInUTC, IList dataDirectoryPaths) - { - DataDirectoryTimeInUTC = dataDirectoryTimeInUTC; - DataDirectoryPaths = dataDirectoryPaths; - } - - /// UTC time at which data directory info was captured. - public DateTimeOffset? DataDirectoryTimeInUTC { get; set; } - /// List of data directory paths during restore operation. - public IList DataDirectoryPaths { get; } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/Settings.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupCommonSettings.Serialization.cs similarity index 88% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/Settings.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupCommonSettings.Serialization.cs index 83420f1150616..f9e5e030bbd0d 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/Settings.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupCommonSettings.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class Settings : IUtf8JsonSerializable + public partial class BackupCommonSettings : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -33,7 +33,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static Settings DeserializeSettings(JsonElement element) + internal static BackupCommonSettings DeserializeBackupCommonSettings(JsonElement element) { Optional timeZone = default; Optional isSqlCompression = default; @@ -66,7 +66,7 @@ internal static Settings DeserializeSettings(JsonElement element) continue; } } - return new Settings(timeZone.Value, Optional.ToNullable(isSqlCompression), Optional.ToNullable(isCompression)); + return new BackupCommonSettings(timeZone.Value, Optional.ToNullable(isSqlCompression), Optional.ToNullable(isCompression)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/Settings.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupCommonSettings.cs similarity index 80% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/Settings.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupCommonSettings.cs index dfa8041960a24..395286cca90a0 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/Settings.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupCommonSettings.cs @@ -8,21 +8,21 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Common settings field for backup management. - public partial class Settings + public partial class BackupCommonSettings { - /// Initializes a new instance of Settings. - public Settings() + /// Initializes a new instance of BackupCommonSettings. + public BackupCommonSettings() { } - /// Initializes a new instance of Settings. + /// Initializes a new instance of BackupCommonSettings. /// TimeZone optional input as string. For example: TimeZone = "Pacific Standard Time". /// SQL compression flag. /// /// Workload compression flag. This has been added so that 'isSqlCompression' /// will be deprecated once clients upgrade to consider this flag. /// - internal Settings(string timeZone, bool? isSqlCompression, bool? isCompression) + internal BackupCommonSettings(string timeZone, bool? isSqlCompression, bool? isCompression) { TimeZone = timeZone; IsSqlCompression = isSqlCompression; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupRequest.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupContent.Serialization.cs similarity index 66% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupRequest.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupContent.Serialization.cs index dc8f751ca5abd..f20714178a896 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupRequest.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupContent.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class BackupRequest : IUtf8JsonSerializable + public partial class BackupContent : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -20,15 +20,15 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static BackupRequest DeserializeBackupRequest(JsonElement element) + internal static BackupContent DeserializeBackupContent(JsonElement element) { if (element.TryGetProperty("objectType", out JsonElement discriminator)) { switch (discriminator.GetString()) { - case "AzureFileShareBackupRequest": return AzureFileShareBackupRequest.DeserializeAzureFileShareBackupRequest(element); - case "AzureWorkloadBackupRequest": return AzureWorkloadBackupRequest.DeserializeAzureWorkloadBackupRequest(element); - case "IaasVMBackupRequest": return IaasVmBackupRequest.DeserializeIaasVmBackupRequest(element); + case "AzureFileShareBackupRequest": return FileShareBackupContent.DeserializeFileShareBackupContent(element); + case "AzureWorkloadBackupRequest": return WorkloadBackupContent.DeserializeWorkloadBackupContent(element); + case "IaasVMBackupRequest": return IaasVmBackupContent.DeserializeIaasVmBackupContent(element); } } return UnknownBackupRequest.DeserializeUnknownBackupRequest(element); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupRequest.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupContent.cs similarity index 66% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupRequest.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupContent.cs index f44ecb792dcb4..ca924bf44dde9 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupRequest.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupContent.cs @@ -9,19 +9,19 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// /// Base class for backup request. Workload-specific backup requests are derived from this class. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . /// - public abstract partial class BackupRequest + public abstract partial class BackupContent { - /// Initializes a new instance of BackupRequest. - protected BackupRequest() + /// Initializes a new instance of BackupContent. + protected BackupContent() { } - /// Initializes a new instance of BackupRequest. + /// Initializes a new instance of BackupContent. /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. - internal BackupRequest(string objectType) + internal BackupContent(string objectType) { ObjectType = objectType; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupCreateMode.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupCreateMode.cs new file mode 100644 index 0000000000000..47bbce222683f --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupCreateMode.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Models +{ + /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. + public readonly partial struct BackupCreateMode : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public BackupCreateMode(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string InvalidValue = "Invalid"; + private const string DefaultValue = "Default"; + private const string RecoverValue = "Recover"; + + /// Invalid. + public static BackupCreateMode Invalid { get; } = new BackupCreateMode(InvalidValue); + /// Default. + public static BackupCreateMode Default { get; } = new BackupCreateMode(DefaultValue); + /// Recover. + public static BackupCreateMode Recover { get; } = new BackupCreateMode(RecoverValue); + /// Determines if two values are the same. + public static bool operator ==(BackupCreateMode left, BackupCreateMode right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(BackupCreateMode left, BackupCreateMode right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator BackupCreateMode(string value) => new BackupCreateMode(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is BackupCreateMode other && Equals(other); + /// + public bool Equals(BackupCreateMode other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DailySchedule.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupDailySchedule.Serialization.cs similarity index 87% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DailySchedule.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupDailySchedule.Serialization.cs index 168cabf16cb8a..63c314d9e059d 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DailySchedule.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupDailySchedule.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - internal partial class DailySchedule : IUtf8JsonSerializable + internal partial class BackupDailySchedule : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -30,7 +30,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static DailySchedule DeserializeDailySchedule(JsonElement element) + internal static BackupDailySchedule DeserializeBackupDailySchedule(JsonElement element) { Optional> scheduleRunTimes = default; foreach (var property in element.EnumerateObject()) @@ -51,7 +51,7 @@ internal static DailySchedule DeserializeDailySchedule(JsonElement element) continue; } } - return new DailySchedule(Optional.ToList(scheduleRunTimes)); + return new BackupDailySchedule(Optional.ToList(scheduleRunTimes)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DailySchedule.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupDailySchedule.cs similarity index 64% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DailySchedule.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupDailySchedule.cs index 33cd89533f693..8ac99ec375701 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DailySchedule.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupDailySchedule.cs @@ -11,18 +11,18 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - /// The DailySchedule. - internal partial class DailySchedule + /// The BackupDailySchedule. + internal partial class BackupDailySchedule { - /// Initializes a new instance of DailySchedule. - public DailySchedule() + /// Initializes a new instance of BackupDailySchedule. + public BackupDailySchedule() { ScheduleRunTimes = new ChangeTrackingList(); } - /// Initializes a new instance of DailySchedule. + /// Initializes a new instance of BackupDailySchedule. /// List of times of day this schedule has to be run. - internal DailySchedule(IList scheduleRunTimes) + internal BackupDailySchedule(IList scheduleRunTimes) { ScheduleRunTimes = scheduleRunTimes; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupDataSourceType.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupDataSourceType.cs new file mode 100644 index 0000000000000..11f9afac20a5b --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupDataSourceType.cs @@ -0,0 +1,93 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Models +{ + /// Type of workload this item represents. + public readonly partial struct BackupDataSourceType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public BackupDataSourceType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string InvalidValue = "Invalid"; + private const string VmValue = "VM"; + private const string FileFolderValue = "FileFolder"; + private const string AzureSqlDBValue = "AzureSqlDb"; + private const string SqlDBValue = "SQLDB"; + private const string ExchangeValue = "Exchange"; + private const string SharepointValue = "Sharepoint"; + private const string VMwareVmValue = "VMwareVM"; + private const string SystemStateValue = "SystemState"; + private const string ClientValue = "Client"; + private const string GenericDataSourceValue = "GenericDataSource"; + private const string SqlDatabaseValue = "SQLDataBase"; + private const string AzureFileShareValue = "AzureFileShare"; + private const string SapHanaDatabaseValue = "SAPHanaDatabase"; + private const string SapAseDatabaseValue = "SAPAseDatabase"; + private const string SapHanaDBInstanceValue = "SAPHanaDBInstance"; + + /// Invalid. + public static BackupDataSourceType Invalid { get; } = new BackupDataSourceType(InvalidValue); + /// VM. + public static BackupDataSourceType Vm { get; } = new BackupDataSourceType(VmValue); + /// FileFolder. + public static BackupDataSourceType FileFolder { get; } = new BackupDataSourceType(FileFolderValue); + /// AzureSqlDb. + public static BackupDataSourceType AzureSqlDB { get; } = new BackupDataSourceType(AzureSqlDBValue); + /// SQLDB. + public static BackupDataSourceType SqlDB { get; } = new BackupDataSourceType(SqlDBValue); + /// Exchange. + public static BackupDataSourceType Exchange { get; } = new BackupDataSourceType(ExchangeValue); + /// Sharepoint. + public static BackupDataSourceType Sharepoint { get; } = new BackupDataSourceType(SharepointValue); + /// VMwareVM. + public static BackupDataSourceType VMwareVm { get; } = new BackupDataSourceType(VMwareVmValue); + /// SystemState. + public static BackupDataSourceType SystemState { get; } = new BackupDataSourceType(SystemStateValue); + /// Client. + public static BackupDataSourceType Client { get; } = new BackupDataSourceType(ClientValue); + /// GenericDataSource. + public static BackupDataSourceType GenericDataSource { get; } = new BackupDataSourceType(GenericDataSourceValue); + /// SQLDataBase. + public static BackupDataSourceType SqlDatabase { get; } = new BackupDataSourceType(SqlDatabaseValue); + /// AzureFileShare. + public static BackupDataSourceType AzureFileShare { get; } = new BackupDataSourceType(AzureFileShareValue); + /// SAPHanaDatabase. + public static BackupDataSourceType SapHanaDatabase { get; } = new BackupDataSourceType(SapHanaDatabaseValue); + /// SAPAseDatabase. + public static BackupDataSourceType SapAseDatabase { get; } = new BackupDataSourceType(SapAseDatabaseValue); + /// SAPHanaDBInstance. + public static BackupDataSourceType SapHanaDBInstance { get; } = new BackupDataSourceType(SapHanaDBInstanceValue); + /// Determines if two values are the same. + public static bool operator ==(BackupDataSourceType left, BackupDataSourceType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(BackupDataSourceType left, BackupDataSourceType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator BackupDataSourceType(string value) => new BackupDataSourceType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is BackupDataSourceType other && Equals(other); + /// + public bool Equals(BackupDataSourceType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/Day.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupDay.Serialization.cs similarity index 88% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/Day.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupDay.Serialization.cs index 49d452a26f804..6c4e7cefd07b3 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/Day.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupDay.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class Day : IUtf8JsonSerializable + public partial class BackupDay : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -28,7 +28,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static Day DeserializeDay(JsonElement element) + internal static BackupDay DeserializeBackupDay(JsonElement element) { Optional date = default; Optional isLast = default; @@ -55,7 +55,7 @@ internal static Day DeserializeDay(JsonElement element) continue; } } - return new Day(Optional.ToNullable(date), Optional.ToNullable(isLast)); + return new BackupDay(Optional.ToNullable(date), Optional.ToNullable(isLast)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/Day.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupDay.cs similarity index 72% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/Day.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupDay.cs index 9280788f18b8b..868a7ad3c2c43 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/Day.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupDay.cs @@ -8,17 +8,17 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Day of the week. - public partial class Day + public partial class BackupDay { - /// Initializes a new instance of Day. - public Day() + /// Initializes a new instance of BackupDay. + public BackupDay() { } - /// Initializes a new instance of Day. + /// Initializes a new instance of BackupDay. /// Date of the month. /// Whether Date is last date of month. - internal Day(int? date, bool? isLast) + internal BackupDay(int? date, bool? isLast) { Date = date; IsLast = isLast; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupDayOfWeek.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupDayOfWeek.Serialization.cs new file mode 100644 index 0000000000000..8bf3250c559e0 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupDayOfWeek.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Models +{ + internal static partial class BackupDayOfWeekExtensions + { + public static string ToSerialString(this BackupDayOfWeek value) => value switch + { + BackupDayOfWeek.Sunday => "Sunday", + BackupDayOfWeek.Monday => "Monday", + BackupDayOfWeek.Tuesday => "Tuesday", + BackupDayOfWeek.Wednesday => "Wednesday", + BackupDayOfWeek.Thursday => "Thursday", + BackupDayOfWeek.Friday => "Friday", + BackupDayOfWeek.Saturday => "Saturday", + _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown BackupDayOfWeek value.") + }; + + public static BackupDayOfWeek ToBackupDayOfWeek(this string value) + { + if (string.Equals(value, "Sunday", StringComparison.InvariantCultureIgnoreCase)) return BackupDayOfWeek.Sunday; + if (string.Equals(value, "Monday", StringComparison.InvariantCultureIgnoreCase)) return BackupDayOfWeek.Monday; + if (string.Equals(value, "Tuesday", StringComparison.InvariantCultureIgnoreCase)) return BackupDayOfWeek.Tuesday; + if (string.Equals(value, "Wednesday", StringComparison.InvariantCultureIgnoreCase)) return BackupDayOfWeek.Wednesday; + if (string.Equals(value, "Thursday", StringComparison.InvariantCultureIgnoreCase)) return BackupDayOfWeek.Thursday; + if (string.Equals(value, "Friday", StringComparison.InvariantCultureIgnoreCase)) return BackupDayOfWeek.Friday; + if (string.Equals(value, "Saturday", StringComparison.InvariantCultureIgnoreCase)) return BackupDayOfWeek.Saturday; + throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown BackupDayOfWeek value."); + } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DayOfWeek.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupDayOfWeek.cs similarity index 88% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DayOfWeek.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupDayOfWeek.cs index 8c14887d14def..97276bb4702f9 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DayOfWeek.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupDayOfWeek.cs @@ -7,8 +7,8 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - /// The DayOfWeek. - public enum DayOfWeek + /// The BackupDayOfWeek. + public enum BackupDayOfWeek { /// Sunday. Sunday, diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupEncryptionAtRestType.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupEncryptionAtRestType.cs new file mode 100644 index 0000000000000..4653d345ac931 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupEncryptionAtRestType.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Models +{ + /// Encryption At Rest Type. + public readonly partial struct BackupEncryptionAtRestType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public BackupEncryptionAtRestType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string InvalidValue = "Invalid"; + private const string MicrosoftManagedValue = "MicrosoftManaged"; + private const string CustomerManagedValue = "CustomerManaged"; + + /// Invalid. + public static BackupEncryptionAtRestType Invalid { get; } = new BackupEncryptionAtRestType(InvalidValue); + /// MicrosoftManaged. + public static BackupEncryptionAtRestType MicrosoftManaged { get; } = new BackupEncryptionAtRestType(MicrosoftManagedValue); + /// CustomerManaged. + public static BackupEncryptionAtRestType CustomerManaged { get; } = new BackupEncryptionAtRestType(CustomerManagedValue); + /// Determines if two values are the same. + public static bool operator ==(BackupEncryptionAtRestType left, BackupEncryptionAtRestType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(BackupEncryptionAtRestType left, BackupEncryptionAtRestType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator BackupEncryptionAtRestType(string value) => new BackupEncryptionAtRestType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is BackupEncryptionAtRestType other && Equals(other); + /// + public bool Equals(BackupEncryptionAtRestType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupEngineBaseResourceList.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupEngineBaseResourceList.Serialization.cs index d1bf73af734af..9b5579301503b 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupEngineBaseResourceList.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupEngineBaseResourceList.Serialization.cs @@ -16,7 +16,7 @@ internal partial class BackupEngineBaseResourceList { internal static BackupEngineBaseResourceList DeserializeBackupEngineBaseResourceList(JsonElement element) { - Optional> value = default; + Optional> value = default; Optional nextLink = default; foreach (var property in element.EnumerateObject()) { @@ -27,10 +27,10 @@ internal static BackupEngineBaseResourceList DeserializeBackupEngineBaseResource property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(BackupEngineBaseResourceData.DeserializeBackupEngineBaseResourceData(item)); + array.Add(BackupEngineData.DeserializeBackupEngineData(item)); } value = array; continue; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupEngineBaseResourceList.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupEngineBaseResourceList.cs index 0fa390108b8f4..d45fcacef5ed9 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupEngineBaseResourceList.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupEngineBaseResourceList.cs @@ -17,20 +17,20 @@ internal partial class BackupEngineBaseResourceList /// Initializes a new instance of BackupEngineBaseResourceList. internal BackupEngineBaseResourceList() { - Value = new ChangeTrackingList(); + Value = new ChangeTrackingList(); } /// Initializes a new instance of BackupEngineBaseResourceList. /// List of resources. /// The uri to fetch the next page of resources. - internal BackupEngineBaseResourceList(IReadOnlyList value, string nextLink) + internal BackupEngineBaseResourceList(IReadOnlyList value, string nextLink) { Value = value; NextLink = nextLink; } /// List of resources. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } /// The uri to fetch the next page of resources. public string NextLink { get; } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPointResourceData.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupEngineData.Serialization.cs similarity index 90% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPointResourceData.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupEngineData.Serialization.cs index 061ff107a09e3..cb766a54ce130 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPointResourceData.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupEngineData.Serialization.cs @@ -14,7 +14,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup { - public partial class RecoveryPointResourceData : IUtf8JsonSerializable + public partial class BackupEngineData : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -45,9 +45,9 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static RecoveryPointResourceData DeserializeRecoveryPointResourceData(JsonElement element) + internal static BackupEngineData DeserializeBackupEngineData(JsonElement element) { - Optional properties = default; + Optional properties = default; Optional eTag = default; Optional> tags = default; AzureLocation location = default; @@ -64,7 +64,7 @@ internal static RecoveryPointResourceData DeserializeRecoveryPointResourceData(J property.ThrowNonNullablePropertyIsNull(); continue; } - properties = RecoveryPoint.DeserializeRecoveryPoint(property.Value); + properties = BackupGenericEngine.DeserializeBackupGenericEngine(property.Value); continue; } if (property.NameEquals("eTag"u8)) @@ -123,7 +123,7 @@ internal static RecoveryPointResourceData DeserializeRecoveryPointResourceData(J continue; } } - return new RecoveryPointResourceData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, properties.Value, Optional.ToNullable(eTag)); + return new BackupEngineData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, properties.Value, Optional.ToNullable(eTag)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ErrorDetail.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupErrorDetail.Serialization.cs similarity index 86% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ErrorDetail.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupErrorDetail.Serialization.cs index 5948571c6c30b..5242c0df67f6d 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ErrorDetail.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupErrorDetail.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class ErrorDetail : IUtf8JsonSerializable + public partial class BackupErrorDetail : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -19,7 +19,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static ErrorDetail DeserializeErrorDetail(JsonElement element) + internal static BackupErrorDetail DeserializeBackupErrorDetail(JsonElement element) { Optional code = default; Optional message = default; @@ -52,7 +52,7 @@ internal static ErrorDetail DeserializeErrorDetail(JsonElement element) continue; } } - return new ErrorDetail(code.Value, message.Value, Optional.ToList(recommendations)); + return new BackupErrorDetail(code.Value, message.Value, Optional.ToList(recommendations)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ErrorDetail.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupErrorDetail.cs similarity index 76% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ErrorDetail.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupErrorDetail.cs index 062d2f45a0964..cc0460f5cf5f6 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ErrorDetail.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupErrorDetail.cs @@ -11,19 +11,19 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Error Detail class which encapsulates Code, Message and Recommendations. - public partial class ErrorDetail + public partial class BackupErrorDetail { - /// Initializes a new instance of ErrorDetail. - public ErrorDetail() + /// Initializes a new instance of BackupErrorDetail. + public BackupErrorDetail() { Recommendations = new ChangeTrackingList(); } - /// Initializes a new instance of ErrorDetail. + /// Initializes a new instance of BackupErrorDetail. /// Error code. /// Error Message related to the Code. /// List of recommendation strings. - internal ErrorDetail(string code, string message, IReadOnlyList recommendations) + internal BackupErrorDetail(string code, string message, IReadOnlyList recommendations) { Code = code; Message = message; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupFabricName.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupFabricName.cs new file mode 100644 index 0000000000000..acf2a51c3d250 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupFabricName.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Models +{ + /// Specifies the fabric name - Azure or AD. + public readonly partial struct BackupFabricName : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public BackupFabricName(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string InvalidValue = "Invalid"; + private const string AzureValue = "Azure"; + + /// Invalid. + public static BackupFabricName Invalid { get; } = new BackupFabricName(InvalidValue); + /// Azure. + public static BackupFabricName Azure { get; } = new BackupFabricName(AzureValue); + /// Determines if two values are the same. + public static bool operator ==(BackupFabricName left, BackupFabricName right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(BackupFabricName left, BackupFabricName right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator BackupFabricName(string value) => new BackupFabricName(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is BackupFabricName other && Equals(other); + /// + public bool Equals(BackupFabricName other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupFileShareType.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupFileShareType.cs new file mode 100644 index 0000000000000..ea9cfab080791 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupFileShareType.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Models +{ + /// File Share type XSync or XSMB. + public readonly partial struct BackupFileShareType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public BackupFileShareType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string InvalidValue = "Invalid"; + private const string XsmbValue = "XSMB"; + private const string XSyncValue = "XSync"; + + /// Invalid. + public static BackupFileShareType Invalid { get; } = new BackupFileShareType(InvalidValue); + /// XSMB. + public static BackupFileShareType Xsmb { get; } = new BackupFileShareType(XsmbValue); + /// XSync. + public static BackupFileShareType XSync { get; } = new BackupFileShareType(XSyncValue); + /// Determines if two values are the same. + public static bool operator ==(BackupFileShareType left, BackupFileShareType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(BackupFileShareType left, BackupFileShareType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator BackupFileShareType(string value) => new BackupFileShareType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is BackupFileShareType other && Equals(other); + /// + public bool Equals(BackupFileShareType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupEngineBase.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericEngine.Serialization.cs similarity index 92% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupEngineBase.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericEngine.Serialization.cs index bf824c1d79230..de7fcdec66ea7 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupEngineBase.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericEngine.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class BackupEngineBase : IUtf8JsonSerializable + public partial class BackupGenericEngine : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -80,13 +80,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static BackupEngineBase DeserializeBackupEngineBase(JsonElement element) + internal static BackupGenericEngine DeserializeBackupGenericEngine(JsonElement element) { if (element.TryGetProperty("backupEngineType", out JsonElement discriminator)) { switch (discriminator.GetString()) { - case "AzureBackupServerEngine": return AzureBackupServerEngine.DeserializeAzureBackupServerEngine(element); + case "AzureBackupServerEngine": return BackupServerEngine.DeserializeBackupServerEngine(element); case "DpmBackupEngine": return DpmBackupEngine.DeserializeDpmBackupEngine(element); } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupEngineBase.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericEngine.cs similarity index 79% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupEngineBase.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericEngine.cs index 5fa41a3ddacda..fc2fdd8f87852 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupEngineBase.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericEngine.cs @@ -9,17 +9,17 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// /// The base backup engine class. All workload specific backup engines derive from this class. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . /// - public abstract partial class BackupEngineBase + public abstract partial class BackupGenericEngine { - /// Initializes a new instance of BackupEngineBase. - protected BackupEngineBase() + /// Initializes a new instance of BackupGenericEngine. + protected BackupGenericEngine() { } - /// Initializes a new instance of BackupEngineBase. + /// Initializes a new instance of BackupGenericEngine. /// Friendly name of the backup engine. /// Type of backup management for the backup engine. /// Registration status of the backup engine with the Recovery Services Vault. @@ -33,7 +33,7 @@ protected BackupEngineBase() /// To check if backup agent upgrade available. /// To check if backup engine upgrade available. /// Extended info of the backupengine. - internal BackupEngineBase(string friendlyName, BackupManagementType? backupManagementType, string registrationStatus, string backupEngineState, string healthStatus, BackupEngineType backupEngineType, bool? canReRegister, string backupEngineId, string dpmVersion, string azureBackupAgentVersion, bool? isAzureBackupAgentUpgradeAvailable, bool? isDpmUpgradeAvailable, BackupEngineExtendedInfo extendedInfo) + internal BackupGenericEngine(string friendlyName, BackupManagementType? backupManagementType, string registrationStatus, string backupEngineState, string healthStatus, BackupEngineType backupEngineType, bool? canReRegister, string backupEngineId, string dpmVersion, string azureBackupAgentVersion, bool? isAzureBackupAgentUpgradeAvailable, bool? isDpmUpgradeAvailable, BackupEngineExtendedInfo extendedInfo) { FriendlyName = friendlyName; BackupManagementType = backupManagementType; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/Job.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericJob.Serialization.cs similarity index 71% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/Job.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericJob.Serialization.cs index 10b586d6d3906..586a117e5ce24 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/Job.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericJob.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class Job : IUtf8JsonSerializable + public partial class BackupGenericJob : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -55,19 +55,19 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static Job DeserializeJob(JsonElement element) + internal static BackupGenericJob DeserializeBackupGenericJob(JsonElement element) { if (element.TryGetProperty("jobType", out JsonElement discriminator)) { switch (discriminator.GetString()) { - case "AzureIaaSVMJob": return AzureIaasVmJob.DeserializeAzureIaasVmJob(element); - case "AzureIaaSVMJobV2": return AzureIaasVmJobV2.DeserializeAzureIaasVmJobV2(element); - case "AzureStorageJob": return AzureStorageJob.DeserializeAzureStorageJob(element); - case "AzureWorkloadJob": return AzureWorkloadJob.DeserializeAzureWorkloadJob(element); - case "DpmJob": return DpmJob.DeserializeDpmJob(element); - case "MabJob": return MabJob.DeserializeMabJob(element); - case "VaultJob": return VaultJob.DeserializeVaultJob(element); + case "AzureIaaSVMJob": return IaasVmBackupJob.DeserializeIaasVmBackupJob(element); + case "AzureIaaSVMJobV2": return IaasVmBackupJobV2.DeserializeIaasVmBackupJobV2(element); + case "AzureStorageJob": return StorageBackupJob.DeserializeStorageBackupJob(element); + case "AzureWorkloadJob": return WorkloadBackupJob.DeserializeWorkloadBackupJob(element); + case "DpmJob": return DpmBackupJob.DeserializeDpmBackupJob(element); + case "MabJob": return MabBackupJob.DeserializeMabBackupJob(element); + case "VaultJob": return VaultBackupJob.DeserializeVaultBackupJob(element); } } return UnknownJob.DeserializeUnknownJob(element); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/Job.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericJob.cs similarity index 70% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/Job.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericJob.cs index 08e9da4acc385..b60e8d5267a4a 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/Job.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericJob.cs @@ -11,17 +11,17 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// /// Defines workload agnostic properties for a job. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , and . /// - public abstract partial class Job + public abstract partial class BackupGenericJob { - /// Initializes a new instance of Job. - protected Job() + /// Initializes a new instance of BackupGenericJob. + protected BackupGenericJob() { } - /// Initializes a new instance of Job. + /// Initializes a new instance of BackupGenericJob. /// Friendly name of the entity on which the current job is executing. /// Backup management type to execute the current job. /// The operation name. @@ -30,7 +30,7 @@ protected Job() /// The end time. /// ActivityId of job. /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. - internal Job(string entityFriendlyName, BackupManagementType? backupManagementType, string operation, string status, DateTimeOffset? startOn, DateTimeOffset? endOn, string activityId, string jobType) + internal BackupGenericJob(string entityFriendlyName, BackupManagementType? backupManagementType, string operation, string status, DateTimeOffset? startOn, DateTimeOffset? endOn, string activityId, string jobType) { EntityFriendlyName = entityFriendlyName; BackupManagementType = backupManagementType; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectedItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericProtectedItem.Serialization.cs similarity index 76% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectedItem.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericProtectedItem.Serialization.cs index e6f6909285e37..a73f3644da63d 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectedItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericProtectedItem.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class ProtectedItem : IUtf8JsonSerializable + public partial class BackupGenericProtectedItem : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -32,10 +32,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("policyId"u8); writer.WriteStringValue(PolicyId); } - if (Optional.IsDefined(LastRecoveryPoint)) + if (Optional.IsDefined(LastRecoverOn)) { writer.WritePropertyName("lastRecoveryPoint"u8); - writer.WriteStringValue(LastRecoveryPoint.Value, "O"); + writer.WriteStringValue(LastRecoverOn.Value, "O"); } if (Optional.IsDefined(BackupSetName)) { @@ -47,10 +47,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("createMode"u8); writer.WriteStringValue(CreateMode.Value.ToString()); } - if (Optional.IsDefined(DeferredDeleteTimeInUTC)) + if (Optional.IsDefined(DeferredDeletedOn)) { writer.WritePropertyName("deferredDeleteTimeInUTC"u8); - writer.WriteStringValue(DeferredDeleteTimeInUTC.Value, "O"); + writer.WriteStringValue(DeferredDeletedOn.Value, "O"); } if (Optional.IsDefined(IsScheduledForDeferredDelete)) { @@ -100,25 +100,25 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static ProtectedItem DeserializeProtectedItem(JsonElement element) + internal static BackupGenericProtectedItem DeserializeBackupGenericProtectedItem(JsonElement element) { if (element.TryGetProperty("protectedItemType", out JsonElement discriminator)) { switch (discriminator.GetString()) { - case "AzureFileShareProtectedItem": return AzureFileshareProtectedItem.DeserializeAzureFileshareProtectedItem(element); - case "AzureIaaSVMProtectedItem": return AzureIaasVmProtectedItem.DeserializeAzureIaasVmProtectedItem(element); - case "AzureVmWorkloadProtectedItem": return AzureVmWorkloadProtectedItem.DeserializeAzureVmWorkloadProtectedItem(element); - case "AzureVmWorkloadSAPAseDatabase": return AzureVmWorkloadSAPAseDatabaseProtectedItem.DeserializeAzureVmWorkloadSAPAseDatabaseProtectedItem(element); - case "AzureVmWorkloadSAPHanaDBInstance": return AzureVmWorkloadSAPHanaDBInstanceProtectedItem.DeserializeAzureVmWorkloadSAPHanaDBInstanceProtectedItem(element); - case "AzureVmWorkloadSAPHanaDatabase": return AzureVmWorkloadSAPHanaDatabaseProtectedItem.DeserializeAzureVmWorkloadSAPHanaDatabaseProtectedItem(element); - case "AzureVmWorkloadSQLDatabase": return AzureVmWorkloadSQLDatabaseProtectedItem.DeserializeAzureVmWorkloadSQLDatabaseProtectedItem(element); + case "AzureFileShareProtectedItem": return FileshareProtectedItem.DeserializeFileshareProtectedItem(element); + case "AzureIaaSVMProtectedItem": return IaasVmProtectedItem.DeserializeIaasVmProtectedItem(element); + case "AzureVmWorkloadProtectedItem": return VmWorkloadProtectedItem.DeserializeVmWorkloadProtectedItem(element); + case "AzureVmWorkloadSAPAseDatabase": return VmWorkloadSapAseDatabaseProtectedItem.DeserializeVmWorkloadSapAseDatabaseProtectedItem(element); + case "AzureVmWorkloadSAPHanaDBInstance": return VmWorkloadSapHanaDBInstanceProtectedItem.DeserializeVmWorkloadSapHanaDBInstanceProtectedItem(element); + case "AzureVmWorkloadSAPHanaDatabase": return VmWorkloadSapHanaDatabaseProtectedItem.DeserializeVmWorkloadSapHanaDatabaseProtectedItem(element); + case "AzureVmWorkloadSQLDatabase": return VmWorkloadSqlDatabaseProtectedItem.DeserializeVmWorkloadSqlDatabaseProtectedItem(element); case "DPMProtectedItem": return DpmProtectedItem.DeserializeDpmProtectedItem(element); case "GenericProtectedItem": return GenericProtectedItem.DeserializeGenericProtectedItem(element); case "MabFileFolderProtectedItem": return MabFileFolderProtectedItem.DeserializeMabFileFolderProtectedItem(element); - case "Microsoft.ClassicCompute/virtualMachines": return AzureIaaSClassicComputeVmProtectedItem.DeserializeAzureIaaSClassicComputeVmProtectedItem(element); - case "Microsoft.Compute/virtualMachines": return AzureIaaSComputeVmProtectedItem.DeserializeAzureIaaSComputeVmProtectedItem(element); - case "Microsoft.Sql/servers/databases": return AzureSqlProtectedItem.DeserializeAzureSqlProtectedItem(element); + case "Microsoft.ClassicCompute/virtualMachines": return IaasClassicComputeVmProtectedItem.DeserializeIaasClassicComputeVmProtectedItem(element); + case "Microsoft.Compute/virtualMachines": return IaasComputeVmProtectedItem.DeserializeIaasComputeVmProtectedItem(element); + case "Microsoft.Sql/servers/databases": return SqlProtectedItem.DeserializeSqlProtectedItem(element); } } return UnknownProtectedItem.DeserializeUnknownProtectedItem(element); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectedItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericProtectedItem.cs similarity index 68% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectedItem.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericProtectedItem.cs index d27984e4cfed4..e56467b07bb6c 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectedItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericProtectedItem.cs @@ -13,28 +13,28 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// /// Base class for backup items. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , , , , , , and . /// - public abstract partial class ProtectedItem + public abstract partial class BackupGenericProtectedItem { - /// Initializes a new instance of ProtectedItem. - protected ProtectedItem() + /// Initializes a new instance of BackupGenericProtectedItem. + protected BackupGenericProtectedItem() { ResourceGuardOperationRequests = new ChangeTrackingList(); } - /// Initializes a new instance of ProtectedItem. + /// Initializes a new instance of BackupGenericProtectedItem. /// backup item type. /// Type of backup management for the backed up item. /// Type of workload this item represents. /// Unique name of container. /// ARM ID of the resource to be backed up. /// ID of the backup policy with which this item is backed up. - /// Timestamp when the last (latest) backup copy was created for this backup item. + /// Timestamp when the last (latest) backup copy was created for this backup item. /// Name of the backup set the backup item belongs to. /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. - /// Time for deferred deletion in UTC. + /// Time for deferred deletion in UTC. /// Flag to identify whether the DS is scheduled for deferred delete. /// Time remaining before the DS marked for deferred delete is permanently deleted. /// Flag to identify whether the deferred deleted DS is to be purged soon. @@ -43,7 +43,7 @@ protected ProtectedItem() /// Flag to identify whether datasource is protected in archive. /// Name of the policy used for protection. /// Soft delete retention period in days. - internal ProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, DataSourceType? workloadType, string containerName, string sourceResourceId, string policyId, DateTimeOffset? lastRecoveryPoint, string backupSetName, CreateMode? createMode, DateTimeOffset? deferredDeleteTimeInUTC, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriod) + internal BackupGenericProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, ResourceIdentifier policyId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriod) { ProtectedItemType = protectedItemType; BackupManagementType = backupManagementType; @@ -51,10 +51,10 @@ internal ProtectedItem(string protectedItemType, BackupManagementType? backupMan ContainerName = containerName; SourceResourceId = sourceResourceId; PolicyId = policyId; - LastRecoveryPoint = lastRecoveryPoint; + LastRecoverOn = lastRecoverOn; BackupSetName = backupSetName; CreateMode = createMode; - DeferredDeleteTimeInUTC = deferredDeleteTimeInUTC; + DeferredDeletedOn = deferredDeletedOn; IsScheduledForDeferredDelete = isScheduledForDeferredDelete; DeferredDeleteTimeRemaining = deferredDeleteTimeRemaining; IsDeferredDeleteScheduleUpcoming = isDeferredDeleteScheduleUpcoming; @@ -70,21 +70,21 @@ internal ProtectedItem(string protectedItemType, BackupManagementType? backupMan /// Type of backup management for the backed up item. public BackupManagementType? BackupManagementType { get; } /// Type of workload this item represents. - public DataSourceType? WorkloadType { get; } + public BackupDataSourceType? WorkloadType { get; } /// Unique name of container. public string ContainerName { get; set; } /// ARM ID of the resource to be backed up. - public string SourceResourceId { get; set; } + public ResourceIdentifier SourceResourceId { get; set; } /// ID of the backup policy with which this item is backed up. - public string PolicyId { get; set; } + public ResourceIdentifier PolicyId { get; set; } /// Timestamp when the last (latest) backup copy was created for this backup item. - public DateTimeOffset? LastRecoveryPoint { get; set; } + public DateTimeOffset? LastRecoverOn { get; set; } /// Name of the backup set the backup item belongs to. public string BackupSetName { get; set; } /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. - public CreateMode? CreateMode { get; set; } + public BackupCreateMode? CreateMode { get; set; } /// Time for deferred deletion in UTC. - public DateTimeOffset? DeferredDeleteTimeInUTC { get; set; } + public DateTimeOffset? DeferredDeletedOn { get; set; } /// Flag to identify whether the DS is scheduled for deferred delete. public bool? IsScheduledForDeferredDelete { get; set; } /// Time remaining before the DS marked for deferred delete is permanently deleted. diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionContainer.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericProtectionContainer.Serialization.cs similarity index 67% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionContainer.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericProtectionContainer.Serialization.cs index b5ec88bd626b3..a4d366a407df8 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionContainer.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericProtectionContainer.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class ProtectionContainer : IUtf8JsonSerializable + public partial class BackupGenericProtectionContainer : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -45,23 +45,23 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static ProtectionContainer DeserializeProtectionContainer(JsonElement element) + internal static BackupGenericProtectionContainer DeserializeBackupGenericProtectionContainer(JsonElement element) { if (element.TryGetProperty("containerType", out JsonElement discriminator)) { switch (discriminator.GetString()) { - case "AzureBackupServerContainer": return AzureBackupServerContainer.DeserializeAzureBackupServerContainer(element); - case "AzureSqlContainer": return AzureSqlContainer.DeserializeAzureSqlContainer(element); - case "AzureWorkloadContainer": return AzureWorkloadContainer.DeserializeAzureWorkloadContainer(element); + case "AzureBackupServerContainer": return BackupServerContainer.DeserializeBackupServerContainer(element); + case "AzureSqlContainer": return SqlContainer.DeserializeSqlContainer(element); + case "AzureWorkloadContainer": return WorkloadContainer.DeserializeWorkloadContainer(element); case "DPMContainer": return DpmContainer.DeserializeDpmContainer(element); case "GenericContainer": return GenericContainer.DeserializeGenericContainer(element); case "IaasVMContainer": return IaasVmContainer.DeserializeIaasVmContainer(element); - case "Microsoft.ClassicCompute/virtualMachines": return AzureIaaSClassicComputeVmContainer.DeserializeAzureIaaSClassicComputeVmContainer(element); - case "Microsoft.Compute/virtualMachines": return AzureIaaSComputeVmContainer.DeserializeAzureIaaSComputeVmContainer(element); - case "SQLAGWorkLoadContainer": return AzureSqlAGWorkloadContainerProtectionContainer.DeserializeAzureSqlAGWorkloadContainerProtectionContainer(element); - case "StorageContainer": return AzureStorageContainer.DeserializeAzureStorageContainer(element); - case "VMAppContainer": return AzureVmAppContainerProtectionContainer.DeserializeAzureVmAppContainerProtectionContainer(element); + case "Microsoft.ClassicCompute/virtualMachines": return IaasClassicComputeVmContainer.DeserializeIaasClassicComputeVmContainer(element); + case "Microsoft.Compute/virtualMachines": return IaasComputeVmContainer.DeserializeIaasComputeVmContainer(element); + case "SQLAGWorkLoadContainer": return SqlAvailabilityGroupWorkloadProtectionContainer.DeserializeSqlAvailabilityGroupWorkloadProtectionContainer(element); + case "StorageContainer": return StorageContainer.DeserializeStorageContainer(element); + case "VMAppContainer": return VmAppContainerProtectionContainer.DeserializeVmAppContainerProtectionContainer(element); case "Windows": return MabContainer.DeserializeMabContainer(element); } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionContainer.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericProtectionContainer.cs similarity index 69% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionContainer.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericProtectionContainer.cs index 5845c2267bf4e..6c81e864e2e2b 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionContainer.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericProtectionContainer.cs @@ -9,17 +9,17 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// /// Base class for container with backup items. Containers with specific workloads are derived from this class. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , , , , , and . /// - public abstract partial class ProtectionContainer + public abstract partial class BackupGenericProtectionContainer { - /// Initializes a new instance of ProtectionContainer. - protected ProtectionContainer() + /// Initializes a new instance of BackupGenericProtectionContainer. + protected BackupGenericProtectionContainer() { } - /// Initializes a new instance of ProtectionContainer. + /// Initializes a new instance of BackupGenericProtectionContainer. /// Friendly name of the container. /// Type of backup management for the container. /// Status of registration of the container with the Recovery Services Vault. @@ -31,7 +31,7 @@ protected ProtectionContainer() /// Backup is VMAppContainer /// /// Type of the protectable object associated with this container. - internal ProtectionContainer(string friendlyName, BackupManagementType? backupManagementType, string registrationStatus, string healthStatus, ProtectableContainerType containerType, string protectableObjectType) + internal BackupGenericProtectionContainer(string friendlyName, BackupManagementType? backupManagementType, string registrationStatus, string healthStatus, ProtectableContainerType containerType, string protectableObjectType) { FriendlyName = friendlyName; BackupManagementType = backupManagementType; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionIntent.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericProtectionIntent.Serialization.cs similarity index 73% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionIntent.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericProtectionIntent.Serialization.cs index 47fdba3d4538b..9ea136e77fef2 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionIntent.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericProtectionIntent.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class ProtectionIntent : IUtf8JsonSerializable + public partial class BackupGenericProtectionIntent : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -45,17 +45,17 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static ProtectionIntent DeserializeProtectionIntent(JsonElement element) + internal static BackupGenericProtectionIntent DeserializeBackupGenericProtectionIntent(JsonElement element) { if (element.TryGetProperty("protectionIntentItemType", out JsonElement discriminator)) { switch (discriminator.GetString()) { - case "AzureResourceItem": return AzureResourceProtectionIntent.DeserializeAzureResourceProtectionIntent(element); - case "AzureWorkloadAutoProtectionIntent": return AzureWorkloadAutoProtectionIntent.DeserializeAzureWorkloadAutoProtectionIntent(element); - case "AzureWorkloadContainerAutoProtectionIntent": return AzureWorkloadContainerAutoProtectionIntent.DeserializeAzureWorkloadContainerAutoProtectionIntent(element); - case "AzureWorkloadSQLAutoProtectionIntent": return AzureWorkloadSQLAutoProtectionIntent.DeserializeAzureWorkloadSQLAutoProtectionIntent(element); - case "RecoveryServiceVaultItem": return AzureRecoveryServiceVaultProtectionIntent.DeserializeAzureRecoveryServiceVaultProtectionIntent(element); + case "AzureResourceItem": return ResourceProtectionIntent.DeserializeResourceProtectionIntent(element); + case "AzureWorkloadAutoProtectionIntent": return WorkloadAutoProtectionIntent.DeserializeWorkloadAutoProtectionIntent(element); + case "AzureWorkloadContainerAutoProtectionIntent": return WorkloadContainerAutoProtectionIntent.DeserializeWorkloadContainerAutoProtectionIntent(element); + case "AzureWorkloadSQLAutoProtectionIntent": return WorkloadSqlAutoProtectionIntent.DeserializeWorkloadSqlAutoProtectionIntent(element); + case "RecoveryServiceVaultItem": return RecoveryServiceVaultProtectionIntent.DeserializeRecoveryServiceVaultProtectionIntent(element); } } return UnknownProtectionIntent.DeserializeUnknownProtectionIntent(element); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionIntent.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericProtectionIntent.cs similarity index 57% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionIntent.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericProtectionIntent.cs index 3c71cb4e922cf..302b9d1924375 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionIntent.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericProtectionIntent.cs @@ -5,28 +5,30 @@ #nullable disable +using Azure.Core; + namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// /// Base class for backup ProtectionIntent. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . /// - public abstract partial class ProtectionIntent + public abstract partial class BackupGenericProtectionIntent { - /// Initializes a new instance of ProtectionIntent. - protected ProtectionIntent() + /// Initializes a new instance of BackupGenericProtectionIntent. + protected BackupGenericProtectionIntent() { } - /// Initializes a new instance of ProtectionIntent. + /// Initializes a new instance of BackupGenericProtectionIntent. /// backup protectionIntent type. /// Type of backup management for the backed up item. /// ARM ID of the resource to be backed up. /// ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId. /// ID of the backup policy with which this item is backed up. /// Backup state of this backup item. - internal ProtectionIntent(ProtectionIntentItemType protectionIntentItemType, BackupManagementType? backupManagementType, string sourceResourceId, string itemId, string policyId, ProtectionStatus? protectionState) + internal BackupGenericProtectionIntent(ProtectionIntentItemType protectionIntentItemType, BackupManagementType? backupManagementType, ResourceIdentifier sourceResourceId, ResourceIdentifier itemId, ResourceIdentifier policyId, BackupProtectionStatus? protectionState) { ProtectionIntentItemType = protectionIntentItemType; BackupManagementType = backupManagementType; @@ -41,12 +43,12 @@ internal ProtectionIntent(ProtectionIntentItemType protectionIntentItemType, Bac /// Type of backup management for the backed up item. public BackupManagementType? BackupManagementType { get; set; } /// ARM ID of the resource to be backed up. - public string SourceResourceId { get; set; } + public ResourceIdentifier SourceResourceId { get; set; } /// ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId. - public string ItemId { get; set; } + public ResourceIdentifier ItemId { get; set; } /// ID of the backup policy with which this item is backed up. - public string PolicyId { get; set; } + public ResourceIdentifier PolicyId { get; set; } /// Backup state of this backup item. - public ProtectionStatus? ProtectionState { get; set; } + public BackupProtectionStatus? ProtectionState { get; set; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionPolicy.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericProtectionPolicy.Serialization.cs similarity index 72% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionPolicy.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericProtectionPolicy.Serialization.cs index c5d579783fd7a..b80460669f23b 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionPolicy.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericProtectionPolicy.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class ProtectionPolicy : IUtf8JsonSerializable + public partial class BackupGenericProtectionPolicy : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -35,16 +35,16 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static ProtectionPolicy DeserializeProtectionPolicy(JsonElement element) + internal static BackupGenericProtectionPolicy DeserializeBackupGenericProtectionPolicy(JsonElement element) { if (element.TryGetProperty("backupManagementType", out JsonElement discriminator)) { switch (discriminator.GetString()) { - case "AzureIaasVM": return AzureIaasVmProtectionPolicy.DeserializeAzureIaasVmProtectionPolicy(element); - case "AzureSql": return AzureSqlProtectionPolicy.DeserializeAzureSqlProtectionPolicy(element); - case "AzureStorage": return AzureFileShareProtectionPolicy.DeserializeAzureFileShareProtectionPolicy(element); - case "AzureWorkload": return AzureVmWorkloadProtectionPolicy.DeserializeAzureVmWorkloadProtectionPolicy(element); + case "AzureIaasVM": return IaasVmProtectionPolicy.DeserializeIaasVmProtectionPolicy(element); + case "AzureSql": return SqlProtectionPolicy.DeserializeSqlProtectionPolicy(element); + case "AzureStorage": return FileShareProtectionPolicy.DeserializeFileShareProtectionPolicy(element); + case "AzureWorkload": return VmWorkloadProtectionPolicy.DeserializeVmWorkloadProtectionPolicy(element); case "GenericProtectionPolicy": return GenericProtectionPolicy.DeserializeGenericProtectionPolicy(element); case "MAB": return MabProtectionPolicy.DeserializeMabProtectionPolicy(element); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionPolicy.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericProtectionPolicy.cs similarity index 61% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionPolicy.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericProtectionPolicy.cs index 293624735ed7d..337070677d908 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionPolicy.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericProtectionPolicy.cs @@ -12,22 +12,22 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// /// Base class for backup policy. Workload-specific backup policies are derived from this class. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , and . /// - public abstract partial class ProtectionPolicy + public abstract partial class BackupGenericProtectionPolicy { - /// Initializes a new instance of ProtectionPolicy. - protected ProtectionPolicy() + /// Initializes a new instance of BackupGenericProtectionPolicy. + protected BackupGenericProtectionPolicy() { ResourceGuardOperationRequests = new ChangeTrackingList(); } - /// Initializes a new instance of ProtectionPolicy. + /// Initializes a new instance of BackupGenericProtectionPolicy. /// Number of items associated with this policy. /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. /// ResourceGuard Operation Requests. - internal ProtectionPolicy(int? protectedItemsCount, string backupManagementType, IList resourceGuardOperationRequests) + internal BackupGenericProtectionPolicy(int? protectedItemsCount, string backupManagementType, IList resourceGuardOperationRequests) { ProtectedItemsCount = protectedItemsCount; BackupManagementType = backupManagementType; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPoint.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericRecoveryPoint.Serialization.cs similarity index 59% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPoint.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericRecoveryPoint.Serialization.cs index c4c9436fc3093..705317322190c 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPoint.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericRecoveryPoint.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class RecoveryPoint : IUtf8JsonSerializable + public partial class BackupGenericRecoveryPoint : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -20,19 +20,19 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static RecoveryPoint DeserializeRecoveryPoint(JsonElement element) + internal static BackupGenericRecoveryPoint DeserializeBackupGenericRecoveryPoint(JsonElement element) { if (element.TryGetProperty("objectType", out JsonElement discriminator)) { switch (discriminator.GetString()) { - case "AzureFileShareRecoveryPoint": return AzureFileShareRecoveryPoint.DeserializeAzureFileShareRecoveryPoint(element); - case "AzureWorkloadPointInTimeRecoveryPoint": return AzureWorkloadPointInTimeRecoveryPoint.DeserializeAzureWorkloadPointInTimeRecoveryPoint(element); - case "AzureWorkloadRecoveryPoint": return AzureWorkloadRecoveryPoint.DeserializeAzureWorkloadRecoveryPoint(element); - case "AzureWorkloadSAPHanaPointInTimeRecoveryPoint": return AzureWorkloadSAPHanaPointInTimeRecoveryPoint.DeserializeAzureWorkloadSAPHanaPointInTimeRecoveryPoint(element); - case "AzureWorkloadSAPHanaRecoveryPoint": return AzureWorkloadSAPHanaRecoveryPoint.DeserializeAzureWorkloadSAPHanaRecoveryPoint(element); - case "AzureWorkloadSQLPointInTimeRecoveryPoint": return AzureWorkloadSQLPointInTimeRecoveryPoint.DeserializeAzureWorkloadSQLPointInTimeRecoveryPoint(element); - case "AzureWorkloadSQLRecoveryPoint": return AzureWorkloadSQLRecoveryPoint.DeserializeAzureWorkloadSQLRecoveryPoint(element); + case "AzureFileShareRecoveryPoint": return FileShareRecoveryPoint.DeserializeFileShareRecoveryPoint(element); + case "AzureWorkloadPointInTimeRecoveryPoint": return WorkloadPointInTimeRecoveryPoint.DeserializeWorkloadPointInTimeRecoveryPoint(element); + case "AzureWorkloadRecoveryPoint": return WorkloadRecoveryPoint.DeserializeWorkloadRecoveryPoint(element); + case "AzureWorkloadSAPHanaPointInTimeRecoveryPoint": return WorkloadSapHanaPointInTimeRecoveryPoint.DeserializeWorkloadSapHanaPointInTimeRecoveryPoint(element); + case "AzureWorkloadSAPHanaRecoveryPoint": return WorkloadSapHanaRecoveryPoint.DeserializeWorkloadSapHanaRecoveryPoint(element); + case "AzureWorkloadSQLPointInTimeRecoveryPoint": return WorkloadSqlPointInTimeRecoveryPoint.DeserializeWorkloadSqlPointInTimeRecoveryPoint(element); + case "AzureWorkloadSQLRecoveryPoint": return WorkloadSqlRecoveryPoint.DeserializeWorkloadSqlRecoveryPoint(element); case "GenericRecoveryPoint": return GenericRecoveryPoint.DeserializeGenericRecoveryPoint(element); case "IaasVMRecoveryPoint": return IaasVmRecoveryPoint.DeserializeIaasVmRecoveryPoint(element); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericRecoveryPoint.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericRecoveryPoint.cs new file mode 100644 index 0000000000000..c80ce70dc4323 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericRecoveryPoint.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.RecoveryServicesBackup.Models +{ + /// + /// Base class for backup copies. Workload-specific backup copies are derived from this class. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , , and . + /// + public abstract partial class BackupGenericRecoveryPoint + { + /// Initializes a new instance of BackupGenericRecoveryPoint. + protected BackupGenericRecoveryPoint() + { + } + + /// Initializes a new instance of BackupGenericRecoveryPoint. + /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. + internal BackupGenericRecoveryPoint(string objectType) + { + ObjectType = objectType; + } + + /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. + internal string ObjectType { get; set; } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureBackupGoalFeatureSupportRequest.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGoalFeatureSupportContent.Serialization.cs similarity index 85% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureBackupGoalFeatureSupportRequest.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGoalFeatureSupportContent.Serialization.cs index c2052e279fbf9..4fffb39c619e7 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureBackupGoalFeatureSupportRequest.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGoalFeatureSupportContent.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureBackupGoalFeatureSupportRequest : IUtf8JsonSerializable + public partial class BackupGoalFeatureSupportContent : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureBackupGoalFeatureSupportRequest.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGoalFeatureSupportContent.cs similarity index 59% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureBackupGoalFeatureSupportRequest.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGoalFeatureSupportContent.cs index bc8b8b3b4316b..b504d141da4f8 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureBackupGoalFeatureSupportRequest.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGoalFeatureSupportContent.cs @@ -8,10 +8,10 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Azure backup goal feature specific request. - public partial class AzureBackupGoalFeatureSupportRequest : FeatureSupportContent + public partial class BackupGoalFeatureSupportContent : FeatureSupportContent { - /// Initializes a new instance of AzureBackupGoalFeatureSupportRequest. - public AzureBackupGoalFeatureSupportRequest() + /// Initializes a new instance of BackupGoalFeatureSupportContent. + public BackupGoalFeatureSupportContent() { FeatureType = "AzureBackupGoals"; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/HourlySchedule.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupHourlySchedule.Serialization.cs similarity index 88% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/HourlySchedule.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupHourlySchedule.Serialization.cs index 13f6309c6d2b4..023a3f8c93ac4 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/HourlySchedule.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupHourlySchedule.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class HourlySchedule : IUtf8JsonSerializable + public partial class BackupHourlySchedule : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -34,7 +34,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static HourlySchedule DeserializeHourlySchedule(JsonElement element) + internal static BackupHourlySchedule DeserializeBackupHourlySchedule(JsonElement element) { Optional interval = default; Optional scheduleWindowStartTime = default; @@ -72,7 +72,7 @@ internal static HourlySchedule DeserializeHourlySchedule(JsonElement element) continue; } } - return new HourlySchedule(Optional.ToNullable(interval), Optional.ToNullable(scheduleWindowStartTime), Optional.ToNullable(scheduleWindowDuration)); + return new BackupHourlySchedule(Optional.ToNullable(interval), Optional.ToNullable(scheduleWindowStartTime), Optional.ToNullable(scheduleWindowDuration)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/HourlySchedule.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupHourlySchedule.cs similarity index 74% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/HourlySchedule.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupHourlySchedule.cs index e7040ab06904d..add0ddfb78220 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/HourlySchedule.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupHourlySchedule.cs @@ -9,22 +9,22 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - /// The HourlySchedule. - public partial class HourlySchedule + /// The BackupHourlySchedule. + public partial class BackupHourlySchedule { - /// Initializes a new instance of HourlySchedule. - public HourlySchedule() + /// Initializes a new instance of BackupHourlySchedule. + public BackupHourlySchedule() { } - /// Initializes a new instance of HourlySchedule. + /// Initializes a new instance of BackupHourlySchedule. /// /// Interval at which backup needs to be triggered. For hourly the value /// can be 4/6/8/12 /// /// To specify start time of the backup window. /// To specify duration of the backup window. - internal HourlySchedule(int? interval, DateTimeOffset? scheduleWindowStartOn, int? scheduleWindowDuration) + internal BackupHourlySchedule(int? interval, DateTimeOffset? scheduleWindowStartOn, int? scheduleWindowDuration) { Interval = interval; ScheduleWindowStartOn = scheduleWindowStartOn; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IdentityInfo.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupIdentityInfo.Serialization.cs similarity index 70% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IdentityInfo.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupIdentityInfo.Serialization.cs index 4e383f56e7c2e..e00ba5fbb0130 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IdentityInfo.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupIdentityInfo.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class IdentityInfo : IUtf8JsonSerializable + public partial class BackupIdentityInfo : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -28,10 +28,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static IdentityInfo DeserializeIdentityInfo(JsonElement element) + internal static BackupIdentityInfo DeserializeBackupIdentityInfo(JsonElement element) { Optional isSystemAssignedIdentity = default; - Optional managedIdentityResourceId = default; + Optional managedIdentityResourceId = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("isSystemAssignedIdentity"u8)) @@ -46,11 +46,16 @@ internal static IdentityInfo DeserializeIdentityInfo(JsonElement element) } if (property.NameEquals("managedIdentityResourceId"u8)) { - managedIdentityResourceId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + managedIdentityResourceId = new ResourceIdentifier(property.Value.GetString()); continue; } } - return new IdentityInfo(Optional.ToNullable(isSystemAssignedIdentity), managedIdentityResourceId.Value); + return new BackupIdentityInfo(Optional.ToNullable(isSystemAssignedIdentity), managedIdentityResourceId.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IdentityInfo.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupIdentityInfo.cs similarity index 72% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IdentityInfo.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupIdentityInfo.cs index e2ba6947ff83d..7bd867ba20299 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IdentityInfo.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupIdentityInfo.cs @@ -5,23 +5,25 @@ #nullable disable +using Azure.Core; + namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Encapsulates Managed Identity related information. - public partial class IdentityInfo + public partial class BackupIdentityInfo { - /// Initializes a new instance of IdentityInfo. - public IdentityInfo() + /// Initializes a new instance of BackupIdentityInfo. + public BackupIdentityInfo() { } - /// Initializes a new instance of IdentityInfo. + /// Initializes a new instance of BackupIdentityInfo. /// To differentiate if the managed identity is system assigned or user assigned. /// /// Managed Identity Resource Id /// Optional: Might not be required in the case of system assigned managed identity /// - internal IdentityInfo(bool? isSystemAssignedIdentity, string managedIdentityResourceId) + internal BackupIdentityInfo(bool? isSystemAssignedIdentity, ResourceIdentifier managedIdentityResourceId) { IsSystemAssignedIdentity = isSystemAssignedIdentity; ManagedIdentityResourceId = managedIdentityResourceId; @@ -33,6 +35,6 @@ internal IdentityInfo(bool? isSystemAssignedIdentity, string managedIdentityReso /// Managed Identity Resource Id /// Optional: Might not be required in the case of system assigned managed identity /// - public string ManagedIdentityResourceId { get; set; } + public ResourceIdentifier ManagedIdentityResourceId { get; set; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupItemType.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupItemType.cs index 1060b2f31471f..d4b0238088c15 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupItemType.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupItemType.cs @@ -25,7 +25,7 @@ public BackupItemType(string value) private const string InvalidValue = "Invalid"; private const string VmValue = "VM"; private const string FileFolderValue = "FileFolder"; - private const string AzureSqlDbValue = "AzureSqlDb"; + private const string AzureSqlDBValue = "AzureSqlDb"; private const string SqlDBValue = "SQLDB"; private const string ExchangeValue = "Exchange"; private const string SharepointValue = "Sharepoint"; @@ -33,11 +33,11 @@ public BackupItemType(string value) private const string SystemStateValue = "SystemState"; private const string ClientValue = "Client"; private const string GenericDataSourceValue = "GenericDataSource"; - private const string SQLDataBaseValue = "SQLDataBase"; + private const string SqlDatabaseValue = "SQLDataBase"; private const string AzureFileShareValue = "AzureFileShare"; - private const string SAPHanaDatabaseValue = "SAPHanaDatabase"; - private const string SAPAseDatabaseValue = "SAPAseDatabase"; - private const string SAPHanaDBInstanceValue = "SAPHanaDBInstance"; + private const string SapHanaDatabaseValue = "SAPHanaDatabase"; + private const string SapAseDatabaseValue = "SAPAseDatabase"; + private const string SapHanaDBInstanceValue = "SAPHanaDBInstance"; /// Invalid. public static BackupItemType Invalid { get; } = new BackupItemType(InvalidValue); @@ -46,7 +46,7 @@ public BackupItemType(string value) /// FileFolder. public static BackupItemType FileFolder { get; } = new BackupItemType(FileFolderValue); /// AzureSqlDb. - public static BackupItemType AzureSqlDb { get; } = new BackupItemType(AzureSqlDbValue); + public static BackupItemType AzureSqlDB { get; } = new BackupItemType(AzureSqlDBValue); /// SQLDB. public static BackupItemType SqlDB { get; } = new BackupItemType(SqlDBValue); /// Exchange. @@ -62,15 +62,15 @@ public BackupItemType(string value) /// GenericDataSource. public static BackupItemType GenericDataSource { get; } = new BackupItemType(GenericDataSourceValue); /// SQLDataBase. - public static BackupItemType SQLDataBase { get; } = new BackupItemType(SQLDataBaseValue); + public static BackupItemType SqlDatabase { get; } = new BackupItemType(SqlDatabaseValue); /// AzureFileShare. public static BackupItemType AzureFileShare { get; } = new BackupItemType(AzureFileShareValue); /// SAPHanaDatabase. - public static BackupItemType SAPHanaDatabase { get; } = new BackupItemType(SAPHanaDatabaseValue); + public static BackupItemType SapHanaDatabase { get; } = new BackupItemType(SapHanaDatabaseValue); /// SAPAseDatabase. - public static BackupItemType SAPAseDatabase { get; } = new BackupItemType(SAPAseDatabaseValue); + public static BackupItemType SapAseDatabase { get; } = new BackupItemType(SapAseDatabaseValue); /// SAPHanaDBInstance. - public static BackupItemType SAPHanaDBInstance { get; } = new BackupItemType(SAPHanaDBInstanceValue); + public static BackupItemType SapHanaDBInstance { get; } = new BackupItemType(SapHanaDBInstanceValue); /// Determines if two values are the same. public static bool operator ==(BackupItemType left, BackupItemType right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/JobResourceData.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupJobData.Serialization.cs similarity index 90% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/JobResourceData.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupJobData.Serialization.cs index 04dd62e5ec634..9d99b4ea85e0b 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/JobResourceData.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupJobData.Serialization.cs @@ -14,7 +14,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup { - public partial class JobResourceData : IUtf8JsonSerializable + public partial class BackupJobData : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -45,9 +45,9 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static JobResourceData DeserializeJobResourceData(JsonElement element) + internal static BackupJobData DeserializeBackupJobData(JsonElement element) { - Optional properties = default; + Optional properties = default; Optional eTag = default; Optional> tags = default; AzureLocation location = default; @@ -64,7 +64,7 @@ internal static JobResourceData DeserializeJobResourceData(JsonElement element) property.ThrowNonNullablePropertyIsNull(); continue; } - properties = Job.DeserializeJob(property.Value); + properties = BackupGenericJob.DeserializeBackupGenericJob(property.Value); continue; } if (property.NameEquals("eTag"u8)) @@ -123,7 +123,7 @@ internal static JobResourceData DeserializeJobResourceData(JsonElement element) continue; } } - return new JobResourceData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, properties.Value, Optional.ToNullable(eTag)); + return new BackupJobData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, properties.Value, Optional.ToNullable(eTag)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/JobResourceList.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupJobListResult.Serialization.cs similarity index 72% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/JobResourceList.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupJobListResult.Serialization.cs index fbd5768e7fef1..16bc2b7b3b5bf 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/JobResourceList.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupJobListResult.Serialization.cs @@ -12,11 +12,11 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - internal partial class JobResourceList + internal partial class BackupJobListResult { - internal static JobResourceList DeserializeJobResourceList(JsonElement element) + internal static BackupJobListResult DeserializeBackupJobListResult(JsonElement element) { - Optional> value = default; + Optional> value = default; Optional nextLink = default; foreach (var property in element.EnumerateObject()) { @@ -27,10 +27,10 @@ internal static JobResourceList DeserializeJobResourceList(JsonElement element) property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(JobResourceData.DeserializeJobResourceData(item)); + array.Add(BackupJobData.DeserializeBackupJobData(item)); } value = array; continue; @@ -41,7 +41,7 @@ internal static JobResourceList DeserializeJobResourceList(JsonElement element) continue; } } - return new JobResourceList(Optional.ToList(value), nextLink.Value); + return new BackupJobListResult(Optional.ToList(value), nextLink.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/JobResourceList.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupJobListResult.cs similarity index 63% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/JobResourceList.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupJobListResult.cs index 2a513c4c4fc4f..4770fd1501a2b 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/JobResourceList.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupJobListResult.cs @@ -12,25 +12,25 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// List of Job resources. - internal partial class JobResourceList + internal partial class BackupJobListResult { - /// Initializes a new instance of JobResourceList. - internal JobResourceList() + /// Initializes a new instance of BackupJobListResult. + internal BackupJobListResult() { - Value = new ChangeTrackingList(); + Value = new ChangeTrackingList(); } - /// Initializes a new instance of JobResourceList. + /// Initializes a new instance of BackupJobListResult. /// List of resources. /// The uri to fetch the next page of resources. - internal JobResourceList(IReadOnlyList value, string nextLink) + internal BackupJobListResult(IReadOnlyList value, string nextLink) { Value = value; NextLink = nextLink; } /// List of resources. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } /// The uri to fetch the next page of resources. public string NextLink { get; } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupManagementUsage.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupManagementUsage.Serialization.cs index 716078f476672..2c6a41f0a12ab 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupManagementUsage.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupManagementUsage.Serialization.cs @@ -15,12 +15,12 @@ public partial class BackupManagementUsage { internal static BackupManagementUsage DeserializeBackupManagementUsage(JsonElement element) { - Optional unit = default; + Optional unit = default; Optional quotaPeriod = default; Optional nextResetTime = default; Optional currentValue = default; Optional limit = default; - Optional name = default; + Optional name = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("unit"u8)) @@ -30,7 +30,7 @@ internal static BackupManagementUsage DeserializeBackupManagementUsage(JsonEleme property.ThrowNonNullablePropertyIsNull(); continue; } - unit = new UsagesUnit(property.Value.GetString()); + unit = new BackupUsagesUnit(property.Value.GetString()); continue; } if (property.NameEquals("quotaPeriod"u8)) @@ -75,7 +75,7 @@ internal static BackupManagementUsage DeserializeBackupManagementUsage(JsonEleme property.ThrowNonNullablePropertyIsNull(); continue; } - name = NameInfo.DeserializeNameInfo(property.Value); + name = BackupNameInfo.DeserializeBackupNameInfo(property.Value); continue; } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupManagementUsage.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupManagementUsage.cs index 26db768fa5e93..e981854fce2ee 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupManagementUsage.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupManagementUsage.cs @@ -24,7 +24,7 @@ internal BackupManagementUsage() /// Current value of usage. /// Limit of usage. /// Name of usage. - internal BackupManagementUsage(UsagesUnit? unit, string quotaPeriod, DateTimeOffset? nextResetOn, long? currentValue, long? limit, NameInfo name) + internal BackupManagementUsage(BackupUsagesUnit? unit, string quotaPeriod, DateTimeOffset? nextResetOn, long? currentValue, long? limit, BackupNameInfo name) { Unit = unit; QuotaPeriod = quotaPeriod; @@ -35,7 +35,7 @@ internal BackupManagementUsage(UsagesUnit? unit, string quotaPeriod, DateTimeOff } /// Unit of the usage. - public UsagesUnit? Unit { get; } + public BackupUsagesUnit? Unit { get; } /// Quota period of usage. public string QuotaPeriod { get; } /// Next reset time of usage. @@ -45,6 +45,6 @@ internal BackupManagementUsage(UsagesUnit? unit, string quotaPeriod, DateTimeOff /// Limit of usage. public long? Limit { get; } /// Name of usage. - public NameInfo Name { get; } + public BackupNameInfo Name { get; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupMonthOfYear.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupMonthOfYear.Serialization.cs new file mode 100644 index 0000000000000..c1fdfc28e2488 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupMonthOfYear.Serialization.cs @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Models +{ + internal static partial class BackupMonthOfYearExtensions + { + public static string ToSerialString(this BackupMonthOfYear value) => value switch + { + BackupMonthOfYear.Invalid => "Invalid", + BackupMonthOfYear.January => "January", + BackupMonthOfYear.February => "February", + BackupMonthOfYear.March => "March", + BackupMonthOfYear.April => "April", + BackupMonthOfYear.May => "May", + BackupMonthOfYear.June => "June", + BackupMonthOfYear.July => "July", + BackupMonthOfYear.August => "August", + BackupMonthOfYear.September => "September", + BackupMonthOfYear.October => "October", + BackupMonthOfYear.November => "November", + BackupMonthOfYear.December => "December", + _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown BackupMonthOfYear value.") + }; + + public static BackupMonthOfYear ToBackupMonthOfYear(this string value) + { + if (string.Equals(value, "Invalid", StringComparison.InvariantCultureIgnoreCase)) return BackupMonthOfYear.Invalid; + if (string.Equals(value, "January", StringComparison.InvariantCultureIgnoreCase)) return BackupMonthOfYear.January; + if (string.Equals(value, "February", StringComparison.InvariantCultureIgnoreCase)) return BackupMonthOfYear.February; + if (string.Equals(value, "March", StringComparison.InvariantCultureIgnoreCase)) return BackupMonthOfYear.March; + if (string.Equals(value, "April", StringComparison.InvariantCultureIgnoreCase)) return BackupMonthOfYear.April; + if (string.Equals(value, "May", StringComparison.InvariantCultureIgnoreCase)) return BackupMonthOfYear.May; + if (string.Equals(value, "June", StringComparison.InvariantCultureIgnoreCase)) return BackupMonthOfYear.June; + if (string.Equals(value, "July", StringComparison.InvariantCultureIgnoreCase)) return BackupMonthOfYear.July; + if (string.Equals(value, "August", StringComparison.InvariantCultureIgnoreCase)) return BackupMonthOfYear.August; + if (string.Equals(value, "September", StringComparison.InvariantCultureIgnoreCase)) return BackupMonthOfYear.September; + if (string.Equals(value, "October", StringComparison.InvariantCultureIgnoreCase)) return BackupMonthOfYear.October; + if (string.Equals(value, "November", StringComparison.InvariantCultureIgnoreCase)) return BackupMonthOfYear.November; + if (string.Equals(value, "December", StringComparison.InvariantCultureIgnoreCase)) return BackupMonthOfYear.December; + throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown BackupMonthOfYear value."); + } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MonthOfYear.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupMonthOfYear.cs similarity index 91% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MonthOfYear.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupMonthOfYear.cs index 5ad0461687674..1130afaf72807 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MonthOfYear.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupMonthOfYear.cs @@ -7,8 +7,8 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - /// The MonthOfYear. - public enum MonthOfYear + /// The BackupMonthOfYear. + public enum BackupMonthOfYear { /// Invalid. Invalid, diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/NameInfo.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupNameInfo.Serialization.cs similarity index 80% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/NameInfo.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupNameInfo.Serialization.cs index eb0c8f467dcb4..2e761a7644bf9 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/NameInfo.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupNameInfo.Serialization.cs @@ -10,9 +10,9 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class NameInfo + public partial class BackupNameInfo { - internal static NameInfo DeserializeNameInfo(JsonElement element) + internal static BackupNameInfo DeserializeBackupNameInfo(JsonElement element) { Optional value = default; Optional localizedValue = default; @@ -29,7 +29,7 @@ internal static NameInfo DeserializeNameInfo(JsonElement element) continue; } } - return new NameInfo(value.Value, localizedValue.Value); + return new BackupNameInfo(value.Value, localizedValue.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/NameInfo.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupNameInfo.cs similarity index 70% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/NameInfo.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupNameInfo.cs index 167e7c813b1fb..739e88d22946c 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/NameInfo.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupNameInfo.cs @@ -8,17 +8,17 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// The name of usage. - public partial class NameInfo + public partial class BackupNameInfo { - /// Initializes a new instance of NameInfo. - internal NameInfo() + /// Initializes a new instance of BackupNameInfo. + internal BackupNameInfo() { } - /// Initializes a new instance of NameInfo. + /// Initializes a new instance of BackupNameInfo. /// Value of usage. /// Localized value of usage. - internal NameInfo(string value, string localizedValue) + internal BackupNameInfo(string value, string localizedValue) { Value = value; LocalizedValue = localizedValue; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceVaultConfigResourceData.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupPrivateEndpointConnectionData.Serialization.cs similarity index 87% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceVaultConfigResourceData.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupPrivateEndpointConnectionData.Serialization.cs index 234362cb0b998..0eaf834427e5f 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceVaultConfigResourceData.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupPrivateEndpointConnectionData.Serialization.cs @@ -14,7 +14,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup { - public partial class BackupResourceVaultConfigResourceData : IUtf8JsonSerializable + public partial class BackupPrivateEndpointConnectionData : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -45,9 +45,9 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static BackupResourceVaultConfigResourceData DeserializeBackupResourceVaultConfigResourceData(JsonElement element) + internal static BackupPrivateEndpointConnectionData DeserializeBackupPrivateEndpointConnectionData(JsonElement element) { - Optional properties = default; + Optional properties = default; Optional eTag = default; Optional> tags = default; AzureLocation location = default; @@ -64,7 +64,7 @@ internal static BackupResourceVaultConfigResourceData DeserializeBackupResourceV property.ThrowNonNullablePropertyIsNull(); continue; } - properties = BackupResourceVaultConfig.DeserializeBackupResourceVaultConfig(property.Value); + properties = BackupPrivateEndpointConnectionProperties.DeserializeBackupPrivateEndpointConnectionProperties(property.Value); continue; } if (property.NameEquals("eTag"u8)) @@ -123,7 +123,7 @@ internal static BackupResourceVaultConfigResourceData DeserializeBackupResourceV continue; } } - return new BackupResourceVaultConfigResourceData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, properties.Value, Optional.ToNullable(eTag)); + return new BackupPrivateEndpointConnectionData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, properties.Value, Optional.ToNullable(eTag)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryServicesBackupPrivateEndpointConnection.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupPrivateEndpointConnectionProperties.Serialization.cs similarity index 82% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryServicesBackupPrivateEndpointConnection.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupPrivateEndpointConnectionProperties.Serialization.cs index 8c1252bba9622..1196fbd71a763 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryServicesBackupPrivateEndpointConnection.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupPrivateEndpointConnectionProperties.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class RecoveryServicesBackupPrivateEndpointConnection : IUtf8JsonSerializable + public partial class BackupPrivateEndpointConnectionProperties : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -34,9 +34,9 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static RecoveryServicesBackupPrivateEndpointConnection DeserializeRecoveryServicesBackupPrivateEndpointConnection(JsonElement element) + internal static BackupPrivateEndpointConnectionProperties DeserializeBackupPrivateEndpointConnectionProperties(JsonElement element) { - Optional provisioningState = default; + Optional provisioningState = default; Optional privateEndpoint = default; Optional privateLinkServiceConnectionState = default; foreach (var property in element.EnumerateObject()) @@ -48,7 +48,7 @@ internal static RecoveryServicesBackupPrivateEndpointConnection DeserializeRecov property.ThrowNonNullablePropertyIsNull(); continue; } - provisioningState = new ProvisioningState(property.Value.GetString()); + provisioningState = new BackupPrivateEndpointConnectionProvisioningState(property.Value.GetString()); continue; } if (property.NameEquals("privateEndpoint"u8)) @@ -72,7 +72,7 @@ internal static RecoveryServicesBackupPrivateEndpointConnection DeserializeRecov continue; } } - return new RecoveryServicesBackupPrivateEndpointConnection(Optional.ToNullable(provisioningState), privateEndpoint, privateLinkServiceConnectionState.Value); + return new BackupPrivateEndpointConnectionProperties(Optional.ToNullable(provisioningState), privateEndpoint, privateLinkServiceConnectionState.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryServicesBackupPrivateEndpointConnection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupPrivateEndpointConnectionProperties.cs similarity index 72% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryServicesBackupPrivateEndpointConnection.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupPrivateEndpointConnectionProperties.cs index 356b2990f7d4c..efff7ee40e2f8 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryServicesBackupPrivateEndpointConnection.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupPrivateEndpointConnectionProperties.cs @@ -11,18 +11,18 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Private Endpoint Connection Response Properties. - public partial class RecoveryServicesBackupPrivateEndpointConnection + public partial class BackupPrivateEndpointConnectionProperties { - /// Initializes a new instance of RecoveryServicesBackupPrivateEndpointConnection. - public RecoveryServicesBackupPrivateEndpointConnection() + /// Initializes a new instance of BackupPrivateEndpointConnectionProperties. + public BackupPrivateEndpointConnectionProperties() { } - /// Initializes a new instance of RecoveryServicesBackupPrivateEndpointConnection. + /// Initializes a new instance of BackupPrivateEndpointConnectionProperties. /// Gets or sets provisioning state of the private endpoint connection. /// Gets or sets private endpoint associated with the private endpoint connection. /// Gets or sets private link service connection state. - internal RecoveryServicesBackupPrivateEndpointConnection(ProvisioningState? provisioningState, WritableSubResource privateEndpoint, RecoveryServicesBackupPrivateLinkServiceConnectionState privateLinkServiceConnectionState) + internal BackupPrivateEndpointConnectionProperties(BackupPrivateEndpointConnectionProvisioningState? provisioningState, WritableSubResource privateEndpoint, RecoveryServicesBackupPrivateLinkServiceConnectionState privateLinkServiceConnectionState) { ProvisioningState = provisioningState; PrivateEndpoint = privateEndpoint; @@ -30,7 +30,7 @@ internal RecoveryServicesBackupPrivateEndpointConnection(ProvisioningState? prov } /// Gets or sets provisioning state of the private endpoint connection. - public ProvisioningState? ProvisioningState { get; set; } + public BackupPrivateEndpointConnectionProvisioningState? ProvisioningState { get; set; } /// Gets or sets private endpoint associated with the private endpoint connection. internal WritableSubResource PrivateEndpoint { get; set; } /// Gets or sets Id. diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupPrivateEndpointConnectionProvisioningState.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupPrivateEndpointConnectionProvisioningState.cs new file mode 100644 index 0000000000000..9e02e7edb0f3c --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupPrivateEndpointConnectionProvisioningState.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Models +{ + /// Gets or sets provisioning state of the private endpoint connection. + public readonly partial struct BackupPrivateEndpointConnectionProvisioningState : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public BackupPrivateEndpointConnectionProvisioningState(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string SucceededValue = "Succeeded"; + private const string DeletingValue = "Deleting"; + private const string FailedValue = "Failed"; + private const string PendingValue = "Pending"; + + /// Succeeded. + public static BackupPrivateEndpointConnectionProvisioningState Succeeded { get; } = new BackupPrivateEndpointConnectionProvisioningState(SucceededValue); + /// Deleting. + public static BackupPrivateEndpointConnectionProvisioningState Deleting { get; } = new BackupPrivateEndpointConnectionProvisioningState(DeletingValue); + /// Failed. + public static BackupPrivateEndpointConnectionProvisioningState Failed { get; } = new BackupPrivateEndpointConnectionProvisioningState(FailedValue); + /// Pending. + public static BackupPrivateEndpointConnectionProvisioningState Pending { get; } = new BackupPrivateEndpointConnectionProvisioningState(PendingValue); + /// Determines if two values are the same. + public static bool operator ==(BackupPrivateEndpointConnectionProvisioningState left, BackupPrivateEndpointConnectionProvisioningState right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(BackupPrivateEndpointConnectionProvisioningState left, BackupPrivateEndpointConnectionProvisioningState right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator BackupPrivateEndpointConnectionProvisioningState(string value) => new BackupPrivateEndpointConnectionProvisioningState(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is BackupPrivateEndpointConnectionProvisioningState other && Equals(other); + /// + public bool Equals(BackupPrivateEndpointConnectionProvisioningState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionIntentResourceData.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupProtectedItemData.Serialization.cs similarity index 89% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionIntentResourceData.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupProtectedItemData.Serialization.cs index 90bf01081202e..bd3bf6a4c9588 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionIntentResourceData.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupProtectedItemData.Serialization.cs @@ -14,7 +14,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup { - public partial class ProtectionIntentResourceData : IUtf8JsonSerializable + public partial class BackupProtectedItemData : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -45,9 +45,9 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static ProtectionIntentResourceData DeserializeProtectionIntentResourceData(JsonElement element) + internal static BackupProtectedItemData DeserializeBackupProtectedItemData(JsonElement element) { - Optional properties = default; + Optional properties = default; Optional eTag = default; Optional> tags = default; AzureLocation location = default; @@ -64,7 +64,7 @@ internal static ProtectionIntentResourceData DeserializeProtectionIntentResource property.ThrowNonNullablePropertyIsNull(); continue; } - properties = ProtectionIntent.DeserializeProtectionIntent(property.Value); + properties = BackupGenericProtectedItem.DeserializeBackupGenericProtectedItem(property.Value); continue; } if (property.NameEquals("eTag"u8)) @@ -123,7 +123,7 @@ internal static ProtectionIntentResourceData DeserializeProtectionIntentResource continue; } } - return new ProtectionIntentResourceData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, properties.Value, Optional.ToNullable(eTag)); + return new BackupProtectedItemData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, properties.Value, Optional.ToNullable(eTag)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupProtectionContainerData.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupProtectionContainerData.Serialization.cs new file mode 100644 index 0000000000000..620b26df78a83 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupProtectionContainerData.Serialization.cs @@ -0,0 +1,129 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.Core; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.RecoveryServicesBackup.Models; + +namespace Azure.ResourceManager.RecoveryServicesBackup +{ + public partial class BackupProtectionContainerData : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Properties)) + { + writer.WritePropertyName("properties"u8); + writer.WriteObjectValue(Properties); + } + if (Optional.IsDefined(ETag)) + { + writer.WritePropertyName("eTag"u8); + writer.WriteStringValue(ETag.Value.ToString()); + } + if (Optional.IsCollectionDefined(Tags)) + { + writer.WritePropertyName("tags"u8); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + writer.WritePropertyName("location"u8); + writer.WriteStringValue(Location); + writer.WriteEndObject(); + } + + internal static BackupProtectionContainerData DeserializeBackupProtectionContainerData(JsonElement element) + { + Optional properties = default; + Optional eTag = default; + Optional> tags = default; + AzureLocation location = default; + ResourceIdentifier id = default; + string name = default; + ResourceType type = default; + Optional systemData = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + properties = BackupGenericProtectionContainer.DeserializeBackupGenericProtectionContainer(property.Value); + continue; + } + if (property.NameEquals("eTag"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + eTag = new ETag(property.Value.GetString()); + continue; + } + if (property.NameEquals("tags"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + tags = dictionary; + continue; + } + if (property.NameEquals("location"u8)) + { + location = new AzureLocation(property.Value.GetString()); + continue; + } + if (property.NameEquals("id"u8)) + { + id = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + type = new ResourceType(property.Value.GetString()); + continue; + } + if (property.NameEquals("systemData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } + } + return new BackupProtectionContainerData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, properties.Value, Optional.ToNullable(eTag)); + } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceConfigResourceData.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupProtectionIntentData.Serialization.cs similarity index 89% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceConfigResourceData.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupProtectionIntentData.Serialization.cs index d531112bcf905..7b35fb879097c 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceConfigResourceData.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupProtectionIntentData.Serialization.cs @@ -14,7 +14,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup { - public partial class BackupResourceConfigResourceData : IUtf8JsonSerializable + public partial class BackupProtectionIntentData : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -45,9 +45,9 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static BackupResourceConfigResourceData DeserializeBackupResourceConfigResourceData(JsonElement element) + internal static BackupProtectionIntentData DeserializeBackupProtectionIntentData(JsonElement element) { - Optional properties = default; + Optional properties = default; Optional eTag = default; Optional> tags = default; AzureLocation location = default; @@ -64,7 +64,7 @@ internal static BackupResourceConfigResourceData DeserializeBackupResourceConfig property.ThrowNonNullablePropertyIsNull(); continue; } - properties = BackupResourceConfig.DeserializeBackupResourceConfig(property.Value); + properties = BackupGenericProtectionIntent.DeserializeBackupGenericProtectionIntent(property.Value); continue; } if (property.NameEquals("eTag"u8)) @@ -123,7 +123,7 @@ internal static BackupResourceConfigResourceData DeserializeBackupResourceConfig continue; } } - return new BackupResourceConfigResourceData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, properties.Value, Optional.ToNullable(eTag)); + return new BackupProtectionIntentData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, properties.Value, Optional.ToNullable(eTag)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupProtectionPolicyData.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupProtectionPolicyData.Serialization.cs new file mode 100644 index 0000000000000..e6c6146cef9cc --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupProtectionPolicyData.Serialization.cs @@ -0,0 +1,129 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.Core; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.RecoveryServicesBackup.Models; + +namespace Azure.ResourceManager.RecoveryServicesBackup +{ + public partial class BackupProtectionPolicyData : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Properties)) + { + writer.WritePropertyName("properties"u8); + writer.WriteObjectValue(Properties); + } + if (Optional.IsDefined(ETag)) + { + writer.WritePropertyName("eTag"u8); + writer.WriteStringValue(ETag.Value.ToString()); + } + if (Optional.IsCollectionDefined(Tags)) + { + writer.WritePropertyName("tags"u8); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + writer.WritePropertyName("location"u8); + writer.WriteStringValue(Location); + writer.WriteEndObject(); + } + + internal static BackupProtectionPolicyData DeserializeBackupProtectionPolicyData(JsonElement element) + { + Optional properties = default; + Optional eTag = default; + Optional> tags = default; + AzureLocation location = default; + ResourceIdentifier id = default; + string name = default; + ResourceType type = default; + Optional systemData = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + properties = BackupGenericProtectionPolicy.DeserializeBackupGenericProtectionPolicy(property.Value); + continue; + } + if (property.NameEquals("eTag"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + eTag = new ETag(property.Value.GetString()); + continue; + } + if (property.NameEquals("tags"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + tags = dictionary; + continue; + } + if (property.NameEquals("location"u8)) + { + location = new AzureLocation(property.Value.GetString()); + continue; + } + if (property.NameEquals("id"u8)) + { + id = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + type = new ResourceType(property.Value.GetString()); + continue; + } + if (property.NameEquals("systemData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } + } + return new BackupProtectionPolicyData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, properties.Value, Optional.ToNullable(eTag)); + } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupProtectionState.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupProtectionState.cs new file mode 100644 index 0000000000000..f53d703cbd587 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupProtectionState.cs @@ -0,0 +1,66 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Models +{ + /// Backup state of this backup item. + public readonly partial struct BackupProtectionState : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public BackupProtectionState(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string InvalidValue = "Invalid"; + private const string IRPendingValue = "IRPending"; + private const string ProtectedValue = "Protected"; + private const string ProtectionErrorValue = "ProtectionError"; + private const string ProtectionStoppedValue = "ProtectionStopped"; + private const string ProtectionPausedValue = "ProtectionPaused"; + private const string BackupsSuspendedValue = "BackupsSuspended"; + + /// Invalid. + public static BackupProtectionState Invalid { get; } = new BackupProtectionState(InvalidValue); + /// IRPending. + public static BackupProtectionState IRPending { get; } = new BackupProtectionState(IRPendingValue); + /// Protected. + public static BackupProtectionState Protected { get; } = new BackupProtectionState(ProtectedValue); + /// ProtectionError. + public static BackupProtectionState ProtectionError { get; } = new BackupProtectionState(ProtectionErrorValue); + /// ProtectionStopped. + public static BackupProtectionState ProtectionStopped { get; } = new BackupProtectionState(ProtectionStoppedValue); + /// ProtectionPaused. + public static BackupProtectionState ProtectionPaused { get; } = new BackupProtectionState(ProtectionPausedValue); + /// BackupsSuspended. + public static BackupProtectionState BackupsSuspended { get; } = new BackupProtectionState(BackupsSuspendedValue); + /// Determines if two values are the same. + public static bool operator ==(BackupProtectionState left, BackupProtectionState right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(BackupProtectionState left, BackupProtectionState right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator BackupProtectionState(string value) => new BackupProtectionState(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is BackupProtectionState other && Equals(other); + /// + public bool Equals(BackupProtectionState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupProtectionStatus.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupProtectionStatus.cs new file mode 100644 index 0000000000000..eaab3731e0b1a --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupProtectionStatus.cs @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Models +{ + /// Specifies whether the container is registered or not. + public readonly partial struct BackupProtectionStatus : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public BackupProtectionStatus(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string InvalidValue = "Invalid"; + private const string NotProtectedValue = "NotProtected"; + private const string ProtectingValue = "Protecting"; + private const string ProtectedValue = "Protected"; + private const string ProtectionFailedValue = "ProtectionFailed"; + + /// Invalid. + public static BackupProtectionStatus Invalid { get; } = new BackupProtectionStatus(InvalidValue); + /// NotProtected. + public static BackupProtectionStatus NotProtected { get; } = new BackupProtectionStatus(NotProtectedValue); + /// Protecting. + public static BackupProtectionStatus Protecting { get; } = new BackupProtectionStatus(ProtectingValue); + /// Protected. + public static BackupProtectionStatus Protected { get; } = new BackupProtectionStatus(ProtectedValue); + /// ProtectionFailed. + public static BackupProtectionStatus ProtectionFailed { get; } = new BackupProtectionStatus(ProtectionFailedValue); + /// Determines if two values are the same. + public static bool operator ==(BackupProtectionStatus left, BackupProtectionStatus right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(BackupProtectionStatus left, BackupProtectionStatus right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator BackupProtectionStatus(string value) => new BackupProtectionStatus(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is BackupProtectionStatus other && Equals(other); + /// + public bool Equals(BackupProtectionStatus other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectedItemResourceData.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupRecoveryPointData.Serialization.cs similarity index 89% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectedItemResourceData.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupRecoveryPointData.Serialization.cs index 73d4e46e1c773..b9ae2cd023641 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectedItemResourceData.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupRecoveryPointData.Serialization.cs @@ -14,7 +14,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup { - public partial class ProtectedItemResourceData : IUtf8JsonSerializable + public partial class BackupRecoveryPointData : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -45,9 +45,9 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static ProtectedItemResourceData DeserializeProtectedItemResourceData(JsonElement element) + internal static BackupRecoveryPointData DeserializeBackupRecoveryPointData(JsonElement element) { - Optional properties = default; + Optional properties = default; Optional eTag = default; Optional> tags = default; AzureLocation location = default; @@ -64,7 +64,7 @@ internal static ProtectedItemResourceData DeserializeProtectedItemResourceData(J property.ThrowNonNullablePropertyIsNull(); continue; } - properties = ProtectedItem.DeserializeProtectedItem(property.Value); + properties = BackupGenericRecoveryPoint.DeserializeBackupGenericRecoveryPoint(property.Value); continue; } if (property.NameEquals("eTag"u8)) @@ -123,7 +123,7 @@ internal static ProtectedItemResourceData DeserializeProtectedItemResourceData(J continue; } } - return new ProtectedItemResourceData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, properties.Value, Optional.ToNullable(eTag)); + return new BackupRecoveryPointData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, properties.Value, Optional.ToNullable(eTag)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionContainerResourceData.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceConfigData.Serialization.cs similarity index 89% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionContainerResourceData.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceConfigData.Serialization.cs index 2446bf27d5829..d973d866f2cd5 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionContainerResourceData.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceConfigData.Serialization.cs @@ -14,7 +14,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup { - public partial class ProtectionContainerResourceData : IUtf8JsonSerializable + public partial class BackupResourceConfigData : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -45,9 +45,9 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static ProtectionContainerResourceData DeserializeProtectionContainerResourceData(JsonElement element) + internal static BackupResourceConfigData DeserializeBackupResourceConfigData(JsonElement element) { - Optional properties = default; + Optional properties = default; Optional eTag = default; Optional> tags = default; AzureLocation location = default; @@ -64,7 +64,7 @@ internal static ProtectionContainerResourceData DeserializeProtectionContainerRe property.ThrowNonNullablePropertyIsNull(); continue; } - properties = ProtectionContainer.DeserializeProtectionContainer(property.Value); + properties = BackupResourceConfigProperties.DeserializeBackupResourceConfigProperties(property.Value); continue; } if (property.NameEquals("eTag"u8)) @@ -123,7 +123,7 @@ internal static ProtectionContainerResourceData DeserializeProtectionContainerRe continue; } } - return new ProtectionContainerResourceData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, properties.Value, Optional.ToNullable(eTag)); + return new BackupResourceConfigData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, properties.Value, Optional.ToNullable(eTag)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceConfig.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceConfigProperties.Serialization.cs similarity index 73% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceConfig.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceConfigProperties.Serialization.cs index 98a07e8eb3de5..3216d6c679c8f 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceConfig.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceConfigProperties.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class BackupResourceConfig : IUtf8JsonSerializable + public partial class BackupResourceConfigProperties : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -30,10 +30,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("storageTypeState"u8); writer.WriteStringValue(StorageTypeState.Value.ToString()); } - if (Optional.IsDefined(CrossRegionRestoreFlag)) + if (Optional.IsDefined(EnableCrossRegionRestore)) { writer.WritePropertyName("crossRegionRestoreFlag"u8); - writer.WriteBooleanValue(CrossRegionRestoreFlag.Value); + writer.WriteBooleanValue(EnableCrossRegionRestore.Value); } if (Optional.IsDefined(DedupState)) { @@ -48,14 +48,14 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static BackupResourceConfig DeserializeBackupResourceConfig(JsonElement element) + internal static BackupResourceConfigProperties DeserializeBackupResourceConfigProperties(JsonElement element) { - Optional storageModelType = default; - Optional storageType = default; - Optional storageTypeState = default; + Optional storageModelType = default; + Optional storageType = default; + Optional storageTypeState = default; Optional crossRegionRestoreFlag = default; - Optional dedupState = default; - Optional xcoolState = default; + Optional dedupState = default; + Optional xcoolState = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("storageModelType"u8)) @@ -65,7 +65,7 @@ internal static BackupResourceConfig DeserializeBackupResourceConfig(JsonElement property.ThrowNonNullablePropertyIsNull(); continue; } - storageModelType = new StorageType(property.Value.GetString()); + storageModelType = new BackupStorageType(property.Value.GetString()); continue; } if (property.NameEquals("storageType"u8)) @@ -75,7 +75,7 @@ internal static BackupResourceConfig DeserializeBackupResourceConfig(JsonElement property.ThrowNonNullablePropertyIsNull(); continue; } - storageType = new StorageType(property.Value.GetString()); + storageType = new BackupStorageType(property.Value.GetString()); continue; } if (property.NameEquals("storageTypeState"u8)) @@ -85,7 +85,7 @@ internal static BackupResourceConfig DeserializeBackupResourceConfig(JsonElement property.ThrowNonNullablePropertyIsNull(); continue; } - storageTypeState = new StorageTypeState(property.Value.GetString()); + storageTypeState = new BackupStorageTypeState(property.Value.GetString()); continue; } if (property.NameEquals("crossRegionRestoreFlag"u8)) @@ -105,7 +105,7 @@ internal static BackupResourceConfig DeserializeBackupResourceConfig(JsonElement property.ThrowNonNullablePropertyIsNull(); continue; } - dedupState = new DedupState(property.Value.GetString()); + dedupState = new VaultDedupState(property.Value.GetString()); continue; } if (property.NameEquals("xcoolState"u8)) @@ -115,11 +115,11 @@ internal static BackupResourceConfig DeserializeBackupResourceConfig(JsonElement property.ThrowNonNullablePropertyIsNull(); continue; } - xcoolState = new XcoolState(property.Value.GetString()); + xcoolState = new VaultXcoolState(property.Value.GetString()); continue; } } - return new BackupResourceConfig(Optional.ToNullable(storageModelType), Optional.ToNullable(storageType), Optional.ToNullable(storageTypeState), Optional.ToNullable(crossRegionRestoreFlag), Optional.ToNullable(dedupState), Optional.ToNullable(xcoolState)); + return new BackupResourceConfigProperties(Optional.ToNullable(storageModelType), Optional.ToNullable(storageType), Optional.ToNullable(storageTypeState), Optional.ToNullable(crossRegionRestoreFlag), Optional.ToNullable(dedupState), Optional.ToNullable(xcoolState)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceConfig.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceConfigProperties.cs similarity index 61% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceConfig.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceConfigProperties.cs index fb5ebb682a26d..fcee4720b13fd 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceConfig.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceConfigProperties.cs @@ -8,41 +8,41 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// The resource storage details. - public partial class BackupResourceConfig + public partial class BackupResourceConfigProperties { - /// Initializes a new instance of BackupResourceConfig. - public BackupResourceConfig() + /// Initializes a new instance of BackupResourceConfigProperties. + public BackupResourceConfigProperties() { } - /// Initializes a new instance of BackupResourceConfig. + /// Initializes a new instance of BackupResourceConfigProperties. /// Storage type. /// Storage type. /// Locked or Unlocked. Once a machine is registered against a resource, the storageTypeState is always Locked. - /// Opt in details of Cross Region Restore feature. + /// Opt in details of Cross Region Restore feature. /// Vault Dedup state. /// Vault x-cool state. - internal BackupResourceConfig(StorageType? storageModelType, StorageType? storageType, StorageTypeState? storageTypeState, bool? crossRegionRestoreFlag, DedupState? dedupState, XcoolState? xcoolState) + internal BackupResourceConfigProperties(BackupStorageType? storageModelType, BackupStorageType? storageType, BackupStorageTypeState? storageTypeState, bool? enableCrossRegionRestore, VaultDedupState? dedupState, VaultXcoolState? xcoolState) { StorageModelType = storageModelType; StorageType = storageType; StorageTypeState = storageTypeState; - CrossRegionRestoreFlag = crossRegionRestoreFlag; + EnableCrossRegionRestore = enableCrossRegionRestore; DedupState = dedupState; XcoolState = xcoolState; } /// Storage type. - public StorageType? StorageModelType { get; set; } + public BackupStorageType? StorageModelType { get; set; } /// Storage type. - public StorageType? StorageType { get; set; } + public BackupStorageType? StorageType { get; set; } /// Locked or Unlocked. Once a machine is registered against a resource, the storageTypeState is always Locked. - public StorageTypeState? StorageTypeState { get; set; } + public BackupStorageTypeState? StorageTypeState { get; set; } /// Opt in details of Cross Region Restore feature. - public bool? CrossRegionRestoreFlag { get; set; } + public bool? EnableCrossRegionRestore { get; set; } /// Vault Dedup state. - public DedupState? DedupState { get; set; } + public VaultDedupState? DedupState { get; set; } /// Vault x-cool state. - public XcoolState? XcoolState { get; set; } + public VaultXcoolState? XcoolState { get; set; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceEncryptionConfig.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceEncryptionConfig.Serialization.cs index 9e8aa69426f7f..a7c0afedb2c9b 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceEncryptionConfig.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceEncryptionConfig.Serialization.cs @@ -46,7 +46,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) internal static BackupResourceEncryptionConfig DeserializeBackupResourceEncryptionConfig(JsonElement element) { - Optional encryptionAtRestType = default; + Optional encryptionAtRestType = default; Optional keyUri = default; Optional subscriptionId = default; Optional lastUpdateStatus = default; @@ -60,7 +60,7 @@ internal static BackupResourceEncryptionConfig DeserializeBackupResourceEncrypti property.ThrowNonNullablePropertyIsNull(); continue; } - encryptionAtRestType = new EncryptionAtRestType(property.Value.GetString()); + encryptionAtRestType = new BackupEncryptionAtRestType(property.Value.GetString()); continue; } if (property.NameEquals("keyUri"u8)) diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceEncryptionConfig.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceEncryptionConfig.cs index dc3cfe67bbbb4..ddd0e67b5a692 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceEncryptionConfig.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceEncryptionConfig.cs @@ -23,7 +23,7 @@ public BackupResourceEncryptionConfig() /// Key Vault Subscription Id. /// /// - internal BackupResourceEncryptionConfig(EncryptionAtRestType? encryptionAtRestType, Uri keyUri, string subscriptionId, LastUpdateStatus? lastUpdateStatus, InfrastructureEncryptionState? infrastructureEncryptionState) + internal BackupResourceEncryptionConfig(BackupEncryptionAtRestType? encryptionAtRestType, Uri keyUri, string subscriptionId, LastUpdateStatus? lastUpdateStatus, InfrastructureEncryptionState? infrastructureEncryptionState) { EncryptionAtRestType = encryptionAtRestType; KeyUri = keyUri; @@ -33,7 +33,7 @@ internal BackupResourceEncryptionConfig(EncryptionAtRestType? encryptionAtRestTy } /// Encryption At Rest Type. - public EncryptionAtRestType? EncryptionAtRestType { get; set; } + public BackupEncryptionAtRestType? EncryptionAtRestType { get; set; } /// Key Vault Key URI. public Uri KeyUri { get; set; } /// Key Vault Subscription Id. diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceEncryptionConfigExtendedResourceCreateOrUpdateContent.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceEncryptionConfigExtendedCreateOrUpdateContent.Serialization.cs similarity index 89% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceEncryptionConfigExtendedResourceCreateOrUpdateContent.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceEncryptionConfigExtendedCreateOrUpdateContent.Serialization.cs index af63645a0465e..95a3ebb2445fa 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceEncryptionConfigExtendedResourceCreateOrUpdateContent.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceEncryptionConfigExtendedCreateOrUpdateContent.Serialization.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class BackupResourceEncryptionConfigExtendedResourceCreateOrUpdateContent : IUtf8JsonSerializable + public partial class BackupResourceEncryptionConfigExtendedCreateOrUpdateContent : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -44,7 +44,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static BackupResourceEncryptionConfigExtendedResourceCreateOrUpdateContent DeserializeBackupResourceEncryptionConfigExtendedResourceCreateOrUpdateContent(JsonElement element) + internal static BackupResourceEncryptionConfigExtendedCreateOrUpdateContent DeserializeBackupResourceEncryptionConfigExtendedCreateOrUpdateContent(JsonElement element) { Optional properties = default; Optional eTag = default; @@ -122,7 +122,7 @@ internal static BackupResourceEncryptionConfigExtendedResourceCreateOrUpdateCont continue; } } - return new BackupResourceEncryptionConfigExtendedResourceCreateOrUpdateContent(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, properties.Value, Optional.ToNullable(eTag)); + return new BackupResourceEncryptionConfigExtendedCreateOrUpdateContent(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, properties.Value, Optional.ToNullable(eTag)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceEncryptionConfigExtendedResourceCreateOrUpdateContent.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceEncryptionConfigExtendedCreateOrUpdateContent.cs similarity index 62% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceEncryptionConfigExtendedResourceCreateOrUpdateContent.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceEncryptionConfigExtendedCreateOrUpdateContent.cs index d638a09ab8621..ba175af29985d 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceEncryptionConfigExtendedResourceCreateOrUpdateContent.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceEncryptionConfigExtendedCreateOrUpdateContent.cs @@ -12,16 +12,16 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - /// The BackupResourceEncryptionConfigExtendedResourceCreateOrUpdateContent. - public partial class BackupResourceEncryptionConfigExtendedResourceCreateOrUpdateContent : TrackedResourceData + /// The BackupResourceEncryptionConfigExtendedCreateOrUpdateContent. + public partial class BackupResourceEncryptionConfigExtendedCreateOrUpdateContent : TrackedResourceData { - /// Initializes a new instance of BackupResourceEncryptionConfigExtendedResourceCreateOrUpdateContent. + /// Initializes a new instance of BackupResourceEncryptionConfigExtendedCreateOrUpdateContent. /// The location. - public BackupResourceEncryptionConfigExtendedResourceCreateOrUpdateContent(AzureLocation location) : base(location) + public BackupResourceEncryptionConfigExtendedCreateOrUpdateContent(AzureLocation location) : base(location) { } - /// Initializes a new instance of BackupResourceEncryptionConfigExtendedResourceCreateOrUpdateContent. + /// Initializes a new instance of BackupResourceEncryptionConfigExtendedCreateOrUpdateContent. /// The id. /// The name. /// The resourceType. @@ -30,7 +30,7 @@ public BackupResourceEncryptionConfigExtendedResourceCreateOrUpdateContent(Azure /// The location. /// BackupResourceEncryptionConfigResource properties. /// Optional ETag. - internal BackupResourceEncryptionConfigExtendedResourceCreateOrUpdateContent(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, BackupResourceEncryptionConfig properties, ETag? eTag) : base(id, name, resourceType, systemData, tags, location) + internal BackupResourceEncryptionConfigExtendedCreateOrUpdateContent(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, BackupResourceEncryptionConfig properties, ETag? eTag) : base(id, name, resourceType, systemData, tags, location) { Properties = properties; ETag = eTag; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceEncryptionConfigExtendedResourceData.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceEncryptionConfigExtendedData.Serialization.cs similarity index 88% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceEncryptionConfigExtendedResourceData.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceEncryptionConfigExtendedData.Serialization.cs index 1e7e7af770f66..3e80637eac3eb 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceEncryptionConfigExtendedResourceData.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceEncryptionConfigExtendedData.Serialization.cs @@ -14,7 +14,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup { - public partial class BackupResourceEncryptionConfigExtendedResourceData : IUtf8JsonSerializable + public partial class BackupResourceEncryptionConfigExtendedData : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -45,9 +45,9 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static BackupResourceEncryptionConfigExtendedResourceData DeserializeBackupResourceEncryptionConfigExtendedResourceData(JsonElement element) + internal static BackupResourceEncryptionConfigExtendedData DeserializeBackupResourceEncryptionConfigExtendedData(JsonElement element) { - Optional properties = default; + Optional properties = default; Optional eTag = default; Optional> tags = default; AzureLocation location = default; @@ -64,7 +64,7 @@ internal static BackupResourceEncryptionConfigExtendedResourceData DeserializeBa property.ThrowNonNullablePropertyIsNull(); continue; } - properties = BackupResourceEncryptionConfigExtended.DeserializeBackupResourceEncryptionConfigExtended(property.Value); + properties = BackupResourceEncryptionConfigExtendedProperties.DeserializeBackupResourceEncryptionConfigExtendedProperties(property.Value); continue; } if (property.NameEquals("eTag"u8)) @@ -123,7 +123,7 @@ internal static BackupResourceEncryptionConfigExtendedResourceData DeserializeBa continue; } } - return new BackupResourceEncryptionConfigExtendedResourceData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, properties.Value, Optional.ToNullable(eTag)); + return new BackupResourceEncryptionConfigExtendedData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, properties.Value, Optional.ToNullable(eTag)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceEncryptionConfigExtended.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceEncryptionConfigExtendedProperties.Serialization.cs similarity index 80% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceEncryptionConfigExtended.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceEncryptionConfigExtendedProperties.Serialization.cs index a37f2c1635203..85e42e93a9c04 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceEncryptionConfigExtended.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceEncryptionConfigExtendedProperties.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class BackupResourceEncryptionConfigExtended : IUtf8JsonSerializable + public partial class BackupResourceEncryptionConfigExtendedProperties : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -54,11 +54,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static BackupResourceEncryptionConfigExtended DeserializeBackupResourceEncryptionConfigExtended(JsonElement element) + internal static BackupResourceEncryptionConfigExtendedProperties DeserializeBackupResourceEncryptionConfigExtendedProperties(JsonElement element) { - Optional userAssignedIdentity = default; + Optional userAssignedIdentity = default; Optional useSystemAssignedIdentity = default; - Optional encryptionAtRestType = default; + Optional encryptionAtRestType = default; Optional keyUri = default; Optional subscriptionId = default; Optional lastUpdateStatus = default; @@ -67,7 +67,12 @@ internal static BackupResourceEncryptionConfigExtended DeserializeBackupResource { if (property.NameEquals("userAssignedIdentity"u8)) { - userAssignedIdentity = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + userAssignedIdentity = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("useSystemAssignedIdentity"u8)) @@ -87,7 +92,7 @@ internal static BackupResourceEncryptionConfigExtended DeserializeBackupResource property.ThrowNonNullablePropertyIsNull(); continue; } - encryptionAtRestType = new EncryptionAtRestType(property.Value.GetString()); + encryptionAtRestType = new BackupEncryptionAtRestType(property.Value.GetString()); continue; } if (property.NameEquals("keyUri"u8)) @@ -126,7 +131,7 @@ internal static BackupResourceEncryptionConfigExtended DeserializeBackupResource continue; } } - return new BackupResourceEncryptionConfigExtended(Optional.ToNullable(encryptionAtRestType), keyUri.Value, subscriptionId.Value, Optional.ToNullable(lastUpdateStatus), Optional.ToNullable(infrastructureEncryptionState), userAssignedIdentity.Value, Optional.ToNullable(useSystemAssignedIdentity)); + return new BackupResourceEncryptionConfigExtendedProperties(Optional.ToNullable(encryptionAtRestType), keyUri.Value, subscriptionId.Value, Optional.ToNullable(lastUpdateStatus), Optional.ToNullable(infrastructureEncryptionState), userAssignedIdentity.Value, Optional.ToNullable(useSystemAssignedIdentity)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceEncryptionConfigExtended.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceEncryptionConfigExtendedProperties.cs similarity index 59% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceEncryptionConfigExtended.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceEncryptionConfigExtendedProperties.cs index 67f64ce8d5956..d518335855b19 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceEncryptionConfigExtended.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceEncryptionConfigExtendedProperties.cs @@ -6,18 +6,19 @@ #nullable disable using System; +using Azure.Core; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - /// The BackupResourceEncryptionConfigExtended. - public partial class BackupResourceEncryptionConfigExtended : BackupResourceEncryptionConfig + /// The BackupResourceEncryptionConfigExtendedProperties. + public partial class BackupResourceEncryptionConfigExtendedProperties : BackupResourceEncryptionConfig { - /// Initializes a new instance of BackupResourceEncryptionConfigExtended. - public BackupResourceEncryptionConfigExtended() + /// Initializes a new instance of BackupResourceEncryptionConfigExtendedProperties. + public BackupResourceEncryptionConfigExtendedProperties() { } - /// Initializes a new instance of BackupResourceEncryptionConfigExtended. + /// Initializes a new instance of BackupResourceEncryptionConfigExtendedProperties. /// Encryption At Rest Type. /// Key Vault Key URI. /// Key Vault Subscription Id. @@ -25,14 +26,14 @@ public BackupResourceEncryptionConfigExtended() /// /// User Assigned Identity Id. /// bool to indicate whether to use system Assigned Identity or not. - internal BackupResourceEncryptionConfigExtended(EncryptionAtRestType? encryptionAtRestType, Uri keyUri, string subscriptionId, LastUpdateStatus? lastUpdateStatus, InfrastructureEncryptionState? infrastructureEncryptionState, string userAssignedIdentity, bool? useSystemAssignedIdentity) : base(encryptionAtRestType, keyUri, subscriptionId, lastUpdateStatus, infrastructureEncryptionState) + internal BackupResourceEncryptionConfigExtendedProperties(BackupEncryptionAtRestType? encryptionAtRestType, Uri keyUri, string subscriptionId, LastUpdateStatus? lastUpdateStatus, InfrastructureEncryptionState? infrastructureEncryptionState, ResourceIdentifier userAssignedIdentity, bool? useSystemAssignedIdentity) : base(encryptionAtRestType, keyUri, subscriptionId, lastUpdateStatus, infrastructureEncryptionState) { UserAssignedIdentity = userAssignedIdentity; UseSystemAssignedIdentity = useSystemAssignedIdentity; } /// User Assigned Identity Id. - public string UserAssignedIdentity { get; set; } + public ResourceIdentifier UserAssignedIdentity { get; set; } /// bool to indicate whether to use system Assigned Identity or not. public bool? UseSystemAssignedIdentity { get; set; } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceVaultConfigData.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceVaultConfigData.Serialization.cs new file mode 100644 index 0000000000000..a7d71f6b9217d --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceVaultConfigData.Serialization.cs @@ -0,0 +1,129 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.Core; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.RecoveryServicesBackup.Models; + +namespace Azure.ResourceManager.RecoveryServicesBackup +{ + public partial class BackupResourceVaultConfigData : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Properties)) + { + writer.WritePropertyName("properties"u8); + writer.WriteObjectValue(Properties); + } + if (Optional.IsDefined(ETag)) + { + writer.WritePropertyName("eTag"u8); + writer.WriteStringValue(ETag.Value.ToString()); + } + if (Optional.IsCollectionDefined(Tags)) + { + writer.WritePropertyName("tags"u8); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + writer.WritePropertyName("location"u8); + writer.WriteStringValue(Location); + writer.WriteEndObject(); + } + + internal static BackupResourceVaultConfigData DeserializeBackupResourceVaultConfigData(JsonElement element) + { + Optional properties = default; + Optional eTag = default; + Optional> tags = default; + AzureLocation location = default; + ResourceIdentifier id = default; + string name = default; + ResourceType type = default; + Optional systemData = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + properties = BackupResourceVaultConfigProperties.DeserializeBackupResourceVaultConfigProperties(property.Value); + continue; + } + if (property.NameEquals("eTag"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + eTag = new ETag(property.Value.GetString()); + continue; + } + if (property.NameEquals("tags"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + tags = dictionary; + continue; + } + if (property.NameEquals("location"u8)) + { + location = new AzureLocation(property.Value.GetString()); + continue; + } + if (property.NameEquals("id"u8)) + { + id = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + type = new ResourceType(property.Value.GetString()); + continue; + } + if (property.NameEquals("systemData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } + } + return new BackupResourceVaultConfigData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, properties.Value, Optional.ToNullable(eTag)); + } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceVaultConfig.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceVaultConfigProperties.Serialization.cs similarity index 84% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceVaultConfig.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceVaultConfigProperties.Serialization.cs index 5720282971d43..4b7299719f3b8 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceVaultConfig.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceVaultConfigProperties.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class BackupResourceVaultConfig : IUtf8JsonSerializable + public partial class BackupResourceVaultConfigProperties : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -59,11 +59,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static BackupResourceVaultConfig DeserializeBackupResourceVaultConfig(JsonElement element) + internal static BackupResourceVaultConfigProperties DeserializeBackupResourceVaultConfigProperties(JsonElement element) { - Optional storageModelType = default; - Optional storageType = default; - Optional storageTypeState = default; + Optional storageModelType = default; + Optional storageType = default; + Optional storageTypeState = default; Optional enhancedSecurityState = default; Optional softDeleteFeatureState = default; Optional> resourceGuardOperationRequests = default; @@ -77,7 +77,7 @@ internal static BackupResourceVaultConfig DeserializeBackupResourceVaultConfig(J property.ThrowNonNullablePropertyIsNull(); continue; } - storageModelType = new StorageType(property.Value.GetString()); + storageModelType = new BackupStorageType(property.Value.GetString()); continue; } if (property.NameEquals("storageType"u8)) @@ -87,7 +87,7 @@ internal static BackupResourceVaultConfig DeserializeBackupResourceVaultConfig(J property.ThrowNonNullablePropertyIsNull(); continue; } - storageType = new StorageType(property.Value.GetString()); + storageType = new BackupStorageType(property.Value.GetString()); continue; } if (property.NameEquals("storageTypeState"u8)) @@ -97,7 +97,7 @@ internal static BackupResourceVaultConfig DeserializeBackupResourceVaultConfig(J property.ThrowNonNullablePropertyIsNull(); continue; } - storageTypeState = new StorageTypeState(property.Value.GetString()); + storageTypeState = new BackupStorageTypeState(property.Value.GetString()); continue; } if (property.NameEquals("enhancedSecurityState"u8)) @@ -146,7 +146,7 @@ internal static BackupResourceVaultConfig DeserializeBackupResourceVaultConfig(J continue; } } - return new BackupResourceVaultConfig(Optional.ToNullable(storageModelType), Optional.ToNullable(storageType), Optional.ToNullable(storageTypeState), Optional.ToNullable(enhancedSecurityState), Optional.ToNullable(softDeleteFeatureState), Optional.ToList(resourceGuardOperationRequests), Optional.ToNullable(isSoftDeleteFeatureStateEditable)); + return new BackupResourceVaultConfigProperties(Optional.ToNullable(storageModelType), Optional.ToNullable(storageType), Optional.ToNullable(storageTypeState), Optional.ToNullable(enhancedSecurityState), Optional.ToNullable(softDeleteFeatureState), Optional.ToList(resourceGuardOperationRequests), Optional.ToNullable(isSoftDeleteFeatureStateEditable)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceVaultConfig.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceVaultConfigProperties.cs similarity index 77% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceVaultConfig.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceVaultConfigProperties.cs index b1a6e22f1ad4f..6e78859bdc1d4 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceVaultConfig.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupResourceVaultConfigProperties.cs @@ -11,15 +11,15 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Backup resource vault config details. - public partial class BackupResourceVaultConfig + public partial class BackupResourceVaultConfigProperties { - /// Initializes a new instance of BackupResourceVaultConfig. - public BackupResourceVaultConfig() + /// Initializes a new instance of BackupResourceVaultConfigProperties. + public BackupResourceVaultConfigProperties() { ResourceGuardOperationRequests = new ChangeTrackingList(); } - /// Initializes a new instance of BackupResourceVaultConfig. + /// Initializes a new instance of BackupResourceVaultConfigProperties. /// Storage type. /// Storage type. /// Locked or Unlocked. Once a machine is registered against a resource, the storageTypeState is always Locked. @@ -27,7 +27,7 @@ public BackupResourceVaultConfig() /// Soft Delete feature state. /// ResourceGuard Operation Requests. /// Is soft delete feature state editable. - internal BackupResourceVaultConfig(StorageType? storageModelType, StorageType? storageType, StorageTypeState? storageTypeState, EnhancedSecurityState? enhancedSecurityState, SoftDeleteFeatureState? softDeleteFeatureState, IList resourceGuardOperationRequests, bool? isSoftDeleteFeatureStateEditable) + internal BackupResourceVaultConfigProperties(BackupStorageType? storageModelType, BackupStorageType? storageType, BackupStorageTypeState? storageTypeState, EnhancedSecurityState? enhancedSecurityState, SoftDeleteFeatureState? softDeleteFeatureState, IList resourceGuardOperationRequests, bool? isSoftDeleteFeatureStateEditable) { StorageModelType = storageModelType; StorageType = storageType; @@ -39,11 +39,11 @@ internal BackupResourceVaultConfig(StorageType? storageModelType, StorageType? s } /// Storage type. - public StorageType? StorageModelType { get; set; } + public BackupStorageType? StorageModelType { get; set; } /// Storage type. - public StorageType? StorageType { get; set; } + public BackupStorageType? StorageType { get; set; } /// Locked or Unlocked. Once a machine is registered against a resource, the storageTypeState is always Locked. - public StorageTypeState? StorageTypeState { get; set; } + public BackupStorageTypeState? StorageTypeState { get; set; } /// Enabled or Disabled. public EnhancedSecurityState? EnhancedSecurityState { get; set; } /// Soft Delete feature state. diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RetentionPolicy.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupRetentionPolicy.Serialization.cs similarity index 86% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RetentionPolicy.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupRetentionPolicy.Serialization.cs index afd38540b7139..621ee4b656a68 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RetentionPolicy.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupRetentionPolicy.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class RetentionPolicy : IUtf8JsonSerializable + public partial class BackupRetentionPolicy : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -20,7 +20,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static RetentionPolicy DeserializeRetentionPolicy(JsonElement element) + internal static BackupRetentionPolicy DeserializeBackupRetentionPolicy(JsonElement element) { if (element.TryGetProperty("retentionPolicyType", out JsonElement discriminator)) { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RetentionPolicy.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupRetentionPolicy.cs similarity index 60% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RetentionPolicy.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupRetentionPolicy.cs index f61cf2551462f..1e79c498a9fe4 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RetentionPolicy.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupRetentionPolicy.cs @@ -9,19 +9,19 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// /// Base class for retention policy. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// - public abstract partial class RetentionPolicy + public abstract partial class BackupRetentionPolicy { - /// Initializes a new instance of RetentionPolicy. - protected RetentionPolicy() + /// Initializes a new instance of BackupRetentionPolicy. + protected BackupRetentionPolicy() { } - /// Initializes a new instance of RetentionPolicy. + /// Initializes a new instance of BackupRetentionPolicy. /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. - internal RetentionPolicy(string retentionPolicyType) + internal BackupRetentionPolicy(string retentionPolicyType) { RetentionPolicyType = retentionPolicyType; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SchedulePolicy.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupSchedulePolicy.Serialization.cs similarity index 88% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SchedulePolicy.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupSchedulePolicy.Serialization.cs index 2828b26df84b5..7cf0efa092da8 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SchedulePolicy.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupSchedulePolicy.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class SchedulePolicy : IUtf8JsonSerializable + public partial class BackupSchedulePolicy : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -20,7 +20,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static SchedulePolicy DeserializeSchedulePolicy(JsonElement element) + internal static BackupSchedulePolicy DeserializeBackupSchedulePolicy(JsonElement element) { if (element.TryGetProperty("schedulePolicyType", out JsonElement discriminator)) { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SchedulePolicy.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupSchedulePolicy.cs similarity index 62% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SchedulePolicy.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupSchedulePolicy.cs index 9c4cfd7deca5f..a5f71f9df654a 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SchedulePolicy.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupSchedulePolicy.cs @@ -9,19 +9,19 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// /// Base class for backup schedule. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include , , and . /// - public abstract partial class SchedulePolicy + public abstract partial class BackupSchedulePolicy { - /// Initializes a new instance of SchedulePolicy. - protected SchedulePolicy() + /// Initializes a new instance of BackupSchedulePolicy. + protected BackupSchedulePolicy() { } - /// Initializes a new instance of SchedulePolicy. + /// Initializes a new instance of BackupSchedulePolicy. /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. - internal SchedulePolicy(string schedulePolicyType) + internal BackupSchedulePolicy(string schedulePolicyType) { SchedulePolicyType = schedulePolicyType; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureBackupServerContainer.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupServerContainer.Serialization.cs similarity index 92% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureBackupServerContainer.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupServerContainer.Serialization.cs index e2e1ad997e478..29daf548e988b 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureBackupServerContainer.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupServerContainer.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureBackupServerContainer : IUtf8JsonSerializable + public partial class BackupServerContainer : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -46,10 +46,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndArray(); } - if (Optional.IsDefined(UpgradeAvailable)) + if (Optional.IsDefined(IsUpgradeAvailable)) { writer.WritePropertyName("upgradeAvailable"u8); - writer.WriteBooleanValue(UpgradeAvailable.Value); + writer.WriteBooleanValue(IsUpgradeAvailable.Value); } if (Optional.IsDefined(ProtectionStatus)) { @@ -91,7 +91,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureBackupServerContainer DeserializeAzureBackupServerContainer(JsonElement element) + internal static BackupServerContainer DeserializeBackupServerContainer(JsonElement element) { Optional canReRegister = default; Optional containerId = default; @@ -215,7 +215,7 @@ internal static AzureBackupServerContainer DeserializeAzureBackupServerContainer continue; } } - return new AzureBackupServerContainer(friendlyName.Value, Optional.ToNullable(backupManagementType), registrationStatus.Value, healthStatus.Value, containerType, protectableObjectType.Value, Optional.ToNullable(canReRegister), containerId.Value, Optional.ToNullable(protectedItemCount), dpmAgentVersion.Value, Optional.ToList(dpmServers), Optional.ToNullable(upgradeAvailable), protectionStatus.Value, extendedInfo.Value); + return new BackupServerContainer(friendlyName.Value, Optional.ToNullable(backupManagementType), registrationStatus.Value, healthStatus.Value, containerType, protectableObjectType.Value, Optional.ToNullable(canReRegister), containerId.Value, Optional.ToNullable(protectedItemCount), dpmAgentVersion.Value, Optional.ToList(dpmServers), Optional.ToNullable(upgradeAvailable), protectionStatus.Value, extendedInfo.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureBackupServerContainer.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupServerContainer.cs similarity index 66% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureBackupServerContainer.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupServerContainer.cs index c8b9152f5c6f5..ada93bb2f2f9d 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureBackupServerContainer.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupServerContainer.cs @@ -10,15 +10,15 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// AzureBackupServer (DPMVenus) workload-specific protection container. - public partial class AzureBackupServerContainer : DpmContainer + public partial class BackupServerContainer : DpmContainer { - /// Initializes a new instance of AzureBackupServerContainer. - public AzureBackupServerContainer() + /// Initializes a new instance of BackupServerContainer. + public BackupServerContainer() { ContainerType = ProtectableContainerType.AzureBackupServerContainer; } - /// Initializes a new instance of AzureBackupServerContainer. + /// Initializes a new instance of BackupServerContainer. /// Friendly name of the container. /// Type of backup management for the container. /// Status of registration of the container with the Recovery Services Vault. @@ -35,10 +35,10 @@ public AzureBackupServerContainer() /// Number of protected items in the BackupEngine. /// Backup engine Agent version. /// List of BackupEngines protecting the container. - /// To check if upgrade available. + /// To check if upgrade available. /// Protection status of the container. /// Extended Info of the container. - internal AzureBackupServerContainer(string friendlyName, BackupManagementType? backupManagementType, string registrationStatus, string healthStatus, ProtectableContainerType containerType, string protectableObjectType, bool? canReRegister, string containerId, long? protectedItemCount, string dpmAgentVersion, IList dpmServers, bool? upgradeAvailable, string protectionStatus, DpmContainerExtendedInfo extendedInfo) : base(friendlyName, backupManagementType, registrationStatus, healthStatus, containerType, protectableObjectType, canReRegister, containerId, protectedItemCount, dpmAgentVersion, dpmServers, upgradeAvailable, protectionStatus, extendedInfo) + internal BackupServerContainer(string friendlyName, BackupManagementType? backupManagementType, string registrationStatus, string healthStatus, ProtectableContainerType containerType, string protectableObjectType, bool? canReRegister, string containerId, long? protectedItemCount, string dpmAgentVersion, IList dpmServers, bool? isUpgradeAvailable, string protectionStatus, DpmContainerExtendedInfo extendedInfo) : base(friendlyName, backupManagementType, registrationStatus, healthStatus, containerType, protectableObjectType, canReRegister, containerId, protectedItemCount, dpmAgentVersion, dpmServers, isUpgradeAvailable, protectionStatus, extendedInfo) { ContainerType = containerType; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureBackupServerEngine.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupServerEngine.Serialization.cs similarity index 92% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureBackupServerEngine.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupServerEngine.Serialization.cs index 29721611a286a..0fdd87bc24a8d 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureBackupServerEngine.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupServerEngine.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureBackupServerEngine : IUtf8JsonSerializable + public partial class BackupServerEngine : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -80,7 +80,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureBackupServerEngine DeserializeAzureBackupServerEngine(JsonElement element) + internal static BackupServerEngine DeserializeBackupServerEngine(JsonElement element) { Optional friendlyName = default; Optional backupManagementType = default; @@ -188,7 +188,7 @@ internal static AzureBackupServerEngine DeserializeAzureBackupServerEngine(JsonE continue; } } - return new AzureBackupServerEngine(friendlyName.Value, Optional.ToNullable(backupManagementType), registrationStatus.Value, backupEngineState.Value, healthStatus.Value, backupEngineType, Optional.ToNullable(canReRegister), backupEngineId.Value, dpmVersion.Value, azureBackupAgentVersion.Value, Optional.ToNullable(isAzureBackupAgentUpgradeAvailable), Optional.ToNullable(isDpmUpgradeAvailable), extendedInfo.Value); + return new BackupServerEngine(friendlyName.Value, Optional.ToNullable(backupManagementType), registrationStatus.Value, backupEngineState.Value, healthStatus.Value, backupEngineType, Optional.ToNullable(canReRegister), backupEngineId.Value, dpmVersion.Value, azureBackupAgentVersion.Value, Optional.ToNullable(isAzureBackupAgentUpgradeAvailable), Optional.ToNullable(isDpmUpgradeAvailable), extendedInfo.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureBackupServerEngine.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupServerEngine.cs similarity index 64% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureBackupServerEngine.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupServerEngine.cs index 865028e3e6906..b5e40bcb84a61 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureBackupServerEngine.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupServerEngine.cs @@ -8,15 +8,15 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Backup engine type when Azure Backup Server is used to manage the backups. - public partial class AzureBackupServerEngine : BackupEngineBase + public partial class BackupServerEngine : BackupGenericEngine { - /// Initializes a new instance of AzureBackupServerEngine. - public AzureBackupServerEngine() + /// Initializes a new instance of BackupServerEngine. + public BackupServerEngine() { BackupEngineType = BackupEngineType.AzureBackupServerEngine; } - /// Initializes a new instance of AzureBackupServerEngine. + /// Initializes a new instance of BackupServerEngine. /// Friendly name of the backup engine. /// Type of backup management for the backup engine. /// Registration status of the backup engine with the Recovery Services Vault. @@ -30,7 +30,7 @@ public AzureBackupServerEngine() /// To check if backup agent upgrade available. /// To check if backup engine upgrade available. /// Extended info of the backupengine. - internal AzureBackupServerEngine(string friendlyName, BackupManagementType? backupManagementType, string registrationStatus, string backupEngineState, string healthStatus, BackupEngineType backupEngineType, bool? canReRegister, string backupEngineId, string dpmVersion, string azureBackupAgentVersion, bool? isAzureBackupAgentUpgradeAvailable, bool? isDpmUpgradeAvailable, BackupEngineExtendedInfo extendedInfo) : base(friendlyName, backupManagementType, registrationStatus, backupEngineState, healthStatus, backupEngineType, canReRegister, backupEngineId, dpmVersion, azureBackupAgentVersion, isAzureBackupAgentUpgradeAvailable, isDpmUpgradeAvailable, extendedInfo) + internal BackupServerEngine(string friendlyName, BackupManagementType? backupManagementType, string registrationStatus, string backupEngineState, string healthStatus, BackupEngineType backupEngineType, bool? canReRegister, string backupEngineId, string dpmVersion, string azureBackupAgentVersion, bool? isAzureBackupAgentUpgradeAvailable, bool? isDpmUpgradeAvailable, BackupEngineExtendedInfo extendedInfo) : base(friendlyName, backupManagementType, registrationStatus, backupEngineState, healthStatus, backupEngineType, canReRegister, backupEngineId, dpmVersion, azureBackupAgentVersion, isAzureBackupAgentUpgradeAvailable, isDpmUpgradeAvailable, extendedInfo) { BackupEngineType = backupEngineType; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupStatusContent.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupStatusContent.cs index c70bc335d5d57..695086d717757 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupStatusContent.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupStatusContent.cs @@ -5,6 +5,8 @@ #nullable disable +using Azure.Core; + namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// BackupStatus request. @@ -16,9 +18,9 @@ public BackupStatusContent() } /// Container Type - VM, SQLPaaS, DPM, AzureFileShare... - public DataSourceType? ResourceType { get; set; } + public BackupDataSourceType? ResourceType { get; set; } /// Entire ARM resource id of the resource. - public string ResourceId { get; set; } + public ResourceIdentifier ResourceId { get; set; } /// Protectable Item Logical Name. public string PoLogicalName { get; set; } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupStatusResponse.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupStatusResult.Serialization.cs similarity index 71% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupStatusResponse.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupStatusResult.Serialization.cs index 6833cccb3a398..6ab86a26d27df 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupStatusResponse.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupStatusResult.Serialization.cs @@ -10,13 +10,13 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class BackupStatusResponse + public partial class BackupStatusResult { - internal static BackupStatusResponse DeserializeBackupStatusResponse(JsonElement element) + internal static BackupStatusResult DeserializeBackupStatusResult(JsonElement element) { - Optional protectionStatus = default; - Optional vaultId = default; - Optional fabricName = default; + Optional protectionStatus = default; + Optional vaultId = default; + Optional fabricName = default; Optional containerName = default; Optional protectedItemName = default; Optional errorCode = default; @@ -32,12 +32,17 @@ internal static BackupStatusResponse DeserializeBackupStatusResponse(JsonElement property.ThrowNonNullablePropertyIsNull(); continue; } - protectionStatus = new ProtectionStatus(property.Value.GetString()); + protectionStatus = new BackupProtectionStatus(property.Value.GetString()); continue; } if (property.NameEquals("vaultId"u8)) { - vaultId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + vaultId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("fabricName"u8)) @@ -47,7 +52,7 @@ internal static BackupStatusResponse DeserializeBackupStatusResponse(JsonElement property.ThrowNonNullablePropertyIsNull(); continue; } - fabricName = new FabricName(property.Value.GetString()); + fabricName = new BackupFabricName(property.Value.GetString()); continue; } if (property.NameEquals("containerName"u8)) @@ -81,7 +86,7 @@ internal static BackupStatusResponse DeserializeBackupStatusResponse(JsonElement continue; } } - return new BackupStatusResponse(Optional.ToNullable(protectionStatus), vaultId.Value, Optional.ToNullable(fabricName), containerName.Value, protectedItemName.Value, errorCode.Value, errorMessage.Value, policyName.Value, registrationStatus.Value); + return new BackupStatusResult(Optional.ToNullable(protectionStatus), vaultId.Value, Optional.ToNullable(fabricName), containerName.Value, protectedItemName.Value, errorCode.Value, errorMessage.Value, policyName.Value, registrationStatus.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupStatusResponse.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupStatusResult.cs similarity index 82% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupStatusResponse.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupStatusResult.cs index f5af0910ac1b3..b73111b6c62fe 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupStatusResponse.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupStatusResult.cs @@ -5,17 +5,19 @@ #nullable disable +using Azure.Core; + namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// BackupStatus response. - public partial class BackupStatusResponse + public partial class BackupStatusResult { - /// Initializes a new instance of BackupStatusResponse. - internal BackupStatusResponse() + /// Initializes a new instance of BackupStatusResult. + internal BackupStatusResult() { } - /// Initializes a new instance of BackupStatusResponse. + /// Initializes a new instance of BackupStatusResult. /// Specifies whether the container is registered or not. /// Specifies the arm resource id of the vault. /// Specifies the fabric name - Azure or AD. @@ -25,7 +27,7 @@ internal BackupStatusResponse() /// ErrorMessage in case of intent failed. /// Specifies the policy name which is used for protection. /// Container registration status. - internal BackupStatusResponse(ProtectionStatus? protectionStatus, string vaultId, FabricName? fabricName, string containerName, string protectedItemName, string errorCode, string errorMessage, string policyName, string registrationStatus) + internal BackupStatusResult(BackupProtectionStatus? protectionStatus, ResourceIdentifier vaultId, BackupFabricName? fabricName, string containerName, string protectedItemName, string errorCode, string errorMessage, string policyName, string registrationStatus) { ProtectionStatus = protectionStatus; VaultId = vaultId; @@ -39,11 +41,11 @@ internal BackupStatusResponse(ProtectionStatus? protectionStatus, string vaultId } /// Specifies whether the container is registered or not. - public ProtectionStatus? ProtectionStatus { get; } + public BackupProtectionStatus? ProtectionStatus { get; } /// Specifies the arm resource id of the vault. - public string VaultId { get; } + public ResourceIdentifier VaultId { get; } /// Specifies the fabric name - Azure or AD. - public FabricName? FabricName { get; } + public BackupFabricName? FabricName { get; } /// Specifies the product specific container name. E.g. iaasvmcontainer;iaasvmcontainer;csname;vmname. public string ContainerName { get; } /// Specifies the product specific ds name. E.g. vm;iaasvmcontainer;csname;vmname. diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupStorageType.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupStorageType.cs new file mode 100644 index 0000000000000..1968781085ec9 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupStorageType.cs @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Models +{ + /// Storage type. + public readonly partial struct BackupStorageType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public BackupStorageType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string InvalidValue = "Invalid"; + private const string GeoRedundantValue = "GeoRedundant"; + private const string LocallyRedundantValue = "LocallyRedundant"; + private const string ZoneRedundantValue = "ZoneRedundant"; + private const string ReadAccessGeoZoneRedundantValue = "ReadAccessGeoZoneRedundant"; + + /// Invalid. + public static BackupStorageType Invalid { get; } = new BackupStorageType(InvalidValue); + /// GeoRedundant. + public static BackupStorageType GeoRedundant { get; } = new BackupStorageType(GeoRedundantValue); + /// LocallyRedundant. + public static BackupStorageType LocallyRedundant { get; } = new BackupStorageType(LocallyRedundantValue); + /// ZoneRedundant. + public static BackupStorageType ZoneRedundant { get; } = new BackupStorageType(ZoneRedundantValue); + /// ReadAccessGeoZoneRedundant. + public static BackupStorageType ReadAccessGeoZoneRedundant { get; } = new BackupStorageType(ReadAccessGeoZoneRedundantValue); + /// Determines if two values are the same. + public static bool operator ==(BackupStorageType left, BackupStorageType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(BackupStorageType left, BackupStorageType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator BackupStorageType(string value) => new BackupStorageType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is BackupStorageType other && Equals(other); + /// + public bool Equals(BackupStorageType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupStorageTypeState.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupStorageTypeState.cs new file mode 100644 index 0000000000000..b0217b0bb630b --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupStorageTypeState.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Models +{ + /// Locked or Unlocked. Once a machine is registered against a resource, the storageTypeState is always Locked. + public readonly partial struct BackupStorageTypeState : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public BackupStorageTypeState(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string InvalidValue = "Invalid"; + private const string LockedValue = "Locked"; + private const string UnlockedValue = "Unlocked"; + + /// Invalid. + public static BackupStorageTypeState Invalid { get; } = new BackupStorageTypeState(InvalidValue); + /// Locked. + public static BackupStorageTypeState Locked { get; } = new BackupStorageTypeState(LockedValue); + /// Unlocked. + public static BackupStorageTypeState Unlocked { get; } = new BackupStorageTypeState(UnlockedValue); + /// Determines if two values are the same. + public static bool operator ==(BackupStorageTypeState left, BackupStorageTypeState right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(BackupStorageTypeState left, BackupStorageTypeState right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator BackupStorageTypeState(string value) => new BackupStorageTypeState(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is BackupStorageTypeState other && Equals(other); + /// + public bool Equals(BackupStorageTypeState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TieringPolicy.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupTieringPolicy.Serialization.cs similarity index 89% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TieringPolicy.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupTieringPolicy.Serialization.cs index c91e75916c6c7..17f5bc3ee3db3 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TieringPolicy.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupTieringPolicy.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class TieringPolicy : IUtf8JsonSerializable + public partial class BackupTieringPolicy : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -33,7 +33,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static TieringPolicy DeserializeTieringPolicy(JsonElement element) + internal static BackupTieringPolicy DeserializeBackupTieringPolicy(JsonElement element) { Optional tieringMode = default; Optional duration = default; @@ -71,7 +71,7 @@ internal static TieringPolicy DeserializeTieringPolicy(JsonElement element) continue; } } - return new TieringPolicy(Optional.ToNullable(tieringMode), Optional.ToNullable(duration), Optional.ToNullable(durationType)); + return new BackupTieringPolicy(Optional.ToNullable(tieringMode), Optional.ToNullable(duration), Optional.ToNullable(durationType)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TieringPolicy.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupTieringPolicy.cs similarity index 86% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TieringPolicy.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupTieringPolicy.cs index 8a3f1c8b5bcd3..d99c4eb5ac9eb 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TieringPolicy.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupTieringPolicy.cs @@ -11,14 +11,14 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models /// Tiering Policy for a target tier. /// If the policy is not specified for a given target tier, service retains the existing configured tiering policy for that tier /// - public partial class TieringPolicy + public partial class BackupTieringPolicy { - /// Initializes a new instance of TieringPolicy. - public TieringPolicy() + /// Initializes a new instance of BackupTieringPolicy. + public BackupTieringPolicy() { } - /// Initializes a new instance of TieringPolicy. + /// Initializes a new instance of BackupTieringPolicy. /// /// Tiering Mode to control automatic tiering of recovery points. Supported values are: /// 1. TierRecommended: Tier all recovery points recommended to be tiered @@ -33,7 +33,7 @@ public TieringPolicy() /// Retention duration type: days/weeks/months/years /// Used only if TieringMode is set to TierAfter /// - internal TieringPolicy(TieringMode? tieringMode, int? durationValue, RetentionDurationType? durationType) + internal BackupTieringPolicy(TieringMode? tieringMode, int? durationValue, RetentionDurationType? durationType) { TieringMode = tieringMode; DurationValue = durationValue; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupUsagesUnit.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupUsagesUnit.cs new file mode 100644 index 0000000000000..4324a76a785b5 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupUsagesUnit.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Models +{ + /// Unit of the usage. + public readonly partial struct BackupUsagesUnit : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public BackupUsagesUnit(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string CountValue = "Count"; + private const string BytesValue = "Bytes"; + private const string SecondsValue = "Seconds"; + private const string PercentValue = "Percent"; + private const string CountPerSecondValue = "CountPerSecond"; + private const string BytesPerSecondValue = "BytesPerSecond"; + + /// Count. + public static BackupUsagesUnit Count { get; } = new BackupUsagesUnit(CountValue); + /// Bytes. + public static BackupUsagesUnit Bytes { get; } = new BackupUsagesUnit(BytesValue); + /// Seconds. + public static BackupUsagesUnit Seconds { get; } = new BackupUsagesUnit(SecondsValue); + /// Percent. + public static BackupUsagesUnit Percent { get; } = new BackupUsagesUnit(PercentValue); + /// CountPerSecond. + public static BackupUsagesUnit CountPerSecond { get; } = new BackupUsagesUnit(CountPerSecondValue); + /// BytesPerSecond. + public static BackupUsagesUnit BytesPerSecond { get; } = new BackupUsagesUnit(BytesPerSecondValue); + /// Determines if two values are the same. + public static bool operator ==(BackupUsagesUnit left, BackupUsagesUnit right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(BackupUsagesUnit left, BackupUsagesUnit right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator BackupUsagesUnit(string value) => new BackupUsagesUnit(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is BackupUsagesUnit other && Equals(other); + /// + public bool Equals(BackupUsagesUnit other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupValidationStatus.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupValidationStatus.cs new file mode 100644 index 0000000000000..cb52f363ac578 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupValidationStatus.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Models +{ + /// Validation Status. + public readonly partial struct BackupValidationStatus : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public BackupValidationStatus(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string InvalidValue = "Invalid"; + private const string SucceededValue = "Succeeded"; + private const string FailedValue = "Failed"; + + /// Invalid. + public static BackupValidationStatus Invalid { get; } = new BackupValidationStatus(InvalidValue); + /// Succeeded. + public static BackupValidationStatus Succeeded { get; } = new BackupValidationStatus(SucceededValue); + /// Failed. + public static BackupValidationStatus Failed { get; } = new BackupValidationStatus(FailedValue); + /// Determines if two values are the same. + public static bool operator ==(BackupValidationStatus left, BackupValidationStatus right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(BackupValidationStatus left, BackupValidationStatus right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator BackupValidationStatus(string value) => new BackupValidationStatus(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is BackupValidationStatus other && Equals(other); + /// + public bool Equals(BackupValidationStatus other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupWeekOfMonth.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupWeekOfMonth.Serialization.cs new file mode 100644 index 0000000000000..dd23ecc3d8663 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupWeekOfMonth.Serialization.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Models +{ + internal static partial class BackupWeekOfMonthExtensions + { + public static string ToSerialString(this BackupWeekOfMonth value) => value switch + { + BackupWeekOfMonth.First => "First", + BackupWeekOfMonth.Second => "Second", + BackupWeekOfMonth.Third => "Third", + BackupWeekOfMonth.Fourth => "Fourth", + BackupWeekOfMonth.Last => "Last", + BackupWeekOfMonth.Invalid => "Invalid", + _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown BackupWeekOfMonth value.") + }; + + public static BackupWeekOfMonth ToBackupWeekOfMonth(this string value) + { + if (string.Equals(value, "First", StringComparison.InvariantCultureIgnoreCase)) return BackupWeekOfMonth.First; + if (string.Equals(value, "Second", StringComparison.InvariantCultureIgnoreCase)) return BackupWeekOfMonth.Second; + if (string.Equals(value, "Third", StringComparison.InvariantCultureIgnoreCase)) return BackupWeekOfMonth.Third; + if (string.Equals(value, "Fourth", StringComparison.InvariantCultureIgnoreCase)) return BackupWeekOfMonth.Fourth; + if (string.Equals(value, "Last", StringComparison.InvariantCultureIgnoreCase)) return BackupWeekOfMonth.Last; + if (string.Equals(value, "Invalid", StringComparison.InvariantCultureIgnoreCase)) return BackupWeekOfMonth.Invalid; + throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown BackupWeekOfMonth value."); + } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WeekOfMonth.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupWeekOfMonth.cs similarity index 86% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WeekOfMonth.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupWeekOfMonth.cs index 29275018d3aad..0d9017b03eca1 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WeekOfMonth.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupWeekOfMonth.cs @@ -7,8 +7,8 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - /// The WeekOfMonth. - public enum WeekOfMonth + /// The BackupWeekOfMonth. + public enum BackupWeekOfMonth { /// First. First, diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WeeklySchedule.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupWeeklySchedule.Serialization.cs similarity index 83% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WeeklySchedule.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupWeeklySchedule.Serialization.cs index 20c3bb49c1fb1..72c8aa210b201 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WeeklySchedule.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupWeeklySchedule.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class WeeklySchedule : IUtf8JsonSerializable + public partial class BackupWeeklySchedule : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -40,9 +40,9 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static WeeklySchedule DeserializeWeeklySchedule(JsonElement element) + internal static BackupWeeklySchedule DeserializeBackupWeeklySchedule(JsonElement element) { - Optional> scheduleRunDays = default; + Optional> scheduleRunDays = default; Optional> scheduleRunTimes = default; foreach (var property in element.EnumerateObject()) { @@ -53,10 +53,10 @@ internal static WeeklySchedule DeserializeWeeklySchedule(JsonElement element) property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(item.GetString().ToDayOfWeek()); + array.Add(item.GetString().ToBackupDayOfWeek()); } scheduleRunDays = array; continue; @@ -77,7 +77,7 @@ internal static WeeklySchedule DeserializeWeeklySchedule(JsonElement element) continue; } } - return new WeeklySchedule(Optional.ToList(scheduleRunDays), Optional.ToList(scheduleRunTimes)); + return new BackupWeeklySchedule(Optional.ToList(scheduleRunDays), Optional.ToList(scheduleRunTimes)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WeeklySchedule.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupWeeklySchedule.cs similarity index 60% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WeeklySchedule.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupWeeklySchedule.cs index 4e0776e9706bd..2f5253f9129d7 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WeeklySchedule.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupWeeklySchedule.cs @@ -11,27 +11,27 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - /// The WeeklySchedule. - public partial class WeeklySchedule + /// The BackupWeeklySchedule. + public partial class BackupWeeklySchedule { - /// Initializes a new instance of WeeklySchedule. - public WeeklySchedule() + /// Initializes a new instance of BackupWeeklySchedule. + public BackupWeeklySchedule() { - ScheduleRunDays = new ChangeTrackingList(); + ScheduleRunDays = new ChangeTrackingList(); ScheduleRunTimes = new ChangeTrackingList(); } - /// Initializes a new instance of WeeklySchedule. + /// Initializes a new instance of BackupWeeklySchedule. /// /// List of times of day this schedule has to be run. - internal WeeklySchedule(IList scheduleRunDays, IList scheduleRunTimes) + internal BackupWeeklySchedule(IList scheduleRunDays, IList scheduleRunTimes) { ScheduleRunDays = scheduleRunDays; ScheduleRunTimes = scheduleRunTimes; } /// Gets the schedule run days. - public IList ScheduleRunDays { get; } + public IList ScheduleRunDays { get; } /// List of times of day this schedule has to be run. public IList ScheduleRunTimes { get; } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupWorkloadType.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupWorkloadType.cs new file mode 100644 index 0000000000000..ac6cb94f356f5 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupWorkloadType.cs @@ -0,0 +1,93 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Models +{ + /// Type of workload for the backup management. + public readonly partial struct BackupWorkloadType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public BackupWorkloadType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string InvalidValue = "Invalid"; + private const string VmValue = "VM"; + private const string FileFolderValue = "FileFolder"; + private const string AzureSqlDBValue = "AzureSqlDb"; + private const string SqlDBValue = "SQLDB"; + private const string ExchangeValue = "Exchange"; + private const string SharepointValue = "Sharepoint"; + private const string VMwareVmValue = "VMwareVM"; + private const string SystemStateValue = "SystemState"; + private const string ClientValue = "Client"; + private const string GenericDataSourceValue = "GenericDataSource"; + private const string SqlDatabaseValue = "SQLDataBase"; + private const string AzureFileShareValue = "AzureFileShare"; + private const string SapHanaDatabaseValue = "SAPHanaDatabase"; + private const string SapAseDatabaseValue = "SAPAseDatabase"; + private const string SapHanaDBInstanceValue = "SAPHanaDBInstance"; + + /// Invalid. + public static BackupWorkloadType Invalid { get; } = new BackupWorkloadType(InvalidValue); + /// VM. + public static BackupWorkloadType Vm { get; } = new BackupWorkloadType(VmValue); + /// FileFolder. + public static BackupWorkloadType FileFolder { get; } = new BackupWorkloadType(FileFolderValue); + /// AzureSqlDb. + public static BackupWorkloadType AzureSqlDB { get; } = new BackupWorkloadType(AzureSqlDBValue); + /// SQLDB. + public static BackupWorkloadType SqlDB { get; } = new BackupWorkloadType(SqlDBValue); + /// Exchange. + public static BackupWorkloadType Exchange { get; } = new BackupWorkloadType(ExchangeValue); + /// Sharepoint. + public static BackupWorkloadType Sharepoint { get; } = new BackupWorkloadType(SharepointValue); + /// VMwareVM. + public static BackupWorkloadType VMwareVm { get; } = new BackupWorkloadType(VMwareVmValue); + /// SystemState. + public static BackupWorkloadType SystemState { get; } = new BackupWorkloadType(SystemStateValue); + /// Client. + public static BackupWorkloadType Client { get; } = new BackupWorkloadType(ClientValue); + /// GenericDataSource. + public static BackupWorkloadType GenericDataSource { get; } = new BackupWorkloadType(GenericDataSourceValue); + /// SQLDataBase. + public static BackupWorkloadType SqlDatabase { get; } = new BackupWorkloadType(SqlDatabaseValue); + /// AzureFileShare. + public static BackupWorkloadType AzureFileShare { get; } = new BackupWorkloadType(AzureFileShareValue); + /// SAPHanaDatabase. + public static BackupWorkloadType SapHanaDatabase { get; } = new BackupWorkloadType(SapHanaDatabaseValue); + /// SAPAseDatabase. + public static BackupWorkloadType SapAseDatabase { get; } = new BackupWorkloadType(SapAseDatabaseValue); + /// SAPHanaDBInstance. + public static BackupWorkloadType SapHanaDBInstance { get; } = new BackupWorkloadType(SapHanaDBInstanceValue); + /// Determines if two values are the same. + public static bool operator ==(BackupWorkloadType left, BackupWorkloadType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(BackupWorkloadType left, BackupWorkloadType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator BackupWorkloadType(string value) => new BackupWorkloadType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is BackupWorkloadType other && Equals(other); + /// + public bool Equals(BackupWorkloadType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BEKDetails.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BekDetails.Serialization.cs similarity index 77% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BEKDetails.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BekDetails.Serialization.cs index 9b3b00db2c660..a8cd8806be1ce 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BEKDetails.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BekDetails.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class BEKDetails : IUtf8JsonSerializable + public partial class BekDetails : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -34,10 +34,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static BEKDetails DeserializeBEKDetails(JsonElement element) + internal static BekDetails DeserializeBekDetails(JsonElement element) { Optional secretUrl = default; - Optional secretVaultId = default; + Optional secretVaultId = default; Optional secretData = default; foreach (var property in element.EnumerateObject()) { @@ -53,7 +53,12 @@ internal static BEKDetails DeserializeBEKDetails(JsonElement element) } if (property.NameEquals("secretVaultId"u8)) { - secretVaultId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + secretVaultId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("secretData"u8)) @@ -62,7 +67,7 @@ internal static BEKDetails DeserializeBEKDetails(JsonElement element) continue; } } - return new BEKDetails(secretUrl.Value, secretVaultId.Value, secretData.Value); + return new BekDetails(secretUrl.Value, secretVaultId.Value, secretData.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BEKDetails.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BekDetails.cs similarity index 72% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BEKDetails.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BekDetails.cs index 68a4c6f401d75..c9fd9c8ecbe79 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BEKDetails.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BekDetails.cs @@ -6,22 +6,23 @@ #nullable disable using System; +using Azure.Core; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// BEK is bitlocker encryption key. - public partial class BEKDetails + public partial class BekDetails { - /// Initializes a new instance of BEKDetails. - public BEKDetails() + /// Initializes a new instance of BekDetails. + public BekDetails() { } - /// Initializes a new instance of BEKDetails. + /// Initializes a new instance of BekDetails. /// Secret is BEK. /// ID of the Key Vault where this Secret is stored. /// BEK data. - internal BEKDetails(Uri secretUri, string secretVaultId, string secretData) + internal BekDetails(Uri secretUri, ResourceIdentifier secretVaultId, string secretData) { SecretUri = secretUri; SecretVaultId = secretVaultId; @@ -31,7 +32,7 @@ internal BEKDetails(Uri secretUri, string secretVaultId, string secretData) /// Secret is BEK. public Uri SecretUri { get; set; } /// ID of the Key Vault where this Secret is stored. - public string SecretVaultId { get; set; } + public ResourceIdentifier SecretVaultId { get; set; } /// BEK data. public string SecretData { get; set; } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ClientScriptForConnect.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ClientScriptForConnect.Serialization.cs deleted file mode 100644 index 2d98ad36fdba1..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ClientScriptForConnect.Serialization.cs +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - public partial class ClientScriptForConnect - { - internal static ClientScriptForConnect DeserializeClientScriptForConnect(JsonElement element) - { - Optional scriptContent = default; - Optional scriptExtension = default; - Optional osType = default; - Optional url = default; - Optional scriptNameSuffix = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("scriptContent"u8)) - { - scriptContent = property.Value.GetString(); - continue; - } - if (property.NameEquals("scriptExtension"u8)) - { - scriptExtension = property.Value.GetString(); - continue; - } - if (property.NameEquals("osType"u8)) - { - osType = property.Value.GetString(); - continue; - } - if (property.NameEquals("url"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - url = null; - continue; - } - url = new Uri(property.Value.GetString()); - continue; - } - if (property.NameEquals("scriptNameSuffix"u8)) - { - scriptNameSuffix = property.Value.GetString(); - continue; - } - } - return new ClientScriptForConnect(scriptContent.Value, scriptExtension.Value, osType.Value, url.Value, scriptNameSuffix.Value); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ClientScriptForConnect.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ClientScriptForConnect.cs deleted file mode 100644 index b19faa9da9b13..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ClientScriptForConnect.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - /// Client script details for file / folder restore. - public partial class ClientScriptForConnect - { - /// Initializes a new instance of ClientScriptForConnect. - internal ClientScriptForConnect() - { - } - - /// Initializes a new instance of ClientScriptForConnect. - /// File content of the client script for file / folder restore. - /// File extension of the client script for file / folder restore - .ps1 , .sh , etc. - /// OS type - Windows, Linux etc. for which this file / folder restore client script works. - /// URL of Executable from where to source the content. If this is not null then ScriptContent should not be used. - /// - /// Mandatory suffix that should be added to the name of script that is given for download to user. - /// If its null or empty then , ignore it. - /// - internal ClientScriptForConnect(string scriptContent, string scriptExtension, string osType, Uri uri, string scriptNameSuffix) - { - ScriptContent = scriptContent; - ScriptExtension = scriptExtension; - OSType = osType; - Uri = uri; - ScriptNameSuffix = scriptNameSuffix; - } - - /// File content of the client script for file / folder restore. - public string ScriptContent { get; } - /// File extension of the client script for file / folder restore - .ps1 , .sh , etc. - public string ScriptExtension { get; } - /// OS type - Windows, Linux etc. for which this file / folder restore client script works. - public string OSType { get; } - /// URL of Executable from where to source the content. If this is not null then ScriptContent should not be used. - public Uri Uri { get; } - /// - /// Mandatory suffix that should be added to the name of script that is given for download to user. - /// If its null or empty then , ignore it. - /// - public string ScriptNameSuffix { get; } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ContainerIdentityInfo.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ContainerIdentityInfo.Serialization.cs index c6eb5b2e9d1d2..e44f3b773dc77 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ContainerIdentityInfo.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ContainerIdentityInfo.Serialization.cs @@ -5,6 +5,7 @@ #nullable disable +using System; using System.Text.Json; using Azure.Core; @@ -23,7 +24,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(AadTenantId)) { writer.WritePropertyName("aadTenantId"u8); - writer.WriteStringValue(AadTenantId); + writer.WriteStringValue(AadTenantId.Value); } if (Optional.IsDefined(ServicePrincipalClientId)) { @@ -41,7 +42,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) internal static ContainerIdentityInfo DeserializeContainerIdentityInfo(JsonElement element) { Optional uniqueName = default; - Optional aadTenantId = default; + Optional aadTenantId = default; Optional servicePrincipalClientId = default; Optional audience = default; foreach (var property in element.EnumerateObject()) @@ -53,7 +54,12 @@ internal static ContainerIdentityInfo DeserializeContainerIdentityInfo(JsonEleme } if (property.NameEquals("aadTenantId"u8)) { - aadTenantId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + aadTenantId = property.Value.GetGuid(); continue; } if (property.NameEquals("servicePrincipalClientId"u8)) @@ -67,7 +73,7 @@ internal static ContainerIdentityInfo DeserializeContainerIdentityInfo(JsonEleme continue; } } - return new ContainerIdentityInfo(uniqueName.Value, aadTenantId.Value, servicePrincipalClientId.Value, audience.Value); + return new ContainerIdentityInfo(uniqueName.Value, Optional.ToNullable(aadTenantId), servicePrincipalClientId.Value, audience.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ContainerIdentityInfo.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ContainerIdentityInfo.cs index cc28e6c915a2f..ca1ce5715b23d 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ContainerIdentityInfo.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ContainerIdentityInfo.cs @@ -5,6 +5,8 @@ #nullable disable +using System; + namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Container identity information. @@ -20,7 +22,7 @@ public ContainerIdentityInfo() /// Protection container identity - AAD Tenant. /// Protection container identity - AAD Service Principal. /// Protection container identity - Audience. - internal ContainerIdentityInfo(string uniqueName, string aadTenantId, string servicePrincipalClientId, string audience) + internal ContainerIdentityInfo(string uniqueName, Guid? aadTenantId, string servicePrincipalClientId, string audience) { UniqueName = uniqueName; AadTenantId = aadTenantId; @@ -31,7 +33,7 @@ internal ContainerIdentityInfo(string uniqueName, string aadTenantId, string ser /// Unique name of the container. public string UniqueName { get; set; } /// Protection container identity - AAD Tenant. - public string AadTenantId { get; set; } + public Guid? AadTenantId { get; set; } /// Protection container identity - AAD Service Principal. public string ServicePrincipalClientId { get; set; } /// Protection container identity - Audience. diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/CopyOption.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/CopyOption.cs deleted file mode 100644 index 8c95cc2d53c1b..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/CopyOption.cs +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - /// Options to resolve copy conflicts. - public readonly partial struct CopyOption : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public CopyOption(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string InvalidValue = "Invalid"; - private const string CreateCopyValue = "CreateCopy"; - private const string SkipValue = "Skip"; - private const string OverwriteValue = "Overwrite"; - private const string FailOnConflictValue = "FailOnConflict"; - - /// Invalid. - public static CopyOption Invalid { get; } = new CopyOption(InvalidValue); - /// CreateCopy. - public static CopyOption CreateCopy { get; } = new CopyOption(CreateCopyValue); - /// Skip. - public static CopyOption Skip { get; } = new CopyOption(SkipValue); - /// Overwrite. - public static CopyOption Overwrite { get; } = new CopyOption(OverwriteValue); - /// FailOnConflict. - public static CopyOption FailOnConflict { get; } = new CopyOption(FailOnConflictValue); - /// Determines if two values are the same. - public static bool operator ==(CopyOption left, CopyOption right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(CopyOption left, CopyOption right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator CopyOption(string value) => new CopyOption(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is CopyOption other && Equals(other); - /// - public bool Equals(CopyOption other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/CreateMode.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/CreateMode.cs deleted file mode 100644 index 9230dfd7579d0..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/CreateMode.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. - public readonly partial struct CreateMode : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public CreateMode(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string InvalidValue = "Invalid"; - private const string DefaultValue = "Default"; - private const string RecoverValue = "Recover"; - - /// Invalid. - public static CreateMode Invalid { get; } = new CreateMode(InvalidValue); - /// Default. - public static CreateMode Default { get; } = new CreateMode(DefaultValue); - /// Recover. - public static CreateMode Recover { get; } = new CreateMode(RecoverValue); - /// Determines if two values are the same. - public static bool operator ==(CreateMode left, CreateMode right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(CreateMode left, CreateMode right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator CreateMode(string value) => new CreateMode(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is CreateMode other && Equals(other); - /// - public bool Equals(CreateMode other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DailyRetentionFormat.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DailyRetentionFormat.Serialization.cs index cb5d0399e7a08..9bd02b6e4d11a 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DailyRetentionFormat.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DailyRetentionFormat.Serialization.cs @@ -31,7 +31,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) internal static DailyRetentionFormat DeserializeDailyRetentionFormat(JsonElement element) { - Optional> daysOfTheMonth = default; + Optional> daysOfTheMonth = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("daysOfTheMonth"u8)) @@ -41,10 +41,10 @@ internal static DailyRetentionFormat DeserializeDailyRetentionFormat(JsonElement property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(Day.DeserializeDay(item)); + array.Add(BackupDay.DeserializeBackupDay(item)); } daysOfTheMonth = array; continue; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DailyRetentionFormat.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DailyRetentionFormat.cs index 010552c4713df..48f20c8ee4fd5 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DailyRetentionFormat.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DailyRetentionFormat.cs @@ -16,17 +16,17 @@ internal partial class DailyRetentionFormat /// Initializes a new instance of DailyRetentionFormat. public DailyRetentionFormat() { - DaysOfTheMonth = new ChangeTrackingList(); + DaysOfTheMonth = new ChangeTrackingList(); } /// Initializes a new instance of DailyRetentionFormat. /// List of days of the month. - internal DailyRetentionFormat(IList daysOfTheMonth) + internal DailyRetentionFormat(IList daysOfTheMonth) { DaysOfTheMonth = daysOfTheMonth; } /// List of days of the month. - public IList DaysOfTheMonth { get; } + public IList DaysOfTheMonth { get; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DataSourceType.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DataSourceType.cs deleted file mode 100644 index 22048efff3611..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DataSourceType.cs +++ /dev/null @@ -1,93 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - /// Type of workload this item represents. - public readonly partial struct DataSourceType : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public DataSourceType(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string InvalidValue = "Invalid"; - private const string VmValue = "VM"; - private const string FileFolderValue = "FileFolder"; - private const string AzureSqlDbValue = "AzureSqlDb"; - private const string SqlDBValue = "SQLDB"; - private const string ExchangeValue = "Exchange"; - private const string SharepointValue = "Sharepoint"; - private const string VMwareVmValue = "VMwareVM"; - private const string SystemStateValue = "SystemState"; - private const string ClientValue = "Client"; - private const string GenericDataSourceValue = "GenericDataSource"; - private const string SQLDataBaseValue = "SQLDataBase"; - private const string AzureFileShareValue = "AzureFileShare"; - private const string SAPHanaDatabaseValue = "SAPHanaDatabase"; - private const string SAPAseDatabaseValue = "SAPAseDatabase"; - private const string SAPHanaDBInstanceValue = "SAPHanaDBInstance"; - - /// Invalid. - public static DataSourceType Invalid { get; } = new DataSourceType(InvalidValue); - /// VM. - public static DataSourceType Vm { get; } = new DataSourceType(VmValue); - /// FileFolder. - public static DataSourceType FileFolder { get; } = new DataSourceType(FileFolderValue); - /// AzureSqlDb. - public static DataSourceType AzureSqlDb { get; } = new DataSourceType(AzureSqlDbValue); - /// SQLDB. - public static DataSourceType SqlDB { get; } = new DataSourceType(SqlDBValue); - /// Exchange. - public static DataSourceType Exchange { get; } = new DataSourceType(ExchangeValue); - /// Sharepoint. - public static DataSourceType Sharepoint { get; } = new DataSourceType(SharepointValue); - /// VMwareVM. - public static DataSourceType VMwareVm { get; } = new DataSourceType(VMwareVmValue); - /// SystemState. - public static DataSourceType SystemState { get; } = new DataSourceType(SystemStateValue); - /// Client. - public static DataSourceType Client { get; } = new DataSourceType(ClientValue); - /// GenericDataSource. - public static DataSourceType GenericDataSource { get; } = new DataSourceType(GenericDataSourceValue); - /// SQLDataBase. - public static DataSourceType SQLDataBase { get; } = new DataSourceType(SQLDataBaseValue); - /// AzureFileShare. - public static DataSourceType AzureFileShare { get; } = new DataSourceType(AzureFileShareValue); - /// SAPHanaDatabase. - public static DataSourceType SAPHanaDatabase { get; } = new DataSourceType(SAPHanaDatabaseValue); - /// SAPAseDatabase. - public static DataSourceType SAPAseDatabase { get; } = new DataSourceType(SAPAseDatabaseValue); - /// SAPHanaDBInstance. - public static DataSourceType SAPHanaDBInstance { get; } = new DataSourceType(SAPHanaDBInstanceValue); - /// Determines if two values are the same. - public static bool operator ==(DataSourceType left, DataSourceType right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(DataSourceType left, DataSourceType right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator DataSourceType(string value) => new DataSourceType(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is DataSourceType other && Equals(other); - /// - public bool Equals(DataSourceType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DayOfWeek.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DayOfWeek.Serialization.cs deleted file mode 100644 index ebfadf755346f..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DayOfWeek.Serialization.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - internal static partial class DayOfWeekExtensions - { - public static string ToSerialString(this DayOfWeek value) => value switch - { - DayOfWeek.Sunday => "Sunday", - DayOfWeek.Monday => "Monday", - DayOfWeek.Tuesday => "Tuesday", - DayOfWeek.Wednesday => "Wednesday", - DayOfWeek.Thursday => "Thursday", - DayOfWeek.Friday => "Friday", - DayOfWeek.Saturday => "Saturday", - _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DayOfWeek value.") - }; - - public static DayOfWeek ToDayOfWeek(this string value) - { - if (string.Equals(value, "Sunday", StringComparison.InvariantCultureIgnoreCase)) return DayOfWeek.Sunday; - if (string.Equals(value, "Monday", StringComparison.InvariantCultureIgnoreCase)) return DayOfWeek.Monday; - if (string.Equals(value, "Tuesday", StringComparison.InvariantCultureIgnoreCase)) return DayOfWeek.Tuesday; - if (string.Equals(value, "Wednesday", StringComparison.InvariantCultureIgnoreCase)) return DayOfWeek.Wednesday; - if (string.Equals(value, "Thursday", StringComparison.InvariantCultureIgnoreCase)) return DayOfWeek.Thursday; - if (string.Equals(value, "Friday", StringComparison.InvariantCultureIgnoreCase)) return DayOfWeek.Friday; - if (string.Equals(value, "Saturday", StringComparison.InvariantCultureIgnoreCase)) return DayOfWeek.Saturday; - throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DayOfWeek value."); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DedupState.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DedupState.cs deleted file mode 100644 index a3053b390b352..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DedupState.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - /// Vault Dedup state. - public readonly partial struct DedupState : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public DedupState(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string InvalidValue = "Invalid"; - private const string EnabledValue = "Enabled"; - private const string DisabledValue = "Disabled"; - - /// Invalid. - public static DedupState Invalid { get; } = new DedupState(InvalidValue); - /// Enabled. - public static DedupState Enabled { get; } = new DedupState(EnabledValue); - /// Disabled. - public static DedupState Disabled { get; } = new DedupState(DisabledValue); - /// Determines if two values are the same. - public static bool operator ==(DedupState left, DedupState right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(DedupState left, DedupState right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator DedupState(string value) => new DedupState(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is DedupState other && Equals(other); - /// - public bool Equals(DedupState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DistributedNodesInfo.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DistributedNodesInfo.Serialization.cs index ec43f00654d20..1dfd98fa8669a 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DistributedNodesInfo.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DistributedNodesInfo.Serialization.cs @@ -37,7 +37,7 @@ internal static DistributedNodesInfo DeserializeDistributedNodesInfo(JsonElement { Optional nodeName = default; Optional status = default; - Optional errorDetail = default; + Optional errorDetail = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("nodeName"u8)) @@ -57,7 +57,7 @@ internal static DistributedNodesInfo DeserializeDistributedNodesInfo(JsonElement property.ThrowNonNullablePropertyIsNull(); continue; } - errorDetail = ErrorDetail.DeserializeErrorDetail(property.Value); + errorDetail = BackupErrorDetail.DeserializeBackupErrorDetail(property.Value); continue; } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DistributedNodesInfo.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DistributedNodesInfo.cs index 79680c6331b20..dc02fcbe5b561 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DistributedNodesInfo.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DistributedNodesInfo.cs @@ -22,7 +22,7 @@ public DistributedNodesInfo() /// Failed | Succeeded /// /// Error Details if the Status is non-success. - internal DistributedNodesInfo(string nodeName, string status, ErrorDetail errorDetail) + internal DistributedNodesInfo(string nodeName, string status, BackupErrorDetail errorDetail) { NodeName = nodeName; Status = status; @@ -37,6 +37,6 @@ internal DistributedNodesInfo(string nodeName, string status, ErrorDetail errorD /// public string Status { get; set; } /// Error Details if the Status is non-success. - public ErrorDetail ErrorDetail { get; set; } + public BackupErrorDetail ErrorDetail { get; set; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmBackupEngine.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmBackupEngine.cs index a35cc67e83ce0..2772465ede21e 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmBackupEngine.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmBackupEngine.cs @@ -8,7 +8,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Data Protection Manager (DPM) specific backup engine. - public partial class DpmBackupEngine : BackupEngineBase + public partial class DpmBackupEngine : BackupGenericEngine { /// Initializes a new instance of DpmBackupEngine. public DpmBackupEngine() diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmJob.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmBackupJob.Serialization.cs similarity index 92% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmJob.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmBackupJob.Serialization.cs index 5883ed97f7322..44e1f5f2eef4e 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmJob.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmBackupJob.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class DpmJob : IUtf8JsonSerializable + public partial class DpmBackupJob : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -107,7 +107,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static DpmJob DeserializeDpmJob(JsonElement element) + internal static DpmBackupJob DeserializeDpmBackupJob(JsonElement element) { Optional duration = default; Optional dpmServerName = default; @@ -116,7 +116,7 @@ internal static DpmJob DeserializeDpmJob(JsonElement element) Optional workloadType = default; Optional> actionsInfo = default; Optional> errorDetails = default; - Optional extendedInfo = default; + Optional extendedInfo = default; Optional entityFriendlyName = default; Optional backupManagementType = default; Optional operation = default; @@ -194,7 +194,7 @@ internal static DpmJob DeserializeDpmJob(JsonElement element) property.ThrowNonNullablePropertyIsNull(); continue; } - extendedInfo = DpmJobExtendedInfo.DeserializeDpmJobExtendedInfo(property.Value); + extendedInfo = DpmBackupJobExtendedInfo.DeserializeDpmBackupJobExtendedInfo(property.Value); continue; } if (property.NameEquals("entityFriendlyName"u8)) @@ -253,7 +253,7 @@ internal static DpmJob DeserializeDpmJob(JsonElement element) continue; } } - return new DpmJob(entityFriendlyName.Value, Optional.ToNullable(backupManagementType), operation.Value, status.Value, Optional.ToNullable(startTime), Optional.ToNullable(endTime), activityId.Value, jobType, Optional.ToNullable(duration), dpmServerName.Value, containerName.Value, containerType.Value, workloadType.Value, Optional.ToList(actionsInfo), Optional.ToList(errorDetails), extendedInfo.Value); + return new DpmBackupJob(entityFriendlyName.Value, Optional.ToNullable(backupManagementType), operation.Value, status.Value, Optional.ToNullable(startTime), Optional.ToNullable(endTime), activityId.Value, jobType, Optional.ToNullable(duration), dpmServerName.Value, containerName.Value, containerType.Value, workloadType.Value, Optional.ToList(actionsInfo), Optional.ToList(errorDetails), extendedInfo.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmJob.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmBackupJob.cs similarity index 79% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmJob.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmBackupJob.cs index 811abea6a9a3e..0bf00d3d0631f 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmJob.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmBackupJob.cs @@ -12,17 +12,17 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// DPM workload-specific job object. - public partial class DpmJob : Job + public partial class DpmBackupJob : BackupGenericJob { - /// Initializes a new instance of DpmJob. - public DpmJob() + /// Initializes a new instance of DpmBackupJob. + public DpmBackupJob() { ActionsInfo = new ChangeTrackingList(); ErrorDetails = new ChangeTrackingList(); JobType = "DpmJob"; } - /// Initializes a new instance of DpmJob. + /// Initializes a new instance of DpmBackupJob. /// Friendly name of the entity on which the current job is executing. /// Backup management type to execute the current job. /// The operation name. @@ -39,7 +39,7 @@ public DpmJob() /// The state/actions applicable on this job like cancel/retry. /// The errors. /// Additional information for this job. - internal DpmJob(string entityFriendlyName, BackupManagementType? backupManagementType, string operation, string status, DateTimeOffset? startOn, DateTimeOffset? endOn, string activityId, string jobType, TimeSpan? duration, string dpmServerName, string containerName, string containerType, string workloadType, IList actionsInfo, IList errorDetails, DpmJobExtendedInfo extendedInfo) : base(entityFriendlyName, backupManagementType, operation, status, startOn, endOn, activityId, jobType) + internal DpmBackupJob(string entityFriendlyName, BackupManagementType? backupManagementType, string operation, string status, DateTimeOffset? startOn, DateTimeOffset? endOn, string activityId, string jobType, TimeSpan? duration, string dpmServerName, string containerName, string containerType, string workloadType, IList actionsInfo, IList errorDetails, DpmBackupJobExtendedInfo extendedInfo) : base(entityFriendlyName, backupManagementType, operation, status, startOn, endOn, activityId, jobType) { Duration = duration; DpmServerName = dpmServerName; @@ -67,6 +67,6 @@ internal DpmJob(string entityFriendlyName, BackupManagementType? backupManagemen /// The errors. public IList ErrorDetails { get; } /// Additional information for this job. - public DpmJobExtendedInfo ExtendedInfo { get; set; } + public DpmBackupJobExtendedInfo ExtendedInfo { get; set; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabJobExtendedInfo.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmBackupJobExtendedInfo.Serialization.cs similarity index 83% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabJobExtendedInfo.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmBackupJobExtendedInfo.Serialization.cs index 13bbd14c6fc5b..8efdd44f6cd54 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabJobExtendedInfo.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmBackupJobExtendedInfo.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class MabJobExtendedInfo : IUtf8JsonSerializable + public partial class DpmBackupJobExtendedInfo : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -45,9 +45,9 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static MabJobExtendedInfo DeserializeMabJobExtendedInfo(JsonElement element) + internal static DpmBackupJobExtendedInfo DeserializeDpmBackupJobExtendedInfo(JsonElement element) { - Optional> tasksList = default; + Optional> tasksList = default; Optional> propertyBag = default; Optional dynamicErrorMessage = default; foreach (var property in element.EnumerateObject()) @@ -59,10 +59,10 @@ internal static MabJobExtendedInfo DeserializeMabJobExtendedInfo(JsonElement ele property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(MabJobTaskDetails.DeserializeMabJobTaskDetails(item)); + array.Add(DpmBackupJobTaskDetails.DeserializeDpmBackupJobTaskDetails(item)); } tasksList = array; continue; @@ -88,7 +88,7 @@ internal static MabJobExtendedInfo DeserializeMabJobExtendedInfo(JsonElement ele continue; } } - return new MabJobExtendedInfo(Optional.ToList(tasksList), Optional.ToDictionary(propertyBag), dynamicErrorMessage.Value); + return new DpmBackupJobExtendedInfo(Optional.ToList(tasksList), Optional.ToDictionary(propertyBag), dynamicErrorMessage.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmJobExtendedInfo.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmBackupJobExtendedInfo.cs similarity index 67% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmJobExtendedInfo.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmBackupJobExtendedInfo.cs index 08b53938c4bbc..f51743d75292c 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmJobExtendedInfo.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmBackupJobExtendedInfo.cs @@ -11,20 +11,20 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Additional information on the DPM workload-specific job. - public partial class DpmJobExtendedInfo + public partial class DpmBackupJobExtendedInfo { - /// Initializes a new instance of DpmJobExtendedInfo. - public DpmJobExtendedInfo() + /// Initializes a new instance of DpmBackupJobExtendedInfo. + public DpmBackupJobExtendedInfo() { - TasksList = new ChangeTrackingList(); + TasksList = new ChangeTrackingList(); PropertyBag = new ChangeTrackingDictionary(); } - /// Initializes a new instance of DpmJobExtendedInfo. + /// Initializes a new instance of DpmBackupJobExtendedInfo. /// List of tasks associated with this job. /// The job properties. /// Non localized error message on job execution. - internal DpmJobExtendedInfo(IList tasksList, IDictionary propertyBag, string dynamicErrorMessage) + internal DpmBackupJobExtendedInfo(IList tasksList, IDictionary propertyBag, string dynamicErrorMessage) { TasksList = tasksList; PropertyBag = propertyBag; @@ -32,7 +32,7 @@ internal DpmJobExtendedInfo(IList tasksList, IDictionary List of tasks associated with this job. - public IList TasksList { get; } + public IList TasksList { get; } /// The job properties. public IDictionary PropertyBag { get; } /// Non localized error message on job execution. diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmJobTaskDetails.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmBackupJobTaskDetails.Serialization.cs similarity index 90% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmJobTaskDetails.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmBackupJobTaskDetails.Serialization.cs index fb502ecf74f7f..bb3000173734f 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmJobTaskDetails.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmBackupJobTaskDetails.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class DpmJobTaskDetails : IUtf8JsonSerializable + public partial class DpmBackupJobTaskDetails : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -44,7 +44,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static DpmJobTaskDetails DeserializeDpmJobTaskDetails(JsonElement element) + internal static DpmBackupJobTaskDetails DeserializeDpmBackupJobTaskDetails(JsonElement element) { Optional taskId = default; Optional startTime = default; @@ -94,7 +94,7 @@ internal static DpmJobTaskDetails DeserializeDpmJobTaskDetails(JsonElement eleme continue; } } - return new DpmJobTaskDetails(taskId.Value, Optional.ToNullable(startTime), Optional.ToNullable(endTime), Optional.ToNullable(duration), status.Value); + return new DpmBackupJobTaskDetails(taskId.Value, Optional.ToNullable(startTime), Optional.ToNullable(endTime), Optional.ToNullable(duration), status.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmJobTaskDetails.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmBackupJobTaskDetails.cs similarity index 76% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmJobTaskDetails.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmBackupJobTaskDetails.cs index b59b3531ce919..ba30a70b2ae3b 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmJobTaskDetails.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmBackupJobTaskDetails.cs @@ -10,20 +10,20 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// DPM workload-specific job task details. - public partial class DpmJobTaskDetails + public partial class DpmBackupJobTaskDetails { - /// Initializes a new instance of DpmJobTaskDetails. - public DpmJobTaskDetails() + /// Initializes a new instance of DpmBackupJobTaskDetails. + public DpmBackupJobTaskDetails() { } - /// Initializes a new instance of DpmJobTaskDetails. + /// Initializes a new instance of DpmBackupJobTaskDetails. /// The task display name. /// The start time. /// The end time. /// Time elapsed for task. /// The status. - internal DpmJobTaskDetails(string taskId, DateTimeOffset? startOn, DateTimeOffset? endOn, TimeSpan? duration, string status) + internal DpmBackupJobTaskDetails(string taskId, DateTimeOffset? startOn, DateTimeOffset? endOn, TimeSpan? duration, string status) { TaskId = taskId; StartOn = startOn; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmContainer.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmContainer.Serialization.cs index fb3cc180e5628..4e7148da1d91e 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmContainer.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmContainer.Serialization.cs @@ -46,10 +46,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndArray(); } - if (Optional.IsDefined(UpgradeAvailable)) + if (Optional.IsDefined(IsUpgradeAvailable)) { writer.WritePropertyName("upgradeAvailable"u8); - writer.WriteBooleanValue(UpgradeAvailable.Value); + writer.WriteBooleanValue(IsUpgradeAvailable.Value); } if (Optional.IsDefined(ProtectionStatus)) { @@ -97,7 +97,7 @@ internal static DpmContainer DeserializeDpmContainer(JsonElement element) { switch (discriminator.GetString()) { - case "AzureBackupServerContainer": return AzureBackupServerContainer.DeserializeAzureBackupServerContainer(element); + case "AzureBackupServerContainer": return BackupServerContainer.DeserializeBackupServerContainer(element); } } Optional canReRegister = default; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmContainer.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmContainer.cs index d1ef8166fb2b5..4b23f866dec6e 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmContainer.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmContainer.cs @@ -14,9 +14,9 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models /// /// DPM workload-specific protection container. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . + /// The available derived classes include . /// - public partial class DpmContainer : ProtectionContainer + public partial class DpmContainer : BackupGenericProtectionContainer { /// Initializes a new instance of DpmContainer. public DpmContainer() @@ -42,17 +42,17 @@ public DpmContainer() /// Number of protected items in the BackupEngine. /// Backup engine Agent version. /// List of BackupEngines protecting the container. - /// To check if upgrade available. + /// To check if upgrade available. /// Protection status of the container. /// Extended Info of the container. - internal DpmContainer(string friendlyName, BackupManagementType? backupManagementType, string registrationStatus, string healthStatus, ProtectableContainerType containerType, string protectableObjectType, bool? canReRegister, string containerId, long? protectedItemCount, string dpmAgentVersion, IList dpmServers, bool? upgradeAvailable, string protectionStatus, DpmContainerExtendedInfo extendedInfo) : base(friendlyName, backupManagementType, registrationStatus, healthStatus, containerType, protectableObjectType) + internal DpmContainer(string friendlyName, BackupManagementType? backupManagementType, string registrationStatus, string healthStatus, ProtectableContainerType containerType, string protectableObjectType, bool? canReRegister, string containerId, long? protectedItemCount, string dpmAgentVersion, IList dpmServers, bool? isUpgradeAvailable, string protectionStatus, DpmContainerExtendedInfo extendedInfo) : base(friendlyName, backupManagementType, registrationStatus, healthStatus, containerType, protectableObjectType) { CanReRegister = canReRegister; ContainerId = containerId; ProtectedItemCount = protectedItemCount; DpmAgentVersion = dpmAgentVersion; DpmServers = dpmServers; - UpgradeAvailable = upgradeAvailable; + IsUpgradeAvailable = isUpgradeAvailable; ProtectionStatus = protectionStatus; ExtendedInfo = extendedInfo; ContainerType = containerType; @@ -69,7 +69,7 @@ internal DpmContainer(string friendlyName, BackupManagementType? backupManagemen /// List of BackupEngines protecting the container. public IList DpmServers { get; } /// To check if upgrade available. - public bool? UpgradeAvailable { get; set; } + public bool? IsUpgradeAvailable { get; set; } /// Protection status of the container. public string ProtectionStatus { get; set; } /// Extended Info of the container. diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmProtectedItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmProtectedItem.Serialization.cs index cd41fdb0c3d62..4355209831fa0 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmProtectedItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmProtectedItem.Serialization.cs @@ -54,10 +54,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("policyId"u8); writer.WriteStringValue(PolicyId); } - if (Optional.IsDefined(LastRecoveryPoint)) + if (Optional.IsDefined(LastRecoverOn)) { writer.WritePropertyName("lastRecoveryPoint"u8); - writer.WriteStringValue(LastRecoveryPoint.Value, "O"); + writer.WriteStringValue(LastRecoverOn.Value, "O"); } if (Optional.IsDefined(BackupSetName)) { @@ -69,10 +69,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("createMode"u8); writer.WriteStringValue(CreateMode.Value.ToString()); } - if (Optional.IsDefined(DeferredDeleteTimeInUTC)) + if (Optional.IsDefined(DeferredDeletedOn)) { writer.WritePropertyName("deferredDeleteTimeInUTC"u8); - writer.WriteStringValue(DeferredDeleteTimeInUTC.Value, "O"); + writer.WriteStringValue(DeferredDeletedOn.Value, "O"); } if (Optional.IsDefined(IsScheduledForDeferredDelete)) { @@ -130,13 +130,13 @@ internal static DpmProtectedItem DeserializeDpmProtectedItem(JsonElement element Optional extendedInfo = default; string protectedItemType = default; Optional backupManagementType = default; - Optional workloadType = default; + Optional workloadType = default; Optional containerName = default; - Optional sourceResourceId = default; - Optional policyId = default; + Optional sourceResourceId = default; + Optional policyId = default; Optional lastRecoveryPoint = default; Optional backupSetName = default; - Optional createMode = default; + Optional createMode = default; Optional deferredDeleteTimeInUTC = default; Optional isScheduledForDeferredDelete = default; Optional deferredDeleteTimeRemaining = default; @@ -200,7 +200,7 @@ internal static DpmProtectedItem DeserializeDpmProtectedItem(JsonElement element property.ThrowNonNullablePropertyIsNull(); continue; } - workloadType = new DataSourceType(property.Value.GetString()); + workloadType = new BackupDataSourceType(property.Value.GetString()); continue; } if (property.NameEquals("containerName"u8)) @@ -210,12 +210,22 @@ internal static DpmProtectedItem DeserializeDpmProtectedItem(JsonElement element } if (property.NameEquals("sourceResourceId"u8)) { - sourceResourceId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + sourceResourceId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("policyId"u8)) { - policyId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + policyId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("lastRecoveryPoint"u8)) @@ -240,7 +250,7 @@ internal static DpmProtectedItem DeserializeDpmProtectedItem(JsonElement element property.ThrowNonNullablePropertyIsNull(); continue; } - createMode = new CreateMode(property.Value.GetString()); + createMode = new BackupCreateMode(property.Value.GetString()); continue; } if (property.NameEquals("deferredDeleteTimeInUTC"u8)) diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmProtectedItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmProtectedItem.cs index a1a82c05fbef0..1d391a2367e2a 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmProtectedItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmProtectedItem.cs @@ -7,11 +7,12 @@ using System; using System.Collections.Generic; +using Azure.Core; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Additional information on Backup engine specific backup item. - public partial class DpmProtectedItem : ProtectedItem + public partial class DpmProtectedItem : BackupGenericProtectedItem { /// Initializes a new instance of DpmProtectedItem. public DpmProtectedItem() @@ -26,10 +27,10 @@ public DpmProtectedItem() /// Unique name of container. /// ARM ID of the resource to be backed up. /// ID of the backup policy with which this item is backed up. - /// Timestamp when the last (latest) backup copy was created for this backup item. + /// Timestamp when the last (latest) backup copy was created for this backup item. /// Name of the backup set the backup item belongs to. /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. - /// Time for deferred deletion in UTC. + /// Time for deferred deletion in UTC. /// Flag to identify whether the DS is scheduled for deferred delete. /// Time remaining before the DS marked for deferred delete is permanently deleted. /// Flag to identify whether the deferred deleted DS is to be purged soon. @@ -42,7 +43,7 @@ public DpmProtectedItem() /// Backup Management server protecting this backup item. /// Protection state of the backup engine. /// Extended info of the backup item. - internal DpmProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, DataSourceType? workloadType, string containerName, string sourceResourceId, string policyId, DateTimeOffset? lastRecoveryPoint, string backupSetName, CreateMode? createMode, DateTimeOffset? deferredDeleteTimeInUTC, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriod, string friendlyName, string backupEngineName, ProtectedItemState? protectionState, DpmProtectedItemExtendedInfo extendedInfo) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, deferredDeleteTimeInUTC, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriod) + internal DpmProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, ResourceIdentifier policyId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriod, string friendlyName, string backupEngineName, ProtectedItemState? protectionState, DpmProtectedItemExtendedInfo extendedInfo) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriod) { FriendlyName = friendlyName; BackupEngineName = backupEngineName; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmProtectedItemExtendedInfo.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmProtectedItemExtendedInfo.Serialization.cs index bcd379270e4fb..bc706bfddd510 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmProtectedItemExtendedInfo.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmProtectedItemExtendedInfo.Serialization.cs @@ -28,10 +28,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } - if (Optional.IsDefined(Protected)) + if (Optional.IsDefined(IsProtected)) { writer.WritePropertyName("protected"u8); - writer.WriteBooleanValue(Protected.Value); + writer.WriteBooleanValue(IsProtected.Value); } if (Optional.IsDefined(IsPresentOnCloud)) { @@ -48,25 +48,25 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("lastRefreshedAt"u8); writer.WriteStringValue(LastRefreshedOn.Value, "O"); } - if (Optional.IsDefined(OldestRecoveryPoint)) + if (Optional.IsDefined(OldestRecoverOn)) { writer.WritePropertyName("oldestRecoveryPoint"u8); - writer.WriteStringValue(OldestRecoveryPoint.Value, "O"); + writer.WriteStringValue(OldestRecoverOn.Value, "O"); } if (Optional.IsDefined(RecoveryPointCount)) { writer.WritePropertyName("recoveryPointCount"u8); writer.WriteNumberValue(RecoveryPointCount.Value); } - if (Optional.IsDefined(OnPremiseOldestRecoveryPoint)) + if (Optional.IsDefined(OnPremiseOldestRecoverOn)) { writer.WritePropertyName("onPremiseOldestRecoveryPoint"u8); - writer.WriteStringValue(OnPremiseOldestRecoveryPoint.Value, "O"); + writer.WriteStringValue(OnPremiseOldestRecoverOn.Value, "O"); } - if (Optional.IsDefined(OnPremiseLatestRecoveryPoint)) + if (Optional.IsDefined(OnPremiseLatestRecoverOn)) { writer.WritePropertyName("onPremiseLatestRecoveryPoint"u8); - writer.WriteStringValue(OnPremiseLatestRecoveryPoint.Value, "O"); + writer.WriteStringValue(OnPremiseLatestRecoverOn.Value, "O"); } if (Optional.IsDefined(OnPremiseRecoveryPointCount)) { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmProtectedItemExtendedInfo.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmProtectedItemExtendedInfo.cs index 8b2dcbd1d6946..2cce09e78d9dd 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmProtectedItemExtendedInfo.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmProtectedItemExtendedInfo.cs @@ -22,30 +22,30 @@ public DpmProtectedItemExtendedInfo() /// Initializes a new instance of DpmProtectedItemExtendedInfo. /// Attribute to provide information on various DBs. - /// To check if backup item is disk protected. + /// To check if backup item is disk protected. /// To check if backup item is cloud protected. /// Last backup status information on backup item. /// Last refresh time on backup item. - /// Oldest cloud recovery point time. + /// Oldest cloud recovery point time. /// cloud recovery point count. - /// Oldest disk recovery point time. - /// latest disk recovery point time. + /// Oldest disk recovery point time. + /// latest disk recovery point time. /// disk recovery point count. /// To check if backup item is collocated. /// Protection group name of the backup item. /// Used Disk storage in bytes. /// total Disk storage in bytes. - internal DpmProtectedItemExtendedInfo(IDictionary protectableObjectLoadPath, bool? @protected, bool? isPresentOnCloud, string lastBackupStatus, DateTimeOffset? lastRefreshedOn, DateTimeOffset? oldestRecoveryPoint, int? recoveryPointCount, DateTimeOffset? onPremiseOldestRecoveryPoint, DateTimeOffset? onPremiseLatestRecoveryPoint, int? onPremiseRecoveryPointCount, bool? isCollocated, string protectionGroupName, string diskStorageUsedInBytes, string totalDiskStorageSizeInBytes) + internal DpmProtectedItemExtendedInfo(IDictionary protectableObjectLoadPath, bool? isProtected, bool? isPresentOnCloud, string lastBackupStatus, DateTimeOffset? lastRefreshedOn, DateTimeOffset? oldestRecoverOn, int? recoveryPointCount, DateTimeOffset? onPremiseOldestRecoverOn, DateTimeOffset? onPremiseLatestRecoverOn, int? onPremiseRecoveryPointCount, bool? isCollocated, string protectionGroupName, string diskStorageUsedInBytes, string totalDiskStorageSizeInBytes) { ProtectableObjectLoadPath = protectableObjectLoadPath; - Protected = @protected; + IsProtected = isProtected; IsPresentOnCloud = isPresentOnCloud; LastBackupStatus = lastBackupStatus; LastRefreshedOn = lastRefreshedOn; - OldestRecoveryPoint = oldestRecoveryPoint; + OldestRecoverOn = oldestRecoverOn; RecoveryPointCount = recoveryPointCount; - OnPremiseOldestRecoveryPoint = onPremiseOldestRecoveryPoint; - OnPremiseLatestRecoveryPoint = onPremiseLatestRecoveryPoint; + OnPremiseOldestRecoverOn = onPremiseOldestRecoverOn; + OnPremiseLatestRecoverOn = onPremiseLatestRecoverOn; OnPremiseRecoveryPointCount = onPremiseRecoveryPointCount; IsCollocated = isCollocated; ProtectionGroupName = protectionGroupName; @@ -56,7 +56,7 @@ internal DpmProtectedItemExtendedInfo(IDictionary protectableObj /// Attribute to provide information on various DBs. public IDictionary ProtectableObjectLoadPath { get; } /// To check if backup item is disk protected. - public bool? Protected { get; set; } + public bool? IsProtected { get; set; } /// To check if backup item is cloud protected. public bool? IsPresentOnCloud { get; set; } /// Last backup status information on backup item. @@ -64,13 +64,13 @@ internal DpmProtectedItemExtendedInfo(IDictionary protectableObj /// Last refresh time on backup item. public DateTimeOffset? LastRefreshedOn { get; set; } /// Oldest cloud recovery point time. - public DateTimeOffset? OldestRecoveryPoint { get; set; } + public DateTimeOffset? OldestRecoverOn { get; set; } /// cloud recovery point count. public int? RecoveryPointCount { get; set; } /// Oldest disk recovery point time. - public DateTimeOffset? OnPremiseOldestRecoveryPoint { get; set; } + public DateTimeOffset? OnPremiseOldestRecoverOn { get; set; } /// latest disk recovery point time. - public DateTimeOffset? OnPremiseLatestRecoveryPoint { get; set; } + public DateTimeOffset? OnPremiseLatestRecoverOn { get; set; } /// disk recovery point count. public int? OnPremiseRecoveryPointCount { get; set; } /// To check if backup item is collocated. diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/EncryptionAtRestType.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/EncryptionAtRestType.cs deleted file mode 100644 index 15cb5ce22b1c6..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/EncryptionAtRestType.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - /// Encryption At Rest Type. - public readonly partial struct EncryptionAtRestType : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public EncryptionAtRestType(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string InvalidValue = "Invalid"; - private const string MicrosoftManagedValue = "MicrosoftManaged"; - private const string CustomerManagedValue = "CustomerManaged"; - - /// Invalid. - public static EncryptionAtRestType Invalid { get; } = new EncryptionAtRestType(InvalidValue); - /// MicrosoftManaged. - public static EncryptionAtRestType MicrosoftManaged { get; } = new EncryptionAtRestType(MicrosoftManagedValue); - /// CustomerManaged. - public static EncryptionAtRestType CustomerManaged { get; } = new EncryptionAtRestType(CustomerManagedValue); - /// Determines if two values are the same. - public static bool operator ==(EncryptionAtRestType left, EncryptionAtRestType right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(EncryptionAtRestType left, EncryptionAtRestType right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator EncryptionAtRestType(string value) => new EncryptionAtRestType(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is EncryptionAtRestType other && Equals(other); - /// - public bool Equals(EncryptionAtRestType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ExportJobsOperationResultInfo.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ExportJobsOperationResultInfo.Serialization.cs deleted file mode 100644 index a4dddcc828eaa..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ExportJobsOperationResultInfo.Serialization.cs +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - public partial class ExportJobsOperationResultInfo - { - internal static ExportJobsOperationResultInfo DeserializeExportJobsOperationResultInfo(JsonElement element) - { - Optional blobUrl = default; - Optional blobSasKey = default; - Optional excelFileBlobUrl = default; - Optional excelFileBlobSasKey = default; - string objectType = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("blobUrl"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - blobUrl = null; - continue; - } - blobUrl = new Uri(property.Value.GetString()); - continue; - } - if (property.NameEquals("blobSasKey"u8)) - { - blobSasKey = property.Value.GetString(); - continue; - } - if (property.NameEquals("excelFileBlobUrl"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - excelFileBlobUrl = null; - continue; - } - excelFileBlobUrl = new Uri(property.Value.GetString()); - continue; - } - if (property.NameEquals("excelFileBlobSasKey"u8)) - { - excelFileBlobSasKey = property.Value.GetString(); - continue; - } - if (property.NameEquals("objectType"u8)) - { - objectType = property.Value.GetString(); - continue; - } - } - return new ExportJobsOperationResultInfo(objectType, blobUrl.Value, blobSasKey.Value, excelFileBlobUrl.Value, excelFileBlobSasKey.Value); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ExportJobsOperationResultInfo.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ExportJobsOperationResultInfo.cs deleted file mode 100644 index 2ccb19ef7543a..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ExportJobsOperationResultInfo.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - /// This class is used to send blob details after exporting jobs. - public partial class ExportJobsOperationResultInfo : OperationResultInfoBase - { - /// Initializes a new instance of ExportJobsOperationResultInfo. - internal ExportJobsOperationResultInfo() - { - ObjectType = "ExportJobsOperationResultInfo"; - } - - /// Initializes a new instance of ExportJobsOperationResultInfo. - /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. - /// URL of the blob into which the serialized string of list of jobs is exported. - /// SAS key to access the blob. It expires in 15 mins. - /// URL of the blob into which the ExcelFile is uploaded. - /// SAS key to access the blob. It expires in 15 mins. - internal ExportJobsOperationResultInfo(string objectType, Uri blobUri, string blobSasKey, Uri excelFileBlobUri, string excelFileBlobSasKey) : base(objectType) - { - BlobUri = blobUri; - BlobSasKey = blobSasKey; - ExcelFileBlobUri = excelFileBlobUri; - ExcelFileBlobSasKey = excelFileBlobSasKey; - ObjectType = objectType ?? "ExportJobsOperationResultInfo"; - } - - /// URL of the blob into which the serialized string of list of jobs is exported. - public Uri BlobUri { get; } - /// SAS key to access the blob. It expires in 15 mins. - public string BlobSasKey { get; } - /// URL of the blob into which the ExcelFile is uploaded. - public Uri ExcelFileBlobUri { get; } - /// SAS key to access the blob. It expires in 15 mins. - public string ExcelFileBlobSasKey { get; } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FabricName.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FabricName.cs deleted file mode 100644 index 1bf409e76568f..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FabricName.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - /// Specifies the fabric name - Azure or AD. - public readonly partial struct FabricName : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public FabricName(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string InvalidValue = "Invalid"; - private const string AzureValue = "Azure"; - - /// Invalid. - public static FabricName Invalid { get; } = new FabricName(InvalidValue); - /// Azure. - public static FabricName Azure { get; } = new FabricName(AzureValue); - /// Determines if two values are the same. - public static bool operator ==(FabricName left, FabricName right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(FabricName left, FabricName right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator FabricName(string value) => new FabricName(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is FabricName other && Equals(other); - /// - public bool Equals(FabricName other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FeatureSupportContent.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FeatureSupportContent.cs index 052ecdf7e85cd..2aeaecbadf4c7 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FeatureSupportContent.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FeatureSupportContent.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models /// /// Base class for feature request /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . + /// The available derived classes include and . /// public abstract partial class FeatureSupportContent { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileShareBackupRequest.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareBackupContent.Serialization.cs similarity index 76% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileShareBackupRequest.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareBackupContent.Serialization.cs index 6580d17a76117..ca1fd15d1214f 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileShareBackupRequest.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareBackupContent.Serialization.cs @@ -11,22 +11,22 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureFileShareBackupRequest : IUtf8JsonSerializable + public partial class FileShareBackupContent : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - if (Optional.IsDefined(RecoveryPointExpiryTimeInUTC)) + if (Optional.IsDefined(RecoveryPointExpireOn)) { writer.WritePropertyName("recoveryPointExpiryTimeInUTC"u8); - writer.WriteStringValue(RecoveryPointExpiryTimeInUTC.Value, "O"); + writer.WriteStringValue(RecoveryPointExpireOn.Value, "O"); } writer.WritePropertyName("objectType"u8); writer.WriteStringValue(ObjectType); writer.WriteEndObject(); } - internal static AzureFileShareBackupRequest DeserializeAzureFileShareBackupRequest(JsonElement element) + internal static FileShareBackupContent DeserializeFileShareBackupContent(JsonElement element) { Optional recoveryPointExpiryTimeInUTC = default; string objectType = default; @@ -48,7 +48,7 @@ internal static AzureFileShareBackupRequest DeserializeAzureFileShareBackupReque continue; } } - return new AzureFileShareBackupRequest(objectType, Optional.ToNullable(recoveryPointExpiryTimeInUTC)); + return new FileShareBackupContent(objectType, Optional.ToNullable(recoveryPointExpiryTimeInUTC)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileShareBackupRequest.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareBackupContent.cs similarity index 51% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileShareBackupRequest.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareBackupContent.cs index c002f3a2d7bb6..5b987e4ba1166 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileShareBackupRequest.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareBackupContent.cs @@ -10,24 +10,24 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// AzureFileShare workload-specific backup request. - public partial class AzureFileShareBackupRequest : BackupRequest + public partial class FileShareBackupContent : BackupContent { - /// Initializes a new instance of AzureFileShareBackupRequest. - public AzureFileShareBackupRequest() + /// Initializes a new instance of FileShareBackupContent. + public FileShareBackupContent() { ObjectType = "AzureFileShareBackupRequest"; } - /// Initializes a new instance of AzureFileShareBackupRequest. + /// Initializes a new instance of FileShareBackupContent. /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. - /// Backup copy will expire after the time specified (UTC). - internal AzureFileShareBackupRequest(string objectType, DateTimeOffset? recoveryPointExpiryTimeInUTC) : base(objectType) + /// Backup copy will expire after the time specified (UTC). + internal FileShareBackupContent(string objectType, DateTimeOffset? recoveryPointExpireOn) : base(objectType) { - RecoveryPointExpiryTimeInUTC = recoveryPointExpiryTimeInUTC; + RecoveryPointExpireOn = recoveryPointExpireOn; ObjectType = objectType ?? "AzureFileShareBackupRequest"; } /// Backup copy will expire after the time specified (UTC). - public DateTimeOffset? RecoveryPointExpiryTimeInUTC { get; set; } + public DateTimeOffset? RecoveryPointExpireOn { get; set; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareCopyOption.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareCopyOption.cs new file mode 100644 index 0000000000000..8b9c506db55f6 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareCopyOption.cs @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Models +{ + /// Options to resolve copy conflicts. + public readonly partial struct FileShareCopyOption : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public FileShareCopyOption(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string InvalidValue = "Invalid"; + private const string CreateCopyValue = "CreateCopy"; + private const string SkipValue = "Skip"; + private const string OverwriteValue = "Overwrite"; + private const string FailOnConflictValue = "FailOnConflict"; + + /// Invalid. + public static FileShareCopyOption Invalid { get; } = new FileShareCopyOption(InvalidValue); + /// CreateCopy. + public static FileShareCopyOption CreateCopy { get; } = new FileShareCopyOption(CreateCopyValue); + /// Skip. + public static FileShareCopyOption Skip { get; } = new FileShareCopyOption(SkipValue); + /// Overwrite. + public static FileShareCopyOption Overwrite { get; } = new FileShareCopyOption(OverwriteValue); + /// FailOnConflict. + public static FileShareCopyOption FailOnConflict { get; } = new FileShareCopyOption(FailOnConflictValue); + /// Determines if two values are the same. + public static bool operator ==(FileShareCopyOption left, FileShareCopyOption right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(FileShareCopyOption left, FileShareCopyOption right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator FileShareCopyOption(string value) => new FileShareCopyOption(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is FileShareCopyOption other && Equals(other); + /// + public bool Equals(FileShareCopyOption other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileShareProtectableItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareProtectableItem.Serialization.cs similarity index 84% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileShareProtectableItem.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareProtectableItem.Serialization.cs index fa12f09ea9630..fb51bc263b301 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileShareProtectableItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareProtectableItem.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureFileShareProtectableItem : IUtf8JsonSerializable + public partial class FileShareProtectableItem : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -55,16 +55,16 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureFileShareProtectableItem DeserializeAzureFileShareProtectableItem(JsonElement element) + internal static FileShareProtectableItem DeserializeFileShareProtectableItem(JsonElement element) { Optional parentContainerFabricId = default; Optional parentContainerFriendlyName = default; - Optional azureFileShareType = default; + Optional azureFileShareType = default; Optional backupManagementType = default; Optional workloadType = default; string protectableItemType = default; Optional friendlyName = default; - Optional protectionState = default; + Optional protectionState = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("parentContainerFabricId"u8)) @@ -84,7 +84,7 @@ internal static AzureFileShareProtectableItem DeserializeAzureFileShareProtectab property.ThrowNonNullablePropertyIsNull(); continue; } - azureFileShareType = new AzureFileShareType(property.Value.GetString()); + azureFileShareType = new BackupFileShareType(property.Value.GetString()); continue; } if (property.NameEquals("backupManagementType"u8)) @@ -114,11 +114,11 @@ internal static AzureFileShareProtectableItem DeserializeAzureFileShareProtectab property.ThrowNonNullablePropertyIsNull(); continue; } - protectionState = new ProtectionStatus(property.Value.GetString()); + protectionState = new BackupProtectionStatus(property.Value.GetString()); continue; } } - return new AzureFileShareProtectableItem(backupManagementType.Value, workloadType.Value, protectableItemType, friendlyName.Value, Optional.ToNullable(protectionState), parentContainerFabricId.Value, parentContainerFriendlyName.Value, Optional.ToNullable(azureFileShareType)); + return new FileShareProtectableItem(backupManagementType.Value, workloadType.Value, protectableItemType, friendlyName.Value, Optional.ToNullable(protectionState), parentContainerFabricId.Value, parentContainerFriendlyName.Value, Optional.ToNullable(azureFileShareType)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileShareProtectableItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareProtectableItem.cs similarity index 70% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileShareProtectableItem.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareProtectableItem.cs index 9842fedb3df29..748b3b4cfb0e5 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileShareProtectableItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareProtectableItem.cs @@ -8,15 +8,15 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Protectable item for Azure Fileshare workloads. - public partial class AzureFileShareProtectableItem : WorkloadProtectableItem + public partial class FileShareProtectableItem : WorkloadProtectableItem { - /// Initializes a new instance of AzureFileShareProtectableItem. - public AzureFileShareProtectableItem() + /// Initializes a new instance of FileShareProtectableItem. + public FileShareProtectableItem() { ProtectableItemType = "AzureFileShare"; } - /// Initializes a new instance of AzureFileShareProtectableItem. + /// Initializes a new instance of FileShareProtectableItem. /// Type of backup management to backup an item. /// Type of workload for the backup management. /// Type of the backup item. @@ -25,7 +25,7 @@ public AzureFileShareProtectableItem() /// Full Fabric ID of container to which this protectable item belongs. For example, ARM ID. /// Friendly name of container to which this protectable item belongs. /// File Share type XSync or XSMB. - internal AzureFileShareProtectableItem(string backupManagementType, string workloadType, string protectableItemType, string friendlyName, ProtectionStatus? protectionState, string parentContainerFabricId, string parentContainerFriendlyName, AzureFileShareType? azureFileShareType) : base(backupManagementType, workloadType, protectableItemType, friendlyName, protectionState) + internal FileShareProtectableItem(string backupManagementType, string workloadType, string protectableItemType, string friendlyName, BackupProtectionStatus? protectionState, string parentContainerFabricId, string parentContainerFriendlyName, BackupFileShareType? azureFileShareType) : base(backupManagementType, workloadType, protectableItemType, friendlyName, protectionState) { ParentContainerFabricId = parentContainerFabricId; ParentContainerFriendlyName = parentContainerFriendlyName; @@ -38,6 +38,6 @@ internal AzureFileShareProtectableItem(string backupManagementType, string workl /// Friendly name of container to which this protectable item belongs. public string ParentContainerFriendlyName { get; set; } /// File Share type XSync or XSMB. - public AzureFileShareType? AzureFileShareType { get; set; } + public BackupFileShareType? AzureFileShareType { get; set; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileShareProtectionPolicy.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareProtectionPolicy.Serialization.cs similarity index 83% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileShareProtectionPolicy.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareProtectionPolicy.Serialization.cs index 1c6e4c28db387..b4a215303eddb 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileShareProtectionPolicy.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareProtectionPolicy.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureFileShareProtectionPolicy : IUtf8JsonSerializable + public partial class FileShareProtectionPolicy : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -56,11 +56,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureFileShareProtectionPolicy DeserializeAzureFileShareProtectionPolicy(JsonElement element) + internal static FileShareProtectionPolicy DeserializeFileShareProtectionPolicy(JsonElement element) { - Optional workLoadType = default; - Optional schedulePolicy = default; - Optional retentionPolicy = default; + Optional workLoadType = default; + Optional schedulePolicy = default; + Optional retentionPolicy = default; Optional timeZone = default; Optional protectedItemsCount = default; string backupManagementType = default; @@ -74,7 +74,7 @@ internal static AzureFileShareProtectionPolicy DeserializeAzureFileShareProtecti property.ThrowNonNullablePropertyIsNull(); continue; } - workLoadType = new WorkloadType(property.Value.GetString()); + workLoadType = new BackupWorkloadType(property.Value.GetString()); continue; } if (property.NameEquals("schedulePolicy"u8)) @@ -84,7 +84,7 @@ internal static AzureFileShareProtectionPolicy DeserializeAzureFileShareProtecti property.ThrowNonNullablePropertyIsNull(); continue; } - schedulePolicy = SchedulePolicy.DeserializeSchedulePolicy(property.Value); + schedulePolicy = BackupSchedulePolicy.DeserializeBackupSchedulePolicy(property.Value); continue; } if (property.NameEquals("retentionPolicy"u8)) @@ -94,7 +94,7 @@ internal static AzureFileShareProtectionPolicy DeserializeAzureFileShareProtecti property.ThrowNonNullablePropertyIsNull(); continue; } - retentionPolicy = RetentionPolicy.DeserializeRetentionPolicy(property.Value); + retentionPolicy = BackupRetentionPolicy.DeserializeBackupRetentionPolicy(property.Value); continue; } if (property.NameEquals("timeZone"u8)) @@ -133,7 +133,7 @@ internal static AzureFileShareProtectionPolicy DeserializeAzureFileShareProtecti continue; } } - return new AzureFileShareProtectionPolicy(Optional.ToNullable(protectedItemsCount), backupManagementType, Optional.ToList(resourceGuardOperationRequests), Optional.ToNullable(workLoadType), schedulePolicy.Value, retentionPolicy.Value, timeZone.Value); + return new FileShareProtectionPolicy(Optional.ToNullable(protectedItemsCount), backupManagementType, Optional.ToList(resourceGuardOperationRequests), Optional.ToNullable(workLoadType), schedulePolicy.Value, retentionPolicy.Value, timeZone.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileShareProtectionPolicy.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareProtectionPolicy.cs similarity index 59% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileShareProtectionPolicy.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareProtectionPolicy.cs index c9de6f76eba71..fabdf52fb57cd 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileShareProtectionPolicy.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareProtectionPolicy.cs @@ -10,31 +10,31 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// AzureStorage backup policy. - public partial class AzureFileShareProtectionPolicy : ProtectionPolicy + public partial class FileShareProtectionPolicy : BackupGenericProtectionPolicy { - /// Initializes a new instance of AzureFileShareProtectionPolicy. - public AzureFileShareProtectionPolicy() + /// Initializes a new instance of FileShareProtectionPolicy. + public FileShareProtectionPolicy() { BackupManagementType = "AzureStorage"; } - /// Initializes a new instance of AzureFileShareProtectionPolicy. + /// Initializes a new instance of FileShareProtectionPolicy. /// Number of items associated with this policy. /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. /// ResourceGuard Operation Requests. /// Type of workload for the backup management. /// /// Backup schedule specified as part of backup policy. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include , , and . /// /// /// Retention policy with the details on backup copy retention ranges. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// /// TimeZone optional input as string. For example: TimeZone = "Pacific Standard Time". - internal AzureFileShareProtectionPolicy(int? protectedItemsCount, string backupManagementType, IList resourceGuardOperationRequests, WorkloadType? workLoadType, SchedulePolicy schedulePolicy, RetentionPolicy retentionPolicy, string timeZone) : base(protectedItemsCount, backupManagementType, resourceGuardOperationRequests) + internal FileShareProtectionPolicy(int? protectedItemsCount, string backupManagementType, IList resourceGuardOperationRequests, BackupWorkloadType? workLoadType, BackupSchedulePolicy schedulePolicy, BackupRetentionPolicy retentionPolicy, string timeZone) : base(protectedItemsCount, backupManagementType, resourceGuardOperationRequests) { WorkLoadType = workLoadType; SchedulePolicy = schedulePolicy; @@ -44,19 +44,19 @@ internal AzureFileShareProtectionPolicy(int? protectedItemsCount, string backupM } /// Type of workload for the backup management. - public WorkloadType? WorkLoadType { get; set; } + public BackupWorkloadType? WorkLoadType { get; set; } /// /// Backup schedule specified as part of backup policy. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include , , and . /// - public SchedulePolicy SchedulePolicy { get; set; } + public BackupSchedulePolicy SchedulePolicy { get; set; } /// /// Retention policy with the details on backup copy retention ranges. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// - public RetentionPolicy RetentionPolicy { get; set; } + public BackupRetentionPolicy RetentionPolicy { get; set; } /// TimeZone optional input as string. For example: TimeZone = "Pacific Standard Time". public string TimeZone { get; set; } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileShareProvisionILRRequest.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareProvisionIlrContent.Serialization.cs similarity index 70% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileShareProvisionILRRequest.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareProvisionIlrContent.Serialization.cs index 38d6bd2b40a45..e34f212a34f8e 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileShareProvisionILRRequest.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareProvisionIlrContent.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureFileShareProvisionILRRequest : IUtf8JsonSerializable + public partial class FileShareProvisionIlrContent : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -30,10 +30,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureFileShareProvisionILRRequest DeserializeAzureFileShareProvisionILRRequest(JsonElement element) + internal static FileShareProvisionIlrContent DeserializeFileShareProvisionIlrContent(JsonElement element) { Optional recoveryPointId = default; - Optional sourceResourceId = default; + Optional sourceResourceId = default; string objectType = default; foreach (var property in element.EnumerateObject()) { @@ -44,7 +44,12 @@ internal static AzureFileShareProvisionILRRequest DeserializeAzureFileShareProvi } if (property.NameEquals("sourceResourceId"u8)) { - sourceResourceId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + sourceResourceId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("objectType"u8)) @@ -53,7 +58,7 @@ internal static AzureFileShareProvisionILRRequest DeserializeAzureFileShareProvi continue; } } - return new AzureFileShareProvisionILRRequest(objectType, recoveryPointId.Value, sourceResourceId.Value); + return new FileShareProvisionIlrContent(objectType, recoveryPointId.Value, sourceResourceId.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileShareProvisionILRRequest.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareProvisionIlrContent.cs similarity index 67% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileShareProvisionILRRequest.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareProvisionIlrContent.cs index 81c475b904ee0..c1dc4d07c5c25 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileShareProvisionILRRequest.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareProvisionIlrContent.cs @@ -5,22 +5,24 @@ #nullable disable +using Azure.Core; + namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Update snapshot Uri with the correct friendly Name of the source Azure file share. - public partial class AzureFileShareProvisionILRRequest : ILRRequest + public partial class FileShareProvisionIlrContent : IlrContent { - /// Initializes a new instance of AzureFileShareProvisionILRRequest. - public AzureFileShareProvisionILRRequest() + /// Initializes a new instance of FileShareProvisionIlrContent. + public FileShareProvisionIlrContent() { ObjectType = "AzureFileShareProvisionILRRequest"; } - /// Initializes a new instance of AzureFileShareProvisionILRRequest. + /// Initializes a new instance of FileShareProvisionIlrContent. /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. /// Recovery point ID. /// Source Storage account ARM Id. - internal AzureFileShareProvisionILRRequest(string objectType, string recoveryPointId, string sourceResourceId) : base(objectType) + internal FileShareProvisionIlrContent(string objectType, string recoveryPointId, ResourceIdentifier sourceResourceId) : base(objectType) { RecoveryPointId = recoveryPointId; SourceResourceId = sourceResourceId; @@ -30,6 +32,6 @@ internal AzureFileShareProvisionILRRequest(string objectType, string recoveryPoi /// Recovery point ID. public string RecoveryPointId { get; set; } /// Source Storage account ARM Id. - public string SourceResourceId { get; set; } + public ResourceIdentifier SourceResourceId { get; set; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileShareRecoveryPoint.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareRecoveryPoint.Serialization.cs similarity index 90% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileShareRecoveryPoint.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareRecoveryPoint.Serialization.cs index 53458d75ff4ee..8129d7407f9ce 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileShareRecoveryPoint.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareRecoveryPoint.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureFileShareRecoveryPoint : IUtf8JsonSerializable + public partial class FileShareRecoveryPoint : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -46,7 +46,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureFileShareRecoveryPoint DeserializeAzureFileShareRecoveryPoint(JsonElement element) + internal static FileShareRecoveryPoint DeserializeFileShareRecoveryPoint(JsonElement element) { Optional recoveryPointType = default; Optional recoveryPointTime = default; @@ -107,7 +107,7 @@ internal static AzureFileShareRecoveryPoint DeserializeAzureFileShareRecoveryPoi continue; } } - return new AzureFileShareRecoveryPoint(objectType, recoveryPointType.Value, Optional.ToNullable(recoveryPointTime), fileShareSnapshotUri.Value, Optional.ToNullable(recoveryPointSizeInGB), recoveryPointProperties.Value); + return new FileShareRecoveryPoint(objectType, recoveryPointType.Value, Optional.ToNullable(recoveryPointTime), fileShareSnapshotUri.Value, Optional.ToNullable(recoveryPointSizeInGB), recoveryPointProperties.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileShareRecoveryPoint.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareRecoveryPoint.cs similarity index 80% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileShareRecoveryPoint.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareRecoveryPoint.cs index 50457877973ff..d8b920142d4b5 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileShareRecoveryPoint.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareRecoveryPoint.cs @@ -10,22 +10,22 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Azure File Share workload specific backup copy. - public partial class AzureFileShareRecoveryPoint : RecoveryPoint + public partial class FileShareRecoveryPoint : BackupGenericRecoveryPoint { - /// Initializes a new instance of AzureFileShareRecoveryPoint. - public AzureFileShareRecoveryPoint() + /// Initializes a new instance of FileShareRecoveryPoint. + public FileShareRecoveryPoint() { ObjectType = "AzureFileShareRecoveryPoint"; } - /// Initializes a new instance of AzureFileShareRecoveryPoint. + /// Initializes a new instance of FileShareRecoveryPoint. /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. /// Type of the backup copy. Specifies whether it is a crash consistent backup or app consistent. /// Time at which this backup copy was created. /// Contains Url to the snapshot of fileshare, if applicable. /// Contains recovery point size. /// Properties of Recovery Point. - internal AzureFileShareRecoveryPoint(string objectType, string recoveryPointType, DateTimeOffset? recoveryPointOn, Uri fileShareSnapshotUri, int? recoveryPointSizeInGB, RecoveryPointProperties recoveryPointProperties) : base(objectType) + internal FileShareRecoveryPoint(string objectType, string recoveryPointType, DateTimeOffset? recoveryPointOn, Uri fileShareSnapshotUri, int? recoveryPointSizeInGB, RecoveryPointProperties recoveryPointProperties) : base(objectType) { RecoveryPointType = recoveryPointType; RecoveryPointOn = recoveryPointOn; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareRecoveryType.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareRecoveryType.cs new file mode 100644 index 0000000000000..c652e03b4edbb --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareRecoveryType.cs @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Models +{ + /// Type of this recovery. + public readonly partial struct FileShareRecoveryType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public FileShareRecoveryType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string InvalidValue = "Invalid"; + private const string OriginalLocationValue = "OriginalLocation"; + private const string AlternateLocationValue = "AlternateLocation"; + private const string RestoreDisksValue = "RestoreDisks"; + private const string OfflineValue = "Offline"; + + /// Invalid. + public static FileShareRecoveryType Invalid { get; } = new FileShareRecoveryType(InvalidValue); + /// OriginalLocation. + public static FileShareRecoveryType OriginalLocation { get; } = new FileShareRecoveryType(OriginalLocationValue); + /// AlternateLocation. + public static FileShareRecoveryType AlternateLocation { get; } = new FileShareRecoveryType(AlternateLocationValue); + /// RestoreDisks. + public static FileShareRecoveryType RestoreDisks { get; } = new FileShareRecoveryType(RestoreDisksValue); + /// Offline. + public static FileShareRecoveryType Offline { get; } = new FileShareRecoveryType(OfflineValue); + /// Determines if two values are the same. + public static bool operator ==(FileShareRecoveryType left, FileShareRecoveryType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(FileShareRecoveryType left, FileShareRecoveryType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator FileShareRecoveryType(string value) => new FileShareRecoveryType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is FileShareRecoveryType other && Equals(other); + /// + public bool Equals(FileShareRecoveryType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileShareRestoreRequest.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareRestoreContent.Serialization.cs similarity index 76% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileShareRestoreRequest.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareRestoreContent.Serialization.cs index 425c9da1f6bd9..301ca82cf2432 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileShareRestoreRequest.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareRestoreContent.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureFileShareRestoreRequest : IUtf8JsonSerializable + public partial class FileShareRestoreContent : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -56,14 +56,14 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureFileShareRestoreRequest DeserializeAzureFileShareRestoreRequest(JsonElement element) + internal static FileShareRestoreContent DeserializeFileShareRestoreContent(JsonElement element) { - Optional recoveryType = default; - Optional sourceResourceId = default; - Optional copyOptions = default; - Optional restoreRequestType = default; + Optional recoveryType = default; + Optional sourceResourceId = default; + Optional copyOptions = default; + Optional restoreRequestType = default; Optional> restoreFileSpecs = default; - Optional targetDetails = default; + Optional targetDetails = default; string objectType = default; foreach (var property in element.EnumerateObject()) { @@ -74,12 +74,17 @@ internal static AzureFileShareRestoreRequest DeserializeAzureFileShareRestoreReq property.ThrowNonNullablePropertyIsNull(); continue; } - recoveryType = new RecoveryType(property.Value.GetString()); + recoveryType = new FileShareRecoveryType(property.Value.GetString()); continue; } if (property.NameEquals("sourceResourceId"u8)) { - sourceResourceId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + sourceResourceId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("copyOptions"u8)) @@ -89,7 +94,7 @@ internal static AzureFileShareRestoreRequest DeserializeAzureFileShareRestoreReq property.ThrowNonNullablePropertyIsNull(); continue; } - copyOptions = new CopyOption(property.Value.GetString()); + copyOptions = new FileShareCopyOption(property.Value.GetString()); continue; } if (property.NameEquals("restoreRequestType"u8)) @@ -99,7 +104,7 @@ internal static AzureFileShareRestoreRequest DeserializeAzureFileShareRestoreReq property.ThrowNonNullablePropertyIsNull(); continue; } - restoreRequestType = new RestoreRequestType(property.Value.GetString()); + restoreRequestType = new FileShareRestoreType(property.Value.GetString()); continue; } if (property.NameEquals("restoreFileSpecs"u8)) @@ -124,7 +129,7 @@ internal static AzureFileShareRestoreRequest DeserializeAzureFileShareRestoreReq property.ThrowNonNullablePropertyIsNull(); continue; } - targetDetails = TargetAFSRestoreInfo.DeserializeTargetAFSRestoreInfo(property.Value); + targetDetails = TargetAfsRestoreInfo.DeserializeTargetAfsRestoreInfo(property.Value); continue; } if (property.NameEquals("objectType"u8)) @@ -133,7 +138,7 @@ internal static AzureFileShareRestoreRequest DeserializeAzureFileShareRestoreReq continue; } } - return new AzureFileShareRestoreRequest(objectType, Optional.ToNullable(recoveryType), sourceResourceId.Value, Optional.ToNullable(copyOptions), Optional.ToNullable(restoreRequestType), Optional.ToList(restoreFileSpecs), targetDetails.Value); + return new FileShareRestoreContent(objectType, Optional.ToNullable(recoveryType), sourceResourceId.Value, Optional.ToNullable(copyOptions), Optional.ToNullable(restoreRequestType), Optional.ToList(restoreFileSpecs), targetDetails.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileShareRestoreRequest.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareRestoreContent.cs similarity index 69% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileShareRestoreRequest.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareRestoreContent.cs index 98d3836c0311c..385bf4b15782e 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileShareRestoreRequest.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareRestoreContent.cs @@ -11,16 +11,16 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// AzureFileShare Restore Request. - public partial class AzureFileShareRestoreRequest : RestoreRequest + public partial class FileShareRestoreContent : RestoreContent { - /// Initializes a new instance of AzureFileShareRestoreRequest. - public AzureFileShareRestoreRequest() + /// Initializes a new instance of FileShareRestoreContent. + public FileShareRestoreContent() { RestoreFileSpecs = new ChangeTrackingList(); ObjectType = "AzureFileShareRestoreRequest"; } - /// Initializes a new instance of AzureFileShareRestoreRequest. + /// Initializes a new instance of FileShareRestoreContent. /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. /// Type of this recovery. /// Source storage account ARM Id. @@ -28,7 +28,7 @@ public AzureFileShareRestoreRequest() /// Restore Type (FullShareRestore or ItemLevelRestore). /// List of Source Files/Folders(which need to recover) and TargetFolderPath details. /// Target File Share Details. - internal AzureFileShareRestoreRequest(string objectType, RecoveryType? recoveryType, string sourceResourceId, CopyOption? copyOptions, RestoreRequestType? restoreRequestType, IList restoreFileSpecs, TargetAFSRestoreInfo targetDetails) : base(objectType) + internal FileShareRestoreContent(string objectType, FileShareRecoveryType? recoveryType, ResourceIdentifier sourceResourceId, FileShareCopyOption? copyOptions, FileShareRestoreType? restoreRequestType, IList restoreFileSpecs, TargetAfsRestoreInfo targetDetails) : base(objectType) { RecoveryType = recoveryType; SourceResourceId = sourceResourceId; @@ -40,16 +40,16 @@ internal AzureFileShareRestoreRequest(string objectType, RecoveryType? recoveryT } /// Type of this recovery. - public RecoveryType? RecoveryType { get; set; } + public FileShareRecoveryType? RecoveryType { get; set; } /// Source storage account ARM Id. - public string SourceResourceId { get; set; } + public ResourceIdentifier SourceResourceId { get; set; } /// Options to resolve copy conflicts. - public CopyOption? CopyOptions { get; set; } + public FileShareCopyOption? CopyOptions { get; set; } /// Restore Type (FullShareRestore or ItemLevelRestore). - public RestoreRequestType? RestoreRequestType { get; set; } + public FileShareRestoreType? RestoreRequestType { get; set; } /// List of Source Files/Folders(which need to recover) and TargetFolderPath details. public IList RestoreFileSpecs { get; } /// Target File Share Details. - public TargetAFSRestoreInfo TargetDetails { get; set; } + public TargetAfsRestoreInfo TargetDetails { get; set; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareRestoreType.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareRestoreType.cs new file mode 100644 index 0000000000000..88c2d0603732b --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareRestoreType.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Models +{ + /// Restore Type (FullShareRestore or ItemLevelRestore). + public readonly partial struct FileShareRestoreType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public FileShareRestoreType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string InvalidValue = "Invalid"; + private const string FullShareRestoreValue = "FullShareRestore"; + private const string ItemLevelRestoreValue = "ItemLevelRestore"; + + /// Invalid. + public static FileShareRestoreType Invalid { get; } = new FileShareRestoreType(InvalidValue); + /// FullShareRestore. + public static FileShareRestoreType FullShareRestore { get; } = new FileShareRestoreType(FullShareRestoreValue); + /// ItemLevelRestore. + public static FileShareRestoreType ItemLevelRestore { get; } = new FileShareRestoreType(ItemLevelRestoreValue); + /// Determines if two values are the same. + public static bool operator ==(FileShareRestoreType left, FileShareRestoreType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(FileShareRestoreType left, FileShareRestoreType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator FileShareRestoreType(string value) => new FileShareRestoreType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is FileShareRestoreType other && Equals(other); + /// + public bool Equals(FileShareRestoreType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileshareProtectedItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileshareProtectedItem.Serialization.cs similarity index 83% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileshareProtectedItem.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileshareProtectedItem.Serialization.cs index 7403294e1e29b..95d04e3807d1e 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileshareProtectedItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileshareProtectedItem.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureFileshareProtectedItem : IUtf8JsonSerializable + public partial class FileshareProtectedItem : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -75,10 +75,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("policyId"u8); writer.WriteStringValue(PolicyId); } - if (Optional.IsDefined(LastRecoveryPoint)) + if (Optional.IsDefined(LastRecoverOn)) { writer.WritePropertyName("lastRecoveryPoint"u8); - writer.WriteStringValue(LastRecoveryPoint.Value, "O"); + writer.WriteStringValue(LastRecoverOn.Value, "O"); } if (Optional.IsDefined(BackupSetName)) { @@ -90,10 +90,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("createMode"u8); writer.WriteStringValue(CreateMode.Value.ToString()); } - if (Optional.IsDefined(DeferredDeleteTimeInUTC)) + if (Optional.IsDefined(DeferredDeletedOn)) { writer.WritePropertyName("deferredDeleteTimeInUTC"u8); - writer.WriteStringValue(DeferredDeleteTimeInUTC.Value, "O"); + writer.WriteStringValue(DeferredDeletedOn.Value, "O"); } if (Optional.IsDefined(IsScheduledForDeferredDelete)) { @@ -143,24 +143,24 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureFileshareProtectedItem DeserializeAzureFileshareProtectedItem(JsonElement element) + internal static FileshareProtectedItem DeserializeFileshareProtectedItem(JsonElement element) { Optional friendlyName = default; Optional protectionStatus = default; - Optional protectionState = default; + Optional protectionState = default; Optional lastBackupStatus = default; Optional lastBackupTime = default; - Optional> kpisHealths = default; - Optional extendedInfo = default; + Optional> kpisHealths = default; + Optional extendedInfo = default; string protectedItemType = default; Optional backupManagementType = default; - Optional workloadType = default; + Optional workloadType = default; Optional containerName = default; - Optional sourceResourceId = default; - Optional policyId = default; + Optional sourceResourceId = default; + Optional policyId = default; Optional lastRecoveryPoint = default; Optional backupSetName = default; - Optional createMode = default; + Optional createMode = default; Optional deferredDeleteTimeInUTC = default; Optional isScheduledForDeferredDelete = default; Optional deferredDeleteTimeRemaining = default; @@ -189,7 +189,7 @@ internal static AzureFileshareProtectedItem DeserializeAzureFileshareProtectedIt property.ThrowNonNullablePropertyIsNull(); continue; } - protectionState = new ProtectionState(property.Value.GetString()); + protectionState = new BackupProtectionState(property.Value.GetString()); continue; } if (property.NameEquals("lastBackupStatus"u8)) @@ -214,10 +214,10 @@ internal static AzureFileshareProtectedItem DeserializeAzureFileshareProtectedIt property.ThrowNonNullablePropertyIsNull(); continue; } - Dictionary dictionary = new Dictionary(); + Dictionary dictionary = new Dictionary(); foreach (var property0 in property.Value.EnumerateObject()) { - dictionary.Add(property0.Name, KPIResourceHealthDetails.DeserializeKPIResourceHealthDetails(property0.Value)); + dictionary.Add(property0.Name, KpiResourceHealthDetails.DeserializeKpiResourceHealthDetails(property0.Value)); } kpisHealths = dictionary; continue; @@ -229,7 +229,7 @@ internal static AzureFileshareProtectedItem DeserializeAzureFileshareProtectedIt property.ThrowNonNullablePropertyIsNull(); continue; } - extendedInfo = AzureFileshareProtectedItemExtendedInfo.DeserializeAzureFileshareProtectedItemExtendedInfo(property.Value); + extendedInfo = FileshareProtectedItemExtendedInfo.DeserializeFileshareProtectedItemExtendedInfo(property.Value); continue; } if (property.NameEquals("protectedItemType"u8)) @@ -254,7 +254,7 @@ internal static AzureFileshareProtectedItem DeserializeAzureFileshareProtectedIt property.ThrowNonNullablePropertyIsNull(); continue; } - workloadType = new DataSourceType(property.Value.GetString()); + workloadType = new BackupDataSourceType(property.Value.GetString()); continue; } if (property.NameEquals("containerName"u8)) @@ -264,12 +264,22 @@ internal static AzureFileshareProtectedItem DeserializeAzureFileshareProtectedIt } if (property.NameEquals("sourceResourceId"u8)) { - sourceResourceId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + sourceResourceId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("policyId"u8)) { - policyId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + policyId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("lastRecoveryPoint"u8)) @@ -294,7 +304,7 @@ internal static AzureFileshareProtectedItem DeserializeAzureFileshareProtectedIt property.ThrowNonNullablePropertyIsNull(); continue; } - createMode = new CreateMode(property.Value.GetString()); + createMode = new BackupCreateMode(property.Value.GetString()); continue; } if (property.NameEquals("deferredDeleteTimeInUTC"u8)) @@ -383,7 +393,7 @@ internal static AzureFileshareProtectedItem DeserializeAzureFileshareProtectedIt continue; } } - return new AzureFileshareProtectedItem(protectedItemType, Optional.ToNullable(backupManagementType), Optional.ToNullable(workloadType), containerName.Value, sourceResourceId.Value, policyId.Value, Optional.ToNullable(lastRecoveryPoint), backupSetName.Value, Optional.ToNullable(createMode), Optional.ToNullable(deferredDeleteTimeInUTC), Optional.ToNullable(isScheduledForDeferredDelete), deferredDeleteTimeRemaining.Value, Optional.ToNullable(isDeferredDeleteScheduleUpcoming), Optional.ToNullable(isRehydrate), Optional.ToList(resourceGuardOperationRequests), Optional.ToNullable(isArchiveEnabled), policyName.Value, Optional.ToNullable(softDeleteRetentionPeriod), friendlyName.Value, protectionStatus.Value, Optional.ToNullable(protectionState), lastBackupStatus.Value, Optional.ToNullable(lastBackupTime), Optional.ToDictionary(kpisHealths), extendedInfo.Value); + return new FileshareProtectedItem(protectedItemType, Optional.ToNullable(backupManagementType), Optional.ToNullable(workloadType), containerName.Value, sourceResourceId.Value, policyId.Value, Optional.ToNullable(lastRecoveryPoint), backupSetName.Value, Optional.ToNullable(createMode), Optional.ToNullable(deferredDeleteTimeInUTC), Optional.ToNullable(isScheduledForDeferredDelete), deferredDeleteTimeRemaining.Value, Optional.ToNullable(isDeferredDeleteScheduleUpcoming), Optional.ToNullable(isRehydrate), Optional.ToList(resourceGuardOperationRequests), Optional.ToNullable(isArchiveEnabled), policyName.Value, Optional.ToNullable(softDeleteRetentionPeriod), friendlyName.Value, protectionStatus.Value, Optional.ToNullable(protectionState), lastBackupStatus.Value, Optional.ToNullable(lastBackupTime), Optional.ToDictionary(kpisHealths), extendedInfo.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileshareProtectedItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileshareProtectedItem.cs similarity index 68% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileshareProtectedItem.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileshareProtectedItem.cs index bb9cf09208fe7..145fe6a8719f8 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileshareProtectedItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileshareProtectedItem.cs @@ -12,26 +12,26 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Azure File Share workload-specific backup item. - public partial class AzureFileshareProtectedItem : ProtectedItem + public partial class FileshareProtectedItem : BackupGenericProtectedItem { - /// Initializes a new instance of AzureFileshareProtectedItem. - public AzureFileshareProtectedItem() + /// Initializes a new instance of FileshareProtectedItem. + public FileshareProtectedItem() { - KpisHealths = new ChangeTrackingDictionary(); + KpisHealths = new ChangeTrackingDictionary(); ProtectedItemType = "AzureFileShareProtectedItem"; } - /// Initializes a new instance of AzureFileshareProtectedItem. + /// Initializes a new instance of FileshareProtectedItem. /// backup item type. /// Type of backup management for the backed up item. /// Type of workload this item represents. /// Unique name of container. /// ARM ID of the resource to be backed up. /// ID of the backup policy with which this item is backed up. - /// Timestamp when the last (latest) backup copy was created for this backup item. + /// Timestamp when the last (latest) backup copy was created for this backup item. /// Name of the backup set the backup item belongs to. /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. - /// Time for deferred deletion in UTC. + /// Time for deferred deletion in UTC. /// Flag to identify whether the DS is scheduled for deferred delete. /// Time remaining before the DS marked for deferred delete is permanently deleted. /// Flag to identify whether the deferred deleted DS is to be purged soon. @@ -47,7 +47,7 @@ public AzureFileshareProtectedItem() /// Timestamp of the last backup operation on this backup item. /// Health details of different KPIs. /// Additional information with this backup item. - internal AzureFileshareProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, DataSourceType? workloadType, string containerName, string sourceResourceId, string policyId, DateTimeOffset? lastRecoveryPoint, string backupSetName, CreateMode? createMode, DateTimeOffset? deferredDeleteTimeInUTC, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriod, string friendlyName, string protectionStatus, ProtectionState? protectionState, string lastBackupStatus, DateTimeOffset? lastBackupOn, IDictionary kpisHealths, AzureFileshareProtectedItemExtendedInfo extendedInfo) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, deferredDeleteTimeInUTC, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriod) + internal FileshareProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, ResourceIdentifier policyId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriod, string friendlyName, string protectionStatus, BackupProtectionState? protectionState, string lastBackupStatus, DateTimeOffset? lastBackupOn, IDictionary kpisHealths, FileshareProtectedItemExtendedInfo extendedInfo) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriod) { FriendlyName = friendlyName; ProtectionStatus = protectionStatus; @@ -64,14 +64,14 @@ internal AzureFileshareProtectedItem(string protectedItemType, BackupManagementT /// Backup status of this backup item. public string ProtectionStatus { get; set; } /// Backup state of this backup item. - public ProtectionState? ProtectionState { get; set; } + public BackupProtectionState? ProtectionState { get; set; } /// Last backup operation status. Possible values: Healthy, Unhealthy. public string LastBackupStatus { get; set; } /// Timestamp of the last backup operation on this backup item. public DateTimeOffset? LastBackupOn { get; set; } /// Health details of different KPIs. - public IDictionary KpisHealths { get; } + public IDictionary KpisHealths { get; } /// Additional information with this backup item. - public AzureFileshareProtectedItemExtendedInfo ExtendedInfo { get; set; } + public FileshareProtectedItemExtendedInfo ExtendedInfo { get; set; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileshareProtectedItemExtendedInfo.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileshareProtectedItemExtendedInfo.Serialization.cs similarity index 83% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileshareProtectedItemExtendedInfo.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileshareProtectedItemExtendedInfo.Serialization.cs index f8e6f58624886..1a3b23445c498 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileshareProtectedItemExtendedInfo.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileshareProtectedItemExtendedInfo.Serialization.cs @@ -11,15 +11,15 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureFileshareProtectedItemExtendedInfo : IUtf8JsonSerializable + public partial class FileshareProtectedItemExtendedInfo : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - if (Optional.IsDefined(OldestRecoveryPoint)) + if (Optional.IsDefined(OldestRecoverOn)) { writer.WritePropertyName("oldestRecoveryPoint"u8); - writer.WriteStringValue(OldestRecoveryPoint.Value, "O"); + writer.WriteStringValue(OldestRecoverOn.Value, "O"); } if (Optional.IsDefined(RecoveryPointCount)) { @@ -34,7 +34,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureFileshareProtectedItemExtendedInfo DeserializeAzureFileshareProtectedItemExtendedInfo(JsonElement element) + internal static FileshareProtectedItemExtendedInfo DeserializeFileshareProtectedItemExtendedInfo(JsonElement element) { Optional oldestRecoveryPoint = default; Optional recoveryPointCount = default; @@ -84,7 +84,7 @@ internal static AzureFileshareProtectedItemExtendedInfo DeserializeAzureFileshar continue; } } - return new AzureFileshareProtectedItemExtendedInfo(Optional.ToNullable(oldestRecoveryPoint), Optional.ToNullable(recoveryPointCount), policyState.Value, resourceState.Value, Optional.ToNullable(resourceStateSyncTime)); + return new FileshareProtectedItemExtendedInfo(Optional.ToNullable(oldestRecoveryPoint), Optional.ToNullable(recoveryPointCount), policyState.Value, resourceState.Value, Optional.ToNullable(resourceStateSyncTime)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileshareProtectedItemExtendedInfo.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileshareProtectedItemExtendedInfo.cs similarity index 70% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileshareProtectedItemExtendedInfo.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileshareProtectedItemExtendedInfo.cs index a600da67dc3d6..6ea83003df26a 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureFileshareProtectedItemExtendedInfo.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileshareProtectedItemExtendedInfo.cs @@ -10,22 +10,22 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Additional information about Azure File Share backup item. - public partial class AzureFileshareProtectedItemExtendedInfo + public partial class FileshareProtectedItemExtendedInfo { - /// Initializes a new instance of AzureFileshareProtectedItemExtendedInfo. - public AzureFileshareProtectedItemExtendedInfo() + /// Initializes a new instance of FileshareProtectedItemExtendedInfo. + public FileshareProtectedItemExtendedInfo() { } - /// Initializes a new instance of AzureFileshareProtectedItemExtendedInfo. - /// The oldest backup copy available for this item in the service. + /// Initializes a new instance of FileshareProtectedItemExtendedInfo. + /// The oldest backup copy available for this item in the service. /// Number of available backup copies associated with this backup item. /// Indicates consistency of policy object and policy applied to this backup item. /// Indicates the state of this resource. Possible values are from enum ResourceState {Invalid, Active, SoftDeleted, Deleted}. /// The resource state sync time for this backup item. - internal AzureFileshareProtectedItemExtendedInfo(DateTimeOffset? oldestRecoveryPoint, int? recoveryPointCount, string policyState, string resourceState, DateTimeOffset? resourceStateSyncOn) + internal FileshareProtectedItemExtendedInfo(DateTimeOffset? oldestRecoverOn, int? recoveryPointCount, string policyState, string resourceState, DateTimeOffset? resourceStateSyncOn) { - OldestRecoveryPoint = oldestRecoveryPoint; + OldestRecoverOn = oldestRecoverOn; RecoveryPointCount = recoveryPointCount; PolicyState = policyState; ResourceState = resourceState; @@ -33,7 +33,7 @@ internal AzureFileshareProtectedItemExtendedInfo(DateTimeOffset? oldestRecoveryP } /// The oldest backup copy available for this item in the service. - public DateTimeOffset? OldestRecoveryPoint { get; set; } + public DateTimeOffset? OldestRecoverOn { get; set; } /// Number of available backup copies associated with this backup item. public int? RecoveryPointCount { get; set; } /// Indicates consistency of policy object and policy applied to this backup item. diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/GenericContainer.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/GenericContainer.cs index 3a1a99df850e1..d3d803aae3963 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/GenericContainer.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/GenericContainer.cs @@ -8,7 +8,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Base class for generic container of backup items. - public partial class GenericContainer : ProtectionContainer + public partial class GenericContainer : BackupGenericProtectionContainer { /// Initializes a new instance of GenericContainer. public GenericContainer() diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/GenericProtectedItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/GenericProtectedItem.Serialization.cs index 817261b440ecc..ec05f91fdf578 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/GenericProtectedItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/GenericProtectedItem.Serialization.cs @@ -70,10 +70,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("policyId"u8); writer.WriteStringValue(PolicyId); } - if (Optional.IsDefined(LastRecoveryPoint)) + if (Optional.IsDefined(LastRecoverOn)) { writer.WritePropertyName("lastRecoveryPoint"u8); - writer.WriteStringValue(LastRecoveryPoint.Value, "O"); + writer.WriteStringValue(LastRecoverOn.Value, "O"); } if (Optional.IsDefined(BackupSetName)) { @@ -85,10 +85,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("createMode"u8); writer.WriteStringValue(CreateMode.Value.ToString()); } - if (Optional.IsDefined(DeferredDeleteTimeInUTC)) + if (Optional.IsDefined(DeferredDeletedOn)) { writer.WritePropertyName("deferredDeleteTimeInUTC"u8); - writer.WriteStringValue(DeferredDeleteTimeInUTC.Value, "O"); + writer.WriteStringValue(DeferredDeletedOn.Value, "O"); } if (Optional.IsDefined(IsScheduledForDeferredDelete)) { @@ -142,19 +142,19 @@ internal static GenericProtectedItem DeserializeGenericProtectedItem(JsonElement { Optional friendlyName = default; Optional policyState = default; - Optional protectionState = default; + Optional protectionState = default; Optional protectedItemId = default; Optional> sourceAssociations = default; Optional fabricName = default; string protectedItemType = default; Optional backupManagementType = default; - Optional workloadType = default; + Optional workloadType = default; Optional containerName = default; - Optional sourceResourceId = default; - Optional policyId = default; + Optional sourceResourceId = default; + Optional policyId = default; Optional lastRecoveryPoint = default; Optional backupSetName = default; - Optional createMode = default; + Optional createMode = default; Optional deferredDeleteTimeInUTC = default; Optional isScheduledForDeferredDelete = default; Optional deferredDeleteTimeRemaining = default; @@ -183,7 +183,7 @@ internal static GenericProtectedItem DeserializeGenericProtectedItem(JsonElement property.ThrowNonNullablePropertyIsNull(); continue; } - protectionState = new ProtectionState(property.Value.GetString()); + protectionState = new BackupProtectionState(property.Value.GetString()); continue; } if (property.NameEquals("protectedItemId"u8)) @@ -238,7 +238,7 @@ internal static GenericProtectedItem DeserializeGenericProtectedItem(JsonElement property.ThrowNonNullablePropertyIsNull(); continue; } - workloadType = new DataSourceType(property.Value.GetString()); + workloadType = new BackupDataSourceType(property.Value.GetString()); continue; } if (property.NameEquals("containerName"u8)) @@ -248,12 +248,22 @@ internal static GenericProtectedItem DeserializeGenericProtectedItem(JsonElement } if (property.NameEquals("sourceResourceId"u8)) { - sourceResourceId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + sourceResourceId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("policyId"u8)) { - policyId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + policyId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("lastRecoveryPoint"u8)) @@ -278,7 +288,7 @@ internal static GenericProtectedItem DeserializeGenericProtectedItem(JsonElement property.ThrowNonNullablePropertyIsNull(); continue; } - createMode = new CreateMode(property.Value.GetString()); + createMode = new BackupCreateMode(property.Value.GetString()); continue; } if (property.NameEquals("deferredDeleteTimeInUTC"u8)) diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/GenericProtectedItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/GenericProtectedItem.cs index c64bccc430545..8d8b8e42e8636 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/GenericProtectedItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/GenericProtectedItem.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Base class for backup items. - public partial class GenericProtectedItem : ProtectedItem + public partial class GenericProtectedItem : BackupGenericProtectedItem { /// Initializes a new instance of GenericProtectedItem. public GenericProtectedItem() @@ -28,10 +28,10 @@ public GenericProtectedItem() /// Unique name of container. /// ARM ID of the resource to be backed up. /// ID of the backup policy with which this item is backed up. - /// Timestamp when the last (latest) backup copy was created for this backup item. + /// Timestamp when the last (latest) backup copy was created for this backup item. /// Name of the backup set the backup item belongs to. /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. - /// Time for deferred deletion in UTC. + /// Time for deferred deletion in UTC. /// Flag to identify whether the DS is scheduled for deferred delete. /// Time remaining before the DS marked for deferred delete is permanently deleted. /// Flag to identify whether the deferred deleted DS is to be purged soon. @@ -46,7 +46,7 @@ public GenericProtectedItem() /// Data Plane Service ID of the protected item. /// Loosely coupled (type, value) associations (example - parent of a protected item). /// Name of this backup item's fabric. - internal GenericProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, DataSourceType? workloadType, string containerName, string sourceResourceId, string policyId, DateTimeOffset? lastRecoveryPoint, string backupSetName, CreateMode? createMode, DateTimeOffset? deferredDeleteTimeInUTC, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriod, string friendlyName, string policyState, ProtectionState? protectionState, long? protectedItemId, IDictionary sourceAssociations, string fabricName) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, deferredDeleteTimeInUTC, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriod) + internal GenericProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, ResourceIdentifier policyId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriod, string friendlyName, string policyState, BackupProtectionState? protectionState, long? protectedItemId, IDictionary sourceAssociations, string fabricName) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriod) { FriendlyName = friendlyName; PolicyState = policyState; @@ -62,7 +62,7 @@ internal GenericProtectedItem(string protectedItemType, BackupManagementType? ba /// Indicates consistency of policy object and policy applied to this backup item. public string PolicyState { get; set; } /// Backup state of this backup item. - public ProtectionState? ProtectionState { get; set; } + public BackupProtectionState? ProtectionState { get; set; } /// Data Plane Service ID of the protected item. public long? ProtectedItemId { get; set; } /// Loosely coupled (type, value) associations (example - parent of a protected item). diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/GenericProtectionPolicy.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/GenericProtectionPolicy.cs index cc75fa3161678..768f7c783e9b5 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/GenericProtectionPolicy.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/GenericProtectionPolicy.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Azure VM (Mercury) workload-specific backup policy. - public partial class GenericProtectionPolicy : ProtectionPolicy + public partial class GenericProtectionPolicy : BackupGenericProtectionPolicy { /// Initializes a new instance of GenericProtectionPolicy. public GenericProtectionPolicy() diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/GenericRecoveryPoint.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/GenericRecoveryPoint.cs index f90e0db53853c..081b145012eb5 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/GenericRecoveryPoint.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/GenericRecoveryPoint.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Generic backup copy. - public partial class GenericRecoveryPoint : RecoveryPoint + public partial class GenericRecoveryPoint : BackupGenericRecoveryPoint { /// Initializes a new instance of GenericRecoveryPoint. public GenericRecoveryPoint() diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/HealthStatus.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/HealthStatus.cs deleted file mode 100644 index 6ac7147306483..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/HealthStatus.cs +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - /// Health status of protected item. - public readonly partial struct HealthStatus : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public HealthStatus(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string PassedValue = "Passed"; - private const string ActionRequiredValue = "ActionRequired"; - private const string ActionSuggestedValue = "ActionSuggested"; - private const string InvalidValue = "Invalid"; - - /// Passed. - public static HealthStatus Passed { get; } = new HealthStatus(PassedValue); - /// ActionRequired. - public static HealthStatus ActionRequired { get; } = new HealthStatus(ActionRequiredValue); - /// ActionSuggested. - public static HealthStatus ActionSuggested { get; } = new HealthStatus(ActionSuggestedValue); - /// Invalid. - public static HealthStatus Invalid { get; } = new HealthStatus(InvalidValue); - /// Determines if two values are the same. - public static bool operator ==(HealthStatus left, HealthStatus right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(HealthStatus left, HealthStatus right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator HealthStatus(string value) => new HealthStatus(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is HealthStatus other && Equals(other); - /// - public bool Equals(HealthStatus other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/HttpStatusCode.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/HttpStatusCode.Serialization.cs deleted file mode 100644 index 65fcca61d0d6e..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/HttpStatusCode.Serialization.cs +++ /dev/null @@ -1,118 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - internal static partial class HttpStatusCodeExtensions - { - public static string ToSerialString(this HttpStatusCode value) => value switch - { - HttpStatusCode.Continue => "Continue", - HttpStatusCode.SwitchingProtocols => "SwitchingProtocols", - HttpStatusCode.OK => "OK", - HttpStatusCode.Created => "Created", - HttpStatusCode.Accepted => "Accepted", - HttpStatusCode.NonAuthoritativeInformation => "NonAuthoritativeInformation", - HttpStatusCode.NoContent => "NoContent", - HttpStatusCode.ResetContent => "ResetContent", - HttpStatusCode.PartialContent => "PartialContent", - HttpStatusCode.MultipleChoices => "MultipleChoices", - HttpStatusCode.Ambiguous => "Ambiguous", - HttpStatusCode.MovedPermanently => "MovedPermanently", - HttpStatusCode.Moved => "Moved", - HttpStatusCode.Found => "Found", - HttpStatusCode.Redirect => "Redirect", - HttpStatusCode.SeeOther => "SeeOther", - HttpStatusCode.RedirectMethod => "RedirectMethod", - HttpStatusCode.NotModified => "NotModified", - HttpStatusCode.UseProxy => "UseProxy", - HttpStatusCode.Unused => "Unused", - HttpStatusCode.TemporaryRedirect => "TemporaryRedirect", - HttpStatusCode.RedirectKeepVerb => "RedirectKeepVerb", - HttpStatusCode.BadRequest => "BadRequest", - HttpStatusCode.Unauthorized => "Unauthorized", - HttpStatusCode.PaymentRequired => "PaymentRequired", - HttpStatusCode.Forbidden => "Forbidden", - HttpStatusCode.NotFound => "NotFound", - HttpStatusCode.MethodNotAllowed => "MethodNotAllowed", - HttpStatusCode.NotAcceptable => "NotAcceptable", - HttpStatusCode.ProxyAuthenticationRequired => "ProxyAuthenticationRequired", - HttpStatusCode.RequestTimeout => "RequestTimeout", - HttpStatusCode.Conflict => "Conflict", - HttpStatusCode.Gone => "Gone", - HttpStatusCode.LengthRequired => "LengthRequired", - HttpStatusCode.PreconditionFailed => "PreconditionFailed", - HttpStatusCode.RequestEntityTooLarge => "RequestEntityTooLarge", - HttpStatusCode.RequestUriTooLong => "RequestUriTooLong", - HttpStatusCode.UnsupportedMediaType => "UnsupportedMediaType", - HttpStatusCode.RequestedRangeNotSatisfiable => "RequestedRangeNotSatisfiable", - HttpStatusCode.ExpectationFailed => "ExpectationFailed", - HttpStatusCode.UpgradeRequired => "UpgradeRequired", - HttpStatusCode.InternalServerError => "InternalServerError", - HttpStatusCode.NotImplemented => "NotImplemented", - HttpStatusCode.BadGateway => "BadGateway", - HttpStatusCode.ServiceUnavailable => "ServiceUnavailable", - HttpStatusCode.GatewayTimeout => "GatewayTimeout", - HttpStatusCode.HttpVersionNotSupported => "HttpVersionNotSupported", - _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown HttpStatusCode value.") - }; - - public static HttpStatusCode ToHttpStatusCode(this string value) - { - if (string.Equals(value, "Continue", StringComparison.InvariantCultureIgnoreCase)) return HttpStatusCode.Continue; - if (string.Equals(value, "SwitchingProtocols", StringComparison.InvariantCultureIgnoreCase)) return HttpStatusCode.SwitchingProtocols; - if (string.Equals(value, "OK", StringComparison.InvariantCultureIgnoreCase)) return HttpStatusCode.OK; - if (string.Equals(value, "Created", StringComparison.InvariantCultureIgnoreCase)) return HttpStatusCode.Created; - if (string.Equals(value, "Accepted", StringComparison.InvariantCultureIgnoreCase)) return HttpStatusCode.Accepted; - if (string.Equals(value, "NonAuthoritativeInformation", StringComparison.InvariantCultureIgnoreCase)) return HttpStatusCode.NonAuthoritativeInformation; - if (string.Equals(value, "NoContent", StringComparison.InvariantCultureIgnoreCase)) return HttpStatusCode.NoContent; - if (string.Equals(value, "ResetContent", StringComparison.InvariantCultureIgnoreCase)) return HttpStatusCode.ResetContent; - if (string.Equals(value, "PartialContent", StringComparison.InvariantCultureIgnoreCase)) return HttpStatusCode.PartialContent; - if (string.Equals(value, "MultipleChoices", StringComparison.InvariantCultureIgnoreCase)) return HttpStatusCode.MultipleChoices; - if (string.Equals(value, "Ambiguous", StringComparison.InvariantCultureIgnoreCase)) return HttpStatusCode.Ambiguous; - if (string.Equals(value, "MovedPermanently", StringComparison.InvariantCultureIgnoreCase)) return HttpStatusCode.MovedPermanently; - if (string.Equals(value, "Moved", StringComparison.InvariantCultureIgnoreCase)) return HttpStatusCode.Moved; - if (string.Equals(value, "Found", StringComparison.InvariantCultureIgnoreCase)) return HttpStatusCode.Found; - if (string.Equals(value, "Redirect", StringComparison.InvariantCultureIgnoreCase)) return HttpStatusCode.Redirect; - if (string.Equals(value, "SeeOther", StringComparison.InvariantCultureIgnoreCase)) return HttpStatusCode.SeeOther; - if (string.Equals(value, "RedirectMethod", StringComparison.InvariantCultureIgnoreCase)) return HttpStatusCode.RedirectMethod; - if (string.Equals(value, "NotModified", StringComparison.InvariantCultureIgnoreCase)) return HttpStatusCode.NotModified; - if (string.Equals(value, "UseProxy", StringComparison.InvariantCultureIgnoreCase)) return HttpStatusCode.UseProxy; - if (string.Equals(value, "Unused", StringComparison.InvariantCultureIgnoreCase)) return HttpStatusCode.Unused; - if (string.Equals(value, "TemporaryRedirect", StringComparison.InvariantCultureIgnoreCase)) return HttpStatusCode.TemporaryRedirect; - if (string.Equals(value, "RedirectKeepVerb", StringComparison.InvariantCultureIgnoreCase)) return HttpStatusCode.RedirectKeepVerb; - if (string.Equals(value, "BadRequest", StringComparison.InvariantCultureIgnoreCase)) return HttpStatusCode.BadRequest; - if (string.Equals(value, "Unauthorized", StringComparison.InvariantCultureIgnoreCase)) return HttpStatusCode.Unauthorized; - if (string.Equals(value, "PaymentRequired", StringComparison.InvariantCultureIgnoreCase)) return HttpStatusCode.PaymentRequired; - if (string.Equals(value, "Forbidden", StringComparison.InvariantCultureIgnoreCase)) return HttpStatusCode.Forbidden; - if (string.Equals(value, "NotFound", StringComparison.InvariantCultureIgnoreCase)) return HttpStatusCode.NotFound; - if (string.Equals(value, "MethodNotAllowed", StringComparison.InvariantCultureIgnoreCase)) return HttpStatusCode.MethodNotAllowed; - if (string.Equals(value, "NotAcceptable", StringComparison.InvariantCultureIgnoreCase)) return HttpStatusCode.NotAcceptable; - if (string.Equals(value, "ProxyAuthenticationRequired", StringComparison.InvariantCultureIgnoreCase)) return HttpStatusCode.ProxyAuthenticationRequired; - if (string.Equals(value, "RequestTimeout", StringComparison.InvariantCultureIgnoreCase)) return HttpStatusCode.RequestTimeout; - if (string.Equals(value, "Conflict", StringComparison.InvariantCultureIgnoreCase)) return HttpStatusCode.Conflict; - if (string.Equals(value, "Gone", StringComparison.InvariantCultureIgnoreCase)) return HttpStatusCode.Gone; - if (string.Equals(value, "LengthRequired", StringComparison.InvariantCultureIgnoreCase)) return HttpStatusCode.LengthRequired; - if (string.Equals(value, "PreconditionFailed", StringComparison.InvariantCultureIgnoreCase)) return HttpStatusCode.PreconditionFailed; - if (string.Equals(value, "RequestEntityTooLarge", StringComparison.InvariantCultureIgnoreCase)) return HttpStatusCode.RequestEntityTooLarge; - if (string.Equals(value, "RequestUriTooLong", StringComparison.InvariantCultureIgnoreCase)) return HttpStatusCode.RequestUriTooLong; - if (string.Equals(value, "UnsupportedMediaType", StringComparison.InvariantCultureIgnoreCase)) return HttpStatusCode.UnsupportedMediaType; - if (string.Equals(value, "RequestedRangeNotSatisfiable", StringComparison.InvariantCultureIgnoreCase)) return HttpStatusCode.RequestedRangeNotSatisfiable; - if (string.Equals(value, "ExpectationFailed", StringComparison.InvariantCultureIgnoreCase)) return HttpStatusCode.ExpectationFailed; - if (string.Equals(value, "UpgradeRequired", StringComparison.InvariantCultureIgnoreCase)) return HttpStatusCode.UpgradeRequired; - if (string.Equals(value, "InternalServerError", StringComparison.InvariantCultureIgnoreCase)) return HttpStatusCode.InternalServerError; - if (string.Equals(value, "NotImplemented", StringComparison.InvariantCultureIgnoreCase)) return HttpStatusCode.NotImplemented; - if (string.Equals(value, "BadGateway", StringComparison.InvariantCultureIgnoreCase)) return HttpStatusCode.BadGateway; - if (string.Equals(value, "ServiceUnavailable", StringComparison.InvariantCultureIgnoreCase)) return HttpStatusCode.ServiceUnavailable; - if (string.Equals(value, "GatewayTimeout", StringComparison.InvariantCultureIgnoreCase)) return HttpStatusCode.GatewayTimeout; - if (string.Equals(value, "HttpVersionNotSupported", StringComparison.InvariantCultureIgnoreCase)) return HttpStatusCode.HttpVersionNotSupported; - throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown HttpStatusCode value."); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/HttpStatusCode.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/HttpStatusCode.cs deleted file mode 100644 index 5bec0122219e2..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/HttpStatusCode.cs +++ /dev/null @@ -1,108 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - /// HTTP Status Code of the operation. - public enum HttpStatusCode - { - /// Continue. - Continue, - /// SwitchingProtocols. - SwitchingProtocols, - /// OK. - OK, - /// Created. - Created, - /// Accepted. - Accepted, - /// NonAuthoritativeInformation. - NonAuthoritativeInformation, - /// NoContent. - NoContent, - /// ResetContent. - ResetContent, - /// PartialContent. - PartialContent, - /// MultipleChoices. - MultipleChoices, - /// Ambiguous. - Ambiguous, - /// MovedPermanently. - MovedPermanently, - /// Moved. - Moved, - /// Found. - Found, - /// Redirect. - Redirect, - /// SeeOther. - SeeOther, - /// RedirectMethod. - RedirectMethod, - /// NotModified. - NotModified, - /// UseProxy. - UseProxy, - /// Unused. - Unused, - /// TemporaryRedirect. - TemporaryRedirect, - /// RedirectKeepVerb. - RedirectKeepVerb, - /// BadRequest. - BadRequest, - /// Unauthorized. - Unauthorized, - /// PaymentRequired. - PaymentRequired, - /// Forbidden. - Forbidden, - /// NotFound. - NotFound, - /// MethodNotAllowed. - MethodNotAllowed, - /// NotAcceptable. - NotAcceptable, - /// ProxyAuthenticationRequired. - ProxyAuthenticationRequired, - /// RequestTimeout. - RequestTimeout, - /// Conflict. - Conflict, - /// Gone. - Gone, - /// LengthRequired. - LengthRequired, - /// PreconditionFailed. - PreconditionFailed, - /// RequestEntityTooLarge. - RequestEntityTooLarge, - /// RequestUriTooLong. - RequestUriTooLong, - /// UnsupportedMediaType. - UnsupportedMediaType, - /// RequestedRangeNotSatisfiable. - RequestedRangeNotSatisfiable, - /// ExpectationFailed. - ExpectationFailed, - /// UpgradeRequired. - UpgradeRequired, - /// InternalServerError. - InternalServerError, - /// NotImplemented. - NotImplemented, - /// BadGateway. - BadGateway, - /// ServiceUnavailable. - ServiceUnavailable, - /// GatewayTimeout. - GatewayTimeout, - /// HttpVersionNotSupported. - HttpVersionNotSupported - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaaSComputeVmContainer.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasClassicComputeVmContainer.Serialization.cs similarity index 84% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaaSComputeVmContainer.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasClassicComputeVmContainer.Serialization.cs index bb8474ab386e8..90268276143ac 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaaSComputeVmContainer.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasClassicComputeVmContainer.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureIaaSComputeVmContainer : IUtf8JsonSerializable + public partial class IaasClassicComputeVmContainer : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -60,9 +60,9 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureIaaSComputeVmContainer DeserializeAzureIaaSComputeVmContainer(JsonElement element) + internal static IaasClassicComputeVmContainer DeserializeIaasClassicComputeVmContainer(JsonElement element) { - Optional virtualMachineId = default; + Optional virtualMachineId = default; Optional virtualMachineVersion = default; Optional resourceGroup = default; Optional friendlyName = default; @@ -75,7 +75,12 @@ internal static AzureIaaSComputeVmContainer DeserializeAzureIaaSComputeVmContain { if (property.NameEquals("virtualMachineId"u8)) { - virtualMachineId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + virtualMachineId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("virtualMachineVersion"u8)) @@ -124,7 +129,7 @@ internal static AzureIaaSComputeVmContainer DeserializeAzureIaaSComputeVmContain continue; } } - return new AzureIaaSComputeVmContainer(friendlyName.Value, Optional.ToNullable(backupManagementType), registrationStatus.Value, healthStatus.Value, containerType, protectableObjectType.Value, virtualMachineId.Value, virtualMachineVersion.Value, resourceGroup.Value); + return new IaasClassicComputeVmContainer(friendlyName.Value, Optional.ToNullable(backupManagementType), registrationStatus.Value, healthStatus.Value, containerType, protectableObjectType.Value, virtualMachineId.Value, virtualMachineVersion.Value, resourceGroup.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaaSComputeVmContainer.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasClassicComputeVmContainer.cs similarity index 64% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaaSComputeVmContainer.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasClassicComputeVmContainer.cs index 2f8c8bfe82734..af7b7d6904975 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaaSComputeVmContainer.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasClassicComputeVmContainer.cs @@ -5,18 +5,20 @@ #nullable disable +using Azure.Core; + namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - /// IaaS VM workload-specific backup item representing an Azure Resource Manager virtual machine. - public partial class AzureIaaSComputeVmContainer : IaasVmContainer + /// IaaS VM workload-specific backup item representing a classic virtual machine. + public partial class IaasClassicComputeVmContainer : IaasVmContainer { - /// Initializes a new instance of AzureIaaSComputeVmContainer. - public AzureIaaSComputeVmContainer() + /// Initializes a new instance of IaasClassicComputeVmContainer. + public IaasClassicComputeVmContainer() { - ContainerType = ProtectableContainerType.MicrosoftComputeVirtualMachines; + ContainerType = ProtectableContainerType.MicrosoftClassicComputeVirtualMachines; } - /// Initializes a new instance of AzureIaaSComputeVmContainer. + /// Initializes a new instance of IaasClassicComputeVmContainer. /// Friendly name of the container. /// Type of backup management for the container. /// Status of registration of the container with the Recovery Services Vault. @@ -31,7 +33,7 @@ public AzureIaaSComputeVmContainer() /// Fully qualified ARM url of the virtual machine represented by this Azure IaaS VM container. /// Specifies whether the container represents a Classic or an Azure Resource Manager VM. /// Resource group name of Recovery Services Vault. - internal AzureIaaSComputeVmContainer(string friendlyName, BackupManagementType? backupManagementType, string registrationStatus, string healthStatus, ProtectableContainerType containerType, string protectableObjectType, string virtualMachineId, string virtualMachineVersion, string resourceGroup) : base(friendlyName, backupManagementType, registrationStatus, healthStatus, containerType, protectableObjectType, virtualMachineId, virtualMachineVersion, resourceGroup) + internal IaasClassicComputeVmContainer(string friendlyName, BackupManagementType? backupManagementType, string registrationStatus, string healthStatus, ProtectableContainerType containerType, string protectableObjectType, ResourceIdentifier virtualMachineId, string virtualMachineVersion, string resourceGroup) : base(friendlyName, backupManagementType, registrationStatus, healthStatus, containerType, protectableObjectType, virtualMachineId, virtualMachineVersion, resourceGroup) { ContainerType = containerType; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaaSComputeVmProtectableItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasClassicComputeVmProtectableItem.Serialization.cs similarity index 80% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaaSComputeVmProtectableItem.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasClassicComputeVmProtectableItem.Serialization.cs index b5c1f28c9337f..8e717cb13c6c5 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaaSComputeVmProtectableItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasClassicComputeVmProtectableItem.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureIaaSComputeVmProtectableItem : IUtf8JsonSerializable + public partial class IaasClassicComputeVmProtectableItem : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -55,21 +55,26 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureIaaSComputeVmProtectableItem DeserializeAzureIaaSComputeVmProtectableItem(JsonElement element) + internal static IaasClassicComputeVmProtectableItem DeserializeIaasClassicComputeVmProtectableItem(JsonElement element) { - Optional virtualMachineId = default; + Optional virtualMachineId = default; Optional virtualMachineVersion = default; Optional resourceGroup = default; Optional backupManagementType = default; Optional workloadType = default; string protectableItemType = default; Optional friendlyName = default; - Optional protectionState = default; + Optional protectionState = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("virtualMachineId"u8)) { - virtualMachineId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + virtualMachineId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("virtualMachineVersion"u8)) @@ -109,11 +114,11 @@ internal static AzureIaaSComputeVmProtectableItem DeserializeAzureIaaSComputeVmP property.ThrowNonNullablePropertyIsNull(); continue; } - protectionState = new ProtectionStatus(property.Value.GetString()); + protectionState = new BackupProtectionStatus(property.Value.GetString()); continue; } } - return new AzureIaaSComputeVmProtectableItem(backupManagementType.Value, workloadType.Value, protectableItemType, friendlyName.Value, Optional.ToNullable(protectionState), virtualMachineId.Value, virtualMachineVersion.Value, resourceGroup.Value); + return new IaasClassicComputeVmProtectableItem(backupManagementType.Value, workloadType.Value, protectableItemType, friendlyName.Value, Optional.ToNullable(protectionState), virtualMachineId.Value, virtualMachineVersion.Value, resourceGroup.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaaSClassicComputeVmProtectableItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasClassicComputeVmProtectableItem.cs similarity index 62% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaaSClassicComputeVmProtectableItem.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasClassicComputeVmProtectableItem.cs index a620b574ec162..df9fd7c20d4ae 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaaSClassicComputeVmProtectableItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasClassicComputeVmProtectableItem.cs @@ -5,18 +5,20 @@ #nullable disable +using Azure.Core; + namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// IaaS VM workload-specific backup item representing the Classic Compute VM. - public partial class AzureIaaSClassicComputeVmProtectableItem : IaasVmProtectableItem + public partial class IaasClassicComputeVmProtectableItem : IaasVmProtectableItem { - /// Initializes a new instance of AzureIaaSClassicComputeVmProtectableItem. - public AzureIaaSClassicComputeVmProtectableItem() + /// Initializes a new instance of IaasClassicComputeVmProtectableItem. + public IaasClassicComputeVmProtectableItem() { ProtectableItemType = "Microsoft.ClassicCompute/virtualMachines"; } - /// Initializes a new instance of AzureIaaSClassicComputeVmProtectableItem. + /// Initializes a new instance of IaasClassicComputeVmProtectableItem. /// Type of backup management to backup an item. /// Type of workload for the backup management. /// Type of the backup item. @@ -25,7 +27,7 @@ public AzureIaaSClassicComputeVmProtectableItem() /// Fully qualified ARM ID of the virtual machine. /// Specifies whether the container represents a Classic or an Azure Resource Manager VM. /// Resource group name of Recovery Services Vault. - internal AzureIaaSClassicComputeVmProtectableItem(string backupManagementType, string workloadType, string protectableItemType, string friendlyName, ProtectionStatus? protectionState, string virtualMachineId, string virtualMachineVersion, string resourceGroup) : base(backupManagementType, workloadType, protectableItemType, friendlyName, protectionState, virtualMachineId, virtualMachineVersion, resourceGroup) + internal IaasClassicComputeVmProtectableItem(string backupManagementType, string workloadType, string protectableItemType, string friendlyName, BackupProtectionStatus? protectionState, ResourceIdentifier virtualMachineId, string virtualMachineVersion, string resourceGroup) : base(backupManagementType, workloadType, protectableItemType, friendlyName, protectionState, virtualMachineId, virtualMachineVersion, resourceGroup) { ProtectableItemType = protectableItemType ?? "Microsoft.ClassicCompute/virtualMachines"; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaaSComputeVmProtectedItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasClassicComputeVmProtectedItem.Serialization.cs similarity index 79% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaaSComputeVmProtectedItem.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasClassicComputeVmProtectedItem.Serialization.cs index 879f88635a3e3..8b0fb9fa4fd7a 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaaSComputeVmProtectedItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasClassicComputeVmProtectedItem.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureIaaSComputeVmProtectedItem : IUtf8JsonSerializable + public partial class IaasClassicComputeVmProtectedItem : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -80,10 +80,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("policyId"u8); writer.WriteStringValue(PolicyId); } - if (Optional.IsDefined(LastRecoveryPoint)) + if (Optional.IsDefined(LastRecoverOn)) { writer.WritePropertyName("lastRecoveryPoint"u8); - writer.WriteStringValue(LastRecoveryPoint.Value, "O"); + writer.WriteStringValue(LastRecoverOn.Value, "O"); } if (Optional.IsDefined(BackupSetName)) { @@ -95,10 +95,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("createMode"u8); writer.WriteStringValue(CreateMode.Value.ToString()); } - if (Optional.IsDefined(DeferredDeleteTimeInUTC)) + if (Optional.IsDefined(DeferredDeletedOn)) { writer.WritePropertyName("deferredDeleteTimeInUTC"u8); - writer.WriteStringValue(DeferredDeleteTimeInUTC.Value, "O"); + writer.WriteStringValue(DeferredDeletedOn.Value, "O"); } if (Optional.IsDefined(IsScheduledForDeferredDelete)) { @@ -148,29 +148,29 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureIaaSComputeVmProtectedItem DeserializeAzureIaaSComputeVmProtectedItem(JsonElement element) + internal static IaasClassicComputeVmProtectedItem DeserializeIaasClassicComputeVmProtectedItem(JsonElement element) { Optional friendlyName = default; - Optional virtualMachineId = default; + Optional virtualMachineId = default; Optional protectionStatus = default; - Optional protectionState = default; - Optional healthStatus = default; - Optional> healthDetails = default; - Optional> kpisHealths = default; + Optional protectionState = default; + Optional healthStatus = default; + Optional> healthDetails = default; + Optional> kpisHealths = default; Optional lastBackupStatus = default; Optional lastBackupTime = default; Optional protectedItemDataId = default; - Optional extendedInfo = default; - Optional extendedProperties = default; + Optional extendedInfo = default; + Optional extendedProperties = default; string protectedItemType = default; Optional backupManagementType = default; - Optional workloadType = default; + Optional workloadType = default; Optional containerName = default; - Optional sourceResourceId = default; - Optional policyId = default; + Optional sourceResourceId = default; + Optional policyId = default; Optional lastRecoveryPoint = default; Optional backupSetName = default; - Optional createMode = default; + Optional createMode = default; Optional deferredDeleteTimeInUTC = default; Optional isScheduledForDeferredDelete = default; Optional deferredDeleteTimeRemaining = default; @@ -189,7 +189,12 @@ internal static AzureIaaSComputeVmProtectedItem DeserializeAzureIaaSComputeVmPro } if (property.NameEquals("virtualMachineId"u8)) { - virtualMachineId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + virtualMachineId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("protectionStatus"u8)) @@ -204,7 +209,7 @@ internal static AzureIaaSComputeVmProtectedItem DeserializeAzureIaaSComputeVmPro property.ThrowNonNullablePropertyIsNull(); continue; } - protectionState = new ProtectionState(property.Value.GetString()); + protectionState = new BackupProtectionState(property.Value.GetString()); continue; } if (property.NameEquals("healthStatus"u8)) @@ -214,7 +219,7 @@ internal static AzureIaaSComputeVmProtectedItem DeserializeAzureIaaSComputeVmPro property.ThrowNonNullablePropertyIsNull(); continue; } - healthStatus = new HealthStatus(property.Value.GetString()); + healthStatus = new IaasVmProtectedItemHealthStatus(property.Value.GetString()); continue; } if (property.NameEquals("healthDetails"u8)) @@ -224,10 +229,10 @@ internal static AzureIaaSComputeVmProtectedItem DeserializeAzureIaaSComputeVmPro property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(AzureIaasVmHealthDetails.DeserializeAzureIaasVmHealthDetails(item)); + array.Add(IaasVmHealthDetails.DeserializeIaasVmHealthDetails(item)); } healthDetails = array; continue; @@ -239,10 +244,10 @@ internal static AzureIaaSComputeVmProtectedItem DeserializeAzureIaaSComputeVmPro property.ThrowNonNullablePropertyIsNull(); continue; } - Dictionary dictionary = new Dictionary(); + Dictionary dictionary = new Dictionary(); foreach (var property0 in property.Value.EnumerateObject()) { - dictionary.Add(property0.Name, KPIResourceHealthDetails.DeserializeKPIResourceHealthDetails(property0.Value)); + dictionary.Add(property0.Name, KpiResourceHealthDetails.DeserializeKpiResourceHealthDetails(property0.Value)); } kpisHealths = dictionary; continue; @@ -274,7 +279,7 @@ internal static AzureIaaSComputeVmProtectedItem DeserializeAzureIaaSComputeVmPro property.ThrowNonNullablePropertyIsNull(); continue; } - extendedInfo = AzureIaasVmProtectedItemExtendedInfo.DeserializeAzureIaasVmProtectedItemExtendedInfo(property.Value); + extendedInfo = IaasVmProtectedItemExtendedInfo.DeserializeIaasVmProtectedItemExtendedInfo(property.Value); continue; } if (property.NameEquals("extendedProperties"u8)) @@ -284,7 +289,7 @@ internal static AzureIaaSComputeVmProtectedItem DeserializeAzureIaaSComputeVmPro property.ThrowNonNullablePropertyIsNull(); continue; } - extendedProperties = ExtendedProperties.DeserializeExtendedProperties(property.Value); + extendedProperties = IaasVmBackupExtendedProperties.DeserializeIaasVmBackupExtendedProperties(property.Value); continue; } if (property.NameEquals("protectedItemType"u8)) @@ -309,7 +314,7 @@ internal static AzureIaaSComputeVmProtectedItem DeserializeAzureIaaSComputeVmPro property.ThrowNonNullablePropertyIsNull(); continue; } - workloadType = new DataSourceType(property.Value.GetString()); + workloadType = new BackupDataSourceType(property.Value.GetString()); continue; } if (property.NameEquals("containerName"u8)) @@ -319,12 +324,22 @@ internal static AzureIaaSComputeVmProtectedItem DeserializeAzureIaaSComputeVmPro } if (property.NameEquals("sourceResourceId"u8)) { - sourceResourceId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + sourceResourceId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("policyId"u8)) { - policyId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + policyId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("lastRecoveryPoint"u8)) @@ -349,7 +364,7 @@ internal static AzureIaaSComputeVmProtectedItem DeserializeAzureIaaSComputeVmPro property.ThrowNonNullablePropertyIsNull(); continue; } - createMode = new CreateMode(property.Value.GetString()); + createMode = new BackupCreateMode(property.Value.GetString()); continue; } if (property.NameEquals("deferredDeleteTimeInUTC"u8)) @@ -438,7 +453,7 @@ internal static AzureIaaSComputeVmProtectedItem DeserializeAzureIaaSComputeVmPro continue; } } - return new AzureIaaSComputeVmProtectedItem(protectedItemType, Optional.ToNullable(backupManagementType), Optional.ToNullable(workloadType), containerName.Value, sourceResourceId.Value, policyId.Value, Optional.ToNullable(lastRecoveryPoint), backupSetName.Value, Optional.ToNullable(createMode), Optional.ToNullable(deferredDeleteTimeInUTC), Optional.ToNullable(isScheduledForDeferredDelete), deferredDeleteTimeRemaining.Value, Optional.ToNullable(isDeferredDeleteScheduleUpcoming), Optional.ToNullable(isRehydrate), Optional.ToList(resourceGuardOperationRequests), Optional.ToNullable(isArchiveEnabled), policyName.Value, Optional.ToNullable(softDeleteRetentionPeriod), friendlyName.Value, virtualMachineId.Value, protectionStatus.Value, Optional.ToNullable(protectionState), Optional.ToNullable(healthStatus), Optional.ToList(healthDetails), Optional.ToDictionary(kpisHealths), lastBackupStatus.Value, Optional.ToNullable(lastBackupTime), protectedItemDataId.Value, extendedInfo.Value, extendedProperties.Value); + return new IaasClassicComputeVmProtectedItem(protectedItemType, Optional.ToNullable(backupManagementType), Optional.ToNullable(workloadType), containerName.Value, sourceResourceId.Value, policyId.Value, Optional.ToNullable(lastRecoveryPoint), backupSetName.Value, Optional.ToNullable(createMode), Optional.ToNullable(deferredDeleteTimeInUTC), Optional.ToNullable(isScheduledForDeferredDelete), deferredDeleteTimeRemaining.Value, Optional.ToNullable(isDeferredDeleteScheduleUpcoming), Optional.ToNullable(isRehydrate), Optional.ToList(resourceGuardOperationRequests), Optional.ToNullable(isArchiveEnabled), policyName.Value, Optional.ToNullable(softDeleteRetentionPeriod), friendlyName.Value, virtualMachineId.Value, protectionStatus.Value, Optional.ToNullable(protectionState), Optional.ToNullable(healthStatus), Optional.ToList(healthDetails), Optional.ToDictionary(kpisHealths), lastBackupStatus.Value, Optional.ToNullable(lastBackupTime), protectedItemDataId.Value, extendedInfo.Value, extendedProperties.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaaSClassicComputeVmProtectedItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasClassicComputeVmProtectedItem.cs similarity index 61% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaaSClassicComputeVmProtectedItem.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasClassicComputeVmProtectedItem.cs index 28ab439c5951f..9f37850825a3d 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaaSClassicComputeVmProtectedItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasClassicComputeVmProtectedItem.cs @@ -7,29 +7,30 @@ using System; using System.Collections.Generic; +using Azure.Core; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// IaaS VM workload-specific backup item representing the Classic Compute VM. - public partial class AzureIaaSClassicComputeVmProtectedItem : AzureIaasVmProtectedItem + public partial class IaasClassicComputeVmProtectedItem : IaasVmProtectedItem { - /// Initializes a new instance of AzureIaaSClassicComputeVmProtectedItem. - public AzureIaaSClassicComputeVmProtectedItem() + /// Initializes a new instance of IaasClassicComputeVmProtectedItem. + public IaasClassicComputeVmProtectedItem() { ProtectedItemType = "Microsoft.ClassicCompute/virtualMachines"; } - /// Initializes a new instance of AzureIaaSClassicComputeVmProtectedItem. + /// Initializes a new instance of IaasClassicComputeVmProtectedItem. /// backup item type. /// Type of backup management for the backed up item. /// Type of workload this item represents. /// Unique name of container. /// ARM ID of the resource to be backed up. /// ID of the backup policy with which this item is backed up. - /// Timestamp when the last (latest) backup copy was created for this backup item. + /// Timestamp when the last (latest) backup copy was created for this backup item. /// Name of the backup set the backup item belongs to. /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. - /// Time for deferred deletion in UTC. + /// Time for deferred deletion in UTC. /// Flag to identify whether the DS is scheduled for deferred delete. /// Time remaining before the DS marked for deferred delete is permanently deleted. /// Flag to identify whether the deferred deleted DS is to be purged soon. @@ -50,7 +51,7 @@ public AzureIaaSClassicComputeVmProtectedItem() /// Data ID of the protected item. /// Additional information for this backup item. /// Extended Properties for Azure IaasVM Backup. - internal AzureIaaSClassicComputeVmProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, DataSourceType? workloadType, string containerName, string sourceResourceId, string policyId, DateTimeOffset? lastRecoveryPoint, string backupSetName, CreateMode? createMode, DateTimeOffset? deferredDeleteTimeInUTC, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriod, string friendlyName, string virtualMachineId, string protectionStatus, ProtectionState? protectionState, HealthStatus? healthStatus, IList healthDetails, IDictionary kpisHealths, string lastBackupStatus, DateTimeOffset? lastBackupOn, string protectedItemDataId, AzureIaasVmProtectedItemExtendedInfo extendedInfo, ExtendedProperties extendedProperties) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, deferredDeleteTimeInUTC, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriod, friendlyName, virtualMachineId, protectionStatus, protectionState, healthStatus, healthDetails, kpisHealths, lastBackupStatus, lastBackupOn, protectedItemDataId, extendedInfo, extendedProperties) + internal IaasClassicComputeVmProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, ResourceIdentifier policyId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriod, string friendlyName, ResourceIdentifier virtualMachineId, string protectionStatus, BackupProtectionState? protectionState, IaasVmProtectedItemHealthStatus? healthStatus, IList healthDetails, IDictionary kpisHealths, string lastBackupStatus, DateTimeOffset? lastBackupOn, string protectedItemDataId, IaasVmProtectedItemExtendedInfo extendedInfo, IaasVmBackupExtendedProperties extendedProperties) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriod, friendlyName, virtualMachineId, protectionStatus, protectionState, healthStatus, healthDetails, kpisHealths, lastBackupStatus, lastBackupOn, protectedItemDataId, extendedInfo, extendedProperties) { ProtectedItemType = protectedItemType ?? "Microsoft.ClassicCompute/virtualMachines"; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaaSClassicComputeVmContainer.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasComputeVmContainer.Serialization.cs similarity index 85% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaaSClassicComputeVmContainer.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasComputeVmContainer.Serialization.cs index 08e57840f4660..79ad50451d96e 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaaSClassicComputeVmContainer.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasComputeVmContainer.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureIaaSClassicComputeVmContainer : IUtf8JsonSerializable + public partial class IaasComputeVmContainer : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -60,9 +60,9 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureIaaSClassicComputeVmContainer DeserializeAzureIaaSClassicComputeVmContainer(JsonElement element) + internal static IaasComputeVmContainer DeserializeIaasComputeVmContainer(JsonElement element) { - Optional virtualMachineId = default; + Optional virtualMachineId = default; Optional virtualMachineVersion = default; Optional resourceGroup = default; Optional friendlyName = default; @@ -75,7 +75,12 @@ internal static AzureIaaSClassicComputeVmContainer DeserializeAzureIaaSClassicCo { if (property.NameEquals("virtualMachineId"u8)) { - virtualMachineId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + virtualMachineId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("virtualMachineVersion"u8)) @@ -124,7 +129,7 @@ internal static AzureIaaSClassicComputeVmContainer DeserializeAzureIaaSClassicCo continue; } } - return new AzureIaaSClassicComputeVmContainer(friendlyName.Value, Optional.ToNullable(backupManagementType), registrationStatus.Value, healthStatus.Value, containerType, protectableObjectType.Value, virtualMachineId.Value, virtualMachineVersion.Value, resourceGroup.Value); + return new IaasComputeVmContainer(friendlyName.Value, Optional.ToNullable(backupManagementType), registrationStatus.Value, healthStatus.Value, containerType, protectableObjectType.Value, virtualMachineId.Value, virtualMachineVersion.Value, resourceGroup.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaaSClassicComputeVmContainer.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasComputeVmContainer.cs similarity index 73% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaaSClassicComputeVmContainer.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasComputeVmContainer.cs index 55b8407e9fbb9..c28e4e9f1af45 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaaSClassicComputeVmContainer.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasComputeVmContainer.cs @@ -5,18 +5,20 @@ #nullable disable +using Azure.Core; + namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - /// IaaS VM workload-specific backup item representing a classic virtual machine. - public partial class AzureIaaSClassicComputeVmContainer : IaasVmContainer + /// IaaS VM workload-specific backup item representing an Azure Resource Manager virtual machine. + public partial class IaasComputeVmContainer : IaasVmContainer { - /// Initializes a new instance of AzureIaaSClassicComputeVmContainer. - public AzureIaaSClassicComputeVmContainer() + /// Initializes a new instance of IaasComputeVmContainer. + public IaasComputeVmContainer() { - ContainerType = ProtectableContainerType.MicrosoftClassicComputeVirtualMachines; + ContainerType = ProtectableContainerType.MicrosoftComputeVirtualMachines; } - /// Initializes a new instance of AzureIaaSClassicComputeVmContainer. + /// Initializes a new instance of IaasComputeVmContainer. /// Friendly name of the container. /// Type of backup management for the container. /// Status of registration of the container with the Recovery Services Vault. @@ -31,7 +33,7 @@ public AzureIaaSClassicComputeVmContainer() /// Fully qualified ARM url of the virtual machine represented by this Azure IaaS VM container. /// Specifies whether the container represents a Classic or an Azure Resource Manager VM. /// Resource group name of Recovery Services Vault. - internal AzureIaaSClassicComputeVmContainer(string friendlyName, BackupManagementType? backupManagementType, string registrationStatus, string healthStatus, ProtectableContainerType containerType, string protectableObjectType, string virtualMachineId, string virtualMachineVersion, string resourceGroup) : base(friendlyName, backupManagementType, registrationStatus, healthStatus, containerType, protectableObjectType, virtualMachineId, virtualMachineVersion, resourceGroup) + internal IaasComputeVmContainer(string friendlyName, BackupManagementType? backupManagementType, string registrationStatus, string healthStatus, ProtectableContainerType containerType, string protectableObjectType, ResourceIdentifier virtualMachineId, string virtualMachineVersion, string resourceGroup) : base(friendlyName, backupManagementType, registrationStatus, healthStatus, containerType, protectableObjectType, virtualMachineId, virtualMachineVersion, resourceGroup) { ContainerType = containerType; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaaSClassicComputeVmProtectableItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasComputeVmProtectableItem.Serialization.cs similarity index 80% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaaSClassicComputeVmProtectableItem.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasComputeVmProtectableItem.Serialization.cs index 4b58ac598be2f..5027c137fb664 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaaSClassicComputeVmProtectableItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasComputeVmProtectableItem.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureIaaSClassicComputeVmProtectableItem : IUtf8JsonSerializable + public partial class IaasComputeVmProtectableItem : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -55,21 +55,26 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureIaaSClassicComputeVmProtectableItem DeserializeAzureIaaSClassicComputeVmProtectableItem(JsonElement element) + internal static IaasComputeVmProtectableItem DeserializeIaasComputeVmProtectableItem(JsonElement element) { - Optional virtualMachineId = default; + Optional virtualMachineId = default; Optional virtualMachineVersion = default; Optional resourceGroup = default; Optional backupManagementType = default; Optional workloadType = default; string protectableItemType = default; Optional friendlyName = default; - Optional protectionState = default; + Optional protectionState = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("virtualMachineId"u8)) { - virtualMachineId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + virtualMachineId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("virtualMachineVersion"u8)) @@ -109,11 +114,11 @@ internal static AzureIaaSClassicComputeVmProtectableItem DeserializeAzureIaaSCla property.ThrowNonNullablePropertyIsNull(); continue; } - protectionState = new ProtectionStatus(property.Value.GetString()); + protectionState = new BackupProtectionStatus(property.Value.GetString()); continue; } } - return new AzureIaaSClassicComputeVmProtectableItem(backupManagementType.Value, workloadType.Value, protectableItemType, friendlyName.Value, Optional.ToNullable(protectionState), virtualMachineId.Value, virtualMachineVersion.Value, resourceGroup.Value); + return new IaasComputeVmProtectableItem(backupManagementType.Value, workloadType.Value, protectableItemType, friendlyName.Value, Optional.ToNullable(protectionState), virtualMachineId.Value, virtualMachineVersion.Value, resourceGroup.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaaSComputeVmProtectableItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasComputeVmProtectableItem.cs similarity index 63% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaaSComputeVmProtectableItem.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasComputeVmProtectableItem.cs index 416de0292d761..afd8cd7524c05 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaaSComputeVmProtectableItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasComputeVmProtectableItem.cs @@ -5,18 +5,20 @@ #nullable disable +using Azure.Core; + namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// IaaS VM workload-specific backup item representing the Azure Resource Manager VM. - public partial class AzureIaaSComputeVmProtectableItem : IaasVmProtectableItem + public partial class IaasComputeVmProtectableItem : IaasVmProtectableItem { - /// Initializes a new instance of AzureIaaSComputeVmProtectableItem. - public AzureIaaSComputeVmProtectableItem() + /// Initializes a new instance of IaasComputeVmProtectableItem. + public IaasComputeVmProtectableItem() { ProtectableItemType = "Microsoft.Compute/virtualMachines"; } - /// Initializes a new instance of AzureIaaSComputeVmProtectableItem. + /// Initializes a new instance of IaasComputeVmProtectableItem. /// Type of backup management to backup an item. /// Type of workload for the backup management. /// Type of the backup item. @@ -25,7 +27,7 @@ public AzureIaaSComputeVmProtectableItem() /// Fully qualified ARM ID of the virtual machine. /// Specifies whether the container represents a Classic or an Azure Resource Manager VM. /// Resource group name of Recovery Services Vault. - internal AzureIaaSComputeVmProtectableItem(string backupManagementType, string workloadType, string protectableItemType, string friendlyName, ProtectionStatus? protectionState, string virtualMachineId, string virtualMachineVersion, string resourceGroup) : base(backupManagementType, workloadType, protectableItemType, friendlyName, protectionState, virtualMachineId, virtualMachineVersion, resourceGroup) + internal IaasComputeVmProtectableItem(string backupManagementType, string workloadType, string protectableItemType, string friendlyName, BackupProtectionStatus? protectionState, ResourceIdentifier virtualMachineId, string virtualMachineVersion, string resourceGroup) : base(backupManagementType, workloadType, protectableItemType, friendlyName, protectionState, virtualMachineId, virtualMachineVersion, resourceGroup) { ProtectableItemType = protectableItemType ?? "Microsoft.Compute/virtualMachines"; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaaSClassicComputeVmProtectedItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasComputeVmProtectedItem.Serialization.cs similarity index 80% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaaSClassicComputeVmProtectedItem.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasComputeVmProtectedItem.Serialization.cs index af9bae786f2f2..6ea83fb2e9c60 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaaSClassicComputeVmProtectedItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasComputeVmProtectedItem.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureIaaSClassicComputeVmProtectedItem : IUtf8JsonSerializable + public partial class IaasComputeVmProtectedItem : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -80,10 +80,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("policyId"u8); writer.WriteStringValue(PolicyId); } - if (Optional.IsDefined(LastRecoveryPoint)) + if (Optional.IsDefined(LastRecoverOn)) { writer.WritePropertyName("lastRecoveryPoint"u8); - writer.WriteStringValue(LastRecoveryPoint.Value, "O"); + writer.WriteStringValue(LastRecoverOn.Value, "O"); } if (Optional.IsDefined(BackupSetName)) { @@ -95,10 +95,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("createMode"u8); writer.WriteStringValue(CreateMode.Value.ToString()); } - if (Optional.IsDefined(DeferredDeleteTimeInUTC)) + if (Optional.IsDefined(DeferredDeletedOn)) { writer.WritePropertyName("deferredDeleteTimeInUTC"u8); - writer.WriteStringValue(DeferredDeleteTimeInUTC.Value, "O"); + writer.WriteStringValue(DeferredDeletedOn.Value, "O"); } if (Optional.IsDefined(IsScheduledForDeferredDelete)) { @@ -148,29 +148,29 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureIaaSClassicComputeVmProtectedItem DeserializeAzureIaaSClassicComputeVmProtectedItem(JsonElement element) + internal static IaasComputeVmProtectedItem DeserializeIaasComputeVmProtectedItem(JsonElement element) { Optional friendlyName = default; - Optional virtualMachineId = default; + Optional virtualMachineId = default; Optional protectionStatus = default; - Optional protectionState = default; - Optional healthStatus = default; - Optional> healthDetails = default; - Optional> kpisHealths = default; + Optional protectionState = default; + Optional healthStatus = default; + Optional> healthDetails = default; + Optional> kpisHealths = default; Optional lastBackupStatus = default; Optional lastBackupTime = default; Optional protectedItemDataId = default; - Optional extendedInfo = default; - Optional extendedProperties = default; + Optional extendedInfo = default; + Optional extendedProperties = default; string protectedItemType = default; Optional backupManagementType = default; - Optional workloadType = default; + Optional workloadType = default; Optional containerName = default; - Optional sourceResourceId = default; - Optional policyId = default; + Optional sourceResourceId = default; + Optional policyId = default; Optional lastRecoveryPoint = default; Optional backupSetName = default; - Optional createMode = default; + Optional createMode = default; Optional deferredDeleteTimeInUTC = default; Optional isScheduledForDeferredDelete = default; Optional deferredDeleteTimeRemaining = default; @@ -189,7 +189,12 @@ internal static AzureIaaSClassicComputeVmProtectedItem DeserializeAzureIaaSClass } if (property.NameEquals("virtualMachineId"u8)) { - virtualMachineId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + virtualMachineId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("protectionStatus"u8)) @@ -204,7 +209,7 @@ internal static AzureIaaSClassicComputeVmProtectedItem DeserializeAzureIaaSClass property.ThrowNonNullablePropertyIsNull(); continue; } - protectionState = new ProtectionState(property.Value.GetString()); + protectionState = new BackupProtectionState(property.Value.GetString()); continue; } if (property.NameEquals("healthStatus"u8)) @@ -214,7 +219,7 @@ internal static AzureIaaSClassicComputeVmProtectedItem DeserializeAzureIaaSClass property.ThrowNonNullablePropertyIsNull(); continue; } - healthStatus = new HealthStatus(property.Value.GetString()); + healthStatus = new IaasVmProtectedItemHealthStatus(property.Value.GetString()); continue; } if (property.NameEquals("healthDetails"u8)) @@ -224,10 +229,10 @@ internal static AzureIaaSClassicComputeVmProtectedItem DeserializeAzureIaaSClass property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(AzureIaasVmHealthDetails.DeserializeAzureIaasVmHealthDetails(item)); + array.Add(IaasVmHealthDetails.DeserializeIaasVmHealthDetails(item)); } healthDetails = array; continue; @@ -239,10 +244,10 @@ internal static AzureIaaSClassicComputeVmProtectedItem DeserializeAzureIaaSClass property.ThrowNonNullablePropertyIsNull(); continue; } - Dictionary dictionary = new Dictionary(); + Dictionary dictionary = new Dictionary(); foreach (var property0 in property.Value.EnumerateObject()) { - dictionary.Add(property0.Name, KPIResourceHealthDetails.DeserializeKPIResourceHealthDetails(property0.Value)); + dictionary.Add(property0.Name, KpiResourceHealthDetails.DeserializeKpiResourceHealthDetails(property0.Value)); } kpisHealths = dictionary; continue; @@ -274,7 +279,7 @@ internal static AzureIaaSClassicComputeVmProtectedItem DeserializeAzureIaaSClass property.ThrowNonNullablePropertyIsNull(); continue; } - extendedInfo = AzureIaasVmProtectedItemExtendedInfo.DeserializeAzureIaasVmProtectedItemExtendedInfo(property.Value); + extendedInfo = IaasVmProtectedItemExtendedInfo.DeserializeIaasVmProtectedItemExtendedInfo(property.Value); continue; } if (property.NameEquals("extendedProperties"u8)) @@ -284,7 +289,7 @@ internal static AzureIaaSClassicComputeVmProtectedItem DeserializeAzureIaaSClass property.ThrowNonNullablePropertyIsNull(); continue; } - extendedProperties = ExtendedProperties.DeserializeExtendedProperties(property.Value); + extendedProperties = IaasVmBackupExtendedProperties.DeserializeIaasVmBackupExtendedProperties(property.Value); continue; } if (property.NameEquals("protectedItemType"u8)) @@ -309,7 +314,7 @@ internal static AzureIaaSClassicComputeVmProtectedItem DeserializeAzureIaaSClass property.ThrowNonNullablePropertyIsNull(); continue; } - workloadType = new DataSourceType(property.Value.GetString()); + workloadType = new BackupDataSourceType(property.Value.GetString()); continue; } if (property.NameEquals("containerName"u8)) @@ -319,12 +324,22 @@ internal static AzureIaaSClassicComputeVmProtectedItem DeserializeAzureIaaSClass } if (property.NameEquals("sourceResourceId"u8)) { - sourceResourceId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + sourceResourceId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("policyId"u8)) { - policyId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + policyId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("lastRecoveryPoint"u8)) @@ -349,7 +364,7 @@ internal static AzureIaaSClassicComputeVmProtectedItem DeserializeAzureIaaSClass property.ThrowNonNullablePropertyIsNull(); continue; } - createMode = new CreateMode(property.Value.GetString()); + createMode = new BackupCreateMode(property.Value.GetString()); continue; } if (property.NameEquals("deferredDeleteTimeInUTC"u8)) @@ -438,7 +453,7 @@ internal static AzureIaaSClassicComputeVmProtectedItem DeserializeAzureIaaSClass continue; } } - return new AzureIaaSClassicComputeVmProtectedItem(protectedItemType, Optional.ToNullable(backupManagementType), Optional.ToNullable(workloadType), containerName.Value, sourceResourceId.Value, policyId.Value, Optional.ToNullable(lastRecoveryPoint), backupSetName.Value, Optional.ToNullable(createMode), Optional.ToNullable(deferredDeleteTimeInUTC), Optional.ToNullable(isScheduledForDeferredDelete), deferredDeleteTimeRemaining.Value, Optional.ToNullable(isDeferredDeleteScheduleUpcoming), Optional.ToNullable(isRehydrate), Optional.ToList(resourceGuardOperationRequests), Optional.ToNullable(isArchiveEnabled), policyName.Value, Optional.ToNullable(softDeleteRetentionPeriod), friendlyName.Value, virtualMachineId.Value, protectionStatus.Value, Optional.ToNullable(protectionState), Optional.ToNullable(healthStatus), Optional.ToList(healthDetails), Optional.ToDictionary(kpisHealths), lastBackupStatus.Value, Optional.ToNullable(lastBackupTime), protectedItemDataId.Value, extendedInfo.Value, extendedProperties.Value); + return new IaasComputeVmProtectedItem(protectedItemType, Optional.ToNullable(backupManagementType), Optional.ToNullable(workloadType), containerName.Value, sourceResourceId.Value, policyId.Value, Optional.ToNullable(lastRecoveryPoint), backupSetName.Value, Optional.ToNullable(createMode), Optional.ToNullable(deferredDeleteTimeInUTC), Optional.ToNullable(isScheduledForDeferredDelete), deferredDeleteTimeRemaining.Value, Optional.ToNullable(isDeferredDeleteScheduleUpcoming), Optional.ToNullable(isRehydrate), Optional.ToList(resourceGuardOperationRequests), Optional.ToNullable(isArchiveEnabled), policyName.Value, Optional.ToNullable(softDeleteRetentionPeriod), friendlyName.Value, virtualMachineId.Value, protectionStatus.Value, Optional.ToNullable(protectionState), Optional.ToNullable(healthStatus), Optional.ToList(healthDetails), Optional.ToDictionary(kpisHealths), lastBackupStatus.Value, Optional.ToNullable(lastBackupTime), protectedItemDataId.Value, extendedInfo.Value, extendedProperties.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaaSComputeVmProtectedItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasComputeVmProtectedItem.cs similarity index 61% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaaSComputeVmProtectedItem.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasComputeVmProtectedItem.cs index c8526de3842bf..664d35d4cdf24 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaaSComputeVmProtectedItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasComputeVmProtectedItem.cs @@ -7,29 +7,30 @@ using System; using System.Collections.Generic; +using Azure.Core; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// IaaS VM workload-specific backup item representing the Azure Resource Manager VM. - public partial class AzureIaaSComputeVmProtectedItem : AzureIaasVmProtectedItem + public partial class IaasComputeVmProtectedItem : IaasVmProtectedItem { - /// Initializes a new instance of AzureIaaSComputeVmProtectedItem. - public AzureIaaSComputeVmProtectedItem() + /// Initializes a new instance of IaasComputeVmProtectedItem. + public IaasComputeVmProtectedItem() { ProtectedItemType = "Microsoft.Compute/virtualMachines"; } - /// Initializes a new instance of AzureIaaSComputeVmProtectedItem. + /// Initializes a new instance of IaasComputeVmProtectedItem. /// backup item type. /// Type of backup management for the backed up item. /// Type of workload this item represents. /// Unique name of container. /// ARM ID of the resource to be backed up. /// ID of the backup policy with which this item is backed up. - /// Timestamp when the last (latest) backup copy was created for this backup item. + /// Timestamp when the last (latest) backup copy was created for this backup item. /// Name of the backup set the backup item belongs to. /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. - /// Time for deferred deletion in UTC. + /// Time for deferred deletion in UTC. /// Flag to identify whether the DS is scheduled for deferred delete. /// Time remaining before the DS marked for deferred delete is permanently deleted. /// Flag to identify whether the deferred deleted DS is to be purged soon. @@ -50,7 +51,7 @@ public AzureIaaSComputeVmProtectedItem() /// Data ID of the protected item. /// Additional information for this backup item. /// Extended Properties for Azure IaasVM Backup. - internal AzureIaaSComputeVmProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, DataSourceType? workloadType, string containerName, string sourceResourceId, string policyId, DateTimeOffset? lastRecoveryPoint, string backupSetName, CreateMode? createMode, DateTimeOffset? deferredDeleteTimeInUTC, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriod, string friendlyName, string virtualMachineId, string protectionStatus, ProtectionState? protectionState, HealthStatus? healthStatus, IList healthDetails, IDictionary kpisHealths, string lastBackupStatus, DateTimeOffset? lastBackupOn, string protectedItemDataId, AzureIaasVmProtectedItemExtendedInfo extendedInfo, ExtendedProperties extendedProperties) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, deferredDeleteTimeInUTC, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriod, friendlyName, virtualMachineId, protectionStatus, protectionState, healthStatus, healthDetails, kpisHealths, lastBackupStatus, lastBackupOn, protectedItemDataId, extendedInfo, extendedProperties) + internal IaasComputeVmProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, ResourceIdentifier policyId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriod, string friendlyName, ResourceIdentifier virtualMachineId, string protectionStatus, BackupProtectionState? protectionState, IaasVmProtectedItemHealthStatus? healthStatus, IList healthDetails, IDictionary kpisHealths, string lastBackupStatus, DateTimeOffset? lastBackupOn, string protectedItemDataId, IaasVmProtectedItemExtendedInfo extendedInfo, IaasVmBackupExtendedProperties extendedProperties) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriod, friendlyName, virtualMachineId, protectionStatus, protectionState, healthStatus, healthDetails, kpisHealths, lastBackupStatus, lastBackupOn, protectedItemDataId, extendedInfo, extendedProperties) { ProtectedItemType = protectedItemType ?? "Microsoft.Compute/virtualMachines"; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmBackupRequest.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmBackupContent.Serialization.cs similarity index 80% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmBackupRequest.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmBackupContent.Serialization.cs index e19de1b5ffc54..5888cd8782b85 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmBackupRequest.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmBackupContent.Serialization.cs @@ -11,22 +11,22 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class IaasVmBackupRequest : IUtf8JsonSerializable + public partial class IaasVmBackupContent : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - if (Optional.IsDefined(RecoveryPointExpiryTimeInUTC)) + if (Optional.IsDefined(RecoveryPointExpireOn)) { writer.WritePropertyName("recoveryPointExpiryTimeInUTC"u8); - writer.WriteStringValue(RecoveryPointExpiryTimeInUTC.Value, "O"); + writer.WriteStringValue(RecoveryPointExpireOn.Value, "O"); } writer.WritePropertyName("objectType"u8); writer.WriteStringValue(ObjectType); writer.WriteEndObject(); } - internal static IaasVmBackupRequest DeserializeIaasVmBackupRequest(JsonElement element) + internal static IaasVmBackupContent DeserializeIaasVmBackupContent(JsonElement element) { Optional recoveryPointExpiryTimeInUTC = default; string objectType = default; @@ -48,7 +48,7 @@ internal static IaasVmBackupRequest DeserializeIaasVmBackupRequest(JsonElement e continue; } } - return new IaasVmBackupRequest(objectType, Optional.ToNullable(recoveryPointExpiryTimeInUTC)); + return new IaasVmBackupContent(objectType, Optional.ToNullable(recoveryPointExpiryTimeInUTC)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmBackupRequest.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmBackupContent.cs similarity index 61% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmBackupRequest.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmBackupContent.cs index 3fb5af270b56c..2c6ba9ccc3afd 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmBackupRequest.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmBackupContent.cs @@ -10,24 +10,24 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// IaaS VM workload-specific backup request. - public partial class IaasVmBackupRequest : BackupRequest + public partial class IaasVmBackupContent : BackupContent { - /// Initializes a new instance of IaasVmBackupRequest. - public IaasVmBackupRequest() + /// Initializes a new instance of IaasVmBackupContent. + public IaasVmBackupContent() { ObjectType = "IaasVMBackupRequest"; } - /// Initializes a new instance of IaasVmBackupRequest. + /// Initializes a new instance of IaasVmBackupContent. /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. - /// Backup copy will expire after the time specified (UTC). - internal IaasVmBackupRequest(string objectType, DateTimeOffset? recoveryPointExpiryTimeInUTC) : base(objectType) + /// Backup copy will expire after the time specified (UTC). + internal IaasVmBackupContent(string objectType, DateTimeOffset? recoveryPointExpireOn) : base(objectType) { - RecoveryPointExpiryTimeInUTC = recoveryPointExpiryTimeInUTC; + RecoveryPointExpireOn = recoveryPointExpireOn; ObjectType = objectType ?? "IaasVMBackupRequest"; } /// Backup copy will expire after the time specified (UTC). - public DateTimeOffset? RecoveryPointExpiryTimeInUTC { get; set; } + public DateTimeOffset? RecoveryPointExpireOn { get; set; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ExtendedProperties.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmBackupExtendedProperties.Serialization.cs similarity index 85% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ExtendedProperties.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmBackupExtendedProperties.Serialization.cs index baf04c245fa7e..1d4c649a7443c 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ExtendedProperties.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmBackupExtendedProperties.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class ExtendedProperties : IUtf8JsonSerializable + public partial class IaasVmBackupExtendedProperties : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -28,7 +28,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static ExtendedProperties DeserializeExtendedProperties(JsonElement element) + internal static IaasVmBackupExtendedProperties DeserializeIaasVmBackupExtendedProperties(JsonElement element) { Optional diskExclusionProperties = default; Optional linuxVmApplicationName = default; @@ -50,7 +50,7 @@ internal static ExtendedProperties DeserializeExtendedProperties(JsonElement ele continue; } } - return new ExtendedProperties(diskExclusionProperties.Value, linuxVmApplicationName.Value); + return new IaasVmBackupExtendedProperties(diskExclusionProperties.Value, linuxVmApplicationName.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ExtendedProperties.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmBackupExtendedProperties.cs similarity index 67% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ExtendedProperties.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmBackupExtendedProperties.cs index 6b6f2c70324a6..5219c34fe0400 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ExtendedProperties.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmBackupExtendedProperties.cs @@ -8,17 +8,17 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Extended Properties for Azure IaasVM Backup. - public partial class ExtendedProperties + public partial class IaasVmBackupExtendedProperties { - /// Initializes a new instance of ExtendedProperties. - public ExtendedProperties() + /// Initializes a new instance of IaasVmBackupExtendedProperties. + public IaasVmBackupExtendedProperties() { } - /// Initializes a new instance of ExtendedProperties. + /// Initializes a new instance of IaasVmBackupExtendedProperties. /// Extended Properties for Disk Exclusion. /// Linux VM name. - internal ExtendedProperties(DiskExclusionProperties diskExclusionProperties, string linuxVmApplicationName) + internal IaasVmBackupExtendedProperties(DiskExclusionProperties diskExclusionProperties, string linuxVmApplicationName) { DiskExclusionProperties = diskExclusionProperties; LinuxVmApplicationName = linuxVmApplicationName; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmJob.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmBackupJob.Serialization.cs similarity index 90% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmJob.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmBackupJob.Serialization.cs index ffd8261a8779c..cbe52946afaf9 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmJob.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmBackupJob.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureIaasVmJob : IUtf8JsonSerializable + public partial class IaasVmBackupJob : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -102,13 +102,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureIaasVmJob DeserializeAzureIaasVmJob(JsonElement element) + internal static IaasVmBackupJob DeserializeIaasVmBackupJob(JsonElement element) { Optional duration = default; Optional> actionsInfo = default; - Optional> errorDetails = default; + Optional> errorDetails = default; Optional virtualMachineVersion = default; - Optional extendedInfo = default; + Optional extendedInfo = default; Optional containerName = default; Optional isUserTriggered = default; Optional entityFriendlyName = default; @@ -153,10 +153,10 @@ internal static AzureIaasVmJob DeserializeAzureIaasVmJob(JsonElement element) property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(AzureIaasVmErrorInfo.DeserializeAzureIaasVmErrorInfo(item)); + array.Add(IaasVmErrorInfo.DeserializeIaasVmErrorInfo(item)); } errorDetails = array; continue; @@ -173,7 +173,7 @@ internal static AzureIaasVmJob DeserializeAzureIaasVmJob(JsonElement element) property.ThrowNonNullablePropertyIsNull(); continue; } - extendedInfo = AzureIaasVmJobExtendedInfo.DeserializeAzureIaasVmJobExtendedInfo(property.Value); + extendedInfo = IaasVmBackupJobExtendedInfo.DeserializeIaasVmBackupJobExtendedInfo(property.Value); continue; } if (property.NameEquals("containerName"u8)) @@ -247,7 +247,7 @@ internal static AzureIaasVmJob DeserializeAzureIaasVmJob(JsonElement element) continue; } } - return new AzureIaasVmJob(entityFriendlyName.Value, Optional.ToNullable(backupManagementType), operation.Value, status.Value, Optional.ToNullable(startTime), Optional.ToNullable(endTime), activityId.Value, jobType, Optional.ToNullable(duration), Optional.ToList(actionsInfo), Optional.ToList(errorDetails), virtualMachineVersion.Value, extendedInfo.Value, containerName.Value, Optional.ToNullable(isUserTriggered)); + return new IaasVmBackupJob(entityFriendlyName.Value, Optional.ToNullable(backupManagementType), operation.Value, status.Value, Optional.ToNullable(startTime), Optional.ToNullable(endTime), activityId.Value, jobType, Optional.ToNullable(duration), Optional.ToList(actionsInfo), Optional.ToList(errorDetails), virtualMachineVersion.Value, extendedInfo.Value, containerName.Value, Optional.ToNullable(isUserTriggered)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmJob.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmBackupJob.cs similarity index 76% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmJob.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmBackupJob.cs index f72b36a8e1ca6..3ecc6e6a10c31 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmJob.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmBackupJob.cs @@ -12,17 +12,17 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Azure IaaS VM workload-specific job object. - public partial class AzureIaasVmJob : Job + public partial class IaasVmBackupJob : BackupGenericJob { - /// Initializes a new instance of AzureIaasVmJob. - public AzureIaasVmJob() + /// Initializes a new instance of IaasVmBackupJob. + public IaasVmBackupJob() { ActionsInfo = new ChangeTrackingList(); - ErrorDetails = new ChangeTrackingList(); + ErrorDetails = new ChangeTrackingList(); JobType = "AzureIaaSVMJob"; } - /// Initializes a new instance of AzureIaasVmJob. + /// Initializes a new instance of IaasVmBackupJob. /// Friendly name of the entity on which the current job is executing. /// Backup management type to execute the current job. /// The operation name. @@ -38,7 +38,7 @@ public AzureIaasVmJob() /// Additional information for this job. /// Container name of the entity on which the current job is executing. /// Indicated that whether the job is adhoc(true) or scheduled(false). - internal AzureIaasVmJob(string entityFriendlyName, BackupManagementType? backupManagementType, string operation, string status, DateTimeOffset? startOn, DateTimeOffset? endOn, string activityId, string jobType, TimeSpan? duration, IList actionsInfo, IList errorDetails, string virtualMachineVersion, AzureIaasVmJobExtendedInfo extendedInfo, string containerName, bool? isUserTriggered) : base(entityFriendlyName, backupManagementType, operation, status, startOn, endOn, activityId, jobType) + internal IaasVmBackupJob(string entityFriendlyName, BackupManagementType? backupManagementType, string operation, string status, DateTimeOffset? startOn, DateTimeOffset? endOn, string activityId, string jobType, TimeSpan? duration, IList actionsInfo, IList errorDetails, string virtualMachineVersion, IaasVmBackupJobExtendedInfo extendedInfo, string containerName, bool? isUserTriggered) : base(entityFriendlyName, backupManagementType, operation, status, startOn, endOn, activityId, jobType) { Duration = duration; ActionsInfo = actionsInfo; @@ -55,11 +55,11 @@ internal AzureIaasVmJob(string entityFriendlyName, BackupManagementType? backupM /// Gets or sets the state/actions applicable on this job like cancel/retry. public IList ActionsInfo { get; } /// Error details on execution of this job. - public IList ErrorDetails { get; } + public IList ErrorDetails { get; } /// Specifies whether the backup item is a Classic or an Azure Resource Manager VM. public string VirtualMachineVersion { get; set; } /// Additional information for this job. - public AzureIaasVmJobExtendedInfo ExtendedInfo { get; set; } + public IaasVmBackupJobExtendedInfo ExtendedInfo { get; set; } /// Container name of the entity on which the current job is executing. public string ContainerName { get; set; } /// Indicated that whether the job is adhoc(true) or scheduled(false). diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmJobExtendedInfo.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmBackupJobExtendedInfo.Serialization.cs similarity index 88% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmJobExtendedInfo.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmBackupJobExtendedInfo.Serialization.cs index b73bc501dd26f..a1e37bd343b90 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmJobExtendedInfo.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmBackupJobExtendedInfo.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureIaasVmJobExtendedInfo : IUtf8JsonSerializable + public partial class IaasVmBackupJobExtendedInfo : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -66,9 +66,9 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureIaasVmJobExtendedInfo DeserializeAzureIaasVmJobExtendedInfo(JsonElement element) + internal static IaasVmBackupJobExtendedInfo DeserializeIaasVmBackupJobExtendedInfo(JsonElement element) { - Optional> tasksList = default; + Optional> tasksList = default; Optional> propertyBag = default; Optional> internalPropertyBag = default; Optional progressPercentage = default; @@ -83,10 +83,10 @@ internal static AzureIaasVmJobExtendedInfo DeserializeAzureIaasVmJobExtendedInfo property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(AzureIaasVmJobTaskDetails.DeserializeAzureIaasVmJobTaskDetails(item)); + array.Add(IaasVmBackupJobTaskDetails.DeserializeIaasVmBackupJobTaskDetails(item)); } tasksList = array; continue; @@ -142,7 +142,7 @@ internal static AzureIaasVmJobExtendedInfo DeserializeAzureIaasVmJobExtendedInfo continue; } } - return new AzureIaasVmJobExtendedInfo(Optional.ToList(tasksList), Optional.ToDictionary(propertyBag), Optional.ToDictionary(internalPropertyBag), Optional.ToNullable(progressPercentage), estimatedRemainingDuration.Value, dynamicErrorMessage.Value); + return new IaasVmBackupJobExtendedInfo(Optional.ToList(tasksList), Optional.ToDictionary(propertyBag), Optional.ToDictionary(internalPropertyBag), Optional.ToNullable(progressPercentage), estimatedRemainingDuration.Value, dynamicErrorMessage.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmJobExtendedInfo.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmBackupJobExtendedInfo.cs similarity index 75% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmJobExtendedInfo.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmBackupJobExtendedInfo.cs index 65006e71d725e..5e5e692a98bb4 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmJobExtendedInfo.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmBackupJobExtendedInfo.cs @@ -11,24 +11,24 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Azure IaaS VM workload-specific additional information for job. - public partial class AzureIaasVmJobExtendedInfo + public partial class IaasVmBackupJobExtendedInfo { - /// Initializes a new instance of AzureIaasVmJobExtendedInfo. - public AzureIaasVmJobExtendedInfo() + /// Initializes a new instance of IaasVmBackupJobExtendedInfo. + public IaasVmBackupJobExtendedInfo() { - TasksList = new ChangeTrackingList(); + TasksList = new ChangeTrackingList(); PropertyBag = new ChangeTrackingDictionary(); InternalPropertyBag = new ChangeTrackingDictionary(); } - /// Initializes a new instance of AzureIaasVmJobExtendedInfo. + /// Initializes a new instance of IaasVmBackupJobExtendedInfo. /// List of tasks associated with this job. /// Job properties. /// Job internal properties. /// Indicates progress of the job. Null if it has not started or completed. /// Time remaining for execution of this job. /// Non localized error message on job execution. - internal AzureIaasVmJobExtendedInfo(IList tasksList, IDictionary propertyBag, IDictionary internalPropertyBag, double? progressPercentage, string estimatedRemainingDurationValue, string dynamicErrorMessage) + internal IaasVmBackupJobExtendedInfo(IList tasksList, IDictionary propertyBag, IDictionary internalPropertyBag, double? progressPercentage, string estimatedRemainingDurationValue, string dynamicErrorMessage) { TasksList = tasksList; PropertyBag = propertyBag; @@ -39,7 +39,7 @@ internal AzureIaasVmJobExtendedInfo(IList tasksList, } /// List of tasks associated with this job. - public IList TasksList { get; } + public IList TasksList { get; } /// Job properties. public IDictionary PropertyBag { get; } /// Job internal properties. diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmJobTaskDetails.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmBackupJobTaskDetails.Serialization.cs similarity index 91% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmJobTaskDetails.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmBackupJobTaskDetails.Serialization.cs index 0257b57f77cc2..85a31b0e17024 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmJobTaskDetails.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmBackupJobTaskDetails.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureIaasVmJobTaskDetails : IUtf8JsonSerializable + public partial class IaasVmBackupJobTaskDetails : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -59,7 +59,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureIaasVmJobTaskDetails DeserializeAzureIaasVmJobTaskDetails(JsonElement element) + internal static IaasVmBackupJobTaskDetails DeserializeIaasVmBackupJobTaskDetails(JsonElement element) { Optional taskId = default; Optional startTime = default; @@ -132,7 +132,7 @@ internal static AzureIaasVmJobTaskDetails DeserializeAzureIaasVmJobTaskDetails(J continue; } } - return new AzureIaasVmJobTaskDetails(taskId.Value, Optional.ToNullable(startTime), Optional.ToNullable(endTime), instanceId.Value, Optional.ToNullable(duration), status.Value, Optional.ToNullable(progressPercentage), taskExecutionDetails.Value); + return new IaasVmBackupJobTaskDetails(taskId.Value, Optional.ToNullable(startTime), Optional.ToNullable(endTime), instanceId.Value, Optional.ToNullable(duration), status.Value, Optional.ToNullable(progressPercentage), taskExecutionDetails.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmJobTaskDetails.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmBackupJobTaskDetails.cs similarity index 81% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmJobTaskDetails.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmBackupJobTaskDetails.cs index dcc6095853e61..02dab315a9724 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmJobTaskDetails.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmBackupJobTaskDetails.cs @@ -10,14 +10,14 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Azure IaaS VM workload-specific job task details. - public partial class AzureIaasVmJobTaskDetails + public partial class IaasVmBackupJobTaskDetails { - /// Initializes a new instance of AzureIaasVmJobTaskDetails. - public AzureIaasVmJobTaskDetails() + /// Initializes a new instance of IaasVmBackupJobTaskDetails. + public IaasVmBackupJobTaskDetails() { } - /// Initializes a new instance of AzureIaasVmJobTaskDetails. + /// Initializes a new instance of IaasVmBackupJobTaskDetails. /// The task display name. /// The start time. /// The end time. @@ -29,7 +29,7 @@ public AzureIaasVmJobTaskDetails() /// Details about execution of the task. /// eg: number of bytes transferred etc /// - internal AzureIaasVmJobTaskDetails(string taskId, DateTimeOffset? startOn, DateTimeOffset? endOn, string instanceId, TimeSpan? duration, string status, double? progressPercentage, string taskExecutionDetails) + internal IaasVmBackupJobTaskDetails(string taskId, DateTimeOffset? startOn, DateTimeOffset? endOn, string instanceId, TimeSpan? duration, string status, double? progressPercentage, string taskExecutionDetails) { TaskId = taskId; StartOn = startOn; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmJobV2.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmBackupJobV2.Serialization.cs similarity index 89% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmJobV2.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmBackupJobV2.Serialization.cs index 7526a87aa7170..868ef36bb9503 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmJobV2.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmBackupJobV2.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureIaasVmJobV2 : IUtf8JsonSerializable + public partial class IaasVmBackupJobV2 : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -97,14 +97,14 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureIaasVmJobV2 DeserializeAzureIaasVmJobV2(JsonElement element) + internal static IaasVmBackupJobV2 DeserializeIaasVmBackupJobV2(JsonElement element) { Optional> actionsInfo = default; Optional containerName = default; Optional duration = default; - Optional> errorDetails = default; + Optional> errorDetails = default; Optional virtualMachineVersion = default; - Optional extendedInfo = default; + Optional extendedInfo = default; Optional entityFriendlyName = default; Optional backupManagementType = default; Optional operation = default; @@ -152,10 +152,10 @@ internal static AzureIaasVmJobV2 DeserializeAzureIaasVmJobV2(JsonElement element property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(AzureIaasVmErrorInfo.DeserializeAzureIaasVmErrorInfo(item)); + array.Add(IaasVmErrorInfo.DeserializeIaasVmErrorInfo(item)); } errorDetails = array; continue; @@ -172,7 +172,7 @@ internal static AzureIaasVmJobV2 DeserializeAzureIaasVmJobV2(JsonElement element property.ThrowNonNullablePropertyIsNull(); continue; } - extendedInfo = AzureIaasVmJobExtendedInfo.DeserializeAzureIaasVmJobExtendedInfo(property.Value); + extendedInfo = IaasVmBackupJobExtendedInfo.DeserializeIaasVmBackupJobExtendedInfo(property.Value); continue; } if (property.NameEquals("entityFriendlyName"u8)) @@ -231,7 +231,7 @@ internal static AzureIaasVmJobV2 DeserializeAzureIaasVmJobV2(JsonElement element continue; } } - return new AzureIaasVmJobV2(entityFriendlyName.Value, Optional.ToNullable(backupManagementType), operation.Value, status.Value, Optional.ToNullable(startTime), Optional.ToNullable(endTime), activityId.Value, jobType, Optional.ToList(actionsInfo), containerName.Value, Optional.ToNullable(duration), Optional.ToList(errorDetails), virtualMachineVersion.Value, extendedInfo.Value); + return new IaasVmBackupJobV2(entityFriendlyName.Value, Optional.ToNullable(backupManagementType), operation.Value, status.Value, Optional.ToNullable(startTime), Optional.ToNullable(endTime), activityId.Value, jobType, Optional.ToList(actionsInfo), containerName.Value, Optional.ToNullable(duration), Optional.ToList(errorDetails), virtualMachineVersion.Value, extendedInfo.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmJobV2.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmBackupJobV2.cs similarity index 74% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmJobV2.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmBackupJobV2.cs index e5a9b51967864..cd5d7b2d74f2b 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmJobV2.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmBackupJobV2.cs @@ -12,17 +12,17 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Azure IaaS VM workload-specific job object. - public partial class AzureIaasVmJobV2 : Job + public partial class IaasVmBackupJobV2 : BackupGenericJob { - /// Initializes a new instance of AzureIaasVmJobV2. - public AzureIaasVmJobV2() + /// Initializes a new instance of IaasVmBackupJobV2. + public IaasVmBackupJobV2() { ActionsInfo = new ChangeTrackingList(); - ErrorDetails = new ChangeTrackingList(); + ErrorDetails = new ChangeTrackingList(); JobType = "AzureIaaSVMJobV2"; } - /// Initializes a new instance of AzureIaasVmJobV2. + /// Initializes a new instance of IaasVmBackupJobV2. /// Friendly name of the entity on which the current job is executing. /// Backup management type to execute the current job. /// The operation name. @@ -37,7 +37,7 @@ public AzureIaasVmJobV2() /// Error details on execution of this job. /// Specifies whether the backup item is a Classic or an Azure Resource Manager VM. /// Additional information for this job. - internal AzureIaasVmJobV2(string entityFriendlyName, BackupManagementType? backupManagementType, string operation, string status, DateTimeOffset? startOn, DateTimeOffset? endOn, string activityId, string jobType, IList actionsInfo, string containerName, TimeSpan? duration, IList errorDetails, string virtualMachineVersion, AzureIaasVmJobExtendedInfo extendedInfo) : base(entityFriendlyName, backupManagementType, operation, status, startOn, endOn, activityId, jobType) + internal IaasVmBackupJobV2(string entityFriendlyName, BackupManagementType? backupManagementType, string operation, string status, DateTimeOffset? startOn, DateTimeOffset? endOn, string activityId, string jobType, IList actionsInfo, string containerName, TimeSpan? duration, IList errorDetails, string virtualMachineVersion, IaasVmBackupJobExtendedInfo extendedInfo) : base(entityFriendlyName, backupManagementType, operation, status, startOn, endOn, activityId, jobType) { ActionsInfo = actionsInfo; ContainerName = containerName; @@ -55,10 +55,10 @@ internal AzureIaasVmJobV2(string entityFriendlyName, BackupManagementType? backu /// Time elapsed during the execution of this job. public TimeSpan? Duration { get; set; } /// Error details on execution of this job. - public IList ErrorDetails { get; } + public IList ErrorDetails { get; } /// Specifies whether the backup item is a Classic or an Azure Resource Manager VM. public string VirtualMachineVersion { get; set; } /// Additional information for this job. - public AzureIaasVmJobExtendedInfo ExtendedInfo { get; set; } + public IaasVmBackupJobExtendedInfo ExtendedInfo { get; set; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmContainer.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmContainer.Serialization.cs index 75b78897da654..fded2c3ef3a4b 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmContainer.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmContainer.Serialization.cs @@ -66,11 +66,11 @@ internal static IaasVmContainer DeserializeIaasVmContainer(JsonElement element) { switch (discriminator.GetString()) { - case "Microsoft.ClassicCompute/virtualMachines": return AzureIaaSClassicComputeVmContainer.DeserializeAzureIaaSClassicComputeVmContainer(element); - case "Microsoft.Compute/virtualMachines": return AzureIaaSComputeVmContainer.DeserializeAzureIaaSComputeVmContainer(element); + case "Microsoft.ClassicCompute/virtualMachines": return IaasClassicComputeVmContainer.DeserializeIaasClassicComputeVmContainer(element); + case "Microsoft.Compute/virtualMachines": return IaasComputeVmContainer.DeserializeIaasComputeVmContainer(element); } } - Optional virtualMachineId = default; + Optional virtualMachineId = default; Optional virtualMachineVersion = default; Optional resourceGroup = default; Optional friendlyName = default; @@ -83,7 +83,12 @@ internal static IaasVmContainer DeserializeIaasVmContainer(JsonElement element) { if (property.NameEquals("virtualMachineId"u8)) { - virtualMachineId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + virtualMachineId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("virtualMachineVersion"u8)) diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmContainer.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmContainer.cs index 56ad348e288ef..3be06e40b459a 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmContainer.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmContainer.cs @@ -5,14 +5,16 @@ #nullable disable +using Azure.Core; + namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// /// IaaS VM workload-specific container. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . + /// The available derived classes include and . /// - public partial class IaasVmContainer : ProtectionContainer + public partial class IaasVmContainer : BackupGenericProtectionContainer { /// Initializes a new instance of IaasVmContainer. public IaasVmContainer() @@ -35,7 +37,7 @@ public IaasVmContainer() /// Fully qualified ARM url of the virtual machine represented by this Azure IaaS VM container. /// Specifies whether the container represents a Classic or an Azure Resource Manager VM. /// Resource group name of Recovery Services Vault. - internal IaasVmContainer(string friendlyName, BackupManagementType? backupManagementType, string registrationStatus, string healthStatus, ProtectableContainerType containerType, string protectableObjectType, string virtualMachineId, string virtualMachineVersion, string resourceGroup) : base(friendlyName, backupManagementType, registrationStatus, healthStatus, containerType, protectableObjectType) + internal IaasVmContainer(string friendlyName, BackupManagementType? backupManagementType, string registrationStatus, string healthStatus, ProtectableContainerType containerType, string protectableObjectType, ResourceIdentifier virtualMachineId, string virtualMachineVersion, string resourceGroup) : base(friendlyName, backupManagementType, registrationStatus, healthStatus, containerType, protectableObjectType) { VirtualMachineId = virtualMachineId; VirtualMachineVersion = virtualMachineVersion; @@ -44,7 +46,7 @@ internal IaasVmContainer(string friendlyName, BackupManagementType? backupManage } /// Fully qualified ARM url of the virtual machine represented by this Azure IaaS VM container. - public string VirtualMachineId { get; set; } + public ResourceIdentifier VirtualMachineId { get; set; } /// Specifies whether the container represents a Classic or an Azure Resource Manager VM. public string VirtualMachineVersion { get; set; } /// Resource group name of Recovery Services Vault. diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmErrorInfo.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmErrorInfo.Serialization.cs similarity index 87% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmErrorInfo.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmErrorInfo.Serialization.cs index 4728bf43492d3..d7050ecd525fb 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmErrorInfo.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmErrorInfo.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureIaasVmErrorInfo : IUtf8JsonSerializable + public partial class IaasVmErrorInfo : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -19,7 +19,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureIaasVmErrorInfo DeserializeAzureIaasVmErrorInfo(JsonElement element) + internal static IaasVmErrorInfo DeserializeIaasVmErrorInfo(JsonElement element) { Optional errorCode = default; Optional errorTitle = default; @@ -63,7 +63,7 @@ internal static AzureIaasVmErrorInfo DeserializeAzureIaasVmErrorInfo(JsonElement continue; } } - return new AzureIaasVmErrorInfo(Optional.ToNullable(errorCode), errorTitle.Value, errorString.Value, Optional.ToList(recommendations)); + return new IaasVmErrorInfo(Optional.ToNullable(errorCode), errorTitle.Value, errorString.Value, Optional.ToList(recommendations)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmErrorInfo.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmErrorInfo.cs similarity index 78% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmErrorInfo.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmErrorInfo.cs index f547ec8139551..e73499e3aecd4 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmErrorInfo.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmErrorInfo.cs @@ -11,20 +11,20 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Azure IaaS VM workload-specific error information. - public partial class AzureIaasVmErrorInfo + public partial class IaasVmErrorInfo { - /// Initializes a new instance of AzureIaasVmErrorInfo. - public AzureIaasVmErrorInfo() + /// Initializes a new instance of IaasVmErrorInfo. + public IaasVmErrorInfo() { Recommendations = new ChangeTrackingList(); } - /// Initializes a new instance of AzureIaasVmErrorInfo. + /// Initializes a new instance of IaasVmErrorInfo. /// Error code. /// Title: Typically, the entity that the error pertains to. /// Localized error string. /// List of localized recommendations for above error code. - internal AzureIaasVmErrorInfo(int? errorCode, string errorTitle, string errorString, IReadOnlyList recommendations) + internal IaasVmErrorInfo(int? errorCode, string errorTitle, string errorString, IReadOnlyList recommendations) { ErrorCode = errorCode; ErrorTitle = errorTitle; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmHealthDetails.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmHealthDetails.Serialization.cs similarity index 87% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmHealthDetails.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmHealthDetails.Serialization.cs index cc4d388dd3527..bc54a5d978911 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmHealthDetails.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmHealthDetails.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureIaasVmHealthDetails : IUtf8JsonSerializable + public partial class IaasVmHealthDetails : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -19,7 +19,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureIaasVmHealthDetails DeserializeAzureIaasVmHealthDetails(JsonElement element) + internal static IaasVmHealthDetails DeserializeIaasVmHealthDetails(JsonElement element) { Optional code = default; Optional title = default; @@ -63,7 +63,7 @@ internal static AzureIaasVmHealthDetails DeserializeAzureIaasVmHealthDetails(Jso continue; } } - return new AzureIaasVmHealthDetails(Optional.ToNullable(code), title.Value, message.Value, Optional.ToList(recommendations)); + return new IaasVmHealthDetails(Optional.ToNullable(code), title.Value, message.Value, Optional.ToList(recommendations)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmHealthDetails.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmHealthDetails.cs similarity index 57% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmHealthDetails.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmHealthDetails.cs index 24266dfe20b10..dc631839e8ad3 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmHealthDetails.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmHealthDetails.cs @@ -10,19 +10,19 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Azure IaaS VM workload-specific Health Details. - public partial class AzureIaasVmHealthDetails : ResourceHealthDetails + public partial class IaasVmHealthDetails : ResourceHealthDetails { - /// Initializes a new instance of AzureIaasVmHealthDetails. - public AzureIaasVmHealthDetails() + /// Initializes a new instance of IaasVmHealthDetails. + public IaasVmHealthDetails() { } - /// Initializes a new instance of AzureIaasVmHealthDetails. + /// Initializes a new instance of IaasVmHealthDetails. /// Health Code. /// Health Title. /// Health Message. /// Health Recommended Actions. - internal AzureIaasVmHealthDetails(int? code, string title, string message, IReadOnlyList recommendations) : base(code, title, message, recommendations) + internal IaasVmHealthDetails(int? code, string title, string message, IReadOnlyList recommendations) : base(code, title, message, recommendations) { } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmilrRegistrationRequest.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmIlrRegistrationContent.Serialization.cs similarity index 82% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmilrRegistrationRequest.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmIlrRegistrationContent.Serialization.cs index 9f83001bc22e6..6ac5441696f6b 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmilrRegistrationRequest.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmIlrRegistrationContent.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class IaasVmilrRegistrationRequest : IUtf8JsonSerializable + public partial class IaasVmIlrRegistrationContent : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -40,10 +40,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static IaasVmilrRegistrationRequest DeserializeIaasVmilrRegistrationRequest(JsonElement element) + internal static IaasVmIlrRegistrationContent DeserializeIaasVmIlrRegistrationContent(JsonElement element) { Optional recoveryPointId = default; - Optional virtualMachineId = default; + Optional virtualMachineId = default; Optional initiatorName = default; Optional renewExistingRegistration = default; string objectType = default; @@ -56,7 +56,12 @@ internal static IaasVmilrRegistrationRequest DeserializeIaasVmilrRegistrationReq } if (property.NameEquals("virtualMachineId"u8)) { - virtualMachineId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + virtualMachineId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("initiatorName"u8)) @@ -80,7 +85,7 @@ internal static IaasVmilrRegistrationRequest DeserializeIaasVmilrRegistrationReq continue; } } - return new IaasVmilrRegistrationRequest(objectType, recoveryPointId.Value, virtualMachineId.Value, initiatorName.Value, Optional.ToNullable(renewExistingRegistration)); + return new IaasVmIlrRegistrationContent(objectType, recoveryPointId.Value, virtualMachineId.Value, initiatorName.Value, Optional.ToNullable(renewExistingRegistration)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmilrRegistrationRequest.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmIlrRegistrationContent.cs similarity index 76% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmilrRegistrationRequest.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmIlrRegistrationContent.cs index b374d64218d92..528d173288ebd 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmilrRegistrationRequest.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmIlrRegistrationContent.cs @@ -5,24 +5,26 @@ #nullable disable +using Azure.Core; + namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Restore files/folders from a backup copy of IaaS VM. - public partial class IaasVmilrRegistrationRequest : ILRRequest + public partial class IaasVmIlrRegistrationContent : IlrContent { - /// Initializes a new instance of IaasVmilrRegistrationRequest. - public IaasVmilrRegistrationRequest() + /// Initializes a new instance of IaasVmIlrRegistrationContent. + public IaasVmIlrRegistrationContent() { ObjectType = "IaasVMILRRegistrationRequest"; } - /// Initializes a new instance of IaasVmilrRegistrationRequest. + /// Initializes a new instance of IaasVmIlrRegistrationContent. /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. /// ID of the IaaS VM backup copy from where the files/folders have to be restored. /// Fully qualified ARM ID of the virtual machine whose the files / folders have to be restored. /// iSCSI initiator name. /// Whether to renew existing registration with the iSCSI server. - internal IaasVmilrRegistrationRequest(string objectType, string recoveryPointId, string virtualMachineId, string initiatorName, bool? renewExistingRegistration) : base(objectType) + internal IaasVmIlrRegistrationContent(string objectType, string recoveryPointId, ResourceIdentifier virtualMachineId, string initiatorName, bool? renewExistingRegistration) : base(objectType) { RecoveryPointId = recoveryPointId; VirtualMachineId = virtualMachineId; @@ -34,7 +36,7 @@ internal IaasVmilrRegistrationRequest(string objectType, string recoveryPointId, /// ID of the IaaS VM backup copy from where the files/folders have to be restored. public string RecoveryPointId { get; set; } /// Fully qualified ARM ID of the virtual machine whose the files / folders have to be restored. - public string VirtualMachineId { get; set; } + public ResourceIdentifier VirtualMachineId { get; set; } /// iSCSI initiator name. public string InitiatorName { get; set; } /// Whether to renew existing registration with the iSCSI server. diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectableItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectableItem.Serialization.cs index e298cb9eeeb96..56a598a1539b2 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectableItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectableItem.Serialization.cs @@ -61,23 +61,28 @@ internal static IaasVmProtectableItem DeserializeIaasVmProtectableItem(JsonEleme { switch (discriminator.GetString()) { - case "Microsoft.ClassicCompute/virtualMachines": return AzureIaaSClassicComputeVmProtectableItem.DeserializeAzureIaaSClassicComputeVmProtectableItem(element); - case "Microsoft.Compute/virtualMachines": return AzureIaaSComputeVmProtectableItem.DeserializeAzureIaaSComputeVmProtectableItem(element); + case "Microsoft.ClassicCompute/virtualMachines": return IaasClassicComputeVmProtectableItem.DeserializeIaasClassicComputeVmProtectableItem(element); + case "Microsoft.Compute/virtualMachines": return IaasComputeVmProtectableItem.DeserializeIaasComputeVmProtectableItem(element); } } - Optional virtualMachineId = default; + Optional virtualMachineId = default; Optional virtualMachineVersion = default; Optional resourceGroup = default; Optional backupManagementType = default; Optional workloadType = default; string protectableItemType = "IaaSVMProtectableItem"; Optional friendlyName = default; - Optional protectionState = default; + Optional protectionState = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("virtualMachineId"u8)) { - virtualMachineId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + virtualMachineId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("virtualMachineVersion"u8)) @@ -117,7 +122,7 @@ internal static IaasVmProtectableItem DeserializeIaasVmProtectableItem(JsonEleme property.ThrowNonNullablePropertyIsNull(); continue; } - protectionState = new ProtectionStatus(property.Value.GetString()); + protectionState = new BackupProtectionStatus(property.Value.GetString()); continue; } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectableItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectableItem.cs index b704be94c2425..0398ba792e49e 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectableItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectableItem.cs @@ -5,12 +5,14 @@ #nullable disable +using Azure.Core; + namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// /// IaaS VM workload-specific backup item. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . + /// The available derived classes include and . /// public partial class IaasVmProtectableItem : WorkloadProtectableItem { @@ -29,7 +31,7 @@ public IaasVmProtectableItem() /// Fully qualified ARM ID of the virtual machine. /// Specifies whether the container represents a Classic or an Azure Resource Manager VM. /// Resource group name of Recovery Services Vault. - internal IaasVmProtectableItem(string backupManagementType, string workloadType, string protectableItemType, string friendlyName, ProtectionStatus? protectionState, string virtualMachineId, string virtualMachineVersion, string resourceGroup) : base(backupManagementType, workloadType, protectableItemType, friendlyName, protectionState) + internal IaasVmProtectableItem(string backupManagementType, string workloadType, string protectableItemType, string friendlyName, BackupProtectionStatus? protectionState, ResourceIdentifier virtualMachineId, string virtualMachineVersion, string resourceGroup) : base(backupManagementType, workloadType, protectableItemType, friendlyName, protectionState) { VirtualMachineId = virtualMachineId; VirtualMachineVersion = virtualMachineVersion; @@ -38,7 +40,7 @@ internal IaasVmProtectableItem(string backupManagementType, string workloadType, } /// Fully qualified ARM ID of the virtual machine. - public string VirtualMachineId { get; set; } + public ResourceIdentifier VirtualMachineId { get; set; } /// Specifies whether the container represents a Classic or an Azure Resource Manager VM. public string VirtualMachineVersion { get; set; } /// Resource group name of Recovery Services Vault. diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmProtectedItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectedItem.Serialization.cs similarity index 79% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmProtectedItem.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectedItem.Serialization.cs index e2f51b85e2822..ce1ead90e0db6 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmProtectedItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectedItem.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureIaasVmProtectedItem : IUtf8JsonSerializable + public partial class IaasVmProtectedItem : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -80,10 +80,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("policyId"u8); writer.WriteStringValue(PolicyId); } - if (Optional.IsDefined(LastRecoveryPoint)) + if (Optional.IsDefined(LastRecoverOn)) { writer.WritePropertyName("lastRecoveryPoint"u8); - writer.WriteStringValue(LastRecoveryPoint.Value, "O"); + writer.WriteStringValue(LastRecoverOn.Value, "O"); } if (Optional.IsDefined(BackupSetName)) { @@ -95,10 +95,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("createMode"u8); writer.WriteStringValue(CreateMode.Value.ToString()); } - if (Optional.IsDefined(DeferredDeleteTimeInUTC)) + if (Optional.IsDefined(DeferredDeletedOn)) { writer.WritePropertyName("deferredDeleteTimeInUTC"u8); - writer.WriteStringValue(DeferredDeleteTimeInUTC.Value, "O"); + writer.WriteStringValue(DeferredDeletedOn.Value, "O"); } if (Optional.IsDefined(IsScheduledForDeferredDelete)) { @@ -148,37 +148,37 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureIaasVmProtectedItem DeserializeAzureIaasVmProtectedItem(JsonElement element) + internal static IaasVmProtectedItem DeserializeIaasVmProtectedItem(JsonElement element) { if (element.TryGetProperty("protectedItemType", out JsonElement discriminator)) { switch (discriminator.GetString()) { - case "Microsoft.ClassicCompute/virtualMachines": return AzureIaaSClassicComputeVmProtectedItem.DeserializeAzureIaaSClassicComputeVmProtectedItem(element); - case "Microsoft.Compute/virtualMachines": return AzureIaaSComputeVmProtectedItem.DeserializeAzureIaaSComputeVmProtectedItem(element); + case "Microsoft.ClassicCompute/virtualMachines": return IaasClassicComputeVmProtectedItem.DeserializeIaasClassicComputeVmProtectedItem(element); + case "Microsoft.Compute/virtualMachines": return IaasComputeVmProtectedItem.DeserializeIaasComputeVmProtectedItem(element); } } Optional friendlyName = default; - Optional virtualMachineId = default; + Optional virtualMachineId = default; Optional protectionStatus = default; - Optional protectionState = default; - Optional healthStatus = default; - Optional> healthDetails = default; - Optional> kpisHealths = default; + Optional protectionState = default; + Optional healthStatus = default; + Optional> healthDetails = default; + Optional> kpisHealths = default; Optional lastBackupStatus = default; Optional lastBackupTime = default; Optional protectedItemDataId = default; - Optional extendedInfo = default; - Optional extendedProperties = default; + Optional extendedInfo = default; + Optional extendedProperties = default; string protectedItemType = "AzureIaaSVMProtectedItem"; Optional backupManagementType = default; - Optional workloadType = default; + Optional workloadType = default; Optional containerName = default; - Optional sourceResourceId = default; - Optional policyId = default; + Optional sourceResourceId = default; + Optional policyId = default; Optional lastRecoveryPoint = default; Optional backupSetName = default; - Optional createMode = default; + Optional createMode = default; Optional deferredDeleteTimeInUTC = default; Optional isScheduledForDeferredDelete = default; Optional deferredDeleteTimeRemaining = default; @@ -197,7 +197,12 @@ internal static AzureIaasVmProtectedItem DeserializeAzureIaasVmProtectedItem(Jso } if (property.NameEquals("virtualMachineId"u8)) { - virtualMachineId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + virtualMachineId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("protectionStatus"u8)) @@ -212,7 +217,7 @@ internal static AzureIaasVmProtectedItem DeserializeAzureIaasVmProtectedItem(Jso property.ThrowNonNullablePropertyIsNull(); continue; } - protectionState = new ProtectionState(property.Value.GetString()); + protectionState = new BackupProtectionState(property.Value.GetString()); continue; } if (property.NameEquals("healthStatus"u8)) @@ -222,7 +227,7 @@ internal static AzureIaasVmProtectedItem DeserializeAzureIaasVmProtectedItem(Jso property.ThrowNonNullablePropertyIsNull(); continue; } - healthStatus = new HealthStatus(property.Value.GetString()); + healthStatus = new IaasVmProtectedItemHealthStatus(property.Value.GetString()); continue; } if (property.NameEquals("healthDetails"u8)) @@ -232,10 +237,10 @@ internal static AzureIaasVmProtectedItem DeserializeAzureIaasVmProtectedItem(Jso property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(AzureIaasVmHealthDetails.DeserializeAzureIaasVmHealthDetails(item)); + array.Add(IaasVmHealthDetails.DeserializeIaasVmHealthDetails(item)); } healthDetails = array; continue; @@ -247,10 +252,10 @@ internal static AzureIaasVmProtectedItem DeserializeAzureIaasVmProtectedItem(Jso property.ThrowNonNullablePropertyIsNull(); continue; } - Dictionary dictionary = new Dictionary(); + Dictionary dictionary = new Dictionary(); foreach (var property0 in property.Value.EnumerateObject()) { - dictionary.Add(property0.Name, KPIResourceHealthDetails.DeserializeKPIResourceHealthDetails(property0.Value)); + dictionary.Add(property0.Name, KpiResourceHealthDetails.DeserializeKpiResourceHealthDetails(property0.Value)); } kpisHealths = dictionary; continue; @@ -282,7 +287,7 @@ internal static AzureIaasVmProtectedItem DeserializeAzureIaasVmProtectedItem(Jso property.ThrowNonNullablePropertyIsNull(); continue; } - extendedInfo = AzureIaasVmProtectedItemExtendedInfo.DeserializeAzureIaasVmProtectedItemExtendedInfo(property.Value); + extendedInfo = IaasVmProtectedItemExtendedInfo.DeserializeIaasVmProtectedItemExtendedInfo(property.Value); continue; } if (property.NameEquals("extendedProperties"u8)) @@ -292,7 +297,7 @@ internal static AzureIaasVmProtectedItem DeserializeAzureIaasVmProtectedItem(Jso property.ThrowNonNullablePropertyIsNull(); continue; } - extendedProperties = ExtendedProperties.DeserializeExtendedProperties(property.Value); + extendedProperties = IaasVmBackupExtendedProperties.DeserializeIaasVmBackupExtendedProperties(property.Value); continue; } if (property.NameEquals("protectedItemType"u8)) @@ -317,7 +322,7 @@ internal static AzureIaasVmProtectedItem DeserializeAzureIaasVmProtectedItem(Jso property.ThrowNonNullablePropertyIsNull(); continue; } - workloadType = new DataSourceType(property.Value.GetString()); + workloadType = new BackupDataSourceType(property.Value.GetString()); continue; } if (property.NameEquals("containerName"u8)) @@ -327,12 +332,22 @@ internal static AzureIaasVmProtectedItem DeserializeAzureIaasVmProtectedItem(Jso } if (property.NameEquals("sourceResourceId"u8)) { - sourceResourceId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + sourceResourceId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("policyId"u8)) { - policyId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + policyId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("lastRecoveryPoint"u8)) @@ -357,7 +372,7 @@ internal static AzureIaasVmProtectedItem DeserializeAzureIaasVmProtectedItem(Jso property.ThrowNonNullablePropertyIsNull(); continue; } - createMode = new CreateMode(property.Value.GetString()); + createMode = new BackupCreateMode(property.Value.GetString()); continue; } if (property.NameEquals("deferredDeleteTimeInUTC"u8)) @@ -446,7 +461,7 @@ internal static AzureIaasVmProtectedItem DeserializeAzureIaasVmProtectedItem(Jso continue; } } - return new AzureIaasVmProtectedItem(protectedItemType, Optional.ToNullable(backupManagementType), Optional.ToNullable(workloadType), containerName.Value, sourceResourceId.Value, policyId.Value, Optional.ToNullable(lastRecoveryPoint), backupSetName.Value, Optional.ToNullable(createMode), Optional.ToNullable(deferredDeleteTimeInUTC), Optional.ToNullable(isScheduledForDeferredDelete), deferredDeleteTimeRemaining.Value, Optional.ToNullable(isDeferredDeleteScheduleUpcoming), Optional.ToNullable(isRehydrate), Optional.ToList(resourceGuardOperationRequests), Optional.ToNullable(isArchiveEnabled), policyName.Value, Optional.ToNullable(softDeleteRetentionPeriod), friendlyName.Value, virtualMachineId.Value, protectionStatus.Value, Optional.ToNullable(protectionState), Optional.ToNullable(healthStatus), Optional.ToList(healthDetails), Optional.ToDictionary(kpisHealths), lastBackupStatus.Value, Optional.ToNullable(lastBackupTime), protectedItemDataId.Value, extendedInfo.Value, extendedProperties.Value); + return new IaasVmProtectedItem(protectedItemType, Optional.ToNullable(backupManagementType), Optional.ToNullable(workloadType), containerName.Value, sourceResourceId.Value, policyId.Value, Optional.ToNullable(lastRecoveryPoint), backupSetName.Value, Optional.ToNullable(createMode), Optional.ToNullable(deferredDeleteTimeInUTC), Optional.ToNullable(isScheduledForDeferredDelete), deferredDeleteTimeRemaining.Value, Optional.ToNullable(isDeferredDeleteScheduleUpcoming), Optional.ToNullable(isRehydrate), Optional.ToList(resourceGuardOperationRequests), Optional.ToNullable(isArchiveEnabled), policyName.Value, Optional.ToNullable(softDeleteRetentionPeriod), friendlyName.Value, virtualMachineId.Value, protectionStatus.Value, Optional.ToNullable(protectionState), Optional.ToNullable(healthStatus), Optional.ToList(healthDetails), Optional.ToDictionary(kpisHealths), lastBackupStatus.Value, Optional.ToNullable(lastBackupTime), protectedItemDataId.Value, extendedInfo.Value, extendedProperties.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmProtectedItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectedItem.cs similarity index 64% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmProtectedItem.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectedItem.cs index f991320eb2f39..4ae7eca6bbcc1 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmProtectedItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectedItem.cs @@ -13,30 +13,30 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// /// IaaS VM workload-specific backup item. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . /// - public partial class AzureIaasVmProtectedItem : ProtectedItem + public partial class IaasVmProtectedItem : BackupGenericProtectedItem { - /// Initializes a new instance of AzureIaasVmProtectedItem. - public AzureIaasVmProtectedItem() + /// Initializes a new instance of IaasVmProtectedItem. + public IaasVmProtectedItem() { - HealthDetails = new ChangeTrackingList(); - KpisHealths = new ChangeTrackingDictionary(); + HealthDetails = new ChangeTrackingList(); + KpisHealths = new ChangeTrackingDictionary(); ProtectedItemType = "AzureIaaSVMProtectedItem"; } - /// Initializes a new instance of AzureIaasVmProtectedItem. + /// Initializes a new instance of IaasVmProtectedItem. /// backup item type. /// Type of backup management for the backed up item. /// Type of workload this item represents. /// Unique name of container. /// ARM ID of the resource to be backed up. /// ID of the backup policy with which this item is backed up. - /// Timestamp when the last (latest) backup copy was created for this backup item. + /// Timestamp when the last (latest) backup copy was created for this backup item. /// Name of the backup set the backup item belongs to. /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. - /// Time for deferred deletion in UTC. + /// Time for deferred deletion in UTC. /// Flag to identify whether the DS is scheduled for deferred delete. /// Time remaining before the DS marked for deferred delete is permanently deleted. /// Flag to identify whether the deferred deleted DS is to be purged soon. @@ -57,7 +57,7 @@ public AzureIaasVmProtectedItem() /// Data ID of the protected item. /// Additional information for this backup item. /// Extended Properties for Azure IaasVM Backup. - internal AzureIaasVmProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, DataSourceType? workloadType, string containerName, string sourceResourceId, string policyId, DateTimeOffset? lastRecoveryPoint, string backupSetName, CreateMode? createMode, DateTimeOffset? deferredDeleteTimeInUTC, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriod, string friendlyName, string virtualMachineId, string protectionStatus, ProtectionState? protectionState, HealthStatus? healthStatus, IList healthDetails, IDictionary kpisHealths, string lastBackupStatus, DateTimeOffset? lastBackupOn, string protectedItemDataId, AzureIaasVmProtectedItemExtendedInfo extendedInfo, ExtendedProperties extendedProperties) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, deferredDeleteTimeInUTC, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriod) + internal IaasVmProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, ResourceIdentifier policyId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriod, string friendlyName, ResourceIdentifier virtualMachineId, string protectionStatus, BackupProtectionState? protectionState, IaasVmProtectedItemHealthStatus? healthStatus, IList healthDetails, IDictionary kpisHealths, string lastBackupStatus, DateTimeOffset? lastBackupOn, string protectedItemDataId, IaasVmProtectedItemExtendedInfo extendedInfo, IaasVmBackupExtendedProperties extendedProperties) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriod) { FriendlyName = friendlyName; VirtualMachineId = virtualMachineId; @@ -77,17 +77,17 @@ internal AzureIaasVmProtectedItem(string protectedItemType, BackupManagementType /// Friendly name of the VM represented by this backup item. public string FriendlyName { get; } /// Fully qualified ARM ID of the virtual machine represented by this item. - public string VirtualMachineId { get; } + public ResourceIdentifier VirtualMachineId { get; } /// Backup status of this backup item. public string ProtectionStatus { get; set; } /// Backup state of this backup item. - public ProtectionState? ProtectionState { get; set; } + public BackupProtectionState? ProtectionState { get; set; } /// Health status of protected item. - public HealthStatus? HealthStatus { get; } + public IaasVmProtectedItemHealthStatus? HealthStatus { get; } /// Health details on this backup item. - public IList HealthDetails { get; } + public IList HealthDetails { get; } /// Health details of different KPIs. - public IDictionary KpisHealths { get; } + public IDictionary KpisHealths { get; } /// Last backup operation status. public string LastBackupStatus { get; set; } /// Timestamp of the last backup operation on this backup item. @@ -95,8 +95,8 @@ internal AzureIaasVmProtectedItem(string protectedItemType, BackupManagementType /// Data ID of the protected item. public string ProtectedItemDataId { get; } /// Additional information for this backup item. - public AzureIaasVmProtectedItemExtendedInfo ExtendedInfo { get; set; } + public IaasVmProtectedItemExtendedInfo ExtendedInfo { get; set; } /// Extended Properties for Azure IaasVM Backup. - public ExtendedProperties ExtendedProperties { get; set; } + public IaasVmBackupExtendedProperties ExtendedProperties { get; set; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmProtectedItemExtendedInfo.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectedItemExtendedInfo.Serialization.cs similarity index 85% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmProtectedItemExtendedInfo.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectedItemExtendedInfo.Serialization.cs index a62f18cf9575f..9329e0e04a85e 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmProtectedItemExtendedInfo.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectedItemExtendedInfo.Serialization.cs @@ -11,15 +11,15 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureIaasVmProtectedItemExtendedInfo : IUtf8JsonSerializable + public partial class IaasVmProtectedItemExtendedInfo : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - if (Optional.IsDefined(OldestRecoveryPoint)) + if (Optional.IsDefined(OldestRecoverOn)) { writer.WritePropertyName("oldestRecoveryPoint"u8); - writer.WriteStringValue(OldestRecoveryPoint.Value, "O"); + writer.WriteStringValue(OldestRecoverOn.Value, "O"); } if (Optional.IsDefined(OldestRecoveryPointInVault)) { @@ -41,15 +41,15 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("recoveryPointCount"u8); writer.WriteNumberValue(RecoveryPointCount.Value); } - if (Optional.IsDefined(PolicyInconsistent)) + if (Optional.IsDefined(IsPolicyInconsistent)) { writer.WritePropertyName("policyInconsistent"u8); - writer.WriteBooleanValue(PolicyInconsistent.Value); + writer.WriteBooleanValue(IsPolicyInconsistent.Value); } writer.WriteEndObject(); } - internal static AzureIaasVmProtectedItemExtendedInfo DeserializeAzureIaasVmProtectedItemExtendedInfo(JsonElement element) + internal static IaasVmProtectedItemExtendedInfo DeserializeIaasVmProtectedItemExtendedInfo(JsonElement element) { Optional oldestRecoveryPoint = default; Optional oldestRecoveryPointInVault = default; @@ -120,7 +120,7 @@ internal static AzureIaasVmProtectedItemExtendedInfo DeserializeAzureIaasVmProte continue; } } - return new AzureIaasVmProtectedItemExtendedInfo(Optional.ToNullable(oldestRecoveryPoint), Optional.ToNullable(oldestRecoveryPointInVault), Optional.ToNullable(oldestRecoveryPointInArchive), Optional.ToNullable(newestRecoveryPointInArchive), Optional.ToNullable(recoveryPointCount), Optional.ToNullable(policyInconsistent)); + return new IaasVmProtectedItemExtendedInfo(Optional.ToNullable(oldestRecoveryPoint), Optional.ToNullable(oldestRecoveryPointInVault), Optional.ToNullable(oldestRecoveryPointInArchive), Optional.ToNullable(newestRecoveryPointInArchive), Optional.ToNullable(recoveryPointCount), Optional.ToNullable(policyInconsistent)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmProtectedItemExtendedInfo.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectedItemExtendedInfo.cs similarity index 65% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmProtectedItemExtendedInfo.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectedItemExtendedInfo.cs index 3210508fa190b..aeebf6f93146e 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmProtectedItemExtendedInfo.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectedItemExtendedInfo.cs @@ -10,32 +10,32 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Additional information on Azure IaaS VM specific backup item. - public partial class AzureIaasVmProtectedItemExtendedInfo + public partial class IaasVmProtectedItemExtendedInfo { - /// Initializes a new instance of AzureIaasVmProtectedItemExtendedInfo. - public AzureIaasVmProtectedItemExtendedInfo() + /// Initializes a new instance of IaasVmProtectedItemExtendedInfo. + public IaasVmProtectedItemExtendedInfo() { } - /// Initializes a new instance of AzureIaasVmProtectedItemExtendedInfo. - /// The oldest backup copy available for this backup item across all tiers. + /// Initializes a new instance of IaasVmProtectedItemExtendedInfo. + /// The oldest backup copy available for this backup item across all tiers. /// The oldest backup copy available for this backup item in vault tier. /// The oldest backup copy available for this backup item in archive tier. /// The latest backup copy available for this backup item in archive tier. /// Number of backup copies available for this backup item. - /// Specifies if backup policy associated with the backup item is inconsistent. - internal AzureIaasVmProtectedItemExtendedInfo(DateTimeOffset? oldestRecoveryPoint, DateTimeOffset? oldestRecoveryPointInVault, DateTimeOffset? oldestRecoveryPointInArchive, DateTimeOffset? newestRecoveryPointInArchive, int? recoveryPointCount, bool? policyInconsistent) + /// Specifies if backup policy associated with the backup item is inconsistent. + internal IaasVmProtectedItemExtendedInfo(DateTimeOffset? oldestRecoverOn, DateTimeOffset? oldestRecoveryPointInVault, DateTimeOffset? oldestRecoveryPointInArchive, DateTimeOffset? newestRecoveryPointInArchive, int? recoveryPointCount, bool? isPolicyInconsistent) { - OldestRecoveryPoint = oldestRecoveryPoint; + OldestRecoverOn = oldestRecoverOn; OldestRecoveryPointInVault = oldestRecoveryPointInVault; OldestRecoveryPointInArchive = oldestRecoveryPointInArchive; NewestRecoveryPointInArchive = newestRecoveryPointInArchive; RecoveryPointCount = recoveryPointCount; - PolicyInconsistent = policyInconsistent; + IsPolicyInconsistent = isPolicyInconsistent; } /// The oldest backup copy available for this backup item across all tiers. - public DateTimeOffset? OldestRecoveryPoint { get; set; } + public DateTimeOffset? OldestRecoverOn { get; set; } /// The oldest backup copy available for this backup item in vault tier. public DateTimeOffset? OldestRecoveryPointInVault { get; set; } /// The oldest backup copy available for this backup item in archive tier. @@ -45,6 +45,6 @@ internal AzureIaasVmProtectedItemExtendedInfo(DateTimeOffset? oldestRecoveryPoin /// Number of backup copies available for this backup item. public int? RecoveryPointCount { get; set; } /// Specifies if backup policy associated with the backup item is inconsistent. - public bool? PolicyInconsistent { get; set; } + public bool? IsPolicyInconsistent { get; set; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectedItemHealthStatus.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectedItemHealthStatus.cs new file mode 100644 index 0000000000000..c9bf7b2fa7bd4 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectedItemHealthStatus.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Models +{ + /// Health status of protected item. + public readonly partial struct IaasVmProtectedItemHealthStatus : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public IaasVmProtectedItemHealthStatus(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string PassedValue = "Passed"; + private const string ActionRequiredValue = "ActionRequired"; + private const string ActionSuggestedValue = "ActionSuggested"; + private const string InvalidValue = "Invalid"; + + /// Passed. + public static IaasVmProtectedItemHealthStatus Passed { get; } = new IaasVmProtectedItemHealthStatus(PassedValue); + /// ActionRequired. + public static IaasVmProtectedItemHealthStatus ActionRequired { get; } = new IaasVmProtectedItemHealthStatus(ActionRequiredValue); + /// ActionSuggested. + public static IaasVmProtectedItemHealthStatus ActionSuggested { get; } = new IaasVmProtectedItemHealthStatus(ActionSuggestedValue); + /// Invalid. + public static IaasVmProtectedItemHealthStatus Invalid { get; } = new IaasVmProtectedItemHealthStatus(InvalidValue); + /// Determines if two values are the same. + public static bool operator ==(IaasVmProtectedItemHealthStatus left, IaasVmProtectedItemHealthStatus right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(IaasVmProtectedItemHealthStatus left, IaasVmProtectedItemHealthStatus right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator IaasVmProtectedItemHealthStatus(string value) => new IaasVmProtectedItemHealthStatus(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is IaasVmProtectedItemHealthStatus other && Equals(other); + /// + public bool Equals(IaasVmProtectedItemHealthStatus other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmProtectionPolicy.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectionPolicy.Serialization.cs similarity index 84% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmProtectionPolicy.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectionPolicy.Serialization.cs index f0cd6e208e880..7868c6ec45df6 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmProtectionPolicy.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectionPolicy.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureIaasVmProtectionPolicy : IUtf8JsonSerializable + public partial class IaasVmProtectionPolicy : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -42,10 +42,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } - if (Optional.IsDefined(InstantRpRetentionRangeInDays)) + if (Optional.IsDefined(InstantRPRetentionRangeInDays)) { writer.WritePropertyName("instantRpRetentionRangeInDays"u8); - writer.WriteNumberValue(InstantRpRetentionRangeInDays.Value); + writer.WriteNumberValue(InstantRPRetentionRangeInDays.Value); } if (Optional.IsDefined(TimeZone)) { @@ -77,12 +77,12 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureIaasVmProtectionPolicy DeserializeAzureIaasVmProtectionPolicy(JsonElement element) + internal static IaasVmProtectionPolicy DeserializeIaasVmProtectionPolicy(JsonElement element) { Optional instantRPDetails = default; - Optional schedulePolicy = default; - Optional retentionPolicy = default; - Optional> tieringPolicy = default; + Optional schedulePolicy = default; + Optional retentionPolicy = default; + Optional> tieringPolicy = default; Optional instantRpRetentionRangeInDays = default; Optional timeZone = default; Optional policyType = default; @@ -108,7 +108,7 @@ internal static AzureIaasVmProtectionPolicy DeserializeAzureIaasVmProtectionPoli property.ThrowNonNullablePropertyIsNull(); continue; } - schedulePolicy = SchedulePolicy.DeserializeSchedulePolicy(property.Value); + schedulePolicy = BackupSchedulePolicy.DeserializeBackupSchedulePolicy(property.Value); continue; } if (property.NameEquals("retentionPolicy"u8)) @@ -118,7 +118,7 @@ internal static AzureIaasVmProtectionPolicy DeserializeAzureIaasVmProtectionPoli property.ThrowNonNullablePropertyIsNull(); continue; } - retentionPolicy = RetentionPolicy.DeserializeRetentionPolicy(property.Value); + retentionPolicy = BackupRetentionPolicy.DeserializeBackupRetentionPolicy(property.Value); continue; } if (property.NameEquals("tieringPolicy"u8)) @@ -128,10 +128,10 @@ internal static AzureIaasVmProtectionPolicy DeserializeAzureIaasVmProtectionPoli property.ThrowNonNullablePropertyIsNull(); continue; } - Dictionary dictionary = new Dictionary(); + Dictionary dictionary = new Dictionary(); foreach (var property0 in property.Value.EnumerateObject()) { - dictionary.Add(property0.Name, Models.TieringPolicy.DeserializeTieringPolicy(property0.Value)); + dictionary.Add(property0.Name, BackupTieringPolicy.DeserializeBackupTieringPolicy(property0.Value)); } tieringPolicy = dictionary; continue; @@ -192,7 +192,7 @@ internal static AzureIaasVmProtectionPolicy DeserializeAzureIaasVmProtectionPoli continue; } } - return new AzureIaasVmProtectionPolicy(Optional.ToNullable(protectedItemsCount), backupManagementType, Optional.ToList(resourceGuardOperationRequests), instantRPDetails.Value, schedulePolicy.Value, retentionPolicy.Value, Optional.ToDictionary(tieringPolicy), Optional.ToNullable(instantRpRetentionRangeInDays), timeZone.Value, Optional.ToNullable(policyType)); + return new IaasVmProtectionPolicy(Optional.ToNullable(protectedItemsCount), backupManagementType, Optional.ToList(resourceGuardOperationRequests), instantRPDetails.Value, schedulePolicy.Value, retentionPolicy.Value, Optional.ToDictionary(tieringPolicy), Optional.ToNullable(instantRpRetentionRangeInDays), timeZone.Value, Optional.ToNullable(policyType)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmProtectionPolicy.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectionPolicy.cs similarity index 62% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmProtectionPolicy.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectionPolicy.cs index 32f62348ae8a4..86baca1bca3e3 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureIaasVmProtectionPolicy.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectionPolicy.cs @@ -11,28 +11,28 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// IaaS VM workload-specific backup policy. - public partial class AzureIaasVmProtectionPolicy : ProtectionPolicy + public partial class IaasVmProtectionPolicy : BackupGenericProtectionPolicy { - /// Initializes a new instance of AzureIaasVmProtectionPolicy. - public AzureIaasVmProtectionPolicy() + /// Initializes a new instance of IaasVmProtectionPolicy. + public IaasVmProtectionPolicy() { - TieringPolicy = new ChangeTrackingDictionary(); + TieringPolicy = new ChangeTrackingDictionary(); BackupManagementType = "AzureIaasVM"; } - /// Initializes a new instance of AzureIaasVmProtectionPolicy. + /// Initializes a new instance of IaasVmProtectionPolicy. /// Number of items associated with this policy. /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. /// ResourceGuard Operation Requests. /// /// /// Backup schedule specified as part of backup policy. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include , , and . /// /// /// Retention policy with the details on backup copy retention ranges. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// /// @@ -40,16 +40,16 @@ public AzureIaasVmProtectionPolicy() /// Key is Target Tier, defined in RecoveryPointTierType enum. /// Tiering policy specifies the criteria to move RP to the target tier. /// - /// Instant RP retention policy range in days. + /// Instant RP retention policy range in days. /// TimeZone optional input as string. For example: TimeZone = "Pacific Standard Time". /// - internal AzureIaasVmProtectionPolicy(int? protectedItemsCount, string backupManagementType, IList resourceGuardOperationRequests, InstantRPAdditionalDetails instantRPDetails, SchedulePolicy schedulePolicy, RetentionPolicy retentionPolicy, IDictionary tieringPolicy, int? instantRpRetentionRangeInDays, string timeZone, IaasVmPolicyType? policyType) : base(protectedItemsCount, backupManagementType, resourceGuardOperationRequests) + internal IaasVmProtectionPolicy(int? protectedItemsCount, string backupManagementType, IList resourceGuardOperationRequests, InstantRPAdditionalDetails instantRPDetails, BackupSchedulePolicy schedulePolicy, BackupRetentionPolicy retentionPolicy, IDictionary tieringPolicy, int? instantRPRetentionRangeInDays, string timeZone, IaasVmPolicyType? policyType) : base(protectedItemsCount, backupManagementType, resourceGuardOperationRequests) { InstantRPDetails = instantRPDetails; SchedulePolicy = schedulePolicy; RetentionPolicy = retentionPolicy; TieringPolicy = tieringPolicy; - InstantRpRetentionRangeInDays = instantRpRetentionRangeInDays; + InstantRPRetentionRangeInDays = instantRPRetentionRangeInDays; TimeZone = timeZone; PolicyType = policyType; BackupManagementType = backupManagementType ?? "AzureIaasVM"; @@ -59,24 +59,24 @@ internal AzureIaasVmProtectionPolicy(int? protectedItemsCount, string backupMana public InstantRPAdditionalDetails InstantRPDetails { get; set; } /// /// Backup schedule specified as part of backup policy. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include , , and . /// - public SchedulePolicy SchedulePolicy { get; set; } + public BackupSchedulePolicy SchedulePolicy { get; set; } /// /// Retention policy with the details on backup copy retention ranges. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// - public RetentionPolicy RetentionPolicy { get; set; } + public BackupRetentionPolicy RetentionPolicy { get; set; } /// /// Tiering policy to automatically move RPs to another tier /// Key is Target Tier, defined in RecoveryPointTierType enum. /// Tiering policy specifies the criteria to move RP to the target tier. /// - public IDictionary TieringPolicy { get; } + public IDictionary TieringPolicy { get; } /// Instant RP retention policy range in days. - public int? InstantRpRetentionRangeInDays { get; set; } + public int? InstantRPRetentionRangeInDays { get; set; } /// TimeZone optional input as string. For example: TimeZone = "Pacific Standard Time". public string TimeZone { get; set; } /// Gets or sets the policy type. diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRecoveryPoint.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRecoveryPoint.cs index b1f78bcdd5475..93cdf9b43bb61 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRecoveryPoint.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRecoveryPoint.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// IaaS VM workload specific backup copy. - public partial class IaasVmRecoveryPoint : RecoveryPoint + public partial class IaasVmRecoveryPoint : BackupGenericRecoveryPoint { /// Initializes a new instance of IaasVmRecoveryPoint. public IaasVmRecoveryPoint() diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRestoreRequest.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRestoreContent.Serialization.cs similarity index 72% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRestoreRequest.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRestoreContent.Serialization.cs index 1abcd2fcdbc73..f92ac2a70f697 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRestoreRequest.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRestoreContent.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class IaasVmRestoreRequest : IUtf8JsonSerializable + public partial class IaasVmRestoreContent : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -64,17 +64,17 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(Region)) { writer.WritePropertyName("region"u8); - writer.WriteStringValue(Region); + writer.WriteStringValue(Region.Value); } if (Optional.IsDefined(AffinityGroup)) { writer.WritePropertyName("affinityGroup"u8); writer.WriteStringValue(AffinityGroup); } - if (Optional.IsDefined(CreateNewCloudService)) + if (Optional.IsDefined(DoesCreateNewCloudService)) { writer.WritePropertyName("createNewCloudService"u8); - writer.WriteBooleanValue(CreateNewCloudService.Value); + writer.WriteBooleanValue(DoesCreateNewCloudService.Value); } if (Optional.IsDefined(OriginalStorageAccountOption)) { @@ -96,10 +96,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndArray(); } - if (Optional.IsDefined(RestoreWithManagedDisks)) + if (Optional.IsDefined(DoesRestoreWithManagedDisks)) { writer.WritePropertyName("restoreWithManagedDisks"u8); - writer.WriteBooleanValue(RestoreWithManagedDisks.Value); + writer.WriteBooleanValue(DoesRestoreWithManagedDisks.Value); } if (Optional.IsDefined(DiskEncryptionSetId)) { @@ -131,34 +131,34 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static IaasVmRestoreRequest DeserializeIaasVmRestoreRequest(JsonElement element) + internal static IaasVmRestoreContent DeserializeIaasVmRestoreContent(JsonElement element) { if (element.TryGetProperty("objectType", out JsonElement discriminator)) { switch (discriminator.GetString()) { - case "IaasVMRestoreWithRehydrationRequest": return IaasVmRestoreWithRehydrationRequest.DeserializeIaasVmRestoreWithRehydrationRequest(element); + case "IaasVMRestoreWithRehydrationRequest": return IaasVmRestoreWithRehydrationContent.DeserializeIaasVmRestoreWithRehydrationContent(element); } } Optional recoveryPointId = default; - Optional recoveryType = default; - Optional sourceResourceId = default; - Optional targetVirtualMachineId = default; - Optional targetResourceGroupId = default; - Optional storageAccountId = default; - Optional virtualNetworkId = default; - Optional subnetId = default; - Optional targetDomainNameId = default; - Optional region = default; + Optional recoveryType = default; + Optional sourceResourceId = default; + Optional targetVirtualMachineId = default; + Optional targetResourceGroupId = default; + Optional storageAccountId = default; + Optional virtualNetworkId = default; + Optional subnetId = default; + Optional targetDomainNameId = default; + Optional region = default; Optional affinityGroup = default; Optional createNewCloudService = default; Optional originalStorageAccountOption = default; - Optional encryptionDetails = default; + Optional encryptionDetails = default; Optional> restoreDiskLunList = default; Optional restoreWithManagedDisks = default; Optional diskEncryptionSetId = default; Optional> zones = default; - Optional identityInfo = default; + Optional identityInfo = default; Optional identityBasedRestoreDetails = default; string objectType = "IaasVMRestoreRequest"; foreach (var property in element.EnumerateObject()) @@ -175,47 +175,87 @@ internal static IaasVmRestoreRequest DeserializeIaasVmRestoreRequest(JsonElement property.ThrowNonNullablePropertyIsNull(); continue; } - recoveryType = new RecoveryType(property.Value.GetString()); + recoveryType = new FileShareRecoveryType(property.Value.GetString()); continue; } if (property.NameEquals("sourceResourceId"u8)) { - sourceResourceId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + sourceResourceId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("targetVirtualMachineId"u8)) { - targetVirtualMachineId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + targetVirtualMachineId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("targetResourceGroupId"u8)) { - targetResourceGroupId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + targetResourceGroupId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("storageAccountId"u8)) { - storageAccountId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + storageAccountId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("virtualNetworkId"u8)) { - virtualNetworkId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + virtualNetworkId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("subnetId"u8)) { - subnetId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + subnetId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("targetDomainNameId"u8)) { - targetDomainNameId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + targetDomainNameId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("region"u8)) { - region = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + region = new AzureLocation(property.Value.GetString()); continue; } if (property.NameEquals("affinityGroup"u8)) @@ -250,7 +290,7 @@ internal static IaasVmRestoreRequest DeserializeIaasVmRestoreRequest(JsonElement property.ThrowNonNullablePropertyIsNull(); continue; } - encryptionDetails = EncryptionDetails.DeserializeEncryptionDetails(property.Value); + encryptionDetails = VmEncryptionDetails.DeserializeVmEncryptionDetails(property.Value); continue; } if (property.NameEquals("restoreDiskLunList"u8)) @@ -305,7 +345,7 @@ internal static IaasVmRestoreRequest DeserializeIaasVmRestoreRequest(JsonElement property.ThrowNonNullablePropertyIsNull(); continue; } - identityInfo = IdentityInfo.DeserializeIdentityInfo(property.Value); + identityInfo = BackupIdentityInfo.DeserializeBackupIdentityInfo(property.Value); continue; } if (property.NameEquals("identityBasedRestoreDetails"u8)) @@ -324,7 +364,7 @@ internal static IaasVmRestoreRequest DeserializeIaasVmRestoreRequest(JsonElement continue; } } - return new IaasVmRestoreRequest(objectType, recoveryPointId.Value, Optional.ToNullable(recoveryType), sourceResourceId.Value, targetVirtualMachineId.Value, targetResourceGroupId.Value, storageAccountId.Value, virtualNetworkId.Value, subnetId.Value, targetDomainNameId.Value, region.Value, affinityGroup.Value, Optional.ToNullable(createNewCloudService), Optional.ToNullable(originalStorageAccountOption), encryptionDetails.Value, Optional.ToList(restoreDiskLunList), Optional.ToNullable(restoreWithManagedDisks), diskEncryptionSetId.Value, Optional.ToList(zones), identityInfo.Value, identityBasedRestoreDetails.Value); + return new IaasVmRestoreContent(objectType, recoveryPointId.Value, Optional.ToNullable(recoveryType), sourceResourceId.Value, targetVirtualMachineId.Value, targetResourceGroupId.Value, storageAccountId.Value, virtualNetworkId.Value, subnetId.Value, targetDomainNameId.Value, Optional.ToNullable(region), affinityGroup.Value, Optional.ToNullable(createNewCloudService), Optional.ToNullable(originalStorageAccountOption), encryptionDetails.Value, Optional.ToList(restoreDiskLunList), Optional.ToNullable(restoreWithManagedDisks), diskEncryptionSetId.Value, Optional.ToList(zones), identityInfo.Value, identityBasedRestoreDetails.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRestoreRequest.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRestoreContent.cs similarity index 79% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRestoreRequest.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRestoreContent.cs index 7f84351d7fef6..be36117e5842f 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRestoreRequest.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRestoreContent.cs @@ -12,20 +12,20 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// /// IaaS VM workload-specific restore. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . /// - public partial class IaasVmRestoreRequest : RestoreRequest + public partial class IaasVmRestoreContent : RestoreContent { - /// Initializes a new instance of IaasVmRestoreRequest. - public IaasVmRestoreRequest() + /// Initializes a new instance of IaasVmRestoreContent. + public IaasVmRestoreContent() { RestoreDiskLunList = new ChangeTrackingList(); Zones = new ChangeTrackingList(); ObjectType = "IaasVMRestoreRequest"; } - /// Initializes a new instance of IaasVmRestoreRequest. + /// Initializes a new instance of IaasVmRestoreContent. /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. /// ID of the backup copy to be recovered. /// Type of this recovery. @@ -54,19 +54,19 @@ public IaasVmRestoreRequest() /// /// Region in which the virtual machine is restored. /// Affinity group associated to VM to be restored. Used only for Classic Compute Virtual Machines. - /// + /// /// Should a new cloud service be created while restoring the VM. If this is false, VM will be restored to the same /// cloud service as it was at the time of backup. /// /// Original Storage Account Option. /// Details needed if the VM was encrypted at the time of backup. /// List of Disk LUNs for partial restore. - /// Flag to denote of an Unmanaged disk VM should be restored with Managed disks. + /// Flag to denote of an Unmanaged disk VM should be restored with Managed disks. /// DiskEncryptionSet's ID - needed if the VM needs to be encrypted at rest during restore with customer managed key. /// Target zone where the VM and its disks should be restored. /// Managed Identity information required to access customer storage account. /// IaaS VM workload specific restore details for restores using managed identity. - internal IaasVmRestoreRequest(string objectType, string recoveryPointId, RecoveryType? recoveryType, string sourceResourceId, string targetVirtualMachineId, string targetResourceGroupId, string storageAccountId, string virtualNetworkId, string subnetId, string targetDomainNameId, string region, string affinityGroup, bool? createNewCloudService, bool? originalStorageAccountOption, EncryptionDetails encryptionDetails, IList restoreDiskLunList, bool? restoreWithManagedDisks, string diskEncryptionSetId, IList zones, IdentityInfo identityInfo, IdentityBasedRestoreDetails identityBasedRestoreDetails) : base(objectType) + internal IaasVmRestoreContent(string objectType, string recoveryPointId, FileShareRecoveryType? recoveryType, ResourceIdentifier sourceResourceId, ResourceIdentifier targetVirtualMachineId, ResourceIdentifier targetResourceGroupId, ResourceIdentifier storageAccountId, ResourceIdentifier virtualNetworkId, ResourceIdentifier subnetId, ResourceIdentifier targetDomainNameId, AzureLocation? region, string affinityGroup, bool? doesCreateNewCloudService, bool? originalStorageAccountOption, VmEncryptionDetails encryptionDetails, IList restoreDiskLunList, bool? doesRestoreWithManagedDisks, string diskEncryptionSetId, IList zones, BackupIdentityInfo identityInfo, IdentityBasedRestoreDetails identityBasedRestoreDetails) : base(objectType) { RecoveryPointId = recoveryPointId; RecoveryType = recoveryType; @@ -79,11 +79,11 @@ internal IaasVmRestoreRequest(string objectType, string recoveryPointId, Recover TargetDomainNameId = targetDomainNameId; Region = region; AffinityGroup = affinityGroup; - CreateNewCloudService = createNewCloudService; + DoesCreateNewCloudService = doesCreateNewCloudService; OriginalStorageAccountOption = originalStorageAccountOption; EncryptionDetails = encryptionDetails; RestoreDiskLunList = restoreDiskLunList; - RestoreWithManagedDisks = restoreWithManagedDisks; + DoesRestoreWithManagedDisks = doesRestoreWithManagedDisks; DiskEncryptionSetId = diskEncryptionSetId; Zones = zones; IdentityInfo = identityInfo; @@ -94,60 +94,60 @@ internal IaasVmRestoreRequest(string objectType, string recoveryPointId, Recover /// ID of the backup copy to be recovered. public string RecoveryPointId { get; set; } /// Type of this recovery. - public RecoveryType? RecoveryType { get; set; } + public FileShareRecoveryType? RecoveryType { get; set; } /// Fully qualified ARM ID of the VM which is being recovered. - public string SourceResourceId { get; set; } + public ResourceIdentifier SourceResourceId { get; set; } /// /// This is the complete ARM Id of the VM that will be created. /// For e.g. /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} /// - public string TargetVirtualMachineId { get; set; } + public ResourceIdentifier TargetVirtualMachineId { get; set; } /// /// This is the ARM Id of the resource group that you want to create for this Virtual machine and other artifacts. /// For e.g. /subscriptions/{subId}/resourcegroups/{rg} /// - public string TargetResourceGroupId { get; set; } + public ResourceIdentifier TargetResourceGroupId { get; set; } /// Fully qualified ARM ID of the storage account to which the VM has to be restored. - public string StorageAccountId { get; set; } + public ResourceIdentifier StorageAccountId { get; set; } /// /// This is the virtual network Id of the vnet that will be attached to the virtual machine. /// User will be validated for join action permissions in the linked access. /// - public string VirtualNetworkId { get; set; } + public ResourceIdentifier VirtualNetworkId { get; set; } /// /// Subnet ID, is the subnet ID associated with the to be restored VM. For Classic VMs it would be /// {VnetID}/Subnet/{SubnetName} and, for the Azure Resource Manager VMs it would be ARM resource ID used to represent /// the subnet. /// - public string SubnetId { get; set; } + public ResourceIdentifier SubnetId { get; set; } /// /// Fully qualified ARM ID of the domain name to be associated to the VM being restored. This applies only to Classic /// Virtual Machines. /// - public string TargetDomainNameId { get; set; } + public ResourceIdentifier TargetDomainNameId { get; set; } /// Region in which the virtual machine is restored. - public string Region { get; set; } + public AzureLocation? Region { get; set; } /// Affinity group associated to VM to be restored. Used only for Classic Compute Virtual Machines. public string AffinityGroup { get; set; } /// /// Should a new cloud service be created while restoring the VM. If this is false, VM will be restored to the same /// cloud service as it was at the time of backup. /// - public bool? CreateNewCloudService { get; set; } + public bool? DoesCreateNewCloudService { get; set; } /// Original Storage Account Option. public bool? OriginalStorageAccountOption { get; set; } /// Details needed if the VM was encrypted at the time of backup. - public EncryptionDetails EncryptionDetails { get; set; } + public VmEncryptionDetails EncryptionDetails { get; set; } /// List of Disk LUNs for partial restore. public IList RestoreDiskLunList { get; } /// Flag to denote of an Unmanaged disk VM should be restored with Managed disks. - public bool? RestoreWithManagedDisks { get; set; } + public bool? DoesRestoreWithManagedDisks { get; set; } /// DiskEncryptionSet's ID - needed if the VM needs to be encrypted at rest during restore with customer managed key. public string DiskEncryptionSetId { get; set; } /// Target zone where the VM and its disks should be restored. public IList Zones { get; } /// Managed Identity information required to access customer storage account. - public IdentityInfo IdentityInfo { get; set; } + public BackupIdentityInfo IdentityInfo { get; set; } /// IaaS VM workload specific restore details for restores using managed identity. public IdentityBasedRestoreDetails IdentityBasedRestoreDetails { get; set; } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRestoreWithRehydrationRequest.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRestoreWithRehydrationContent.Serialization.cs similarity index 73% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRestoreWithRehydrationRequest.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRestoreWithRehydrationContent.Serialization.cs index 9a88671b61df5..4cbe4702394b4 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRestoreWithRehydrationRequest.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRestoreWithRehydrationContent.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class IaasVmRestoreWithRehydrationRequest : IUtf8JsonSerializable + public partial class IaasVmRestoreWithRehydrationContent : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -69,17 +69,17 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(Region)) { writer.WritePropertyName("region"u8); - writer.WriteStringValue(Region); + writer.WriteStringValue(Region.Value); } if (Optional.IsDefined(AffinityGroup)) { writer.WritePropertyName("affinityGroup"u8); writer.WriteStringValue(AffinityGroup); } - if (Optional.IsDefined(CreateNewCloudService)) + if (Optional.IsDefined(DoesCreateNewCloudService)) { writer.WritePropertyName("createNewCloudService"u8); - writer.WriteBooleanValue(CreateNewCloudService.Value); + writer.WriteBooleanValue(DoesCreateNewCloudService.Value); } if (Optional.IsDefined(OriginalStorageAccountOption)) { @@ -101,10 +101,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndArray(); } - if (Optional.IsDefined(RestoreWithManagedDisks)) + if (Optional.IsDefined(DoesRestoreWithManagedDisks)) { writer.WritePropertyName("restoreWithManagedDisks"u8); - writer.WriteBooleanValue(RestoreWithManagedDisks.Value); + writer.WriteBooleanValue(DoesRestoreWithManagedDisks.Value); } if (Optional.IsDefined(DiskEncryptionSetId)) { @@ -136,28 +136,28 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static IaasVmRestoreWithRehydrationRequest DeserializeIaasVmRestoreWithRehydrationRequest(JsonElement element) + internal static IaasVmRestoreWithRehydrationContent DeserializeIaasVmRestoreWithRehydrationContent(JsonElement element) { Optional recoveryPointRehydrationInfo = default; Optional recoveryPointId = default; - Optional recoveryType = default; - Optional sourceResourceId = default; - Optional targetVirtualMachineId = default; - Optional targetResourceGroupId = default; - Optional storageAccountId = default; - Optional virtualNetworkId = default; - Optional subnetId = default; - Optional targetDomainNameId = default; - Optional region = default; + Optional recoveryType = default; + Optional sourceResourceId = default; + Optional targetVirtualMachineId = default; + Optional targetResourceGroupId = default; + Optional storageAccountId = default; + Optional virtualNetworkId = default; + Optional subnetId = default; + Optional targetDomainNameId = default; + Optional region = default; Optional affinityGroup = default; Optional createNewCloudService = default; Optional originalStorageAccountOption = default; - Optional encryptionDetails = default; + Optional encryptionDetails = default; Optional> restoreDiskLunList = default; Optional restoreWithManagedDisks = default; Optional diskEncryptionSetId = default; Optional> zones = default; - Optional identityInfo = default; + Optional identityInfo = default; Optional identityBasedRestoreDetails = default; string objectType = default; foreach (var property in element.EnumerateObject()) @@ -184,47 +184,87 @@ internal static IaasVmRestoreWithRehydrationRequest DeserializeIaasVmRestoreWith property.ThrowNonNullablePropertyIsNull(); continue; } - recoveryType = new RecoveryType(property.Value.GetString()); + recoveryType = new FileShareRecoveryType(property.Value.GetString()); continue; } if (property.NameEquals("sourceResourceId"u8)) { - sourceResourceId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + sourceResourceId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("targetVirtualMachineId"u8)) { - targetVirtualMachineId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + targetVirtualMachineId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("targetResourceGroupId"u8)) { - targetResourceGroupId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + targetResourceGroupId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("storageAccountId"u8)) { - storageAccountId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + storageAccountId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("virtualNetworkId"u8)) { - virtualNetworkId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + virtualNetworkId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("subnetId"u8)) { - subnetId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + subnetId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("targetDomainNameId"u8)) { - targetDomainNameId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + targetDomainNameId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("region"u8)) { - region = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + region = new AzureLocation(property.Value.GetString()); continue; } if (property.NameEquals("affinityGroup"u8)) @@ -259,7 +299,7 @@ internal static IaasVmRestoreWithRehydrationRequest DeserializeIaasVmRestoreWith property.ThrowNonNullablePropertyIsNull(); continue; } - encryptionDetails = EncryptionDetails.DeserializeEncryptionDetails(property.Value); + encryptionDetails = VmEncryptionDetails.DeserializeVmEncryptionDetails(property.Value); continue; } if (property.NameEquals("restoreDiskLunList"u8)) @@ -314,7 +354,7 @@ internal static IaasVmRestoreWithRehydrationRequest DeserializeIaasVmRestoreWith property.ThrowNonNullablePropertyIsNull(); continue; } - identityInfo = IdentityInfo.DeserializeIdentityInfo(property.Value); + identityInfo = BackupIdentityInfo.DeserializeBackupIdentityInfo(property.Value); continue; } if (property.NameEquals("identityBasedRestoreDetails"u8)) @@ -333,7 +373,7 @@ internal static IaasVmRestoreWithRehydrationRequest DeserializeIaasVmRestoreWith continue; } } - return new IaasVmRestoreWithRehydrationRequest(objectType, recoveryPointId.Value, Optional.ToNullable(recoveryType), sourceResourceId.Value, targetVirtualMachineId.Value, targetResourceGroupId.Value, storageAccountId.Value, virtualNetworkId.Value, subnetId.Value, targetDomainNameId.Value, region.Value, affinityGroup.Value, Optional.ToNullable(createNewCloudService), Optional.ToNullable(originalStorageAccountOption), encryptionDetails.Value, Optional.ToList(restoreDiskLunList), Optional.ToNullable(restoreWithManagedDisks), diskEncryptionSetId.Value, Optional.ToList(zones), identityInfo.Value, identityBasedRestoreDetails.Value, recoveryPointRehydrationInfo.Value); + return new IaasVmRestoreWithRehydrationContent(objectType, recoveryPointId.Value, Optional.ToNullable(recoveryType), sourceResourceId.Value, targetVirtualMachineId.Value, targetResourceGroupId.Value, storageAccountId.Value, virtualNetworkId.Value, subnetId.Value, targetDomainNameId.Value, Optional.ToNullable(region), affinityGroup.Value, Optional.ToNullable(createNewCloudService), Optional.ToNullable(originalStorageAccountOption), encryptionDetails.Value, Optional.ToList(restoreDiskLunList), Optional.ToNullable(restoreWithManagedDisks), diskEncryptionSetId.Value, Optional.ToList(zones), identityInfo.Value, identityBasedRestoreDetails.Value, recoveryPointRehydrationInfo.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRestoreWithRehydrationRequest.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRestoreWithRehydrationContent.cs similarity index 71% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRestoreWithRehydrationRequest.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRestoreWithRehydrationContent.cs index dc9a547972318..f7a892c779f6d 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRestoreWithRehydrationRequest.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRestoreWithRehydrationContent.cs @@ -6,19 +6,20 @@ #nullable disable using System.Collections.Generic; +using Azure.Core; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// IaaS VM workload-specific restore with integrated rehydration of recovery point. - public partial class IaasVmRestoreWithRehydrationRequest : IaasVmRestoreRequest + public partial class IaasVmRestoreWithRehydrationContent : IaasVmRestoreContent { - /// Initializes a new instance of IaasVmRestoreWithRehydrationRequest. - public IaasVmRestoreWithRehydrationRequest() + /// Initializes a new instance of IaasVmRestoreWithRehydrationContent. + public IaasVmRestoreWithRehydrationContent() { ObjectType = "IaasVMRestoreWithRehydrationRequest"; } - /// Initializes a new instance of IaasVmRestoreWithRehydrationRequest. + /// Initializes a new instance of IaasVmRestoreWithRehydrationContent. /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. /// ID of the backup copy to be recovered. /// Type of this recovery. @@ -47,20 +48,20 @@ public IaasVmRestoreWithRehydrationRequest() /// /// Region in which the virtual machine is restored. /// Affinity group associated to VM to be restored. Used only for Classic Compute Virtual Machines. - /// + /// /// Should a new cloud service be created while restoring the VM. If this is false, VM will be restored to the same /// cloud service as it was at the time of backup. /// /// Original Storage Account Option. /// Details needed if the VM was encrypted at the time of backup. /// List of Disk LUNs for partial restore. - /// Flag to denote of an Unmanaged disk VM should be restored with Managed disks. + /// Flag to denote of an Unmanaged disk VM should be restored with Managed disks. /// DiskEncryptionSet's ID - needed if the VM needs to be encrypted at rest during restore with customer managed key. /// Target zone where the VM and its disks should be restored. /// Managed Identity information required to access customer storage account. /// IaaS VM workload specific restore details for restores using managed identity. /// RP Rehydration Info. - internal IaasVmRestoreWithRehydrationRequest(string objectType, string recoveryPointId, RecoveryType? recoveryType, string sourceResourceId, string targetVirtualMachineId, string targetResourceGroupId, string storageAccountId, string virtualNetworkId, string subnetId, string targetDomainNameId, string region, string affinityGroup, bool? createNewCloudService, bool? originalStorageAccountOption, EncryptionDetails encryptionDetails, IList restoreDiskLunList, bool? restoreWithManagedDisks, string diskEncryptionSetId, IList zones, IdentityInfo identityInfo, IdentityBasedRestoreDetails identityBasedRestoreDetails, RecoveryPointRehydrationInfo recoveryPointRehydrationInfo) : base(objectType, recoveryPointId, recoveryType, sourceResourceId, targetVirtualMachineId, targetResourceGroupId, storageAccountId, virtualNetworkId, subnetId, targetDomainNameId, region, affinityGroup, createNewCloudService, originalStorageAccountOption, encryptionDetails, restoreDiskLunList, restoreWithManagedDisks, diskEncryptionSetId, zones, identityInfo, identityBasedRestoreDetails) + internal IaasVmRestoreWithRehydrationContent(string objectType, string recoveryPointId, FileShareRecoveryType? recoveryType, ResourceIdentifier sourceResourceId, ResourceIdentifier targetVirtualMachineId, ResourceIdentifier targetResourceGroupId, ResourceIdentifier storageAccountId, ResourceIdentifier virtualNetworkId, ResourceIdentifier subnetId, ResourceIdentifier targetDomainNameId, AzureLocation? region, string affinityGroup, bool? doesCreateNewCloudService, bool? originalStorageAccountOption, VmEncryptionDetails encryptionDetails, IList restoreDiskLunList, bool? doesRestoreWithManagedDisks, string diskEncryptionSetId, IList zones, BackupIdentityInfo identityInfo, IdentityBasedRestoreDetails identityBasedRestoreDetails, RecoveryPointRehydrationInfo recoveryPointRehydrationInfo) : base(objectType, recoveryPointId, recoveryType, sourceResourceId, targetVirtualMachineId, targetResourceGroupId, storageAccountId, virtualNetworkId, subnetId, targetDomainNameId, region, affinityGroup, doesCreateNewCloudService, originalStorageAccountOption, encryptionDetails, restoreDiskLunList, doesRestoreWithManagedDisks, diskEncryptionSetId, zones, identityInfo, identityBasedRestoreDetails) { RecoveryPointRehydrationInfo = recoveryPointRehydrationInfo; ObjectType = objectType ?? "IaasVMRestoreWithRehydrationRequest"; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IdentityBasedRestoreDetails.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IdentityBasedRestoreDetails.Serialization.cs index 5a11374f1e86d..099f38b6f64db 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IdentityBasedRestoreDetails.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IdentityBasedRestoreDetails.Serialization.cs @@ -31,7 +31,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) internal static IdentityBasedRestoreDetails DeserializeIdentityBasedRestoreDetails(JsonElement element) { Optional objectType = default; - Optional targetStorageAccountId = default; + Optional targetStorageAccountId = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("objectType"u8)) @@ -41,7 +41,12 @@ internal static IdentityBasedRestoreDetails DeserializeIdentityBasedRestoreDetai } if (property.NameEquals("targetStorageAccountId"u8)) { - targetStorageAccountId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + targetStorageAccountId = new ResourceIdentifier(property.Value.GetString()); continue; } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IdentityBasedRestoreDetails.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IdentityBasedRestoreDetails.cs index d2aa0a1562e78..9c5c664ab3f4b 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IdentityBasedRestoreDetails.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IdentityBasedRestoreDetails.cs @@ -5,6 +5,8 @@ #nullable disable +using Azure.Core; + namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// IaaS VM workload specific restore details for restores using managed identity. @@ -18,7 +20,7 @@ public IdentityBasedRestoreDetails() /// Initializes a new instance of IdentityBasedRestoreDetails. /// Gets the class type. /// Fully qualified ARM ID of the target storage account. - internal IdentityBasedRestoreDetails(string objectType, string targetStorageAccountId) + internal IdentityBasedRestoreDetails(string objectType, ResourceIdentifier targetStorageAccountId) { ObjectType = objectType; TargetStorageAccountId = targetStorageAccountId; @@ -27,6 +29,6 @@ internal IdentityBasedRestoreDetails(string objectType, string targetStorageAcco /// Gets the class type. public string ObjectType { get; set; } /// Fully qualified ARM ID of the target storage account. - public string TargetStorageAccountId { get; set; } + public ResourceIdentifier TargetStorageAccountId { get; set; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ILRRequest.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IlrContent.Serialization.cs similarity index 71% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ILRRequest.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IlrContent.Serialization.cs index bf09756431ec9..d4143d4ea9da1 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ILRRequest.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IlrContent.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class ILRRequest : IUtf8JsonSerializable + public partial class IlrContent : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -20,17 +20,17 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static ILRRequest DeserializeILRRequest(JsonElement element) + internal static IlrContent DeserializeIlrContent(JsonElement element) { if (element.TryGetProperty("objectType", out JsonElement discriminator)) { switch (discriminator.GetString()) { - case "AzureFileShareProvisionILRRequest": return AzureFileShareProvisionILRRequest.DeserializeAzureFileShareProvisionILRRequest(element); - case "IaasVMILRRegistrationRequest": return IaasVmilrRegistrationRequest.DeserializeIaasVmilrRegistrationRequest(element); + case "AzureFileShareProvisionILRRequest": return FileShareProvisionIlrContent.DeserializeFileShareProvisionIlrContent(element); + case "IaasVMILRRegistrationRequest": return IaasVmIlrRegistrationContent.DeserializeIaasVmIlrRegistrationContent(element); } } - return UnknownILRRequest.DeserializeUnknownILRRequest(element); + return UnknownIlrRequest.DeserializeUnknownIlrRequest(element); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ILRRequest.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IlrContent.cs similarity index 66% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ILRRequest.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IlrContent.cs index 9d5550972a4db..16e1a53e29765 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ILRRequest.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IlrContent.cs @@ -9,19 +9,19 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// /// Parameters to Provision ILR API. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . /// - public abstract partial class ILRRequest + public abstract partial class IlrContent { - /// Initializes a new instance of ILRRequest. - protected ILRRequest() + /// Initializes a new instance of IlrContent. + protected IlrContent() { } - /// Initializes a new instance of ILRRequest. + /// Initializes a new instance of IlrContent. /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. - internal ILRRequest(string objectType) + internal IlrContent(string objectType) { ObjectType = objectType; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/InquiryValidation.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/InquiryValidation.Serialization.cs index fe45e870a1fcd..dadb4cf0c8520 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/InquiryValidation.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/InquiryValidation.Serialization.cs @@ -31,7 +31,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) internal static InquiryValidation DeserializeInquiryValidation(JsonElement element) { Optional status = default; - Optional errorDetail = default; + Optional errorDetail = default; Optional additionalDetail = default; foreach (var property in element.EnumerateObject()) { @@ -47,7 +47,7 @@ internal static InquiryValidation DeserializeInquiryValidation(JsonElement eleme property.ThrowNonNullablePropertyIsNull(); continue; } - errorDetail = ErrorDetail.DeserializeErrorDetail(property.Value); + errorDetail = BackupErrorDetail.DeserializeBackupErrorDetail(property.Value); continue; } if (property.NameEquals("additionalDetail"u8)) diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/InquiryValidation.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/InquiryValidation.cs index 6c61f54af7cf1..baba3bcd03cb3 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/InquiryValidation.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/InquiryValidation.cs @@ -19,7 +19,7 @@ public InquiryValidation() /// Status for the Inquiry Validation. /// Error Detail in case the status is non-success. /// Error Additional Detail in case the status is non-success. - internal InquiryValidation(string status, ErrorDetail errorDetail, string additionalDetail) + internal InquiryValidation(string status, BackupErrorDetail errorDetail, string additionalDetail) { Status = status; ErrorDetail = errorDetail; @@ -29,7 +29,7 @@ internal InquiryValidation(string status, ErrorDetail errorDetail, string additi /// Status for the Inquiry Validation. public string Status { get; set; } /// Error Detail in case the status is non-success. - public ErrorDetail ErrorDetail { get; set; } + public BackupErrorDetail ErrorDetail { get; set; } /// Error Additional Detail in case the status is non-success. public string AdditionalDetail { get; } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/InstantItemRecoveryTarget.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/InstantItemRecoveryTarget.Serialization.cs deleted file mode 100644 index 3f47553393e76..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/InstantItemRecoveryTarget.Serialization.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - internal partial class InstantItemRecoveryTarget - { - internal static InstantItemRecoveryTarget DeserializeInstantItemRecoveryTarget(JsonElement element) - { - Optional> clientScripts = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("clientScripts"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - List array = new List(); - foreach (var item in property.Value.EnumerateArray()) - { - array.Add(ClientScriptForConnect.DeserializeClientScriptForConnect(item)); - } - clientScripts = array; - continue; - } - } - return new InstantItemRecoveryTarget(Optional.ToList(clientScripts)); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/InstantItemRecoveryTarget.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/InstantItemRecoveryTarget.cs deleted file mode 100644 index cdd8cda60807e..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/InstantItemRecoveryTarget.cs +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using Azure.Core; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - /// Target details for file / folder restore. - internal partial class InstantItemRecoveryTarget - { - /// Initializes a new instance of InstantItemRecoveryTarget. - internal InstantItemRecoveryTarget() - { - ClientScripts = new ChangeTrackingList(); - } - - /// Initializes a new instance of InstantItemRecoveryTarget. - /// List of client scripts. - internal InstantItemRecoveryTarget(IReadOnlyList clientScripts) - { - ClientScripts = clientScripts; - } - - /// List of client scripts. - public IReadOnlyList ClientScripts { get; } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/KEKDetails.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/KekDetails.Serialization.cs similarity index 77% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/KEKDetails.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/KekDetails.Serialization.cs index 283b25a46f605..a16dd102b2a50 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/KEKDetails.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/KekDetails.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class KEKDetails : IUtf8JsonSerializable + public partial class KekDetails : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -34,10 +34,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static KEKDetails DeserializeKEKDetails(JsonElement element) + internal static KekDetails DeserializeKekDetails(JsonElement element) { Optional keyUrl = default; - Optional keyVaultId = default; + Optional keyVaultId = default; Optional keyBackupData = default; foreach (var property in element.EnumerateObject()) { @@ -53,7 +53,12 @@ internal static KEKDetails DeserializeKEKDetails(JsonElement element) } if (property.NameEquals("keyVaultId"u8)) { - keyVaultId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + keyVaultId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("keyBackupData"u8)) @@ -62,7 +67,7 @@ internal static KEKDetails DeserializeKEKDetails(JsonElement element) continue; } } - return new KEKDetails(keyUrl.Value, keyVaultId.Value, keyBackupData.Value); + return new KekDetails(keyUrl.Value, keyVaultId.Value, keyBackupData.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/KEKDetails.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/KekDetails.cs similarity index 71% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/KEKDetails.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/KekDetails.cs index 445bba224ab64..b7aa3d5871ddb 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/KEKDetails.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/KekDetails.cs @@ -6,22 +6,23 @@ #nullable disable using System; +using Azure.Core; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// KEK is encryption key for BEK. - public partial class KEKDetails + public partial class KekDetails { - /// Initializes a new instance of KEKDetails. - public KEKDetails() + /// Initializes a new instance of KekDetails. + public KekDetails() { } - /// Initializes a new instance of KEKDetails. + /// Initializes a new instance of KekDetails. /// Key is KEK. /// Key Vault ID where this Key is stored. /// KEK data. - internal KEKDetails(Uri keyUri, string keyVaultId, string keyBackupData) + internal KekDetails(Uri keyUri, ResourceIdentifier keyVaultId, string keyBackupData) { KeyUri = keyUri; KeyVaultId = keyVaultId; @@ -31,7 +32,7 @@ internal KEKDetails(Uri keyUri, string keyVaultId, string keyBackupData) /// Key is KEK. public Uri KeyUri { get; set; } /// Key Vault ID where this Key is stored. - public string KeyVaultId { get; set; } + public ResourceIdentifier KeyVaultId { get; set; } /// KEK data. public string KeyBackupData { get; set; } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/KeyAndSecretDetails.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/KeyAndSecretDetails.Serialization.cs index 11aafa1ab45d5..e8ea383e80ebc 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/KeyAndSecretDetails.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/KeyAndSecretDetails.Serialization.cs @@ -35,8 +35,8 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) internal static KeyAndSecretDetails DeserializeKeyAndSecretDetails(JsonElement element) { - Optional kekDetails = default; - Optional bekDetails = default; + Optional kekDetails = default; + Optional bekDetails = default; Optional encryptionMechanism = default; foreach (var property in element.EnumerateObject()) { @@ -47,7 +47,7 @@ internal static KeyAndSecretDetails DeserializeKeyAndSecretDetails(JsonElement e property.ThrowNonNullablePropertyIsNull(); continue; } - kekDetails = KEKDetails.DeserializeKEKDetails(property.Value); + kekDetails = KekDetails.DeserializeKekDetails(property.Value); continue; } if (property.NameEquals("bekDetails"u8)) @@ -57,7 +57,7 @@ internal static KeyAndSecretDetails DeserializeKeyAndSecretDetails(JsonElement e property.ThrowNonNullablePropertyIsNull(); continue; } - bekDetails = BEKDetails.DeserializeBEKDetails(property.Value); + bekDetails = BekDetails.DeserializeBekDetails(property.Value); continue; } if (property.NameEquals("encryptionMechanism"u8)) diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/KeyAndSecretDetails.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/KeyAndSecretDetails.cs index 50baa446e344d..87132c1c64685 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/KeyAndSecretDetails.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/KeyAndSecretDetails.cs @@ -27,7 +27,7 @@ public KeyAndSecretDetails() /// KEK is encryption key for BEK. /// BEK is bitlocker encryption key. /// Encryption mechanism: None/ SinglePass/ DoublePass. - internal KeyAndSecretDetails(KEKDetails kekDetails, BEKDetails bekDetails, string encryptionMechanism) + internal KeyAndSecretDetails(KekDetails kekDetails, BekDetails bekDetails, string encryptionMechanism) { KekDetails = kekDetails; BekDetails = bekDetails; @@ -35,9 +35,9 @@ internal KeyAndSecretDetails(KEKDetails kekDetails, BEKDetails bekDetails, strin } /// KEK is encryption key for BEK. - public KEKDetails KekDetails { get; set; } + public KekDetails KekDetails { get; set; } /// BEK is bitlocker encryption key. - public BEKDetails BekDetails { get; set; } + public BekDetails BekDetails { get; set; } /// Encryption mechanism: None/ SinglePass/ DoublePass. public string EncryptionMechanism { get; set; } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/KPIResourceHealthDetails.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/KpiResourceHealthDetails.Serialization.cs similarity index 93% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/KPIResourceHealthDetails.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/KpiResourceHealthDetails.Serialization.cs index 79e05063a4d0e..22ce8176c72a9 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/KPIResourceHealthDetails.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/KpiResourceHealthDetails.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class KPIResourceHealthDetails : IUtf8JsonSerializable + public partial class KpiResourceHealthDetails : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -34,7 +34,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static KPIResourceHealthDetails DeserializeKPIResourceHealthDetails(JsonElement element) + internal static KpiResourceHealthDetails DeserializeKpiResourceHealthDetails(JsonElement element) { Optional resourceHealthStatus = default; Optional> resourceHealthDetails = default; @@ -66,7 +66,7 @@ internal static KPIResourceHealthDetails DeserializeKPIResourceHealthDetails(Jso continue; } } - return new KPIResourceHealthDetails(Optional.ToNullable(resourceHealthStatus), Optional.ToList(resourceHealthDetails)); + return new KpiResourceHealthDetails(Optional.ToNullable(resourceHealthStatus), Optional.ToList(resourceHealthDetails)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/KPIResourceHealthDetails.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/KpiResourceHealthDetails.cs similarity index 79% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/KPIResourceHealthDetails.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/KpiResourceHealthDetails.cs index 4d6805071fca5..6aa8e4c4f7d21 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/KPIResourceHealthDetails.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/KpiResourceHealthDetails.cs @@ -11,18 +11,18 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// KPI Resource Health Details. - public partial class KPIResourceHealthDetails + public partial class KpiResourceHealthDetails { - /// Initializes a new instance of KPIResourceHealthDetails. - public KPIResourceHealthDetails() + /// Initializes a new instance of KpiResourceHealthDetails. + public KpiResourceHealthDetails() { ResourceHealthDetails = new ChangeTrackingList(); } - /// Initializes a new instance of KPIResourceHealthDetails. + /// Initializes a new instance of KpiResourceHealthDetails. /// Resource Health Status. /// Resource Health Status. - internal KPIResourceHealthDetails(ResourceHealthStatus? resourceHealthStatus, IList resourceHealthDetails) + internal KpiResourceHealthDetails(ResourceHealthStatus? resourceHealthStatus, IList resourceHealthDetails) { ResourceHealthStatus = resourceHealthStatus; ResourceHealthDetails = resourceHealthDetails; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/LogSchedulePolicy.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/LogSchedulePolicy.cs index e77e83e75262c..5aa1f9789d5bf 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/LogSchedulePolicy.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/LogSchedulePolicy.cs @@ -8,7 +8,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Log policy schedule. - public partial class LogSchedulePolicy : SchedulePolicy + public partial class LogSchedulePolicy : BackupSchedulePolicy { /// Initializes a new instance of LogSchedulePolicy. public LogSchedulePolicy() diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/LongTermRetentionPolicy.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/LongTermRetentionPolicy.cs index 1d17ec83708c3..89550369ab3a7 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/LongTermRetentionPolicy.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/LongTermRetentionPolicy.cs @@ -8,7 +8,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Long term retention policy. - public partial class LongTermRetentionPolicy : RetentionPolicy + public partial class LongTermRetentionPolicy : BackupRetentionPolicy { /// Initializes a new instance of LongTermRetentionPolicy. public LongTermRetentionPolicy() diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/LongTermSchedulePolicy.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/LongTermSchedulePolicy.cs index 8010ea79c8ef7..79c6f5ff76917 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/LongTermSchedulePolicy.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/LongTermSchedulePolicy.cs @@ -8,7 +8,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Long term policy schedule. - public partial class LongTermSchedulePolicy : SchedulePolicy + public partial class LongTermSchedulePolicy : BackupSchedulePolicy { /// Initializes a new instance of LongTermSchedulePolicy. public LongTermSchedulePolicy() diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabJob.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabBackupJob.Serialization.cs similarity index 91% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabJob.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabBackupJob.Serialization.cs index e793cbb19a848..be53010223855 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabJob.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabBackupJob.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class MabJob : IUtf8JsonSerializable + public partial class MabBackupJob : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -102,15 +102,15 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static MabJob DeserializeMabJob(JsonElement element) + internal static MabBackupJob DeserializeMabBackupJob(JsonElement element) { Optional duration = default; Optional> actionsInfo = default; Optional mabServerName = default; Optional mabServerType = default; - Optional workloadType = default; + Optional workloadType = default; Optional> errorDetails = default; - Optional extendedInfo = default; + Optional extendedInfo = default; Optional entityFriendlyName = default; Optional backupManagementType = default; Optional operation = default; @@ -168,7 +168,7 @@ internal static MabJob DeserializeMabJob(JsonElement element) property.ThrowNonNullablePropertyIsNull(); continue; } - workloadType = new WorkloadType(property.Value.GetString()); + workloadType = new BackupWorkloadType(property.Value.GetString()); continue; } if (property.NameEquals("errorDetails"u8)) @@ -193,7 +193,7 @@ internal static MabJob DeserializeMabJob(JsonElement element) property.ThrowNonNullablePropertyIsNull(); continue; } - extendedInfo = MabJobExtendedInfo.DeserializeMabJobExtendedInfo(property.Value); + extendedInfo = MabBackupJobExtendedInfo.DeserializeMabBackupJobExtendedInfo(property.Value); continue; } if (property.NameEquals("entityFriendlyName"u8)) @@ -252,7 +252,7 @@ internal static MabJob DeserializeMabJob(JsonElement element) continue; } } - return new MabJob(entityFriendlyName.Value, Optional.ToNullable(backupManagementType), operation.Value, status.Value, Optional.ToNullable(startTime), Optional.ToNullable(endTime), activityId.Value, jobType, Optional.ToNullable(duration), Optional.ToList(actionsInfo), mabServerName.Value, Optional.ToNullable(mabServerType), Optional.ToNullable(workloadType), Optional.ToList(errorDetails), extendedInfo.Value); + return new MabBackupJob(entityFriendlyName.Value, Optional.ToNullable(backupManagementType), operation.Value, status.Value, Optional.ToNullable(startTime), Optional.ToNullable(endTime), activityId.Value, jobType, Optional.ToNullable(duration), Optional.ToList(actionsInfo), mabServerName.Value, Optional.ToNullable(mabServerType), Optional.ToNullable(workloadType), Optional.ToList(errorDetails), extendedInfo.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabJob.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabBackupJob.cs similarity index 75% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabJob.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabBackupJob.cs index 6bc1ca62b3dc7..25b3177c38823 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabJob.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabBackupJob.cs @@ -12,17 +12,17 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// MAB workload-specific job. - public partial class MabJob : Job + public partial class MabBackupJob : BackupGenericJob { - /// Initializes a new instance of MabJob. - public MabJob() + /// Initializes a new instance of MabBackupJob. + public MabBackupJob() { ActionsInfo = new ChangeTrackingList(); ErrorDetails = new ChangeTrackingList(); JobType = "MabJob"; } - /// Initializes a new instance of MabJob. + /// Initializes a new instance of MabBackupJob. /// Friendly name of the entity on which the current job is executing. /// Backup management type to execute the current job. /// The operation name. @@ -38,7 +38,7 @@ public MabJob() /// Workload type of backup item. /// The errors. /// Additional information on the job. - internal MabJob(string entityFriendlyName, BackupManagementType? backupManagementType, string operation, string status, DateTimeOffset? startOn, DateTimeOffset? endOn, string activityId, string jobType, TimeSpan? duration, IList actionsInfo, string mabServerName, MabServerType? mabServerType, WorkloadType? workloadType, IList errorDetails, MabJobExtendedInfo extendedInfo) : base(entityFriendlyName, backupManagementType, operation, status, startOn, endOn, activityId, jobType) + internal MabBackupJob(string entityFriendlyName, BackupManagementType? backupManagementType, string operation, string status, DateTimeOffset? startOn, DateTimeOffset? endOn, string activityId, string jobType, TimeSpan? duration, IList actionsInfo, string mabServerName, MabServerType? mabServerType, BackupWorkloadType? workloadType, IList errorDetails, MabBackupJobExtendedInfo extendedInfo) : base(entityFriendlyName, backupManagementType, operation, status, startOn, endOn, activityId, jobType) { Duration = duration; ActionsInfo = actionsInfo; @@ -59,10 +59,10 @@ internal MabJob(string entityFriendlyName, BackupManagementType? backupManagemen /// Server type of MAB container. public MabServerType? MabServerType { get; set; } /// Workload type of backup item. - public WorkloadType? WorkloadType { get; set; } + public BackupWorkloadType? WorkloadType { get; set; } /// The errors. public IList ErrorDetails { get; } /// Additional information on the job. - public MabJobExtendedInfo ExtendedInfo { get; set; } + public MabBackupJobExtendedInfo ExtendedInfo { get; set; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmJobExtendedInfo.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabBackupJobExtendedInfo.Serialization.cs similarity index 83% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmJobExtendedInfo.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabBackupJobExtendedInfo.Serialization.cs index 88a9c9030f525..b677142146b82 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/DpmJobExtendedInfo.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabBackupJobExtendedInfo.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class DpmJobExtendedInfo : IUtf8JsonSerializable + public partial class MabBackupJobExtendedInfo : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -45,9 +45,9 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static DpmJobExtendedInfo DeserializeDpmJobExtendedInfo(JsonElement element) + internal static MabBackupJobExtendedInfo DeserializeMabBackupJobExtendedInfo(JsonElement element) { - Optional> tasksList = default; + Optional> tasksList = default; Optional> propertyBag = default; Optional dynamicErrorMessage = default; foreach (var property in element.EnumerateObject()) @@ -59,10 +59,10 @@ internal static DpmJobExtendedInfo DeserializeDpmJobExtendedInfo(JsonElement ele property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(DpmJobTaskDetails.DeserializeDpmJobTaskDetails(item)); + array.Add(MabBackupJobTaskDetails.DeserializeMabBackupJobTaskDetails(item)); } tasksList = array; continue; @@ -88,7 +88,7 @@ internal static DpmJobExtendedInfo DeserializeDpmJobExtendedInfo(JsonElement ele continue; } } - return new DpmJobExtendedInfo(Optional.ToList(tasksList), Optional.ToDictionary(propertyBag), dynamicErrorMessage.Value); + return new MabBackupJobExtendedInfo(Optional.ToList(tasksList), Optional.ToDictionary(propertyBag), dynamicErrorMessage.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabJobExtendedInfo.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabBackupJobExtendedInfo.cs similarity index 67% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabJobExtendedInfo.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabBackupJobExtendedInfo.cs index 20d449c9d75ae..294db69cfdf52 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabJobExtendedInfo.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabBackupJobExtendedInfo.cs @@ -11,20 +11,20 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Additional information for the MAB workload-specific job. - public partial class MabJobExtendedInfo + public partial class MabBackupJobExtendedInfo { - /// Initializes a new instance of MabJobExtendedInfo. - public MabJobExtendedInfo() + /// Initializes a new instance of MabBackupJobExtendedInfo. + public MabBackupJobExtendedInfo() { - TasksList = new ChangeTrackingList(); + TasksList = new ChangeTrackingList(); PropertyBag = new ChangeTrackingDictionary(); } - /// Initializes a new instance of MabJobExtendedInfo. + /// Initializes a new instance of MabBackupJobExtendedInfo. /// List of tasks for this job. /// The job properties. /// Non localized error message specific to this job. - internal MabJobExtendedInfo(IList tasksList, IDictionary propertyBag, string dynamicErrorMessage) + internal MabBackupJobExtendedInfo(IList tasksList, IDictionary propertyBag, string dynamicErrorMessage) { TasksList = tasksList; PropertyBag = propertyBag; @@ -32,7 +32,7 @@ internal MabJobExtendedInfo(IList tasksList, IDictionary List of tasks for this job. - public IList TasksList { get; } + public IList TasksList { get; } /// The job properties. public IDictionary PropertyBag { get; } /// Non localized error message specific to this job. diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabJobTaskDetails.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabBackupJobTaskDetails.Serialization.cs similarity index 90% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabJobTaskDetails.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabBackupJobTaskDetails.Serialization.cs index 35ed73d594cbe..7b55f5ed76a4a 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabJobTaskDetails.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabBackupJobTaskDetails.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class MabJobTaskDetails : IUtf8JsonSerializable + public partial class MabBackupJobTaskDetails : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -44,7 +44,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static MabJobTaskDetails DeserializeMabJobTaskDetails(JsonElement element) + internal static MabBackupJobTaskDetails DeserializeMabBackupJobTaskDetails(JsonElement element) { Optional taskId = default; Optional startTime = default; @@ -94,7 +94,7 @@ internal static MabJobTaskDetails DeserializeMabJobTaskDetails(JsonElement eleme continue; } } - return new MabJobTaskDetails(taskId.Value, Optional.ToNullable(startTime), Optional.ToNullable(endTime), Optional.ToNullable(duration), status.Value); + return new MabBackupJobTaskDetails(taskId.Value, Optional.ToNullable(startTime), Optional.ToNullable(endTime), Optional.ToNullable(duration), status.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabJobTaskDetails.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabBackupJobTaskDetails.cs similarity index 76% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabJobTaskDetails.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabBackupJobTaskDetails.cs index 48f0bc2d3344d..20d6695a244f4 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabJobTaskDetails.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabBackupJobTaskDetails.cs @@ -10,20 +10,20 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// MAB workload-specific job task details. - public partial class MabJobTaskDetails + public partial class MabBackupJobTaskDetails { - /// Initializes a new instance of MabJobTaskDetails. - public MabJobTaskDetails() + /// Initializes a new instance of MabBackupJobTaskDetails. + public MabBackupJobTaskDetails() { } - /// Initializes a new instance of MabJobTaskDetails. + /// Initializes a new instance of MabBackupJobTaskDetails. /// The task display name. /// The start time. /// The end time. /// Time elapsed for task. /// The status. - internal MabJobTaskDetails(string taskId, DateTimeOffset? startOn, DateTimeOffset? endOn, TimeSpan? duration, string status) + internal MabBackupJobTaskDetails(string taskId, DateTimeOffset? startOn, DateTimeOffset? endOn, TimeSpan? duration, string status) { TaskId = taskId; StartOn = startOn; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabContainer.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabContainer.cs index e583d928eb7b9..2fc8b8287b9a4 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabContainer.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabContainer.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Container with items backed up using MAB backup engine. - public partial class MabContainer : ProtectionContainer + public partial class MabContainer : BackupGenericProtectionContainer { /// Initializes a new instance of MabContainer. public MabContainer() diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabFileFolderProtectedItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabFileFolderProtectedItem.Serialization.cs index 8ea9f0f8f35e9..a07b424bec884 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabFileFolderProtectedItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabFileFolderProtectedItem.Serialization.cs @@ -69,10 +69,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("policyId"u8); writer.WriteStringValue(PolicyId); } - if (Optional.IsDefined(LastRecoveryPoint)) + if (Optional.IsDefined(LastRecoverOn)) { writer.WritePropertyName("lastRecoveryPoint"u8); - writer.WriteStringValue(LastRecoveryPoint.Value, "O"); + writer.WriteStringValue(LastRecoverOn.Value, "O"); } if (Optional.IsDefined(BackupSetName)) { @@ -84,10 +84,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("createMode"u8); writer.WriteStringValue(CreateMode.Value.ToString()); } - if (Optional.IsDefined(DeferredDeleteTimeInUTC)) + if (Optional.IsDefined(DeferredDeletedOn)) { writer.WritePropertyName("deferredDeleteTimeInUTC"u8); - writer.WriteStringValue(DeferredDeleteTimeInUTC.Value, "O"); + writer.WriteStringValue(DeferredDeletedOn.Value, "O"); } if (Optional.IsDefined(IsScheduledForDeferredDelete)) { @@ -148,13 +148,13 @@ internal static MabFileFolderProtectedItem DeserializeMabFileFolderProtectedItem Optional extendedInfo = default; string protectedItemType = default; Optional backupManagementType = default; - Optional workloadType = default; + Optional workloadType = default; Optional containerName = default; - Optional sourceResourceId = default; - Optional policyId = default; + Optional sourceResourceId = default; + Optional policyId = default; Optional lastRecoveryPoint = default; Optional backupSetName = default; - Optional createMode = default; + Optional createMode = default; Optional deferredDeleteTimeInUTC = default; Optional isScheduledForDeferredDelete = default; Optional deferredDeleteTimeRemaining = default; @@ -238,7 +238,7 @@ internal static MabFileFolderProtectedItem DeserializeMabFileFolderProtectedItem property.ThrowNonNullablePropertyIsNull(); continue; } - workloadType = new DataSourceType(property.Value.GetString()); + workloadType = new BackupDataSourceType(property.Value.GetString()); continue; } if (property.NameEquals("containerName"u8)) @@ -248,12 +248,22 @@ internal static MabFileFolderProtectedItem DeserializeMabFileFolderProtectedItem } if (property.NameEquals("sourceResourceId"u8)) { - sourceResourceId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + sourceResourceId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("policyId"u8)) { - policyId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + policyId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("lastRecoveryPoint"u8)) @@ -278,7 +288,7 @@ internal static MabFileFolderProtectedItem DeserializeMabFileFolderProtectedItem property.ThrowNonNullablePropertyIsNull(); continue; } - createMode = new CreateMode(property.Value.GetString()); + createMode = new BackupCreateMode(property.Value.GetString()); continue; } if (property.NameEquals("deferredDeleteTimeInUTC"u8)) diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabFileFolderProtectedItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabFileFolderProtectedItem.cs index 7d7f8f65e2cb6..f4f74b5739bce 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabFileFolderProtectedItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabFileFolderProtectedItem.cs @@ -7,11 +7,12 @@ using System; using System.Collections.Generic; +using Azure.Core; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// MAB workload-specific backup item. - public partial class MabFileFolderProtectedItem : ProtectedItem + public partial class MabFileFolderProtectedItem : BackupGenericProtectedItem { /// Initializes a new instance of MabFileFolderProtectedItem. public MabFileFolderProtectedItem() @@ -26,10 +27,10 @@ public MabFileFolderProtectedItem() /// Unique name of container. /// ARM ID of the resource to be backed up. /// ID of the backup policy with which this item is backed up. - /// Timestamp when the last (latest) backup copy was created for this backup item. + /// Timestamp when the last (latest) backup copy was created for this backup item. /// Name of the backup set the backup item belongs to. /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. - /// Time for deferred deletion in UTC. + /// Time for deferred deletion in UTC. /// Flag to identify whether the DS is scheduled for deferred delete. /// Time remaining before the DS marked for deferred delete is permanently deleted. /// Flag to identify whether the deferred deleted DS is to be purged soon. @@ -45,7 +46,7 @@ public MabFileFolderProtectedItem() /// Protected, ProtectionStopped, IRPending or ProtectionError. /// Sync time for deferred deletion in UTC. /// Additional information with this backup item. - internal MabFileFolderProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, DataSourceType? workloadType, string containerName, string sourceResourceId, string policyId, DateTimeOffset? lastRecoveryPoint, string backupSetName, CreateMode? createMode, DateTimeOffset? deferredDeleteTimeInUTC, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriod, string friendlyName, string computerName, string lastBackupStatus, DateTimeOffset? lastBackupOn, string protectionState, long? deferredDeleteSyncTimeInUTC, MabFileFolderProtectedItemExtendedInfo extendedInfo) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, deferredDeleteTimeInUTC, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriod) + internal MabFileFolderProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, ResourceIdentifier policyId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriod, string friendlyName, string computerName, string lastBackupStatus, DateTimeOffset? lastBackupOn, string protectionState, long? deferredDeleteSyncTimeInUTC, MabFileFolderProtectedItemExtendedInfo extendedInfo) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriod) { FriendlyName = friendlyName; ComputerName = computerName; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabFileFolderProtectedItemExtendedInfo.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabFileFolderProtectedItemExtendedInfo.Serialization.cs index 8981b14409426..ff3fc3287fad5 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabFileFolderProtectedItemExtendedInfo.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabFileFolderProtectedItemExtendedInfo.Serialization.cs @@ -21,10 +21,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("lastRefreshedAt"u8); writer.WriteStringValue(LastRefreshedOn.Value, "O"); } - if (Optional.IsDefined(OldestRecoveryPoint)) + if (Optional.IsDefined(OldestRecoverOn)) { writer.WritePropertyName("oldestRecoveryPoint"u8); - writer.WriteStringValue(OldestRecoveryPoint.Value, "O"); + writer.WriteStringValue(OldestRecoverOn.Value, "O"); } if (Optional.IsDefined(RecoveryPointCount)) { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabFileFolderProtectedItemExtendedInfo.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabFileFolderProtectedItemExtendedInfo.cs index be03003a57df0..f00aced94dbcc 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabFileFolderProtectedItemExtendedInfo.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabFileFolderProtectedItemExtendedInfo.cs @@ -19,19 +19,19 @@ public MabFileFolderProtectedItemExtendedInfo() /// Initializes a new instance of MabFileFolderProtectedItemExtendedInfo. /// Last time when the agent data synced to service. - /// The oldest backup copy available. + /// The oldest backup copy available. /// Number of backup copies associated with the backup item. - internal MabFileFolderProtectedItemExtendedInfo(DateTimeOffset? lastRefreshedOn, DateTimeOffset? oldestRecoveryPoint, int? recoveryPointCount) + internal MabFileFolderProtectedItemExtendedInfo(DateTimeOffset? lastRefreshedOn, DateTimeOffset? oldestRecoverOn, int? recoveryPointCount) { LastRefreshedOn = lastRefreshedOn; - OldestRecoveryPoint = oldestRecoveryPoint; + OldestRecoverOn = oldestRecoverOn; RecoveryPointCount = recoveryPointCount; } /// Last time when the agent data synced to service. public DateTimeOffset? LastRefreshedOn { get; set; } /// The oldest backup copy available. - public DateTimeOffset? OldestRecoveryPoint { get; set; } + public DateTimeOffset? OldestRecoverOn { get; set; } /// Number of backup copies associated with the backup item. public int? RecoveryPointCount { get; set; } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabProtectionPolicy.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabProtectionPolicy.Serialization.cs index 3e5b17d85a229..a3a8f90d558d3 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabProtectionPolicy.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabProtectionPolicy.Serialization.cs @@ -48,8 +48,8 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) internal static MabProtectionPolicy DeserializeMabProtectionPolicy(JsonElement element) { - Optional schedulePolicy = default; - Optional retentionPolicy = default; + Optional schedulePolicy = default; + Optional retentionPolicy = default; Optional protectedItemsCount = default; string backupManagementType = default; Optional> resourceGuardOperationRequests = default; @@ -62,7 +62,7 @@ internal static MabProtectionPolicy DeserializeMabProtectionPolicy(JsonElement e property.ThrowNonNullablePropertyIsNull(); continue; } - schedulePolicy = SchedulePolicy.DeserializeSchedulePolicy(property.Value); + schedulePolicy = BackupSchedulePolicy.DeserializeBackupSchedulePolicy(property.Value); continue; } if (property.NameEquals("retentionPolicy"u8)) @@ -72,7 +72,7 @@ internal static MabProtectionPolicy DeserializeMabProtectionPolicy(JsonElement e property.ThrowNonNullablePropertyIsNull(); continue; } - retentionPolicy = RetentionPolicy.DeserializeRetentionPolicy(property.Value); + retentionPolicy = BackupRetentionPolicy.DeserializeBackupRetentionPolicy(property.Value); continue; } if (property.NameEquals("protectedItemsCount"u8)) diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabProtectionPolicy.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabProtectionPolicy.cs index 8a0452baa62ba..0aa5bec9e937b 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabProtectionPolicy.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabProtectionPolicy.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Mab container-specific backup policy. - public partial class MabProtectionPolicy : ProtectionPolicy + public partial class MabProtectionPolicy : BackupGenericProtectionPolicy { /// Initializes a new instance of MabProtectionPolicy. public MabProtectionPolicy() @@ -24,15 +24,15 @@ public MabProtectionPolicy() /// ResourceGuard Operation Requests. /// /// Backup schedule of backup policy. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include , , and . /// /// /// Retention policy details. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// - internal MabProtectionPolicy(int? protectedItemsCount, string backupManagementType, IList resourceGuardOperationRequests, SchedulePolicy schedulePolicy, RetentionPolicy retentionPolicy) : base(protectedItemsCount, backupManagementType, resourceGuardOperationRequests) + internal MabProtectionPolicy(int? protectedItemsCount, string backupManagementType, IList resourceGuardOperationRequests, BackupSchedulePolicy schedulePolicy, BackupRetentionPolicy retentionPolicy) : base(protectedItemsCount, backupManagementType, resourceGuardOperationRequests) { SchedulePolicy = schedulePolicy; RetentionPolicy = retentionPolicy; @@ -41,15 +41,15 @@ internal MabProtectionPolicy(int? protectedItemsCount, string backupManagementTy /// /// Backup schedule of backup policy. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include , , and . /// - public SchedulePolicy SchedulePolicy { get; set; } + public BackupSchedulePolicy SchedulePolicy { get; set; } /// /// Retention policy details. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// - public RetentionPolicy RetentionPolicy { get; set; } + public BackupRetentionPolicy RetentionPolicy { get; set; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabServerType.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabServerType.cs index 96009f4994b69..576ddf747cae1 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabServerType.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MabServerType.cs @@ -34,7 +34,7 @@ public MabServerType(string value) private const string WindowsValue = "Windows"; private const string VCenterValue = "VCenter"; private const string VmAppContainerValue = "VMAppContainer"; - private const string SqlAGWorkLoadContainerValue = "SQLAGWorkLoadContainer"; + private const string SqlAvailabilityGroupWorkLoadContainerValue = "SQLAGWorkLoadContainer"; private const string StorageContainerValue = "StorageContainer"; private const string GenericContainerValue = "GenericContainer"; @@ -63,7 +63,7 @@ public MabServerType(string value) /// VMAppContainer. public static MabServerType VmAppContainer { get; } = new MabServerType(VmAppContainerValue); /// SQLAGWorkLoadContainer. - public static MabServerType SqlAGWorkLoadContainer { get; } = new MabServerType(SqlAGWorkLoadContainerValue); + public static MabServerType SqlAvailabilityGroupWorkLoadContainer { get; } = new MabServerType(SqlAvailabilityGroupWorkLoadContainerValue); /// StorageContainer. public static MabServerType StorageContainer { get; } = new MabServerType(StorageContainerValue); /// GenericContainer. diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MonthOfYear.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MonthOfYear.Serialization.cs deleted file mode 100644 index a5aea8875fcb4..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MonthOfYear.Serialization.cs +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - internal static partial class MonthOfYearExtensions - { - public static string ToSerialString(this MonthOfYear value) => value switch - { - MonthOfYear.Invalid => "Invalid", - MonthOfYear.January => "January", - MonthOfYear.February => "February", - MonthOfYear.March => "March", - MonthOfYear.April => "April", - MonthOfYear.May => "May", - MonthOfYear.June => "June", - MonthOfYear.July => "July", - MonthOfYear.August => "August", - MonthOfYear.September => "September", - MonthOfYear.October => "October", - MonthOfYear.November => "November", - MonthOfYear.December => "December", - _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown MonthOfYear value.") - }; - - public static MonthOfYear ToMonthOfYear(this string value) - { - if (string.Equals(value, "Invalid", StringComparison.InvariantCultureIgnoreCase)) return MonthOfYear.Invalid; - if (string.Equals(value, "January", StringComparison.InvariantCultureIgnoreCase)) return MonthOfYear.January; - if (string.Equals(value, "February", StringComparison.InvariantCultureIgnoreCase)) return MonthOfYear.February; - if (string.Equals(value, "March", StringComparison.InvariantCultureIgnoreCase)) return MonthOfYear.March; - if (string.Equals(value, "April", StringComparison.InvariantCultureIgnoreCase)) return MonthOfYear.April; - if (string.Equals(value, "May", StringComparison.InvariantCultureIgnoreCase)) return MonthOfYear.May; - if (string.Equals(value, "June", StringComparison.InvariantCultureIgnoreCase)) return MonthOfYear.June; - if (string.Equals(value, "July", StringComparison.InvariantCultureIgnoreCase)) return MonthOfYear.July; - if (string.Equals(value, "August", StringComparison.InvariantCultureIgnoreCase)) return MonthOfYear.August; - if (string.Equals(value, "September", StringComparison.InvariantCultureIgnoreCase)) return MonthOfYear.September; - if (string.Equals(value, "October", StringComparison.InvariantCultureIgnoreCase)) return MonthOfYear.October; - if (string.Equals(value, "November", StringComparison.InvariantCultureIgnoreCase)) return MonthOfYear.November; - if (string.Equals(value, "December", StringComparison.InvariantCultureIgnoreCase)) return MonthOfYear.December; - throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown MonthOfYear value."); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MonthlyRetentionSchedule.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MonthlyRetentionSchedule.cs index dbfbc28dc4616..2b9e901b3af5b 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MonthlyRetentionSchedule.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/MonthlyRetentionSchedule.cs @@ -40,7 +40,7 @@ internal MonthlyRetentionSchedule(RetentionScheduleFormat? retentionScheduleForm /// Daily retention format for monthly retention policy. internal DailyRetentionFormat RetentionScheduleDaily { get; set; } /// List of days of the month. - public IList RetentionScheduleDailyDaysOfTheMonth + public IList RetentionScheduleDailyDaysOfTheMonth { get { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationResultInfo.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationResultInfo.Serialization.cs deleted file mode 100644 index 646239851da4b..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationResultInfo.Serialization.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - public partial class OperationResultInfo - { - internal static OperationResultInfo DeserializeOperationResultInfo(JsonElement element) - { - Optional> jobList = default; - string objectType = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("jobList"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - List array = new List(); - foreach (var item in property.Value.EnumerateArray()) - { - array.Add(item.GetString()); - } - jobList = array; - continue; - } - if (property.NameEquals("objectType"u8)) - { - objectType = property.Value.GetString(); - continue; - } - } - return new OperationResultInfo(objectType, Optional.ToList(jobList)); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationResultInfo.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationResultInfo.cs deleted file mode 100644 index 0e7d621347d57..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationResultInfo.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using Azure.Core; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - /// Operation result info. - public partial class OperationResultInfo : OperationResultInfoBase - { - /// Initializes a new instance of OperationResultInfo. - internal OperationResultInfo() - { - JobList = new ChangeTrackingList(); - ObjectType = "OperationResultInfo"; - } - - /// Initializes a new instance of OperationResultInfo. - /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. - /// List of jobs created by this operation. - internal OperationResultInfo(string objectType, IReadOnlyList jobList) : base(objectType) - { - JobList = jobList; - ObjectType = objectType ?? "OperationResultInfo"; - } - - /// List of jobs created by this operation. - public IReadOnlyList JobList { get; } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationResultInfoBase.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationResultInfoBase.Serialization.cs deleted file mode 100644 index 73c226283b503..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationResultInfoBase.Serialization.cs +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - public partial class OperationResultInfoBase - { - internal static OperationResultInfoBase DeserializeOperationResultInfoBase(JsonElement element) - { - if (element.TryGetProperty("objectType", out JsonElement discriminator)) - { - switch (discriminator.GetString()) - { - case "ExportJobsOperationResultInfo": return ExportJobsOperationResultInfo.DeserializeExportJobsOperationResultInfo(element); - case "OperationResultInfo": return OperationResultInfo.DeserializeOperationResultInfo(element); - } - } - return UnknownOperationResultInfoBase.DeserializeUnknownOperationResultInfoBase(element); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationResultInfoBase.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationResultInfoBase.cs deleted file mode 100644 index 5ca98da486f76..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationResultInfoBase.cs +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - /// - /// Base class for operation result info. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . - /// - public abstract partial class OperationResultInfoBase - { - /// Initializes a new instance of OperationResultInfoBase. - protected OperationResultInfoBase() - { - } - - /// Initializes a new instance of OperationResultInfoBase. - /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. - internal OperationResultInfoBase(string objectType) - { - ObjectType = objectType; - } - - /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. - internal string ObjectType { get; set; } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationResultInfoBaseResource.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationResultInfoBaseResource.Serialization.cs deleted file mode 100644 index a043e9e4a2744..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationResultInfoBaseResource.Serialization.cs +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - public partial class OperationResultInfoBaseResource - { - internal static OperationResultInfoBaseResource DeserializeOperationResultInfoBaseResource(JsonElement element) - { - Optional operation = default; - Optional statusCode = default; - Optional>> headers = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("operation"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - operation = OperationResultInfoBase.DeserializeOperationResultInfoBase(property.Value); - continue; - } - if (property.NameEquals("statusCode"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - statusCode = property.Value.GetString().ToHttpStatusCode(); - continue; - } - if (property.NameEquals("headers"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - Dictionary> dictionary = new Dictionary>(); - foreach (var property0 in property.Value.EnumerateObject()) - { - List array = new List(); - foreach (var item in property0.Value.EnumerateArray()) - { - array.Add(item.GetString()); - } - dictionary.Add(property0.Name, array); - } - headers = dictionary; - continue; - } - } - return new OperationResultInfoBaseResource(Optional.ToNullable(statusCode), Optional.ToDictionary(headers), operation.Value); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationResultInfoBaseResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationResultInfoBaseResource.cs deleted file mode 100644 index a178c3294f344..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationResultInfoBaseResource.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - /// Base class for operation result info. - public partial class OperationResultInfoBaseResource : OperationWorkerResponse - { - /// Initializes a new instance of OperationResultInfoBaseResource. - internal OperationResultInfoBaseResource() - { - } - - /// Initializes a new instance of OperationResultInfoBaseResource. - /// HTTP Status Code of the operation. - /// HTTP headers associated with this operation. - /// - /// OperationResultInfoBaseResource operation - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . - /// - internal OperationResultInfoBaseResource(HttpStatusCode? statusCode, IReadOnlyDictionary> headers, OperationResultInfoBase operation) : base(statusCode, headers) - { - Operation = operation; - } - - /// - /// OperationResultInfoBaseResource operation - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . - /// - public OperationResultInfoBase Operation { get; } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatus.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatus.Serialization.cs deleted file mode 100644 index 921519a2d2fe4..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatus.Serialization.cs +++ /dev/null @@ -1,91 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - public partial class OperationStatus - { - internal static OperationStatus DeserializeOperationStatus(JsonElement element) - { - Optional id = default; - Optional name = default; - Optional status = default; - Optional startTime = default; - Optional endTime = default; - Optional error = default; - Optional properties = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("id"u8)) - { - id = property.Value.GetString(); - continue; - } - if (property.NameEquals("name"u8)) - { - name = property.Value.GetString(); - continue; - } - if (property.NameEquals("status"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - status = new OperationStatusValue(property.Value.GetString()); - continue; - } - if (property.NameEquals("startTime"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - startTime = property.Value.GetDateTimeOffset("O"); - continue; - } - if (property.NameEquals("endTime"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - endTime = property.Value.GetDateTimeOffset("O"); - continue; - } - if (property.NameEquals("error"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - error = OperationStatusError.DeserializeOperationStatusError(property.Value); - continue; - } - if (property.NameEquals("properties"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - properties = OperationStatusExtendedInfo.DeserializeOperationStatusExtendedInfo(property.Value); - continue; - } - } - return new OperationStatus(id.Value, name.Value, Optional.ToNullable(status), Optional.ToNullable(startTime), Optional.ToNullable(endTime), error.Value, properties.Value); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatus.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatus.cs deleted file mode 100644 index 3a60af674835b..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatus.cs +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - /// Operation status. - public partial class OperationStatus - { - /// Initializes a new instance of OperationStatus. - internal OperationStatus() - { - } - - /// Initializes a new instance of OperationStatus. - /// ID of the operation. - /// Name of the operation. - /// Operation status. - /// Operation start time. Format: ISO-8601. - /// Operation end time. Format: ISO-8601. - /// Error information related to this operation. - /// - /// Additional information associated with this operation. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , and . - /// - internal OperationStatus(string id, string name, OperationStatusValue? status, DateTimeOffset? startOn, DateTimeOffset? endOn, OperationStatusError error, OperationStatusExtendedInfo properties) - { - Id = id; - Name = name; - Status = status; - StartOn = startOn; - EndOn = endOn; - Error = error; - Properties = properties; - } - - /// ID of the operation. - public string Id { get; } - /// Name of the operation. - public string Name { get; } - /// Operation status. - public OperationStatusValue? Status { get; } - /// Operation start time. Format: ISO-8601. - public DateTimeOffset? StartOn { get; } - /// Operation end time. Format: ISO-8601. - public DateTimeOffset? EndOn { get; } - /// Error information related to this operation. - public OperationStatusError Error { get; } - /// - /// Additional information associated with this operation. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , and . - /// - public OperationStatusExtendedInfo Properties { get; } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatusError.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatusError.Serialization.cs deleted file mode 100644 index 40b2589a4841e..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatusError.Serialization.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - public partial class OperationStatusError - { - internal static OperationStatusError DeserializeOperationStatusError(JsonElement element) - { - Optional code = default; - Optional message = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("code"u8)) - { - code = property.Value.GetString(); - continue; - } - if (property.NameEquals("message"u8)) - { - message = property.Value.GetString(); - continue; - } - } - return new OperationStatusError(code.Value, message.Value); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatusError.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatusError.cs deleted file mode 100644 index c4abfbe92066a..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatusError.cs +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - /// Error information associated with operation status call. - public partial class OperationStatusError - { - /// Initializes a new instance of OperationStatusError. - internal OperationStatusError() - { - } - - /// Initializes a new instance of OperationStatusError. - /// Error code of the operation failure. - /// Error message displayed if the operation failure. - internal OperationStatusError(string code, string message) - { - Code = code; - Message = message; - } - - /// Error code of the operation failure. - public string Code { get; } - /// Error message displayed if the operation failure. - public string Message { get; } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatusExtendedInfo.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatusExtendedInfo.Serialization.cs deleted file mode 100644 index 46b2052f031e3..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatusExtendedInfo.Serialization.cs +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - public partial class OperationStatusExtendedInfo - { - internal static OperationStatusExtendedInfo DeserializeOperationStatusExtendedInfo(JsonElement element) - { - if (element.TryGetProperty("objectType", out JsonElement discriminator)) - { - switch (discriminator.GetString()) - { - case "OperationStatusJobExtendedInfo": return OperationStatusJobExtendedInfo.DeserializeOperationStatusJobExtendedInfo(element); - case "OperationStatusJobsExtendedInfo": return OperationStatusJobsExtendedInfo.DeserializeOperationStatusJobsExtendedInfo(element); - case "OperationStatusProvisionILRExtendedInfo": return OperationStatusProvisionILRExtendedInfo.DeserializeOperationStatusProvisionILRExtendedInfo(element); - case "OperationStatusValidateOperationExtendedInfo": return OperationStatusValidateOperationExtendedInfo.DeserializeOperationStatusValidateOperationExtendedInfo(element); - } - } - return UnknownOperationStatusExtendedInfo.DeserializeUnknownOperationStatusExtendedInfo(element); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatusExtendedInfo.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatusExtendedInfo.cs deleted file mode 100644 index e40c3416663e8..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatusExtendedInfo.cs +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - /// - /// Base class for additional information of operation status. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , and . - /// - public abstract partial class OperationStatusExtendedInfo - { - /// Initializes a new instance of OperationStatusExtendedInfo. - protected OperationStatusExtendedInfo() - { - } - - /// Initializes a new instance of OperationStatusExtendedInfo. - /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. - internal OperationStatusExtendedInfo(string objectType) - { - ObjectType = objectType; - } - - /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. - internal string ObjectType { get; set; } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatusJobExtendedInfo.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatusJobExtendedInfo.Serialization.cs deleted file mode 100644 index 74a87f69a2448..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatusJobExtendedInfo.Serialization.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - public partial class OperationStatusJobExtendedInfo - { - internal static OperationStatusJobExtendedInfo DeserializeOperationStatusJobExtendedInfo(JsonElement element) - { - Optional jobId = default; - string objectType = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("jobId"u8)) - { - jobId = property.Value.GetString(); - continue; - } - if (property.NameEquals("objectType"u8)) - { - objectType = property.Value.GetString(); - continue; - } - } - return new OperationStatusJobExtendedInfo(objectType, jobId.Value); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatusJobExtendedInfo.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatusJobExtendedInfo.cs deleted file mode 100644 index 962e6d9a9b98c..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatusJobExtendedInfo.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - /// Operation status job extended info. - public partial class OperationStatusJobExtendedInfo : OperationStatusExtendedInfo - { - /// Initializes a new instance of OperationStatusJobExtendedInfo. - internal OperationStatusJobExtendedInfo() - { - ObjectType = "OperationStatusJobExtendedInfo"; - } - - /// Initializes a new instance of OperationStatusJobExtendedInfo. - /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. - /// ID of the job created for this protected item. - internal OperationStatusJobExtendedInfo(string objectType, string jobId) : base(objectType) - { - JobId = jobId; - ObjectType = objectType ?? "OperationStatusJobExtendedInfo"; - } - - /// ID of the job created for this protected item. - public string JobId { get; } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatusJobsExtendedInfo.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatusJobsExtendedInfo.Serialization.cs deleted file mode 100644 index a99374e8a678c..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatusJobsExtendedInfo.Serialization.cs +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - public partial class OperationStatusJobsExtendedInfo - { - internal static OperationStatusJobsExtendedInfo DeserializeOperationStatusJobsExtendedInfo(JsonElement element) - { - Optional> jobIds = default; - Optional> failedJobsError = default; - string objectType = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("jobIds"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - List array = new List(); - foreach (var item in property.Value.EnumerateArray()) - { - array.Add(item.GetString()); - } - jobIds = array; - continue; - } - if (property.NameEquals("failedJobsError"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) - { - dictionary.Add(property0.Name, property0.Value.GetString()); - } - failedJobsError = dictionary; - continue; - } - if (property.NameEquals("objectType"u8)) - { - objectType = property.Value.GetString(); - continue; - } - } - return new OperationStatusJobsExtendedInfo(objectType, Optional.ToList(jobIds), Optional.ToDictionary(failedJobsError)); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatusJobsExtendedInfo.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatusJobsExtendedInfo.cs deleted file mode 100644 index 22cfd5f59fbb3..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatusJobsExtendedInfo.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using Azure.Core; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - /// Operation status extended info for list of jobs. - public partial class OperationStatusJobsExtendedInfo : OperationStatusExtendedInfo - { - /// Initializes a new instance of OperationStatusJobsExtendedInfo. - internal OperationStatusJobsExtendedInfo() - { - JobIds = new ChangeTrackingList(); - FailedJobsError = new ChangeTrackingDictionary(); - ObjectType = "OperationStatusJobsExtendedInfo"; - } - - /// Initializes a new instance of OperationStatusJobsExtendedInfo. - /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. - /// IDs of the jobs created for the protected item. - /// Stores all the failed jobs along with the corresponding error codes. - internal OperationStatusJobsExtendedInfo(string objectType, IReadOnlyList jobIds, IReadOnlyDictionary failedJobsError) : base(objectType) - { - JobIds = jobIds; - FailedJobsError = failedJobsError; - ObjectType = objectType ?? "OperationStatusJobsExtendedInfo"; - } - - /// IDs of the jobs created for the protected item. - public IReadOnlyList JobIds { get; } - /// Stores all the failed jobs along with the corresponding error codes. - public IReadOnlyDictionary FailedJobsError { get; } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatusProvisionILRExtendedInfo.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatusProvisionILRExtendedInfo.Serialization.cs deleted file mode 100644 index 69bf2a3698753..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatusProvisionILRExtendedInfo.Serialization.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - public partial class OperationStatusProvisionILRExtendedInfo - { - internal static OperationStatusProvisionILRExtendedInfo DeserializeOperationStatusProvisionILRExtendedInfo(JsonElement element) - { - Optional recoveryTarget = default; - string objectType = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("recoveryTarget"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - recoveryTarget = InstantItemRecoveryTarget.DeserializeInstantItemRecoveryTarget(property.Value); - continue; - } - if (property.NameEquals("objectType"u8)) - { - objectType = property.Value.GetString(); - continue; - } - } - return new OperationStatusProvisionILRExtendedInfo(objectType, recoveryTarget.Value); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatusProvisionILRExtendedInfo.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatusProvisionILRExtendedInfo.cs deleted file mode 100644 index 934720d8fae80..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatusProvisionILRExtendedInfo.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - /// Operation status extended info for ILR provision action. - public partial class OperationStatusProvisionILRExtendedInfo : OperationStatusExtendedInfo - { - /// Initializes a new instance of OperationStatusProvisionILRExtendedInfo. - internal OperationStatusProvisionILRExtendedInfo() - { - ObjectType = "OperationStatusProvisionILRExtendedInfo"; - } - - /// Initializes a new instance of OperationStatusProvisionILRExtendedInfo. - /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. - /// Target details for file / folder restore. - internal OperationStatusProvisionILRExtendedInfo(string objectType, InstantItemRecoveryTarget recoveryTarget) : base(objectType) - { - RecoveryTarget = recoveryTarget; - ObjectType = objectType ?? "OperationStatusProvisionILRExtendedInfo"; - } - - /// Target details for file / folder restore. - internal InstantItemRecoveryTarget RecoveryTarget { get; } - /// List of client scripts. - public IReadOnlyList RecoveryTargetClientScripts - { - get => RecoveryTarget?.ClientScripts; - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatusValidateOperationExtendedInfo.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatusValidateOperationExtendedInfo.Serialization.cs deleted file mode 100644 index d9db9bf99ba21..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatusValidateOperationExtendedInfo.Serialization.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - public partial class OperationStatusValidateOperationExtendedInfo - { - internal static OperationStatusValidateOperationExtendedInfo DeserializeOperationStatusValidateOperationExtendedInfo(JsonElement element) - { - Optional validateOperationResponse = default; - string objectType = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("validateOperationResponse"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - validateOperationResponse = ValidateOperationResponse.DeserializeValidateOperationResponse(property.Value); - continue; - } - if (property.NameEquals("objectType"u8)) - { - objectType = property.Value.GetString(); - continue; - } - } - return new OperationStatusValidateOperationExtendedInfo(objectType, validateOperationResponse.Value); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatusValidateOperationExtendedInfo.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatusValidateOperationExtendedInfo.cs deleted file mode 100644 index 5dc93fdce7fc5..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatusValidateOperationExtendedInfo.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - /// Operation status extended info for ValidateOperation action. - public partial class OperationStatusValidateOperationExtendedInfo : OperationStatusExtendedInfo - { - /// Initializes a new instance of OperationStatusValidateOperationExtendedInfo. - internal OperationStatusValidateOperationExtendedInfo() - { - ObjectType = "OperationStatusValidateOperationExtendedInfo"; - } - - /// Initializes a new instance of OperationStatusValidateOperationExtendedInfo. - /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. - /// Gets the validation operation response. - internal OperationStatusValidateOperationExtendedInfo(string objectType, ValidateOperationResponse validateOperationResponse) : base(objectType) - { - ValidateOperationResponse = validateOperationResponse; - ObjectType = objectType ?? "OperationStatusValidateOperationExtendedInfo"; - } - - /// Gets the validation operation response. - internal ValidateOperationResponse ValidateOperationResponse { get; } - /// Gets the validation result. - public IReadOnlyList ValidateOperationResponseValidationResults - { - get => ValidateOperationResponse?.ValidationResults; - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatusValue.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatusValue.cs deleted file mode 100644 index e4bff97824b8f..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationStatusValue.cs +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - /// Operation status. - public readonly partial struct OperationStatusValue : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public OperationStatusValue(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string InvalidValue = "Invalid"; - private const string InProgressValue = "InProgress"; - private const string SucceededValue = "Succeeded"; - private const string FailedValue = "Failed"; - private const string CanceledValue = "Canceled"; - - /// Invalid. - public static OperationStatusValue Invalid { get; } = new OperationStatusValue(InvalidValue); - /// InProgress. - public static OperationStatusValue InProgress { get; } = new OperationStatusValue(InProgressValue); - /// Succeeded. - public static OperationStatusValue Succeeded { get; } = new OperationStatusValue(SucceededValue); - /// Failed. - public static OperationStatusValue Failed { get; } = new OperationStatusValue(FailedValue); - /// Canceled. - public static OperationStatusValue Canceled { get; } = new OperationStatusValue(CanceledValue); - /// Determines if two values are the same. - public static bool operator ==(OperationStatusValue left, OperationStatusValue right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(OperationStatusValue left, OperationStatusValue right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator OperationStatusValue(string value) => new OperationStatusValue(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is OperationStatusValue other && Equals(other); - /// - public bool Equals(OperationStatusValue other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationType.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationType.cs deleted file mode 100644 index 68f3bf3d7be95..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationType.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - /// Re-Do Operation. - public readonly partial struct OperationType : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public OperationType(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string InvalidValue = "Invalid"; - private const string RegisterValue = "Register"; - private const string ReregisterValue = "Reregister"; - - /// Invalid. - public static OperationType Invalid { get; } = new OperationType(InvalidValue); - /// Register. - public static OperationType Register { get; } = new OperationType(RegisterValue); - /// Reregister. - public static OperationType Reregister { get; } = new OperationType(ReregisterValue); - /// Determines if two values are the same. - public static bool operator ==(OperationType left, OperationType right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(OperationType left, OperationType right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator OperationType(string value) => new OperationType(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is OperationType other && Equals(other); - /// - public bool Equals(OperationType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationWorkerResponse.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationWorkerResponse.Serialization.cs deleted file mode 100644 index c2b543acbe570..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationWorkerResponse.Serialization.cs +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - public partial class OperationWorkerResponse - { - internal static OperationWorkerResponse DeserializeOperationWorkerResponse(JsonElement element) - { - Optional statusCode = default; - Optional>> headers = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("statusCode"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - statusCode = property.Value.GetString().ToHttpStatusCode(); - continue; - } - if (property.NameEquals("headers"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - Dictionary> dictionary = new Dictionary>(); - foreach (var property0 in property.Value.EnumerateObject()) - { - List array = new List(); - foreach (var item in property0.Value.EnumerateArray()) - { - array.Add(item.GetString()); - } - dictionary.Add(property0.Name, array); - } - headers = dictionary; - continue; - } - } - return new OperationWorkerResponse(Optional.ToNullable(statusCode), Optional.ToDictionary(headers)); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationWorkerResponse.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationWorkerResponse.cs deleted file mode 100644 index cbf843d7e0c94..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OperationWorkerResponse.cs +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using Azure.Core; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - /// This is the base class for operation result responses. - public partial class OperationWorkerResponse - { - /// Initializes a new instance of OperationWorkerResponse. - internal OperationWorkerResponse() - { - Headers = new ChangeTrackingDictionary>(); - } - - /// Initializes a new instance of OperationWorkerResponse. - /// HTTP Status Code of the operation. - /// HTTP headers associated with this operation. - internal OperationWorkerResponse(HttpStatusCode? statusCode, IReadOnlyDictionary> headers) - { - StatusCode = statusCode; - Headers = headers; - } - - /// HTTP Status Code of the operation. - public HttpStatusCode? StatusCode { get; } - /// HTTP headers associated with this operation. - public IReadOnlyDictionary> Headers { get; } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OverwriteOption.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OverwriteOption.cs deleted file mode 100644 index 9940d0e5fa874..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/OverwriteOption.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - /// Can Overwrite if Target DataBase already exists. - public readonly partial struct OverwriteOption : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public OverwriteOption(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string InvalidValue = "Invalid"; - private const string FailOnConflictValue = "FailOnConflict"; - private const string OverwriteValue = "Overwrite"; - - /// Invalid. - public static OverwriteOption Invalid { get; } = new OverwriteOption(InvalidValue); - /// FailOnConflict. - public static OverwriteOption FailOnConflict { get; } = new OverwriteOption(FailOnConflictValue); - /// Overwrite. - public static OverwriteOption Overwrite { get; } = new OverwriteOption(OverwriteValue); - /// Determines if two values are the same. - public static bool operator ==(OverwriteOption left, OverwriteOption right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(OverwriteOption left, OverwriteOption right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator OverwriteOption(string value) => new OverwriteOption(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is OverwriteOption other && Equals(other); - /// - public bool Equals(OverwriteOption other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/PolicyType.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/PolicyType.cs deleted file mode 100644 index 2a4f3ecc4d2a6..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/PolicyType.cs +++ /dev/null @@ -1,69 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - /// Type of backup policy type. - public readonly partial struct PolicyType : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public PolicyType(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string InvalidValue = "Invalid"; - private const string FullValue = "Full"; - private const string DifferentialValue = "Differential"; - private const string LogValue = "Log"; - private const string CopyOnlyFullValue = "CopyOnlyFull"; - private const string IncrementalValue = "Incremental"; - private const string SnapshotFullValue = "SnapshotFull"; - private const string SnapshotCopyOnlyFullValue = "SnapshotCopyOnlyFull"; - - /// Invalid. - public static PolicyType Invalid { get; } = new PolicyType(InvalidValue); - /// Full. - public static PolicyType Full { get; } = new PolicyType(FullValue); - /// Differential. - public static PolicyType Differential { get; } = new PolicyType(DifferentialValue); - /// Log. - public static PolicyType Log { get; } = new PolicyType(LogValue); - /// CopyOnlyFull. - public static PolicyType CopyOnlyFull { get; } = new PolicyType(CopyOnlyFullValue); - /// Incremental. - public static PolicyType Incremental { get; } = new PolicyType(IncrementalValue); - /// SnapshotFull. - public static PolicyType SnapshotFull { get; } = new PolicyType(SnapshotFullValue); - /// SnapshotCopyOnlyFull. - public static PolicyType SnapshotCopyOnlyFull { get; } = new PolicyType(SnapshotCopyOnlyFullValue); - /// Determines if two values are the same. - public static bool operator ==(PolicyType left, PolicyType right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(PolicyType left, PolicyType right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator PolicyType(string value) => new PolicyType(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is PolicyType other && Equals(other); - /// - public bool Equals(PolicyType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/PreValidateEnableBackupContent.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/PreValidateEnableBackupContent.cs index 1ec7128a55403..e3e1de8038b4a 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/PreValidateEnableBackupContent.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/PreValidateEnableBackupContent.cs @@ -5,6 +5,8 @@ #nullable disable +using Azure.Core; + namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// @@ -22,11 +24,11 @@ public PreValidateEnableBackupContent() } /// ProtectedItem Type- VM, SqlDataBase, AzureFileShare etc. - public DataSourceType? ResourceType { get; set; } + public BackupDataSourceType? ResourceType { get; set; } /// ARM Virtual Machine Id. - public string ResourceId { get; set; } + public ResourceIdentifier ResourceId { get; set; } /// ARM id of the Recovery Services Vault. - public string VaultId { get; set; } + public ResourceIdentifier VaultId { get; set; } /// Configuration of VM if any needs to be validated like OS type etc. public string Properties { get; set; } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/PreValidateEnableBackupResponse.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/PreValidateEnableBackupResult.Serialization.cs similarity index 79% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/PreValidateEnableBackupResponse.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/PreValidateEnableBackupResult.Serialization.cs index b288f3341c2c8..5c174d3c5bd8c 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/PreValidateEnableBackupResponse.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/PreValidateEnableBackupResult.Serialization.cs @@ -10,11 +10,11 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class PreValidateEnableBackupResponse + public partial class PreValidateEnableBackupResult { - internal static PreValidateEnableBackupResponse DeserializePreValidateEnableBackupResponse(JsonElement element) + internal static PreValidateEnableBackupResult DeserializePreValidateEnableBackupResult(JsonElement element) { - Optional status = default; + Optional status = default; Optional errorCode = default; Optional errorMessage = default; Optional recommendation = default; @@ -29,7 +29,7 @@ internal static PreValidateEnableBackupResponse DeserializePreValidateEnableBack property.ThrowNonNullablePropertyIsNull(); continue; } - status = new ValidationStatus(property.Value.GetString()); + status = new BackupValidationStatus(property.Value.GetString()); continue; } if (property.NameEquals("errorCode"u8)) @@ -58,7 +58,7 @@ internal static PreValidateEnableBackupResponse DeserializePreValidateEnableBack continue; } } - return new PreValidateEnableBackupResponse(Optional.ToNullable(status), errorCode.Value, errorMessage.Value, recommendation.Value, containerName.Value, protectedItemName.Value); + return new PreValidateEnableBackupResult(Optional.ToNullable(status), errorCode.Value, errorMessage.Value, recommendation.Value, containerName.Value, protectedItemName.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/PreValidateEnableBackupResponse.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/PreValidateEnableBackupResult.cs similarity index 84% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/PreValidateEnableBackupResponse.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/PreValidateEnableBackupResult.cs index 1d091f6407650..e660df833a15f 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/PreValidateEnableBackupResponse.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/PreValidateEnableBackupResult.cs @@ -8,14 +8,14 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Response contract for enable backup validation request. - public partial class PreValidateEnableBackupResponse + public partial class PreValidateEnableBackupResult { - /// Initializes a new instance of PreValidateEnableBackupResponse. - internal PreValidateEnableBackupResponse() + /// Initializes a new instance of PreValidateEnableBackupResult. + internal PreValidateEnableBackupResult() { } - /// Initializes a new instance of PreValidateEnableBackupResponse. + /// Initializes a new instance of PreValidateEnableBackupResult. /// Validation Status. /// Response error code. /// Response error message. @@ -25,7 +25,7 @@ internal PreValidateEnableBackupResponse() /// for portal /// /// Specifies the product specific ds name. E.g. vm;iaasvmcontainer;rgname;vmname. This is required for portal. - internal PreValidateEnableBackupResponse(ValidationStatus? status, string errorCode, string errorMessage, string recommendation, string containerName, string protectedItemName) + internal PreValidateEnableBackupResult(BackupValidationStatus? status, string errorCode, string errorMessage, string recommendation, string containerName, string protectedItemName) { Status = status; ErrorCode = errorCode; @@ -36,7 +36,7 @@ internal PreValidateEnableBackupResponse(ValidationStatus? status, string errorC } /// Validation Status. - public ValidationStatus? Status { get; } + public BackupValidationStatus? Status { get; } /// Response error code. public string ErrorCode { get; } /// Response error message. diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/PrepareDataMoveContent.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/PrepareDataMoveContent.cs index 510a651baab29..31383e34fd52e 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/PrepareDataMoveContent.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/PrepareDataMoveContent.cs @@ -18,29 +18,28 @@ public partial class PrepareDataMoveContent /// ARM Id of target vault. /// Target Region. /// DataMove Level. - /// or is null. - public PrepareDataMoveContent(string targetResourceId, string targetRegion, DataMoveLevel dataMoveLevel) + /// is null. + public PrepareDataMoveContent(ResourceIdentifier targetResourceId, AzureLocation targetRegion, DataMoveLevel dataMoveLevel) { Argument.AssertNotNull(targetResourceId, nameof(targetResourceId)); - Argument.AssertNotNull(targetRegion, nameof(targetRegion)); TargetResourceId = targetResourceId; TargetRegion = targetRegion; DataMoveLevel = dataMoveLevel; - SourceContainerArmIds = new ChangeTrackingList(); + SourceContainerArmIds = new ChangeTrackingList(); } /// ARM Id of target vault. - public string TargetResourceId { get; } + public ResourceIdentifier TargetResourceId { get; } /// Target Region. - public string TargetRegion { get; } + public AzureLocation TargetRegion { get; } /// DataMove Level. public DataMoveLevel DataMoveLevel { get; } /// /// Source Container ArmIds /// This needs to be populated only if DataMoveLevel is set to container /// - public IList SourceContainerArmIds { get; } + public IList SourceContainerArmIds { get; } /// Ignore the artifacts which are already moved. public bool? IgnoreMoved { get; set; } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/PrepareDataMoveResponse.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/PrepareDataMoveResponse.Serialization.cs deleted file mode 100644 index 311b4b2a6659e..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/PrepareDataMoveResponse.Serialization.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - public partial class PrepareDataMoveResponse - { - internal static PrepareDataMoveResponse DeserializePrepareDataMoveResponse(JsonElement element) - { - Optional correlationId = default; - Optional> sourceVaultProperties = default; - string objectType = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("correlationId"u8)) - { - correlationId = property.Value.GetString(); - continue; - } - if (property.NameEquals("sourceVaultProperties"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) - { - dictionary.Add(property0.Name, property0.Value.GetString()); - } - sourceVaultProperties = dictionary; - continue; - } - if (property.NameEquals("objectType"u8)) - { - objectType = property.Value.GetString(); - continue; - } - } - return new PrepareDataMoveResponse(objectType, correlationId.Value, Optional.ToDictionary(sourceVaultProperties)); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/PrepareDataMoveResponse.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/PrepareDataMoveResponse.cs deleted file mode 100644 index b3b551c545429..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/PrepareDataMoveResponse.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using Azure.Core; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - /// Prepare DataMove Response. - public partial class PrepareDataMoveResponse : VaultStorageConfigOperationResultResponse - { - /// Initializes a new instance of PrepareDataMoveResponse. - internal PrepareDataMoveResponse() - { - SourceVaultProperties = new ChangeTrackingDictionary(); - ObjectType = "PrepareDataMoveResponse"; - } - - /// Initializes a new instance of PrepareDataMoveResponse. - /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. - /// Co-relationId for move operation. - /// Source Vault Properties. - internal PrepareDataMoveResponse(string objectType, string correlationId, IReadOnlyDictionary sourceVaultProperties) : base(objectType) - { - CorrelationId = correlationId; - SourceVaultProperties = sourceVaultProperties; - ObjectType = objectType ?? "PrepareDataMoveResponse"; - } - - /// Co-relationId for move operation. - public string CorrelationId { get; } - /// Source Vault Properties. - public IReadOnlyDictionary SourceVaultProperties { get; } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/PrivateEndpointConnectionResourceData.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/PrivateEndpointConnectionResourceData.Serialization.cs deleted file mode 100644 index 8f2b6f1ce9b7f..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/PrivateEndpointConnectionResourceData.Serialization.cs +++ /dev/null @@ -1,129 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using System.Text.Json; -using Azure; -using Azure.Core; -using Azure.ResourceManager.Models; -using Azure.ResourceManager.RecoveryServicesBackup.Models; - -namespace Azure.ResourceManager.RecoveryServicesBackup -{ - public partial class PrivateEndpointConnectionResourceData : IUtf8JsonSerializable - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) - { - writer.WriteStartObject(); - if (Optional.IsDefined(Properties)) - { - writer.WritePropertyName("properties"u8); - writer.WriteObjectValue(Properties); - } - if (Optional.IsDefined(ETag)) - { - writer.WritePropertyName("eTag"u8); - writer.WriteStringValue(ETag.Value.ToString()); - } - if (Optional.IsCollectionDefined(Tags)) - { - writer.WritePropertyName("tags"u8); - writer.WriteStartObject(); - foreach (var item in Tags) - { - writer.WritePropertyName(item.Key); - writer.WriteStringValue(item.Value); - } - writer.WriteEndObject(); - } - writer.WritePropertyName("location"u8); - writer.WriteStringValue(Location); - writer.WriteEndObject(); - } - - internal static PrivateEndpointConnectionResourceData DeserializePrivateEndpointConnectionResourceData(JsonElement element) - { - Optional properties = default; - Optional eTag = default; - Optional> tags = default; - AzureLocation location = default; - ResourceIdentifier id = default; - string name = default; - ResourceType type = default; - Optional systemData = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("properties"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - properties = RecoveryServicesBackupPrivateEndpointConnection.DeserializeRecoveryServicesBackupPrivateEndpointConnection(property.Value); - continue; - } - if (property.NameEquals("eTag"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - eTag = new ETag(property.Value.GetString()); - continue; - } - if (property.NameEquals("tags"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) - { - dictionary.Add(property0.Name, property0.Value.GetString()); - } - tags = dictionary; - continue; - } - if (property.NameEquals("location"u8)) - { - location = new AzureLocation(property.Value.GetString()); - continue; - } - if (property.NameEquals("id"u8)) - { - id = new ResourceIdentifier(property.Value.GetString()); - continue; - } - if (property.NameEquals("name"u8)) - { - name = property.Value.GetString(); - continue; - } - if (property.NameEquals("type"u8)) - { - type = new ResourceType(property.Value.GetString()); - continue; - } - if (property.NameEquals("systemData"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); - continue; - } - } - return new PrivateEndpointConnectionResourceData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, properties.Value, Optional.ToNullable(eTag)); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectableContainer.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectableContainer.Serialization.cs index 6e5ed5dbb6f81..26839ef83cb5d 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectableContainer.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectableContainer.Serialization.cs @@ -46,8 +46,8 @@ internal static ProtectableContainer DeserializeProtectableContainer(JsonElement { switch (discriminator.GetString()) { - case "StorageContainer": return AzureStorageProtectableContainer.DeserializeAzureStorageProtectableContainer(element); - case "VMAppContainer": return AzureVmAppContainerProtectableContainer.DeserializeAzureVmAppContainerProtectableContainer(element); + case "StorageContainer": return StorageProtectableContainer.DeserializeStorageProtectableContainer(element); + case "VMAppContainer": return VmAppContainerProtectableContainer.DeserializeVmAppContainerProtectableContainer(element); } } return UnknownProtectableContainer.DeserializeUnknownProtectableContainer(element); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectableContainer.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectableContainer.cs index 58d99717039bb..c732dae7dd612 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectableContainer.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectableContainer.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models /// /// Protectable Container Class. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . + /// The available derived classes include and . /// public abstract partial class ProtectableContainer { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectableContainerResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectableContainerResource.cs index 99365ef1b049f..ae4f51d045d1b 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectableContainerResource.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectableContainerResource.cs @@ -31,7 +31,7 @@ public ProtectableContainerResource(AzureLocation location) : base(location) /// /// ProtectableContainerResource properties /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . + /// The available derived classes include and . /// /// Optional ETag. internal ProtectableContainerResource(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ProtectableContainer properties, ETag? eTag) : base(id, name, resourceType, systemData, tags, location) @@ -43,7 +43,7 @@ internal ProtectableContainerResource(ResourceIdentifier id, string name, Resour /// /// ProtectableContainerResource properties /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . + /// The available derived classes include and . /// public ProtectableContainer Properties { get; set; } /// Optional ETag. diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectableContainerType.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectableContainerType.Serialization.cs index acba9ba5e1cc7..ed29a303baf15 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectableContainerType.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectableContainerType.Serialization.cs @@ -25,7 +25,7 @@ internal static partial class ProtectableContainerTypeExtensions ProtectableContainerType.Windows => "Windows", ProtectableContainerType.VCenter => "VCenter", ProtectableContainerType.VmAppContainer => "VMAppContainer", - ProtectableContainerType.SqlAGWorkLoadContainer => "SQLAGWorkLoadContainer", + ProtectableContainerType.SqlAvailabilityGroupWorkLoadContainer => "SQLAGWorkLoadContainer", ProtectableContainerType.StorageContainer => "StorageContainer", ProtectableContainerType.GenericContainer => "GenericContainer", ProtectableContainerType.MicrosoftClassicComputeVirtualMachines => "Microsoft.ClassicCompute/virtualMachines", @@ -48,7 +48,7 @@ public static ProtectableContainerType ToProtectableContainerType(this string va if (string.Equals(value, "Windows", StringComparison.InvariantCultureIgnoreCase)) return ProtectableContainerType.Windows; if (string.Equals(value, "VCenter", StringComparison.InvariantCultureIgnoreCase)) return ProtectableContainerType.VCenter; if (string.Equals(value, "VMAppContainer", StringComparison.InvariantCultureIgnoreCase)) return ProtectableContainerType.VmAppContainer; - if (string.Equals(value, "SQLAGWorkLoadContainer", StringComparison.InvariantCultureIgnoreCase)) return ProtectableContainerType.SqlAGWorkLoadContainer; + if (string.Equals(value, "SQLAGWorkLoadContainer", StringComparison.InvariantCultureIgnoreCase)) return ProtectableContainerType.SqlAvailabilityGroupWorkLoadContainer; if (string.Equals(value, "StorageContainer", StringComparison.InvariantCultureIgnoreCase)) return ProtectableContainerType.StorageContainer; if (string.Equals(value, "GenericContainer", StringComparison.InvariantCultureIgnoreCase)) return ProtectableContainerType.GenericContainer; if (string.Equals(value, "Microsoft.ClassicCompute/virtualMachines", StringComparison.InvariantCultureIgnoreCase)) return ProtectableContainerType.MicrosoftClassicComputeVirtualMachines; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectableContainerType.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectableContainerType.cs index 0c67df790765f..2e5adc189a968 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectableContainerType.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectableContainerType.cs @@ -39,7 +39,7 @@ internal enum ProtectableContainerType /// VMAppContainer. VmAppContainer, /// SQLAGWorkLoadContainer. - SqlAGWorkLoadContainer, + SqlAvailabilityGroupWorkLoadContainer, /// StorageContainer. StorageContainer, /// GenericContainer. diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectedItemHealthStatus.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectedItemHealthStatus.cs deleted file mode 100644 index 9cdd37b896455..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectedItemHealthStatus.cs +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - /// Health status of the backup item, evaluated based on last heartbeat received. - public readonly partial struct ProtectedItemHealthStatus : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public ProtectedItemHealthStatus(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string InvalidValue = "Invalid"; - private const string HealthyValue = "Healthy"; - private const string UnhealthyValue = "Unhealthy"; - private const string NotReachableValue = "NotReachable"; - private const string IRPendingValue = "IRPending"; - - /// Invalid. - public static ProtectedItemHealthStatus Invalid { get; } = new ProtectedItemHealthStatus(InvalidValue); - /// Healthy. - public static ProtectedItemHealthStatus Healthy { get; } = new ProtectedItemHealthStatus(HealthyValue); - /// Unhealthy. - public static ProtectedItemHealthStatus Unhealthy { get; } = new ProtectedItemHealthStatus(UnhealthyValue); - /// NotReachable. - public static ProtectedItemHealthStatus NotReachable { get; } = new ProtectedItemHealthStatus(NotReachableValue); - /// IRPending. - public static ProtectedItemHealthStatus IRPending { get; } = new ProtectedItemHealthStatus(IRPendingValue); - /// Determines if two values are the same. - public static bool operator ==(ProtectedItemHealthStatus left, ProtectedItemHealthStatus right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(ProtectedItemHealthStatus left, ProtectedItemHealthStatus right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator ProtectedItemHealthStatus(string value) => new ProtectedItemHealthStatus(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is ProtectedItemHealthStatus other && Equals(other); - /// - public bool Equals(ProtectedItemHealthStatus other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectedItemResourceList.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectedItemResourceList.Serialization.cs index aca5ca00eb696..c58c7d249a29f 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectedItemResourceList.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectedItemResourceList.Serialization.cs @@ -16,7 +16,7 @@ internal partial class ProtectedItemResourceList { internal static ProtectedItemResourceList DeserializeProtectedItemResourceList(JsonElement element) { - Optional> value = default; + Optional> value = default; Optional nextLink = default; foreach (var property in element.EnumerateObject()) { @@ -27,10 +27,10 @@ internal static ProtectedItemResourceList DeserializeProtectedItemResourceList(J property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ProtectedItemResourceData.DeserializeProtectedItemResourceData(item)); + array.Add(BackupProtectedItemData.DeserializeBackupProtectedItemData(item)); } value = array; continue; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectedItemResourceList.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectedItemResourceList.cs index 300073ff24918..f40b7eccd0353 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectedItemResourceList.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectedItemResourceList.cs @@ -17,20 +17,20 @@ internal partial class ProtectedItemResourceList /// Initializes a new instance of ProtectedItemResourceList. internal ProtectedItemResourceList() { - Value = new ChangeTrackingList(); + Value = new ChangeTrackingList(); } /// Initializes a new instance of ProtectedItemResourceList. /// List of resources. /// The uri to fetch the next page of resources. - internal ProtectedItemResourceList(IReadOnlyList value, string nextLink) + internal ProtectedItemResourceList(IReadOnlyList value, string nextLink) { Value = value; NextLink = nextLink; } /// List of resources. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } /// The uri to fetch the next page of resources. public string NextLink { get; } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionContainerResourceList.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionContainerResourceList.Serialization.cs index 0e8276b04b9c2..0d66e45e760c8 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionContainerResourceList.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionContainerResourceList.Serialization.cs @@ -16,7 +16,7 @@ internal partial class ProtectionContainerResourceList { internal static ProtectionContainerResourceList DeserializeProtectionContainerResourceList(JsonElement element) { - Optional> value = default; + Optional> value = default; Optional nextLink = default; foreach (var property in element.EnumerateObject()) { @@ -27,10 +27,10 @@ internal static ProtectionContainerResourceList DeserializeProtectionContainerRe property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ProtectionContainerResourceData.DeserializeProtectionContainerResourceData(item)); + array.Add(BackupProtectionContainerData.DeserializeBackupProtectionContainerData(item)); } value = array; continue; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionContainerResourceList.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionContainerResourceList.cs index 4b75bda09e096..86ca7355c35c4 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionContainerResourceList.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionContainerResourceList.cs @@ -17,20 +17,20 @@ internal partial class ProtectionContainerResourceList /// Initializes a new instance of ProtectionContainerResourceList. internal ProtectionContainerResourceList() { - Value = new ChangeTrackingList(); + Value = new ChangeTrackingList(); } /// Initializes a new instance of ProtectionContainerResourceList. /// List of resources. /// The uri to fetch the next page of resources. - internal ProtectionContainerResourceList(IReadOnlyList value, string nextLink) + internal ProtectionContainerResourceList(IReadOnlyList value, string nextLink) { Value = value; NextLink = nextLink; } /// List of resources. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } /// The uri to fetch the next page of resources. public string NextLink { get; } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionIntentItemType.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionIntentItemType.cs index 97fb2a6cd4d3a..cf64cab8397cf 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionIntentItemType.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionIntentItemType.cs @@ -27,7 +27,7 @@ public ProtectionIntentItemType(string value) private const string RecoveryServiceVaultItemValue = "RecoveryServiceVaultItem"; private const string AzureWorkloadContainerAutoProtectionIntentValue = "AzureWorkloadContainerAutoProtectionIntent"; private const string AzureWorkloadAutoProtectionIntentValue = "AzureWorkloadAutoProtectionIntent"; - private const string AzureWorkloadSQLAutoProtectionIntentValue = "AzureWorkloadSQLAutoProtectionIntent"; + private const string AzureWorkloadSqlAutoProtectionIntentValue = "AzureWorkloadSQLAutoProtectionIntent"; /// Invalid. public static ProtectionIntentItemType Invalid { get; } = new ProtectionIntentItemType(InvalidValue); @@ -40,7 +40,7 @@ public ProtectionIntentItemType(string value) /// AzureWorkloadAutoProtectionIntent. public static ProtectionIntentItemType AzureWorkloadAutoProtectionIntent { get; } = new ProtectionIntentItemType(AzureWorkloadAutoProtectionIntentValue); /// AzureWorkloadSQLAutoProtectionIntent. - public static ProtectionIntentItemType AzureWorkloadSQLAutoProtectionIntent { get; } = new ProtectionIntentItemType(AzureWorkloadSQLAutoProtectionIntentValue); + public static ProtectionIntentItemType AzureWorkloadSqlAutoProtectionIntent { get; } = new ProtectionIntentItemType(AzureWorkloadSqlAutoProtectionIntentValue); /// Determines if two values are the same. public static bool operator ==(ProtectionIntentItemType left, ProtectionIntentItemType right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionIntentResourceList.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionIntentResourceList.Serialization.cs index 54b8a1913bc68..861082336c2cf 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionIntentResourceList.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionIntentResourceList.Serialization.cs @@ -16,7 +16,7 @@ internal partial class ProtectionIntentResourceList { internal static ProtectionIntentResourceList DeserializeProtectionIntentResourceList(JsonElement element) { - Optional> value = default; + Optional> value = default; Optional nextLink = default; foreach (var property in element.EnumerateObject()) { @@ -27,10 +27,10 @@ internal static ProtectionIntentResourceList DeserializeProtectionIntentResource property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ProtectionIntentResourceData.DeserializeProtectionIntentResourceData(item)); + array.Add(BackupProtectionIntentData.DeserializeBackupProtectionIntentData(item)); } value = array; continue; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionIntentResourceList.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionIntentResourceList.cs index 89e0e34cf62df..06383471f8542 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionIntentResourceList.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionIntentResourceList.cs @@ -17,20 +17,20 @@ internal partial class ProtectionIntentResourceList /// Initializes a new instance of ProtectionIntentResourceList. internal ProtectionIntentResourceList() { - Value = new ChangeTrackingList(); + Value = new ChangeTrackingList(); } /// Initializes a new instance of ProtectionIntentResourceList. /// List of resources. /// The uri to fetch the next page of resources. - internal ProtectionIntentResourceList(IReadOnlyList value, string nextLink) + internal ProtectionIntentResourceList(IReadOnlyList value, string nextLink) { Value = value; NextLink = nextLink; } /// List of resources. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } /// The uri to fetch the next page of resources. public string NextLink { get; } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionPolicyResourceData.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionPolicyResourceData.Serialization.cs deleted file mode 100644 index 25c69c449a221..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionPolicyResourceData.Serialization.cs +++ /dev/null @@ -1,129 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using System.Text.Json; -using Azure; -using Azure.Core; -using Azure.ResourceManager.Models; -using Azure.ResourceManager.RecoveryServicesBackup.Models; - -namespace Azure.ResourceManager.RecoveryServicesBackup -{ - public partial class ProtectionPolicyResourceData : IUtf8JsonSerializable - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) - { - writer.WriteStartObject(); - if (Optional.IsDefined(Properties)) - { - writer.WritePropertyName("properties"u8); - writer.WriteObjectValue(Properties); - } - if (Optional.IsDefined(ETag)) - { - writer.WritePropertyName("eTag"u8); - writer.WriteStringValue(ETag.Value.ToString()); - } - if (Optional.IsCollectionDefined(Tags)) - { - writer.WritePropertyName("tags"u8); - writer.WriteStartObject(); - foreach (var item in Tags) - { - writer.WritePropertyName(item.Key); - writer.WriteStringValue(item.Value); - } - writer.WriteEndObject(); - } - writer.WritePropertyName("location"u8); - writer.WriteStringValue(Location); - writer.WriteEndObject(); - } - - internal static ProtectionPolicyResourceData DeserializeProtectionPolicyResourceData(JsonElement element) - { - Optional properties = default; - Optional eTag = default; - Optional> tags = default; - AzureLocation location = default; - ResourceIdentifier id = default; - string name = default; - ResourceType type = default; - Optional systemData = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("properties"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - properties = ProtectionPolicy.DeserializeProtectionPolicy(property.Value); - continue; - } - if (property.NameEquals("eTag"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - eTag = new ETag(property.Value.GetString()); - continue; - } - if (property.NameEquals("tags"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) - { - dictionary.Add(property0.Name, property0.Value.GetString()); - } - tags = dictionary; - continue; - } - if (property.NameEquals("location"u8)) - { - location = new AzureLocation(property.Value.GetString()); - continue; - } - if (property.NameEquals("id"u8)) - { - id = new ResourceIdentifier(property.Value.GetString()); - continue; - } - if (property.NameEquals("name"u8)) - { - name = property.Value.GetString(); - continue; - } - if (property.NameEquals("type"u8)) - { - type = new ResourceType(property.Value.GetString()); - continue; - } - if (property.NameEquals("systemData"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); - continue; - } - } - return new ProtectionPolicyResourceData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, properties.Value, Optional.ToNullable(eTag)); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionPolicyResourceList.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionPolicyResourceList.Serialization.cs index ee5d34c6cd8b3..e2fd69e0ec167 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionPolicyResourceList.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionPolicyResourceList.Serialization.cs @@ -16,7 +16,7 @@ internal partial class ProtectionPolicyResourceList { internal static ProtectionPolicyResourceList DeserializeProtectionPolicyResourceList(JsonElement element) { - Optional> value = default; + Optional> value = default; Optional nextLink = default; foreach (var property in element.EnumerateObject()) { @@ -27,10 +27,10 @@ internal static ProtectionPolicyResourceList DeserializeProtectionPolicyResource property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ProtectionPolicyResourceData.DeserializeProtectionPolicyResourceData(item)); + array.Add(BackupProtectionPolicyData.DeserializeBackupProtectionPolicyData(item)); } value = array; continue; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionPolicyResourceList.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionPolicyResourceList.cs index 00d07dda150d0..b2dd9ac2a1e71 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionPolicyResourceList.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionPolicyResourceList.cs @@ -17,20 +17,20 @@ internal partial class ProtectionPolicyResourceList /// Initializes a new instance of ProtectionPolicyResourceList. internal ProtectionPolicyResourceList() { - Value = new ChangeTrackingList(); + Value = new ChangeTrackingList(); } /// Initializes a new instance of ProtectionPolicyResourceList. /// List of resources. /// The uri to fetch the next page of resources. - internal ProtectionPolicyResourceList(IReadOnlyList value, string nextLink) + internal ProtectionPolicyResourceList(IReadOnlyList value, string nextLink) { Value = value; NextLink = nextLink; } /// List of resources. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } /// The uri to fetch the next page of resources. public string NextLink { get; } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionState.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionState.cs deleted file mode 100644 index 79a2dc0d68318..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionState.cs +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - /// Backup state of this backup item. - public readonly partial struct ProtectionState : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public ProtectionState(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string InvalidValue = "Invalid"; - private const string IRPendingValue = "IRPending"; - private const string ProtectedValue = "Protected"; - private const string ProtectionErrorValue = "ProtectionError"; - private const string ProtectionStoppedValue = "ProtectionStopped"; - private const string ProtectionPausedValue = "ProtectionPaused"; - private const string BackupsSuspendedValue = "BackupsSuspended"; - - /// Invalid. - public static ProtectionState Invalid { get; } = new ProtectionState(InvalidValue); - /// IRPending. - public static ProtectionState IRPending { get; } = new ProtectionState(IRPendingValue); - /// Protected. - public static ProtectionState Protected { get; } = new ProtectionState(ProtectedValue); - /// ProtectionError. - public static ProtectionState ProtectionError { get; } = new ProtectionState(ProtectionErrorValue); - /// ProtectionStopped. - public static ProtectionState ProtectionStopped { get; } = new ProtectionState(ProtectionStoppedValue); - /// ProtectionPaused. - public static ProtectionState ProtectionPaused { get; } = new ProtectionState(ProtectionPausedValue); - /// BackupsSuspended. - public static ProtectionState BackupsSuspended { get; } = new ProtectionState(BackupsSuspendedValue); - /// Determines if two values are the same. - public static bool operator ==(ProtectionState left, ProtectionState right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(ProtectionState left, ProtectionState right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator ProtectionState(string value) => new ProtectionState(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is ProtectionState other && Equals(other); - /// - public bool Equals(ProtectionState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionStatus.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionStatus.cs deleted file mode 100644 index dc6669441c910..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProtectionStatus.cs +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - /// Specifies whether the container is registered or not. - public readonly partial struct ProtectionStatus : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public ProtectionStatus(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string InvalidValue = "Invalid"; - private const string NotProtectedValue = "NotProtected"; - private const string ProtectingValue = "Protecting"; - private const string ProtectedValue = "Protected"; - private const string ProtectionFailedValue = "ProtectionFailed"; - - /// Invalid. - public static ProtectionStatus Invalid { get; } = new ProtectionStatus(InvalidValue); - /// NotProtected. - public static ProtectionStatus NotProtected { get; } = new ProtectionStatus(NotProtectedValue); - /// Protecting. - public static ProtectionStatus Protecting { get; } = new ProtectionStatus(ProtectingValue); - /// Protected. - public static ProtectionStatus Protected { get; } = new ProtectionStatus(ProtectedValue); - /// ProtectionFailed. - public static ProtectionStatus ProtectionFailed { get; } = new ProtectionStatus(ProtectionFailedValue); - /// Determines if two values are the same. - public static bool operator ==(ProtectionStatus left, ProtectionStatus right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(ProtectionStatus left, ProtectionStatus right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator ProtectionStatus(string value) => new ProtectionStatus(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is ProtectionStatus other && Equals(other); - /// - public bool Equals(ProtectionStatus other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RestoreRequestResource.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProvisionIlrConnectionContent.Serialization.cs similarity index 89% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RestoreRequestResource.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProvisionIlrConnectionContent.Serialization.cs index c77ea7b50b597..4058c541688b4 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RestoreRequestResource.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProvisionIlrConnectionContent.Serialization.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class RestoreRequestResource : IUtf8JsonSerializable + public partial class ProvisionIlrConnectionContent : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -44,9 +44,9 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static RestoreRequestResource DeserializeRestoreRequestResource(JsonElement element) + internal static ProvisionIlrConnectionContent DeserializeProvisionIlrConnectionContent(JsonElement element) { - Optional properties = default; + Optional properties = default; Optional eTag = default; Optional> tags = default; AzureLocation location = default; @@ -63,7 +63,7 @@ internal static RestoreRequestResource DeserializeRestoreRequestResource(JsonEle property.ThrowNonNullablePropertyIsNull(); continue; } - properties = RestoreRequest.DeserializeRestoreRequest(property.Value); + properties = IlrContent.DeserializeIlrContent(property.Value); continue; } if (property.NameEquals("eTag"u8)) @@ -122,7 +122,7 @@ internal static RestoreRequestResource DeserializeRestoreRequestResource(JsonEle continue; } } - return new RestoreRequestResource(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, properties.Value, Optional.ToNullable(eTag)); + return new ProvisionIlrConnectionContent(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, properties.Value, Optional.ToNullable(eTag)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ILRRequestResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProvisionIlrConnectionContent.cs similarity index 58% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ILRRequestResource.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProvisionIlrConnectionContent.cs index 21d99f187c2ed..f63e8e34098de 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ILRRequestResource.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProvisionIlrConnectionContent.cs @@ -13,15 +13,15 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Parameters to Provision ILR API. - public partial class ILRRequestResource : TrackedResourceData + public partial class ProvisionIlrConnectionContent : TrackedResourceData { - /// Initializes a new instance of ILRRequestResource. + /// Initializes a new instance of ProvisionIlrConnectionContent. /// The location. - public ILRRequestResource(AzureLocation location) : base(location) + public ProvisionIlrConnectionContent(AzureLocation location) : base(location) { } - /// Initializes a new instance of ILRRequestResource. + /// Initializes a new instance of ProvisionIlrConnectionContent. /// The id. /// The name. /// The resourceType. @@ -30,11 +30,11 @@ public ILRRequestResource(AzureLocation location) : base(location) /// The location. /// /// ILRRequestResource properties - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . /// /// Optional ETag. - internal ILRRequestResource(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ILRRequest properties, ETag? eTag) : base(id, name, resourceType, systemData, tags, location) + internal ProvisionIlrConnectionContent(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, IlrContent properties, ETag? eTag) : base(id, name, resourceType, systemData, tags, location) { Properties = properties; ETag = eTag; @@ -42,10 +42,10 @@ internal ILRRequestResource(ResourceIdentifier id, string name, ResourceType res /// /// ILRRequestResource properties - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . /// - public ILRRequest Properties { get; set; } + public IlrContent Properties { get; set; } /// Optional ETag. public ETag? ETag { get; set; } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProvisioningState.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProvisioningState.cs deleted file mode 100644 index d60851d80bb97..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ProvisioningState.cs +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - /// Gets or sets provisioning state of the private endpoint connection. - public readonly partial struct ProvisioningState : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public ProvisioningState(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string SucceededValue = "Succeeded"; - private const string DeletingValue = "Deleting"; - private const string FailedValue = "Failed"; - private const string PendingValue = "Pending"; - - /// Succeeded. - public static ProvisioningState Succeeded { get; } = new ProvisioningState(SucceededValue); - /// Deleting. - public static ProvisioningState Deleting { get; } = new ProvisioningState(DeletingValue); - /// Failed. - public static ProvisioningState Failed { get; } = new ProvisioningState(FailedValue); - /// Pending. - public static ProvisioningState Pending { get; } = new ProvisioningState(PendingValue); - /// Determines if two values are the same. - public static bool operator ==(ProvisioningState left, ProvisioningState right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(ProvisioningState left, ProvisioningState right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator ProvisioningState(string value) => new ProvisioningState(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is ProvisioningState other && Equals(other); - /// - public bool Equals(ProvisioningState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPoint.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPoint.cs deleted file mode 100644 index 7a4a7d864477e..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPoint.cs +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - /// - /// Base class for backup copies. Workload-specific backup copies are derived from this class. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , and . - /// - public abstract partial class RecoveryPoint - { - /// Initializes a new instance of RecoveryPoint. - protected RecoveryPoint() - { - } - - /// Initializes a new instance of RecoveryPoint. - /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. - internal RecoveryPoint(string objectType) - { - ObjectType = objectType; - } - - /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. - internal string ObjectType { get; set; } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPointProperties.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPointProperties.Serialization.cs index 7dbc30126eb71..a630224e93fb6 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPointProperties.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPointProperties.Serialization.cs @@ -16,10 +16,10 @@ public partial class RecoveryPointProperties : IUtf8JsonSerializable void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - if (Optional.IsDefined(ExpiryOn)) + if (Optional.IsDefined(ExpireOn)) { writer.WritePropertyName("expiryTime"u8); - writer.WriteStringValue(ExpiryOn.Value, "O"); + writer.WriteStringValue(ExpireOn.Value, "O"); } if (Optional.IsDefined(RuleName)) { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPointProperties.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPointProperties.cs index 733ee4a21c27c..350a3e43bb4c6 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPointProperties.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPointProperties.cs @@ -18,16 +18,16 @@ public RecoveryPointProperties() } /// Initializes a new instance of RecoveryPointProperties. - /// Expiry time of Recovery Point in UTC. + /// Expiry time of Recovery Point in UTC. /// Rule name tagged on Recovery Point that governs life cycle. - internal RecoveryPointProperties(DateTimeOffset? expiryOn, string ruleName) + internal RecoveryPointProperties(DateTimeOffset? expireOn, string ruleName) { - ExpiryOn = expiryOn; + ExpireOn = expireOn; RuleName = ruleName; } /// Expiry time of Recovery Point in UTC. - public DateTimeOffset? ExpiryOn { get; set; } + public DateTimeOffset? ExpireOn { get; set; } /// Rule name tagged on Recovery Point that governs life cycle. public string RuleName { get; set; } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPointResourceList.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPointResourceList.Serialization.cs index 1d5c511900da8..3838e87cab2a4 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPointResourceList.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPointResourceList.Serialization.cs @@ -16,7 +16,7 @@ internal partial class RecoveryPointResourceList { internal static RecoveryPointResourceList DeserializeRecoveryPointResourceList(JsonElement element) { - Optional> value = default; + Optional> value = default; Optional nextLink = default; foreach (var property in element.EnumerateObject()) { @@ -27,10 +27,10 @@ internal static RecoveryPointResourceList DeserializeRecoveryPointResourceList(J property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(RecoveryPointResourceData.DeserializeRecoveryPointResourceData(item)); + array.Add(BackupRecoveryPointData.DeserializeBackupRecoveryPointData(item)); } value = array; continue; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPointResourceList.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPointResourceList.cs index 221298765ae1a..0a27c5efba46f 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPointResourceList.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPointResourceList.cs @@ -17,20 +17,20 @@ internal partial class RecoveryPointResourceList /// Initializes a new instance of RecoveryPointResourceList. internal RecoveryPointResourceList() { - Value = new ChangeTrackingList(); + Value = new ChangeTrackingList(); } /// Initializes a new instance of RecoveryPointResourceList. /// List of resources. /// The uri to fetch the next page of resources. - internal RecoveryPointResourceList(IReadOnlyList value, string nextLink) + internal RecoveryPointResourceList(IReadOnlyList value, string nextLink) { Value = value; NextLink = nextLink; } /// List of resources. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } /// The uri to fetch the next page of resources. public string NextLink { get; } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ListRecoveryPointsRecommendedForMoveContent.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPointsRecommendedForMoveContent.Serialization.cs similarity index 91% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ListRecoveryPointsRecommendedForMoveContent.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPointsRecommendedForMoveContent.Serialization.cs index b112131b0f656..2ac478813c451 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ListRecoveryPointsRecommendedForMoveContent.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPointsRecommendedForMoveContent.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class ListRecoveryPointsRecommendedForMoveContent : IUtf8JsonSerializable + public partial class RecoveryPointsRecommendedForMoveContent : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ListRecoveryPointsRecommendedForMoveContent.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPointsRecommendedForMoveContent.cs similarity index 73% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ListRecoveryPointsRecommendedForMoveContent.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPointsRecommendedForMoveContent.cs index 5679d91c968e5..46b437f4e9b72 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ListRecoveryPointsRecommendedForMoveContent.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryPointsRecommendedForMoveContent.cs @@ -11,10 +11,10 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// ListRecoveryPointsRecommendedForMoveRequest Request. - public partial class ListRecoveryPointsRecommendedForMoveContent + public partial class RecoveryPointsRecommendedForMoveContent { - /// Initializes a new instance of ListRecoveryPointsRecommendedForMoveContent. - public ListRecoveryPointsRecommendedForMoveContent() + /// Initializes a new instance of RecoveryPointsRecommendedForMoveContent. + public RecoveryPointsRecommendedForMoveContent() { ExcludedRPList = new ChangeTrackingList(); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadAutoProtectionIntent.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryServiceVaultProtectionIntent.Serialization.cs similarity index 64% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadAutoProtectionIntent.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryServiceVaultProtectionIntent.Serialization.cs index 218f388139990..219570ab7001b 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadAutoProtectionIntent.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryServiceVaultProtectionIntent.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureWorkloadAutoProtectionIntent : IUtf8JsonSerializable + public partial class RecoveryServiceVaultProtectionIntent : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -45,21 +45,22 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureWorkloadAutoProtectionIntent DeserializeAzureWorkloadAutoProtectionIntent(JsonElement element) + internal static RecoveryServiceVaultProtectionIntent DeserializeRecoveryServiceVaultProtectionIntent(JsonElement element) { if (element.TryGetProperty("protectionIntentItemType", out JsonElement discriminator)) { switch (discriminator.GetString()) { - case "AzureWorkloadSQLAutoProtectionIntent": return AzureWorkloadSQLAutoProtectionIntent.DeserializeAzureWorkloadSQLAutoProtectionIntent(element); + case "AzureWorkloadAutoProtectionIntent": return WorkloadAutoProtectionIntent.DeserializeWorkloadAutoProtectionIntent(element); + case "AzureWorkloadSQLAutoProtectionIntent": return WorkloadSqlAutoProtectionIntent.DeserializeWorkloadSqlAutoProtectionIntent(element); } } ProtectionIntentItemType protectionIntentItemType = "AutoRest.CSharp.Output.Models.Types.EnumTypeValue"; Optional backupManagementType = default; - Optional sourceResourceId = default; - Optional itemId = default; - Optional policyId = default; - Optional protectionState = default; + Optional sourceResourceId = default; + Optional itemId = default; + Optional policyId = default; + Optional protectionState = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("protectionIntentItemType"u8)) @@ -79,17 +80,32 @@ internal static AzureWorkloadAutoProtectionIntent DeserializeAzureWorkloadAutoPr } if (property.NameEquals("sourceResourceId"u8)) { - sourceResourceId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + sourceResourceId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("itemId"u8)) { - itemId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + itemId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("policyId"u8)) { - policyId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + policyId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("protectionState"u8)) @@ -99,11 +115,11 @@ internal static AzureWorkloadAutoProtectionIntent DeserializeAzureWorkloadAutoPr property.ThrowNonNullablePropertyIsNull(); continue; } - protectionState = new ProtectionStatus(property.Value.GetString()); + protectionState = new BackupProtectionStatus(property.Value.GetString()); continue; } } - return new AzureWorkloadAutoProtectionIntent(protectionIntentItemType, Optional.ToNullable(backupManagementType), sourceResourceId.Value, itemId.Value, policyId.Value, Optional.ToNullable(protectionState)); + return new RecoveryServiceVaultProtectionIntent(protectionIntentItemType, Optional.ToNullable(backupManagementType), sourceResourceId.Value, itemId.Value, policyId.Value, Optional.ToNullable(protectionState)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryServiceVaultProtectionIntent.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryServiceVaultProtectionIntent.cs new file mode 100644 index 0000000000000..3c1aa01111f6d --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryServiceVaultProtectionIntent.cs @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using Azure.Core; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Models +{ + /// + /// Azure Recovery Services Vault specific protection intent item. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + public partial class RecoveryServiceVaultProtectionIntent : BackupGenericProtectionIntent + { + /// Initializes a new instance of RecoveryServiceVaultProtectionIntent. + public RecoveryServiceVaultProtectionIntent() + { + ProtectionIntentItemType = ProtectionIntentItemType.RecoveryServiceVaultItem; + } + + /// Initializes a new instance of RecoveryServiceVaultProtectionIntent. + /// backup protectionIntent type. + /// Type of backup management for the backed up item. + /// ARM ID of the resource to be backed up. + /// ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId. + /// ID of the backup policy with which this item is backed up. + /// Backup state of this backup item. + internal RecoveryServiceVaultProtectionIntent(ProtectionIntentItemType protectionIntentItemType, BackupManagementType? backupManagementType, ResourceIdentifier sourceResourceId, ResourceIdentifier itemId, ResourceIdentifier policyId, BackupProtectionStatus? protectionState) : base(protectionIntentItemType, backupManagementType, sourceResourceId, itemId, policyId, protectionState) + { + ProtectionIntentItemType = protectionIntentItemType; + } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryType.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryType.cs deleted file mode 100644 index 0f4788b2aa3df..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RecoveryType.cs +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - /// Type of this recovery. - public readonly partial struct RecoveryType : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public RecoveryType(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string InvalidValue = "Invalid"; - private const string OriginalLocationValue = "OriginalLocation"; - private const string AlternateLocationValue = "AlternateLocation"; - private const string RestoreDisksValue = "RestoreDisks"; - private const string OfflineValue = "Offline"; - - /// Invalid. - public static RecoveryType Invalid { get; } = new RecoveryType(InvalidValue); - /// OriginalLocation. - public static RecoveryType OriginalLocation { get; } = new RecoveryType(OriginalLocationValue); - /// AlternateLocation. - public static RecoveryType AlternateLocation { get; } = new RecoveryType(AlternateLocationValue); - /// RestoreDisks. - public static RecoveryType RestoreDisks { get; } = new RecoveryType(RestoreDisksValue); - /// Offline. - public static RecoveryType Offline { get; } = new RecoveryType(OfflineValue); - /// Determines if two values are the same. - public static bool operator ==(RecoveryType left, RecoveryType right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(RecoveryType left, RecoveryType right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator RecoveryType(string value) => new RecoveryType(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is RecoveryType other && Equals(other); - /// - public bool Equals(RecoveryType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ResourceGuardOperationDetail.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ResourceGuardOperationDetail.Serialization.cs index 1638efc07e8b1..efd7535fedfff 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ResourceGuardOperationDetail.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ResourceGuardOperationDetail.Serialization.cs @@ -20,10 +20,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("vaultCriticalOperation"u8); writer.WriteStringValue(VaultCriticalOperation); } - if (Optional.IsDefined(DefaultResourceRequest)) + if (Optional.IsDefined(DefaultResourceId)) { writer.WritePropertyName("defaultResourceRequest"u8); - writer.WriteStringValue(DefaultResourceRequest); + writer.WriteStringValue(DefaultResourceId); } writer.WriteEndObject(); } @@ -31,7 +31,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) internal static ResourceGuardOperationDetail DeserializeResourceGuardOperationDetail(JsonElement element) { Optional vaultCriticalOperation = default; - Optional defaultResourceRequest = default; + Optional defaultResourceRequest = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("vaultCriticalOperation"u8)) @@ -41,7 +41,12 @@ internal static ResourceGuardOperationDetail DeserializeResourceGuardOperationDe } if (property.NameEquals("defaultResourceRequest"u8)) { - defaultResourceRequest = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + defaultResourceRequest = new ResourceIdentifier(property.Value.GetString()); continue; } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ResourceGuardOperationDetail.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ResourceGuardOperationDetail.cs index ca09a5d9e6961..912299023bf85 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ResourceGuardOperationDetail.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ResourceGuardOperationDetail.cs @@ -5,6 +5,8 @@ #nullable disable +using Azure.Core; + namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// The ResourceGuardOperationDetail. @@ -17,16 +19,16 @@ public ResourceGuardOperationDetail() /// Initializes a new instance of ResourceGuardOperationDetail. /// - /// - internal ResourceGuardOperationDetail(string vaultCriticalOperation, string defaultResourceRequest) + /// + internal ResourceGuardOperationDetail(string vaultCriticalOperation, ResourceIdentifier defaultResourceId) { VaultCriticalOperation = vaultCriticalOperation; - DefaultResourceRequest = defaultResourceRequest; + DefaultResourceId = defaultResourceId; } /// Gets or sets the vault critical operation. public string VaultCriticalOperation { get; set; } - /// Gets or sets the default resource request. - public string DefaultResourceRequest { get; set; } + /// Gets or sets the default resource id. + public ResourceIdentifier DefaultResourceId { get; set; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ResourceGuardProxyBaseResourceData.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ResourceGuardProxyBaseResourceData.Serialization.cs deleted file mode 100644 index 2a55dd7dca4ed..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ResourceGuardProxyBaseResourceData.Serialization.cs +++ /dev/null @@ -1,129 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using System.Text.Json; -using Azure; -using Azure.Core; -using Azure.ResourceManager.Models; -using Azure.ResourceManager.RecoveryServicesBackup.Models; - -namespace Azure.ResourceManager.RecoveryServicesBackup -{ - public partial class ResourceGuardProxyBaseResourceData : IUtf8JsonSerializable - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) - { - writer.WriteStartObject(); - if (Optional.IsDefined(Properties)) - { - writer.WritePropertyName("properties"u8); - writer.WriteObjectValue(Properties); - } - if (Optional.IsDefined(ETag)) - { - writer.WritePropertyName("eTag"u8); - writer.WriteStringValue(ETag.Value.ToString()); - } - if (Optional.IsCollectionDefined(Tags)) - { - writer.WritePropertyName("tags"u8); - writer.WriteStartObject(); - foreach (var item in Tags) - { - writer.WritePropertyName(item.Key); - writer.WriteStringValue(item.Value); - } - writer.WriteEndObject(); - } - writer.WritePropertyName("location"u8); - writer.WriteStringValue(Location); - writer.WriteEndObject(); - } - - internal static ResourceGuardProxyBaseResourceData DeserializeResourceGuardProxyBaseResourceData(JsonElement element) - { - Optional properties = default; - Optional eTag = default; - Optional> tags = default; - AzureLocation location = default; - ResourceIdentifier id = default; - string name = default; - ResourceType type = default; - Optional systemData = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("properties"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - properties = ResourceGuardProxyBase.DeserializeResourceGuardProxyBase(property.Value); - continue; - } - if (property.NameEquals("eTag"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - eTag = new ETag(property.Value.GetString()); - continue; - } - if (property.NameEquals("tags"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) - { - dictionary.Add(property0.Name, property0.Value.GetString()); - } - tags = dictionary; - continue; - } - if (property.NameEquals("location"u8)) - { - location = new AzureLocation(property.Value.GetString()); - continue; - } - if (property.NameEquals("id"u8)) - { - id = new ResourceIdentifier(property.Value.GetString()); - continue; - } - if (property.NameEquals("name"u8)) - { - name = property.Value.GetString(); - continue; - } - if (property.NameEquals("type"u8)) - { - type = new ResourceType(property.Value.GetString()); - continue; - } - if (property.NameEquals("systemData"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); - continue; - } - } - return new ResourceGuardProxyBaseResourceData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, properties.Value, Optional.ToNullable(eTag)); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ResourceGuardProxyBaseResourceList.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ResourceGuardProxyBaseResourceList.Serialization.cs index e3d25d3e7e3d7..78db35e1fb4d3 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ResourceGuardProxyBaseResourceList.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ResourceGuardProxyBaseResourceList.Serialization.cs @@ -16,7 +16,7 @@ internal partial class ResourceGuardProxyBaseResourceList { internal static ResourceGuardProxyBaseResourceList DeserializeResourceGuardProxyBaseResourceList(JsonElement element) { - Optional> value = default; + Optional> value = default; Optional nextLink = default; foreach (var property in element.EnumerateObject()) { @@ -27,10 +27,10 @@ internal static ResourceGuardProxyBaseResourceList DeserializeResourceGuardProxy property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ResourceGuardProxyBaseResourceData.DeserializeResourceGuardProxyBaseResourceData(item)); + array.Add(ResourceGuardProxyData.DeserializeResourceGuardProxyData(item)); } value = array; continue; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ResourceGuardProxyBaseResourceList.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ResourceGuardProxyBaseResourceList.cs index 457a6bc85aa2e..298fb3d86a6a9 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ResourceGuardProxyBaseResourceList.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ResourceGuardProxyBaseResourceList.cs @@ -17,20 +17,20 @@ internal partial class ResourceGuardProxyBaseResourceList /// Initializes a new instance of ResourceGuardProxyBaseResourceList. internal ResourceGuardProxyBaseResourceList() { - Value = new ChangeTrackingList(); + Value = new ChangeTrackingList(); } /// Initializes a new instance of ResourceGuardProxyBaseResourceList. /// List of resources. /// The uri to fetch the next page of resources. - internal ResourceGuardProxyBaseResourceList(IReadOnlyList value, string nextLink) + internal ResourceGuardProxyBaseResourceList(IReadOnlyList value, string nextLink) { Value = value; NextLink = nextLink; } /// List of resources. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } /// The uri to fetch the next page of resources. public string NextLink { get; } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupEngineBaseResourceData.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ResourceGuardProxyData.Serialization.cs similarity index 89% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupEngineBaseResourceData.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ResourceGuardProxyData.Serialization.cs index 197e3147d80fa..5690d60c07ea6 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupEngineBaseResourceData.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ResourceGuardProxyData.Serialization.cs @@ -14,7 +14,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup { - public partial class BackupEngineBaseResourceData : IUtf8JsonSerializable + public partial class ResourceGuardProxyData : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -45,9 +45,9 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static BackupEngineBaseResourceData DeserializeBackupEngineBaseResourceData(JsonElement element) + internal static ResourceGuardProxyData DeserializeResourceGuardProxyData(JsonElement element) { - Optional properties = default; + Optional properties = default; Optional eTag = default; Optional> tags = default; AzureLocation location = default; @@ -64,7 +64,7 @@ internal static BackupEngineBaseResourceData DeserializeBackupEngineBaseResource property.ThrowNonNullablePropertyIsNull(); continue; } - properties = BackupEngineBase.DeserializeBackupEngineBase(property.Value); + properties = ResourceGuardProxyProperties.DeserializeResourceGuardProxyProperties(property.Value); continue; } if (property.NameEquals("eTag"u8)) @@ -123,7 +123,7 @@ internal static BackupEngineBaseResourceData DeserializeBackupEngineBaseResource continue; } } - return new BackupEngineBaseResourceData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, properties.Value, Optional.ToNullable(eTag)); + return new ResourceGuardProxyData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, properties.Value, Optional.ToNullable(eTag)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ResourceGuardProxyBase.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ResourceGuardProxyProperties.Serialization.cs similarity index 69% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ResourceGuardProxyBase.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ResourceGuardProxyProperties.Serialization.cs index c86a0adf5f397..4d214bb23bc59 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ResourceGuardProxyBase.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ResourceGuardProxyProperties.Serialization.cs @@ -5,13 +5,14 @@ #nullable disable +using System; using System.Collections.Generic; using System.Text.Json; using Azure.Core; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class ResourceGuardProxyBase : IUtf8JsonSerializable + public partial class ResourceGuardProxyProperties : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -31,10 +32,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndArray(); } - if (Optional.IsDefined(LastUpdatedTime)) + if (Optional.IsDefined(LastUpdatedOn)) { writer.WritePropertyName("lastUpdatedTime"u8); - writer.WriteStringValue(LastUpdatedTime); + writer.WriteStringValue(LastUpdatedOn.Value); } if (Optional.IsDefined(Description)) { @@ -44,17 +45,22 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static ResourceGuardProxyBase DeserializeResourceGuardProxyBase(JsonElement element) + internal static ResourceGuardProxyProperties DeserializeResourceGuardProxyProperties(JsonElement element) { - Optional resourceGuardResourceId = default; + Optional resourceGuardResourceId = default; Optional> resourceGuardOperationDetails = default; - Optional lastUpdatedTime = default; + Optional lastUpdatedTime = default; Optional description = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("resourceGuardResourceId"u8)) { - resourceGuardResourceId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + resourceGuardResourceId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("resourceGuardOperationDetails"u8)) @@ -74,7 +80,12 @@ internal static ResourceGuardProxyBase DeserializeResourceGuardProxyBase(JsonEle } if (property.NameEquals("lastUpdatedTime"u8)) { - lastUpdatedTime = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + lastUpdatedTime = property.Value.GetDateTimeOffset(); continue; } if (property.NameEquals("description"u8)) @@ -83,7 +94,7 @@ internal static ResourceGuardProxyBase DeserializeResourceGuardProxyBase(JsonEle continue; } } - return new ResourceGuardProxyBase(resourceGuardResourceId.Value, Optional.ToList(resourceGuardOperationDetails), lastUpdatedTime.Value, description.Value); + return new ResourceGuardProxyProperties(resourceGuardResourceId.Value, Optional.ToList(resourceGuardOperationDetails), Optional.ToNullable(lastUpdatedTime), description.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ResourceGuardProxyBase.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ResourceGuardProxyProperties.cs similarity index 62% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ResourceGuardProxyBase.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ResourceGuardProxyProperties.cs index bcb9c35873ec3..e64509c30bd03 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ResourceGuardProxyBase.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ResourceGuardProxyProperties.cs @@ -5,39 +5,40 @@ #nullable disable +using System; using System.Collections.Generic; using Azure.Core; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - /// The ResourceGuardProxyBase. - public partial class ResourceGuardProxyBase + /// The ResourceGuardProxyProperties. + public partial class ResourceGuardProxyProperties { - /// Initializes a new instance of ResourceGuardProxyBase. - public ResourceGuardProxyBase() + /// Initializes a new instance of ResourceGuardProxyProperties. + public ResourceGuardProxyProperties() { ResourceGuardOperationDetails = new ChangeTrackingList(); } - /// Initializes a new instance of ResourceGuardProxyBase. + /// Initializes a new instance of ResourceGuardProxyProperties. /// /// - /// + /// /// - internal ResourceGuardProxyBase(string resourceGuardResourceId, IList resourceGuardOperationDetails, string lastUpdatedTime, string description) + internal ResourceGuardProxyProperties(ResourceIdentifier resourceGuardResourceId, IList resourceGuardOperationDetails, DateTimeOffset? lastUpdatedOn, string description) { ResourceGuardResourceId = resourceGuardResourceId; ResourceGuardOperationDetails = resourceGuardOperationDetails; - LastUpdatedTime = lastUpdatedTime; + LastUpdatedOn = lastUpdatedOn; Description = description; } /// Gets or sets the resource guard resource id. - public string ResourceGuardResourceId { get; set; } + public ResourceIdentifier ResourceGuardResourceId { get; set; } /// Gets the resource guard operation details. public IList ResourceGuardOperationDetails { get; } - /// Gets or sets the last updated time. - public string LastUpdatedTime { get; set; } + /// Gets or sets the last updated on. + public DateTimeOffset? LastUpdatedOn { get; set; } /// Gets or sets the description. public string Description { get; set; } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureResourceProtectionIntent.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ResourceProtectionIntent.Serialization.cs similarity index 68% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureResourceProtectionIntent.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ResourceProtectionIntent.Serialization.cs index 546d3bc0469b3..a323a9b3f18b0 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureResourceProtectionIntent.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ResourceProtectionIntent.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureResourceProtectionIntent : IUtf8JsonSerializable + public partial class ResourceProtectionIntent : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -50,15 +50,15 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureResourceProtectionIntent DeserializeAzureResourceProtectionIntent(JsonElement element) + internal static ResourceProtectionIntent DeserializeResourceProtectionIntent(JsonElement element) { Optional friendlyName = default; ProtectionIntentItemType protectionIntentItemType = default; Optional backupManagementType = default; - Optional sourceResourceId = default; - Optional itemId = default; - Optional policyId = default; - Optional protectionState = default; + Optional sourceResourceId = default; + Optional itemId = default; + Optional policyId = default; + Optional protectionState = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("friendlyName"u8)) @@ -83,17 +83,32 @@ internal static AzureResourceProtectionIntent DeserializeAzureResourceProtection } if (property.NameEquals("sourceResourceId"u8)) { - sourceResourceId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + sourceResourceId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("itemId"u8)) { - itemId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + itemId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("policyId"u8)) { - policyId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + policyId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("protectionState"u8)) @@ -103,11 +118,11 @@ internal static AzureResourceProtectionIntent DeserializeAzureResourceProtection property.ThrowNonNullablePropertyIsNull(); continue; } - protectionState = new ProtectionStatus(property.Value.GetString()); + protectionState = new BackupProtectionStatus(property.Value.GetString()); continue; } } - return new AzureResourceProtectionIntent(protectionIntentItemType, Optional.ToNullable(backupManagementType), sourceResourceId.Value, itemId.Value, policyId.Value, Optional.ToNullable(protectionState), friendlyName.Value); + return new ResourceProtectionIntent(protectionIntentItemType, Optional.ToNullable(backupManagementType), sourceResourceId.Value, itemId.Value, policyId.Value, Optional.ToNullable(protectionState), friendlyName.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureResourceProtectionIntent.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ResourceProtectionIntent.cs similarity index 65% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureResourceProtectionIntent.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ResourceProtectionIntent.cs index e76fa87ca07af..94abe217f323d 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureResourceProtectionIntent.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ResourceProtectionIntent.cs @@ -5,18 +5,20 @@ #nullable disable +using Azure.Core; + namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// IaaS VM specific backup protection intent item. - public partial class AzureResourceProtectionIntent : ProtectionIntent + public partial class ResourceProtectionIntent : BackupGenericProtectionIntent { - /// Initializes a new instance of AzureResourceProtectionIntent. - public AzureResourceProtectionIntent() + /// Initializes a new instance of ResourceProtectionIntent. + public ResourceProtectionIntent() { ProtectionIntentItemType = ProtectionIntentItemType.AzureResourceItem; } - /// Initializes a new instance of AzureResourceProtectionIntent. + /// Initializes a new instance of ResourceProtectionIntent. /// backup protectionIntent type. /// Type of backup management for the backed up item. /// ARM ID of the resource to be backed up. @@ -24,7 +26,7 @@ public AzureResourceProtectionIntent() /// ID of the backup policy with which this item is backed up. /// Backup state of this backup item. /// Friendly name of the VM represented by this backup item. - internal AzureResourceProtectionIntent(ProtectionIntentItemType protectionIntentItemType, BackupManagementType? backupManagementType, string sourceResourceId, string itemId, string policyId, ProtectionStatus? protectionState, string friendlyName) : base(protectionIntentItemType, backupManagementType, sourceResourceId, itemId, policyId, protectionState) + internal ResourceProtectionIntent(ProtectionIntentItemType protectionIntentItemType, BackupManagementType? backupManagementType, ResourceIdentifier sourceResourceId, ResourceIdentifier itemId, ResourceIdentifier policyId, BackupProtectionStatus? protectionState, string friendlyName) : base(protectionIntentItemType, backupManagementType, sourceResourceId, itemId, policyId, protectionState) { FriendlyName = friendlyName; ProtectionIntentItemType = protectionIntentItemType; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RestoreContent.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RestoreContent.Serialization.cs new file mode 100644 index 0000000000000..75fc03a122403 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RestoreContent.Serialization.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Models +{ + public partial class RestoreContent : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("objectType"u8); + writer.WriteStringValue(ObjectType); + writer.WriteEndObject(); + } + + internal static RestoreContent DeserializeRestoreContent(JsonElement element) + { + if (element.TryGetProperty("objectType", out JsonElement discriminator)) + { + switch (discriminator.GetString()) + { + case "AzureFileShareRestoreRequest": return FileShareRestoreContent.DeserializeFileShareRestoreContent(element); + case "AzureWorkloadPointInTimeRestoreRequest": return WorkloadPointInTimeRestoreContent.DeserializeWorkloadPointInTimeRestoreContent(element); + case "AzureWorkloadRestoreRequest": return WorkloadRestoreContent.DeserializeWorkloadRestoreContent(element); + case "AzureWorkloadSAPHanaPointInTimeRestoreRequest": return WorkloadSapHanaPointInTimeRestoreContent.DeserializeWorkloadSapHanaPointInTimeRestoreContent(element); + case "AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest": return WorkloadSapHanaPointInTimeRestoreWithRehydrateContent.DeserializeWorkloadSapHanaPointInTimeRestoreWithRehydrateContent(element); + case "AzureWorkloadSAPHanaRestoreRequest": return WorkloadSapHanaRestoreContent.DeserializeWorkloadSapHanaRestoreContent(element); + case "AzureWorkloadSAPHanaRestoreWithRehydrateRequest": return WorkloadSapHanaRestoreWithRehydrateContent.DeserializeWorkloadSapHanaRestoreWithRehydrateContent(element); + case "AzureWorkloadSQLPointInTimeRestoreRequest": return WorkloadSqlPointInTimeRestoreContent.DeserializeWorkloadSqlPointInTimeRestoreContent(element); + case "AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest": return WorkloadSqlPointInTimeRestoreWithRehydrateContent.DeserializeWorkloadSqlPointInTimeRestoreWithRehydrateContent(element); + case "AzureWorkloadSQLRestoreRequest": return WorkloadSqlRestoreContent.DeserializeWorkloadSqlRestoreContent(element); + case "AzureWorkloadSQLRestoreWithRehydrateRequest": return WorkloadSqlRestoreWithRehydrateContent.DeserializeWorkloadSqlRestoreWithRehydrateContent(element); + case "IaasVMRestoreRequest": return IaasVmRestoreContent.DeserializeIaasVmRestoreContent(element); + case "IaasVMRestoreWithRehydrationRequest": return IaasVmRestoreWithRehydrationContent.DeserializeIaasVmRestoreWithRehydrationContent(element); + } + } + return UnknownRestoreRequest.DeserializeUnknownRestoreRequest(element); + } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RestoreContent.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RestoreContent.cs new file mode 100644 index 0000000000000..6927ec4647fa3 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RestoreContent.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.RecoveryServicesBackup.Models +{ + /// + /// Base class for restore request. Workload-specific restore requests are derived from this class. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , , , , , , and . + /// + public abstract partial class RestoreContent + { + /// Initializes a new instance of RestoreContent. + protected RestoreContent() + { + } + + /// Initializes a new instance of RestoreContent. + /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. + internal RestoreContent(string objectType) + { + ObjectType = objectType; + } + + /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. + internal string ObjectType { get; set; } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RestoreOverwriteOption.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RestoreOverwriteOption.cs new file mode 100644 index 0000000000000..0cfa148301d21 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RestoreOverwriteOption.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Models +{ + /// Can Overwrite if Target DataBase already exists. + public readonly partial struct RestoreOverwriteOption : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public RestoreOverwriteOption(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string InvalidValue = "Invalid"; + private const string FailOnConflictValue = "FailOnConflict"; + private const string OverwriteValue = "Overwrite"; + + /// Invalid. + public static RestoreOverwriteOption Invalid { get; } = new RestoreOverwriteOption(InvalidValue); + /// FailOnConflict. + public static RestoreOverwriteOption FailOnConflict { get; } = new RestoreOverwriteOption(FailOnConflictValue); + /// Overwrite. + public static RestoreOverwriteOption Overwrite { get; } = new RestoreOverwriteOption(OverwriteValue); + /// Determines if two values are the same. + public static bool operator ==(RestoreOverwriteOption left, RestoreOverwriteOption right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(RestoreOverwriteOption left, RestoreOverwriteOption right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator RestoreOverwriteOption(string value) => new RestoreOverwriteOption(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is RestoreOverwriteOption other && Equals(other); + /// + public bool Equals(RestoreOverwriteOption other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RestoreRequest.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RestoreRequest.Serialization.cs deleted file mode 100644 index 7894cada131f1..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RestoreRequest.Serialization.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - public partial class RestoreRequest : IUtf8JsonSerializable - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) - { - writer.WriteStartObject(); - writer.WritePropertyName("objectType"u8); - writer.WriteStringValue(ObjectType); - writer.WriteEndObject(); - } - - internal static RestoreRequest DeserializeRestoreRequest(JsonElement element) - { - if (element.TryGetProperty("objectType", out JsonElement discriminator)) - { - switch (discriminator.GetString()) - { - case "AzureFileShareRestoreRequest": return AzureFileShareRestoreRequest.DeserializeAzureFileShareRestoreRequest(element); - case "AzureWorkloadPointInTimeRestoreRequest": return AzureWorkloadPointInTimeRestoreRequest.DeserializeAzureWorkloadPointInTimeRestoreRequest(element); - case "AzureWorkloadRestoreRequest": return AzureWorkloadRestoreRequest.DeserializeAzureWorkloadRestoreRequest(element); - case "AzureWorkloadSAPHanaPointInTimeRestoreRequest": return AzureWorkloadSAPHanaPointInTimeRestoreRequest.DeserializeAzureWorkloadSAPHanaPointInTimeRestoreRequest(element); - case "AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest": return AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest.DeserializeAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest(element); - case "AzureWorkloadSAPHanaRestoreRequest": return AzureWorkloadSAPHanaRestoreRequest.DeserializeAzureWorkloadSAPHanaRestoreRequest(element); - case "AzureWorkloadSAPHanaRestoreWithRehydrateRequest": return AzureWorkloadSAPHanaRestoreWithRehydrateRequest.DeserializeAzureWorkloadSAPHanaRestoreWithRehydrateRequest(element); - case "AzureWorkloadSQLPointInTimeRestoreRequest": return AzureWorkloadSQLPointInTimeRestoreRequest.DeserializeAzureWorkloadSQLPointInTimeRestoreRequest(element); - case "AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest": return AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest.DeserializeAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest(element); - case "AzureWorkloadSQLRestoreRequest": return AzureWorkloadSQLRestoreRequest.DeserializeAzureWorkloadSQLRestoreRequest(element); - case "AzureWorkloadSQLRestoreWithRehydrateRequest": return AzureWorkloadSQLRestoreWithRehydrateRequest.DeserializeAzureWorkloadSQLRestoreWithRehydrateRequest(element); - case "IaasVMRestoreRequest": return IaasVmRestoreRequest.DeserializeIaasVmRestoreRequest(element); - case "IaasVMRestoreWithRehydrationRequest": return IaasVmRestoreWithRehydrationRequest.DeserializeIaasVmRestoreWithRehydrationRequest(element); - } - } - return UnknownRestoreRequest.DeserializeUnknownRestoreRequest(element); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RestoreRequest.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RestoreRequest.cs deleted file mode 100644 index 4998481d807b0..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RestoreRequest.cs +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - /// - /// Base class for restore request. Workload-specific restore requests are derived from this class. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , and . - /// - public abstract partial class RestoreRequest - { - /// Initializes a new instance of RestoreRequest. - protected RestoreRequest() - { - } - - /// Initializes a new instance of RestoreRequest. - /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. - internal RestoreRequest(string objectType) - { - ObjectType = objectType; - } - - /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. - internal string ObjectType { get; set; } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RestoreRequestResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RestoreRequestResource.cs deleted file mode 100644 index f5102f02fb080..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RestoreRequestResource.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using Azure; -using Azure.Core; -using Azure.ResourceManager.Models; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - /// Base class for restore request. Workload-specific restore requests are derived from this class. - public partial class RestoreRequestResource : TrackedResourceData - { - /// Initializes a new instance of RestoreRequestResource. - /// The location. - public RestoreRequestResource(AzureLocation location) : base(location) - { - } - - /// Initializes a new instance of RestoreRequestResource. - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// The tags. - /// The location. - /// - /// RestoreRequestResource properties - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , and . - /// - /// Optional ETag. - internal RestoreRequestResource(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, RestoreRequest properties, ETag? eTag) : base(id, name, resourceType, systemData, tags, location) - { - Properties = properties; - ETag = eTag; - } - - /// - /// RestoreRequestResource properties - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , and . - /// - public RestoreRequest Properties { get; set; } - /// Optional ETag. - public ETag? ETag { get; set; } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RestoreRequestType.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RestoreRequestType.cs deleted file mode 100644 index c06e548e089fc..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RestoreRequestType.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - /// Restore Type (FullShareRestore or ItemLevelRestore). - public readonly partial struct RestoreRequestType : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public RestoreRequestType(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string InvalidValue = "Invalid"; - private const string FullShareRestoreValue = "FullShareRestore"; - private const string ItemLevelRestoreValue = "ItemLevelRestore"; - - /// Invalid. - public static RestoreRequestType Invalid { get; } = new RestoreRequestType(InvalidValue); - /// FullShareRestore. - public static RestoreRequestType FullShareRestore { get; } = new RestoreRequestType(FullShareRestoreValue); - /// ItemLevelRestore. - public static RestoreRequestType ItemLevelRestore { get; } = new RestoreRequestType(ItemLevelRestoreValue); - /// Determines if two values are the same. - public static bool operator ==(RestoreRequestType left, RestoreRequestType right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(RestoreRequestType left, RestoreRequestType right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator RestoreRequestType(string value) => new RestoreRequestType(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is RestoreRequestType other && Equals(other); - /// - public bool Equals(RestoreRequestType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SecurityPinBase.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SecurityPinContent.Serialization.cs similarity index 92% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SecurityPinBase.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SecurityPinContent.Serialization.cs index 9bc9a19614213..9859dd11acde4 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SecurityPinBase.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SecurityPinContent.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class SecurityPinBase : IUtf8JsonSerializable + public partial class SecurityPinContent : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SecurityPinBase.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SecurityPinContent.cs similarity index 78% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SecurityPinBase.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SecurityPinContent.cs index ef9f2077d789c..c573a7de16abd 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SecurityPinBase.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SecurityPinContent.cs @@ -11,10 +11,10 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Base class for get security pin request body. - public partial class SecurityPinBase + public partial class SecurityPinContent { - /// Initializes a new instance of SecurityPinBase. - public SecurityPinBase() + /// Initializes a new instance of SecurityPinContent. + public SecurityPinContent() { ResourceGuardOperationRequests = new ChangeTrackingList(); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SimpleRetentionPolicy.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SimpleRetentionPolicy.cs index 6c0e5ef04175e..f72c467c97350 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SimpleRetentionPolicy.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SimpleRetentionPolicy.cs @@ -8,7 +8,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Simple policy retention. - public partial class SimpleRetentionPolicy : RetentionPolicy + public partial class SimpleRetentionPolicy : BackupRetentionPolicy { /// Initializes a new instance of SimpleRetentionPolicy. public SimpleRetentionPolicy() diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SimpleSchedulePolicy.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SimpleSchedulePolicy.Serialization.cs index 96da1e7a1da46..8e6e32db15acb 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SimpleSchedulePolicy.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SimpleSchedulePolicy.Serialization.cs @@ -60,9 +60,9 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) internal static SimpleSchedulePolicy DeserializeSimpleSchedulePolicy(JsonElement element) { Optional scheduleRunFrequency = default; - Optional> scheduleRunDays = default; + Optional> scheduleRunDays = default; Optional> scheduleRunTimes = default; - Optional hourlySchedule = default; + Optional hourlySchedule = default; Optional scheduleWeeklyFrequency = default; string schedulePolicyType = default; foreach (var property in element.EnumerateObject()) @@ -84,10 +84,10 @@ internal static SimpleSchedulePolicy DeserializeSimpleSchedulePolicy(JsonElement property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(item.GetString().ToDayOfWeek()); + array.Add(item.GetString().ToBackupDayOfWeek()); } scheduleRunDays = array; continue; @@ -114,7 +114,7 @@ internal static SimpleSchedulePolicy DeserializeSimpleSchedulePolicy(JsonElement property.ThrowNonNullablePropertyIsNull(); continue; } - hourlySchedule = HourlySchedule.DeserializeHourlySchedule(property.Value); + hourlySchedule = BackupHourlySchedule.DeserializeBackupHourlySchedule(property.Value); continue; } if (property.NameEquals("scheduleWeeklyFrequency"u8)) diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SimpleSchedulePolicy.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SimpleSchedulePolicy.cs index 2bc8ee19a6c19..f0f2ab56151d9 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SimpleSchedulePolicy.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SimpleSchedulePolicy.cs @@ -12,12 +12,12 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Simple policy schedule. - public partial class SimpleSchedulePolicy : SchedulePolicy + public partial class SimpleSchedulePolicy : BackupSchedulePolicy { /// Initializes a new instance of SimpleSchedulePolicy. public SimpleSchedulePolicy() { - ScheduleRunDays = new ChangeTrackingList(); + ScheduleRunDays = new ChangeTrackingList(); ScheduleRunTimes = new ChangeTrackingList(); SchedulePolicyType = "SimpleSchedulePolicy"; } @@ -29,7 +29,7 @@ public SimpleSchedulePolicy() /// List of times of day this schedule has to be run. /// Hourly Schedule of this Policy. /// At every number weeks this schedule has to be run. - internal SimpleSchedulePolicy(string schedulePolicyType, ScheduleRunType? scheduleRunFrequency, IList scheduleRunDays, IList scheduleRunTimes, HourlySchedule hourlySchedule, int? scheduleWeeklyFrequency) : base(schedulePolicyType) + internal SimpleSchedulePolicy(string schedulePolicyType, ScheduleRunType? scheduleRunFrequency, IList scheduleRunDays, IList scheduleRunTimes, BackupHourlySchedule hourlySchedule, int? scheduleWeeklyFrequency) : base(schedulePolicyType) { ScheduleRunFrequency = scheduleRunFrequency; ScheduleRunDays = scheduleRunDays; @@ -42,11 +42,11 @@ internal SimpleSchedulePolicy(string schedulePolicyType, ScheduleRunType? schedu /// Frequency of the schedule operation of this policy. public ScheduleRunType? ScheduleRunFrequency { get; set; } /// List of days of week this schedule has to be run. - public IList ScheduleRunDays { get; } + public IList ScheduleRunDays { get; } /// List of times of day this schedule has to be run. public IList ScheduleRunTimes { get; } /// Hourly Schedule of this Policy. - public HourlySchedule HourlySchedule { get; set; } + public BackupHourlySchedule HourlySchedule { get; set; } /// At every number weeks this schedule has to be run. public int? ScheduleWeeklyFrequency { get; set; } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SimpleSchedulePolicyV2.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SimpleSchedulePolicyV2.Serialization.cs index 3c124f600e5da..8cd22d40521f2 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SimpleSchedulePolicyV2.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SimpleSchedulePolicyV2.Serialization.cs @@ -43,9 +43,9 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) internal static SimpleSchedulePolicyV2 DeserializeSimpleSchedulePolicyV2(JsonElement element) { Optional scheduleRunFrequency = default; - Optional hourlySchedule = default; - Optional dailySchedule = default; - Optional weeklySchedule = default; + Optional hourlySchedule = default; + Optional dailySchedule = default; + Optional weeklySchedule = default; string schedulePolicyType = default; foreach (var property in element.EnumerateObject()) { @@ -66,7 +66,7 @@ internal static SimpleSchedulePolicyV2 DeserializeSimpleSchedulePolicyV2(JsonEle property.ThrowNonNullablePropertyIsNull(); continue; } - hourlySchedule = HourlySchedule.DeserializeHourlySchedule(property.Value); + hourlySchedule = BackupHourlySchedule.DeserializeBackupHourlySchedule(property.Value); continue; } if (property.NameEquals("dailySchedule"u8)) @@ -76,7 +76,7 @@ internal static SimpleSchedulePolicyV2 DeserializeSimpleSchedulePolicyV2(JsonEle property.ThrowNonNullablePropertyIsNull(); continue; } - dailySchedule = DailySchedule.DeserializeDailySchedule(property.Value); + dailySchedule = BackupDailySchedule.DeserializeBackupDailySchedule(property.Value); continue; } if (property.NameEquals("weeklySchedule"u8)) @@ -86,7 +86,7 @@ internal static SimpleSchedulePolicyV2 DeserializeSimpleSchedulePolicyV2(JsonEle property.ThrowNonNullablePropertyIsNull(); continue; } - weeklySchedule = WeeklySchedule.DeserializeWeeklySchedule(property.Value); + weeklySchedule = BackupWeeklySchedule.DeserializeBackupWeeklySchedule(property.Value); continue; } if (property.NameEquals("schedulePolicyType"u8)) diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SimpleSchedulePolicyV2.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SimpleSchedulePolicyV2.cs index b5a5048c91046..c6f5172d23c4e 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SimpleSchedulePolicyV2.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SimpleSchedulePolicyV2.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// The V2 policy schedule for IaaS that supports hourly backups. - public partial class SimpleSchedulePolicyV2 : SchedulePolicy + public partial class SimpleSchedulePolicyV2 : BackupSchedulePolicy { /// Initializes a new instance of SimpleSchedulePolicyV2. public SimpleSchedulePolicyV2() @@ -25,7 +25,7 @@ public SimpleSchedulePolicyV2() /// hourly schedule of this policy. /// Daily schedule of this policy. /// Weekly schedule of this policy. - internal SimpleSchedulePolicyV2(string schedulePolicyType, ScheduleRunType? scheduleRunFrequency, HourlySchedule hourlySchedule, DailySchedule dailySchedule, WeeklySchedule weeklySchedule) : base(schedulePolicyType) + internal SimpleSchedulePolicyV2(string schedulePolicyType, ScheduleRunType? scheduleRunFrequency, BackupHourlySchedule hourlySchedule, BackupDailySchedule dailySchedule, BackupWeeklySchedule weeklySchedule) : base(schedulePolicyType) { ScheduleRunFrequency = scheduleRunFrequency; HourlySchedule = hourlySchedule; @@ -37,21 +37,21 @@ internal SimpleSchedulePolicyV2(string schedulePolicyType, ScheduleRunType? sche /// Frequency of the schedule operation of this policy. public ScheduleRunType? ScheduleRunFrequency { get; set; } /// hourly schedule of this policy. - public HourlySchedule HourlySchedule { get; set; } + public BackupHourlySchedule HourlySchedule { get; set; } /// Daily schedule of this policy. - internal DailySchedule DailySchedule { get; set; } + internal BackupDailySchedule DailySchedule { get; set; } /// List of times of day this schedule has to be run. public IList ScheduleRunTimes { get { if (DailySchedule is null) - DailySchedule = new DailySchedule(); + DailySchedule = new BackupDailySchedule(); return DailySchedule.ScheduleRunTimes; } } /// Weekly schedule of this policy. - public WeeklySchedule WeeklySchedule { get; set; } + public BackupWeeklySchedule WeeklySchedule { get; set; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmAppContainerProtectionContainer.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SqlAvailabilityGroupWorkloadProtectionContainer.Serialization.cs similarity index 80% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmAppContainerProtectionContainer.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SqlAvailabilityGroupWorkloadProtectionContainer.Serialization.cs index 2f84f3a084511..9889bc468718a 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmAppContainerProtectionContainer.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SqlAvailabilityGroupWorkloadProtectionContainer.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureVmAppContainerProtectionContainer : IUtf8JsonSerializable + public partial class SqlAvailabilityGroupWorkloadProtectionContainer : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -71,13 +71,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureVmAppContainerProtectionContainer DeserializeAzureVmAppContainerProtectionContainer(JsonElement element) + internal static SqlAvailabilityGroupWorkloadProtectionContainer DeserializeSqlAvailabilityGroupWorkloadProtectionContainer(JsonElement element) { - Optional sourceResourceId = default; + Optional sourceResourceId = default; Optional lastUpdatedTime = default; - Optional extendedInfo = default; - Optional workloadType = default; - Optional operationType = default; + Optional extendedInfo = default; + Optional workloadType = default; + Optional operationType = default; Optional friendlyName = default; Optional backupManagementType = default; Optional registrationStatus = default; @@ -88,7 +88,12 @@ internal static AzureVmAppContainerProtectionContainer DeserializeAzureVmAppCont { if (property.NameEquals("sourceResourceId"u8)) { - sourceResourceId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + sourceResourceId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("lastUpdatedTime"u8)) @@ -108,7 +113,7 @@ internal static AzureVmAppContainerProtectionContainer DeserializeAzureVmAppCont property.ThrowNonNullablePropertyIsNull(); continue; } - extendedInfo = AzureWorkloadContainerExtendedInfo.DeserializeAzureWorkloadContainerExtendedInfo(property.Value); + extendedInfo = WorkloadContainerExtendedInfo.DeserializeWorkloadContainerExtendedInfo(property.Value); continue; } if (property.NameEquals("workloadType"u8)) @@ -118,7 +123,7 @@ internal static AzureVmAppContainerProtectionContainer DeserializeAzureVmAppCont property.ThrowNonNullablePropertyIsNull(); continue; } - workloadType = new WorkloadType(property.Value.GetString()); + workloadType = new BackupWorkloadType(property.Value.GetString()); continue; } if (property.NameEquals("operationType"u8)) @@ -128,7 +133,7 @@ internal static AzureVmAppContainerProtectionContainer DeserializeAzureVmAppCont property.ThrowNonNullablePropertyIsNull(); continue; } - operationType = new OperationType(property.Value.GetString()); + operationType = new WorkloadOperationType(property.Value.GetString()); continue; } if (property.NameEquals("friendlyName"u8)) @@ -167,7 +172,7 @@ internal static AzureVmAppContainerProtectionContainer DeserializeAzureVmAppCont continue; } } - return new AzureVmAppContainerProtectionContainer(friendlyName.Value, Optional.ToNullable(backupManagementType), registrationStatus.Value, healthStatus.Value, containerType, protectableObjectType.Value, sourceResourceId.Value, Optional.ToNullable(lastUpdatedTime), extendedInfo.Value, Optional.ToNullable(workloadType), Optional.ToNullable(operationType)); + return new SqlAvailabilityGroupWorkloadProtectionContainer(friendlyName.Value, Optional.ToNullable(backupManagementType), registrationStatus.Value, healthStatus.Value, containerType, protectableObjectType.Value, sourceResourceId.Value, Optional.ToNullable(lastUpdatedTime), extendedInfo.Value, Optional.ToNullable(workloadType), Optional.ToNullable(operationType)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureSqlAGWorkloadContainerProtectionContainer.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SqlAvailabilityGroupWorkloadProtectionContainer.cs similarity index 62% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureSqlAGWorkloadContainerProtectionContainer.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SqlAvailabilityGroupWorkloadProtectionContainer.cs index db0768dac22b3..3d30ff5f81099 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureSqlAGWorkloadContainerProtectionContainer.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SqlAvailabilityGroupWorkloadProtectionContainer.cs @@ -6,19 +6,20 @@ #nullable disable using System; +using Azure.Core; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Container for SQL workloads under SQL Availability Group. - public partial class AzureSqlAGWorkloadContainerProtectionContainer : AzureWorkloadContainer + public partial class SqlAvailabilityGroupWorkloadProtectionContainer : WorkloadContainer { - /// Initializes a new instance of AzureSqlAGWorkloadContainerProtectionContainer. - public AzureSqlAGWorkloadContainerProtectionContainer() + /// Initializes a new instance of SqlAvailabilityGroupWorkloadProtectionContainer. + public SqlAvailabilityGroupWorkloadProtectionContainer() { - ContainerType = ProtectableContainerType.SqlAGWorkLoadContainer; + ContainerType = ProtectableContainerType.SqlAvailabilityGroupWorkLoadContainer; } - /// Initializes a new instance of AzureSqlAGWorkloadContainerProtectionContainer. + /// Initializes a new instance of SqlAvailabilityGroupWorkloadProtectionContainer. /// Friendly name of the container. /// Type of backup management for the container. /// Status of registration of the container with the Recovery Services Vault. @@ -35,7 +36,7 @@ public AzureSqlAGWorkloadContainerProtectionContainer() /// Additional details of a workload container. /// Workload type for which registration was sent. /// Re-Do Operation. - internal AzureSqlAGWorkloadContainerProtectionContainer(string friendlyName, BackupManagementType? backupManagementType, string registrationStatus, string healthStatus, ProtectableContainerType containerType, string protectableObjectType, string sourceResourceId, DateTimeOffset? lastUpdatedOn, AzureWorkloadContainerExtendedInfo extendedInfo, WorkloadType? workloadType, OperationType? operationType) : base(friendlyName, backupManagementType, registrationStatus, healthStatus, containerType, protectableObjectType, sourceResourceId, lastUpdatedOn, extendedInfo, workloadType, operationType) + internal SqlAvailabilityGroupWorkloadProtectionContainer(string friendlyName, BackupManagementType? backupManagementType, string registrationStatus, string healthStatus, ProtectableContainerType containerType, string protectableObjectType, ResourceIdentifier sourceResourceId, DateTimeOffset? lastUpdatedOn, WorkloadContainerExtendedInfo extendedInfo, BackupWorkloadType? workloadType, WorkloadOperationType? operationType) : base(friendlyName, backupManagementType, registrationStatus, healthStatus, containerType, protectableObjectType, sourceResourceId, lastUpdatedOn, extendedInfo, workloadType, operationType) { ContainerType = containerType; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureSqlContainer.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SqlContainer.Serialization.cs similarity index 90% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureSqlContainer.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SqlContainer.Serialization.cs index 50bb6d1153f17..901d411700102 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureSqlContainer.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SqlContainer.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureSqlContainer : IUtf8JsonSerializable + public partial class SqlContainer : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -45,7 +45,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureSqlContainer DeserializeAzureSqlContainer(JsonElement element) + internal static SqlContainer DeserializeSqlContainer(JsonElement element) { Optional friendlyName = default; Optional backupManagementType = default; @@ -91,7 +91,7 @@ internal static AzureSqlContainer DeserializeAzureSqlContainer(JsonElement eleme continue; } } - return new AzureSqlContainer(friendlyName.Value, Optional.ToNullable(backupManagementType), registrationStatus.Value, healthStatus.Value, containerType, protectableObjectType.Value); + return new SqlContainer(friendlyName.Value, Optional.ToNullable(backupManagementType), registrationStatus.Value, healthStatus.Value, containerType, protectableObjectType.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureSqlContainer.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SqlContainer.cs similarity index 70% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureSqlContainer.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SqlContainer.cs index b7832b66686c6..6f95cf2bf3f99 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureSqlContainer.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SqlContainer.cs @@ -8,15 +8,15 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Azure Sql workload-specific container. - public partial class AzureSqlContainer : ProtectionContainer + public partial class SqlContainer : BackupGenericProtectionContainer { - /// Initializes a new instance of AzureSqlContainer. - public AzureSqlContainer() + /// Initializes a new instance of SqlContainer. + public SqlContainer() { ContainerType = ProtectableContainerType.AzureSqlContainer; } - /// Initializes a new instance of AzureSqlContainer. + /// Initializes a new instance of SqlContainer. /// Friendly name of the container. /// Type of backup management for the container. /// Status of registration of the container with the Recovery Services Vault. @@ -28,7 +28,7 @@ public AzureSqlContainer() /// Backup is VMAppContainer /// /// Type of the protectable object associated with this container. - internal AzureSqlContainer(string friendlyName, BackupManagementType? backupManagementType, string registrationStatus, string healthStatus, ProtectableContainerType containerType, string protectableObjectType) : base(friendlyName, backupManagementType, registrationStatus, healthStatus, containerType, protectableObjectType) + internal SqlContainer(string friendlyName, BackupManagementType? backupManagementType, string registrationStatus, string healthStatus, ProtectableContainerType containerType, string protectableObjectType) : base(friendlyName, backupManagementType, registrationStatus, healthStatus, containerType, protectableObjectType) { ContainerType = containerType; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SQLDataDirectory.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SqlDataDirectory.Serialization.cs similarity index 86% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SQLDataDirectory.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SqlDataDirectory.Serialization.cs index cb7959d8f33ce..5cda1d855ac21 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SQLDataDirectory.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SqlDataDirectory.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class SQLDataDirectory : IUtf8JsonSerializable + public partial class SqlDataDirectory : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -33,9 +33,9 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static SQLDataDirectory DeserializeSQLDataDirectory(JsonElement element) + internal static SqlDataDirectory DeserializeSqlDataDirectory(JsonElement element) { - Optional type = default; + Optional type = default; Optional path = default; Optional logicalName = default; foreach (var property in element.EnumerateObject()) @@ -47,7 +47,7 @@ internal static SQLDataDirectory DeserializeSQLDataDirectory(JsonElement element property.ThrowNonNullablePropertyIsNull(); continue; } - type = new SQLDataDirectoryType(property.Value.GetString()); + type = new SqlDataDirectoryType(property.Value.GetString()); continue; } if (property.NameEquals("path"u8)) @@ -61,7 +61,7 @@ internal static SQLDataDirectory DeserializeSQLDataDirectory(JsonElement element continue; } } - return new SQLDataDirectory(Optional.ToNullable(type), path.Value, logicalName.Value); + return new SqlDataDirectory(Optional.ToNullable(type), path.Value, logicalName.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SQLDataDirectory.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SqlDataDirectory.cs similarity index 74% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SQLDataDirectory.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SqlDataDirectory.cs index 5e12977af88fa..073ecb2a38f0a 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SQLDataDirectory.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SqlDataDirectory.cs @@ -8,18 +8,18 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// SQLDataDirectory info. - public partial class SQLDataDirectory + public partial class SqlDataDirectory { - /// Initializes a new instance of SQLDataDirectory. - public SQLDataDirectory() + /// Initializes a new instance of SqlDataDirectory. + public SqlDataDirectory() { } - /// Initializes a new instance of SQLDataDirectory. + /// Initializes a new instance of SqlDataDirectory. /// Type of data directory mapping. /// File path. /// Logical name of the file. - internal SQLDataDirectory(SQLDataDirectoryType? directoryType, string path, string logicalName) + internal SqlDataDirectory(SqlDataDirectoryType? directoryType, string path, string logicalName) { DirectoryType = directoryType; Path = path; @@ -27,7 +27,7 @@ internal SQLDataDirectory(SQLDataDirectoryType? directoryType, string path, stri } /// Type of data directory mapping. - public SQLDataDirectoryType? DirectoryType { get; set; } + public SqlDataDirectoryType? DirectoryType { get; set; } /// File path. public string Path { get; set; } /// Logical name of the file. diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SQLDataDirectoryMapping.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SqlDataDirectoryMapping.Serialization.cs similarity index 88% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SQLDataDirectoryMapping.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SqlDataDirectoryMapping.Serialization.cs index 0592fa69f0668..19b8128bc39c9 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SQLDataDirectoryMapping.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SqlDataDirectoryMapping.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class SQLDataDirectoryMapping : IUtf8JsonSerializable + public partial class SqlDataDirectoryMapping : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -38,9 +38,9 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static SQLDataDirectoryMapping DeserializeSQLDataDirectoryMapping(JsonElement element) + internal static SqlDataDirectoryMapping DeserializeSqlDataDirectoryMapping(JsonElement element) { - Optional mappingType = default; + Optional mappingType = default; Optional sourceLogicalName = default; Optional sourcePath = default; Optional targetPath = default; @@ -53,7 +53,7 @@ internal static SQLDataDirectoryMapping DeserializeSQLDataDirectoryMapping(JsonE property.ThrowNonNullablePropertyIsNull(); continue; } - mappingType = new SQLDataDirectoryType(property.Value.GetString()); + mappingType = new SqlDataDirectoryType(property.Value.GetString()); continue; } if (property.NameEquals("sourceLogicalName"u8)) @@ -72,7 +72,7 @@ internal static SQLDataDirectoryMapping DeserializeSQLDataDirectoryMapping(JsonE continue; } } - return new SQLDataDirectoryMapping(Optional.ToNullable(mappingType), sourceLogicalName.Value, sourcePath.Value, targetPath.Value); + return new SqlDataDirectoryMapping(Optional.ToNullable(mappingType), sourceLogicalName.Value, sourcePath.Value, targetPath.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SQLDataDirectoryMapping.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SqlDataDirectoryMapping.cs similarity index 79% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SQLDataDirectoryMapping.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SqlDataDirectoryMapping.cs index ad2bc801587f3..e4a682d5d573a 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SQLDataDirectoryMapping.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SqlDataDirectoryMapping.cs @@ -8,19 +8,19 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Encapsulates information regarding data directory. - public partial class SQLDataDirectoryMapping + public partial class SqlDataDirectoryMapping { - /// Initializes a new instance of SQLDataDirectoryMapping. - public SQLDataDirectoryMapping() + /// Initializes a new instance of SqlDataDirectoryMapping. + public SqlDataDirectoryMapping() { } - /// Initializes a new instance of SQLDataDirectoryMapping. + /// Initializes a new instance of SqlDataDirectoryMapping. /// Type of data directory mapping. /// Restore source logical name path. /// Restore source path. /// Target path. - internal SQLDataDirectoryMapping(SQLDataDirectoryType? mappingType, string sourceLogicalName, string sourcePath, string targetPath) + internal SqlDataDirectoryMapping(SqlDataDirectoryType? mappingType, string sourceLogicalName, string sourcePath, string targetPath) { MappingType = mappingType; SourceLogicalName = sourceLogicalName; @@ -29,7 +29,7 @@ internal SQLDataDirectoryMapping(SQLDataDirectoryType? mappingType, string sourc } /// Type of data directory mapping. - public SQLDataDirectoryType? MappingType { get; set; } + public SqlDataDirectoryType? MappingType { get; set; } /// Restore source logical name path. public string SourceLogicalName { get; set; } /// Restore source path. diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SQLDataDirectoryType.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SqlDataDirectoryType.cs similarity index 56% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SQLDataDirectoryType.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SqlDataDirectoryType.cs index 4201a1c57d704..cbbd4783fee86 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SQLDataDirectoryType.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SqlDataDirectoryType.cs @@ -11,13 +11,13 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Type of data directory mapping. - public readonly partial struct SQLDataDirectoryType : IEquatable + public readonly partial struct SqlDataDirectoryType : IEquatable { private readonly string _value; - /// Initializes a new instance of . + /// Initializes a new instance of . /// is null. - public SQLDataDirectoryType(string value) + public SqlDataDirectoryType(string value) { _value = value ?? throw new ArgumentNullException(nameof(value)); } @@ -27,23 +27,23 @@ public SQLDataDirectoryType(string value) private const string LogValue = "Log"; /// Invalid. - public static SQLDataDirectoryType Invalid { get; } = new SQLDataDirectoryType(InvalidValue); + public static SqlDataDirectoryType Invalid { get; } = new SqlDataDirectoryType(InvalidValue); /// Data. - public static SQLDataDirectoryType Data { get; } = new SQLDataDirectoryType(DataValue); + public static SqlDataDirectoryType Data { get; } = new SqlDataDirectoryType(DataValue); /// Log. - public static SQLDataDirectoryType Log { get; } = new SQLDataDirectoryType(LogValue); - /// Determines if two values are the same. - public static bool operator ==(SQLDataDirectoryType left, SQLDataDirectoryType right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(SQLDataDirectoryType left, SQLDataDirectoryType right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator SQLDataDirectoryType(string value) => new SQLDataDirectoryType(value); + public static SqlDataDirectoryType Log { get; } = new SqlDataDirectoryType(LogValue); + /// Determines if two values are the same. + public static bool operator ==(SqlDataDirectoryType left, SqlDataDirectoryType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(SqlDataDirectoryType left, SqlDataDirectoryType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator SqlDataDirectoryType(string value) => new SqlDataDirectoryType(value); /// [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is SQLDataDirectoryType other && Equals(other); + public override bool Equals(object obj) => obj is SqlDataDirectoryType other && Equals(other); /// - public bool Equals(SQLDataDirectoryType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + public bool Equals(SqlDataDirectoryType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); /// [EditorBrowsable(EditorBrowsableState.Never)] diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureSqlProtectedItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SqlProtectedItem.Serialization.cs similarity index 84% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureSqlProtectedItem.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SqlProtectedItem.Serialization.cs index 02bda3963f080..bceceaaaa19f0 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureSqlProtectedItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SqlProtectedItem.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureSqlProtectedItem : IUtf8JsonSerializable + public partial class SqlProtectedItem : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -49,10 +49,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("policyId"u8); writer.WriteStringValue(PolicyId); } - if (Optional.IsDefined(LastRecoveryPoint)) + if (Optional.IsDefined(LastRecoverOn)) { writer.WritePropertyName("lastRecoveryPoint"u8); - writer.WriteStringValue(LastRecoveryPoint.Value, "O"); + writer.WriteStringValue(LastRecoverOn.Value, "O"); } if (Optional.IsDefined(BackupSetName)) { @@ -64,10 +64,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("createMode"u8); writer.WriteStringValue(CreateMode.Value.ToString()); } - if (Optional.IsDefined(DeferredDeleteTimeInUTC)) + if (Optional.IsDefined(DeferredDeletedOn)) { writer.WritePropertyName("deferredDeleteTimeInUTC"u8); - writer.WriteStringValue(DeferredDeleteTimeInUTC.Value, "O"); + writer.WriteStringValue(DeferredDeletedOn.Value, "O"); } if (Optional.IsDefined(IsScheduledForDeferredDelete)) { @@ -117,20 +117,20 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureSqlProtectedItem DeserializeAzureSqlProtectedItem(JsonElement element) + internal static SqlProtectedItem DeserializeSqlProtectedItem(JsonElement element) { Optional protectedItemDataId = default; Optional protectionState = default; - Optional extendedInfo = default; + Optional extendedInfo = default; string protectedItemType = default; Optional backupManagementType = default; - Optional workloadType = default; + Optional workloadType = default; Optional containerName = default; - Optional sourceResourceId = default; - Optional policyId = default; + Optional sourceResourceId = default; + Optional policyId = default; Optional lastRecoveryPoint = default; Optional backupSetName = default; - Optional createMode = default; + Optional createMode = default; Optional deferredDeleteTimeInUTC = default; Optional isScheduledForDeferredDelete = default; Optional deferredDeleteTimeRemaining = default; @@ -164,7 +164,7 @@ internal static AzureSqlProtectedItem DeserializeAzureSqlProtectedItem(JsonEleme property.ThrowNonNullablePropertyIsNull(); continue; } - extendedInfo = AzureSqlProtectedItemExtendedInfo.DeserializeAzureSqlProtectedItemExtendedInfo(property.Value); + extendedInfo = SqlProtectedItemExtendedInfo.DeserializeSqlProtectedItemExtendedInfo(property.Value); continue; } if (property.NameEquals("protectedItemType"u8)) @@ -189,7 +189,7 @@ internal static AzureSqlProtectedItem DeserializeAzureSqlProtectedItem(JsonEleme property.ThrowNonNullablePropertyIsNull(); continue; } - workloadType = new DataSourceType(property.Value.GetString()); + workloadType = new BackupDataSourceType(property.Value.GetString()); continue; } if (property.NameEquals("containerName"u8)) @@ -199,12 +199,22 @@ internal static AzureSqlProtectedItem DeserializeAzureSqlProtectedItem(JsonEleme } if (property.NameEquals("sourceResourceId"u8)) { - sourceResourceId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + sourceResourceId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("policyId"u8)) { - policyId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + policyId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("lastRecoveryPoint"u8)) @@ -229,7 +239,7 @@ internal static AzureSqlProtectedItem DeserializeAzureSqlProtectedItem(JsonEleme property.ThrowNonNullablePropertyIsNull(); continue; } - createMode = new CreateMode(property.Value.GetString()); + createMode = new BackupCreateMode(property.Value.GetString()); continue; } if (property.NameEquals("deferredDeleteTimeInUTC"u8)) @@ -318,7 +328,7 @@ internal static AzureSqlProtectedItem DeserializeAzureSqlProtectedItem(JsonEleme continue; } } - return new AzureSqlProtectedItem(protectedItemType, Optional.ToNullable(backupManagementType), Optional.ToNullable(workloadType), containerName.Value, sourceResourceId.Value, policyId.Value, Optional.ToNullable(lastRecoveryPoint), backupSetName.Value, Optional.ToNullable(createMode), Optional.ToNullable(deferredDeleteTimeInUTC), Optional.ToNullable(isScheduledForDeferredDelete), deferredDeleteTimeRemaining.Value, Optional.ToNullable(isDeferredDeleteScheduleUpcoming), Optional.ToNullable(isRehydrate), Optional.ToList(resourceGuardOperationRequests), Optional.ToNullable(isArchiveEnabled), policyName.Value, Optional.ToNullable(softDeleteRetentionPeriod), protectedItemDataId.Value, Optional.ToNullable(protectionState), extendedInfo.Value); + return new SqlProtectedItem(protectedItemType, Optional.ToNullable(backupManagementType), Optional.ToNullable(workloadType), containerName.Value, sourceResourceId.Value, policyId.Value, Optional.ToNullable(lastRecoveryPoint), backupSetName.Value, Optional.ToNullable(createMode), Optional.ToNullable(deferredDeleteTimeInUTC), Optional.ToNullable(isScheduledForDeferredDelete), deferredDeleteTimeRemaining.Value, Optional.ToNullable(isDeferredDeleteScheduleUpcoming), Optional.ToNullable(isRehydrate), Optional.ToList(resourceGuardOperationRequests), Optional.ToNullable(isArchiveEnabled), policyName.Value, Optional.ToNullable(softDeleteRetentionPeriod), protectedItemDataId.Value, Optional.ToNullable(protectionState), extendedInfo.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureSqlProtectedItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SqlProtectedItem.cs similarity index 65% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureSqlProtectedItem.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SqlProtectedItem.cs index 7ac3c7263077d..ef9834566de13 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureSqlProtectedItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SqlProtectedItem.cs @@ -7,29 +7,30 @@ using System; using System.Collections.Generic; +using Azure.Core; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Azure SQL workload-specific backup item. - public partial class AzureSqlProtectedItem : ProtectedItem + public partial class SqlProtectedItem : BackupGenericProtectedItem { - /// Initializes a new instance of AzureSqlProtectedItem. - public AzureSqlProtectedItem() + /// Initializes a new instance of SqlProtectedItem. + public SqlProtectedItem() { ProtectedItemType = "Microsoft.Sql/servers/databases"; } - /// Initializes a new instance of AzureSqlProtectedItem. + /// Initializes a new instance of SqlProtectedItem. /// backup item type. /// Type of backup management for the backed up item. /// Type of workload this item represents. /// Unique name of container. /// ARM ID of the resource to be backed up. /// ID of the backup policy with which this item is backed up. - /// Timestamp when the last (latest) backup copy was created for this backup item. + /// Timestamp when the last (latest) backup copy was created for this backup item. /// Name of the backup set the backup item belongs to. /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. - /// Time for deferred deletion in UTC. + /// Time for deferred deletion in UTC. /// Flag to identify whether the DS is scheduled for deferred delete. /// Time remaining before the DS marked for deferred delete is permanently deleted. /// Flag to identify whether the deferred deleted DS is to be purged soon. @@ -41,7 +42,7 @@ public AzureSqlProtectedItem() /// Internal ID of a backup item. Used by Azure SQL Backup engine to contact Recovery Services. /// Backup state of the backed up item. /// Additional information for this backup item. - internal AzureSqlProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, DataSourceType? workloadType, string containerName, string sourceResourceId, string policyId, DateTimeOffset? lastRecoveryPoint, string backupSetName, CreateMode? createMode, DateTimeOffset? deferredDeleteTimeInUTC, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriod, string protectedItemDataId, ProtectedItemState? protectionState, AzureSqlProtectedItemExtendedInfo extendedInfo) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, deferredDeleteTimeInUTC, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriod) + internal SqlProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, ResourceIdentifier policyId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriod, string protectedItemDataId, ProtectedItemState? protectionState, SqlProtectedItemExtendedInfo extendedInfo) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriod) { ProtectedItemDataId = protectedItemDataId; ProtectionState = protectionState; @@ -54,6 +55,6 @@ internal AzureSqlProtectedItem(string protectedItemType, BackupManagementType? b /// Backup state of the backed up item. public ProtectedItemState? ProtectionState { get; set; } /// Additional information for this backup item. - public AzureSqlProtectedItemExtendedInfo ExtendedInfo { get; set; } + public SqlProtectedItemExtendedInfo ExtendedInfo { get; set; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureSqlProtectedItemExtendedInfo.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SqlProtectedItemExtendedInfo.Serialization.cs similarity index 81% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureSqlProtectedItemExtendedInfo.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SqlProtectedItemExtendedInfo.Serialization.cs index 7aced7d0445fb..747cfaf7db6d2 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureSqlProtectedItemExtendedInfo.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SqlProtectedItemExtendedInfo.Serialization.cs @@ -11,15 +11,15 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureSqlProtectedItemExtendedInfo : IUtf8JsonSerializable + public partial class SqlProtectedItemExtendedInfo : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - if (Optional.IsDefined(OldestRecoveryPoint)) + if (Optional.IsDefined(OldestRecoverOn)) { writer.WritePropertyName("oldestRecoveryPoint"u8); - writer.WriteStringValue(OldestRecoveryPoint.Value, "O"); + writer.WriteStringValue(OldestRecoverOn.Value, "O"); } if (Optional.IsDefined(RecoveryPointCount)) { @@ -34,7 +34,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureSqlProtectedItemExtendedInfo DeserializeAzureSqlProtectedItemExtendedInfo(JsonElement element) + internal static SqlProtectedItemExtendedInfo DeserializeSqlProtectedItemExtendedInfo(JsonElement element) { Optional oldestRecoveryPoint = default; Optional recoveryPointCount = default; @@ -67,7 +67,7 @@ internal static AzureSqlProtectedItemExtendedInfo DeserializeAzureSqlProtectedIt continue; } } - return new AzureSqlProtectedItemExtendedInfo(Optional.ToNullable(oldestRecoveryPoint), Optional.ToNullable(recoveryPointCount), policyState.Value); + return new SqlProtectedItemExtendedInfo(Optional.ToNullable(oldestRecoveryPoint), Optional.ToNullable(recoveryPointCount), policyState.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureSqlProtectedItemExtendedInfo.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SqlProtectedItemExtendedInfo.cs similarity index 61% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureSqlProtectedItemExtendedInfo.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SqlProtectedItemExtendedInfo.cs index 194a8c14b3837..825309591ffc9 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureSqlProtectedItemExtendedInfo.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SqlProtectedItemExtendedInfo.cs @@ -10,26 +10,26 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Additional information on Azure Sql specific protected item. - public partial class AzureSqlProtectedItemExtendedInfo + public partial class SqlProtectedItemExtendedInfo { - /// Initializes a new instance of AzureSqlProtectedItemExtendedInfo. - public AzureSqlProtectedItemExtendedInfo() + /// Initializes a new instance of SqlProtectedItemExtendedInfo. + public SqlProtectedItemExtendedInfo() { } - /// Initializes a new instance of AzureSqlProtectedItemExtendedInfo. - /// The oldest backup copy available for this item in the service. + /// Initializes a new instance of SqlProtectedItemExtendedInfo. + /// The oldest backup copy available for this item in the service. /// Number of available backup copies associated with this backup item. /// State of the backup policy associated with this backup item. - internal AzureSqlProtectedItemExtendedInfo(DateTimeOffset? oldestRecoveryPoint, int? recoveryPointCount, string policyState) + internal SqlProtectedItemExtendedInfo(DateTimeOffset? oldestRecoverOn, int? recoveryPointCount, string policyState) { - OldestRecoveryPoint = oldestRecoveryPoint; + OldestRecoverOn = oldestRecoverOn; RecoveryPointCount = recoveryPointCount; PolicyState = policyState; } /// The oldest backup copy available for this item in the service. - public DateTimeOffset? OldestRecoveryPoint { get; set; } + public DateTimeOffset? OldestRecoverOn { get; set; } /// Number of available backup copies associated with this backup item. public int? RecoveryPointCount { get; set; } /// State of the backup policy associated with this backup item. diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureSqlProtectionPolicy.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SqlProtectionPolicy.Serialization.cs similarity index 86% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureSqlProtectionPolicy.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SqlProtectionPolicy.Serialization.cs index 9de069620a48a..b7b2d47ba609e 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureSqlProtectionPolicy.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SqlProtectionPolicy.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureSqlProtectionPolicy : IUtf8JsonSerializable + public partial class SqlProtectionPolicy : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -41,9 +41,9 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureSqlProtectionPolicy DeserializeAzureSqlProtectionPolicy(JsonElement element) + internal static SqlProtectionPolicy DeserializeSqlProtectionPolicy(JsonElement element) { - Optional retentionPolicy = default; + Optional retentionPolicy = default; Optional protectedItemsCount = default; string backupManagementType = default; Optional> resourceGuardOperationRequests = default; @@ -56,7 +56,7 @@ internal static AzureSqlProtectionPolicy DeserializeAzureSqlProtectionPolicy(Jso property.ThrowNonNullablePropertyIsNull(); continue; } - retentionPolicy = RetentionPolicy.DeserializeRetentionPolicy(property.Value); + retentionPolicy = BackupRetentionPolicy.DeserializeBackupRetentionPolicy(property.Value); continue; } if (property.NameEquals("protectedItemsCount"u8)) @@ -90,7 +90,7 @@ internal static AzureSqlProtectionPolicy DeserializeAzureSqlProtectionPolicy(Jso continue; } } - return new AzureSqlProtectionPolicy(Optional.ToNullable(protectedItemsCount), backupManagementType, Optional.ToList(resourceGuardOperationRequests), retentionPolicy.Value); + return new SqlProtectionPolicy(Optional.ToNullable(protectedItemsCount), backupManagementType, Optional.ToList(resourceGuardOperationRequests), retentionPolicy.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureSqlProtectionPolicy.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SqlProtectionPolicy.cs similarity index 54% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureSqlProtectionPolicy.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SqlProtectionPolicy.cs index 6a5da4b35b88c..9fff4a8da7070 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureSqlProtectionPolicy.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SqlProtectionPolicy.cs @@ -10,24 +10,24 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Azure SQL workload-specific backup policy. - public partial class AzureSqlProtectionPolicy : ProtectionPolicy + public partial class SqlProtectionPolicy : BackupGenericProtectionPolicy { - /// Initializes a new instance of AzureSqlProtectionPolicy. - public AzureSqlProtectionPolicy() + /// Initializes a new instance of SqlProtectionPolicy. + public SqlProtectionPolicy() { BackupManagementType = "AzureSql"; } - /// Initializes a new instance of AzureSqlProtectionPolicy. + /// Initializes a new instance of SqlProtectionPolicy. /// Number of items associated with this policy. /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. /// ResourceGuard Operation Requests. /// /// Retention policy details. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// - internal AzureSqlProtectionPolicy(int? protectedItemsCount, string backupManagementType, IList resourceGuardOperationRequests, RetentionPolicy retentionPolicy) : base(protectedItemsCount, backupManagementType, resourceGuardOperationRequests) + internal SqlProtectionPolicy(int? protectedItemsCount, string backupManagementType, IList resourceGuardOperationRequests, BackupRetentionPolicy retentionPolicy) : base(protectedItemsCount, backupManagementType, resourceGuardOperationRequests) { RetentionPolicy = retentionPolicy; BackupManagementType = backupManagementType ?? "AzureSql"; @@ -35,9 +35,9 @@ internal AzureSqlProtectionPolicy(int? protectedItemsCount, string backupManagem /// /// Retention policy details. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// - public RetentionPolicy RetentionPolicy { get; set; } + public BackupRetentionPolicy RetentionPolicy { get; set; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureStorageJob.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageBackupJob.Serialization.cs similarity index 90% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureStorageJob.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageBackupJob.Serialization.cs index 6cb5aa4e78bb9..c1593d8a98aec 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureStorageJob.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageBackupJob.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureStorageJob : IUtf8JsonSerializable + public partial class StorageBackupJob : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -102,14 +102,14 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureStorageJob DeserializeAzureStorageJob(JsonElement element) + internal static StorageBackupJob DeserializeStorageBackupJob(JsonElement element) { Optional duration = default; Optional> actionsInfo = default; - Optional> errorDetails = default; + Optional> errorDetails = default; Optional storageAccountName = default; Optional storageAccountVersion = default; - Optional extendedInfo = default; + Optional extendedInfo = default; Optional isUserTriggered = default; Optional entityFriendlyName = default; Optional backupManagementType = default; @@ -153,10 +153,10 @@ internal static AzureStorageJob DeserializeAzureStorageJob(JsonElement element) property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(AzureStorageErrorInfo.DeserializeAzureStorageErrorInfo(item)); + array.Add(StorageErrorInfo.DeserializeStorageErrorInfo(item)); } errorDetails = array; continue; @@ -178,7 +178,7 @@ internal static AzureStorageJob DeserializeAzureStorageJob(JsonElement element) property.ThrowNonNullablePropertyIsNull(); continue; } - extendedInfo = AzureStorageJobExtendedInfo.DeserializeAzureStorageJobExtendedInfo(property.Value); + extendedInfo = StorageBackupJobExtendedInfo.DeserializeStorageBackupJobExtendedInfo(property.Value); continue; } if (property.NameEquals("isUserTriggered"u8)) @@ -247,7 +247,7 @@ internal static AzureStorageJob DeserializeAzureStorageJob(JsonElement element) continue; } } - return new AzureStorageJob(entityFriendlyName.Value, Optional.ToNullable(backupManagementType), operation.Value, status.Value, Optional.ToNullable(startTime), Optional.ToNullable(endTime), activityId.Value, jobType, Optional.ToNullable(duration), Optional.ToList(actionsInfo), Optional.ToList(errorDetails), storageAccountName.Value, storageAccountVersion.Value, extendedInfo.Value, Optional.ToNullable(isUserTriggered)); + return new StorageBackupJob(entityFriendlyName.Value, Optional.ToNullable(backupManagementType), operation.Value, status.Value, Optional.ToNullable(startTime), Optional.ToNullable(endTime), activityId.Value, jobType, Optional.ToNullable(duration), Optional.ToList(actionsInfo), Optional.ToList(errorDetails), storageAccountName.Value, storageAccountVersion.Value, extendedInfo.Value, Optional.ToNullable(isUserTriggered)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureStorageJob.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageBackupJob.cs similarity index 76% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureStorageJob.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageBackupJob.cs index 1d5f58eef2ade..d3286b10efa0a 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureStorageJob.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageBackupJob.cs @@ -12,17 +12,17 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Azure storage specific job. - public partial class AzureStorageJob : Job + public partial class StorageBackupJob : BackupGenericJob { - /// Initializes a new instance of AzureStorageJob. - public AzureStorageJob() + /// Initializes a new instance of StorageBackupJob. + public StorageBackupJob() { ActionsInfo = new ChangeTrackingList(); - ErrorDetails = new ChangeTrackingList(); + ErrorDetails = new ChangeTrackingList(); JobType = "AzureStorageJob"; } - /// Initializes a new instance of AzureStorageJob. + /// Initializes a new instance of StorageBackupJob. /// Friendly name of the entity on which the current job is executing. /// Backup management type to execute the current job. /// The operation name. @@ -38,7 +38,7 @@ public AzureStorageJob() /// Specifies whether the Storage account is a Classic or an Azure Resource Manager Storage account. /// Additional information about the job. /// Indicated that whether the job is adhoc(true) or scheduled(false). - internal AzureStorageJob(string entityFriendlyName, BackupManagementType? backupManagementType, string operation, string status, DateTimeOffset? startOn, DateTimeOffset? endOn, string activityId, string jobType, TimeSpan? duration, IList actionsInfo, IList errorDetails, string storageAccountName, string storageAccountVersion, AzureStorageJobExtendedInfo extendedInfo, bool? isUserTriggered) : base(entityFriendlyName, backupManagementType, operation, status, startOn, endOn, activityId, jobType) + internal StorageBackupJob(string entityFriendlyName, BackupManagementType? backupManagementType, string operation, string status, DateTimeOffset? startOn, DateTimeOffset? endOn, string activityId, string jobType, TimeSpan? duration, IList actionsInfo, IList errorDetails, string storageAccountName, string storageAccountVersion, StorageBackupJobExtendedInfo extendedInfo, bool? isUserTriggered) : base(entityFriendlyName, backupManagementType, operation, status, startOn, endOn, activityId, jobType) { Duration = duration; ActionsInfo = actionsInfo; @@ -55,13 +55,13 @@ internal AzureStorageJob(string entityFriendlyName, BackupManagementType? backup /// Gets or sets the state/actions applicable on this job like cancel/retry. public IList ActionsInfo { get; } /// Error details on execution of this job. - public IList ErrorDetails { get; } + public IList ErrorDetails { get; } /// Specifies friendly name of the storage account. public string StorageAccountName { get; set; } /// Specifies whether the Storage account is a Classic or an Azure Resource Manager Storage account. public string StorageAccountVersion { get; set; } /// Additional information about the job. - public AzureStorageJobExtendedInfo ExtendedInfo { get; set; } + public StorageBackupJobExtendedInfo ExtendedInfo { get; set; } /// Indicated that whether the job is adhoc(true) or scheduled(false). public bool? IsUserTriggered { get; set; } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadJobExtendedInfo.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageBackupJobExtendedInfo.Serialization.cs similarity index 86% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadJobExtendedInfo.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageBackupJobExtendedInfo.Serialization.cs index 9c53362f14e3f..455918fb3711d 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadJobExtendedInfo.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageBackupJobExtendedInfo.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureWorkloadJobExtendedInfo : IUtf8JsonSerializable + public partial class StorageBackupJobExtendedInfo : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -45,9 +45,9 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureWorkloadJobExtendedInfo DeserializeAzureWorkloadJobExtendedInfo(JsonElement element) + internal static StorageBackupJobExtendedInfo DeserializeStorageBackupJobExtendedInfo(JsonElement element) { - Optional> tasksList = default; + Optional> tasksList = default; Optional> propertyBag = default; Optional dynamicErrorMessage = default; foreach (var property in element.EnumerateObject()) @@ -59,10 +59,10 @@ internal static AzureWorkloadJobExtendedInfo DeserializeAzureWorkloadJobExtended property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(AzureWorkloadJobTaskDetails.DeserializeAzureWorkloadJobTaskDetails(item)); + array.Add(StorageBackupJobTaskDetails.DeserializeStorageBackupJobTaskDetails(item)); } tasksList = array; continue; @@ -88,7 +88,7 @@ internal static AzureWorkloadJobExtendedInfo DeserializeAzureWorkloadJobExtended continue; } } - return new AzureWorkloadJobExtendedInfo(Optional.ToList(tasksList), Optional.ToDictionary(propertyBag), dynamicErrorMessage.Value); + return new StorageBackupJobExtendedInfo(Optional.ToList(tasksList), Optional.ToDictionary(propertyBag), dynamicErrorMessage.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureStorageJobExtendedInfo.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageBackupJobExtendedInfo.cs similarity index 66% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureStorageJobExtendedInfo.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageBackupJobExtendedInfo.cs index 2a9b8ba526d09..cdd4ea9f14604 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureStorageJobExtendedInfo.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageBackupJobExtendedInfo.cs @@ -11,20 +11,20 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Azure Storage workload-specific additional information for job. - public partial class AzureStorageJobExtendedInfo + public partial class StorageBackupJobExtendedInfo { - /// Initializes a new instance of AzureStorageJobExtendedInfo. - public AzureStorageJobExtendedInfo() + /// Initializes a new instance of StorageBackupJobExtendedInfo. + public StorageBackupJobExtendedInfo() { - TasksList = new ChangeTrackingList(); + TasksList = new ChangeTrackingList(); PropertyBag = new ChangeTrackingDictionary(); } - /// Initializes a new instance of AzureStorageJobExtendedInfo. + /// Initializes a new instance of StorageBackupJobExtendedInfo. /// List of tasks for this job. /// Job properties. /// Non localized error message on job execution. - internal AzureStorageJobExtendedInfo(IList tasksList, IDictionary propertyBag, string dynamicErrorMessage) + internal StorageBackupJobExtendedInfo(IList tasksList, IDictionary propertyBag, string dynamicErrorMessage) { TasksList = tasksList; PropertyBag = propertyBag; @@ -32,7 +32,7 @@ internal AzureStorageJobExtendedInfo(IList tasksList } /// List of tasks for this job. - public IList TasksList { get; } + public IList TasksList { get; } /// Job properties. public IDictionary PropertyBag { get; } /// Non localized error message on job execution. diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadJobTaskDetails.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageBackupJobTaskDetails.Serialization.cs similarity index 84% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadJobTaskDetails.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageBackupJobTaskDetails.Serialization.cs index b086eb0bf1516..77937037e3a1a 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadJobTaskDetails.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageBackupJobTaskDetails.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureWorkloadJobTaskDetails : IUtf8JsonSerializable + public partial class StorageBackupJobTaskDetails : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -28,7 +28,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureWorkloadJobTaskDetails DeserializeAzureWorkloadJobTaskDetails(JsonElement element) + internal static StorageBackupJobTaskDetails DeserializeStorageBackupJobTaskDetails(JsonElement element) { Optional taskId = default; Optional status = default; @@ -45,7 +45,7 @@ internal static AzureWorkloadJobTaskDetails DeserializeAzureWorkloadJobTaskDetai continue; } } - return new AzureWorkloadJobTaskDetails(taskId.Value, status.Value); + return new StorageBackupJobTaskDetails(taskId.Value, status.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureStorageJobTaskDetails.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageBackupJobTaskDetails.cs similarity index 66% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureStorageJobTaskDetails.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageBackupJobTaskDetails.cs index a9683cfdaa96f..98d2b09d8b7b5 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureStorageJobTaskDetails.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageBackupJobTaskDetails.cs @@ -8,17 +8,17 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Azure storage workload specific job task details. - public partial class AzureStorageJobTaskDetails + public partial class StorageBackupJobTaskDetails { - /// Initializes a new instance of AzureStorageJobTaskDetails. - public AzureStorageJobTaskDetails() + /// Initializes a new instance of StorageBackupJobTaskDetails. + public StorageBackupJobTaskDetails() { } - /// Initializes a new instance of AzureStorageJobTaskDetails. + /// Initializes a new instance of StorageBackupJobTaskDetails. /// The task display name. /// The status. - internal AzureStorageJobTaskDetails(string taskId, string status) + internal StorageBackupJobTaskDetails(string taskId, string status) { TaskId = taskId; Status = status; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureStorageContainer.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageContainer.Serialization.cs similarity index 87% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureStorageContainer.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageContainer.Serialization.cs index d61446c6abb58..8a7f1d7b98172 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureStorageContainer.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageContainer.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureStorageContainer : IUtf8JsonSerializable + public partial class StorageContainer : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -70,9 +70,9 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureStorageContainer DeserializeAzureStorageContainer(JsonElement element) + internal static StorageContainer DeserializeStorageContainer(JsonElement element) { - Optional sourceResourceId = default; + Optional sourceResourceId = default; Optional storageAccountVersion = default; Optional resourceGroup = default; Optional protectedItemCount = default; @@ -87,7 +87,12 @@ internal static AzureStorageContainer DeserializeAzureStorageContainer(JsonEleme { if (property.NameEquals("sourceResourceId"u8)) { - sourceResourceId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + sourceResourceId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("storageAccountVersion"u8)) @@ -156,7 +161,7 @@ internal static AzureStorageContainer DeserializeAzureStorageContainer(JsonEleme continue; } } - return new AzureStorageContainer(friendlyName.Value, Optional.ToNullable(backupManagementType), registrationStatus.Value, healthStatus.Value, containerType, protectableObjectType.Value, sourceResourceId.Value, storageAccountVersion.Value, resourceGroup.Value, Optional.ToNullable(protectedItemCount), Optional.ToNullable(acquireStorageAccountLock)); + return new StorageContainer(friendlyName.Value, Optional.ToNullable(backupManagementType), registrationStatus.Value, healthStatus.Value, containerType, protectableObjectType.Value, sourceResourceId.Value, storageAccountVersion.Value, resourceGroup.Value, Optional.ToNullable(protectedItemCount), Optional.ToNullable(acquireStorageAccountLock)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureStorageContainer.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageContainer.cs similarity index 76% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureStorageContainer.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageContainer.cs index c51c9b4fd548d..ecb6367eb22ac 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureStorageContainer.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageContainer.cs @@ -5,18 +5,20 @@ #nullable disable +using Azure.Core; + namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Azure Storage Account workload-specific container. - public partial class AzureStorageContainer : ProtectionContainer + public partial class StorageContainer : BackupGenericProtectionContainer { - /// Initializes a new instance of AzureStorageContainer. - public AzureStorageContainer() + /// Initializes a new instance of StorageContainer. + public StorageContainer() { ContainerType = ProtectableContainerType.StorageContainer; } - /// Initializes a new instance of AzureStorageContainer. + /// Initializes a new instance of StorageContainer. /// Friendly name of the container. /// Type of backup management for the container. /// Status of registration of the container with the Recovery Services Vault. @@ -33,7 +35,7 @@ public AzureStorageContainer() /// Resource group name of Recovery Services Vault. /// Number of items backed up in this container. /// Whether storage account lock is to be acquired for this container or not. - internal AzureStorageContainer(string friendlyName, BackupManagementType? backupManagementType, string registrationStatus, string healthStatus, ProtectableContainerType containerType, string protectableObjectType, string sourceResourceId, string storageAccountVersion, string resourceGroup, long? protectedItemCount, AcquireStorageAccountLock? acquireStorageAccountLock) : base(friendlyName, backupManagementType, registrationStatus, healthStatus, containerType, protectableObjectType) + internal StorageContainer(string friendlyName, BackupManagementType? backupManagementType, string registrationStatus, string healthStatus, ProtectableContainerType containerType, string protectableObjectType, ResourceIdentifier sourceResourceId, string storageAccountVersion, string resourceGroup, long? protectedItemCount, AcquireStorageAccountLock? acquireStorageAccountLock) : base(friendlyName, backupManagementType, registrationStatus, healthStatus, containerType, protectableObjectType) { SourceResourceId = sourceResourceId; StorageAccountVersion = storageAccountVersion; @@ -44,7 +46,7 @@ internal AzureStorageContainer(string friendlyName, BackupManagementType? backup } /// Fully qualified ARM url. - public string SourceResourceId { get; set; } + public ResourceIdentifier SourceResourceId { get; set; } /// Storage account version. public string StorageAccountVersion { get; set; } /// Resource group name of Recovery Services Vault. diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultJobErrorInfo.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageErrorInfo.Serialization.cs similarity index 90% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultJobErrorInfo.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageErrorInfo.Serialization.cs index 937b3c24e11cb..1ce94a303ee80 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultJobErrorInfo.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageErrorInfo.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class VaultJobErrorInfo : IUtf8JsonSerializable + public partial class StorageErrorInfo : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -39,7 +39,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static VaultJobErrorInfo DeserializeVaultJobErrorInfo(JsonElement element) + internal static StorageErrorInfo DeserializeStorageErrorInfo(JsonElement element) { Optional errorCode = default; Optional errorString = default; @@ -77,7 +77,7 @@ internal static VaultJobErrorInfo DeserializeVaultJobErrorInfo(JsonElement eleme continue; } } - return new VaultJobErrorInfo(Optional.ToNullable(errorCode), errorString.Value, Optional.ToList(recommendations)); + return new StorageErrorInfo(Optional.ToNullable(errorCode), errorString.Value, Optional.ToList(recommendations)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureStorageErrorInfo.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageErrorInfo.cs similarity index 75% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureStorageErrorInfo.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageErrorInfo.cs index a43a2fbae0c7f..a59f4037a285d 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureStorageErrorInfo.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageErrorInfo.cs @@ -11,19 +11,19 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Azure storage specific error information. - public partial class AzureStorageErrorInfo + public partial class StorageErrorInfo { - /// Initializes a new instance of AzureStorageErrorInfo. - public AzureStorageErrorInfo() + /// Initializes a new instance of StorageErrorInfo. + public StorageErrorInfo() { Recommendations = new ChangeTrackingList(); } - /// Initializes a new instance of AzureStorageErrorInfo. + /// Initializes a new instance of StorageErrorInfo. /// Error code. /// Localized error string. /// List of localized recommendations for above error code. - internal AzureStorageErrorInfo(int? errorCode, string errorString, IList recommendations) + internal StorageErrorInfo(int? errorCode, string errorString, IList recommendations) { ErrorCode = errorCode; ErrorString = errorString; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureStorageProtectableContainer.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageProtectableContainer.Serialization.cs similarity index 88% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureStorageProtectableContainer.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageProtectableContainer.Serialization.cs index 60b4f3dd981a7..318c7eb216e57 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureStorageProtectableContainer.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageProtectableContainer.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureStorageProtectableContainer : IUtf8JsonSerializable + public partial class StorageProtectableContainer : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -40,7 +40,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureStorageProtectableContainer DeserializeAzureStorageProtectableContainer(JsonElement element) + internal static StorageProtectableContainer DeserializeStorageProtectableContainer(JsonElement element) { Optional friendlyName = default; Optional backupManagementType = default; @@ -80,7 +80,7 @@ internal static AzureStorageProtectableContainer DeserializeAzureStorageProtecta continue; } } - return new AzureStorageProtectableContainer(friendlyName.Value, Optional.ToNullable(backupManagementType), protectableContainerType, healthStatus.Value, containerId.Value); + return new StorageProtectableContainer(friendlyName.Value, Optional.ToNullable(backupManagementType), protectableContainerType, healthStatus.Value, containerId.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureStorageProtectableContainer.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageProtectableContainer.cs similarity index 64% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureStorageProtectableContainer.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageProtectableContainer.cs index 16d8a7ff2a140..775dd11e881be 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureStorageProtectableContainer.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageProtectableContainer.cs @@ -8,15 +8,15 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Azure Storage-specific protectable containers. - public partial class AzureStorageProtectableContainer : ProtectableContainer + public partial class StorageProtectableContainer : ProtectableContainer { - /// Initializes a new instance of AzureStorageProtectableContainer. - public AzureStorageProtectableContainer() + /// Initializes a new instance of StorageProtectableContainer. + public StorageProtectableContainer() { ProtectableContainerType = ProtectableContainerType.StorageContainer; } - /// Initializes a new instance of AzureStorageProtectableContainer. + /// Initializes a new instance of StorageProtectableContainer. /// Friendly name of the container. /// Type of backup management for the container. /// @@ -26,7 +26,7 @@ public AzureStorageProtectableContainer() /// /// Status of health of the container. /// Fabric Id of the container such as ARM Id. - internal AzureStorageProtectableContainer(string friendlyName, BackupManagementType? backupManagementType, ProtectableContainerType protectableContainerType, string healthStatus, string containerId) : base(friendlyName, backupManagementType, protectableContainerType, healthStatus, containerId) + internal StorageProtectableContainer(string friendlyName, BackupManagementType? backupManagementType, ProtectableContainerType protectableContainerType, string healthStatus, string containerId) : base(friendlyName, backupManagementType, protectableContainerType, healthStatus, containerId) { ProtectableContainerType = protectableContainerType; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageType.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageType.cs deleted file mode 100644 index f8a04f097faba..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageType.cs +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - /// Storage type. - public readonly partial struct StorageType : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public StorageType(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string InvalidValue = "Invalid"; - private const string GeoRedundantValue = "GeoRedundant"; - private const string LocallyRedundantValue = "LocallyRedundant"; - private const string ZoneRedundantValue = "ZoneRedundant"; - private const string ReadAccessGeoZoneRedundantValue = "ReadAccessGeoZoneRedundant"; - - /// Invalid. - public static StorageType Invalid { get; } = new StorageType(InvalidValue); - /// GeoRedundant. - public static StorageType GeoRedundant { get; } = new StorageType(GeoRedundantValue); - /// LocallyRedundant. - public static StorageType LocallyRedundant { get; } = new StorageType(LocallyRedundantValue); - /// ZoneRedundant. - public static StorageType ZoneRedundant { get; } = new StorageType(ZoneRedundantValue); - /// ReadAccessGeoZoneRedundant. - public static StorageType ReadAccessGeoZoneRedundant { get; } = new StorageType(ReadAccessGeoZoneRedundantValue); - /// Determines if two values are the same. - public static bool operator ==(StorageType left, StorageType right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(StorageType left, StorageType right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator StorageType(string value) => new StorageType(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is StorageType other && Equals(other); - /// - public bool Equals(StorageType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageTypeState.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageTypeState.cs deleted file mode 100644 index 74d9267ff1caf..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageTypeState.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - /// Locked or Unlocked. Once a machine is registered against a resource, the storageTypeState is always Locked. - public readonly partial struct StorageTypeState : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public StorageTypeState(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string InvalidValue = "Invalid"; - private const string LockedValue = "Locked"; - private const string UnlockedValue = "Unlocked"; - - /// Invalid. - public static StorageTypeState Invalid { get; } = new StorageTypeState(InvalidValue); - /// Locked. - public static StorageTypeState Locked { get; } = new StorageTypeState(LockedValue); - /// Unlocked. - public static StorageTypeState Unlocked { get; } = new StorageTypeState(UnlockedValue); - /// Determines if two values are the same. - public static bool operator ==(StorageTypeState left, StorageTypeState right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(StorageTypeState left, StorageTypeState right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator StorageTypeState(string value) => new StorageTypeState(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is StorageTypeState other && Equals(other); - /// - public bool Equals(StorageTypeState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SubProtectionPolicy.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SubProtectionPolicy.Serialization.cs index a2028d997c70e..5023ffaf243c7 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SubProtectionPolicy.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SubProtectionPolicy.Serialization.cs @@ -47,10 +47,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) internal static SubProtectionPolicy DeserializeSubProtectionPolicy(JsonElement element) { - Optional policyType = default; - Optional schedulePolicy = default; - Optional retentionPolicy = default; - Optional> tieringPolicy = default; + Optional policyType = default; + Optional schedulePolicy = default; + Optional retentionPolicy = default; + Optional> tieringPolicy = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("policyType"u8)) @@ -60,7 +60,7 @@ internal static SubProtectionPolicy DeserializeSubProtectionPolicy(JsonElement e property.ThrowNonNullablePropertyIsNull(); continue; } - policyType = new PolicyType(property.Value.GetString()); + policyType = new SubProtectionPolicyType(property.Value.GetString()); continue; } if (property.NameEquals("schedulePolicy"u8)) @@ -70,7 +70,7 @@ internal static SubProtectionPolicy DeserializeSubProtectionPolicy(JsonElement e property.ThrowNonNullablePropertyIsNull(); continue; } - schedulePolicy = SchedulePolicy.DeserializeSchedulePolicy(property.Value); + schedulePolicy = BackupSchedulePolicy.DeserializeBackupSchedulePolicy(property.Value); continue; } if (property.NameEquals("retentionPolicy"u8)) @@ -80,7 +80,7 @@ internal static SubProtectionPolicy DeserializeSubProtectionPolicy(JsonElement e property.ThrowNonNullablePropertyIsNull(); continue; } - retentionPolicy = RetentionPolicy.DeserializeRetentionPolicy(property.Value); + retentionPolicy = BackupRetentionPolicy.DeserializeBackupRetentionPolicy(property.Value); continue; } if (property.NameEquals("tieringPolicy"u8)) @@ -90,10 +90,10 @@ internal static SubProtectionPolicy DeserializeSubProtectionPolicy(JsonElement e property.ThrowNonNullablePropertyIsNull(); continue; } - Dictionary dictionary = new Dictionary(); + Dictionary dictionary = new Dictionary(); foreach (var property0 in property.Value.EnumerateObject()) { - dictionary.Add(property0.Name, Models.TieringPolicy.DeserializeTieringPolicy(property0.Value)); + dictionary.Add(property0.Name, BackupTieringPolicy.DeserializeBackupTieringPolicy(property0.Value)); } tieringPolicy = dictionary; continue; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SubProtectionPolicy.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SubProtectionPolicy.cs index 450129fd1cb25..2d16fff8663ff 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SubProtectionPolicy.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SubProtectionPolicy.cs @@ -16,19 +16,19 @@ public partial class SubProtectionPolicy /// Initializes a new instance of SubProtectionPolicy. public SubProtectionPolicy() { - TieringPolicy = new ChangeTrackingDictionary(); + TieringPolicy = new ChangeTrackingDictionary(); } /// Initializes a new instance of SubProtectionPolicy. /// Type of backup policy type. /// /// Backup schedule specified as part of backup policy. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include , , and . /// /// /// Retention policy with the details on backup copy retention ranges. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// /// @@ -36,7 +36,7 @@ public SubProtectionPolicy() /// Key is Target Tier, defined in RecoveryPointTierType enum. /// Tiering policy specifies the criteria to move RP to the target tier. /// - internal SubProtectionPolicy(PolicyType? policyType, SchedulePolicy schedulePolicy, RetentionPolicy retentionPolicy, IDictionary tieringPolicy) + internal SubProtectionPolicy(SubProtectionPolicyType? policyType, BackupSchedulePolicy schedulePolicy, BackupRetentionPolicy retentionPolicy, IDictionary tieringPolicy) { PolicyType = policyType; SchedulePolicy = schedulePolicy; @@ -45,24 +45,24 @@ internal SubProtectionPolicy(PolicyType? policyType, SchedulePolicy schedulePoli } /// Type of backup policy type. - public PolicyType? PolicyType { get; set; } + public SubProtectionPolicyType? PolicyType { get; set; } /// /// Backup schedule specified as part of backup policy. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include , , and . /// - public SchedulePolicy SchedulePolicy { get; set; } + public BackupSchedulePolicy SchedulePolicy { get; set; } /// /// Retention policy with the details on backup copy retention ranges. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// - public RetentionPolicy RetentionPolicy { get; set; } + public BackupRetentionPolicy RetentionPolicy { get; set; } /// /// Tiering policy to automatically move RPs to another tier. /// Key is Target Tier, defined in RecoveryPointTierType enum. /// Tiering policy specifies the criteria to move RP to the target tier. /// - public IDictionary TieringPolicy { get; } + public IDictionary TieringPolicy { get; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SubProtectionPolicyType.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SubProtectionPolicyType.cs new file mode 100644 index 0000000000000..f1078a1610925 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SubProtectionPolicyType.cs @@ -0,0 +1,69 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Models +{ + /// Type of backup policy type. + public readonly partial struct SubProtectionPolicyType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public SubProtectionPolicyType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string InvalidValue = "Invalid"; + private const string FullValue = "Full"; + private const string DifferentialValue = "Differential"; + private const string LogValue = "Log"; + private const string CopyOnlyFullValue = "CopyOnlyFull"; + private const string IncrementalValue = "Incremental"; + private const string SnapshotFullValue = "SnapshotFull"; + private const string SnapshotCopyOnlyFullValue = "SnapshotCopyOnlyFull"; + + /// Invalid. + public static SubProtectionPolicyType Invalid { get; } = new SubProtectionPolicyType(InvalidValue); + /// Full. + public static SubProtectionPolicyType Full { get; } = new SubProtectionPolicyType(FullValue); + /// Differential. + public static SubProtectionPolicyType Differential { get; } = new SubProtectionPolicyType(DifferentialValue); + /// Log. + public static SubProtectionPolicyType Log { get; } = new SubProtectionPolicyType(LogValue); + /// CopyOnlyFull. + public static SubProtectionPolicyType CopyOnlyFull { get; } = new SubProtectionPolicyType(CopyOnlyFullValue); + /// Incremental. + public static SubProtectionPolicyType Incremental { get; } = new SubProtectionPolicyType(IncrementalValue); + /// SnapshotFull. + public static SubProtectionPolicyType SnapshotFull { get; } = new SubProtectionPolicyType(SnapshotFullValue); + /// SnapshotCopyOnlyFull. + public static SubProtectionPolicyType SnapshotCopyOnlyFull { get; } = new SubProtectionPolicyType(SnapshotCopyOnlyFullValue); + /// Determines if two values are the same. + public static bool operator ==(SubProtectionPolicyType left, SubProtectionPolicyType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(SubProtectionPolicyType left, SubProtectionPolicyType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator SubProtectionPolicyType(string value) => new SubProtectionPolicyType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is SubProtectionPolicyType other && Equals(other); + /// + public bool Equals(SubProtectionPolicyType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SupportStatus.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SupportStatus.cs deleted file mode 100644 index 50ff8022f65cc..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SupportStatus.cs +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - /// Support status of feature. - public readonly partial struct SupportStatus : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public SupportStatus(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string InvalidValue = "Invalid"; - private const string SupportedValue = "Supported"; - private const string DefaultOFFValue = "DefaultOFF"; - private const string DefaultONValue = "DefaultON"; - private const string NotSupportedValue = "NotSupported"; - - /// Invalid. - public static SupportStatus Invalid { get; } = new SupportStatus(InvalidValue); - /// Supported. - public static SupportStatus Supported { get; } = new SupportStatus(SupportedValue); - /// DefaultOFF. - public static SupportStatus DefaultOFF { get; } = new SupportStatus(DefaultOFFValue); - /// DefaultON. - public static SupportStatus DefaultON { get; } = new SupportStatus(DefaultONValue); - /// NotSupported. - public static SupportStatus NotSupported { get; } = new SupportStatus(NotSupportedValue); - /// Determines if two values are the same. - public static bool operator ==(SupportStatus left, SupportStatus right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(SupportStatus left, SupportStatus right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator SupportStatus(string value) => new SupportStatus(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is SupportStatus other && Equals(other); - /// - public bool Equals(SupportStatus other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TargetAFSRestoreInfo.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TargetAfsRestoreInfo.Serialization.cs similarity index 68% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TargetAFSRestoreInfo.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TargetAfsRestoreInfo.Serialization.cs index 3fee53081af3d..2bdcc9ab8af06 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TargetAFSRestoreInfo.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TargetAfsRestoreInfo.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class TargetAFSRestoreInfo : IUtf8JsonSerializable + public partial class TargetAfsRestoreInfo : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -28,10 +28,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static TargetAFSRestoreInfo DeserializeTargetAFSRestoreInfo(JsonElement element) + internal static TargetAfsRestoreInfo DeserializeTargetAfsRestoreInfo(JsonElement element) { Optional name = default; - Optional targetResourceId = default; + Optional targetResourceId = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("name"u8)) @@ -41,11 +41,16 @@ internal static TargetAFSRestoreInfo DeserializeTargetAFSRestoreInfo(JsonElement } if (property.NameEquals("targetResourceId"u8)) { - targetResourceId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + targetResourceId = new ResourceIdentifier(property.Value.GetString()); continue; } } - return new TargetAFSRestoreInfo(name.Value, targetResourceId.Value); + return new TargetAfsRestoreInfo(name.Value, targetResourceId.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TargetAFSRestoreInfo.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TargetAfsRestoreInfo.cs similarity index 65% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TargetAFSRestoreInfo.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TargetAfsRestoreInfo.cs index db6d4b65a035d..2f88445203ef7 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TargetAFSRestoreInfo.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TargetAfsRestoreInfo.cs @@ -5,20 +5,22 @@ #nullable disable +using Azure.Core; + namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Target Azure File Share Info. - public partial class TargetAFSRestoreInfo + public partial class TargetAfsRestoreInfo { - /// Initializes a new instance of TargetAFSRestoreInfo. - public TargetAFSRestoreInfo() + /// Initializes a new instance of TargetAfsRestoreInfo. + public TargetAfsRestoreInfo() { } - /// Initializes a new instance of TargetAFSRestoreInfo. + /// Initializes a new instance of TargetAfsRestoreInfo. /// File share name. /// Target file share resource ARM ID. - internal TargetAFSRestoreInfo(string name, string targetResourceId) + internal TargetAfsRestoreInfo(string name, ResourceIdentifier targetResourceId) { Name = name; TargetResourceId = targetResourceId; @@ -27,6 +29,6 @@ internal TargetAFSRestoreInfo(string name, string targetResourceId) /// File share name. public string Name { get; set; } /// Target file share resource ARM ID. - public string TargetResourceId { get; set; } + public ResourceIdentifier TargetResourceId { get; set; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TargetRestoreInfo.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TargetRestoreInfo.Serialization.cs index 3034df7498d08..5eb1bfafb2b87 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TargetRestoreInfo.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TargetRestoreInfo.Serialization.cs @@ -40,7 +40,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) internal static TargetRestoreInfo DeserializeTargetRestoreInfo(JsonElement element) { - Optional overwriteOption = default; + Optional overwriteOption = default; Optional containerId = default; Optional databaseName = default; Optional targetDirectoryForFileRestore = default; @@ -53,7 +53,7 @@ internal static TargetRestoreInfo DeserializeTargetRestoreInfo(JsonElement eleme property.ThrowNonNullablePropertyIsNull(); continue; } - overwriteOption = new OverwriteOption(property.Value.GetString()); + overwriteOption = new RestoreOverwriteOption(property.Value.GetString()); continue; } if (property.NameEquals("containerId"u8)) diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TargetRestoreInfo.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TargetRestoreInfo.cs index 52a2bc8ff239e..0b39deca7b5b4 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TargetRestoreInfo.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TargetRestoreInfo.cs @@ -20,7 +20,7 @@ public TargetRestoreInfo() /// Resource Id name of the container in which Target DataBase resides. /// Database name InstanceName/DataBaseName for SQL or System/DbName for SAP Hana. /// Target directory location for restore as files. - internal TargetRestoreInfo(OverwriteOption? overwriteOption, string containerId, string databaseName, string targetDirectoryForFileRestore) + internal TargetRestoreInfo(RestoreOverwriteOption? overwriteOption, string containerId, string databaseName, string targetDirectoryForFileRestore) { OverwriteOption = overwriteOption; ContainerId = containerId; @@ -29,7 +29,7 @@ internal TargetRestoreInfo(OverwriteOption? overwriteOption, string containerId, } /// Can Overwrite if Target DataBase already exists. - public OverwriteOption? OverwriteOption { get; set; } + public RestoreOverwriteOption? OverwriteOption { get; set; } /// Resource Id name of the container in which Target DataBase resides. public string ContainerId { get; set; } /// Database name InstanceName/DataBaseName for SQL or System/DbName for SAP Hana. diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TokenInformation.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TokenInformation.Serialization.cs index da330723f9a8d..ae397442b9e85 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TokenInformation.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TokenInformation.Serialization.cs @@ -16,7 +16,7 @@ internal static TokenInformation DeserializeTokenInformation(JsonElement element { Optional token = default; Optional expiryTimeInUtcTicks = default; - Optional securityPIN = default; + Optional securityPin = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("token"u8)) @@ -36,11 +36,11 @@ internal static TokenInformation DeserializeTokenInformation(JsonElement element } if (property.NameEquals("securityPIN"u8)) { - securityPIN = property.Value.GetString(); + securityPin = property.Value.GetString(); continue; } } - return new TokenInformation(token.Value, Optional.ToNullable(expiryTimeInUtcTicks), securityPIN.Value); + return new TokenInformation(token.Value, Optional.ToNullable(expiryTimeInUtcTicks), securityPin.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TokenInformation.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TokenInformation.cs index 528df71e1383e..e729182a3c216 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TokenInformation.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TokenInformation.cs @@ -18,12 +18,12 @@ internal TokenInformation() /// Initializes a new instance of TokenInformation. /// Token value. /// Expiry time of token. - /// Security PIN. - internal TokenInformation(string token, long? expiryTimeInUtcTicks, string securityPIN) + /// Security PIN. + internal TokenInformation(string token, long? expiryTimeInUtcTicks, string securityPin) { Token = token; ExpiryTimeInUtcTicks = expiryTimeInUtcTicks; - SecurityPIN = securityPIN; + SecurityPin = securityPin; } /// Token value. @@ -31,6 +31,6 @@ internal TokenInformation(string token, long? expiryTimeInUtcTicks, string secur /// Expiry time of token. public long? ExpiryTimeInUtcTicks { get; } /// Security PIN. - public string SecurityPIN { get; } + public string SecurityPin { get; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ILRRequestResource.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TriggerBackupContent.Serialization.cs similarity index 90% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ILRRequestResource.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TriggerBackupContent.Serialization.cs index f10fe0bcd94d0..45cd19191dd46 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ILRRequestResource.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TriggerBackupContent.Serialization.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class ILRRequestResource : IUtf8JsonSerializable + public partial class TriggerBackupContent : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -44,9 +44,9 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static ILRRequestResource DeserializeILRRequestResource(JsonElement element) + internal static TriggerBackupContent DeserializeTriggerBackupContent(JsonElement element) { - Optional properties = default; + Optional properties = default; Optional eTag = default; Optional> tags = default; AzureLocation location = default; @@ -63,7 +63,7 @@ internal static ILRRequestResource DeserializeILRRequestResource(JsonElement ele property.ThrowNonNullablePropertyIsNull(); continue; } - properties = ILRRequest.DeserializeILRRequest(property.Value); + properties = BackupContent.DeserializeBackupContent(property.Value); continue; } if (property.NameEquals("eTag"u8)) @@ -122,7 +122,7 @@ internal static ILRRequestResource DeserializeILRRequestResource(JsonElement ele continue; } } - return new ILRRequestResource(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, properties.Value, Optional.ToNullable(eTag)); + return new TriggerBackupContent(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, properties.Value, Optional.ToNullable(eTag)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupRequestResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TriggerBackupContent.cs similarity index 59% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupRequestResource.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TriggerBackupContent.cs index ad3f5c153a7ee..720a39883f452 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupRequestResource.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TriggerBackupContent.cs @@ -13,15 +13,15 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Base class for backup request. Workload-specific backup requests are derived from this class. - public partial class BackupRequestResource : TrackedResourceData + public partial class TriggerBackupContent : TrackedResourceData { - /// Initializes a new instance of BackupRequestResource. + /// Initializes a new instance of TriggerBackupContent. /// The location. - public BackupRequestResource(AzureLocation location) : base(location) + public TriggerBackupContent(AzureLocation location) : base(location) { } - /// Initializes a new instance of BackupRequestResource. + /// Initializes a new instance of TriggerBackupContent. /// The id. /// The name. /// The resourceType. @@ -30,11 +30,11 @@ public BackupRequestResource(AzureLocation location) : base(location) /// The location. /// /// BackupRequestResource properties - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . /// /// Optional ETag. - internal BackupRequestResource(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, BackupRequest properties, ETag? eTag) : base(id, name, resourceType, systemData, tags, location) + internal TriggerBackupContent(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, BackupContent properties, ETag? eTag) : base(id, name, resourceType, systemData, tags, location) { Properties = properties; ETag = eTag; @@ -42,10 +42,10 @@ internal BackupRequestResource(ResourceIdentifier id, string name, ResourceType /// /// BackupRequestResource properties - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . /// - public BackupRequest Properties { get; set; } + public BackupContent Properties { get; set; } /// Optional ETag. public ETag? ETag { get; set; } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TriggerDataMoveContent.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TriggerDataMoveContent.Serialization.cs index 1f86b8fdd2101..be1d947c8572f 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TriggerDataMoveContent.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TriggerDataMoveContent.Serialization.cs @@ -33,10 +33,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndArray(); } - if (Optional.IsDefined(PauseGC)) + if (Optional.IsDefined(DoesPauseGC)) { writer.WritePropertyName("pauseGC"u8); - writer.WriteBooleanValue(PauseGC.Value); + writer.WriteBooleanValue(DoesPauseGC.Value); } writer.WriteEndObject(); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TriggerDataMoveContent.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TriggerDataMoveContent.cs index 4a0a4deee2372..c9b37a5c744b8 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TriggerDataMoveContent.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TriggerDataMoveContent.cs @@ -19,31 +19,30 @@ public partial class TriggerDataMoveContent /// Source Region. /// DataMove Level. /// Correlation Id. - /// , or is null. - public TriggerDataMoveContent(string sourceResourceId, string sourceRegion, DataMoveLevel dataMoveLevel, string correlationId) + /// or is null. + public TriggerDataMoveContent(ResourceIdentifier sourceResourceId, AzureLocation sourceRegion, DataMoveLevel dataMoveLevel, string correlationId) { Argument.AssertNotNull(sourceResourceId, nameof(sourceResourceId)); - Argument.AssertNotNull(sourceRegion, nameof(sourceRegion)); Argument.AssertNotNull(correlationId, nameof(correlationId)); SourceResourceId = sourceResourceId; SourceRegion = sourceRegion; DataMoveLevel = dataMoveLevel; CorrelationId = correlationId; - SourceContainerArmIds = new ChangeTrackingList(); + SourceContainerArmIds = new ChangeTrackingList(); } /// ARM Id of source vault. - public string SourceResourceId { get; } + public ResourceIdentifier SourceResourceId { get; } /// Source Region. - public string SourceRegion { get; } + public AzureLocation SourceRegion { get; } /// DataMove Level. public DataMoveLevel DataMoveLevel { get; } /// Correlation Id. public string CorrelationId { get; } /// Source Container ArmIds. - public IList SourceContainerArmIds { get; } + public IList SourceContainerArmIds { get; } /// Pause GC. - public bool? PauseGC { get; set; } + public bool? DoesPauseGC { get; set; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupRequestResource.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TriggerRestoreContent.Serialization.cs similarity index 92% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupRequestResource.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TriggerRestoreContent.Serialization.cs index 6e8b6c15ecec3..4292844cbbd92 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupRequestResource.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TriggerRestoreContent.Serialization.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class BackupRequestResource : IUtf8JsonSerializable + public partial class TriggerRestoreContent : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -44,9 +44,9 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static BackupRequestResource DeserializeBackupRequestResource(JsonElement element) + internal static TriggerRestoreContent DeserializeTriggerRestoreContent(JsonElement element) { - Optional properties = default; + Optional properties = default; Optional eTag = default; Optional> tags = default; AzureLocation location = default; @@ -63,7 +63,7 @@ internal static BackupRequestResource DeserializeBackupRequestResource(JsonEleme property.ThrowNonNullablePropertyIsNull(); continue; } - properties = BackupRequest.DeserializeBackupRequest(property.Value); + properties = RestoreContent.DeserializeRestoreContent(property.Value); continue; } if (property.NameEquals("eTag"u8)) @@ -122,7 +122,7 @@ internal static BackupRequestResource DeserializeBackupRequestResource(JsonEleme continue; } } - return new BackupRequestResource(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, properties.Value, Optional.ToNullable(eTag)); + return new TriggerRestoreContent(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, properties.Value, Optional.ToNullable(eTag)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TriggerRestoreContent.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TriggerRestoreContent.cs new file mode 100644 index 0000000000000..d4582ff779268 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TriggerRestoreContent.cs @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure; +using Azure.Core; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Models +{ + /// Base class for restore request. Workload-specific restore requests are derived from this class. + public partial class TriggerRestoreContent : TrackedResourceData + { + /// Initializes a new instance of TriggerRestoreContent. + /// The location. + public TriggerRestoreContent(AzureLocation location) : base(location) + { + } + + /// Initializes a new instance of TriggerRestoreContent. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// + /// RestoreRequestResource properties + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , , , , , , and . + /// + /// Optional ETag. + internal TriggerRestoreContent(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, RestoreContent properties, ETag? eTag) : base(id, name, resourceType, systemData, tags, location) + { + Properties = properties; + ETag = eTag; + } + + /// + /// RestoreRequestResource properties + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , , , , , , and . + /// + public RestoreContent Properties { get; set; } + /// Optional ETag. + public ETag? ETag { get; set; } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownBackupEngineBase.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownBackupEngineBase.cs index b61c3c577ecd5..a775cbe2813c8 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownBackupEngineBase.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownBackupEngineBase.cs @@ -8,7 +8,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// The UnknownBackupEngineBase. - internal partial class UnknownBackupEngineBase : BackupEngineBase + internal partial class UnknownBackupEngineBase : BackupGenericEngine { /// Initializes a new instance of UnknownBackupEngineBase. /// Friendly name of the backup engine. diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownBackupRequest.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownBackupRequest.cs index f547517491d7e..c688840a2a818 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownBackupRequest.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownBackupRequest.cs @@ -8,7 +8,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// The UnknownBackupRequest. - internal partial class UnknownBackupRequest : BackupRequest + internal partial class UnknownBackupRequest : BackupContent { /// Initializes a new instance of UnknownBackupRequest. /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownILRRequest.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownIlrRequest.Serialization.cs similarity index 83% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownILRRequest.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownIlrRequest.Serialization.cs index bddca0c2c19e3..88258c0d0534e 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownILRRequest.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownIlrRequest.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - internal partial class UnknownILRRequest : IUtf8JsonSerializable + internal partial class UnknownIlrRequest : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -20,7 +20,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static UnknownILRRequest DeserializeUnknownILRRequest(JsonElement element) + internal static UnknownIlrRequest DeserializeUnknownIlrRequest(JsonElement element) { string objectType = "Unknown"; foreach (var property in element.EnumerateObject()) @@ -31,7 +31,7 @@ internal static UnknownILRRequest DeserializeUnknownILRRequest(JsonElement eleme continue; } } - return new UnknownILRRequest(objectType); + return new UnknownIlrRequest(objectType); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownILRRequest.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownIlrRequest.cs similarity index 66% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownILRRequest.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownIlrRequest.cs index d09d24d4b90a5..bbf620b4f7799 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownILRRequest.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownIlrRequest.cs @@ -7,12 +7,12 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - /// The UnknownILRRequest. - internal partial class UnknownILRRequest : ILRRequest + /// The UnknownIlrRequest. + internal partial class UnknownIlrRequest : IlrContent { - /// Initializes a new instance of UnknownILRRequest. + /// Initializes a new instance of UnknownIlrRequest. /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. - internal UnknownILRRequest(string objectType) : base(objectType) + internal UnknownIlrRequest(string objectType) : base(objectType) { ObjectType = objectType ?? "Unknown"; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownJob.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownJob.cs index 5e8c2e854b159..a14aaa1015369 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownJob.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownJob.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// The UnknownJob. - internal partial class UnknownJob : Job + internal partial class UnknownJob : BackupGenericJob { /// Initializes a new instance of UnknownJob. /// Friendly name of the entity on which the current job is executing. diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownOperationResultInfoBase.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownOperationResultInfoBase.Serialization.cs deleted file mode 100644 index facf4964ad031..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownOperationResultInfoBase.Serialization.cs +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - internal partial class UnknownOperationResultInfoBase - { - internal static UnknownOperationResultInfoBase DeserializeUnknownOperationResultInfoBase(JsonElement element) - { - string objectType = "Unknown"; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("objectType"u8)) - { - objectType = property.Value.GetString(); - continue; - } - } - return new UnknownOperationResultInfoBase(objectType); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownOperationResultInfoBase.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownOperationResultInfoBase.cs deleted file mode 100644 index 089d5f89a4f19..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownOperationResultInfoBase.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - /// The UnknownOperationResultInfoBase. - internal partial class UnknownOperationResultInfoBase : OperationResultInfoBase - { - /// Initializes a new instance of UnknownOperationResultInfoBase. - /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. - internal UnknownOperationResultInfoBase(string objectType) : base(objectType) - { - ObjectType = objectType ?? "Unknown"; - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownOperationStatusExtendedInfo.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownOperationStatusExtendedInfo.Serialization.cs deleted file mode 100644 index 165583c299e4f..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownOperationStatusExtendedInfo.Serialization.cs +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - internal partial class UnknownOperationStatusExtendedInfo - { - internal static UnknownOperationStatusExtendedInfo DeserializeUnknownOperationStatusExtendedInfo(JsonElement element) - { - string objectType = "Unknown"; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("objectType"u8)) - { - objectType = property.Value.GetString(); - continue; - } - } - return new UnknownOperationStatusExtendedInfo(objectType); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownOperationStatusExtendedInfo.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownOperationStatusExtendedInfo.cs deleted file mode 100644 index 840a97a2f90ab..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownOperationStatusExtendedInfo.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - /// The UnknownOperationStatusExtendedInfo. - internal partial class UnknownOperationStatusExtendedInfo : OperationStatusExtendedInfo - { - /// Initializes a new instance of UnknownOperationStatusExtendedInfo. - /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. - internal UnknownOperationStatusExtendedInfo(string objectType) : base(objectType) - { - ObjectType = objectType ?? "Unknown"; - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownProtectedItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownProtectedItem.Serialization.cs index 994c4d0721f40..0d379e1a50ffd 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownProtectedItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownProtectedItem.Serialization.cs @@ -34,10 +34,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("policyId"u8); writer.WriteStringValue(PolicyId); } - if (Optional.IsDefined(LastRecoveryPoint)) + if (Optional.IsDefined(LastRecoverOn)) { writer.WritePropertyName("lastRecoveryPoint"u8); - writer.WriteStringValue(LastRecoveryPoint.Value, "O"); + writer.WriteStringValue(LastRecoverOn.Value, "O"); } if (Optional.IsDefined(BackupSetName)) { @@ -49,10 +49,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("createMode"u8); writer.WriteStringValue(CreateMode.Value.ToString()); } - if (Optional.IsDefined(DeferredDeleteTimeInUTC)) + if (Optional.IsDefined(DeferredDeletedOn)) { writer.WritePropertyName("deferredDeleteTimeInUTC"u8); - writer.WriteStringValue(DeferredDeleteTimeInUTC.Value, "O"); + writer.WriteStringValue(DeferredDeletedOn.Value, "O"); } if (Optional.IsDefined(IsScheduledForDeferredDelete)) { @@ -106,13 +106,13 @@ internal static UnknownProtectedItem DeserializeUnknownProtectedItem(JsonElement { string protectedItemType = "Unknown"; Optional backupManagementType = default; - Optional workloadType = default; + Optional workloadType = default; Optional containerName = default; - Optional sourceResourceId = default; - Optional policyId = default; + Optional sourceResourceId = default; + Optional policyId = default; Optional lastRecoveryPoint = default; Optional backupSetName = default; - Optional createMode = default; + Optional createMode = default; Optional deferredDeleteTimeInUTC = default; Optional isScheduledForDeferredDelete = default; Optional deferredDeleteTimeRemaining = default; @@ -146,7 +146,7 @@ internal static UnknownProtectedItem DeserializeUnknownProtectedItem(JsonElement property.ThrowNonNullablePropertyIsNull(); continue; } - workloadType = new DataSourceType(property.Value.GetString()); + workloadType = new BackupDataSourceType(property.Value.GetString()); continue; } if (property.NameEquals("containerName"u8)) @@ -156,12 +156,22 @@ internal static UnknownProtectedItem DeserializeUnknownProtectedItem(JsonElement } if (property.NameEquals("sourceResourceId"u8)) { - sourceResourceId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + sourceResourceId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("policyId"u8)) { - policyId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + policyId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("lastRecoveryPoint"u8)) @@ -186,7 +196,7 @@ internal static UnknownProtectedItem DeserializeUnknownProtectedItem(JsonElement property.ThrowNonNullablePropertyIsNull(); continue; } - createMode = new CreateMode(property.Value.GetString()); + createMode = new BackupCreateMode(property.Value.GetString()); continue; } if (property.NameEquals("deferredDeleteTimeInUTC"u8)) diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownProtectedItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownProtectedItem.cs index 3c47d605c303f..5caa1e6d17711 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownProtectedItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownProtectedItem.cs @@ -7,11 +7,12 @@ using System; using System.Collections.Generic; +using Azure.Core; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// The UnknownProtectedItem. - internal partial class UnknownProtectedItem : ProtectedItem + internal partial class UnknownProtectedItem : BackupGenericProtectedItem { /// Initializes a new instance of UnknownProtectedItem. /// backup item type. @@ -20,10 +21,10 @@ internal partial class UnknownProtectedItem : ProtectedItem /// Unique name of container. /// ARM ID of the resource to be backed up. /// ID of the backup policy with which this item is backed up. - /// Timestamp when the last (latest) backup copy was created for this backup item. + /// Timestamp when the last (latest) backup copy was created for this backup item. /// Name of the backup set the backup item belongs to. /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. - /// Time for deferred deletion in UTC. + /// Time for deferred deletion in UTC. /// Flag to identify whether the DS is scheduled for deferred delete. /// Time remaining before the DS marked for deferred delete is permanently deleted. /// Flag to identify whether the deferred deleted DS is to be purged soon. @@ -32,7 +33,7 @@ internal partial class UnknownProtectedItem : ProtectedItem /// Flag to identify whether datasource is protected in archive. /// Name of the policy used for protection. /// Soft delete retention period in days. - internal UnknownProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, DataSourceType? workloadType, string containerName, string sourceResourceId, string policyId, DateTimeOffset? lastRecoveryPoint, string backupSetName, CreateMode? createMode, DateTimeOffset? deferredDeleteTimeInUTC, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriod) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, deferredDeleteTimeInUTC, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriod) + internal UnknownProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, ResourceIdentifier policyId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriod) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriod) { ProtectedItemType = protectedItemType ?? "Unknown"; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownProtectionContainer.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownProtectionContainer.cs index 3a29c29303127..32a6e6939a43c 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownProtectionContainer.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownProtectionContainer.cs @@ -8,7 +8,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// The UnknownProtectionContainer. - internal partial class UnknownProtectionContainer : ProtectionContainer + internal partial class UnknownProtectionContainer : BackupGenericProtectionContainer { /// Initializes a new instance of UnknownProtectionContainer. /// Friendly name of the container. diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownProtectionIntent.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownProtectionIntent.Serialization.cs index 6764224c0463a..1f6471241b3b1 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownProtectionIntent.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownProtectionIntent.Serialization.cs @@ -49,10 +49,10 @@ internal static UnknownProtectionIntent DeserializeUnknownProtectionIntent(JsonE { ProtectionIntentItemType protectionIntentItemType = "Unknown"; Optional backupManagementType = default; - Optional sourceResourceId = default; - Optional itemId = default; - Optional policyId = default; - Optional protectionState = default; + Optional sourceResourceId = default; + Optional itemId = default; + Optional policyId = default; + Optional protectionState = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("protectionIntentItemType"u8)) @@ -72,17 +72,32 @@ internal static UnknownProtectionIntent DeserializeUnknownProtectionIntent(JsonE } if (property.NameEquals("sourceResourceId"u8)) { - sourceResourceId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + sourceResourceId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("itemId"u8)) { - itemId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + itemId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("policyId"u8)) { - policyId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + policyId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("protectionState"u8)) @@ -92,7 +107,7 @@ internal static UnknownProtectionIntent DeserializeUnknownProtectionIntent(JsonE property.ThrowNonNullablePropertyIsNull(); continue; } - protectionState = new ProtectionStatus(property.Value.GetString()); + protectionState = new BackupProtectionStatus(property.Value.GetString()); continue; } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownProtectionIntent.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownProtectionIntent.cs index 9f315072f2b6e..5c4b6a59ae3bc 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownProtectionIntent.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownProtectionIntent.cs @@ -5,10 +5,12 @@ #nullable disable +using Azure.Core; + namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// The UnknownProtectionIntent. - internal partial class UnknownProtectionIntent : ProtectionIntent + internal partial class UnknownProtectionIntent : BackupGenericProtectionIntent { /// Initializes a new instance of UnknownProtectionIntent. /// backup protectionIntent type. @@ -17,7 +19,7 @@ internal partial class UnknownProtectionIntent : ProtectionIntent /// ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId. /// ID of the backup policy with which this item is backed up. /// Backup state of this backup item. - internal UnknownProtectionIntent(ProtectionIntentItemType protectionIntentItemType, BackupManagementType? backupManagementType, string sourceResourceId, string itemId, string policyId, ProtectionStatus? protectionState) : base(protectionIntentItemType, backupManagementType, sourceResourceId, itemId, policyId, protectionState) + internal UnknownProtectionIntent(ProtectionIntentItemType protectionIntentItemType, BackupManagementType? backupManagementType, ResourceIdentifier sourceResourceId, ResourceIdentifier itemId, ResourceIdentifier policyId, BackupProtectionStatus? protectionState) : base(protectionIntentItemType, backupManagementType, sourceResourceId, itemId, policyId, protectionState) { ProtectionIntentItemType = protectionIntentItemType; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownProtectionPolicy.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownProtectionPolicy.cs index b879685ad3c54..fcf53b5e2b14b 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownProtectionPolicy.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownProtectionPolicy.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// The UnknownProtectionPolicy. - internal partial class UnknownProtectionPolicy : ProtectionPolicy + internal partial class UnknownProtectionPolicy : BackupGenericProtectionPolicy { /// Initializes a new instance of UnknownProtectionPolicy. /// Number of items associated with this policy. diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownRecoveryPoint.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownRecoveryPoint.cs index 9d22297730edd..08900e64a2835 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownRecoveryPoint.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownRecoveryPoint.cs @@ -8,7 +8,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// The UnknownRecoveryPoint. - internal partial class UnknownRecoveryPoint : RecoveryPoint + internal partial class UnknownRecoveryPoint : BackupGenericRecoveryPoint { /// Initializes a new instance of UnknownRecoveryPoint. /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownRestoreRequest.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownRestoreRequest.cs index 31552ab7d9384..05debe356b3c0 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownRestoreRequest.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownRestoreRequest.cs @@ -8,7 +8,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// The UnknownRestoreRequest. - internal partial class UnknownRestoreRequest : RestoreRequest + internal partial class UnknownRestoreRequest : RestoreContent { /// Initializes a new instance of UnknownRestoreRequest. /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownRetentionPolicy.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownRetentionPolicy.cs index 8c19e8d66dd02..604ddc1e45b57 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownRetentionPolicy.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownRetentionPolicy.cs @@ -8,7 +8,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// The UnknownRetentionPolicy. - internal partial class UnknownRetentionPolicy : RetentionPolicy + internal partial class UnknownRetentionPolicy : BackupRetentionPolicy { /// Initializes a new instance of UnknownRetentionPolicy. /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownSchedulePolicy.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownSchedulePolicy.cs index 01a0cf957d468..bc5890d834857 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownSchedulePolicy.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownSchedulePolicy.cs @@ -8,7 +8,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// The UnknownSchedulePolicy. - internal partial class UnknownSchedulePolicy : SchedulePolicy + internal partial class UnknownSchedulePolicy : BackupSchedulePolicy { /// Initializes a new instance of UnknownSchedulePolicy. /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownVaultStorageConfigOperationResultResponse.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownVaultStorageConfigOperationResultResponse.Serialization.cs deleted file mode 100644 index 60db79022859f..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownVaultStorageConfigOperationResultResponse.Serialization.cs +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - internal partial class UnknownVaultStorageConfigOperationResultResponse - { - internal static UnknownVaultStorageConfigOperationResultResponse DeserializeUnknownVaultStorageConfigOperationResultResponse(JsonElement element) - { - string objectType = "Unknown"; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("objectType"u8)) - { - objectType = property.Value.GetString(); - continue; - } - } - return new UnknownVaultStorageConfigOperationResultResponse(objectType); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownVaultStorageConfigOperationResultResponse.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownVaultStorageConfigOperationResultResponse.cs deleted file mode 100644 index a6b6c1b110ac8..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownVaultStorageConfigOperationResultResponse.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - /// The UnknownVaultStorageConfigOperationResultResponse. - internal partial class UnknownVaultStorageConfigOperationResultResponse : VaultStorageConfigOperationResultResponse - { - /// Initializes a new instance of UnknownVaultStorageConfigOperationResultResponse. - /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. - internal UnknownVaultStorageConfigOperationResultResponse(string objectType) : base(objectType) - { - ObjectType = objectType ?? "Unknown"; - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownWorkloadItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownWorkloadItem.Serialization.cs index 8bcfc1e3b07b2..9575a65810475 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownWorkloadItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownWorkloadItem.Serialization.cs @@ -46,7 +46,7 @@ internal static UnknownWorkloadItem DeserializeUnknownWorkloadItem(JsonElement e Optional workloadType = default; string workloadItemType = "Unknown"; Optional friendlyName = default; - Optional protectionState = default; + Optional protectionState = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("backupManagementType"u8)) @@ -76,7 +76,7 @@ internal static UnknownWorkloadItem DeserializeUnknownWorkloadItem(JsonElement e property.ThrowNonNullablePropertyIsNull(); continue; } - protectionState = new ProtectionStatus(property.Value.GetString()); + protectionState = new BackupProtectionStatus(property.Value.GetString()); continue; } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownWorkloadItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownWorkloadItem.cs index 31bfeb98c6574..0fe2b85a35ec2 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownWorkloadItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownWorkloadItem.cs @@ -16,7 +16,7 @@ internal partial class UnknownWorkloadItem : WorkloadItem /// Type of the backup item. /// Friendly name of the backup item. /// State of the back up item. - internal UnknownWorkloadItem(string backupManagementType, string workloadType, string workloadItemType, string friendlyName, ProtectionStatus? protectionState) : base(backupManagementType, workloadType, workloadItemType, friendlyName, protectionState) + internal UnknownWorkloadItem(string backupManagementType, string workloadType, string workloadItemType, string friendlyName, BackupProtectionStatus? protectionState) : base(backupManagementType, workloadType, workloadItemType, friendlyName, protectionState) { WorkloadItemType = workloadItemType ?? "Unknown"; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownWorkloadProtectableItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownWorkloadProtectableItem.Serialization.cs index 91a4f2547a37e..fe7b9674b8b0e 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownWorkloadProtectableItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownWorkloadProtectableItem.Serialization.cs @@ -46,7 +46,7 @@ internal static UnknownWorkloadProtectableItem DeserializeUnknownWorkloadProtect Optional workloadType = default; string protectableItemType = "Unknown"; Optional friendlyName = default; - Optional protectionState = default; + Optional protectionState = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("backupManagementType"u8)) @@ -76,7 +76,7 @@ internal static UnknownWorkloadProtectableItem DeserializeUnknownWorkloadProtect property.ThrowNonNullablePropertyIsNull(); continue; } - protectionState = new ProtectionStatus(property.Value.GetString()); + protectionState = new BackupProtectionStatus(property.Value.GetString()); continue; } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownWorkloadProtectableItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownWorkloadProtectableItem.cs index ebff37257158c..6c1d588238fe9 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownWorkloadProtectableItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownWorkloadProtectableItem.cs @@ -16,7 +16,7 @@ internal partial class UnknownWorkloadProtectableItem : WorkloadProtectableItem /// Type of the backup item. /// Friendly name of the backup item. /// State of the back up item. - internal UnknownWorkloadProtectableItem(string backupManagementType, string workloadType, string protectableItemType, string friendlyName, ProtectionStatus? protectionState) : base(backupManagementType, workloadType, protectableItemType, friendlyName, protectionState) + internal UnknownWorkloadProtectableItem(string backupManagementType, string workloadType, string protectableItemType, string friendlyName, BackupProtectionStatus? protectionState) : base(backupManagementType, workloadType, protectableItemType, friendlyName, protectionState) { ProtectableItemType = protectableItemType ?? "Unknown"; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnlockDeleteResponse.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnlockDeleteResponse.Serialization.cs deleted file mode 100644 index d4e418ad582d5..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnlockDeleteResponse.Serialization.cs +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - public partial class UnlockDeleteResponse - { - internal static UnlockDeleteResponse DeserializeUnlockDeleteResponse(JsonElement element) - { - Optional unlockDeleteExpiryTime = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("unlockDeleteExpiryTime"u8)) - { - unlockDeleteExpiryTime = property.Value.GetString(); - continue; - } - } - return new UnlockDeleteResponse(unlockDeleteExpiryTime.Value); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ValidateOperationsResponse.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnlockDeleteResult.Serialization.cs similarity index 55% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ValidateOperationsResponse.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnlockDeleteResult.Serialization.cs index bbc385dd36c37..f7da500313ed7 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ValidateOperationsResponse.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnlockDeleteResult.Serialization.cs @@ -5,30 +5,31 @@ #nullable disable +using System; using System.Text.Json; using Azure.Core; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class ValidateOperationsResponse + public partial class UnlockDeleteResult { - internal static ValidateOperationsResponse DeserializeValidateOperationsResponse(JsonElement element) + internal static UnlockDeleteResult DeserializeUnlockDeleteResult(JsonElement element) { - Optional validateOperationResponse = default; + Optional unlockDeleteExpiryTime = default; foreach (var property in element.EnumerateObject()) { - if (property.NameEquals("validateOperationResponse"u8)) + if (property.NameEquals("unlockDeleteExpiryTime"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { property.ThrowNonNullablePropertyIsNull(); continue; } - validateOperationResponse = ValidateOperationResponse.DeserializeValidateOperationResponse(property.Value); + unlockDeleteExpiryTime = property.Value.GetDateTimeOffset(); continue; } } - return new ValidateOperationsResponse(validateOperationResponse.Value); + return new UnlockDeleteResult(Optional.ToNullable(unlockDeleteExpiryTime)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnlockDeleteResponse.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnlockDeleteResult.cs similarity index 54% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnlockDeleteResponse.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnlockDeleteResult.cs index c809fe2f5300b..31299d565c4b1 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnlockDeleteResponse.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnlockDeleteResult.cs @@ -5,24 +5,26 @@ #nullable disable +using System; + namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Response of Unlock Delete API. - public partial class UnlockDeleteResponse + public partial class UnlockDeleteResult { - /// Initializes a new instance of UnlockDeleteResponse. - internal UnlockDeleteResponse() + /// Initializes a new instance of UnlockDeleteResult. + internal UnlockDeleteResult() { } - /// Initializes a new instance of UnlockDeleteResponse. - /// This is the time when unlock delete privileges will get expired. - internal UnlockDeleteResponse(string unlockDeleteExpiryTime) + /// Initializes a new instance of UnlockDeleteResult. + /// This is the time when unlock delete privileges will get expired. + internal UnlockDeleteResult(DateTimeOffset? unlockDeleteExpireOn) { - UnlockDeleteExpiryTime = unlockDeleteExpiryTime; + UnlockDeleteExpireOn = unlockDeleteExpireOn; } /// This is the time when unlock delete privileges will get expired. - public string UnlockDeleteExpiryTime { get; } + public DateTimeOffset? UnlockDeleteExpireOn { get; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UsagesUnit.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UsagesUnit.cs deleted file mode 100644 index d54de97cda111..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UsagesUnit.cs +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - /// Unit of the usage. - public readonly partial struct UsagesUnit : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public UsagesUnit(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string CountValue = "Count"; - private const string BytesValue = "Bytes"; - private const string SecondsValue = "Seconds"; - private const string PercentValue = "Percent"; - private const string CountPerSecondValue = "CountPerSecond"; - private const string BytesPerSecondValue = "BytesPerSecond"; - - /// Count. - public static UsagesUnit Count { get; } = new UsagesUnit(CountValue); - /// Bytes. - public static UsagesUnit Bytes { get; } = new UsagesUnit(BytesValue); - /// Seconds. - public static UsagesUnit Seconds { get; } = new UsagesUnit(SecondsValue); - /// Percent. - public static UsagesUnit Percent { get; } = new UsagesUnit(PercentValue); - /// CountPerSecond. - public static UsagesUnit CountPerSecond { get; } = new UsagesUnit(CountPerSecondValue); - /// BytesPerSecond. - public static UsagesUnit BytesPerSecond { get; } = new UsagesUnit(BytesPerSecondValue); - /// Determines if two values are the same. - public static bool operator ==(UsagesUnit left, UsagesUnit right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(UsagesUnit left, UsagesUnit right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator UsagesUnit(string value) => new UsagesUnit(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is UsagesUnit other && Equals(other); - /// - public bool Equals(UsagesUnit other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ValidateIaasVmRestoreOperationRequest.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ValidateIaasVmRestoreOperationRequest.Serialization.cs deleted file mode 100644 index 024c9138c60dd..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ValidateIaasVmRestoreOperationRequest.Serialization.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - public partial class ValidateIaasVmRestoreOperationRequest : IUtf8JsonSerializable - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) - { - writer.WriteStartObject(); - if (Optional.IsDefined(RestoreRequest)) - { - writer.WritePropertyName("restoreRequest"u8); - writer.WriteObjectValue(RestoreRequest); - } - writer.WritePropertyName("objectType"u8); - writer.WriteStringValue(ObjectType); - writer.WriteEndObject(); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ValidateIaasVmRestoreOperationRequest.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ValidateIaasVmRestoreOperationRequest.cs deleted file mode 100644 index d70c03360a041..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ValidateIaasVmRestoreOperationRequest.cs +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - /// AzureRestoreValidation request. - public partial class ValidateIaasVmRestoreOperationRequest : ValidateRestoreOperationRequest - { - /// Initializes a new instance of ValidateIaasVmRestoreOperationRequest. - public ValidateIaasVmRestoreOperationRequest() - { - ObjectType = "ValidateIaasVMRestoreOperationRequest"; - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ValidateOperationRequest.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ValidateOperationRequest.Serialization.cs deleted file mode 100644 index d300845dc56f9..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ValidateOperationRequest.Serialization.cs +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - public partial class ValidateOperationRequest : IUtf8JsonSerializable - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) - { - writer.WriteStartObject(); - writer.WritePropertyName("objectType"u8); - writer.WriteStringValue(ObjectType); - writer.WriteEndObject(); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ValidateOperationRequest.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ValidateOperationRequest.cs deleted file mode 100644 index b5023e793a3c2..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ValidateOperationRequest.cs +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - /// - /// Base class for validate operation request. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . - /// - public abstract partial class ValidateOperationRequest - { - /// Initializes a new instance of ValidateOperationRequest. - protected ValidateOperationRequest() - { - } - - /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. - internal string ObjectType { get; set; } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ValidateOperationResponse.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ValidateOperationResponse.Serialization.cs deleted file mode 100644 index aff1822e64651..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ValidateOperationResponse.Serialization.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - internal partial class ValidateOperationResponse - { - internal static ValidateOperationResponse DeserializeValidateOperationResponse(JsonElement element) - { - Optional> validationResults = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("validationResults"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - List array = new List(); - foreach (var item in property.Value.EnumerateArray()) - { - array.Add(ErrorDetail.DeserializeErrorDetail(item)); - } - validationResults = array; - continue; - } - } - return new ValidateOperationResponse(Optional.ToList(validationResults)); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ValidateOperationResponse.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ValidateOperationResponse.cs deleted file mode 100644 index 7a5702b946782..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ValidateOperationResponse.cs +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using Azure.Core; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - /// Base class for validate operation response. - internal partial class ValidateOperationResponse - { - /// Initializes a new instance of ValidateOperationResponse. - internal ValidateOperationResponse() - { - ValidationResults = new ChangeTrackingList(); - } - - /// Initializes a new instance of ValidateOperationResponse. - /// Gets the validation result. - internal ValidateOperationResponse(IReadOnlyList validationResults) - { - ValidationResults = validationResults; - } - - /// Gets the validation result. - public IReadOnlyList ValidationResults { get; } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ValidateOperationsResponse.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ValidateOperationsResponse.cs deleted file mode 100644 index 215602d788835..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ValidateOperationsResponse.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - /// The ValidateOperationsResponse. - public partial class ValidateOperationsResponse - { - /// Initializes a new instance of ValidateOperationsResponse. - internal ValidateOperationsResponse() - { - } - - /// Initializes a new instance of ValidateOperationsResponse. - /// Base class for validate operation response. - internal ValidateOperationsResponse(ValidateOperationResponse validateOperationResponse) - { - ValidateOperationResponse = validateOperationResponse; - } - - /// Base class for validate operation response. - internal ValidateOperationResponse ValidateOperationResponse { get; } - /// Gets the validation result. - public IReadOnlyList ValidateOperationResponseValidationResults - { - get => ValidateOperationResponse?.ValidationResults; - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ValidateRestoreOperationRequest.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ValidateRestoreOperationRequest.Serialization.cs deleted file mode 100644 index 865f7bc907934..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ValidateRestoreOperationRequest.Serialization.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - public partial class ValidateRestoreOperationRequest : IUtf8JsonSerializable - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) - { - writer.WriteStartObject(); - if (Optional.IsDefined(RestoreRequest)) - { - writer.WritePropertyName("restoreRequest"u8); - writer.WriteObjectValue(RestoreRequest); - } - writer.WritePropertyName("objectType"u8); - writer.WriteStringValue(ObjectType); - writer.WriteEndObject(); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ValidateRestoreOperationRequest.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ValidateRestoreOperationRequest.cs deleted file mode 100644 index e439a3f42c941..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ValidateRestoreOperationRequest.cs +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - /// - /// AzureRestoreValidation request. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . - /// - public partial class ValidateRestoreOperationRequest : ValidateOperationRequest - { - /// Initializes a new instance of ValidateRestoreOperationRequest. - public ValidateRestoreOperationRequest() - { - ObjectType = "ValidateRestoreOperationRequest"; - } - - /// - /// Sets restore request to be validated - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , and . - /// - public RestoreRequest RestoreRequest { get; set; } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ValidationStatus.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ValidationStatus.cs deleted file mode 100644 index a46b53f89503a..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/ValidationStatus.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - /// Validation Status. - public readonly partial struct ValidationStatus : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public ValidationStatus(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string InvalidValue = "Invalid"; - private const string SucceededValue = "Succeeded"; - private const string FailedValue = "Failed"; - - /// Invalid. - public static ValidationStatus Invalid { get; } = new ValidationStatus(InvalidValue); - /// Succeeded. - public static ValidationStatus Succeeded { get; } = new ValidationStatus(SucceededValue); - /// Failed. - public static ValidationStatus Failed { get; } = new ValidationStatus(FailedValue); - /// Determines if two values are the same. - public static bool operator ==(ValidationStatus left, ValidationStatus right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(ValidationStatus left, ValidationStatus right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator ValidationStatus(string value) => new ValidationStatus(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is ValidationStatus other && Equals(other); - /// - public bool Equals(ValidationStatus other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultJob.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultBackupJob.Serialization.cs similarity index 89% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultJob.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultBackupJob.Serialization.cs index c9f1afa7901d5..ee2173397596a 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultJob.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultBackupJob.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class VaultJob : IUtf8JsonSerializable + public partial class VaultBackupJob : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -87,12 +87,12 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static VaultJob DeserializeVaultJob(JsonElement element) + internal static VaultBackupJob DeserializeVaultBackupJob(JsonElement element) { Optional duration = default; Optional> actionsInfo = default; - Optional> errorDetails = default; - Optional extendedInfo = default; + Optional> errorDetails = default; + Optional extendedInfo = default; Optional entityFriendlyName = default; Optional backupManagementType = default; Optional operation = default; @@ -135,10 +135,10 @@ internal static VaultJob DeserializeVaultJob(JsonElement element) property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(VaultJobErrorInfo.DeserializeVaultJobErrorInfo(item)); + array.Add(VaultBackupJobErrorInfo.DeserializeVaultBackupJobErrorInfo(item)); } errorDetails = array; continue; @@ -150,7 +150,7 @@ internal static VaultJob DeserializeVaultJob(JsonElement element) property.ThrowNonNullablePropertyIsNull(); continue; } - extendedInfo = VaultJobExtendedInfo.DeserializeVaultJobExtendedInfo(property.Value); + extendedInfo = VaultBackupJobExtendedInfo.DeserializeVaultBackupJobExtendedInfo(property.Value); continue; } if (property.NameEquals("entityFriendlyName"u8)) @@ -209,7 +209,7 @@ internal static VaultJob DeserializeVaultJob(JsonElement element) continue; } } - return new VaultJob(entityFriendlyName.Value, Optional.ToNullable(backupManagementType), operation.Value, status.Value, Optional.ToNullable(startTime), Optional.ToNullable(endTime), activityId.Value, jobType, Optional.ToNullable(duration), Optional.ToList(actionsInfo), Optional.ToList(errorDetails), extendedInfo.Value); + return new VaultBackupJob(entityFriendlyName.Value, Optional.ToNullable(backupManagementType), operation.Value, status.Value, Optional.ToNullable(startTime), Optional.ToNullable(endTime), activityId.Value, jobType, Optional.ToNullable(duration), Optional.ToList(actionsInfo), Optional.ToList(errorDetails), extendedInfo.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultJob.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultBackupJob.cs similarity index 71% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultJob.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultBackupJob.cs index cb094333eede4..61e97d5835820 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultJob.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultBackupJob.cs @@ -12,17 +12,17 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Vault level Job. - public partial class VaultJob : Job + public partial class VaultBackupJob : BackupGenericJob { - /// Initializes a new instance of VaultJob. - public VaultJob() + /// Initializes a new instance of VaultBackupJob. + public VaultBackupJob() { ActionsInfo = new ChangeTrackingList(); - ErrorDetails = new ChangeTrackingList(); + ErrorDetails = new ChangeTrackingList(); JobType = "VaultJob"; } - /// Initializes a new instance of VaultJob. + /// Initializes a new instance of VaultBackupJob. /// Friendly name of the entity on which the current job is executing. /// Backup management type to execute the current job. /// The operation name. @@ -35,7 +35,7 @@ public VaultJob() /// Gets or sets the state/actions applicable on this job like cancel/retry. /// Error details on execution of this job. /// Additional information about the job. - internal VaultJob(string entityFriendlyName, BackupManagementType? backupManagementType, string operation, string status, DateTimeOffset? startOn, DateTimeOffset? endOn, string activityId, string jobType, TimeSpan? duration, IList actionsInfo, IList errorDetails, VaultJobExtendedInfo extendedInfo) : base(entityFriendlyName, backupManagementType, operation, status, startOn, endOn, activityId, jobType) + internal VaultBackupJob(string entityFriendlyName, BackupManagementType? backupManagementType, string operation, string status, DateTimeOffset? startOn, DateTimeOffset? endOn, string activityId, string jobType, TimeSpan? duration, IList actionsInfo, IList errorDetails, VaultBackupJobExtendedInfo extendedInfo) : base(entityFriendlyName, backupManagementType, operation, status, startOn, endOn, activityId, jobType) { Duration = duration; ActionsInfo = actionsInfo; @@ -49,16 +49,16 @@ internal VaultJob(string entityFriendlyName, BackupManagementType? backupManagem /// Gets or sets the state/actions applicable on this job like cancel/retry. public IList ActionsInfo { get; } /// Error details on execution of this job. - public IList ErrorDetails { get; } + public IList ErrorDetails { get; } /// Additional information about the job. - internal VaultJobExtendedInfo ExtendedInfo { get; set; } + internal VaultBackupJobExtendedInfo ExtendedInfo { get; set; } /// Job properties. public IDictionary ExtendedInfoPropertyBag { get { if (ExtendedInfo is null) - ExtendedInfo = new VaultJobExtendedInfo(); + ExtendedInfo = new VaultBackupJobExtendedInfo(); return ExtendedInfo.PropertyBag; } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureStorageErrorInfo.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultBackupJobErrorInfo.Serialization.cs similarity index 89% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureStorageErrorInfo.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultBackupJobErrorInfo.Serialization.cs index e184ae89f6911..488fb3d5784b5 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureStorageErrorInfo.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultBackupJobErrorInfo.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureStorageErrorInfo : IUtf8JsonSerializable + public partial class VaultBackupJobErrorInfo : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -39,7 +39,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureStorageErrorInfo DeserializeAzureStorageErrorInfo(JsonElement element) + internal static VaultBackupJobErrorInfo DeserializeVaultBackupJobErrorInfo(JsonElement element) { Optional errorCode = default; Optional errorString = default; @@ -77,7 +77,7 @@ internal static AzureStorageErrorInfo DeserializeAzureStorageErrorInfo(JsonEleme continue; } } - return new AzureStorageErrorInfo(Optional.ToNullable(errorCode), errorString.Value, Optional.ToList(recommendations)); + return new VaultBackupJobErrorInfo(Optional.ToNullable(errorCode), errorString.Value, Optional.ToList(recommendations)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultJobErrorInfo.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultBackupJobErrorInfo.cs similarity index 75% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultJobErrorInfo.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultBackupJobErrorInfo.cs index 019a8dc3d9e38..bb2b7ec2dd24c 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultJobErrorInfo.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultBackupJobErrorInfo.cs @@ -11,19 +11,19 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Vault Job specific error information. - public partial class VaultJobErrorInfo + public partial class VaultBackupJobErrorInfo { - /// Initializes a new instance of VaultJobErrorInfo. - public VaultJobErrorInfo() + /// Initializes a new instance of VaultBackupJobErrorInfo. + public VaultBackupJobErrorInfo() { Recommendations = new ChangeTrackingList(); } - /// Initializes a new instance of VaultJobErrorInfo. + /// Initializes a new instance of VaultBackupJobErrorInfo. /// Error code. /// Localized error string. /// List of localized recommendations for above error code. - internal VaultJobErrorInfo(int? errorCode, string errorString, IList recommendations) + internal VaultBackupJobErrorInfo(int? errorCode, string errorString, IList recommendations) { ErrorCode = errorCode; ErrorString = errorString; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultJobExtendedInfo.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultBackupJobExtendedInfo.Serialization.cs similarity index 86% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultJobExtendedInfo.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultBackupJobExtendedInfo.Serialization.cs index b20cc5ab5b0f6..64b2d1b325859 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultJobExtendedInfo.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultBackupJobExtendedInfo.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - internal partial class VaultJobExtendedInfo : IUtf8JsonSerializable + internal partial class VaultBackupJobExtendedInfo : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -30,7 +30,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static VaultJobExtendedInfo DeserializeVaultJobExtendedInfo(JsonElement element) + internal static VaultBackupJobExtendedInfo DeserializeVaultBackupJobExtendedInfo(JsonElement element) { Optional> propertyBag = default; foreach (var property in element.EnumerateObject()) @@ -51,7 +51,7 @@ internal static VaultJobExtendedInfo DeserializeVaultJobExtendedInfo(JsonElement continue; } } - return new VaultJobExtendedInfo(Optional.ToDictionary(propertyBag)); + return new VaultBackupJobExtendedInfo(Optional.ToDictionary(propertyBag)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultJobExtendedInfo.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultBackupJobExtendedInfo.cs similarity index 64% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultJobExtendedInfo.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultBackupJobExtendedInfo.cs index 695cbe705c36c..a2fdb4b5a4f49 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultJobExtendedInfo.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultBackupJobExtendedInfo.cs @@ -11,17 +11,17 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Vault Job for CMK - has CMK specific info. - internal partial class VaultJobExtendedInfo + internal partial class VaultBackupJobExtendedInfo { - /// Initializes a new instance of VaultJobExtendedInfo. - public VaultJobExtendedInfo() + /// Initializes a new instance of VaultBackupJobExtendedInfo. + public VaultBackupJobExtendedInfo() { PropertyBag = new ChangeTrackingDictionary(); } - /// Initializes a new instance of VaultJobExtendedInfo. + /// Initializes a new instance of VaultBackupJobExtendedInfo. /// Job properties. - internal VaultJobExtendedInfo(IDictionary propertyBag) + internal VaultBackupJobExtendedInfo(IDictionary propertyBag) { PropertyBag = propertyBag; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultDedupState.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultDedupState.cs new file mode 100644 index 0000000000000..d4db5cbef702c --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultDedupState.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Models +{ + /// Vault Dedup state. + public readonly partial struct VaultDedupState : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public VaultDedupState(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string InvalidValue = "Invalid"; + private const string EnabledValue = "Enabled"; + private const string DisabledValue = "Disabled"; + + /// Invalid. + public static VaultDedupState Invalid { get; } = new VaultDedupState(InvalidValue); + /// Enabled. + public static VaultDedupState Enabled { get; } = new VaultDedupState(EnabledValue); + /// Disabled. + public static VaultDedupState Disabled { get; } = new VaultDedupState(DisabledValue); + /// Determines if two values are the same. + public static bool operator ==(VaultDedupState left, VaultDedupState right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(VaultDedupState left, VaultDedupState right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator VaultDedupState(string value) => new VaultDedupState(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is VaultDedupState other && Equals(other); + /// + public bool Equals(VaultDedupState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultStorageConfigOperationResultResponse.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultStorageConfigOperationResultResponse.Serialization.cs deleted file mode 100644 index 14ba89f16469d..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultStorageConfigOperationResultResponse.Serialization.cs +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - public partial class VaultStorageConfigOperationResultResponse - { - internal static VaultStorageConfigOperationResultResponse DeserializeVaultStorageConfigOperationResultResponse(JsonElement element) - { - if (element.TryGetProperty("objectType", out JsonElement discriminator)) - { - switch (discriminator.GetString()) - { - case "PrepareDataMoveResponse": return PrepareDataMoveResponse.DeserializePrepareDataMoveResponse(element); - } - } - return UnknownVaultStorageConfigOperationResultResponse.DeserializeUnknownVaultStorageConfigOperationResultResponse(element); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultStorageConfigOperationResultResponse.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultStorageConfigOperationResultResponse.cs deleted file mode 100644 index c28d0d576d959..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultStorageConfigOperationResultResponse.cs +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - /// - /// Operation result response for Vault Storage Config - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . - /// - public abstract partial class VaultStorageConfigOperationResultResponse - { - /// Initializes a new instance of VaultStorageConfigOperationResultResponse. - protected VaultStorageConfigOperationResultResponse() - { - } - - /// Initializes a new instance of VaultStorageConfigOperationResultResponse. - /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. - internal VaultStorageConfigOperationResultResponse(string objectType) - { - ObjectType = objectType; - } - - /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. - internal string ObjectType { get; set; } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultXcoolState.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultXcoolState.cs new file mode 100644 index 0000000000000..b887e4cb81777 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VaultXcoolState.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Models +{ + /// Vault x-cool state. + public readonly partial struct VaultXcoolState : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public VaultXcoolState(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string InvalidValue = "Invalid"; + private const string EnabledValue = "Enabled"; + private const string DisabledValue = "Disabled"; + + /// Invalid. + public static VaultXcoolState Invalid { get; } = new VaultXcoolState(InvalidValue); + /// Enabled. + public static VaultXcoolState Enabled { get; } = new VaultXcoolState(EnabledValue); + /// Disabled. + public static VaultXcoolState Disabled { get; } = new VaultXcoolState(DisabledValue); + /// Determines if two values are the same. + public static bool operator ==(VaultXcoolState left, VaultXcoolState right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(VaultXcoolState left, VaultXcoolState right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator VaultXcoolState(string value) => new VaultXcoolState(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is VaultXcoolState other && Equals(other); + /// + public bool Equals(VaultXcoolState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmAppContainerProtectableContainer.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmAppContainerProtectableContainer.Serialization.cs similarity index 87% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmAppContainerProtectableContainer.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmAppContainerProtectableContainer.Serialization.cs index 880df4d081a9a..44ea2ec4e96b9 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmAppContainerProtectableContainer.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmAppContainerProtectableContainer.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureVmAppContainerProtectableContainer : IUtf8JsonSerializable + public partial class VmAppContainerProtectableContainer : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -40,7 +40,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureVmAppContainerProtectableContainer DeserializeAzureVmAppContainerProtectableContainer(JsonElement element) + internal static VmAppContainerProtectableContainer DeserializeVmAppContainerProtectableContainer(JsonElement element) { Optional friendlyName = default; Optional backupManagementType = default; @@ -80,7 +80,7 @@ internal static AzureVmAppContainerProtectableContainer DeserializeAzureVmAppCon continue; } } - return new AzureVmAppContainerProtectableContainer(friendlyName.Value, Optional.ToNullable(backupManagementType), protectableContainerType, healthStatus.Value, containerId.Value); + return new VmAppContainerProtectableContainer(friendlyName.Value, Optional.ToNullable(backupManagementType), protectableContainerType, healthStatus.Value, containerId.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmAppContainerProtectableContainer.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmAppContainerProtectableContainer.cs similarity index 62% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmAppContainerProtectableContainer.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmAppContainerProtectableContainer.cs index 97b77dfdc4408..5efe96417c8e8 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmAppContainerProtectableContainer.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmAppContainerProtectableContainer.cs @@ -8,15 +8,15 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Azure workload-specific container. - public partial class AzureVmAppContainerProtectableContainer : ProtectableContainer + public partial class VmAppContainerProtectableContainer : ProtectableContainer { - /// Initializes a new instance of AzureVmAppContainerProtectableContainer. - public AzureVmAppContainerProtectableContainer() + /// Initializes a new instance of VmAppContainerProtectableContainer. + public VmAppContainerProtectableContainer() { ProtectableContainerType = ProtectableContainerType.VmAppContainer; } - /// Initializes a new instance of AzureVmAppContainerProtectableContainer. + /// Initializes a new instance of VmAppContainerProtectableContainer. /// Friendly name of the container. /// Type of backup management for the container. /// @@ -26,7 +26,7 @@ public AzureVmAppContainerProtectableContainer() /// /// Status of health of the container. /// Fabric Id of the container such as ARM Id. - internal AzureVmAppContainerProtectableContainer(string friendlyName, BackupManagementType? backupManagementType, ProtectableContainerType protectableContainerType, string healthStatus, string containerId) : base(friendlyName, backupManagementType, protectableContainerType, healthStatus, containerId) + internal VmAppContainerProtectableContainer(string friendlyName, BackupManagementType? backupManagementType, ProtectableContainerType protectableContainerType, string healthStatus, string containerId) : base(friendlyName, backupManagementType, protectableContainerType, healthStatus, containerId) { ProtectableContainerType = protectableContainerType; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureSqlAGWorkloadContainerProtectionContainer.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmAppContainerProtectionContainer.Serialization.cs similarity index 81% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureSqlAGWorkloadContainerProtectionContainer.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmAppContainerProtectionContainer.Serialization.cs index e722f25ef91ba..e0b18a016acb3 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureSqlAGWorkloadContainerProtectionContainer.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmAppContainerProtectionContainer.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureSqlAGWorkloadContainerProtectionContainer : IUtf8JsonSerializable + public partial class VmAppContainerProtectionContainer : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -71,13 +71,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureSqlAGWorkloadContainerProtectionContainer DeserializeAzureSqlAGWorkloadContainerProtectionContainer(JsonElement element) + internal static VmAppContainerProtectionContainer DeserializeVmAppContainerProtectionContainer(JsonElement element) { - Optional sourceResourceId = default; + Optional sourceResourceId = default; Optional lastUpdatedTime = default; - Optional extendedInfo = default; - Optional workloadType = default; - Optional operationType = default; + Optional extendedInfo = default; + Optional workloadType = default; + Optional operationType = default; Optional friendlyName = default; Optional backupManagementType = default; Optional registrationStatus = default; @@ -88,7 +88,12 @@ internal static AzureSqlAGWorkloadContainerProtectionContainer DeserializeAzureS { if (property.NameEquals("sourceResourceId"u8)) { - sourceResourceId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + sourceResourceId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("lastUpdatedTime"u8)) @@ -108,7 +113,7 @@ internal static AzureSqlAGWorkloadContainerProtectionContainer DeserializeAzureS property.ThrowNonNullablePropertyIsNull(); continue; } - extendedInfo = AzureWorkloadContainerExtendedInfo.DeserializeAzureWorkloadContainerExtendedInfo(property.Value); + extendedInfo = WorkloadContainerExtendedInfo.DeserializeWorkloadContainerExtendedInfo(property.Value); continue; } if (property.NameEquals("workloadType"u8)) @@ -118,7 +123,7 @@ internal static AzureSqlAGWorkloadContainerProtectionContainer DeserializeAzureS property.ThrowNonNullablePropertyIsNull(); continue; } - workloadType = new WorkloadType(property.Value.GetString()); + workloadType = new BackupWorkloadType(property.Value.GetString()); continue; } if (property.NameEquals("operationType"u8)) @@ -128,7 +133,7 @@ internal static AzureSqlAGWorkloadContainerProtectionContainer DeserializeAzureS property.ThrowNonNullablePropertyIsNull(); continue; } - operationType = new OperationType(property.Value.GetString()); + operationType = new WorkloadOperationType(property.Value.GetString()); continue; } if (property.NameEquals("friendlyName"u8)) @@ -167,7 +172,7 @@ internal static AzureSqlAGWorkloadContainerProtectionContainer DeserializeAzureS continue; } } - return new AzureSqlAGWorkloadContainerProtectionContainer(friendlyName.Value, Optional.ToNullable(backupManagementType), registrationStatus.Value, healthStatus.Value, containerType, protectableObjectType.Value, sourceResourceId.Value, Optional.ToNullable(lastUpdatedTime), extendedInfo.Value, Optional.ToNullable(workloadType), Optional.ToNullable(operationType)); + return new VmAppContainerProtectionContainer(friendlyName.Value, Optional.ToNullable(backupManagementType), registrationStatus.Value, healthStatus.Value, containerType, protectableObjectType.Value, sourceResourceId.Value, Optional.ToNullable(lastUpdatedTime), extendedInfo.Value, Optional.ToNullable(workloadType), Optional.ToNullable(operationType)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmAppContainerProtectionContainer.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmAppContainerProtectionContainer.cs similarity index 67% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmAppContainerProtectionContainer.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmAppContainerProtectionContainer.cs index 6add7d7a79db6..0fb270ff7d47b 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmAppContainerProtectionContainer.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmAppContainerProtectionContainer.cs @@ -6,19 +6,20 @@ #nullable disable using System; +using Azure.Core; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Container for SQL workloads under Azure Virtual Machines. - public partial class AzureVmAppContainerProtectionContainer : AzureWorkloadContainer + public partial class VmAppContainerProtectionContainer : WorkloadContainer { - /// Initializes a new instance of AzureVmAppContainerProtectionContainer. - public AzureVmAppContainerProtectionContainer() + /// Initializes a new instance of VmAppContainerProtectionContainer. + public VmAppContainerProtectionContainer() { ContainerType = ProtectableContainerType.VmAppContainer; } - /// Initializes a new instance of AzureVmAppContainerProtectionContainer. + /// Initializes a new instance of VmAppContainerProtectionContainer. /// Friendly name of the container. /// Type of backup management for the container. /// Status of registration of the container with the Recovery Services Vault. @@ -35,7 +36,7 @@ public AzureVmAppContainerProtectionContainer() /// Additional details of a workload container. /// Workload type for which registration was sent. /// Re-Do Operation. - internal AzureVmAppContainerProtectionContainer(string friendlyName, BackupManagementType? backupManagementType, string registrationStatus, string healthStatus, ProtectableContainerType containerType, string protectableObjectType, string sourceResourceId, DateTimeOffset? lastUpdatedOn, AzureWorkloadContainerExtendedInfo extendedInfo, WorkloadType? workloadType, OperationType? operationType) : base(friendlyName, backupManagementType, registrationStatus, healthStatus, containerType, protectableObjectType, sourceResourceId, lastUpdatedOn, extendedInfo, workloadType, operationType) + internal VmAppContainerProtectionContainer(string friendlyName, BackupManagementType? backupManagementType, string registrationStatus, string healthStatus, ProtectableContainerType containerType, string protectableObjectType, ResourceIdentifier sourceResourceId, DateTimeOffset? lastUpdatedOn, WorkloadContainerExtendedInfo extendedInfo, BackupWorkloadType? workloadType, WorkloadOperationType? operationType) : base(friendlyName, backupManagementType, registrationStatus, healthStatus, containerType, protectableObjectType, sourceResourceId, lastUpdatedOn, extendedInfo, workloadType, operationType) { ContainerType = containerType; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/EncryptionDetails.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmEncryptionDetails.Serialization.cs similarity index 71% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/EncryptionDetails.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmEncryptionDetails.Serialization.cs index cd8a7769d279e..1ec81fa96e3b7 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/EncryptionDetails.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmEncryptionDetails.Serialization.cs @@ -11,15 +11,15 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class EncryptionDetails : IUtf8JsonSerializable + public partial class VmEncryptionDetails : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - if (Optional.IsDefined(EncryptionEnabled)) + if (Optional.IsDefined(IsEncryptionEnabled)) { writer.WritePropertyName("encryptionEnabled"u8); - writer.WriteBooleanValue(EncryptionEnabled.Value); + writer.WriteBooleanValue(IsEncryptionEnabled.Value); } if (Optional.IsDefined(KekUri)) { @@ -44,13 +44,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static EncryptionDetails DeserializeEncryptionDetails(JsonElement element) + internal static VmEncryptionDetails DeserializeVmEncryptionDetails(JsonElement element) { Optional encryptionEnabled = default; Optional kekUrl = default; Optional secretKeyUrl = default; - Optional kekVaultId = default; - Optional secretKeyVaultId = default; + Optional kekVaultId = default; + Optional secretKeyVaultId = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("encryptionEnabled"u8)) @@ -85,16 +85,26 @@ internal static EncryptionDetails DeserializeEncryptionDetails(JsonElement eleme } if (property.NameEquals("kekVaultId"u8)) { - kekVaultId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + kekVaultId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("secretKeyVaultId"u8)) { - secretKeyVaultId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + secretKeyVaultId = new ResourceIdentifier(property.Value.GetString()); continue; } } - return new EncryptionDetails(Optional.ToNullable(encryptionEnabled), kekUrl.Value, secretKeyUrl.Value, kekVaultId.Value, secretKeyVaultId.Value); + return new VmEncryptionDetails(Optional.ToNullable(encryptionEnabled), kekUrl.Value, secretKeyUrl.Value, kekVaultId.Value, secretKeyVaultId.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/EncryptionDetails.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmEncryptionDetails.cs similarity index 60% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/EncryptionDetails.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmEncryptionDetails.cs index f3055f13bd1ef..ebda1c9e74ebf 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/EncryptionDetails.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmEncryptionDetails.cs @@ -6,26 +6,27 @@ #nullable disable using System; +using Azure.Core; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Details needed if the VM was encrypted at the time of backup. - public partial class EncryptionDetails + public partial class VmEncryptionDetails { - /// Initializes a new instance of EncryptionDetails. - public EncryptionDetails() + /// Initializes a new instance of VmEncryptionDetails. + public VmEncryptionDetails() { } - /// Initializes a new instance of EncryptionDetails. - /// Identifies whether this backup copy represents an encrypted VM at the time of backup. + /// Initializes a new instance of VmEncryptionDetails. + /// Identifies whether this backup copy represents an encrypted VM at the time of backup. /// Key Url. /// Secret Url. /// ID of Key Vault where KEK is stored. /// ID of Key Vault where Secret is stored. - internal EncryptionDetails(bool? encryptionEnabled, Uri kekUri, Uri secretKeyUri, string kekVaultId, string secretKeyVaultId) + internal VmEncryptionDetails(bool? isEncryptionEnabled, Uri kekUri, Uri secretKeyUri, ResourceIdentifier kekVaultId, ResourceIdentifier secretKeyVaultId) { - EncryptionEnabled = encryptionEnabled; + IsEncryptionEnabled = isEncryptionEnabled; KekUri = kekUri; SecretKeyUri = secretKeyUri; KekVaultId = kekVaultId; @@ -33,14 +34,14 @@ internal EncryptionDetails(bool? encryptionEnabled, Uri kekUri, Uri secretKeyUri } /// Identifies whether this backup copy represents an encrypted VM at the time of backup. - public bool? EncryptionEnabled { get; set; } + public bool? IsEncryptionEnabled { get; set; } /// Key Url. public Uri KekUri { get; set; } /// Secret Url. public Uri SecretKeyUri { get; set; } /// ID of Key Vault where KEK is stored. - public string KekVaultId { get; set; } + public ResourceIdentifier KekVaultId { get; set; } /// ID of Key Vault where Secret is stored. - public string SecretKeyVaultId { get; set; } + public ResourceIdentifier SecretKeyVaultId { get; set; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmResourceFeatureSupportRequest.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmResourceFeatureSupportContent.Serialization.cs similarity index 91% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmResourceFeatureSupportRequest.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmResourceFeatureSupportContent.Serialization.cs index 66d331f040aa9..45ab03cfdd27a 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmResourceFeatureSupportRequest.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmResourceFeatureSupportContent.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureVmResourceFeatureSupportRequest : IUtf8JsonSerializable + public partial class VmResourceFeatureSupportContent : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmResourceFeatureSupportRequest.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmResourceFeatureSupportContent.cs similarity index 72% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmResourceFeatureSupportRequest.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmResourceFeatureSupportContent.cs index f9071c3e2eee7..ca6f5793a07e6 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmResourceFeatureSupportRequest.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmResourceFeatureSupportContent.cs @@ -8,10 +8,10 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// AzureResource(IaaS VM) Specific feature support request. - public partial class AzureVmResourceFeatureSupportRequest : FeatureSupportContent + public partial class VmResourceFeatureSupportContent : FeatureSupportContent { - /// Initializes a new instance of AzureVmResourceFeatureSupportRequest. - public AzureVmResourceFeatureSupportRequest() + /// Initializes a new instance of VmResourceFeatureSupportContent. + public VmResourceFeatureSupportContent() { FeatureType = "AzureVMResourceBackup"; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmResourceFeatureSupportResponse.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmResourceFeatureSupportResult.Serialization.cs similarity index 61% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmResourceFeatureSupportResponse.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmResourceFeatureSupportResult.Serialization.cs index 62c6a100a23a5..1b816e999f9f4 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmResourceFeatureSupportResponse.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmResourceFeatureSupportResult.Serialization.cs @@ -10,11 +10,11 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureVmResourceFeatureSupportResponse + public partial class VmResourceFeatureSupportResult { - internal static AzureVmResourceFeatureSupportResponse DeserializeAzureVmResourceFeatureSupportResponse(JsonElement element) + internal static VmResourceFeatureSupportResult DeserializeVmResourceFeatureSupportResult(JsonElement element) { - Optional supportStatus = default; + Optional supportStatus = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("supportStatus"u8)) @@ -24,11 +24,11 @@ internal static AzureVmResourceFeatureSupportResponse DeserializeAzureVmResource property.ThrowNonNullablePropertyIsNull(); continue; } - supportStatus = new SupportStatus(property.Value.GetString()); + supportStatus = new VmResourceFeatureSupportStatus(property.Value.GetString()); continue; } } - return new AzureVmResourceFeatureSupportResponse(Optional.ToNullable(supportStatus)); + return new VmResourceFeatureSupportResult(Optional.ToNullable(supportStatus)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmResourceFeatureSupportResponse.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmResourceFeatureSupportResult.cs similarity index 53% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmResourceFeatureSupportResponse.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmResourceFeatureSupportResult.cs index b94771310563e..b1ba06eb8ca7b 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmResourceFeatureSupportResponse.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmResourceFeatureSupportResult.cs @@ -8,21 +8,21 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Response for feature support requests for Azure IaasVm. - public partial class AzureVmResourceFeatureSupportResponse + public partial class VmResourceFeatureSupportResult { - /// Initializes a new instance of AzureVmResourceFeatureSupportResponse. - internal AzureVmResourceFeatureSupportResponse() + /// Initializes a new instance of VmResourceFeatureSupportResult. + internal VmResourceFeatureSupportResult() { } - /// Initializes a new instance of AzureVmResourceFeatureSupportResponse. + /// Initializes a new instance of VmResourceFeatureSupportResult. /// Support status of feature. - internal AzureVmResourceFeatureSupportResponse(SupportStatus? supportStatus) + internal VmResourceFeatureSupportResult(VmResourceFeatureSupportStatus? supportStatus) { SupportStatus = supportStatus; } /// Support status of feature. - public SupportStatus? SupportStatus { get; } + public VmResourceFeatureSupportStatus? SupportStatus { get; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmResourceFeatureSupportStatus.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmResourceFeatureSupportStatus.cs new file mode 100644 index 0000000000000..0690ef12f3200 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmResourceFeatureSupportStatus.cs @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Models +{ + /// Support status of feature. + public readonly partial struct VmResourceFeatureSupportStatus : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public VmResourceFeatureSupportStatus(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string InvalidValue = "Invalid"; + private const string SupportedValue = "Supported"; + private const string DefaultOffValue = "DefaultOFF"; + private const string DefaultOnValue = "DefaultON"; + private const string NotSupportedValue = "NotSupported"; + + /// Invalid. + public static VmResourceFeatureSupportStatus Invalid { get; } = new VmResourceFeatureSupportStatus(InvalidValue); + /// Supported. + public static VmResourceFeatureSupportStatus Supported { get; } = new VmResourceFeatureSupportStatus(SupportedValue); + /// DefaultOFF. + public static VmResourceFeatureSupportStatus DefaultOff { get; } = new VmResourceFeatureSupportStatus(DefaultOffValue); + /// DefaultON. + public static VmResourceFeatureSupportStatus DefaultOn { get; } = new VmResourceFeatureSupportStatus(DefaultOnValue); + /// NotSupported. + public static VmResourceFeatureSupportStatus NotSupported { get; } = new VmResourceFeatureSupportStatus(NotSupportedValue); + /// Determines if two values are the same. + public static bool operator ==(VmResourceFeatureSupportStatus left, VmResourceFeatureSupportStatus right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(VmResourceFeatureSupportStatus left, VmResourceFeatureSupportStatus right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator VmResourceFeatureSupportStatus(string value) => new VmResourceFeatureSupportStatus(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is VmResourceFeatureSupportStatus other && Equals(other); + /// + public bool Equals(VmResourceFeatureSupportStatus other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadItem.Serialization.cs similarity index 77% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadItem.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadItem.Serialization.cs index 4aee80b11f434..065e76062ead1 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadItem.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureVmWorkloadItem : IUtf8JsonSerializable + public partial class VmWorkloadItem : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -30,10 +30,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("isAutoProtectable"u8); writer.WriteBooleanValue(IsAutoProtectable.Value); } - if (Optional.IsDefined(Subinquireditemcount)) + if (Optional.IsDefined(SubInquiredItemCount)) { writer.WritePropertyName("subinquireditemcount"u8); - writer.WriteNumberValue(Subinquireditemcount.Value); + writer.WriteNumberValue(SubInquiredItemCount.Value); } if (Optional.IsDefined(SubWorkloadItemCount)) { @@ -65,18 +65,18 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureVmWorkloadItem DeserializeAzureVmWorkloadItem(JsonElement element) + internal static VmWorkloadItem DeserializeVmWorkloadItem(JsonElement element) { if (element.TryGetProperty("workloadItemType", out JsonElement discriminator)) { switch (discriminator.GetString()) { - case "SAPAseDatabase": return AzureVmWorkloadSAPAseDatabaseWorkloadItem.DeserializeAzureVmWorkloadSAPAseDatabaseWorkloadItem(element); - case "SAPAseSystem": return AzureVmWorkloadSAPAseSystemWorkloadItem.DeserializeAzureVmWorkloadSAPAseSystemWorkloadItem(element); - case "SAPHanaDatabase": return AzureVmWorkloadSAPHanaDatabaseWorkloadItem.DeserializeAzureVmWorkloadSAPHanaDatabaseWorkloadItem(element); - case "SAPHanaSystem": return AzureVmWorkloadSAPHanaSystemWorkloadItem.DeserializeAzureVmWorkloadSAPHanaSystemWorkloadItem(element); - case "SQLDataBase": return AzureVmWorkloadSQLDatabaseWorkloadItem.DeserializeAzureVmWorkloadSQLDatabaseWorkloadItem(element); - case "SQLInstance": return AzureVmWorkloadSQLInstanceWorkloadItem.DeserializeAzureVmWorkloadSQLInstanceWorkloadItem(element); + case "SAPAseDatabase": return VmWorkloadSapAseDatabaseWorkloadItem.DeserializeVmWorkloadSapAseDatabaseWorkloadItem(element); + case "SAPAseSystem": return VmWorkloadSapAseSystemWorkloadItem.DeserializeVmWorkloadSapAseSystemWorkloadItem(element); + case "SAPHanaDatabase": return VmWorkloadSapHanaDatabaseWorkloadItem.DeserializeVmWorkloadSapHanaDatabaseWorkloadItem(element); + case "SAPHanaSystem": return VmWorkloadSapHanaSystemWorkloadItem.DeserializeVmWorkloadSapHanaSystemWorkloadItem(element); + case "SQLDataBase": return VmWorkloadSqlDatabaseWorkloadItem.DeserializeVmWorkloadSqlDatabaseWorkloadItem(element); + case "SQLInstance": return VmWorkloadSqlInstanceWorkloadItem.DeserializeVmWorkloadSqlInstanceWorkloadItem(element); } } Optional parentName = default; @@ -88,7 +88,7 @@ internal static AzureVmWorkloadItem DeserializeAzureVmWorkloadItem(JsonElement e Optional workloadType = default; string workloadItemType = "AzureVmWorkloadItem"; Optional friendlyName = default; - Optional protectionState = default; + Optional protectionState = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("parentName"u8)) @@ -158,11 +158,11 @@ internal static AzureVmWorkloadItem DeserializeAzureVmWorkloadItem(JsonElement e property.ThrowNonNullablePropertyIsNull(); continue; } - protectionState = new ProtectionStatus(property.Value.GetString()); + protectionState = new BackupProtectionStatus(property.Value.GetString()); continue; } } - return new AzureVmWorkloadItem(backupManagementType.Value, workloadType.Value, workloadItemType, friendlyName.Value, Optional.ToNullable(protectionState), parentName.Value, serverName.Value, Optional.ToNullable(isAutoProtectable), Optional.ToNullable(subinquireditemcount), Optional.ToNullable(subWorkloadItemCount)); + return new VmWorkloadItem(backupManagementType.Value, workloadType.Value, workloadItemType, friendlyName.Value, Optional.ToNullable(protectionState), parentName.Value, serverName.Value, Optional.ToNullable(isAutoProtectable), Optional.ToNullable(subinquireditemcount), Optional.ToNullable(subWorkloadItemCount)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadItem.cs similarity index 59% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadItem.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadItem.cs index 36da88b61ed47..0e67000f9b74c 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadItem.cs @@ -9,18 +9,18 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// /// Azure VM workload-specific workload item. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , and . /// - public partial class AzureVmWorkloadItem : WorkloadItem + public partial class VmWorkloadItem : WorkloadItem { - /// Initializes a new instance of AzureVmWorkloadItem. - public AzureVmWorkloadItem() + /// Initializes a new instance of VmWorkloadItem. + public VmWorkloadItem() { WorkloadItemType = "AzureVmWorkloadItem"; } - /// Initializes a new instance of AzureVmWorkloadItem. + /// Initializes a new instance of VmWorkloadItem. /// Type of backup management to backup an item. /// Type of workload for the backup management. /// Type of the backup item. @@ -29,14 +29,14 @@ public AzureVmWorkloadItem() /// Name for instance or AG. /// Host/Cluster Name for instance or AG. /// Indicates if workload item is auto-protectable. - /// For instance or AG, indicates number of DB's present. + /// For instance or AG, indicates number of DB's present. /// For instance or AG, indicates number of DB's to be protected. - internal AzureVmWorkloadItem(string backupManagementType, string workloadType, string workloadItemType, string friendlyName, ProtectionStatus? protectionState, string parentName, string serverName, bool? isAutoProtectable, int? subinquireditemcount, int? subWorkloadItemCount) : base(backupManagementType, workloadType, workloadItemType, friendlyName, protectionState) + internal VmWorkloadItem(string backupManagementType, string workloadType, string workloadItemType, string friendlyName, BackupProtectionStatus? protectionState, string parentName, string serverName, bool? isAutoProtectable, int? subInquiredItemCount, int? subWorkloadItemCount) : base(backupManagementType, workloadType, workloadItemType, friendlyName, protectionState) { ParentName = parentName; ServerName = serverName; IsAutoProtectable = isAutoProtectable; - Subinquireditemcount = subinquireditemcount; + SubInquiredItemCount = subInquiredItemCount; SubWorkloadItemCount = subWorkloadItemCount; WorkloadItemType = workloadItemType ?? "AzureVmWorkloadItem"; } @@ -48,7 +48,7 @@ internal AzureVmWorkloadItem(string backupManagementType, string workloadType, s /// Indicates if workload item is auto-protectable. public bool? IsAutoProtectable { get; set; } /// For instance or AG, indicates number of DB's present. - public int? Subinquireditemcount { get; set; } + public int? SubInquiredItemCount { get; set; } /// For instance or AG, indicates number of DB's to be protected. public int? SubWorkloadItemCount { get; set; } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadProtectableItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectableItem.Serialization.cs similarity index 76% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadProtectableItem.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectableItem.Serialization.cs index a21521607f1b7..cb19d20d3765d 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadProtectableItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectableItem.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureVmWorkloadProtectableItem : IUtf8JsonSerializable + public partial class VmWorkloadProtectableItem : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -40,20 +40,20 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("isAutoProtected"u8); writer.WriteBooleanValue(IsAutoProtected.Value); } - if (Optional.IsDefined(Subinquireditemcount)) + if (Optional.IsDefined(SubInquiredItemCount)) { writer.WritePropertyName("subinquireditemcount"u8); - writer.WriteNumberValue(Subinquireditemcount.Value); + writer.WriteNumberValue(SubInquiredItemCount.Value); } - if (Optional.IsDefined(Subprotectableitemcount)) + if (Optional.IsDefined(SubProtectableItemCount)) { writer.WritePropertyName("subprotectableitemcount"u8); - writer.WriteNumberValue(Subprotectableitemcount.Value); + writer.WriteNumberValue(SubProtectableItemCount.Value); } - if (Optional.IsDefined(Prebackupvalidation)) + if (Optional.IsDefined(PreBackupValidation)) { writer.WritePropertyName("prebackupvalidation"u8); - writer.WriteObjectValue(Prebackupvalidation); + writer.WriteObjectValue(PreBackupValidation); } if (Optional.IsDefined(BackupManagementType)) { @@ -80,20 +80,20 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureVmWorkloadProtectableItem DeserializeAzureVmWorkloadProtectableItem(JsonElement element) + internal static VmWorkloadProtectableItem DeserializeVmWorkloadProtectableItem(JsonElement element) { if (element.TryGetProperty("protectableItemType", out JsonElement discriminator)) { switch (discriminator.GetString()) { - case "SAPAseSystem": return AzureVmWorkloadSAPAseSystemProtectableItem.DeserializeAzureVmWorkloadSAPAseSystemProtectableItem(element); - case "SAPHanaDBInstance": return AzureVmWorkloadSAPHanaDBInstance.DeserializeAzureVmWorkloadSAPHanaDBInstance(element); - case "SAPHanaDatabase": return AzureVmWorkloadSAPHanaDatabaseProtectableItem.DeserializeAzureVmWorkloadSAPHanaDatabaseProtectableItem(element); - case "SAPHanaHSR": return AzureVmWorkloadSAPHanaHSR.DeserializeAzureVmWorkloadSAPHanaHSR(element); - case "SAPHanaSystem": return AzureVmWorkloadSAPHanaSystemProtectableItem.DeserializeAzureVmWorkloadSAPHanaSystemProtectableItem(element); - case "SQLAvailabilityGroupContainer": return AzureVmWorkloadSQLAvailabilityGroupProtectableItem.DeserializeAzureVmWorkloadSQLAvailabilityGroupProtectableItem(element); - case "SQLDataBase": return AzureVmWorkloadSQLDatabaseProtectableItem.DeserializeAzureVmWorkloadSQLDatabaseProtectableItem(element); - case "SQLInstance": return AzureVmWorkloadSQLInstanceProtectableItem.DeserializeAzureVmWorkloadSQLInstanceProtectableItem(element); + case "SAPAseSystem": return VmWorkloadSapAseSystemProtectableItem.DeserializeVmWorkloadSapAseSystemProtectableItem(element); + case "SAPHanaDBInstance": return VmWorkloadSapHanaDBInstance.DeserializeVmWorkloadSapHanaDBInstance(element); + case "SAPHanaDatabase": return VmWorkloadSapHanaDatabaseProtectableItem.DeserializeVmWorkloadSapHanaDatabaseProtectableItem(element); + case "SAPHanaHSR": return VmWorkloadSapHanaHsr.DeserializeVmWorkloadSapHanaHsr(element); + case "SAPHanaSystem": return VmWorkloadSapHanaSystemProtectableItem.DeserializeVmWorkloadSapHanaSystemProtectableItem(element); + case "SQLAvailabilityGroupContainer": return VmWorkloadSqlAvailabilityGroupProtectableItem.DeserializeVmWorkloadSqlAvailabilityGroupProtectableItem(element); + case "SQLDataBase": return VmWorkloadSqlDatabaseProtectableItem.DeserializeVmWorkloadSqlDatabaseProtectableItem(element); + case "SQLInstance": return VmWorkloadSqlInstanceProtectableItem.DeserializeVmWorkloadSqlInstanceProtectableItem(element); } } Optional parentName = default; @@ -108,7 +108,7 @@ internal static AzureVmWorkloadProtectableItem DeserializeAzureVmWorkloadProtect Optional workloadType = default; string protectableItemType = "AzureVmWorkloadProtectableItem"; Optional friendlyName = default; - Optional protectionState = default; + Optional protectionState = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("parentName"u8)) @@ -203,11 +203,11 @@ internal static AzureVmWorkloadProtectableItem DeserializeAzureVmWorkloadProtect property.ThrowNonNullablePropertyIsNull(); continue; } - protectionState = new ProtectionStatus(property.Value.GetString()); + protectionState = new BackupProtectionStatus(property.Value.GetString()); continue; } } - return new AzureVmWorkloadProtectableItem(backupManagementType.Value, workloadType.Value, protectableItemType, friendlyName.Value, Optional.ToNullable(protectionState), parentName.Value, parentUniqueName.Value, serverName.Value, Optional.ToNullable(isAutoProtectable), Optional.ToNullable(isAutoProtected), Optional.ToNullable(subinquireditemcount), Optional.ToNullable(subprotectableitemcount), prebackupvalidation.Value); + return new VmWorkloadProtectableItem(backupManagementType.Value, workloadType.Value, protectableItemType, friendlyName.Value, Optional.ToNullable(protectionState), parentName.Value, parentUniqueName.Value, serverName.Value, Optional.ToNullable(isAutoProtectable), Optional.ToNullable(isAutoProtected), Optional.ToNullable(subinquireditemcount), Optional.ToNullable(subprotectableitemcount), prebackupvalidation.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadProtectableItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectableItem.cs similarity index 58% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadProtectableItem.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectableItem.cs index 11489fca9cb64..e83c951de708f 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadProtectableItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectableItem.cs @@ -9,18 +9,18 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// /// Azure VM workload-specific protectable item. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , and . /// - public partial class AzureVmWorkloadProtectableItem : WorkloadProtectableItem + public partial class VmWorkloadProtectableItem : WorkloadProtectableItem { - /// Initializes a new instance of AzureVmWorkloadProtectableItem. - public AzureVmWorkloadProtectableItem() + /// Initializes a new instance of VmWorkloadProtectableItem. + public VmWorkloadProtectableItem() { ProtectableItemType = "AzureVmWorkloadProtectableItem"; } - /// Initializes a new instance of AzureVmWorkloadProtectableItem. + /// Initializes a new instance of VmWorkloadProtectableItem. /// Type of backup management to backup an item. /// Type of workload for the backup management. /// Type of the backup item. @@ -34,19 +34,19 @@ public AzureVmWorkloadProtectableItem() /// Host/Cluster Name for instance or AG. /// Indicates if protectable item is auto-protectable. /// Indicates if protectable item is auto-protected. - /// For instance or AG, indicates number of DB's present. - /// For instance or AG, indicates number of DB's to be protected. - /// Pre-backup validation for protectable objects. - internal AzureVmWorkloadProtectableItem(string backupManagementType, string workloadType, string protectableItemType, string friendlyName, ProtectionStatus? protectionState, string parentName, string parentUniqueName, string serverName, bool? isAutoProtectable, bool? isAutoProtected, int? subinquireditemcount, int? subprotectableitemcount, PreBackupValidation prebackupvalidation) : base(backupManagementType, workloadType, protectableItemType, friendlyName, protectionState) + /// For instance or AG, indicates number of DB's present. + /// For instance or AG, indicates number of DB's to be protected. + /// Pre-backup validation for protectable objects. + internal VmWorkloadProtectableItem(string backupManagementType, string workloadType, string protectableItemType, string friendlyName, BackupProtectionStatus? protectionState, string parentName, string parentUniqueName, string serverName, bool? isAutoProtectable, bool? isAutoProtected, int? subInquiredItemCount, int? subProtectableItemCount, PreBackupValidation preBackupValidation) : base(backupManagementType, workloadType, protectableItemType, friendlyName, protectionState) { ParentName = parentName; ParentUniqueName = parentUniqueName; ServerName = serverName; IsAutoProtectable = isAutoProtectable; IsAutoProtected = isAutoProtected; - Subinquireditemcount = subinquireditemcount; - Subprotectableitemcount = subprotectableitemcount; - Prebackupvalidation = prebackupvalidation; + SubInquiredItemCount = subInquiredItemCount; + SubProtectableItemCount = subProtectableItemCount; + PreBackupValidation = preBackupValidation; ProtectableItemType = protectableItemType ?? "AzureVmWorkloadProtectableItem"; } @@ -64,10 +64,10 @@ internal AzureVmWorkloadProtectableItem(string backupManagementType, string work /// Indicates if protectable item is auto-protected. public bool? IsAutoProtected { get; set; } /// For instance or AG, indicates number of DB's present. - public int? Subinquireditemcount { get; set; } + public int? SubInquiredItemCount { get; set; } /// For instance or AG, indicates number of DB's to be protected. - public int? Subprotectableitemcount { get; set; } + public int? SubProtectableItemCount { get; set; } /// Pre-backup validation for protectable objects. - public PreBackupValidation Prebackupvalidation { get; set; } + public PreBackupValidation PreBackupValidation { get; set; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadProtectedItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectedItem.Serialization.cs similarity index 81% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadProtectedItem.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectedItem.Serialization.cs index 6a0277fe0c506..9d27757ff0260 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadProtectedItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectedItem.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureVmWorkloadProtectedItem : IUtf8JsonSerializable + public partial class VmWorkloadProtectedItem : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -95,10 +95,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("policyId"u8); writer.WriteStringValue(PolicyId); } - if (Optional.IsDefined(LastRecoveryPoint)) + if (Optional.IsDefined(LastRecoverOn)) { writer.WritePropertyName("lastRecoveryPoint"u8); - writer.WriteStringValue(LastRecoveryPoint.Value, "O"); + writer.WriteStringValue(LastRecoverOn.Value, "O"); } if (Optional.IsDefined(BackupSetName)) { @@ -110,10 +110,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("createMode"u8); writer.WriteStringValue(CreateMode.Value.ToString()); } - if (Optional.IsDefined(DeferredDeleteTimeInUTC)) + if (Optional.IsDefined(DeferredDeletedOn)) { writer.WritePropertyName("deferredDeleteTimeInUTC"u8); - writer.WriteStringValue(DeferredDeleteTimeInUTC.Value, "O"); + writer.WriteStringValue(DeferredDeletedOn.Value, "O"); } if (Optional.IsDefined(IsScheduledForDeferredDelete)) { @@ -163,16 +163,16 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureVmWorkloadProtectedItem DeserializeAzureVmWorkloadProtectedItem(JsonElement element) + internal static VmWorkloadProtectedItem DeserializeVmWorkloadProtectedItem(JsonElement element) { if (element.TryGetProperty("protectedItemType", out JsonElement discriminator)) { switch (discriminator.GetString()) { - case "AzureVmWorkloadSAPAseDatabase": return AzureVmWorkloadSAPAseDatabaseProtectedItem.DeserializeAzureVmWorkloadSAPAseDatabaseProtectedItem(element); - case "AzureVmWorkloadSAPHanaDBInstance": return AzureVmWorkloadSAPHanaDBInstanceProtectedItem.DeserializeAzureVmWorkloadSAPHanaDBInstanceProtectedItem(element); - case "AzureVmWorkloadSAPHanaDatabase": return AzureVmWorkloadSAPHanaDatabaseProtectedItem.DeserializeAzureVmWorkloadSAPHanaDatabaseProtectedItem(element); - case "AzureVmWorkloadSQLDatabase": return AzureVmWorkloadSQLDatabaseProtectedItem.DeserializeAzureVmWorkloadSQLDatabaseProtectedItem(element); + case "AzureVmWorkloadSAPAseDatabase": return VmWorkloadSapAseDatabaseProtectedItem.DeserializeVmWorkloadSapAseDatabaseProtectedItem(element); + case "AzureVmWorkloadSAPHanaDBInstance": return VmWorkloadSapHanaDBInstanceProtectedItem.DeserializeVmWorkloadSapHanaDBInstanceProtectedItem(element); + case "AzureVmWorkloadSAPHanaDatabase": return VmWorkloadSapHanaDatabaseProtectedItem.DeserializeVmWorkloadSapHanaDatabaseProtectedItem(element); + case "AzureVmWorkloadSQLDatabase": return VmWorkloadSqlDatabaseProtectedItem.DeserializeVmWorkloadSqlDatabaseProtectedItem(element); } } Optional friendlyName = default; @@ -180,23 +180,23 @@ internal static AzureVmWorkloadProtectedItem DeserializeAzureVmWorkloadProtected Optional parentName = default; Optional parentType = default; Optional protectionStatus = default; - Optional protectionState = default; + Optional protectionState = default; Optional lastBackupStatus = default; Optional lastBackupTime = default; - Optional lastBackupErrorDetail = default; + Optional lastBackupErrorDetail = default; Optional protectedItemDataSourceId = default; - Optional protectedItemHealthStatus = default; - Optional extendedInfo = default; - Optional> kpisHealths = default; + Optional protectedItemHealthStatus = default; + Optional extendedInfo = default; + Optional> kpisHealths = default; string protectedItemType = "AzureVmWorkloadProtectedItem"; Optional backupManagementType = default; - Optional workloadType = default; + Optional workloadType = default; Optional containerName = default; - Optional sourceResourceId = default; - Optional policyId = default; + Optional sourceResourceId = default; + Optional policyId = default; Optional lastRecoveryPoint = default; Optional backupSetName = default; - Optional createMode = default; + Optional createMode = default; Optional deferredDeleteTimeInUTC = default; Optional isScheduledForDeferredDelete = default; Optional deferredDeleteTimeRemaining = default; @@ -240,7 +240,7 @@ internal static AzureVmWorkloadProtectedItem DeserializeAzureVmWorkloadProtected property.ThrowNonNullablePropertyIsNull(); continue; } - protectionState = new ProtectionState(property.Value.GetString()); + protectionState = new BackupProtectionState(property.Value.GetString()); continue; } if (property.NameEquals("lastBackupStatus"u8)) @@ -270,7 +270,7 @@ internal static AzureVmWorkloadProtectedItem DeserializeAzureVmWorkloadProtected property.ThrowNonNullablePropertyIsNull(); continue; } - lastBackupErrorDetail = ErrorDetail.DeserializeErrorDetail(property.Value); + lastBackupErrorDetail = BackupErrorDetail.DeserializeBackupErrorDetail(property.Value); continue; } if (property.NameEquals("protectedItemDataSourceId"u8)) @@ -285,7 +285,7 @@ internal static AzureVmWorkloadProtectedItem DeserializeAzureVmWorkloadProtected property.ThrowNonNullablePropertyIsNull(); continue; } - protectedItemHealthStatus = new ProtectedItemHealthStatus(property.Value.GetString()); + protectedItemHealthStatus = new VmWorkloadProtectedItemHealthStatus(property.Value.GetString()); continue; } if (property.NameEquals("extendedInfo"u8)) @@ -295,7 +295,7 @@ internal static AzureVmWorkloadProtectedItem DeserializeAzureVmWorkloadProtected property.ThrowNonNullablePropertyIsNull(); continue; } - extendedInfo = AzureVmWorkloadProtectedItemExtendedInfo.DeserializeAzureVmWorkloadProtectedItemExtendedInfo(property.Value); + extendedInfo = VmWorkloadProtectedItemExtendedInfo.DeserializeVmWorkloadProtectedItemExtendedInfo(property.Value); continue; } if (property.NameEquals("kpisHealths"u8)) @@ -305,10 +305,10 @@ internal static AzureVmWorkloadProtectedItem DeserializeAzureVmWorkloadProtected property.ThrowNonNullablePropertyIsNull(); continue; } - Dictionary dictionary = new Dictionary(); + Dictionary dictionary = new Dictionary(); foreach (var property0 in property.Value.EnumerateObject()) { - dictionary.Add(property0.Name, KPIResourceHealthDetails.DeserializeKPIResourceHealthDetails(property0.Value)); + dictionary.Add(property0.Name, KpiResourceHealthDetails.DeserializeKpiResourceHealthDetails(property0.Value)); } kpisHealths = dictionary; continue; @@ -335,7 +335,7 @@ internal static AzureVmWorkloadProtectedItem DeserializeAzureVmWorkloadProtected property.ThrowNonNullablePropertyIsNull(); continue; } - workloadType = new DataSourceType(property.Value.GetString()); + workloadType = new BackupDataSourceType(property.Value.GetString()); continue; } if (property.NameEquals("containerName"u8)) @@ -345,12 +345,22 @@ internal static AzureVmWorkloadProtectedItem DeserializeAzureVmWorkloadProtected } if (property.NameEquals("sourceResourceId"u8)) { - sourceResourceId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + sourceResourceId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("policyId"u8)) { - policyId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + policyId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("lastRecoveryPoint"u8)) @@ -375,7 +385,7 @@ internal static AzureVmWorkloadProtectedItem DeserializeAzureVmWorkloadProtected property.ThrowNonNullablePropertyIsNull(); continue; } - createMode = new CreateMode(property.Value.GetString()); + createMode = new BackupCreateMode(property.Value.GetString()); continue; } if (property.NameEquals("deferredDeleteTimeInUTC"u8)) @@ -464,7 +474,7 @@ internal static AzureVmWorkloadProtectedItem DeserializeAzureVmWorkloadProtected continue; } } - return new AzureVmWorkloadProtectedItem(protectedItemType, Optional.ToNullable(backupManagementType), Optional.ToNullable(workloadType), containerName.Value, sourceResourceId.Value, policyId.Value, Optional.ToNullable(lastRecoveryPoint), backupSetName.Value, Optional.ToNullable(createMode), Optional.ToNullable(deferredDeleteTimeInUTC), Optional.ToNullable(isScheduledForDeferredDelete), deferredDeleteTimeRemaining.Value, Optional.ToNullable(isDeferredDeleteScheduleUpcoming), Optional.ToNullable(isRehydrate), Optional.ToList(resourceGuardOperationRequests), Optional.ToNullable(isArchiveEnabled), policyName.Value, Optional.ToNullable(softDeleteRetentionPeriod), friendlyName.Value, serverName.Value, parentName.Value, parentType.Value, protectionStatus.Value, Optional.ToNullable(protectionState), Optional.ToNullable(lastBackupStatus), Optional.ToNullable(lastBackupTime), lastBackupErrorDetail.Value, protectedItemDataSourceId.Value, Optional.ToNullable(protectedItemHealthStatus), extendedInfo.Value, Optional.ToDictionary(kpisHealths)); + return new VmWorkloadProtectedItem(protectedItemType, Optional.ToNullable(backupManagementType), Optional.ToNullable(workloadType), containerName.Value, sourceResourceId.Value, policyId.Value, Optional.ToNullable(lastRecoveryPoint), backupSetName.Value, Optional.ToNullable(createMode), Optional.ToNullable(deferredDeleteTimeInUTC), Optional.ToNullable(isScheduledForDeferredDelete), deferredDeleteTimeRemaining.Value, Optional.ToNullable(isDeferredDeleteScheduleUpcoming), Optional.ToNullable(isRehydrate), Optional.ToList(resourceGuardOperationRequests), Optional.ToNullable(isArchiveEnabled), policyName.Value, Optional.ToNullable(softDeleteRetentionPeriod), friendlyName.Value, serverName.Value, parentName.Value, parentType.Value, protectionStatus.Value, Optional.ToNullable(protectionState), Optional.ToNullable(lastBackupStatus), Optional.ToNullable(lastBackupTime), lastBackupErrorDetail.Value, protectedItemDataSourceId.Value, Optional.ToNullable(protectedItemHealthStatus), extendedInfo.Value, Optional.ToDictionary(kpisHealths)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadProtectedItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectedItem.cs similarity index 67% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadProtectedItem.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectedItem.cs index 1b68f9085ae25..310bc54457611 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadProtectedItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectedItem.cs @@ -13,29 +13,29 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// /// Azure VM workload-specific protected item. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , and . /// - public partial class AzureVmWorkloadProtectedItem : ProtectedItem + public partial class VmWorkloadProtectedItem : BackupGenericProtectedItem { - /// Initializes a new instance of AzureVmWorkloadProtectedItem. - public AzureVmWorkloadProtectedItem() + /// Initializes a new instance of VmWorkloadProtectedItem. + public VmWorkloadProtectedItem() { - KpisHealths = new ChangeTrackingDictionary(); + KpisHealths = new ChangeTrackingDictionary(); ProtectedItemType = "AzureVmWorkloadProtectedItem"; } - /// Initializes a new instance of AzureVmWorkloadProtectedItem. + /// Initializes a new instance of VmWorkloadProtectedItem. /// backup item type. /// Type of backup management for the backed up item. /// Type of workload this item represents. /// Unique name of container. /// ARM ID of the resource to be backed up. /// ID of the backup policy with which this item is backed up. - /// Timestamp when the last (latest) backup copy was created for this backup item. + /// Timestamp when the last (latest) backup copy was created for this backup item. /// Name of the backup set the backup item belongs to. /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. - /// Time for deferred deletion in UTC. + /// Time for deferred deletion in UTC. /// Flag to identify whether the DS is scheduled for deferred delete. /// Time remaining before the DS marked for deferred delete is permanently deleted. /// Flag to identify whether the deferred deleted DS is to be purged soon. @@ -57,7 +57,7 @@ public AzureVmWorkloadProtectedItem() /// Health status of the backup item, evaluated based on last heartbeat received. /// Additional information for this backup item. /// Health details of different KPIs. - internal AzureVmWorkloadProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, DataSourceType? workloadType, string containerName, string sourceResourceId, string policyId, DateTimeOffset? lastRecoveryPoint, string backupSetName, CreateMode? createMode, DateTimeOffset? deferredDeleteTimeInUTC, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriod, string friendlyName, string serverName, string parentName, string parentType, string protectionStatus, ProtectionState? protectionState, LastBackupStatus? lastBackupStatus, DateTimeOffset? lastBackupOn, ErrorDetail lastBackupErrorDetail, string protectedItemDataSourceId, ProtectedItemHealthStatus? protectedItemHealthStatus, AzureVmWorkloadProtectedItemExtendedInfo extendedInfo, IDictionary kpisHealths) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, deferredDeleteTimeInUTC, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriod) + internal VmWorkloadProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, ResourceIdentifier policyId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriod, string friendlyName, string serverName, string parentName, string parentType, string protectionStatus, BackupProtectionState? protectionState, LastBackupStatus? lastBackupStatus, DateTimeOffset? lastBackupOn, BackupErrorDetail lastBackupErrorDetail, string protectedItemDataSourceId, VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus, VmWorkloadProtectedItemExtendedInfo extendedInfo, IDictionary kpisHealths) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriod) { FriendlyName = friendlyName; ServerName = serverName; @@ -86,20 +86,20 @@ internal AzureVmWorkloadProtectedItem(string protectedItemType, BackupManagement /// Backup status of this backup item. public string ProtectionStatus { get; } /// Backup state of this backup item. - public ProtectionState? ProtectionState { get; set; } + public BackupProtectionState? ProtectionState { get; set; } /// Last backup operation status. Possible values: Healthy, Unhealthy. public LastBackupStatus? LastBackupStatus { get; set; } /// Timestamp of the last backup operation on this backup item. public DateTimeOffset? LastBackupOn { get; set; } /// Error details in last backup. - public ErrorDetail LastBackupErrorDetail { get; set; } + public BackupErrorDetail LastBackupErrorDetail { get; set; } /// Data ID of the protected item. public string ProtectedItemDataSourceId { get; set; } /// Health status of the backup item, evaluated based on last heartbeat received. - public ProtectedItemHealthStatus? ProtectedItemHealthStatus { get; set; } + public VmWorkloadProtectedItemHealthStatus? ProtectedItemHealthStatus { get; set; } /// Additional information for this backup item. - public AzureVmWorkloadProtectedItemExtendedInfo ExtendedInfo { get; set; } + public VmWorkloadProtectedItemExtendedInfo ExtendedInfo { get; set; } /// Health details of different KPIs. - public IDictionary KpisHealths { get; } + public IDictionary KpisHealths { get; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadProtectedItemExtendedInfo.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectedItemExtendedInfo.Serialization.cs similarity index 87% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadProtectedItemExtendedInfo.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectedItemExtendedInfo.Serialization.cs index a8b776e8b2d8b..26769f5154aef 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadProtectedItemExtendedInfo.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectedItemExtendedInfo.Serialization.cs @@ -11,15 +11,15 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureVmWorkloadProtectedItemExtendedInfo : IUtf8JsonSerializable + public partial class VmWorkloadProtectedItemExtendedInfo : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - if (Optional.IsDefined(OldestRecoveryPoint)) + if (Optional.IsDefined(OldestRecoverOn)) { writer.WritePropertyName("oldestRecoveryPoint"u8); - writer.WriteStringValue(OldestRecoveryPoint.Value, "O"); + writer.WriteStringValue(OldestRecoverOn.Value, "O"); } if (Optional.IsDefined(OldestRecoveryPointInVault)) { @@ -54,7 +54,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureVmWorkloadProtectedItemExtendedInfo DeserializeAzureVmWorkloadProtectedItemExtendedInfo(JsonElement element) + internal static VmWorkloadProtectedItemExtendedInfo DeserializeVmWorkloadProtectedItemExtendedInfo(JsonElement element) { Optional oldestRecoveryPoint = default; Optional oldestRecoveryPointInVault = default; @@ -126,7 +126,7 @@ internal static AzureVmWorkloadProtectedItemExtendedInfo DeserializeAzureVmWorkl continue; } } - return new AzureVmWorkloadProtectedItemExtendedInfo(Optional.ToNullable(oldestRecoveryPoint), Optional.ToNullable(oldestRecoveryPointInVault), Optional.ToNullable(oldestRecoveryPointInArchive), Optional.ToNullable(newestRecoveryPointInArchive), Optional.ToNullable(recoveryPointCount), policyState.Value, recoveryModel.Value); + return new VmWorkloadProtectedItemExtendedInfo(Optional.ToNullable(oldestRecoveryPoint), Optional.ToNullable(oldestRecoveryPointInVault), Optional.ToNullable(oldestRecoveryPointInArchive), Optional.ToNullable(newestRecoveryPointInArchive), Optional.ToNullable(recoveryPointCount), policyState.Value, recoveryModel.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadProtectedItemExtendedInfo.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectedItemExtendedInfo.cs similarity index 74% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadProtectedItemExtendedInfo.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectedItemExtendedInfo.cs index 73b7c80465445..57e3f7b2e89c8 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadProtectedItemExtendedInfo.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectedItemExtendedInfo.cs @@ -10,24 +10,24 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Additional information on Azure Workload for SQL specific backup item. - public partial class AzureVmWorkloadProtectedItemExtendedInfo + public partial class VmWorkloadProtectedItemExtendedInfo { - /// Initializes a new instance of AzureVmWorkloadProtectedItemExtendedInfo. - public AzureVmWorkloadProtectedItemExtendedInfo() + /// Initializes a new instance of VmWorkloadProtectedItemExtendedInfo. + public VmWorkloadProtectedItemExtendedInfo() { } - /// Initializes a new instance of AzureVmWorkloadProtectedItemExtendedInfo. - /// The oldest backup copy available for this backup item across all tiers. + /// Initializes a new instance of VmWorkloadProtectedItemExtendedInfo. + /// The oldest backup copy available for this backup item across all tiers. /// The oldest backup copy available for this backup item in vault tier. /// The oldest backup copy available for this backup item in archive tier. /// The latest backup copy available for this backup item in archive tier. /// Number of backup copies available for this backup item. /// Indicates consistency of policy object and policy applied to this backup item. /// Indicates consistency of policy object and policy applied to this backup item. - internal AzureVmWorkloadProtectedItemExtendedInfo(DateTimeOffset? oldestRecoveryPoint, DateTimeOffset? oldestRecoveryPointInVault, DateTimeOffset? oldestRecoveryPointInArchive, DateTimeOffset? newestRecoveryPointInArchive, int? recoveryPointCount, string policyState, string recoveryModel) + internal VmWorkloadProtectedItemExtendedInfo(DateTimeOffset? oldestRecoverOn, DateTimeOffset? oldestRecoveryPointInVault, DateTimeOffset? oldestRecoveryPointInArchive, DateTimeOffset? newestRecoveryPointInArchive, int? recoveryPointCount, string policyState, string recoveryModel) { - OldestRecoveryPoint = oldestRecoveryPoint; + OldestRecoverOn = oldestRecoverOn; OldestRecoveryPointInVault = oldestRecoveryPointInVault; OldestRecoveryPointInArchive = oldestRecoveryPointInArchive; NewestRecoveryPointInArchive = newestRecoveryPointInArchive; @@ -37,7 +37,7 @@ internal AzureVmWorkloadProtectedItemExtendedInfo(DateTimeOffset? oldestRecovery } /// The oldest backup copy available for this backup item across all tiers. - public DateTimeOffset? OldestRecoveryPoint { get; set; } + public DateTimeOffset? OldestRecoverOn { get; set; } /// The oldest backup copy available for this backup item in vault tier. public DateTimeOffset? OldestRecoveryPointInVault { get; set; } /// The oldest backup copy available for this backup item in archive tier. diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectedItemHealthStatus.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectedItemHealthStatus.cs new file mode 100644 index 0000000000000..0f4f4c6006469 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectedItemHealthStatus.cs @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Models +{ + /// Health status of the backup item, evaluated based on last heartbeat received. + public readonly partial struct VmWorkloadProtectedItemHealthStatus : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public VmWorkloadProtectedItemHealthStatus(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string InvalidValue = "Invalid"; + private const string HealthyValue = "Healthy"; + private const string UnhealthyValue = "Unhealthy"; + private const string NotReachableValue = "NotReachable"; + private const string IRPendingValue = "IRPending"; + + /// Invalid. + public static VmWorkloadProtectedItemHealthStatus Invalid { get; } = new VmWorkloadProtectedItemHealthStatus(InvalidValue); + /// Healthy. + public static VmWorkloadProtectedItemHealthStatus Healthy { get; } = new VmWorkloadProtectedItemHealthStatus(HealthyValue); + /// Unhealthy. + public static VmWorkloadProtectedItemHealthStatus Unhealthy { get; } = new VmWorkloadProtectedItemHealthStatus(UnhealthyValue); + /// NotReachable. + public static VmWorkloadProtectedItemHealthStatus NotReachable { get; } = new VmWorkloadProtectedItemHealthStatus(NotReachableValue); + /// IRPending. + public static VmWorkloadProtectedItemHealthStatus IRPending { get; } = new VmWorkloadProtectedItemHealthStatus(IRPendingValue); + /// Determines if two values are the same. + public static bool operator ==(VmWorkloadProtectedItemHealthStatus left, VmWorkloadProtectedItemHealthStatus right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(VmWorkloadProtectedItemHealthStatus left, VmWorkloadProtectedItemHealthStatus right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator VmWorkloadProtectedItemHealthStatus(string value) => new VmWorkloadProtectedItemHealthStatus(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is VmWorkloadProtectedItemHealthStatus other && Equals(other); + /// + public bool Equals(VmWorkloadProtectedItemHealthStatus other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadProtectionPolicy.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectionPolicy.Serialization.cs similarity index 85% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadProtectionPolicy.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectionPolicy.Serialization.cs index a3ce05288aae0..6550e5be0caec 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadProtectionPolicy.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectionPolicy.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureVmWorkloadProtectionPolicy : IUtf8JsonSerializable + public partial class VmWorkloadProtectionPolicy : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -36,10 +36,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndArray(); } - if (Optional.IsDefined(MakePolicyConsistent)) + if (Optional.IsDefined(DoesMakePolicyConsistent)) { writer.WritePropertyName("makePolicyConsistent"u8); - writer.WriteBooleanValue(MakePolicyConsistent.Value); + writer.WriteBooleanValue(DoesMakePolicyConsistent.Value); } if (Optional.IsDefined(ProtectedItemsCount)) { @@ -61,10 +61,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureVmWorkloadProtectionPolicy DeserializeAzureVmWorkloadProtectionPolicy(JsonElement element) + internal static VmWorkloadProtectionPolicy DeserializeVmWorkloadProtectionPolicy(JsonElement element) { - Optional workLoadType = default; - Optional settings = default; + Optional workLoadType = default; + Optional settings = default; Optional> subProtectionPolicy = default; Optional makePolicyConsistent = default; Optional protectedItemsCount = default; @@ -79,7 +79,7 @@ internal static AzureVmWorkloadProtectionPolicy DeserializeAzureVmWorkloadProtec property.ThrowNonNullablePropertyIsNull(); continue; } - workLoadType = new WorkloadType(property.Value.GetString()); + workLoadType = new BackupWorkloadType(property.Value.GetString()); continue; } if (property.NameEquals("settings"u8)) @@ -89,7 +89,7 @@ internal static AzureVmWorkloadProtectionPolicy DeserializeAzureVmWorkloadProtec property.ThrowNonNullablePropertyIsNull(); continue; } - settings = Settings.DeserializeSettings(property.Value); + settings = BackupCommonSettings.DeserializeBackupCommonSettings(property.Value); continue; } if (property.NameEquals("subProtectionPolicy"u8)) @@ -148,7 +148,7 @@ internal static AzureVmWorkloadProtectionPolicy DeserializeAzureVmWorkloadProtec continue; } } - return new AzureVmWorkloadProtectionPolicy(Optional.ToNullable(protectedItemsCount), backupManagementType, Optional.ToList(resourceGuardOperationRequests), Optional.ToNullable(workLoadType), settings.Value, Optional.ToList(subProtectionPolicy), Optional.ToNullable(makePolicyConsistent)); + return new VmWorkloadProtectionPolicy(Optional.ToNullable(protectedItemsCount), backupManagementType, Optional.ToList(resourceGuardOperationRequests), Optional.ToNullable(workLoadType), settings.Value, Optional.ToList(subProtectionPolicy), Optional.ToNullable(makePolicyConsistent)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadProtectionPolicy.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectionPolicy.cs similarity index 63% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadProtectionPolicy.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectionPolicy.cs index cfee1268f0397..26e0fda700b5f 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadProtectionPolicy.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectionPolicy.cs @@ -11,39 +11,39 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Azure VM (Mercury) workload-specific backup policy. - public partial class AzureVmWorkloadProtectionPolicy : ProtectionPolicy + public partial class VmWorkloadProtectionPolicy : BackupGenericProtectionPolicy { - /// Initializes a new instance of AzureVmWorkloadProtectionPolicy. - public AzureVmWorkloadProtectionPolicy() + /// Initializes a new instance of VmWorkloadProtectionPolicy. + public VmWorkloadProtectionPolicy() { SubProtectionPolicy = new ChangeTrackingList(); BackupManagementType = "AzureWorkload"; } - /// Initializes a new instance of AzureVmWorkloadProtectionPolicy. + /// Initializes a new instance of VmWorkloadProtectionPolicy. /// Number of items associated with this policy. /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. /// ResourceGuard Operation Requests. /// Type of workload for the backup management. /// Common settings for the backup management. /// List of sub-protection policies which includes schedule and retention. - /// Fix the policy inconsistency. - internal AzureVmWorkloadProtectionPolicy(int? protectedItemsCount, string backupManagementType, IList resourceGuardOperationRequests, WorkloadType? workLoadType, Settings settings, IList subProtectionPolicy, bool? makePolicyConsistent) : base(protectedItemsCount, backupManagementType, resourceGuardOperationRequests) + /// Fix the policy inconsistency. + internal VmWorkloadProtectionPolicy(int? protectedItemsCount, string backupManagementType, IList resourceGuardOperationRequests, BackupWorkloadType? workLoadType, BackupCommonSettings settings, IList subProtectionPolicy, bool? doesMakePolicyConsistent) : base(protectedItemsCount, backupManagementType, resourceGuardOperationRequests) { WorkLoadType = workLoadType; Settings = settings; SubProtectionPolicy = subProtectionPolicy; - MakePolicyConsistent = makePolicyConsistent; + DoesMakePolicyConsistent = doesMakePolicyConsistent; BackupManagementType = backupManagementType ?? "AzureWorkload"; } /// Type of workload for the backup management. - public WorkloadType? WorkLoadType { get; set; } + public BackupWorkloadType? WorkLoadType { get; set; } /// Common settings for the backup management. - public Settings Settings { get; set; } + public BackupCommonSettings Settings { get; set; } /// List of sub-protection policies which includes schedule and retention. public IList SubProtectionPolicy { get; } /// Fix the policy inconsistency. - public bool? MakePolicyConsistent { get; set; } + public bool? DoesMakePolicyConsistent { get; set; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaDBInstanceProtectedItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapAseDatabaseProtectedItem.Serialization.cs similarity index 82% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaDBInstanceProtectedItem.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapAseDatabaseProtectedItem.Serialization.cs index 62ddb1c68775d..b96aad1954a28 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaDBInstanceProtectedItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapAseDatabaseProtectedItem.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureVmWorkloadSAPHanaDBInstanceProtectedItem : IUtf8JsonSerializable + public partial class VmWorkloadSapAseDatabaseProtectedItem : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -95,10 +95,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("policyId"u8); writer.WriteStringValue(PolicyId); } - if (Optional.IsDefined(LastRecoveryPoint)) + if (Optional.IsDefined(LastRecoverOn)) { writer.WritePropertyName("lastRecoveryPoint"u8); - writer.WriteStringValue(LastRecoveryPoint.Value, "O"); + writer.WriteStringValue(LastRecoverOn.Value, "O"); } if (Optional.IsDefined(BackupSetName)) { @@ -110,10 +110,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("createMode"u8); writer.WriteStringValue(CreateMode.Value.ToString()); } - if (Optional.IsDefined(DeferredDeleteTimeInUTC)) + if (Optional.IsDefined(DeferredDeletedOn)) { writer.WritePropertyName("deferredDeleteTimeInUTC"u8); - writer.WriteStringValue(DeferredDeleteTimeInUTC.Value, "O"); + writer.WriteStringValue(DeferredDeletedOn.Value, "O"); } if (Optional.IsDefined(IsScheduledForDeferredDelete)) { @@ -163,30 +163,30 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureVmWorkloadSAPHanaDBInstanceProtectedItem DeserializeAzureVmWorkloadSAPHanaDBInstanceProtectedItem(JsonElement element) + internal static VmWorkloadSapAseDatabaseProtectedItem DeserializeVmWorkloadSapAseDatabaseProtectedItem(JsonElement element) { Optional friendlyName = default; Optional serverName = default; Optional parentName = default; Optional parentType = default; Optional protectionStatus = default; - Optional protectionState = default; + Optional protectionState = default; Optional lastBackupStatus = default; Optional lastBackupTime = default; - Optional lastBackupErrorDetail = default; + Optional lastBackupErrorDetail = default; Optional protectedItemDataSourceId = default; - Optional protectedItemHealthStatus = default; - Optional extendedInfo = default; - Optional> kpisHealths = default; + Optional protectedItemHealthStatus = default; + Optional extendedInfo = default; + Optional> kpisHealths = default; string protectedItemType = default; Optional backupManagementType = default; - Optional workloadType = default; + Optional workloadType = default; Optional containerName = default; - Optional sourceResourceId = default; - Optional policyId = default; + Optional sourceResourceId = default; + Optional policyId = default; Optional lastRecoveryPoint = default; Optional backupSetName = default; - Optional createMode = default; + Optional createMode = default; Optional deferredDeleteTimeInUTC = default; Optional isScheduledForDeferredDelete = default; Optional deferredDeleteTimeRemaining = default; @@ -230,7 +230,7 @@ internal static AzureVmWorkloadSAPHanaDBInstanceProtectedItem DeserializeAzureVm property.ThrowNonNullablePropertyIsNull(); continue; } - protectionState = new ProtectionState(property.Value.GetString()); + protectionState = new BackupProtectionState(property.Value.GetString()); continue; } if (property.NameEquals("lastBackupStatus"u8)) @@ -260,7 +260,7 @@ internal static AzureVmWorkloadSAPHanaDBInstanceProtectedItem DeserializeAzureVm property.ThrowNonNullablePropertyIsNull(); continue; } - lastBackupErrorDetail = ErrorDetail.DeserializeErrorDetail(property.Value); + lastBackupErrorDetail = BackupErrorDetail.DeserializeBackupErrorDetail(property.Value); continue; } if (property.NameEquals("protectedItemDataSourceId"u8)) @@ -275,7 +275,7 @@ internal static AzureVmWorkloadSAPHanaDBInstanceProtectedItem DeserializeAzureVm property.ThrowNonNullablePropertyIsNull(); continue; } - protectedItemHealthStatus = new ProtectedItemHealthStatus(property.Value.GetString()); + protectedItemHealthStatus = new VmWorkloadProtectedItemHealthStatus(property.Value.GetString()); continue; } if (property.NameEquals("extendedInfo"u8)) @@ -285,7 +285,7 @@ internal static AzureVmWorkloadSAPHanaDBInstanceProtectedItem DeserializeAzureVm property.ThrowNonNullablePropertyIsNull(); continue; } - extendedInfo = AzureVmWorkloadProtectedItemExtendedInfo.DeserializeAzureVmWorkloadProtectedItemExtendedInfo(property.Value); + extendedInfo = VmWorkloadProtectedItemExtendedInfo.DeserializeVmWorkloadProtectedItemExtendedInfo(property.Value); continue; } if (property.NameEquals("kpisHealths"u8)) @@ -295,10 +295,10 @@ internal static AzureVmWorkloadSAPHanaDBInstanceProtectedItem DeserializeAzureVm property.ThrowNonNullablePropertyIsNull(); continue; } - Dictionary dictionary = new Dictionary(); + Dictionary dictionary = new Dictionary(); foreach (var property0 in property.Value.EnumerateObject()) { - dictionary.Add(property0.Name, KPIResourceHealthDetails.DeserializeKPIResourceHealthDetails(property0.Value)); + dictionary.Add(property0.Name, KpiResourceHealthDetails.DeserializeKpiResourceHealthDetails(property0.Value)); } kpisHealths = dictionary; continue; @@ -325,7 +325,7 @@ internal static AzureVmWorkloadSAPHanaDBInstanceProtectedItem DeserializeAzureVm property.ThrowNonNullablePropertyIsNull(); continue; } - workloadType = new DataSourceType(property.Value.GetString()); + workloadType = new BackupDataSourceType(property.Value.GetString()); continue; } if (property.NameEquals("containerName"u8)) @@ -335,12 +335,22 @@ internal static AzureVmWorkloadSAPHanaDBInstanceProtectedItem DeserializeAzureVm } if (property.NameEquals("sourceResourceId"u8)) { - sourceResourceId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + sourceResourceId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("policyId"u8)) { - policyId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + policyId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("lastRecoveryPoint"u8)) @@ -365,7 +375,7 @@ internal static AzureVmWorkloadSAPHanaDBInstanceProtectedItem DeserializeAzureVm property.ThrowNonNullablePropertyIsNull(); continue; } - createMode = new CreateMode(property.Value.GetString()); + createMode = new BackupCreateMode(property.Value.GetString()); continue; } if (property.NameEquals("deferredDeleteTimeInUTC"u8)) @@ -454,7 +464,7 @@ internal static AzureVmWorkloadSAPHanaDBInstanceProtectedItem DeserializeAzureVm continue; } } - return new AzureVmWorkloadSAPHanaDBInstanceProtectedItem(protectedItemType, Optional.ToNullable(backupManagementType), Optional.ToNullable(workloadType), containerName.Value, sourceResourceId.Value, policyId.Value, Optional.ToNullable(lastRecoveryPoint), backupSetName.Value, Optional.ToNullable(createMode), Optional.ToNullable(deferredDeleteTimeInUTC), Optional.ToNullable(isScheduledForDeferredDelete), deferredDeleteTimeRemaining.Value, Optional.ToNullable(isDeferredDeleteScheduleUpcoming), Optional.ToNullable(isRehydrate), Optional.ToList(resourceGuardOperationRequests), Optional.ToNullable(isArchiveEnabled), policyName.Value, Optional.ToNullable(softDeleteRetentionPeriod), friendlyName.Value, serverName.Value, parentName.Value, parentType.Value, protectionStatus.Value, Optional.ToNullable(protectionState), Optional.ToNullable(lastBackupStatus), Optional.ToNullable(lastBackupTime), lastBackupErrorDetail.Value, protectedItemDataSourceId.Value, Optional.ToNullable(protectedItemHealthStatus), extendedInfo.Value, Optional.ToDictionary(kpisHealths)); + return new VmWorkloadSapAseDatabaseProtectedItem(protectedItemType, Optional.ToNullable(backupManagementType), Optional.ToNullable(workloadType), containerName.Value, sourceResourceId.Value, policyId.Value, Optional.ToNullable(lastRecoveryPoint), backupSetName.Value, Optional.ToNullable(createMode), Optional.ToNullable(deferredDeleteTimeInUTC), Optional.ToNullable(isScheduledForDeferredDelete), deferredDeleteTimeRemaining.Value, Optional.ToNullable(isDeferredDeleteScheduleUpcoming), Optional.ToNullable(isRehydrate), Optional.ToList(resourceGuardOperationRequests), Optional.ToNullable(isArchiveEnabled), policyName.Value, Optional.ToNullable(softDeleteRetentionPeriod), friendlyName.Value, serverName.Value, parentName.Value, parentType.Value, protectionStatus.Value, Optional.ToNullable(protectionState), Optional.ToNullable(lastBackupStatus), Optional.ToNullable(lastBackupTime), lastBackupErrorDetail.Value, protectedItemDataSourceId.Value, Optional.ToNullable(protectedItemHealthStatus), extendedInfo.Value, Optional.ToDictionary(kpisHealths)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPAseDatabaseProtectedItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapAseDatabaseProtectedItem.cs similarity index 61% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPAseDatabaseProtectedItem.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapAseDatabaseProtectedItem.cs index fc68cc8d20c53..bf98a1636c3ae 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPAseDatabaseProtectedItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapAseDatabaseProtectedItem.cs @@ -7,29 +7,30 @@ using System; using System.Collections.Generic; +using Azure.Core; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Azure VM workload-specific protected item representing SAP ASE Database. - public partial class AzureVmWorkloadSAPAseDatabaseProtectedItem : AzureVmWorkloadProtectedItem + public partial class VmWorkloadSapAseDatabaseProtectedItem : VmWorkloadProtectedItem { - /// Initializes a new instance of AzureVmWorkloadSAPAseDatabaseProtectedItem. - public AzureVmWorkloadSAPAseDatabaseProtectedItem() + /// Initializes a new instance of VmWorkloadSapAseDatabaseProtectedItem. + public VmWorkloadSapAseDatabaseProtectedItem() { ProtectedItemType = "AzureVmWorkloadSAPAseDatabase"; } - /// Initializes a new instance of AzureVmWorkloadSAPAseDatabaseProtectedItem. + /// Initializes a new instance of VmWorkloadSapAseDatabaseProtectedItem. /// backup item type. /// Type of backup management for the backed up item. /// Type of workload this item represents. /// Unique name of container. /// ARM ID of the resource to be backed up. /// ID of the backup policy with which this item is backed up. - /// Timestamp when the last (latest) backup copy was created for this backup item. + /// Timestamp when the last (latest) backup copy was created for this backup item. /// Name of the backup set the backup item belongs to. /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. - /// Time for deferred deletion in UTC. + /// Time for deferred deletion in UTC. /// Flag to identify whether the DS is scheduled for deferred delete. /// Time remaining before the DS marked for deferred delete is permanently deleted. /// Flag to identify whether the deferred deleted DS is to be purged soon. @@ -51,7 +52,7 @@ public AzureVmWorkloadSAPAseDatabaseProtectedItem() /// Health status of the backup item, evaluated based on last heartbeat received. /// Additional information for this backup item. /// Health details of different KPIs. - internal AzureVmWorkloadSAPAseDatabaseProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, DataSourceType? workloadType, string containerName, string sourceResourceId, string policyId, DateTimeOffset? lastRecoveryPoint, string backupSetName, CreateMode? createMode, DateTimeOffset? deferredDeleteTimeInUTC, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriod, string friendlyName, string serverName, string parentName, string parentType, string protectionStatus, ProtectionState? protectionState, LastBackupStatus? lastBackupStatus, DateTimeOffset? lastBackupOn, ErrorDetail lastBackupErrorDetail, string protectedItemDataSourceId, ProtectedItemHealthStatus? protectedItemHealthStatus, AzureVmWorkloadProtectedItemExtendedInfo extendedInfo, IDictionary kpisHealths) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, deferredDeleteTimeInUTC, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriod, friendlyName, serverName, parentName, parentType, protectionStatus, protectionState, lastBackupStatus, lastBackupOn, lastBackupErrorDetail, protectedItemDataSourceId, protectedItemHealthStatus, extendedInfo, kpisHealths) + internal VmWorkloadSapAseDatabaseProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, ResourceIdentifier policyId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriod, string friendlyName, string serverName, string parentName, string parentType, string protectionStatus, BackupProtectionState? protectionState, LastBackupStatus? lastBackupStatus, DateTimeOffset? lastBackupOn, BackupErrorDetail lastBackupErrorDetail, string protectedItemDataSourceId, VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus, VmWorkloadProtectedItemExtendedInfo extendedInfo, IDictionary kpisHealths) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriod, friendlyName, serverName, parentName, parentType, protectionStatus, protectionState, lastBackupStatus, lastBackupOn, lastBackupErrorDetail, protectedItemDataSourceId, protectedItemHealthStatus, extendedInfo, kpisHealths) { ProtectedItemType = protectedItemType ?? "AzureVmWorkloadSAPAseDatabase"; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPAseSystemWorkloadItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapAseDatabaseWorkloadItem.Serialization.cs similarity index 86% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPAseSystemWorkloadItem.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapAseDatabaseWorkloadItem.Serialization.cs index 3d0049edd8420..2b0fe491a0fa2 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPAseSystemWorkloadItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapAseDatabaseWorkloadItem.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureVmWorkloadSAPAseSystemWorkloadItem : IUtf8JsonSerializable + public partial class VmWorkloadSapAseDatabaseWorkloadItem : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -30,10 +30,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("isAutoProtectable"u8); writer.WriteBooleanValue(IsAutoProtectable.Value); } - if (Optional.IsDefined(Subinquireditemcount)) + if (Optional.IsDefined(SubInquiredItemCount)) { writer.WritePropertyName("subinquireditemcount"u8); - writer.WriteNumberValue(Subinquireditemcount.Value); + writer.WriteNumberValue(SubInquiredItemCount.Value); } if (Optional.IsDefined(SubWorkloadItemCount)) { @@ -65,7 +65,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureVmWorkloadSAPAseSystemWorkloadItem DeserializeAzureVmWorkloadSAPAseSystemWorkloadItem(JsonElement element) + internal static VmWorkloadSapAseDatabaseWorkloadItem DeserializeVmWorkloadSapAseDatabaseWorkloadItem(JsonElement element) { Optional parentName = default; Optional serverName = default; @@ -76,7 +76,7 @@ internal static AzureVmWorkloadSAPAseSystemWorkloadItem DeserializeAzureVmWorklo Optional workloadType = default; string workloadItemType = default; Optional friendlyName = default; - Optional protectionState = default; + Optional protectionState = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("parentName"u8)) @@ -146,11 +146,11 @@ internal static AzureVmWorkloadSAPAseSystemWorkloadItem DeserializeAzureVmWorklo property.ThrowNonNullablePropertyIsNull(); continue; } - protectionState = new ProtectionStatus(property.Value.GetString()); + protectionState = new BackupProtectionStatus(property.Value.GetString()); continue; } } - return new AzureVmWorkloadSAPAseSystemWorkloadItem(backupManagementType.Value, workloadType.Value, workloadItemType, friendlyName.Value, Optional.ToNullable(protectionState), parentName.Value, serverName.Value, Optional.ToNullable(isAutoProtectable), Optional.ToNullable(subinquireditemcount), Optional.ToNullable(subWorkloadItemCount)); + return new VmWorkloadSapAseDatabaseWorkloadItem(backupManagementType.Value, workloadType.Value, workloadItemType, friendlyName.Value, Optional.ToNullable(protectionState), parentName.Value, serverName.Value, Optional.ToNullable(isAutoProtectable), Optional.ToNullable(subinquireditemcount), Optional.ToNullable(subWorkloadItemCount)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPAseDatabaseWorkloadItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapAseDatabaseWorkloadItem.cs similarity index 59% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPAseDatabaseWorkloadItem.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapAseDatabaseWorkloadItem.cs index 861d5a636e5ae..7e8feec94dbed 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPAseDatabaseWorkloadItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapAseDatabaseWorkloadItem.cs @@ -8,15 +8,15 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Azure VM workload-specific workload item representing SAP ASE Database. - public partial class AzureVmWorkloadSAPAseDatabaseWorkloadItem : AzureVmWorkloadItem + public partial class VmWorkloadSapAseDatabaseWorkloadItem : VmWorkloadItem { - /// Initializes a new instance of AzureVmWorkloadSAPAseDatabaseWorkloadItem. - public AzureVmWorkloadSAPAseDatabaseWorkloadItem() + /// Initializes a new instance of VmWorkloadSapAseDatabaseWorkloadItem. + public VmWorkloadSapAseDatabaseWorkloadItem() { WorkloadItemType = "SAPAseDatabase"; } - /// Initializes a new instance of AzureVmWorkloadSAPAseDatabaseWorkloadItem. + /// Initializes a new instance of VmWorkloadSapAseDatabaseWorkloadItem. /// Type of backup management to backup an item. /// Type of workload for the backup management. /// Type of the backup item. @@ -25,9 +25,9 @@ public AzureVmWorkloadSAPAseDatabaseWorkloadItem() /// Name for instance or AG. /// Host/Cluster Name for instance or AG. /// Indicates if workload item is auto-protectable. - /// For instance or AG, indicates number of DB's present. + /// For instance or AG, indicates number of DB's present. /// For instance or AG, indicates number of DB's to be protected. - internal AzureVmWorkloadSAPAseDatabaseWorkloadItem(string backupManagementType, string workloadType, string workloadItemType, string friendlyName, ProtectionStatus? protectionState, string parentName, string serverName, bool? isAutoProtectable, int? subinquireditemcount, int? subWorkloadItemCount) : base(backupManagementType, workloadType, workloadItemType, friendlyName, protectionState, parentName, serverName, isAutoProtectable, subinquireditemcount, subWorkloadItemCount) + internal VmWorkloadSapAseDatabaseWorkloadItem(string backupManagementType, string workloadType, string workloadItemType, string friendlyName, BackupProtectionStatus? protectionState, string parentName, string serverName, bool? isAutoProtectable, int? subInquiredItemCount, int? subWorkloadItemCount) : base(backupManagementType, workloadType, workloadItemType, friendlyName, protectionState, parentName, serverName, isAutoProtectable, subInquiredItemCount, subWorkloadItemCount) { WorkloadItemType = workloadItemType ?? "SAPAseDatabase"; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSQLDatabaseProtectableItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapAseSystemProtectableItem.Serialization.cs similarity index 85% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSQLDatabaseProtectableItem.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapAseSystemProtectableItem.Serialization.cs index 741316c1eb085..ad9374bce9256 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSQLDatabaseProtectableItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapAseSystemProtectableItem.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureVmWorkloadSQLDatabaseProtectableItem : IUtf8JsonSerializable + public partial class VmWorkloadSapAseSystemProtectableItem : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -40,20 +40,20 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("isAutoProtected"u8); writer.WriteBooleanValue(IsAutoProtected.Value); } - if (Optional.IsDefined(Subinquireditemcount)) + if (Optional.IsDefined(SubInquiredItemCount)) { writer.WritePropertyName("subinquireditemcount"u8); - writer.WriteNumberValue(Subinquireditemcount.Value); + writer.WriteNumberValue(SubInquiredItemCount.Value); } - if (Optional.IsDefined(Subprotectableitemcount)) + if (Optional.IsDefined(SubProtectableItemCount)) { writer.WritePropertyName("subprotectableitemcount"u8); - writer.WriteNumberValue(Subprotectableitemcount.Value); + writer.WriteNumberValue(SubProtectableItemCount.Value); } - if (Optional.IsDefined(Prebackupvalidation)) + if (Optional.IsDefined(PreBackupValidation)) { writer.WritePropertyName("prebackupvalidation"u8); - writer.WriteObjectValue(Prebackupvalidation); + writer.WriteObjectValue(PreBackupValidation); } if (Optional.IsDefined(BackupManagementType)) { @@ -80,7 +80,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureVmWorkloadSQLDatabaseProtectableItem DeserializeAzureVmWorkloadSQLDatabaseProtectableItem(JsonElement element) + internal static VmWorkloadSapAseSystemProtectableItem DeserializeVmWorkloadSapAseSystemProtectableItem(JsonElement element) { Optional parentName = default; Optional parentUniqueName = default; @@ -94,7 +94,7 @@ internal static AzureVmWorkloadSQLDatabaseProtectableItem DeserializeAzureVmWork Optional workloadType = default; string protectableItemType = default; Optional friendlyName = default; - Optional protectionState = default; + Optional protectionState = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("parentName"u8)) @@ -189,11 +189,11 @@ internal static AzureVmWorkloadSQLDatabaseProtectableItem DeserializeAzureVmWork property.ThrowNonNullablePropertyIsNull(); continue; } - protectionState = new ProtectionStatus(property.Value.GetString()); + protectionState = new BackupProtectionStatus(property.Value.GetString()); continue; } } - return new AzureVmWorkloadSQLDatabaseProtectableItem(backupManagementType.Value, workloadType.Value, protectableItemType, friendlyName.Value, Optional.ToNullable(protectionState), parentName.Value, parentUniqueName.Value, serverName.Value, Optional.ToNullable(isAutoProtectable), Optional.ToNullable(isAutoProtected), Optional.ToNullable(subinquireditemcount), Optional.ToNullable(subprotectableitemcount), prebackupvalidation.Value); + return new VmWorkloadSapAseSystemProtectableItem(backupManagementType.Value, workloadType.Value, protectableItemType, friendlyName.Value, Optional.ToNullable(protectionState), parentName.Value, parentUniqueName.Value, serverName.Value, Optional.ToNullable(isAutoProtectable), Optional.ToNullable(isAutoProtected), Optional.ToNullable(subinquireditemcount), Optional.ToNullable(subprotectableitemcount), prebackupvalidation.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaSystemProtectableItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapAseSystemProtectableItem.cs similarity index 59% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaSystemProtectableItem.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapAseSystemProtectableItem.cs index 1fbc537c80219..66880557eb31b 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaSystemProtectableItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapAseSystemProtectableItem.cs @@ -7,16 +7,16 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - /// Azure VM workload-specific protectable item representing SAP HANA System. - public partial class AzureVmWorkloadSAPHanaSystemProtectableItem : AzureVmWorkloadProtectableItem + /// Azure VM workload-specific protectable item representing SAP ASE System. + public partial class VmWorkloadSapAseSystemProtectableItem : VmWorkloadProtectableItem { - /// Initializes a new instance of AzureVmWorkloadSAPHanaSystemProtectableItem. - public AzureVmWorkloadSAPHanaSystemProtectableItem() + /// Initializes a new instance of VmWorkloadSapAseSystemProtectableItem. + public VmWorkloadSapAseSystemProtectableItem() { - ProtectableItemType = "SAPHanaSystem"; + ProtectableItemType = "SAPAseSystem"; } - /// Initializes a new instance of AzureVmWorkloadSAPHanaSystemProtectableItem. + /// Initializes a new instance of VmWorkloadSapAseSystemProtectableItem. /// Type of backup management to backup an item. /// Type of workload for the backup management. /// Type of the backup item. @@ -30,12 +30,12 @@ public AzureVmWorkloadSAPHanaSystemProtectableItem() /// Host/Cluster Name for instance or AG. /// Indicates if protectable item is auto-protectable. /// Indicates if protectable item is auto-protected. - /// For instance or AG, indicates number of DB's present. - /// For instance or AG, indicates number of DB's to be protected. - /// Pre-backup validation for protectable objects. - internal AzureVmWorkloadSAPHanaSystemProtectableItem(string backupManagementType, string workloadType, string protectableItemType, string friendlyName, ProtectionStatus? protectionState, string parentName, string parentUniqueName, string serverName, bool? isAutoProtectable, bool? isAutoProtected, int? subinquireditemcount, int? subprotectableitemcount, PreBackupValidation prebackupvalidation) : base(backupManagementType, workloadType, protectableItemType, friendlyName, protectionState, parentName, parentUniqueName, serverName, isAutoProtectable, isAutoProtected, subinquireditemcount, subprotectableitemcount, prebackupvalidation) + /// For instance or AG, indicates number of DB's present. + /// For instance or AG, indicates number of DB's to be protected. + /// Pre-backup validation for protectable objects. + internal VmWorkloadSapAseSystemProtectableItem(string backupManagementType, string workloadType, string protectableItemType, string friendlyName, BackupProtectionStatus? protectionState, string parentName, string parentUniqueName, string serverName, bool? isAutoProtectable, bool? isAutoProtected, int? subInquiredItemCount, int? subProtectableItemCount, PreBackupValidation preBackupValidation) : base(backupManagementType, workloadType, protectableItemType, friendlyName, protectionState, parentName, parentUniqueName, serverName, isAutoProtectable, isAutoProtected, subInquiredItemCount, subProtectableItemCount, preBackupValidation) { - ProtectableItemType = protectableItemType ?? "SAPHanaSystem"; + ProtectableItemType = protectableItemType ?? "SAPAseSystem"; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSQLDatabaseWorkloadItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapAseSystemWorkloadItem.Serialization.cs similarity index 86% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSQLDatabaseWorkloadItem.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapAseSystemWorkloadItem.Serialization.cs index 11c95f19b0db1..020579bab61ff 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSQLDatabaseWorkloadItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapAseSystemWorkloadItem.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureVmWorkloadSQLDatabaseWorkloadItem : IUtf8JsonSerializable + public partial class VmWorkloadSapAseSystemWorkloadItem : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -30,10 +30,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("isAutoProtectable"u8); writer.WriteBooleanValue(IsAutoProtectable.Value); } - if (Optional.IsDefined(Subinquireditemcount)) + if (Optional.IsDefined(SubInquiredItemCount)) { writer.WritePropertyName("subinquireditemcount"u8); - writer.WriteNumberValue(Subinquireditemcount.Value); + writer.WriteNumberValue(SubInquiredItemCount.Value); } if (Optional.IsDefined(SubWorkloadItemCount)) { @@ -65,7 +65,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureVmWorkloadSQLDatabaseWorkloadItem DeserializeAzureVmWorkloadSQLDatabaseWorkloadItem(JsonElement element) + internal static VmWorkloadSapAseSystemWorkloadItem DeserializeVmWorkloadSapAseSystemWorkloadItem(JsonElement element) { Optional parentName = default; Optional serverName = default; @@ -76,7 +76,7 @@ internal static AzureVmWorkloadSQLDatabaseWorkloadItem DeserializeAzureVmWorkloa Optional workloadType = default; string workloadItemType = default; Optional friendlyName = default; - Optional protectionState = default; + Optional protectionState = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("parentName"u8)) @@ -146,11 +146,11 @@ internal static AzureVmWorkloadSQLDatabaseWorkloadItem DeserializeAzureVmWorkloa property.ThrowNonNullablePropertyIsNull(); continue; } - protectionState = new ProtectionStatus(property.Value.GetString()); + protectionState = new BackupProtectionStatus(property.Value.GetString()); continue; } } - return new AzureVmWorkloadSQLDatabaseWorkloadItem(backupManagementType.Value, workloadType.Value, workloadItemType, friendlyName.Value, Optional.ToNullable(protectionState), parentName.Value, serverName.Value, Optional.ToNullable(isAutoProtectable), Optional.ToNullable(subinquireditemcount), Optional.ToNullable(subWorkloadItemCount)); + return new VmWorkloadSapAseSystemWorkloadItem(backupManagementType.Value, workloadType.Value, workloadItemType, friendlyName.Value, Optional.ToNullable(protectionState), parentName.Value, serverName.Value, Optional.ToNullable(isAutoProtectable), Optional.ToNullable(subinquireditemcount), Optional.ToNullable(subWorkloadItemCount)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPAseSystemWorkloadItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapAseSystemWorkloadItem.cs similarity index 59% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPAseSystemWorkloadItem.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapAseSystemWorkloadItem.cs index 8c9087ab84553..22b0f64ccf15a 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPAseSystemWorkloadItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapAseSystemWorkloadItem.cs @@ -8,15 +8,15 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Azure VM workload-specific workload item representing SAP ASE System. - public partial class AzureVmWorkloadSAPAseSystemWorkloadItem : AzureVmWorkloadItem + public partial class VmWorkloadSapAseSystemWorkloadItem : VmWorkloadItem { - /// Initializes a new instance of AzureVmWorkloadSAPAseSystemWorkloadItem. - public AzureVmWorkloadSAPAseSystemWorkloadItem() + /// Initializes a new instance of VmWorkloadSapAseSystemWorkloadItem. + public VmWorkloadSapAseSystemWorkloadItem() { WorkloadItemType = "SAPAseSystem"; } - /// Initializes a new instance of AzureVmWorkloadSAPAseSystemWorkloadItem. + /// Initializes a new instance of VmWorkloadSapAseSystemWorkloadItem. /// Type of backup management to backup an item. /// Type of workload for the backup management. /// Type of the backup item. @@ -25,9 +25,9 @@ public AzureVmWorkloadSAPAseSystemWorkloadItem() /// Name for instance or AG. /// Host/Cluster Name for instance or AG. /// Indicates if workload item is auto-protectable. - /// For instance or AG, indicates number of DB's present. + /// For instance or AG, indicates number of DB's present. /// For instance or AG, indicates number of DB's to be protected. - internal AzureVmWorkloadSAPAseSystemWorkloadItem(string backupManagementType, string workloadType, string workloadItemType, string friendlyName, ProtectionStatus? protectionState, string parentName, string serverName, bool? isAutoProtectable, int? subinquireditemcount, int? subWorkloadItemCount) : base(backupManagementType, workloadType, workloadItemType, friendlyName, protectionState, parentName, serverName, isAutoProtectable, subinquireditemcount, subWorkloadItemCount) + internal VmWorkloadSapAseSystemWorkloadItem(string backupManagementType, string workloadType, string workloadItemType, string friendlyName, BackupProtectionStatus? protectionState, string parentName, string serverName, bool? isAutoProtectable, int? subInquiredItemCount, int? subWorkloadItemCount) : base(backupManagementType, workloadType, workloadItemType, friendlyName, protectionState, parentName, serverName, isAutoProtectable, subInquiredItemCount, subWorkloadItemCount) { WorkloadItemType = workloadItemType ?? "SAPAseSystem"; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaDBInstance.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDBInstance.Serialization.cs similarity index 86% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaDBInstance.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDBInstance.Serialization.cs index 0c8994f446134..52c47f76c52fe 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaDBInstance.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDBInstance.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureVmWorkloadSAPHanaDBInstance : IUtf8JsonSerializable + public partial class VmWorkloadSapHanaDBInstance : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -40,20 +40,20 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("isAutoProtected"u8); writer.WriteBooleanValue(IsAutoProtected.Value); } - if (Optional.IsDefined(Subinquireditemcount)) + if (Optional.IsDefined(SubInquiredItemCount)) { writer.WritePropertyName("subinquireditemcount"u8); - writer.WriteNumberValue(Subinquireditemcount.Value); + writer.WriteNumberValue(SubInquiredItemCount.Value); } - if (Optional.IsDefined(Subprotectableitemcount)) + if (Optional.IsDefined(SubProtectableItemCount)) { writer.WritePropertyName("subprotectableitemcount"u8); - writer.WriteNumberValue(Subprotectableitemcount.Value); + writer.WriteNumberValue(SubProtectableItemCount.Value); } - if (Optional.IsDefined(Prebackupvalidation)) + if (Optional.IsDefined(PreBackupValidation)) { writer.WritePropertyName("prebackupvalidation"u8); - writer.WriteObjectValue(Prebackupvalidation); + writer.WriteObjectValue(PreBackupValidation); } if (Optional.IsDefined(BackupManagementType)) { @@ -80,7 +80,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureVmWorkloadSAPHanaDBInstance DeserializeAzureVmWorkloadSAPHanaDBInstance(JsonElement element) + internal static VmWorkloadSapHanaDBInstance DeserializeVmWorkloadSapHanaDBInstance(JsonElement element) { Optional parentName = default; Optional parentUniqueName = default; @@ -94,7 +94,7 @@ internal static AzureVmWorkloadSAPHanaDBInstance DeserializeAzureVmWorkloadSAPHa Optional workloadType = default; string protectableItemType = default; Optional friendlyName = default; - Optional protectionState = default; + Optional protectionState = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("parentName"u8)) @@ -189,11 +189,11 @@ internal static AzureVmWorkloadSAPHanaDBInstance DeserializeAzureVmWorkloadSAPHa property.ThrowNonNullablePropertyIsNull(); continue; } - protectionState = new ProtectionStatus(property.Value.GetString()); + protectionState = new BackupProtectionStatus(property.Value.GetString()); continue; } } - return new AzureVmWorkloadSAPHanaDBInstance(backupManagementType.Value, workloadType.Value, protectableItemType, friendlyName.Value, Optional.ToNullable(protectionState), parentName.Value, parentUniqueName.Value, serverName.Value, Optional.ToNullable(isAutoProtectable), Optional.ToNullable(isAutoProtected), Optional.ToNullable(subinquireditemcount), Optional.ToNullable(subprotectableitemcount), prebackupvalidation.Value); + return new VmWorkloadSapHanaDBInstance(backupManagementType.Value, workloadType.Value, protectableItemType, friendlyName.Value, Optional.ToNullable(protectionState), parentName.Value, parentUniqueName.Value, serverName.Value, Optional.ToNullable(isAutoProtectable), Optional.ToNullable(isAutoProtected), Optional.ToNullable(subinquireditemcount), Optional.ToNullable(subprotectableitemcount), prebackupvalidation.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaDBInstance.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDBInstance.cs similarity index 59% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaDBInstance.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDBInstance.cs index f5565c935cc35..df3bb7535be08 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaDBInstance.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDBInstance.cs @@ -8,15 +8,15 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Azure VM workload-specific protectable item representing SAP HANA Dbinstance. - public partial class AzureVmWorkloadSAPHanaDBInstance : AzureVmWorkloadProtectableItem + public partial class VmWorkloadSapHanaDBInstance : VmWorkloadProtectableItem { - /// Initializes a new instance of AzureVmWorkloadSAPHanaDBInstance. - public AzureVmWorkloadSAPHanaDBInstance() + /// Initializes a new instance of VmWorkloadSapHanaDBInstance. + public VmWorkloadSapHanaDBInstance() { ProtectableItemType = "SAPHanaDBInstance"; } - /// Initializes a new instance of AzureVmWorkloadSAPHanaDBInstance. + /// Initializes a new instance of VmWorkloadSapHanaDBInstance. /// Type of backup management to backup an item. /// Type of workload for the backup management. /// Type of the backup item. @@ -30,10 +30,10 @@ public AzureVmWorkloadSAPHanaDBInstance() /// Host/Cluster Name for instance or AG. /// Indicates if protectable item is auto-protectable. /// Indicates if protectable item is auto-protected. - /// For instance or AG, indicates number of DB's present. - /// For instance or AG, indicates number of DB's to be protected. - /// Pre-backup validation for protectable objects. - internal AzureVmWorkloadSAPHanaDBInstance(string backupManagementType, string workloadType, string protectableItemType, string friendlyName, ProtectionStatus? protectionState, string parentName, string parentUniqueName, string serverName, bool? isAutoProtectable, bool? isAutoProtected, int? subinquireditemcount, int? subprotectableitemcount, PreBackupValidation prebackupvalidation) : base(backupManagementType, workloadType, protectableItemType, friendlyName, protectionState, parentName, parentUniqueName, serverName, isAutoProtectable, isAutoProtected, subinquireditemcount, subprotectableitemcount, prebackupvalidation) + /// For instance or AG, indicates number of DB's present. + /// For instance or AG, indicates number of DB's to be protected. + /// Pre-backup validation for protectable objects. + internal VmWorkloadSapHanaDBInstance(string backupManagementType, string workloadType, string protectableItemType, string friendlyName, BackupProtectionStatus? protectionState, string parentName, string parentUniqueName, string serverName, bool? isAutoProtectable, bool? isAutoProtected, int? subInquiredItemCount, int? subProtectableItemCount, PreBackupValidation preBackupValidation) : base(backupManagementType, workloadType, protectableItemType, friendlyName, protectionState, parentName, parentUniqueName, serverName, isAutoProtectable, isAutoProtected, subInquiredItemCount, subProtectableItemCount, preBackupValidation) { ProtectableItemType = protectableItemType ?? "SAPHanaDBInstance"; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPAseDatabaseProtectedItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDBInstanceProtectedItem.Serialization.cs similarity index 82% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPAseDatabaseProtectedItem.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDBInstanceProtectedItem.Serialization.cs index 518067425cfc0..8c70858024443 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPAseDatabaseProtectedItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDBInstanceProtectedItem.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureVmWorkloadSAPAseDatabaseProtectedItem : IUtf8JsonSerializable + public partial class VmWorkloadSapHanaDBInstanceProtectedItem : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -95,10 +95,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("policyId"u8); writer.WriteStringValue(PolicyId); } - if (Optional.IsDefined(LastRecoveryPoint)) + if (Optional.IsDefined(LastRecoverOn)) { writer.WritePropertyName("lastRecoveryPoint"u8); - writer.WriteStringValue(LastRecoveryPoint.Value, "O"); + writer.WriteStringValue(LastRecoverOn.Value, "O"); } if (Optional.IsDefined(BackupSetName)) { @@ -110,10 +110,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("createMode"u8); writer.WriteStringValue(CreateMode.Value.ToString()); } - if (Optional.IsDefined(DeferredDeleteTimeInUTC)) + if (Optional.IsDefined(DeferredDeletedOn)) { writer.WritePropertyName("deferredDeleteTimeInUTC"u8); - writer.WriteStringValue(DeferredDeleteTimeInUTC.Value, "O"); + writer.WriteStringValue(DeferredDeletedOn.Value, "O"); } if (Optional.IsDefined(IsScheduledForDeferredDelete)) { @@ -163,30 +163,30 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureVmWorkloadSAPAseDatabaseProtectedItem DeserializeAzureVmWorkloadSAPAseDatabaseProtectedItem(JsonElement element) + internal static VmWorkloadSapHanaDBInstanceProtectedItem DeserializeVmWorkloadSapHanaDBInstanceProtectedItem(JsonElement element) { Optional friendlyName = default; Optional serverName = default; Optional parentName = default; Optional parentType = default; Optional protectionStatus = default; - Optional protectionState = default; + Optional protectionState = default; Optional lastBackupStatus = default; Optional lastBackupTime = default; - Optional lastBackupErrorDetail = default; + Optional lastBackupErrorDetail = default; Optional protectedItemDataSourceId = default; - Optional protectedItemHealthStatus = default; - Optional extendedInfo = default; - Optional> kpisHealths = default; + Optional protectedItemHealthStatus = default; + Optional extendedInfo = default; + Optional> kpisHealths = default; string protectedItemType = default; Optional backupManagementType = default; - Optional workloadType = default; + Optional workloadType = default; Optional containerName = default; - Optional sourceResourceId = default; - Optional policyId = default; + Optional sourceResourceId = default; + Optional policyId = default; Optional lastRecoveryPoint = default; Optional backupSetName = default; - Optional createMode = default; + Optional createMode = default; Optional deferredDeleteTimeInUTC = default; Optional isScheduledForDeferredDelete = default; Optional deferredDeleteTimeRemaining = default; @@ -230,7 +230,7 @@ internal static AzureVmWorkloadSAPAseDatabaseProtectedItem DeserializeAzureVmWor property.ThrowNonNullablePropertyIsNull(); continue; } - protectionState = new ProtectionState(property.Value.GetString()); + protectionState = new BackupProtectionState(property.Value.GetString()); continue; } if (property.NameEquals("lastBackupStatus"u8)) @@ -260,7 +260,7 @@ internal static AzureVmWorkloadSAPAseDatabaseProtectedItem DeserializeAzureVmWor property.ThrowNonNullablePropertyIsNull(); continue; } - lastBackupErrorDetail = ErrorDetail.DeserializeErrorDetail(property.Value); + lastBackupErrorDetail = BackupErrorDetail.DeserializeBackupErrorDetail(property.Value); continue; } if (property.NameEquals("protectedItemDataSourceId"u8)) @@ -275,7 +275,7 @@ internal static AzureVmWorkloadSAPAseDatabaseProtectedItem DeserializeAzureVmWor property.ThrowNonNullablePropertyIsNull(); continue; } - protectedItemHealthStatus = new ProtectedItemHealthStatus(property.Value.GetString()); + protectedItemHealthStatus = new VmWorkloadProtectedItemHealthStatus(property.Value.GetString()); continue; } if (property.NameEquals("extendedInfo"u8)) @@ -285,7 +285,7 @@ internal static AzureVmWorkloadSAPAseDatabaseProtectedItem DeserializeAzureVmWor property.ThrowNonNullablePropertyIsNull(); continue; } - extendedInfo = AzureVmWorkloadProtectedItemExtendedInfo.DeserializeAzureVmWorkloadProtectedItemExtendedInfo(property.Value); + extendedInfo = VmWorkloadProtectedItemExtendedInfo.DeserializeVmWorkloadProtectedItemExtendedInfo(property.Value); continue; } if (property.NameEquals("kpisHealths"u8)) @@ -295,10 +295,10 @@ internal static AzureVmWorkloadSAPAseDatabaseProtectedItem DeserializeAzureVmWor property.ThrowNonNullablePropertyIsNull(); continue; } - Dictionary dictionary = new Dictionary(); + Dictionary dictionary = new Dictionary(); foreach (var property0 in property.Value.EnumerateObject()) { - dictionary.Add(property0.Name, KPIResourceHealthDetails.DeserializeKPIResourceHealthDetails(property0.Value)); + dictionary.Add(property0.Name, KpiResourceHealthDetails.DeserializeKpiResourceHealthDetails(property0.Value)); } kpisHealths = dictionary; continue; @@ -325,7 +325,7 @@ internal static AzureVmWorkloadSAPAseDatabaseProtectedItem DeserializeAzureVmWor property.ThrowNonNullablePropertyIsNull(); continue; } - workloadType = new DataSourceType(property.Value.GetString()); + workloadType = new BackupDataSourceType(property.Value.GetString()); continue; } if (property.NameEquals("containerName"u8)) @@ -335,12 +335,22 @@ internal static AzureVmWorkloadSAPAseDatabaseProtectedItem DeserializeAzureVmWor } if (property.NameEquals("sourceResourceId"u8)) { - sourceResourceId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + sourceResourceId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("policyId"u8)) { - policyId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + policyId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("lastRecoveryPoint"u8)) @@ -365,7 +375,7 @@ internal static AzureVmWorkloadSAPAseDatabaseProtectedItem DeserializeAzureVmWor property.ThrowNonNullablePropertyIsNull(); continue; } - createMode = new CreateMode(property.Value.GetString()); + createMode = new BackupCreateMode(property.Value.GetString()); continue; } if (property.NameEquals("deferredDeleteTimeInUTC"u8)) @@ -454,7 +464,7 @@ internal static AzureVmWorkloadSAPAseDatabaseProtectedItem DeserializeAzureVmWor continue; } } - return new AzureVmWorkloadSAPAseDatabaseProtectedItem(protectedItemType, Optional.ToNullable(backupManagementType), Optional.ToNullable(workloadType), containerName.Value, sourceResourceId.Value, policyId.Value, Optional.ToNullable(lastRecoveryPoint), backupSetName.Value, Optional.ToNullable(createMode), Optional.ToNullable(deferredDeleteTimeInUTC), Optional.ToNullable(isScheduledForDeferredDelete), deferredDeleteTimeRemaining.Value, Optional.ToNullable(isDeferredDeleteScheduleUpcoming), Optional.ToNullable(isRehydrate), Optional.ToList(resourceGuardOperationRequests), Optional.ToNullable(isArchiveEnabled), policyName.Value, Optional.ToNullable(softDeleteRetentionPeriod), friendlyName.Value, serverName.Value, parentName.Value, parentType.Value, protectionStatus.Value, Optional.ToNullable(protectionState), Optional.ToNullable(lastBackupStatus), Optional.ToNullable(lastBackupTime), lastBackupErrorDetail.Value, protectedItemDataSourceId.Value, Optional.ToNullable(protectedItemHealthStatus), extendedInfo.Value, Optional.ToDictionary(kpisHealths)); + return new VmWorkloadSapHanaDBInstanceProtectedItem(protectedItemType, Optional.ToNullable(backupManagementType), Optional.ToNullable(workloadType), containerName.Value, sourceResourceId.Value, policyId.Value, Optional.ToNullable(lastRecoveryPoint), backupSetName.Value, Optional.ToNullable(createMode), Optional.ToNullable(deferredDeleteTimeInUTC), Optional.ToNullable(isScheduledForDeferredDelete), deferredDeleteTimeRemaining.Value, Optional.ToNullable(isDeferredDeleteScheduleUpcoming), Optional.ToNullable(isRehydrate), Optional.ToList(resourceGuardOperationRequests), Optional.ToNullable(isArchiveEnabled), policyName.Value, Optional.ToNullable(softDeleteRetentionPeriod), friendlyName.Value, serverName.Value, parentName.Value, parentType.Value, protectionStatus.Value, Optional.ToNullable(protectionState), Optional.ToNullable(lastBackupStatus), Optional.ToNullable(lastBackupTime), lastBackupErrorDetail.Value, protectedItemDataSourceId.Value, Optional.ToNullable(protectedItemHealthStatus), extendedInfo.Value, Optional.ToDictionary(kpisHealths)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaDBInstanceProtectedItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDBInstanceProtectedItem.cs similarity index 61% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaDBInstanceProtectedItem.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDBInstanceProtectedItem.cs index c83d06e1e72b2..466153c2a0c84 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaDBInstanceProtectedItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDBInstanceProtectedItem.cs @@ -7,29 +7,30 @@ using System; using System.Collections.Generic; +using Azure.Core; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Azure VM workload-specific protected item representing SAP HANA DBInstance. - public partial class AzureVmWorkloadSAPHanaDBInstanceProtectedItem : AzureVmWorkloadProtectedItem + public partial class VmWorkloadSapHanaDBInstanceProtectedItem : VmWorkloadProtectedItem { - /// Initializes a new instance of AzureVmWorkloadSAPHanaDBInstanceProtectedItem. - public AzureVmWorkloadSAPHanaDBInstanceProtectedItem() + /// Initializes a new instance of VmWorkloadSapHanaDBInstanceProtectedItem. + public VmWorkloadSapHanaDBInstanceProtectedItem() { ProtectedItemType = "AzureVmWorkloadSAPHanaDBInstance"; } - /// Initializes a new instance of AzureVmWorkloadSAPHanaDBInstanceProtectedItem. + /// Initializes a new instance of VmWorkloadSapHanaDBInstanceProtectedItem. /// backup item type. /// Type of backup management for the backed up item. /// Type of workload this item represents. /// Unique name of container. /// ARM ID of the resource to be backed up. /// ID of the backup policy with which this item is backed up. - /// Timestamp when the last (latest) backup copy was created for this backup item. + /// Timestamp when the last (latest) backup copy was created for this backup item. /// Name of the backup set the backup item belongs to. /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. - /// Time for deferred deletion in UTC. + /// Time for deferred deletion in UTC. /// Flag to identify whether the DS is scheduled for deferred delete. /// Time remaining before the DS marked for deferred delete is permanently deleted. /// Flag to identify whether the deferred deleted DS is to be purged soon. @@ -51,7 +52,7 @@ public AzureVmWorkloadSAPHanaDBInstanceProtectedItem() /// Health status of the backup item, evaluated based on last heartbeat received. /// Additional information for this backup item. /// Health details of different KPIs. - internal AzureVmWorkloadSAPHanaDBInstanceProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, DataSourceType? workloadType, string containerName, string sourceResourceId, string policyId, DateTimeOffset? lastRecoveryPoint, string backupSetName, CreateMode? createMode, DateTimeOffset? deferredDeleteTimeInUTC, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriod, string friendlyName, string serverName, string parentName, string parentType, string protectionStatus, ProtectionState? protectionState, LastBackupStatus? lastBackupStatus, DateTimeOffset? lastBackupOn, ErrorDetail lastBackupErrorDetail, string protectedItemDataSourceId, ProtectedItemHealthStatus? protectedItemHealthStatus, AzureVmWorkloadProtectedItemExtendedInfo extendedInfo, IDictionary kpisHealths) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, deferredDeleteTimeInUTC, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriod, friendlyName, serverName, parentName, parentType, protectionStatus, protectionState, lastBackupStatus, lastBackupOn, lastBackupErrorDetail, protectedItemDataSourceId, protectedItemHealthStatus, extendedInfo, kpisHealths) + internal VmWorkloadSapHanaDBInstanceProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, ResourceIdentifier policyId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriod, string friendlyName, string serverName, string parentName, string parentType, string protectionStatus, BackupProtectionState? protectionState, LastBackupStatus? lastBackupStatus, DateTimeOffset? lastBackupOn, BackupErrorDetail lastBackupErrorDetail, string protectedItemDataSourceId, VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus, VmWorkloadProtectedItemExtendedInfo extendedInfo, IDictionary kpisHealths) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriod, friendlyName, serverName, parentName, parentType, protectionStatus, protectionState, lastBackupStatus, lastBackupOn, lastBackupErrorDetail, protectedItemDataSourceId, protectedItemHealthStatus, extendedInfo, kpisHealths) { ProtectedItemType = protectedItemType ?? "AzureVmWorkloadSAPHanaDBInstance"; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaSystemProtectableItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDatabaseProtectableItem.Serialization.cs similarity index 85% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaSystemProtectableItem.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDatabaseProtectableItem.Serialization.cs index d7a5987084bb1..27c673e7b0b85 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaSystemProtectableItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDatabaseProtectableItem.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureVmWorkloadSAPHanaSystemProtectableItem : IUtf8JsonSerializable + public partial class VmWorkloadSapHanaDatabaseProtectableItem : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -40,20 +40,20 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("isAutoProtected"u8); writer.WriteBooleanValue(IsAutoProtected.Value); } - if (Optional.IsDefined(Subinquireditemcount)) + if (Optional.IsDefined(SubInquiredItemCount)) { writer.WritePropertyName("subinquireditemcount"u8); - writer.WriteNumberValue(Subinquireditemcount.Value); + writer.WriteNumberValue(SubInquiredItemCount.Value); } - if (Optional.IsDefined(Subprotectableitemcount)) + if (Optional.IsDefined(SubProtectableItemCount)) { writer.WritePropertyName("subprotectableitemcount"u8); - writer.WriteNumberValue(Subprotectableitemcount.Value); + writer.WriteNumberValue(SubProtectableItemCount.Value); } - if (Optional.IsDefined(Prebackupvalidation)) + if (Optional.IsDefined(PreBackupValidation)) { writer.WritePropertyName("prebackupvalidation"u8); - writer.WriteObjectValue(Prebackupvalidation); + writer.WriteObjectValue(PreBackupValidation); } if (Optional.IsDefined(BackupManagementType)) { @@ -80,7 +80,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureVmWorkloadSAPHanaSystemProtectableItem DeserializeAzureVmWorkloadSAPHanaSystemProtectableItem(JsonElement element) + internal static VmWorkloadSapHanaDatabaseProtectableItem DeserializeVmWorkloadSapHanaDatabaseProtectableItem(JsonElement element) { Optional parentName = default; Optional parentUniqueName = default; @@ -94,7 +94,7 @@ internal static AzureVmWorkloadSAPHanaSystemProtectableItem DeserializeAzureVmWo Optional workloadType = default; string protectableItemType = default; Optional friendlyName = default; - Optional protectionState = default; + Optional protectionState = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("parentName"u8)) @@ -189,11 +189,11 @@ internal static AzureVmWorkloadSAPHanaSystemProtectableItem DeserializeAzureVmWo property.ThrowNonNullablePropertyIsNull(); continue; } - protectionState = new ProtectionStatus(property.Value.GetString()); + protectionState = new BackupProtectionStatus(property.Value.GetString()); continue; } } - return new AzureVmWorkloadSAPHanaSystemProtectableItem(backupManagementType.Value, workloadType.Value, protectableItemType, friendlyName.Value, Optional.ToNullable(protectionState), parentName.Value, parentUniqueName.Value, serverName.Value, Optional.ToNullable(isAutoProtectable), Optional.ToNullable(isAutoProtected), Optional.ToNullable(subinquireditemcount), Optional.ToNullable(subprotectableitemcount), prebackupvalidation.Value); + return new VmWorkloadSapHanaDatabaseProtectableItem(backupManagementType.Value, workloadType.Value, protectableItemType, friendlyName.Value, Optional.ToNullable(protectionState), parentName.Value, parentUniqueName.Value, serverName.Value, Optional.ToNullable(isAutoProtectable), Optional.ToNullable(isAutoProtected), Optional.ToNullable(subinquireditemcount), Optional.ToNullable(subprotectableitemcount), prebackupvalidation.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaDatabaseProtectableItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDatabaseProtectableItem.cs similarity index 58% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaDatabaseProtectableItem.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDatabaseProtectableItem.cs index 44b3923f11f43..cb85aea5a6e77 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaDatabaseProtectableItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDatabaseProtectableItem.cs @@ -8,15 +8,15 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Azure VM workload-specific protectable item representing SAP HANA Database. - public partial class AzureVmWorkloadSAPHanaDatabaseProtectableItem : AzureVmWorkloadProtectableItem + public partial class VmWorkloadSapHanaDatabaseProtectableItem : VmWorkloadProtectableItem { - /// Initializes a new instance of AzureVmWorkloadSAPHanaDatabaseProtectableItem. - public AzureVmWorkloadSAPHanaDatabaseProtectableItem() + /// Initializes a new instance of VmWorkloadSapHanaDatabaseProtectableItem. + public VmWorkloadSapHanaDatabaseProtectableItem() { ProtectableItemType = "SAPHanaDatabase"; } - /// Initializes a new instance of AzureVmWorkloadSAPHanaDatabaseProtectableItem. + /// Initializes a new instance of VmWorkloadSapHanaDatabaseProtectableItem. /// Type of backup management to backup an item. /// Type of workload for the backup management. /// Type of the backup item. @@ -30,10 +30,10 @@ public AzureVmWorkloadSAPHanaDatabaseProtectableItem() /// Host/Cluster Name for instance or AG. /// Indicates if protectable item is auto-protectable. /// Indicates if protectable item is auto-protected. - /// For instance or AG, indicates number of DB's present. - /// For instance or AG, indicates number of DB's to be protected. - /// Pre-backup validation for protectable objects. - internal AzureVmWorkloadSAPHanaDatabaseProtectableItem(string backupManagementType, string workloadType, string protectableItemType, string friendlyName, ProtectionStatus? protectionState, string parentName, string parentUniqueName, string serverName, bool? isAutoProtectable, bool? isAutoProtected, int? subinquireditemcount, int? subprotectableitemcount, PreBackupValidation prebackupvalidation) : base(backupManagementType, workloadType, protectableItemType, friendlyName, protectionState, parentName, parentUniqueName, serverName, isAutoProtectable, isAutoProtected, subinquireditemcount, subprotectableitemcount, prebackupvalidation) + /// For instance or AG, indicates number of DB's present. + /// For instance or AG, indicates number of DB's to be protected. + /// Pre-backup validation for protectable objects. + internal VmWorkloadSapHanaDatabaseProtectableItem(string backupManagementType, string workloadType, string protectableItemType, string friendlyName, BackupProtectionStatus? protectionState, string parentName, string parentUniqueName, string serverName, bool? isAutoProtectable, bool? isAutoProtected, int? subInquiredItemCount, int? subProtectableItemCount, PreBackupValidation preBackupValidation) : base(backupManagementType, workloadType, protectableItemType, friendlyName, protectionState, parentName, parentUniqueName, serverName, isAutoProtectable, isAutoProtected, subInquiredItemCount, subProtectableItemCount, preBackupValidation) { ProtectableItemType = protectableItemType ?? "SAPHanaDatabase"; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaDatabaseProtectedItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDatabaseProtectedItem.Serialization.cs similarity index 82% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaDatabaseProtectedItem.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDatabaseProtectedItem.Serialization.cs index 55fd4e00c0db0..4e52384c77ac5 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaDatabaseProtectedItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDatabaseProtectedItem.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureVmWorkloadSAPHanaDatabaseProtectedItem : IUtf8JsonSerializable + public partial class VmWorkloadSapHanaDatabaseProtectedItem : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -95,10 +95,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("policyId"u8); writer.WriteStringValue(PolicyId); } - if (Optional.IsDefined(LastRecoveryPoint)) + if (Optional.IsDefined(LastRecoverOn)) { writer.WritePropertyName("lastRecoveryPoint"u8); - writer.WriteStringValue(LastRecoveryPoint.Value, "O"); + writer.WriteStringValue(LastRecoverOn.Value, "O"); } if (Optional.IsDefined(BackupSetName)) { @@ -110,10 +110,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("createMode"u8); writer.WriteStringValue(CreateMode.Value.ToString()); } - if (Optional.IsDefined(DeferredDeleteTimeInUTC)) + if (Optional.IsDefined(DeferredDeletedOn)) { writer.WritePropertyName("deferredDeleteTimeInUTC"u8); - writer.WriteStringValue(DeferredDeleteTimeInUTC.Value, "O"); + writer.WriteStringValue(DeferredDeletedOn.Value, "O"); } if (Optional.IsDefined(IsScheduledForDeferredDelete)) { @@ -163,30 +163,30 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureVmWorkloadSAPHanaDatabaseProtectedItem DeserializeAzureVmWorkloadSAPHanaDatabaseProtectedItem(JsonElement element) + internal static VmWorkloadSapHanaDatabaseProtectedItem DeserializeVmWorkloadSapHanaDatabaseProtectedItem(JsonElement element) { Optional friendlyName = default; Optional serverName = default; Optional parentName = default; Optional parentType = default; Optional protectionStatus = default; - Optional protectionState = default; + Optional protectionState = default; Optional lastBackupStatus = default; Optional lastBackupTime = default; - Optional lastBackupErrorDetail = default; + Optional lastBackupErrorDetail = default; Optional protectedItemDataSourceId = default; - Optional protectedItemHealthStatus = default; - Optional extendedInfo = default; - Optional> kpisHealths = default; + Optional protectedItemHealthStatus = default; + Optional extendedInfo = default; + Optional> kpisHealths = default; string protectedItemType = default; Optional backupManagementType = default; - Optional workloadType = default; + Optional workloadType = default; Optional containerName = default; - Optional sourceResourceId = default; - Optional policyId = default; + Optional sourceResourceId = default; + Optional policyId = default; Optional lastRecoveryPoint = default; Optional backupSetName = default; - Optional createMode = default; + Optional createMode = default; Optional deferredDeleteTimeInUTC = default; Optional isScheduledForDeferredDelete = default; Optional deferredDeleteTimeRemaining = default; @@ -230,7 +230,7 @@ internal static AzureVmWorkloadSAPHanaDatabaseProtectedItem DeserializeAzureVmWo property.ThrowNonNullablePropertyIsNull(); continue; } - protectionState = new ProtectionState(property.Value.GetString()); + protectionState = new BackupProtectionState(property.Value.GetString()); continue; } if (property.NameEquals("lastBackupStatus"u8)) @@ -260,7 +260,7 @@ internal static AzureVmWorkloadSAPHanaDatabaseProtectedItem DeserializeAzureVmWo property.ThrowNonNullablePropertyIsNull(); continue; } - lastBackupErrorDetail = ErrorDetail.DeserializeErrorDetail(property.Value); + lastBackupErrorDetail = BackupErrorDetail.DeserializeBackupErrorDetail(property.Value); continue; } if (property.NameEquals("protectedItemDataSourceId"u8)) @@ -275,7 +275,7 @@ internal static AzureVmWorkloadSAPHanaDatabaseProtectedItem DeserializeAzureVmWo property.ThrowNonNullablePropertyIsNull(); continue; } - protectedItemHealthStatus = new ProtectedItemHealthStatus(property.Value.GetString()); + protectedItemHealthStatus = new VmWorkloadProtectedItemHealthStatus(property.Value.GetString()); continue; } if (property.NameEquals("extendedInfo"u8)) @@ -285,7 +285,7 @@ internal static AzureVmWorkloadSAPHanaDatabaseProtectedItem DeserializeAzureVmWo property.ThrowNonNullablePropertyIsNull(); continue; } - extendedInfo = AzureVmWorkloadProtectedItemExtendedInfo.DeserializeAzureVmWorkloadProtectedItemExtendedInfo(property.Value); + extendedInfo = VmWorkloadProtectedItemExtendedInfo.DeserializeVmWorkloadProtectedItemExtendedInfo(property.Value); continue; } if (property.NameEquals("kpisHealths"u8)) @@ -295,10 +295,10 @@ internal static AzureVmWorkloadSAPHanaDatabaseProtectedItem DeserializeAzureVmWo property.ThrowNonNullablePropertyIsNull(); continue; } - Dictionary dictionary = new Dictionary(); + Dictionary dictionary = new Dictionary(); foreach (var property0 in property.Value.EnumerateObject()) { - dictionary.Add(property0.Name, KPIResourceHealthDetails.DeserializeKPIResourceHealthDetails(property0.Value)); + dictionary.Add(property0.Name, KpiResourceHealthDetails.DeserializeKpiResourceHealthDetails(property0.Value)); } kpisHealths = dictionary; continue; @@ -325,7 +325,7 @@ internal static AzureVmWorkloadSAPHanaDatabaseProtectedItem DeserializeAzureVmWo property.ThrowNonNullablePropertyIsNull(); continue; } - workloadType = new DataSourceType(property.Value.GetString()); + workloadType = new BackupDataSourceType(property.Value.GetString()); continue; } if (property.NameEquals("containerName"u8)) @@ -335,12 +335,22 @@ internal static AzureVmWorkloadSAPHanaDatabaseProtectedItem DeserializeAzureVmWo } if (property.NameEquals("sourceResourceId"u8)) { - sourceResourceId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + sourceResourceId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("policyId"u8)) { - policyId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + policyId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("lastRecoveryPoint"u8)) @@ -365,7 +375,7 @@ internal static AzureVmWorkloadSAPHanaDatabaseProtectedItem DeserializeAzureVmWo property.ThrowNonNullablePropertyIsNull(); continue; } - createMode = new CreateMode(property.Value.GetString()); + createMode = new BackupCreateMode(property.Value.GetString()); continue; } if (property.NameEquals("deferredDeleteTimeInUTC"u8)) @@ -454,7 +464,7 @@ internal static AzureVmWorkloadSAPHanaDatabaseProtectedItem DeserializeAzureVmWo continue; } } - return new AzureVmWorkloadSAPHanaDatabaseProtectedItem(protectedItemType, Optional.ToNullable(backupManagementType), Optional.ToNullable(workloadType), containerName.Value, sourceResourceId.Value, policyId.Value, Optional.ToNullable(lastRecoveryPoint), backupSetName.Value, Optional.ToNullable(createMode), Optional.ToNullable(deferredDeleteTimeInUTC), Optional.ToNullable(isScheduledForDeferredDelete), deferredDeleteTimeRemaining.Value, Optional.ToNullable(isDeferredDeleteScheduleUpcoming), Optional.ToNullable(isRehydrate), Optional.ToList(resourceGuardOperationRequests), Optional.ToNullable(isArchiveEnabled), policyName.Value, Optional.ToNullable(softDeleteRetentionPeriod), friendlyName.Value, serverName.Value, parentName.Value, parentType.Value, protectionStatus.Value, Optional.ToNullable(protectionState), Optional.ToNullable(lastBackupStatus), Optional.ToNullable(lastBackupTime), lastBackupErrorDetail.Value, protectedItemDataSourceId.Value, Optional.ToNullable(protectedItemHealthStatus), extendedInfo.Value, Optional.ToDictionary(kpisHealths)); + return new VmWorkloadSapHanaDatabaseProtectedItem(protectedItemType, Optional.ToNullable(backupManagementType), Optional.ToNullable(workloadType), containerName.Value, sourceResourceId.Value, policyId.Value, Optional.ToNullable(lastRecoveryPoint), backupSetName.Value, Optional.ToNullable(createMode), Optional.ToNullable(deferredDeleteTimeInUTC), Optional.ToNullable(isScheduledForDeferredDelete), deferredDeleteTimeRemaining.Value, Optional.ToNullable(isDeferredDeleteScheduleUpcoming), Optional.ToNullable(isRehydrate), Optional.ToList(resourceGuardOperationRequests), Optional.ToNullable(isArchiveEnabled), policyName.Value, Optional.ToNullable(softDeleteRetentionPeriod), friendlyName.Value, serverName.Value, parentName.Value, parentType.Value, protectionStatus.Value, Optional.ToNullable(protectionState), Optional.ToNullable(lastBackupStatus), Optional.ToNullable(lastBackupTime), lastBackupErrorDetail.Value, protectedItemDataSourceId.Value, Optional.ToNullable(protectedItemHealthStatus), extendedInfo.Value, Optional.ToDictionary(kpisHealths)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaDatabaseProtectedItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDatabaseProtectedItem.cs similarity index 61% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaDatabaseProtectedItem.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDatabaseProtectedItem.cs index dbb2d4dfb16e0..5ce79bb50f702 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaDatabaseProtectedItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDatabaseProtectedItem.cs @@ -7,29 +7,30 @@ using System; using System.Collections.Generic; +using Azure.Core; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Azure VM workload-specific protected item representing SAP HANA Database. - public partial class AzureVmWorkloadSAPHanaDatabaseProtectedItem : AzureVmWorkloadProtectedItem + public partial class VmWorkloadSapHanaDatabaseProtectedItem : VmWorkloadProtectedItem { - /// Initializes a new instance of AzureVmWorkloadSAPHanaDatabaseProtectedItem. - public AzureVmWorkloadSAPHanaDatabaseProtectedItem() + /// Initializes a new instance of VmWorkloadSapHanaDatabaseProtectedItem. + public VmWorkloadSapHanaDatabaseProtectedItem() { ProtectedItemType = "AzureVmWorkloadSAPHanaDatabase"; } - /// Initializes a new instance of AzureVmWorkloadSAPHanaDatabaseProtectedItem. + /// Initializes a new instance of VmWorkloadSapHanaDatabaseProtectedItem. /// backup item type. /// Type of backup management for the backed up item. /// Type of workload this item represents. /// Unique name of container. /// ARM ID of the resource to be backed up. /// ID of the backup policy with which this item is backed up. - /// Timestamp when the last (latest) backup copy was created for this backup item. + /// Timestamp when the last (latest) backup copy was created for this backup item. /// Name of the backup set the backup item belongs to. /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. - /// Time for deferred deletion in UTC. + /// Time for deferred deletion in UTC. /// Flag to identify whether the DS is scheduled for deferred delete. /// Time remaining before the DS marked for deferred delete is permanently deleted. /// Flag to identify whether the deferred deleted DS is to be purged soon. @@ -51,7 +52,7 @@ public AzureVmWorkloadSAPHanaDatabaseProtectedItem() /// Health status of the backup item, evaluated based on last heartbeat received. /// Additional information for this backup item. /// Health details of different KPIs. - internal AzureVmWorkloadSAPHanaDatabaseProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, DataSourceType? workloadType, string containerName, string sourceResourceId, string policyId, DateTimeOffset? lastRecoveryPoint, string backupSetName, CreateMode? createMode, DateTimeOffset? deferredDeleteTimeInUTC, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriod, string friendlyName, string serverName, string parentName, string parentType, string protectionStatus, ProtectionState? protectionState, LastBackupStatus? lastBackupStatus, DateTimeOffset? lastBackupOn, ErrorDetail lastBackupErrorDetail, string protectedItemDataSourceId, ProtectedItemHealthStatus? protectedItemHealthStatus, AzureVmWorkloadProtectedItemExtendedInfo extendedInfo, IDictionary kpisHealths) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, deferredDeleteTimeInUTC, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriod, friendlyName, serverName, parentName, parentType, protectionStatus, protectionState, lastBackupStatus, lastBackupOn, lastBackupErrorDetail, protectedItemDataSourceId, protectedItemHealthStatus, extendedInfo, kpisHealths) + internal VmWorkloadSapHanaDatabaseProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, ResourceIdentifier policyId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriod, string friendlyName, string serverName, string parentName, string parentType, string protectionStatus, BackupProtectionState? protectionState, LastBackupStatus? lastBackupStatus, DateTimeOffset? lastBackupOn, BackupErrorDetail lastBackupErrorDetail, string protectedItemDataSourceId, VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus, VmWorkloadProtectedItemExtendedInfo extendedInfo, IDictionary kpisHealths) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriod, friendlyName, serverName, parentName, parentType, protectionStatus, protectionState, lastBackupStatus, lastBackupOn, lastBackupErrorDetail, protectedItemDataSourceId, protectedItemHealthStatus, extendedInfo, kpisHealths) { ProtectedItemType = protectedItemType ?? "AzureVmWorkloadSAPHanaDatabase"; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaSystemWorkloadItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDatabaseWorkloadItem.Serialization.cs similarity index 86% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaSystemWorkloadItem.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDatabaseWorkloadItem.Serialization.cs index 03fe9aaabe5b2..1c2eef3063f28 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaSystemWorkloadItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDatabaseWorkloadItem.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureVmWorkloadSAPHanaSystemWorkloadItem : IUtf8JsonSerializable + public partial class VmWorkloadSapHanaDatabaseWorkloadItem : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -30,10 +30,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("isAutoProtectable"u8); writer.WriteBooleanValue(IsAutoProtectable.Value); } - if (Optional.IsDefined(Subinquireditemcount)) + if (Optional.IsDefined(SubInquiredItemCount)) { writer.WritePropertyName("subinquireditemcount"u8); - writer.WriteNumberValue(Subinquireditemcount.Value); + writer.WriteNumberValue(SubInquiredItemCount.Value); } if (Optional.IsDefined(SubWorkloadItemCount)) { @@ -65,7 +65,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureVmWorkloadSAPHanaSystemWorkloadItem DeserializeAzureVmWorkloadSAPHanaSystemWorkloadItem(JsonElement element) + internal static VmWorkloadSapHanaDatabaseWorkloadItem DeserializeVmWorkloadSapHanaDatabaseWorkloadItem(JsonElement element) { Optional parentName = default; Optional serverName = default; @@ -76,7 +76,7 @@ internal static AzureVmWorkloadSAPHanaSystemWorkloadItem DeserializeAzureVmWorkl Optional workloadType = default; string workloadItemType = default; Optional friendlyName = default; - Optional protectionState = default; + Optional protectionState = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("parentName"u8)) @@ -146,11 +146,11 @@ internal static AzureVmWorkloadSAPHanaSystemWorkloadItem DeserializeAzureVmWorkl property.ThrowNonNullablePropertyIsNull(); continue; } - protectionState = new ProtectionStatus(property.Value.GetString()); + protectionState = new BackupProtectionStatus(property.Value.GetString()); continue; } } - return new AzureVmWorkloadSAPHanaSystemWorkloadItem(backupManagementType.Value, workloadType.Value, workloadItemType, friendlyName.Value, Optional.ToNullable(protectionState), parentName.Value, serverName.Value, Optional.ToNullable(isAutoProtectable), Optional.ToNullable(subinquireditemcount), Optional.ToNullable(subWorkloadItemCount)); + return new VmWorkloadSapHanaDatabaseWorkloadItem(backupManagementType.Value, workloadType.Value, workloadItemType, friendlyName.Value, Optional.ToNullable(protectionState), parentName.Value, serverName.Value, Optional.ToNullable(isAutoProtectable), Optional.ToNullable(subinquireditemcount), Optional.ToNullable(subWorkloadItemCount)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaDatabaseWorkloadItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDatabaseWorkloadItem.cs similarity index 59% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaDatabaseWorkloadItem.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDatabaseWorkloadItem.cs index d00086013d8b5..df77486c89e06 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaDatabaseWorkloadItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaDatabaseWorkloadItem.cs @@ -8,15 +8,15 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Azure VM workload-specific workload item representing SAP HANA Database. - public partial class AzureVmWorkloadSAPHanaDatabaseWorkloadItem : AzureVmWorkloadItem + public partial class VmWorkloadSapHanaDatabaseWorkloadItem : VmWorkloadItem { - /// Initializes a new instance of AzureVmWorkloadSAPHanaDatabaseWorkloadItem. - public AzureVmWorkloadSAPHanaDatabaseWorkloadItem() + /// Initializes a new instance of VmWorkloadSapHanaDatabaseWorkloadItem. + public VmWorkloadSapHanaDatabaseWorkloadItem() { WorkloadItemType = "SAPHanaDatabase"; } - /// Initializes a new instance of AzureVmWorkloadSAPHanaDatabaseWorkloadItem. + /// Initializes a new instance of VmWorkloadSapHanaDatabaseWorkloadItem. /// Type of backup management to backup an item. /// Type of workload for the backup management. /// Type of the backup item. @@ -25,9 +25,9 @@ public AzureVmWorkloadSAPHanaDatabaseWorkloadItem() /// Name for instance or AG. /// Host/Cluster Name for instance or AG. /// Indicates if workload item is auto-protectable. - /// For instance or AG, indicates number of DB's present. + /// For instance or AG, indicates number of DB's present. /// For instance or AG, indicates number of DB's to be protected. - internal AzureVmWorkloadSAPHanaDatabaseWorkloadItem(string backupManagementType, string workloadType, string workloadItemType, string friendlyName, ProtectionStatus? protectionState, string parentName, string serverName, bool? isAutoProtectable, int? subinquireditemcount, int? subWorkloadItemCount) : base(backupManagementType, workloadType, workloadItemType, friendlyName, protectionState, parentName, serverName, isAutoProtectable, subinquireditemcount, subWorkloadItemCount) + internal VmWorkloadSapHanaDatabaseWorkloadItem(string backupManagementType, string workloadType, string workloadItemType, string friendlyName, BackupProtectionStatus? protectionState, string parentName, string serverName, bool? isAutoProtectable, int? subInquiredItemCount, int? subWorkloadItemCount) : base(backupManagementType, workloadType, workloadItemType, friendlyName, protectionState, parentName, serverName, isAutoProtectable, subInquiredItemCount, subWorkloadItemCount) { WorkloadItemType = workloadItemType ?? "SAPHanaDatabase"; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaHSR.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaHsr.Serialization.cs similarity index 86% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaHSR.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaHsr.Serialization.cs index a104496f5ee80..b8b085a86c925 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaHSR.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaHsr.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureVmWorkloadSAPHanaHSR : IUtf8JsonSerializable + public partial class VmWorkloadSapHanaHsr : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -40,20 +40,20 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("isAutoProtected"u8); writer.WriteBooleanValue(IsAutoProtected.Value); } - if (Optional.IsDefined(Subinquireditemcount)) + if (Optional.IsDefined(SubInquiredItemCount)) { writer.WritePropertyName("subinquireditemcount"u8); - writer.WriteNumberValue(Subinquireditemcount.Value); + writer.WriteNumberValue(SubInquiredItemCount.Value); } - if (Optional.IsDefined(Subprotectableitemcount)) + if (Optional.IsDefined(SubProtectableItemCount)) { writer.WritePropertyName("subprotectableitemcount"u8); - writer.WriteNumberValue(Subprotectableitemcount.Value); + writer.WriteNumberValue(SubProtectableItemCount.Value); } - if (Optional.IsDefined(Prebackupvalidation)) + if (Optional.IsDefined(PreBackupValidation)) { writer.WritePropertyName("prebackupvalidation"u8); - writer.WriteObjectValue(Prebackupvalidation); + writer.WriteObjectValue(PreBackupValidation); } if (Optional.IsDefined(BackupManagementType)) { @@ -80,7 +80,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureVmWorkloadSAPHanaHSR DeserializeAzureVmWorkloadSAPHanaHSR(JsonElement element) + internal static VmWorkloadSapHanaHsr DeserializeVmWorkloadSapHanaHsr(JsonElement element) { Optional parentName = default; Optional parentUniqueName = default; @@ -94,7 +94,7 @@ internal static AzureVmWorkloadSAPHanaHSR DeserializeAzureVmWorkloadSAPHanaHSR(J Optional workloadType = default; string protectableItemType = default; Optional friendlyName = default; - Optional protectionState = default; + Optional protectionState = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("parentName"u8)) @@ -189,11 +189,11 @@ internal static AzureVmWorkloadSAPHanaHSR DeserializeAzureVmWorkloadSAPHanaHSR(J property.ThrowNonNullablePropertyIsNull(); continue; } - protectionState = new ProtectionStatus(property.Value.GetString()); + protectionState = new BackupProtectionStatus(property.Value.GetString()); continue; } } - return new AzureVmWorkloadSAPHanaHSR(backupManagementType.Value, workloadType.Value, protectableItemType, friendlyName.Value, Optional.ToNullable(protectionState), parentName.Value, parentUniqueName.Value, serverName.Value, Optional.ToNullable(isAutoProtectable), Optional.ToNullable(isAutoProtected), Optional.ToNullable(subinquireditemcount), Optional.ToNullable(subprotectableitemcount), prebackupvalidation.Value); + return new VmWorkloadSapHanaHsr(backupManagementType.Value, workloadType.Value, protectableItemType, friendlyName.Value, Optional.ToNullable(protectionState), parentName.Value, parentUniqueName.Value, serverName.Value, Optional.ToNullable(isAutoProtectable), Optional.ToNullable(isAutoProtected), Optional.ToNullable(subinquireditemcount), Optional.ToNullable(subprotectableitemcount), prebackupvalidation.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaHSR.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaHsr.cs similarity index 60% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaHSR.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaHsr.cs index 599d289e20d9f..aa8f8d29becac 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaHSR.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaHsr.cs @@ -8,15 +8,15 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Azure VM workload-specific protectable item representing SAP HANA Dbinstance. - public partial class AzureVmWorkloadSAPHanaHSR : AzureVmWorkloadProtectableItem + public partial class VmWorkloadSapHanaHsr : VmWorkloadProtectableItem { - /// Initializes a new instance of AzureVmWorkloadSAPHanaHSR. - public AzureVmWorkloadSAPHanaHSR() + /// Initializes a new instance of VmWorkloadSapHanaHsr. + public VmWorkloadSapHanaHsr() { ProtectableItemType = "SAPHanaHSR"; } - /// Initializes a new instance of AzureVmWorkloadSAPHanaHSR. + /// Initializes a new instance of VmWorkloadSapHanaHsr. /// Type of backup management to backup an item. /// Type of workload for the backup management. /// Type of the backup item. @@ -30,10 +30,10 @@ public AzureVmWorkloadSAPHanaHSR() /// Host/Cluster Name for instance or AG. /// Indicates if protectable item is auto-protectable. /// Indicates if protectable item is auto-protected. - /// For instance or AG, indicates number of DB's present. - /// For instance or AG, indicates number of DB's to be protected. - /// Pre-backup validation for protectable objects. - internal AzureVmWorkloadSAPHanaHSR(string backupManagementType, string workloadType, string protectableItemType, string friendlyName, ProtectionStatus? protectionState, string parentName, string parentUniqueName, string serverName, bool? isAutoProtectable, bool? isAutoProtected, int? subinquireditemcount, int? subprotectableitemcount, PreBackupValidation prebackupvalidation) : base(backupManagementType, workloadType, protectableItemType, friendlyName, protectionState, parentName, parentUniqueName, serverName, isAutoProtectable, isAutoProtected, subinquireditemcount, subprotectableitemcount, prebackupvalidation) + /// For instance or AG, indicates number of DB's present. + /// For instance or AG, indicates number of DB's to be protected. + /// Pre-backup validation for protectable objects. + internal VmWorkloadSapHanaHsr(string backupManagementType, string workloadType, string protectableItemType, string friendlyName, BackupProtectionStatus? protectionState, string parentName, string parentUniqueName, string serverName, bool? isAutoProtectable, bool? isAutoProtected, int? subInquiredItemCount, int? subProtectableItemCount, PreBackupValidation preBackupValidation) : base(backupManagementType, workloadType, protectableItemType, friendlyName, protectionState, parentName, parentUniqueName, serverName, isAutoProtectable, isAutoProtected, subInquiredItemCount, subProtectableItemCount, preBackupValidation) { ProtectableItemType = protectableItemType ?? "SAPHanaHSR"; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSQLInstanceProtectableItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaSystemProtectableItem.Serialization.cs similarity index 85% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSQLInstanceProtectableItem.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaSystemProtectableItem.Serialization.cs index 0c38595a9a0fb..3dc75ee475f48 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSQLInstanceProtectableItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaSystemProtectableItem.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureVmWorkloadSQLInstanceProtectableItem : IUtf8JsonSerializable + public partial class VmWorkloadSapHanaSystemProtectableItem : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -40,20 +40,20 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("isAutoProtected"u8); writer.WriteBooleanValue(IsAutoProtected.Value); } - if (Optional.IsDefined(Subinquireditemcount)) + if (Optional.IsDefined(SubInquiredItemCount)) { writer.WritePropertyName("subinquireditemcount"u8); - writer.WriteNumberValue(Subinquireditemcount.Value); + writer.WriteNumberValue(SubInquiredItemCount.Value); } - if (Optional.IsDefined(Subprotectableitemcount)) + if (Optional.IsDefined(SubProtectableItemCount)) { writer.WritePropertyName("subprotectableitemcount"u8); - writer.WriteNumberValue(Subprotectableitemcount.Value); + writer.WriteNumberValue(SubProtectableItemCount.Value); } - if (Optional.IsDefined(Prebackupvalidation)) + if (Optional.IsDefined(PreBackupValidation)) { writer.WritePropertyName("prebackupvalidation"u8); - writer.WriteObjectValue(Prebackupvalidation); + writer.WriteObjectValue(PreBackupValidation); } if (Optional.IsDefined(BackupManagementType)) { @@ -80,7 +80,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureVmWorkloadSQLInstanceProtectableItem DeserializeAzureVmWorkloadSQLInstanceProtectableItem(JsonElement element) + internal static VmWorkloadSapHanaSystemProtectableItem DeserializeVmWorkloadSapHanaSystemProtectableItem(JsonElement element) { Optional parentName = default; Optional parentUniqueName = default; @@ -94,7 +94,7 @@ internal static AzureVmWorkloadSQLInstanceProtectableItem DeserializeAzureVmWork Optional workloadType = default; string protectableItemType = default; Optional friendlyName = default; - Optional protectionState = default; + Optional protectionState = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("parentName"u8)) @@ -189,11 +189,11 @@ internal static AzureVmWorkloadSQLInstanceProtectableItem DeserializeAzureVmWork property.ThrowNonNullablePropertyIsNull(); continue; } - protectionState = new ProtectionStatus(property.Value.GetString()); + protectionState = new BackupProtectionStatus(property.Value.GetString()); continue; } } - return new AzureVmWorkloadSQLInstanceProtectableItem(backupManagementType.Value, workloadType.Value, protectableItemType, friendlyName.Value, Optional.ToNullable(protectionState), parentName.Value, parentUniqueName.Value, serverName.Value, Optional.ToNullable(isAutoProtectable), Optional.ToNullable(isAutoProtected), Optional.ToNullable(subinquireditemcount), Optional.ToNullable(subprotectableitemcount), prebackupvalidation.Value); + return new VmWorkloadSapHanaSystemProtectableItem(backupManagementType.Value, workloadType.Value, protectableItemType, friendlyName.Value, Optional.ToNullable(protectionState), parentName.Value, parentUniqueName.Value, serverName.Value, Optional.ToNullable(isAutoProtectable), Optional.ToNullable(isAutoProtected), Optional.ToNullable(subinquireditemcount), Optional.ToNullable(subprotectableitemcount), prebackupvalidation.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaSystemProtectableItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaSystemProtectableItem.cs new file mode 100644 index 0000000000000..ea49ec909115b --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaSystemProtectableItem.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.RecoveryServicesBackup.Models +{ + /// Azure VM workload-specific protectable item representing SAP HANA System. + public partial class VmWorkloadSapHanaSystemProtectableItem : VmWorkloadProtectableItem + { + /// Initializes a new instance of VmWorkloadSapHanaSystemProtectableItem. + public VmWorkloadSapHanaSystemProtectableItem() + { + ProtectableItemType = "SAPHanaSystem"; + } + + /// Initializes a new instance of VmWorkloadSapHanaSystemProtectableItem. + /// Type of backup management to backup an item. + /// Type of workload for the backup management. + /// Type of the backup item. + /// Friendly name of the backup item. + /// State of the back up item. + /// Name for instance or AG. + /// + /// Parent Unique Name is added to provide the service formatted URI Name of the Parent + /// Only Applicable for data bases where the parent would be either Instance or a SQL AG. + /// + /// Host/Cluster Name for instance or AG. + /// Indicates if protectable item is auto-protectable. + /// Indicates if protectable item is auto-protected. + /// For instance or AG, indicates number of DB's present. + /// For instance or AG, indicates number of DB's to be protected. + /// Pre-backup validation for protectable objects. + internal VmWorkloadSapHanaSystemProtectableItem(string backupManagementType, string workloadType, string protectableItemType, string friendlyName, BackupProtectionStatus? protectionState, string parentName, string parentUniqueName, string serverName, bool? isAutoProtectable, bool? isAutoProtected, int? subInquiredItemCount, int? subProtectableItemCount, PreBackupValidation preBackupValidation) : base(backupManagementType, workloadType, protectableItemType, friendlyName, protectionState, parentName, parentUniqueName, serverName, isAutoProtectable, isAutoProtected, subInquiredItemCount, subProtectableItemCount, preBackupValidation) + { + ProtectableItemType = protectableItemType ?? "SAPHanaSystem"; + } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPAseDatabaseWorkloadItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaSystemWorkloadItem.Serialization.cs similarity index 86% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPAseDatabaseWorkloadItem.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaSystemWorkloadItem.Serialization.cs index 528fa6b85a939..e8adc55904cc7 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPAseDatabaseWorkloadItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaSystemWorkloadItem.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureVmWorkloadSAPAseDatabaseWorkloadItem : IUtf8JsonSerializable + public partial class VmWorkloadSapHanaSystemWorkloadItem : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -30,10 +30,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("isAutoProtectable"u8); writer.WriteBooleanValue(IsAutoProtectable.Value); } - if (Optional.IsDefined(Subinquireditemcount)) + if (Optional.IsDefined(SubInquiredItemCount)) { writer.WritePropertyName("subinquireditemcount"u8); - writer.WriteNumberValue(Subinquireditemcount.Value); + writer.WriteNumberValue(SubInquiredItemCount.Value); } if (Optional.IsDefined(SubWorkloadItemCount)) { @@ -65,7 +65,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureVmWorkloadSAPAseDatabaseWorkloadItem DeserializeAzureVmWorkloadSAPAseDatabaseWorkloadItem(JsonElement element) + internal static VmWorkloadSapHanaSystemWorkloadItem DeserializeVmWorkloadSapHanaSystemWorkloadItem(JsonElement element) { Optional parentName = default; Optional serverName = default; @@ -76,7 +76,7 @@ internal static AzureVmWorkloadSAPAseDatabaseWorkloadItem DeserializeAzureVmWork Optional workloadType = default; string workloadItemType = default; Optional friendlyName = default; - Optional protectionState = default; + Optional protectionState = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("parentName"u8)) @@ -146,11 +146,11 @@ internal static AzureVmWorkloadSAPAseDatabaseWorkloadItem DeserializeAzureVmWork property.ThrowNonNullablePropertyIsNull(); continue; } - protectionState = new ProtectionStatus(property.Value.GetString()); + protectionState = new BackupProtectionStatus(property.Value.GetString()); continue; } } - return new AzureVmWorkloadSAPAseDatabaseWorkloadItem(backupManagementType.Value, workloadType.Value, workloadItemType, friendlyName.Value, Optional.ToNullable(protectionState), parentName.Value, serverName.Value, Optional.ToNullable(isAutoProtectable), Optional.ToNullable(subinquireditemcount), Optional.ToNullable(subWorkloadItemCount)); + return new VmWorkloadSapHanaSystemWorkloadItem(backupManagementType.Value, workloadType.Value, workloadItemType, friendlyName.Value, Optional.ToNullable(protectionState), parentName.Value, serverName.Value, Optional.ToNullable(isAutoProtectable), Optional.ToNullable(subinquireditemcount), Optional.ToNullable(subWorkloadItemCount)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaSystemWorkloadItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaSystemWorkloadItem.cs similarity index 59% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaSystemWorkloadItem.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaSystemWorkloadItem.cs index 546915fccd3d5..9c0173a22e9da 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaSystemWorkloadItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSapHanaSystemWorkloadItem.cs @@ -8,15 +8,15 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Azure VM workload-specific workload item representing SAP HANA System. - public partial class AzureVmWorkloadSAPHanaSystemWorkloadItem : AzureVmWorkloadItem + public partial class VmWorkloadSapHanaSystemWorkloadItem : VmWorkloadItem { - /// Initializes a new instance of AzureVmWorkloadSAPHanaSystemWorkloadItem. - public AzureVmWorkloadSAPHanaSystemWorkloadItem() + /// Initializes a new instance of VmWorkloadSapHanaSystemWorkloadItem. + public VmWorkloadSapHanaSystemWorkloadItem() { WorkloadItemType = "SAPHanaSystem"; } - /// Initializes a new instance of AzureVmWorkloadSAPHanaSystemWorkloadItem. + /// Initializes a new instance of VmWorkloadSapHanaSystemWorkloadItem. /// Type of backup management to backup an item. /// Type of workload for the backup management. /// Type of the backup item. @@ -25,9 +25,9 @@ public AzureVmWorkloadSAPHanaSystemWorkloadItem() /// Name for instance or AG. /// Host/Cluster Name for instance or AG. /// Indicates if workload item is auto-protectable. - /// For instance or AG, indicates number of DB's present. + /// For instance or AG, indicates number of DB's present. /// For instance or AG, indicates number of DB's to be protected. - internal AzureVmWorkloadSAPHanaSystemWorkloadItem(string backupManagementType, string workloadType, string workloadItemType, string friendlyName, ProtectionStatus? protectionState, string parentName, string serverName, bool? isAutoProtectable, int? subinquireditemcount, int? subWorkloadItemCount) : base(backupManagementType, workloadType, workloadItemType, friendlyName, protectionState, parentName, serverName, isAutoProtectable, subinquireditemcount, subWorkloadItemCount) + internal VmWorkloadSapHanaSystemWorkloadItem(string backupManagementType, string workloadType, string workloadItemType, string friendlyName, BackupProtectionStatus? protectionState, string parentName, string serverName, bool? isAutoProtectable, int? subInquiredItemCount, int? subWorkloadItemCount) : base(backupManagementType, workloadType, workloadItemType, friendlyName, protectionState, parentName, serverName, isAutoProtectable, subInquiredItemCount, subWorkloadItemCount) { WorkloadItemType = workloadItemType ?? "SAPHanaSystem"; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaDatabaseProtectableItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlAvailabilityGroupProtectableItem.Serialization.cs similarity index 90% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaDatabaseProtectableItem.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlAvailabilityGroupProtectableItem.Serialization.cs index ec4657de53846..8e1ee6fc98876 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPHanaDatabaseProtectableItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlAvailabilityGroupProtectableItem.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureVmWorkloadSAPHanaDatabaseProtectableItem : IUtf8JsonSerializable + public partial class VmWorkloadSqlAvailabilityGroupProtectableItem : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -40,20 +40,20 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("isAutoProtected"u8); writer.WriteBooleanValue(IsAutoProtected.Value); } - if (Optional.IsDefined(Subinquireditemcount)) + if (Optional.IsDefined(SubInquiredItemCount)) { writer.WritePropertyName("subinquireditemcount"u8); - writer.WriteNumberValue(Subinquireditemcount.Value); + writer.WriteNumberValue(SubInquiredItemCount.Value); } - if (Optional.IsDefined(Subprotectableitemcount)) + if (Optional.IsDefined(SubProtectableItemCount)) { writer.WritePropertyName("subprotectableitemcount"u8); - writer.WriteNumberValue(Subprotectableitemcount.Value); + writer.WriteNumberValue(SubProtectableItemCount.Value); } - if (Optional.IsDefined(Prebackupvalidation)) + if (Optional.IsDefined(PreBackupValidation)) { writer.WritePropertyName("prebackupvalidation"u8); - writer.WriteObjectValue(Prebackupvalidation); + writer.WriteObjectValue(PreBackupValidation); } if (Optional.IsDefined(BackupManagementType)) { @@ -80,7 +80,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureVmWorkloadSAPHanaDatabaseProtectableItem DeserializeAzureVmWorkloadSAPHanaDatabaseProtectableItem(JsonElement element) + internal static VmWorkloadSqlAvailabilityGroupProtectableItem DeserializeVmWorkloadSqlAvailabilityGroupProtectableItem(JsonElement element) { Optional parentName = default; Optional parentUniqueName = default; @@ -94,7 +94,7 @@ internal static AzureVmWorkloadSAPHanaDatabaseProtectableItem DeserializeAzureVm Optional workloadType = default; string protectableItemType = default; Optional friendlyName = default; - Optional protectionState = default; + Optional protectionState = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("parentName"u8)) @@ -189,11 +189,11 @@ internal static AzureVmWorkloadSAPHanaDatabaseProtectableItem DeserializeAzureVm property.ThrowNonNullablePropertyIsNull(); continue; } - protectionState = new ProtectionStatus(property.Value.GetString()); + protectionState = new BackupProtectionStatus(property.Value.GetString()); continue; } } - return new AzureVmWorkloadSAPHanaDatabaseProtectableItem(backupManagementType.Value, workloadType.Value, protectableItemType, friendlyName.Value, Optional.ToNullable(protectionState), parentName.Value, parentUniqueName.Value, serverName.Value, Optional.ToNullable(isAutoProtectable), Optional.ToNullable(isAutoProtected), Optional.ToNullable(subinquireditemcount), Optional.ToNullable(subprotectableitemcount), prebackupvalidation.Value); + return new VmWorkloadSqlAvailabilityGroupProtectableItem(backupManagementType.Value, workloadType.Value, protectableItemType, friendlyName.Value, Optional.ToNullable(protectionState), parentName.Value, parentUniqueName.Value, serverName.Value, Optional.ToNullable(isAutoProtectable), Optional.ToNullable(isAutoProtected), Optional.ToNullable(subinquireditemcount), Optional.ToNullable(subprotectableitemcount), prebackupvalidation.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSQLAvailabilityGroupProtectableItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlAvailabilityGroupProtectableItem.cs similarity index 60% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSQLAvailabilityGroupProtectableItem.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlAvailabilityGroupProtectableItem.cs index 1c774dab46a15..e88358b907244 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSQLAvailabilityGroupProtectableItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlAvailabilityGroupProtectableItem.cs @@ -8,15 +8,15 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Azure VM workload-specific protectable item representing SQL Availability Group. - public partial class AzureVmWorkloadSQLAvailabilityGroupProtectableItem : AzureVmWorkloadProtectableItem + public partial class VmWorkloadSqlAvailabilityGroupProtectableItem : VmWorkloadProtectableItem { - /// Initializes a new instance of AzureVmWorkloadSQLAvailabilityGroupProtectableItem. - public AzureVmWorkloadSQLAvailabilityGroupProtectableItem() + /// Initializes a new instance of VmWorkloadSqlAvailabilityGroupProtectableItem. + public VmWorkloadSqlAvailabilityGroupProtectableItem() { ProtectableItemType = "SQLAvailabilityGroupContainer"; } - /// Initializes a new instance of AzureVmWorkloadSQLAvailabilityGroupProtectableItem. + /// Initializes a new instance of VmWorkloadSqlAvailabilityGroupProtectableItem. /// Type of backup management to backup an item. /// Type of workload for the backup management. /// Type of the backup item. @@ -30,10 +30,10 @@ public AzureVmWorkloadSQLAvailabilityGroupProtectableItem() /// Host/Cluster Name for instance or AG. /// Indicates if protectable item is auto-protectable. /// Indicates if protectable item is auto-protected. - /// For instance or AG, indicates number of DB's present. - /// For instance or AG, indicates number of DB's to be protected. - /// Pre-backup validation for protectable objects. - internal AzureVmWorkloadSQLAvailabilityGroupProtectableItem(string backupManagementType, string workloadType, string protectableItemType, string friendlyName, ProtectionStatus? protectionState, string parentName, string parentUniqueName, string serverName, bool? isAutoProtectable, bool? isAutoProtected, int? subinquireditemcount, int? subprotectableitemcount, PreBackupValidation prebackupvalidation) : base(backupManagementType, workloadType, protectableItemType, friendlyName, protectionState, parentName, parentUniqueName, serverName, isAutoProtectable, isAutoProtected, subinquireditemcount, subprotectableitemcount, prebackupvalidation) + /// For instance or AG, indicates number of DB's present. + /// For instance or AG, indicates number of DB's to be protected. + /// Pre-backup validation for protectable objects. + internal VmWorkloadSqlAvailabilityGroupProtectableItem(string backupManagementType, string workloadType, string protectableItemType, string friendlyName, BackupProtectionStatus? protectionState, string parentName, string parentUniqueName, string serverName, bool? isAutoProtectable, bool? isAutoProtected, int? subInquiredItemCount, int? subProtectableItemCount, PreBackupValidation preBackupValidation) : base(backupManagementType, workloadType, protectableItemType, friendlyName, protectionState, parentName, parentUniqueName, serverName, isAutoProtectable, isAutoProtected, subInquiredItemCount, subProtectableItemCount, preBackupValidation) { ProtectableItemType = protectableItemType ?? "SQLAvailabilityGroupContainer"; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlDatabaseProtectableItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlDatabaseProtectableItem.Serialization.cs new file mode 100644 index 0000000000000..f180216342517 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlDatabaseProtectableItem.Serialization.cs @@ -0,0 +1,199 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Models +{ + public partial class VmWorkloadSqlDatabaseProtectableItem : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(ParentName)) + { + writer.WritePropertyName("parentName"u8); + writer.WriteStringValue(ParentName); + } + if (Optional.IsDefined(ParentUniqueName)) + { + writer.WritePropertyName("parentUniqueName"u8); + writer.WriteStringValue(ParentUniqueName); + } + if (Optional.IsDefined(ServerName)) + { + writer.WritePropertyName("serverName"u8); + writer.WriteStringValue(ServerName); + } + if (Optional.IsDefined(IsAutoProtectable)) + { + writer.WritePropertyName("isAutoProtectable"u8); + writer.WriteBooleanValue(IsAutoProtectable.Value); + } + if (Optional.IsDefined(IsAutoProtected)) + { + writer.WritePropertyName("isAutoProtected"u8); + writer.WriteBooleanValue(IsAutoProtected.Value); + } + if (Optional.IsDefined(SubInquiredItemCount)) + { + writer.WritePropertyName("subinquireditemcount"u8); + writer.WriteNumberValue(SubInquiredItemCount.Value); + } + if (Optional.IsDefined(SubProtectableItemCount)) + { + writer.WritePropertyName("subprotectableitemcount"u8); + writer.WriteNumberValue(SubProtectableItemCount.Value); + } + if (Optional.IsDefined(PreBackupValidation)) + { + writer.WritePropertyName("prebackupvalidation"u8); + writer.WriteObjectValue(PreBackupValidation); + } + if (Optional.IsDefined(BackupManagementType)) + { + writer.WritePropertyName("backupManagementType"u8); + writer.WriteStringValue(BackupManagementType); + } + if (Optional.IsDefined(WorkloadType)) + { + writer.WritePropertyName("workloadType"u8); + writer.WriteStringValue(WorkloadType); + } + writer.WritePropertyName("protectableItemType"u8); + writer.WriteStringValue(ProtectableItemType); + if (Optional.IsDefined(FriendlyName)) + { + writer.WritePropertyName("friendlyName"u8); + writer.WriteStringValue(FriendlyName); + } + if (Optional.IsDefined(ProtectionState)) + { + writer.WritePropertyName("protectionState"u8); + writer.WriteStringValue(ProtectionState.Value.ToString()); + } + writer.WriteEndObject(); + } + + internal static VmWorkloadSqlDatabaseProtectableItem DeserializeVmWorkloadSqlDatabaseProtectableItem(JsonElement element) + { + Optional parentName = default; + Optional parentUniqueName = default; + Optional serverName = default; + Optional isAutoProtectable = default; + Optional isAutoProtected = default; + Optional subinquireditemcount = default; + Optional subprotectableitemcount = default; + Optional prebackupvalidation = default; + Optional backupManagementType = default; + Optional workloadType = default; + string protectableItemType = default; + Optional friendlyName = default; + Optional protectionState = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("parentName"u8)) + { + parentName = property.Value.GetString(); + continue; + } + if (property.NameEquals("parentUniqueName"u8)) + { + parentUniqueName = property.Value.GetString(); + continue; + } + if (property.NameEquals("serverName"u8)) + { + serverName = property.Value.GetString(); + continue; + } + if (property.NameEquals("isAutoProtectable"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + isAutoProtectable = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("isAutoProtected"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + isAutoProtected = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("subinquireditemcount"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + subinquireditemcount = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("subprotectableitemcount"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + subprotectableitemcount = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("prebackupvalidation"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + prebackupvalidation = PreBackupValidation.DeserializePreBackupValidation(property.Value); + continue; + } + if (property.NameEquals("backupManagementType"u8)) + { + backupManagementType = property.Value.GetString(); + continue; + } + if (property.NameEquals("workloadType"u8)) + { + workloadType = property.Value.GetString(); + continue; + } + if (property.NameEquals("protectableItemType"u8)) + { + protectableItemType = property.Value.GetString(); + continue; + } + if (property.NameEquals("friendlyName"u8)) + { + friendlyName = property.Value.GetString(); + continue; + } + if (property.NameEquals("protectionState"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + protectionState = new BackupProtectionStatus(property.Value.GetString()); + continue; + } + } + return new VmWorkloadSqlDatabaseProtectableItem(backupManagementType.Value, workloadType.Value, protectableItemType, friendlyName.Value, Optional.ToNullable(protectionState), parentName.Value, parentUniqueName.Value, serverName.Value, Optional.ToNullable(isAutoProtectable), Optional.ToNullable(isAutoProtected), Optional.ToNullable(subinquireditemcount), Optional.ToNullable(subprotectableitemcount), prebackupvalidation.Value); + } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPAseSystemProtectableItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlDatabaseProtectableItem.cs similarity index 59% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPAseSystemProtectableItem.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlDatabaseProtectableItem.cs index d0ce2665eb46a..059e4dcb88ddc 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSAPAseSystemProtectableItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlDatabaseProtectableItem.cs @@ -7,16 +7,16 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - /// Azure VM workload-specific protectable item representing SAP ASE System. - public partial class AzureVmWorkloadSAPAseSystemProtectableItem : AzureVmWorkloadProtectableItem + /// Azure VM workload-specific protectable item representing SQL Database. + public partial class VmWorkloadSqlDatabaseProtectableItem : VmWorkloadProtectableItem { - /// Initializes a new instance of AzureVmWorkloadSAPAseSystemProtectableItem. - public AzureVmWorkloadSAPAseSystemProtectableItem() + /// Initializes a new instance of VmWorkloadSqlDatabaseProtectableItem. + public VmWorkloadSqlDatabaseProtectableItem() { - ProtectableItemType = "SAPAseSystem"; + ProtectableItemType = "SQLDataBase"; } - /// Initializes a new instance of AzureVmWorkloadSAPAseSystemProtectableItem. + /// Initializes a new instance of VmWorkloadSqlDatabaseProtectableItem. /// Type of backup management to backup an item. /// Type of workload for the backup management. /// Type of the backup item. @@ -30,12 +30,12 @@ public AzureVmWorkloadSAPAseSystemProtectableItem() /// Host/Cluster Name for instance or AG. /// Indicates if protectable item is auto-protectable. /// Indicates if protectable item is auto-protected. - /// For instance or AG, indicates number of DB's present. - /// For instance or AG, indicates number of DB's to be protected. - /// Pre-backup validation for protectable objects. - internal AzureVmWorkloadSAPAseSystemProtectableItem(string backupManagementType, string workloadType, string protectableItemType, string friendlyName, ProtectionStatus? protectionState, string parentName, string parentUniqueName, string serverName, bool? isAutoProtectable, bool? isAutoProtected, int? subinquireditemcount, int? subprotectableitemcount, PreBackupValidation prebackupvalidation) : base(backupManagementType, workloadType, protectableItemType, friendlyName, protectionState, parentName, parentUniqueName, serverName, isAutoProtectable, isAutoProtected, subinquireditemcount, subprotectableitemcount, prebackupvalidation) + /// For instance or AG, indicates number of DB's present. + /// For instance or AG, indicates number of DB's to be protected. + /// Pre-backup validation for protectable objects. + internal VmWorkloadSqlDatabaseProtectableItem(string backupManagementType, string workloadType, string protectableItemType, string friendlyName, BackupProtectionStatus? protectionState, string parentName, string parentUniqueName, string serverName, bool? isAutoProtectable, bool? isAutoProtected, int? subInquiredItemCount, int? subProtectableItemCount, PreBackupValidation preBackupValidation) : base(backupManagementType, workloadType, protectableItemType, friendlyName, protectionState, parentName, parentUniqueName, serverName, isAutoProtectable, isAutoProtected, subInquiredItemCount, subProtectableItemCount, preBackupValidation) { - ProtectableItemType = protectableItemType ?? "SAPAseSystem"; + ProtectableItemType = protectableItemType ?? "SQLDataBase"; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSQLDatabaseProtectedItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlDatabaseProtectedItem.Serialization.cs similarity index 83% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSQLDatabaseProtectedItem.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlDatabaseProtectedItem.Serialization.cs index 2cd81f8afd1c4..969b8ef25e61d 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSQLDatabaseProtectedItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlDatabaseProtectedItem.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureVmWorkloadSQLDatabaseProtectedItem : IUtf8JsonSerializable + public partial class VmWorkloadSqlDatabaseProtectedItem : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -95,10 +95,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("policyId"u8); writer.WriteStringValue(PolicyId); } - if (Optional.IsDefined(LastRecoveryPoint)) + if (Optional.IsDefined(LastRecoverOn)) { writer.WritePropertyName("lastRecoveryPoint"u8); - writer.WriteStringValue(LastRecoveryPoint.Value, "O"); + writer.WriteStringValue(LastRecoverOn.Value, "O"); } if (Optional.IsDefined(BackupSetName)) { @@ -110,10 +110,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("createMode"u8); writer.WriteStringValue(CreateMode.Value.ToString()); } - if (Optional.IsDefined(DeferredDeleteTimeInUTC)) + if (Optional.IsDefined(DeferredDeletedOn)) { writer.WritePropertyName("deferredDeleteTimeInUTC"u8); - writer.WriteStringValue(DeferredDeleteTimeInUTC.Value, "O"); + writer.WriteStringValue(DeferredDeletedOn.Value, "O"); } if (Optional.IsDefined(IsScheduledForDeferredDelete)) { @@ -163,30 +163,30 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureVmWorkloadSQLDatabaseProtectedItem DeserializeAzureVmWorkloadSQLDatabaseProtectedItem(JsonElement element) + internal static VmWorkloadSqlDatabaseProtectedItem DeserializeVmWorkloadSqlDatabaseProtectedItem(JsonElement element) { Optional friendlyName = default; Optional serverName = default; Optional parentName = default; Optional parentType = default; Optional protectionStatus = default; - Optional protectionState = default; + Optional protectionState = default; Optional lastBackupStatus = default; Optional lastBackupTime = default; - Optional lastBackupErrorDetail = default; + Optional lastBackupErrorDetail = default; Optional protectedItemDataSourceId = default; - Optional protectedItemHealthStatus = default; - Optional extendedInfo = default; - Optional> kpisHealths = default; + Optional protectedItemHealthStatus = default; + Optional extendedInfo = default; + Optional> kpisHealths = default; string protectedItemType = default; Optional backupManagementType = default; - Optional workloadType = default; + Optional workloadType = default; Optional containerName = default; - Optional sourceResourceId = default; - Optional policyId = default; + Optional sourceResourceId = default; + Optional policyId = default; Optional lastRecoveryPoint = default; Optional backupSetName = default; - Optional createMode = default; + Optional createMode = default; Optional deferredDeleteTimeInUTC = default; Optional isScheduledForDeferredDelete = default; Optional deferredDeleteTimeRemaining = default; @@ -230,7 +230,7 @@ internal static AzureVmWorkloadSQLDatabaseProtectedItem DeserializeAzureVmWorklo property.ThrowNonNullablePropertyIsNull(); continue; } - protectionState = new ProtectionState(property.Value.GetString()); + protectionState = new BackupProtectionState(property.Value.GetString()); continue; } if (property.NameEquals("lastBackupStatus"u8)) @@ -260,7 +260,7 @@ internal static AzureVmWorkloadSQLDatabaseProtectedItem DeserializeAzureVmWorklo property.ThrowNonNullablePropertyIsNull(); continue; } - lastBackupErrorDetail = ErrorDetail.DeserializeErrorDetail(property.Value); + lastBackupErrorDetail = BackupErrorDetail.DeserializeBackupErrorDetail(property.Value); continue; } if (property.NameEquals("protectedItemDataSourceId"u8)) @@ -275,7 +275,7 @@ internal static AzureVmWorkloadSQLDatabaseProtectedItem DeserializeAzureVmWorklo property.ThrowNonNullablePropertyIsNull(); continue; } - protectedItemHealthStatus = new ProtectedItemHealthStatus(property.Value.GetString()); + protectedItemHealthStatus = new VmWorkloadProtectedItemHealthStatus(property.Value.GetString()); continue; } if (property.NameEquals("extendedInfo"u8)) @@ -285,7 +285,7 @@ internal static AzureVmWorkloadSQLDatabaseProtectedItem DeserializeAzureVmWorklo property.ThrowNonNullablePropertyIsNull(); continue; } - extendedInfo = AzureVmWorkloadProtectedItemExtendedInfo.DeserializeAzureVmWorkloadProtectedItemExtendedInfo(property.Value); + extendedInfo = VmWorkloadProtectedItemExtendedInfo.DeserializeVmWorkloadProtectedItemExtendedInfo(property.Value); continue; } if (property.NameEquals("kpisHealths"u8)) @@ -295,10 +295,10 @@ internal static AzureVmWorkloadSQLDatabaseProtectedItem DeserializeAzureVmWorklo property.ThrowNonNullablePropertyIsNull(); continue; } - Dictionary dictionary = new Dictionary(); + Dictionary dictionary = new Dictionary(); foreach (var property0 in property.Value.EnumerateObject()) { - dictionary.Add(property0.Name, KPIResourceHealthDetails.DeserializeKPIResourceHealthDetails(property0.Value)); + dictionary.Add(property0.Name, KpiResourceHealthDetails.DeserializeKpiResourceHealthDetails(property0.Value)); } kpisHealths = dictionary; continue; @@ -325,7 +325,7 @@ internal static AzureVmWorkloadSQLDatabaseProtectedItem DeserializeAzureVmWorklo property.ThrowNonNullablePropertyIsNull(); continue; } - workloadType = new DataSourceType(property.Value.GetString()); + workloadType = new BackupDataSourceType(property.Value.GetString()); continue; } if (property.NameEquals("containerName"u8)) @@ -335,12 +335,22 @@ internal static AzureVmWorkloadSQLDatabaseProtectedItem DeserializeAzureVmWorklo } if (property.NameEquals("sourceResourceId"u8)) { - sourceResourceId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + sourceResourceId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("policyId"u8)) { - policyId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + policyId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("lastRecoveryPoint"u8)) @@ -365,7 +375,7 @@ internal static AzureVmWorkloadSQLDatabaseProtectedItem DeserializeAzureVmWorklo property.ThrowNonNullablePropertyIsNull(); continue; } - createMode = new CreateMode(property.Value.GetString()); + createMode = new BackupCreateMode(property.Value.GetString()); continue; } if (property.NameEquals("deferredDeleteTimeInUTC"u8)) @@ -454,7 +464,7 @@ internal static AzureVmWorkloadSQLDatabaseProtectedItem DeserializeAzureVmWorklo continue; } } - return new AzureVmWorkloadSQLDatabaseProtectedItem(protectedItemType, Optional.ToNullable(backupManagementType), Optional.ToNullable(workloadType), containerName.Value, sourceResourceId.Value, policyId.Value, Optional.ToNullable(lastRecoveryPoint), backupSetName.Value, Optional.ToNullable(createMode), Optional.ToNullable(deferredDeleteTimeInUTC), Optional.ToNullable(isScheduledForDeferredDelete), deferredDeleteTimeRemaining.Value, Optional.ToNullable(isDeferredDeleteScheduleUpcoming), Optional.ToNullable(isRehydrate), Optional.ToList(resourceGuardOperationRequests), Optional.ToNullable(isArchiveEnabled), policyName.Value, Optional.ToNullable(softDeleteRetentionPeriod), friendlyName.Value, serverName.Value, parentName.Value, parentType.Value, protectionStatus.Value, Optional.ToNullable(protectionState), Optional.ToNullable(lastBackupStatus), Optional.ToNullable(lastBackupTime), lastBackupErrorDetail.Value, protectedItemDataSourceId.Value, Optional.ToNullable(protectedItemHealthStatus), extendedInfo.Value, Optional.ToDictionary(kpisHealths)); + return new VmWorkloadSqlDatabaseProtectedItem(protectedItemType, Optional.ToNullable(backupManagementType), Optional.ToNullable(workloadType), containerName.Value, sourceResourceId.Value, policyId.Value, Optional.ToNullable(lastRecoveryPoint), backupSetName.Value, Optional.ToNullable(createMode), Optional.ToNullable(deferredDeleteTimeInUTC), Optional.ToNullable(isScheduledForDeferredDelete), deferredDeleteTimeRemaining.Value, Optional.ToNullable(isDeferredDeleteScheduleUpcoming), Optional.ToNullable(isRehydrate), Optional.ToList(resourceGuardOperationRequests), Optional.ToNullable(isArchiveEnabled), policyName.Value, Optional.ToNullable(softDeleteRetentionPeriod), friendlyName.Value, serverName.Value, parentName.Value, parentType.Value, protectionStatus.Value, Optional.ToNullable(protectionState), Optional.ToNullable(lastBackupStatus), Optional.ToNullable(lastBackupTime), lastBackupErrorDetail.Value, protectedItemDataSourceId.Value, Optional.ToNullable(protectedItemHealthStatus), extendedInfo.Value, Optional.ToDictionary(kpisHealths)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSQLDatabaseProtectedItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlDatabaseProtectedItem.cs similarity index 62% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSQLDatabaseProtectedItem.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlDatabaseProtectedItem.cs index 0b41a35caa229..9ef6087128f9e 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSQLDatabaseProtectedItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlDatabaseProtectedItem.cs @@ -7,29 +7,30 @@ using System; using System.Collections.Generic; +using Azure.Core; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Azure VM workload-specific protected item representing SQL Database. - public partial class AzureVmWorkloadSQLDatabaseProtectedItem : AzureVmWorkloadProtectedItem + public partial class VmWorkloadSqlDatabaseProtectedItem : VmWorkloadProtectedItem { - /// Initializes a new instance of AzureVmWorkloadSQLDatabaseProtectedItem. - public AzureVmWorkloadSQLDatabaseProtectedItem() + /// Initializes a new instance of VmWorkloadSqlDatabaseProtectedItem. + public VmWorkloadSqlDatabaseProtectedItem() { ProtectedItemType = "AzureVmWorkloadSQLDatabase"; } - /// Initializes a new instance of AzureVmWorkloadSQLDatabaseProtectedItem. + /// Initializes a new instance of VmWorkloadSqlDatabaseProtectedItem. /// backup item type. /// Type of backup management for the backed up item. /// Type of workload this item represents. /// Unique name of container. /// ARM ID of the resource to be backed up. /// ID of the backup policy with which this item is backed up. - /// Timestamp when the last (latest) backup copy was created for this backup item. + /// Timestamp when the last (latest) backup copy was created for this backup item. /// Name of the backup set the backup item belongs to. /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. - /// Time for deferred deletion in UTC. + /// Time for deferred deletion in UTC. /// Flag to identify whether the DS is scheduled for deferred delete. /// Time remaining before the DS marked for deferred delete is permanently deleted. /// Flag to identify whether the deferred deleted DS is to be purged soon. @@ -51,7 +52,7 @@ public AzureVmWorkloadSQLDatabaseProtectedItem() /// Health status of the backup item, evaluated based on last heartbeat received. /// Additional information for this backup item. /// Health details of different KPIs. - internal AzureVmWorkloadSQLDatabaseProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, DataSourceType? workloadType, string containerName, string sourceResourceId, string policyId, DateTimeOffset? lastRecoveryPoint, string backupSetName, CreateMode? createMode, DateTimeOffset? deferredDeleteTimeInUTC, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriod, string friendlyName, string serverName, string parentName, string parentType, string protectionStatus, ProtectionState? protectionState, LastBackupStatus? lastBackupStatus, DateTimeOffset? lastBackupOn, ErrorDetail lastBackupErrorDetail, string protectedItemDataSourceId, ProtectedItemHealthStatus? protectedItemHealthStatus, AzureVmWorkloadProtectedItemExtendedInfo extendedInfo, IDictionary kpisHealths) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, deferredDeleteTimeInUTC, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriod, friendlyName, serverName, parentName, parentType, protectionStatus, protectionState, lastBackupStatus, lastBackupOn, lastBackupErrorDetail, protectedItemDataSourceId, protectedItemHealthStatus, extendedInfo, kpisHealths) + internal VmWorkloadSqlDatabaseProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, ResourceIdentifier policyId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriod, string friendlyName, string serverName, string parentName, string parentType, string protectionStatus, BackupProtectionState? protectionState, LastBackupStatus? lastBackupStatus, DateTimeOffset? lastBackupOn, BackupErrorDetail lastBackupErrorDetail, string protectedItemDataSourceId, VmWorkloadProtectedItemHealthStatus? protectedItemHealthStatus, VmWorkloadProtectedItemExtendedInfo extendedInfo, IDictionary kpisHealths) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriod, friendlyName, serverName, parentName, parentType, protectionStatus, protectionState, lastBackupStatus, lastBackupOn, lastBackupErrorDetail, protectedItemDataSourceId, protectedItemHealthStatus, extendedInfo, kpisHealths) { ProtectedItemType = protectedItemType ?? "AzureVmWorkloadSQLDatabase"; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlDatabaseWorkloadItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlDatabaseWorkloadItem.Serialization.cs new file mode 100644 index 0000000000000..a74897ead5630 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlDatabaseWorkloadItem.Serialization.cs @@ -0,0 +1,156 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Models +{ + public partial class VmWorkloadSqlDatabaseWorkloadItem : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(ParentName)) + { + writer.WritePropertyName("parentName"u8); + writer.WriteStringValue(ParentName); + } + if (Optional.IsDefined(ServerName)) + { + writer.WritePropertyName("serverName"u8); + writer.WriteStringValue(ServerName); + } + if (Optional.IsDefined(IsAutoProtectable)) + { + writer.WritePropertyName("isAutoProtectable"u8); + writer.WriteBooleanValue(IsAutoProtectable.Value); + } + if (Optional.IsDefined(SubInquiredItemCount)) + { + writer.WritePropertyName("subinquireditemcount"u8); + writer.WriteNumberValue(SubInquiredItemCount.Value); + } + if (Optional.IsDefined(SubWorkloadItemCount)) + { + writer.WritePropertyName("subWorkloadItemCount"u8); + writer.WriteNumberValue(SubWorkloadItemCount.Value); + } + if (Optional.IsDefined(BackupManagementType)) + { + writer.WritePropertyName("backupManagementType"u8); + writer.WriteStringValue(BackupManagementType); + } + if (Optional.IsDefined(WorkloadType)) + { + writer.WritePropertyName("workloadType"u8); + writer.WriteStringValue(WorkloadType); + } + writer.WritePropertyName("workloadItemType"u8); + writer.WriteStringValue(WorkloadItemType); + if (Optional.IsDefined(FriendlyName)) + { + writer.WritePropertyName("friendlyName"u8); + writer.WriteStringValue(FriendlyName); + } + if (Optional.IsDefined(ProtectionState)) + { + writer.WritePropertyName("protectionState"u8); + writer.WriteStringValue(ProtectionState.Value.ToString()); + } + writer.WriteEndObject(); + } + + internal static VmWorkloadSqlDatabaseWorkloadItem DeserializeVmWorkloadSqlDatabaseWorkloadItem(JsonElement element) + { + Optional parentName = default; + Optional serverName = default; + Optional isAutoProtectable = default; + Optional subinquireditemcount = default; + Optional subWorkloadItemCount = default; + Optional backupManagementType = default; + Optional workloadType = default; + string workloadItemType = default; + Optional friendlyName = default; + Optional protectionState = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("parentName"u8)) + { + parentName = property.Value.GetString(); + continue; + } + if (property.NameEquals("serverName"u8)) + { + serverName = property.Value.GetString(); + continue; + } + if (property.NameEquals("isAutoProtectable"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + isAutoProtectable = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("subinquireditemcount"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + subinquireditemcount = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("subWorkloadItemCount"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + subWorkloadItemCount = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("backupManagementType"u8)) + { + backupManagementType = property.Value.GetString(); + continue; + } + if (property.NameEquals("workloadType"u8)) + { + workloadType = property.Value.GetString(); + continue; + } + if (property.NameEquals("workloadItemType"u8)) + { + workloadItemType = property.Value.GetString(); + continue; + } + if (property.NameEquals("friendlyName"u8)) + { + friendlyName = property.Value.GetString(); + continue; + } + if (property.NameEquals("protectionState"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + protectionState = new BackupProtectionStatus(property.Value.GetString()); + continue; + } + } + return new VmWorkloadSqlDatabaseWorkloadItem(backupManagementType.Value, workloadType.Value, workloadItemType, friendlyName.Value, Optional.ToNullable(protectionState), parentName.Value, serverName.Value, Optional.ToNullable(isAutoProtectable), Optional.ToNullable(subinquireditemcount), Optional.ToNullable(subWorkloadItemCount)); + } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSQLDatabaseWorkloadItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlDatabaseWorkloadItem.cs similarity index 59% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSQLDatabaseWorkloadItem.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlDatabaseWorkloadItem.cs index d1d70811ed8e3..4dc4be43ce1a8 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSQLDatabaseWorkloadItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlDatabaseWorkloadItem.cs @@ -8,15 +8,15 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Azure VM workload-specific workload item representing SQL Database. - public partial class AzureVmWorkloadSQLDatabaseWorkloadItem : AzureVmWorkloadItem + public partial class VmWorkloadSqlDatabaseWorkloadItem : VmWorkloadItem { - /// Initializes a new instance of AzureVmWorkloadSQLDatabaseWorkloadItem. - public AzureVmWorkloadSQLDatabaseWorkloadItem() + /// Initializes a new instance of VmWorkloadSqlDatabaseWorkloadItem. + public VmWorkloadSqlDatabaseWorkloadItem() { WorkloadItemType = "SQLDataBase"; } - /// Initializes a new instance of AzureVmWorkloadSQLDatabaseWorkloadItem. + /// Initializes a new instance of VmWorkloadSqlDatabaseWorkloadItem. /// Type of backup management to backup an item. /// Type of workload for the backup management. /// Type of the backup item. @@ -25,9 +25,9 @@ public AzureVmWorkloadSQLDatabaseWorkloadItem() /// Name for instance or AG. /// Host/Cluster Name for instance or AG. /// Indicates if workload item is auto-protectable. - /// For instance or AG, indicates number of DB's present. + /// For instance or AG, indicates number of DB's present. /// For instance or AG, indicates number of DB's to be protected. - internal AzureVmWorkloadSQLDatabaseWorkloadItem(string backupManagementType, string workloadType, string workloadItemType, string friendlyName, ProtectionStatus? protectionState, string parentName, string serverName, bool? isAutoProtectable, int? subinquireditemcount, int? subWorkloadItemCount) : base(backupManagementType, workloadType, workloadItemType, friendlyName, protectionState, parentName, serverName, isAutoProtectable, subinquireditemcount, subWorkloadItemCount) + internal VmWorkloadSqlDatabaseWorkloadItem(string backupManagementType, string workloadType, string workloadItemType, string friendlyName, BackupProtectionStatus? protectionState, string parentName, string serverName, bool? isAutoProtectable, int? subInquiredItemCount, int? subWorkloadItemCount) : base(backupManagementType, workloadType, workloadItemType, friendlyName, protectionState, parentName, serverName, isAutoProtectable, subInquiredItemCount, subWorkloadItemCount) { WorkloadItemType = workloadItemType ?? "SQLDataBase"; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlInstanceProtectableItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlInstanceProtectableItem.Serialization.cs new file mode 100644 index 0000000000000..add9efc40125c --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlInstanceProtectableItem.Serialization.cs @@ -0,0 +1,199 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Models +{ + public partial class VmWorkloadSqlInstanceProtectableItem : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(ParentName)) + { + writer.WritePropertyName("parentName"u8); + writer.WriteStringValue(ParentName); + } + if (Optional.IsDefined(ParentUniqueName)) + { + writer.WritePropertyName("parentUniqueName"u8); + writer.WriteStringValue(ParentUniqueName); + } + if (Optional.IsDefined(ServerName)) + { + writer.WritePropertyName("serverName"u8); + writer.WriteStringValue(ServerName); + } + if (Optional.IsDefined(IsAutoProtectable)) + { + writer.WritePropertyName("isAutoProtectable"u8); + writer.WriteBooleanValue(IsAutoProtectable.Value); + } + if (Optional.IsDefined(IsAutoProtected)) + { + writer.WritePropertyName("isAutoProtected"u8); + writer.WriteBooleanValue(IsAutoProtected.Value); + } + if (Optional.IsDefined(SubInquiredItemCount)) + { + writer.WritePropertyName("subinquireditemcount"u8); + writer.WriteNumberValue(SubInquiredItemCount.Value); + } + if (Optional.IsDefined(SubProtectableItemCount)) + { + writer.WritePropertyName("subprotectableitemcount"u8); + writer.WriteNumberValue(SubProtectableItemCount.Value); + } + if (Optional.IsDefined(PreBackupValidation)) + { + writer.WritePropertyName("prebackupvalidation"u8); + writer.WriteObjectValue(PreBackupValidation); + } + if (Optional.IsDefined(BackupManagementType)) + { + writer.WritePropertyName("backupManagementType"u8); + writer.WriteStringValue(BackupManagementType); + } + if (Optional.IsDefined(WorkloadType)) + { + writer.WritePropertyName("workloadType"u8); + writer.WriteStringValue(WorkloadType); + } + writer.WritePropertyName("protectableItemType"u8); + writer.WriteStringValue(ProtectableItemType); + if (Optional.IsDefined(FriendlyName)) + { + writer.WritePropertyName("friendlyName"u8); + writer.WriteStringValue(FriendlyName); + } + if (Optional.IsDefined(ProtectionState)) + { + writer.WritePropertyName("protectionState"u8); + writer.WriteStringValue(ProtectionState.Value.ToString()); + } + writer.WriteEndObject(); + } + + internal static VmWorkloadSqlInstanceProtectableItem DeserializeVmWorkloadSqlInstanceProtectableItem(JsonElement element) + { + Optional parentName = default; + Optional parentUniqueName = default; + Optional serverName = default; + Optional isAutoProtectable = default; + Optional isAutoProtected = default; + Optional subinquireditemcount = default; + Optional subprotectableitemcount = default; + Optional prebackupvalidation = default; + Optional backupManagementType = default; + Optional workloadType = default; + string protectableItemType = default; + Optional friendlyName = default; + Optional protectionState = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("parentName"u8)) + { + parentName = property.Value.GetString(); + continue; + } + if (property.NameEquals("parentUniqueName"u8)) + { + parentUniqueName = property.Value.GetString(); + continue; + } + if (property.NameEquals("serverName"u8)) + { + serverName = property.Value.GetString(); + continue; + } + if (property.NameEquals("isAutoProtectable"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + isAutoProtectable = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("isAutoProtected"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + isAutoProtected = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("subinquireditemcount"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + subinquireditemcount = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("subprotectableitemcount"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + subprotectableitemcount = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("prebackupvalidation"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + prebackupvalidation = PreBackupValidation.DeserializePreBackupValidation(property.Value); + continue; + } + if (property.NameEquals("backupManagementType"u8)) + { + backupManagementType = property.Value.GetString(); + continue; + } + if (property.NameEquals("workloadType"u8)) + { + workloadType = property.Value.GetString(); + continue; + } + if (property.NameEquals("protectableItemType"u8)) + { + protectableItemType = property.Value.GetString(); + continue; + } + if (property.NameEquals("friendlyName"u8)) + { + friendlyName = property.Value.GetString(); + continue; + } + if (property.NameEquals("protectionState"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + protectionState = new BackupProtectionStatus(property.Value.GetString()); + continue; + } + } + return new VmWorkloadSqlInstanceProtectableItem(backupManagementType.Value, workloadType.Value, protectableItemType, friendlyName.Value, Optional.ToNullable(protectionState), parentName.Value, parentUniqueName.Value, serverName.Value, Optional.ToNullable(isAutoProtectable), Optional.ToNullable(isAutoProtected), Optional.ToNullable(subinquireditemcount), Optional.ToNullable(subprotectableitemcount), prebackupvalidation.Value); + } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSQLInstanceProtectableItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlInstanceProtectableItem.cs similarity index 58% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSQLInstanceProtectableItem.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlInstanceProtectableItem.cs index 9625b82e41a9c..d97c42b8ce483 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSQLInstanceProtectableItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlInstanceProtectableItem.cs @@ -8,15 +8,15 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Azure VM workload-specific protectable item representing SQL Instance. - public partial class AzureVmWorkloadSQLInstanceProtectableItem : AzureVmWorkloadProtectableItem + public partial class VmWorkloadSqlInstanceProtectableItem : VmWorkloadProtectableItem { - /// Initializes a new instance of AzureVmWorkloadSQLInstanceProtectableItem. - public AzureVmWorkloadSQLInstanceProtectableItem() + /// Initializes a new instance of VmWorkloadSqlInstanceProtectableItem. + public VmWorkloadSqlInstanceProtectableItem() { ProtectableItemType = "SQLInstance"; } - /// Initializes a new instance of AzureVmWorkloadSQLInstanceProtectableItem. + /// Initializes a new instance of VmWorkloadSqlInstanceProtectableItem. /// Type of backup management to backup an item. /// Type of workload for the backup management. /// Type of the backup item. @@ -30,10 +30,10 @@ public AzureVmWorkloadSQLInstanceProtectableItem() /// Host/Cluster Name for instance or AG. /// Indicates if protectable item is auto-protectable. /// Indicates if protectable item is auto-protected. - /// For instance or AG, indicates number of DB's present. - /// For instance or AG, indicates number of DB's to be protected. - /// Pre-backup validation for protectable objects. - internal AzureVmWorkloadSQLInstanceProtectableItem(string backupManagementType, string workloadType, string protectableItemType, string friendlyName, ProtectionStatus? protectionState, string parentName, string parentUniqueName, string serverName, bool? isAutoProtectable, bool? isAutoProtected, int? subinquireditemcount, int? subprotectableitemcount, PreBackupValidation prebackupvalidation) : base(backupManagementType, workloadType, protectableItemType, friendlyName, protectionState, parentName, parentUniqueName, serverName, isAutoProtectable, isAutoProtected, subinquireditemcount, subprotectableitemcount, prebackupvalidation) + /// For instance or AG, indicates number of DB's present. + /// For instance or AG, indicates number of DB's to be protected. + /// Pre-backup validation for protectable objects. + internal VmWorkloadSqlInstanceProtectableItem(string backupManagementType, string workloadType, string protectableItemType, string friendlyName, BackupProtectionStatus? protectionState, string parentName, string parentUniqueName, string serverName, bool? isAutoProtectable, bool? isAutoProtected, int? subInquiredItemCount, int? subProtectableItemCount, PreBackupValidation preBackupValidation) : base(backupManagementType, workloadType, protectableItemType, friendlyName, protectionState, parentName, parentUniqueName, serverName, isAutoProtectable, isAutoProtected, subInquiredItemCount, subProtectableItemCount, preBackupValidation) { ProtectableItemType = protectableItemType ?? "SQLInstance"; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSQLInstanceWorkloadItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlInstanceWorkloadItem.Serialization.cs similarity index 85% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSQLInstanceWorkloadItem.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlInstanceWorkloadItem.Serialization.cs index 9e717419a7d84..c2e97e70c0093 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSQLInstanceWorkloadItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlInstanceWorkloadItem.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureVmWorkloadSQLInstanceWorkloadItem : IUtf8JsonSerializable + public partial class VmWorkloadSqlInstanceWorkloadItem : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -41,10 +41,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("isAutoProtectable"u8); writer.WriteBooleanValue(IsAutoProtectable.Value); } - if (Optional.IsDefined(Subinquireditemcount)) + if (Optional.IsDefined(SubInquiredItemCount)) { writer.WritePropertyName("subinquireditemcount"u8); - writer.WriteNumberValue(Subinquireditemcount.Value); + writer.WriteNumberValue(SubInquiredItemCount.Value); } if (Optional.IsDefined(SubWorkloadItemCount)) { @@ -76,9 +76,9 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureVmWorkloadSQLInstanceWorkloadItem DeserializeAzureVmWorkloadSQLInstanceWorkloadItem(JsonElement element) + internal static VmWorkloadSqlInstanceWorkloadItem DeserializeVmWorkloadSqlInstanceWorkloadItem(JsonElement element) { - Optional> dataDirectoryPaths = default; + Optional> dataDirectoryPaths = default; Optional parentName = default; Optional serverName = default; Optional isAutoProtectable = default; @@ -88,7 +88,7 @@ internal static AzureVmWorkloadSQLInstanceWorkloadItem DeserializeAzureVmWorkloa Optional workloadType = default; string workloadItemType = default; Optional friendlyName = default; - Optional protectionState = default; + Optional protectionState = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("dataDirectoryPaths"u8)) @@ -98,10 +98,10 @@ internal static AzureVmWorkloadSQLInstanceWorkloadItem DeserializeAzureVmWorkloa property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(SQLDataDirectory.DeserializeSQLDataDirectory(item)); + array.Add(SqlDataDirectory.DeserializeSqlDataDirectory(item)); } dataDirectoryPaths = array; continue; @@ -173,11 +173,11 @@ internal static AzureVmWorkloadSQLInstanceWorkloadItem DeserializeAzureVmWorkloa property.ThrowNonNullablePropertyIsNull(); continue; } - protectionState = new ProtectionStatus(property.Value.GetString()); + protectionState = new BackupProtectionStatus(property.Value.GetString()); continue; } } - return new AzureVmWorkloadSQLInstanceWorkloadItem(backupManagementType.Value, workloadType.Value, workloadItemType, friendlyName.Value, Optional.ToNullable(protectionState), parentName.Value, serverName.Value, Optional.ToNullable(isAutoProtectable), Optional.ToNullable(subinquireditemcount), Optional.ToNullable(subWorkloadItemCount), Optional.ToList(dataDirectoryPaths)); + return new VmWorkloadSqlInstanceWorkloadItem(backupManagementType.Value, workloadType.Value, workloadItemType, friendlyName.Value, Optional.ToNullable(protectionState), parentName.Value, serverName.Value, Optional.ToNullable(isAutoProtectable), Optional.ToNullable(subinquireditemcount), Optional.ToNullable(subWorkloadItemCount), Optional.ToList(dataDirectoryPaths)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSQLInstanceWorkloadItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlInstanceWorkloadItem.cs similarity index 60% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSQLInstanceWorkloadItem.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlInstanceWorkloadItem.cs index c67a1b76c53d9..29289b0ac576d 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSQLInstanceWorkloadItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadSqlInstanceWorkloadItem.cs @@ -11,16 +11,16 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Azure VM workload-specific workload item representing SQL Instance. - public partial class AzureVmWorkloadSQLInstanceWorkloadItem : AzureVmWorkloadItem + public partial class VmWorkloadSqlInstanceWorkloadItem : VmWorkloadItem { - /// Initializes a new instance of AzureVmWorkloadSQLInstanceWorkloadItem. - public AzureVmWorkloadSQLInstanceWorkloadItem() + /// Initializes a new instance of VmWorkloadSqlInstanceWorkloadItem. + public VmWorkloadSqlInstanceWorkloadItem() { - DataDirectoryPaths = new ChangeTrackingList(); + DataDirectoryPaths = new ChangeTrackingList(); WorkloadItemType = "SQLInstance"; } - /// Initializes a new instance of AzureVmWorkloadSQLInstanceWorkloadItem. + /// Initializes a new instance of VmWorkloadSqlInstanceWorkloadItem. /// Type of backup management to backup an item. /// Type of workload for the backup management. /// Type of the backup item. @@ -29,16 +29,16 @@ public AzureVmWorkloadSQLInstanceWorkloadItem() /// Name for instance or AG. /// Host/Cluster Name for instance or AG. /// Indicates if workload item is auto-protectable. - /// For instance or AG, indicates number of DB's present. + /// For instance or AG, indicates number of DB's present. /// For instance or AG, indicates number of DB's to be protected. /// Data Directory Paths for default directories. - internal AzureVmWorkloadSQLInstanceWorkloadItem(string backupManagementType, string workloadType, string workloadItemType, string friendlyName, ProtectionStatus? protectionState, string parentName, string serverName, bool? isAutoProtectable, int? subinquireditemcount, int? subWorkloadItemCount, IList dataDirectoryPaths) : base(backupManagementType, workloadType, workloadItemType, friendlyName, protectionState, parentName, serverName, isAutoProtectable, subinquireditemcount, subWorkloadItemCount) + internal VmWorkloadSqlInstanceWorkloadItem(string backupManagementType, string workloadType, string workloadItemType, string friendlyName, BackupProtectionStatus? protectionState, string parentName, string serverName, bool? isAutoProtectable, int? subInquiredItemCount, int? subWorkloadItemCount, IList dataDirectoryPaths) : base(backupManagementType, workloadType, workloadItemType, friendlyName, protectionState, parentName, serverName, isAutoProtectable, subInquiredItemCount, subWorkloadItemCount) { DataDirectoryPaths = dataDirectoryPaths; WorkloadItemType = workloadItemType ?? "SQLInstance"; } /// Data Directory Paths for default directories. - public IList DataDirectoryPaths { get; } + public IList DataDirectoryPaths { get; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WeekOfMonth.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WeekOfMonth.Serialization.cs deleted file mode 100644 index 9f9162b568120..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WeekOfMonth.Serialization.cs +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - internal static partial class WeekOfMonthExtensions - { - public static string ToSerialString(this WeekOfMonth value) => value switch - { - WeekOfMonth.First => "First", - WeekOfMonth.Second => "Second", - WeekOfMonth.Third => "Third", - WeekOfMonth.Fourth => "Fourth", - WeekOfMonth.Last => "Last", - WeekOfMonth.Invalid => "Invalid", - _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown WeekOfMonth value.") - }; - - public static WeekOfMonth ToWeekOfMonth(this string value) - { - if (string.Equals(value, "First", StringComparison.InvariantCultureIgnoreCase)) return WeekOfMonth.First; - if (string.Equals(value, "Second", StringComparison.InvariantCultureIgnoreCase)) return WeekOfMonth.Second; - if (string.Equals(value, "Third", StringComparison.InvariantCultureIgnoreCase)) return WeekOfMonth.Third; - if (string.Equals(value, "Fourth", StringComparison.InvariantCultureIgnoreCase)) return WeekOfMonth.Fourth; - if (string.Equals(value, "Last", StringComparison.InvariantCultureIgnoreCase)) return WeekOfMonth.Last; - if (string.Equals(value, "Invalid", StringComparison.InvariantCultureIgnoreCase)) return WeekOfMonth.Invalid; - throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown WeekOfMonth value."); - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WeeklyRetentionFormat.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WeeklyRetentionFormat.Serialization.cs index c48c2636a0463..e3c6b8feecee9 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WeeklyRetentionFormat.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WeeklyRetentionFormat.Serialization.cs @@ -41,8 +41,8 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) internal static WeeklyRetentionFormat DeserializeWeeklyRetentionFormat(JsonElement element) { - Optional> daysOfTheWeek = default; - Optional> weeksOfTheMonth = default; + Optional> daysOfTheWeek = default; + Optional> weeksOfTheMonth = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("daysOfTheWeek"u8)) @@ -52,10 +52,10 @@ internal static WeeklyRetentionFormat DeserializeWeeklyRetentionFormat(JsonEleme property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(item.GetString().ToDayOfWeek()); + array.Add(item.GetString().ToBackupDayOfWeek()); } daysOfTheWeek = array; continue; @@ -67,10 +67,10 @@ internal static WeeklyRetentionFormat DeserializeWeeklyRetentionFormat(JsonEleme property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(item.GetString().ToWeekOfMonth()); + array.Add(item.GetString().ToBackupWeekOfMonth()); } weeksOfTheMonth = array; continue; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WeeklyRetentionFormat.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WeeklyRetentionFormat.cs index 81adf9269ace8..be6ec3f584e71 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WeeklyRetentionFormat.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WeeklyRetentionFormat.cs @@ -16,22 +16,22 @@ public partial class WeeklyRetentionFormat /// Initializes a new instance of WeeklyRetentionFormat. public WeeklyRetentionFormat() { - DaysOfTheWeek = new ChangeTrackingList(); - WeeksOfTheMonth = new ChangeTrackingList(); + DaysOfTheWeek = new ChangeTrackingList(); + WeeksOfTheMonth = new ChangeTrackingList(); } /// Initializes a new instance of WeeklyRetentionFormat. /// List of days of the week. /// List of weeks of month. - internal WeeklyRetentionFormat(IList daysOfTheWeek, IList weeksOfTheMonth) + internal WeeklyRetentionFormat(IList daysOfTheWeek, IList weeksOfTheMonth) { DaysOfTheWeek = daysOfTheWeek; WeeksOfTheMonth = weeksOfTheMonth; } /// List of days of the week. - public IList DaysOfTheWeek { get; } + public IList DaysOfTheWeek { get; } /// List of weeks of month. - public IList WeeksOfTheMonth { get; } + public IList WeeksOfTheMonth { get; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WeeklyRetentionSchedule.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WeeklyRetentionSchedule.Serialization.cs index 8d97053fbed91..1a6dafdd7291d 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WeeklyRetentionSchedule.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WeeklyRetentionSchedule.Serialization.cs @@ -47,7 +47,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) internal static WeeklyRetentionSchedule DeserializeWeeklyRetentionSchedule(JsonElement element) { - Optional> daysOfTheWeek = default; + Optional> daysOfTheWeek = default; Optional> retentionTimes = default; Optional retentionDuration = default; foreach (var property in element.EnumerateObject()) @@ -59,10 +59,10 @@ internal static WeeklyRetentionSchedule DeserializeWeeklyRetentionSchedule(JsonE property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(item.GetString().ToDayOfWeek()); + array.Add(item.GetString().ToBackupDayOfWeek()); } daysOfTheWeek = array; continue; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WeeklyRetentionSchedule.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WeeklyRetentionSchedule.cs index 7c9073cdbe782..2fefb7019304a 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WeeklyRetentionSchedule.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WeeklyRetentionSchedule.cs @@ -17,7 +17,7 @@ public partial class WeeklyRetentionSchedule /// Initializes a new instance of WeeklyRetentionSchedule. public WeeklyRetentionSchedule() { - DaysOfTheWeek = new ChangeTrackingList(); + DaysOfTheWeek = new ChangeTrackingList(); RetentionTimes = new ChangeTrackingList(); } @@ -25,7 +25,7 @@ public WeeklyRetentionSchedule() /// List of days of week for weekly retention policy. /// Retention times of retention policy. /// Retention duration of retention Policy. - internal WeeklyRetentionSchedule(IList daysOfTheWeek, IList retentionTimes, RetentionDuration retentionDuration) + internal WeeklyRetentionSchedule(IList daysOfTheWeek, IList retentionTimes, RetentionDuration retentionDuration) { DaysOfTheWeek = daysOfTheWeek; RetentionTimes = retentionTimes; @@ -33,7 +33,7 @@ internal WeeklyRetentionSchedule(IList daysOfTheWeek, IList List of days of week for weekly retention policy. - public IList DaysOfTheWeek { get; } + public IList DaysOfTheWeek { get; } /// Retention times of retention policy. public IList RetentionTimes { get; } /// Retention duration of retention Policy. diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureRecoveryServiceVaultProtectionIntent.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadAutoProtectionIntent.Serialization.cs similarity index 66% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureRecoveryServiceVaultProtectionIntent.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadAutoProtectionIntent.Serialization.cs index c29628ad2cde4..570c7b87da9d3 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureRecoveryServiceVaultProtectionIntent.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadAutoProtectionIntent.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureRecoveryServiceVaultProtectionIntent : IUtf8JsonSerializable + public partial class WorkloadAutoProtectionIntent : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -45,22 +45,21 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureRecoveryServiceVaultProtectionIntent DeserializeAzureRecoveryServiceVaultProtectionIntent(JsonElement element) + internal static WorkloadAutoProtectionIntent DeserializeWorkloadAutoProtectionIntent(JsonElement element) { if (element.TryGetProperty("protectionIntentItemType", out JsonElement discriminator)) { switch (discriminator.GetString()) { - case "AzureWorkloadAutoProtectionIntent": return AzureWorkloadAutoProtectionIntent.DeserializeAzureWorkloadAutoProtectionIntent(element); - case "AzureWorkloadSQLAutoProtectionIntent": return AzureWorkloadSQLAutoProtectionIntent.DeserializeAzureWorkloadSQLAutoProtectionIntent(element); + case "AzureWorkloadSQLAutoProtectionIntent": return WorkloadSqlAutoProtectionIntent.DeserializeWorkloadSqlAutoProtectionIntent(element); } } ProtectionIntentItemType protectionIntentItemType = "AutoRest.CSharp.Output.Models.Types.EnumTypeValue"; Optional backupManagementType = default; - Optional sourceResourceId = default; - Optional itemId = default; - Optional policyId = default; - Optional protectionState = default; + Optional sourceResourceId = default; + Optional itemId = default; + Optional policyId = default; + Optional protectionState = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("protectionIntentItemType"u8)) @@ -80,17 +79,32 @@ internal static AzureRecoveryServiceVaultProtectionIntent DeserializeAzureRecove } if (property.NameEquals("sourceResourceId"u8)) { - sourceResourceId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + sourceResourceId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("itemId"u8)) { - itemId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + itemId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("policyId"u8)) { - policyId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + policyId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("protectionState"u8)) @@ -100,11 +114,11 @@ internal static AzureRecoveryServiceVaultProtectionIntent DeserializeAzureRecove property.ThrowNonNullablePropertyIsNull(); continue; } - protectionState = new ProtectionStatus(property.Value.GetString()); + protectionState = new BackupProtectionStatus(property.Value.GetString()); continue; } } - return new AzureRecoveryServiceVaultProtectionIntent(protectionIntentItemType, Optional.ToNullable(backupManagementType), sourceResourceId.Value, itemId.Value, policyId.Value, Optional.ToNullable(protectionState)); + return new WorkloadAutoProtectionIntent(protectionIntentItemType, Optional.ToNullable(backupManagementType), sourceResourceId.Value, itemId.Value, policyId.Value, Optional.ToNullable(protectionState)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadAutoProtectionIntent.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadAutoProtectionIntent.cs similarity index 51% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadAutoProtectionIntent.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadAutoProtectionIntent.cs index 90265a5a15998..7d5d8206f6973 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadAutoProtectionIntent.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadAutoProtectionIntent.cs @@ -5,29 +5,31 @@ #nullable disable +using Azure.Core; + namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// /// Azure Recovery Services Vault specific protection intent item. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . /// - public partial class AzureWorkloadAutoProtectionIntent : AzureRecoveryServiceVaultProtectionIntent + public partial class WorkloadAutoProtectionIntent : RecoveryServiceVaultProtectionIntent { - /// Initializes a new instance of AzureWorkloadAutoProtectionIntent. - public AzureWorkloadAutoProtectionIntent() + /// Initializes a new instance of WorkloadAutoProtectionIntent. + public WorkloadAutoProtectionIntent() { ProtectionIntentItemType = ProtectionIntentItemType.AzureWorkloadAutoProtectionIntent; } - /// Initializes a new instance of AzureWorkloadAutoProtectionIntent. + /// Initializes a new instance of WorkloadAutoProtectionIntent. /// backup protectionIntent type. /// Type of backup management for the backed up item. /// ARM ID of the resource to be backed up. /// ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId. /// ID of the backup policy with which this item is backed up. /// Backup state of this backup item. - internal AzureWorkloadAutoProtectionIntent(ProtectionIntentItemType protectionIntentItemType, BackupManagementType? backupManagementType, string sourceResourceId, string itemId, string policyId, ProtectionStatus? protectionState) : base(protectionIntentItemType, backupManagementType, sourceResourceId, itemId, policyId, protectionState) + internal WorkloadAutoProtectionIntent(ProtectionIntentItemType protectionIntentItemType, BackupManagementType? backupManagementType, ResourceIdentifier sourceResourceId, ResourceIdentifier itemId, ResourceIdentifier policyId, BackupProtectionStatus? protectionState) : base(protectionIntentItemType, backupManagementType, sourceResourceId, itemId, policyId, protectionState) { ProtectionIntentItemType = protectionIntentItemType; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadBackupRequest.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadBackupContent.Serialization.cs similarity index 84% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadBackupRequest.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadBackupContent.Serialization.cs index aa77674e638ca..898346d302dfc 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadBackupRequest.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadBackupContent.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureWorkloadBackupRequest : IUtf8JsonSerializable + public partial class WorkloadBackupContent : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -26,17 +26,17 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("enableCompression"u8); writer.WriteBooleanValue(EnableCompression.Value); } - if (Optional.IsDefined(RecoveryPointExpiryTimeInUTC)) + if (Optional.IsDefined(RecoveryPointExpireOn)) { writer.WritePropertyName("recoveryPointExpiryTimeInUTC"u8); - writer.WriteStringValue(RecoveryPointExpiryTimeInUTC.Value, "O"); + writer.WriteStringValue(RecoveryPointExpireOn.Value, "O"); } writer.WritePropertyName("objectType"u8); writer.WriteStringValue(ObjectType); writer.WriteEndObject(); } - internal static AzureWorkloadBackupRequest DeserializeAzureWorkloadBackupRequest(JsonElement element) + internal static WorkloadBackupContent DeserializeWorkloadBackupContent(JsonElement element) { Optional backupType = default; Optional enableCompression = default; @@ -80,7 +80,7 @@ internal static AzureWorkloadBackupRequest DeserializeAzureWorkloadBackupRequest continue; } } - return new AzureWorkloadBackupRequest(objectType, Optional.ToNullable(backupType), Optional.ToNullable(enableCompression), Optional.ToNullable(recoveryPointExpiryTimeInUTC)); + return new WorkloadBackupContent(objectType, Optional.ToNullable(backupType), Optional.ToNullable(enableCompression), Optional.ToNullable(recoveryPointExpiryTimeInUTC)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadBackupRequest.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadBackupContent.cs similarity index 63% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadBackupRequest.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadBackupContent.cs index 4bf141eb90ab1..765c4fe91505e 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadBackupRequest.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadBackupContent.cs @@ -10,24 +10,24 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// AzureWorkload workload-specific backup request. - public partial class AzureWorkloadBackupRequest : BackupRequest + public partial class WorkloadBackupContent : BackupContent { - /// Initializes a new instance of AzureWorkloadBackupRequest. - public AzureWorkloadBackupRequest() + /// Initializes a new instance of WorkloadBackupContent. + public WorkloadBackupContent() { ObjectType = "AzureWorkloadBackupRequest"; } - /// Initializes a new instance of AzureWorkloadBackupRequest. + /// Initializes a new instance of WorkloadBackupContent. /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. /// Type of backup, viz. Full, Differential, Log or CopyOnlyFull. /// Bool for Compression setting. - /// Backup copy will expire after the time specified (UTC). - internal AzureWorkloadBackupRequest(string objectType, BackupType? backupType, bool? enableCompression, DateTimeOffset? recoveryPointExpiryTimeInUTC) : base(objectType) + /// Backup copy will expire after the time specified (UTC). + internal WorkloadBackupContent(string objectType, BackupType? backupType, bool? enableCompression, DateTimeOffset? recoveryPointExpireOn) : base(objectType) { BackupType = backupType; EnableCompression = enableCompression; - RecoveryPointExpiryTimeInUTC = recoveryPointExpiryTimeInUTC; + RecoveryPointExpireOn = recoveryPointExpireOn; ObjectType = objectType ?? "AzureWorkloadBackupRequest"; } @@ -36,6 +36,6 @@ internal AzureWorkloadBackupRequest(string objectType, BackupType? backupType, b /// Bool for Compression setting. public bool? EnableCompression { get; set; } /// Backup copy will expire after the time specified (UTC). - public DateTimeOffset? RecoveryPointExpiryTimeInUTC { get; set; } + public DateTimeOffset? RecoveryPointExpireOn { get; set; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadJob.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadBackupJob.Serialization.cs similarity index 89% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadJob.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadBackupJob.Serialization.cs index f65d4a7eddc44..6011eaaa873ba 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadJob.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadBackupJob.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureWorkloadJob : IUtf8JsonSerializable + public partial class WorkloadBackupJob : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -92,13 +92,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureWorkloadJob DeserializeAzureWorkloadJob(JsonElement element) + internal static WorkloadBackupJob DeserializeWorkloadBackupJob(JsonElement element) { Optional workloadType = default; Optional duration = default; Optional> actionsInfo = default; - Optional> errorDetails = default; - Optional extendedInfo = default; + Optional> errorDetails = default; + Optional extendedInfo = default; Optional entityFriendlyName = default; Optional backupManagementType = default; Optional operation = default; @@ -146,10 +146,10 @@ internal static AzureWorkloadJob DeserializeAzureWorkloadJob(JsonElement element property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(AzureWorkloadErrorInfo.DeserializeAzureWorkloadErrorInfo(item)); + array.Add(WorkloadErrorInfo.DeserializeWorkloadErrorInfo(item)); } errorDetails = array; continue; @@ -161,7 +161,7 @@ internal static AzureWorkloadJob DeserializeAzureWorkloadJob(JsonElement element property.ThrowNonNullablePropertyIsNull(); continue; } - extendedInfo = AzureWorkloadJobExtendedInfo.DeserializeAzureWorkloadJobExtendedInfo(property.Value); + extendedInfo = WorkloadBackupJobExtendedInfo.DeserializeWorkloadBackupJobExtendedInfo(property.Value); continue; } if (property.NameEquals("entityFriendlyName"u8)) @@ -220,7 +220,7 @@ internal static AzureWorkloadJob DeserializeAzureWorkloadJob(JsonElement element continue; } } - return new AzureWorkloadJob(entityFriendlyName.Value, Optional.ToNullable(backupManagementType), operation.Value, status.Value, Optional.ToNullable(startTime), Optional.ToNullable(endTime), activityId.Value, jobType, workloadType.Value, Optional.ToNullable(duration), Optional.ToList(actionsInfo), Optional.ToList(errorDetails), extendedInfo.Value); + return new WorkloadBackupJob(entityFriendlyName.Value, Optional.ToNullable(backupManagementType), operation.Value, status.Value, Optional.ToNullable(startTime), Optional.ToNullable(endTime), activityId.Value, jobType, workloadType.Value, Optional.ToNullable(duration), Optional.ToList(actionsInfo), Optional.ToList(errorDetails), extendedInfo.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadJob.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadBackupJob.cs similarity index 71% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadJob.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadBackupJob.cs index d9fa4158b476e..11a1963f046eb 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadJob.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadBackupJob.cs @@ -12,17 +12,17 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Azure storage specific job. - public partial class AzureWorkloadJob : Job + public partial class WorkloadBackupJob : BackupGenericJob { - /// Initializes a new instance of AzureWorkloadJob. - public AzureWorkloadJob() + /// Initializes a new instance of WorkloadBackupJob. + public WorkloadBackupJob() { ActionsInfo = new ChangeTrackingList(); - ErrorDetails = new ChangeTrackingList(); + ErrorDetails = new ChangeTrackingList(); JobType = "AzureWorkloadJob"; } - /// Initializes a new instance of AzureWorkloadJob. + /// Initializes a new instance of WorkloadBackupJob. /// Friendly name of the entity on which the current job is executing. /// Backup management type to execute the current job. /// The operation name. @@ -36,7 +36,7 @@ public AzureWorkloadJob() /// Gets or sets the state/actions applicable on this job like cancel/retry. /// Error details on execution of this job. /// Additional information about the job. - internal AzureWorkloadJob(string entityFriendlyName, BackupManagementType? backupManagementType, string operation, string status, DateTimeOffset? startOn, DateTimeOffset? endOn, string activityId, string jobType, string workloadType, TimeSpan? duration, IList actionsInfo, IList errorDetails, AzureWorkloadJobExtendedInfo extendedInfo) : base(entityFriendlyName, backupManagementType, operation, status, startOn, endOn, activityId, jobType) + internal WorkloadBackupJob(string entityFriendlyName, BackupManagementType? backupManagementType, string operation, string status, DateTimeOffset? startOn, DateTimeOffset? endOn, string activityId, string jobType, string workloadType, TimeSpan? duration, IList actionsInfo, IList errorDetails, WorkloadBackupJobExtendedInfo extendedInfo) : base(entityFriendlyName, backupManagementType, operation, status, startOn, endOn, activityId, jobType) { WorkloadType = workloadType; Duration = duration; @@ -53,8 +53,8 @@ internal AzureWorkloadJob(string entityFriendlyName, BackupManagementType? backu /// Gets or sets the state/actions applicable on this job like cancel/retry. public IList ActionsInfo { get; } /// Error details on execution of this job. - public IList ErrorDetails { get; } + public IList ErrorDetails { get; } /// Additional information about the job. - public AzureWorkloadJobExtendedInfo ExtendedInfo { get; set; } + public WorkloadBackupJobExtendedInfo ExtendedInfo { get; set; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureStorageJobExtendedInfo.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadBackupJobExtendedInfo.Serialization.cs similarity index 82% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureStorageJobExtendedInfo.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadBackupJobExtendedInfo.Serialization.cs index ee4eaf7282168..f15e656011a58 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureStorageJobExtendedInfo.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadBackupJobExtendedInfo.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureStorageJobExtendedInfo : IUtf8JsonSerializable + public partial class WorkloadBackupJobExtendedInfo : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -45,9 +45,9 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureStorageJobExtendedInfo DeserializeAzureStorageJobExtendedInfo(JsonElement element) + internal static WorkloadBackupJobExtendedInfo DeserializeWorkloadBackupJobExtendedInfo(JsonElement element) { - Optional> tasksList = default; + Optional> tasksList = default; Optional> propertyBag = default; Optional dynamicErrorMessage = default; foreach (var property in element.EnumerateObject()) @@ -59,10 +59,10 @@ internal static AzureStorageJobExtendedInfo DeserializeAzureStorageJobExtendedIn property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(AzureStorageJobTaskDetails.DeserializeAzureStorageJobTaskDetails(item)); + array.Add(WorkloadBackupJobTaskDetails.DeserializeWorkloadBackupJobTaskDetails(item)); } tasksList = array; continue; @@ -88,7 +88,7 @@ internal static AzureStorageJobExtendedInfo DeserializeAzureStorageJobExtendedIn continue; } } - return new AzureStorageJobExtendedInfo(Optional.ToList(tasksList), Optional.ToDictionary(propertyBag), dynamicErrorMessage.Value); + return new WorkloadBackupJobExtendedInfo(Optional.ToList(tasksList), Optional.ToDictionary(propertyBag), dynamicErrorMessage.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadJobExtendedInfo.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadBackupJobExtendedInfo.cs similarity index 65% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadJobExtendedInfo.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadBackupJobExtendedInfo.cs index b98502f131034..836aa29db2f8d 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadJobExtendedInfo.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadBackupJobExtendedInfo.cs @@ -11,20 +11,20 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Azure VM workload-specific additional information for job. - public partial class AzureWorkloadJobExtendedInfo + public partial class WorkloadBackupJobExtendedInfo { - /// Initializes a new instance of AzureWorkloadJobExtendedInfo. - public AzureWorkloadJobExtendedInfo() + /// Initializes a new instance of WorkloadBackupJobExtendedInfo. + public WorkloadBackupJobExtendedInfo() { - TasksList = new ChangeTrackingList(); + TasksList = new ChangeTrackingList(); PropertyBag = new ChangeTrackingDictionary(); } - /// Initializes a new instance of AzureWorkloadJobExtendedInfo. + /// Initializes a new instance of WorkloadBackupJobExtendedInfo. /// List of tasks for this job. /// Job properties. /// Non localized error message on job execution. - internal AzureWorkloadJobExtendedInfo(IList tasksList, IDictionary propertyBag, string dynamicErrorMessage) + internal WorkloadBackupJobExtendedInfo(IList tasksList, IDictionary propertyBag, string dynamicErrorMessage) { TasksList = tasksList; PropertyBag = propertyBag; @@ -32,7 +32,7 @@ internal AzureWorkloadJobExtendedInfo(IList tasksLi } /// List of tasks for this job. - public IList TasksList { get; } + public IList TasksList { get; } /// Job properties. public IDictionary PropertyBag { get; } /// Non localized error message on job execution. diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureStorageJobTaskDetails.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadBackupJobTaskDetails.Serialization.cs similarity index 82% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureStorageJobTaskDetails.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadBackupJobTaskDetails.Serialization.cs index bebf480f95268..22828cfcab4ab 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureStorageJobTaskDetails.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadBackupJobTaskDetails.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureStorageJobTaskDetails : IUtf8JsonSerializable + public partial class WorkloadBackupJobTaskDetails : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -28,7 +28,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureStorageJobTaskDetails DeserializeAzureStorageJobTaskDetails(JsonElement element) + internal static WorkloadBackupJobTaskDetails DeserializeWorkloadBackupJobTaskDetails(JsonElement element) { Optional taskId = default; Optional status = default; @@ -45,7 +45,7 @@ internal static AzureStorageJobTaskDetails DeserializeAzureStorageJobTaskDetails continue; } } - return new AzureStorageJobTaskDetails(taskId.Value, status.Value); + return new WorkloadBackupJobTaskDetails(taskId.Value, status.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadJobTaskDetails.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadBackupJobTaskDetails.cs similarity index 65% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadJobTaskDetails.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadBackupJobTaskDetails.cs index 9c7488ffb6eae..cd73d341a71d6 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadJobTaskDetails.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadBackupJobTaskDetails.cs @@ -8,17 +8,17 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Azure VM workload specific job task details. - public partial class AzureWorkloadJobTaskDetails + public partial class WorkloadBackupJobTaskDetails { - /// Initializes a new instance of AzureWorkloadJobTaskDetails. - public AzureWorkloadJobTaskDetails() + /// Initializes a new instance of WorkloadBackupJobTaskDetails. + public WorkloadBackupJobTaskDetails() { } - /// Initializes a new instance of AzureWorkloadJobTaskDetails. + /// Initializes a new instance of WorkloadBackupJobTaskDetails. /// The task display name. /// The status. - internal AzureWorkloadJobTaskDetails(string taskId, string status) + internal WorkloadBackupJobTaskDetails(string taskId, string status) { TaskId = taskId; Status = status; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadContainer.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadContainer.Serialization.cs similarity index 78% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadContainer.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadContainer.Serialization.cs index 0eedefdb54b1a..5012be7728cf1 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadContainer.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadContainer.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureWorkloadContainer : IUtf8JsonSerializable + public partial class WorkloadContainer : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -71,21 +71,21 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureWorkloadContainer DeserializeAzureWorkloadContainer(JsonElement element) + internal static WorkloadContainer DeserializeWorkloadContainer(JsonElement element) { if (element.TryGetProperty("containerType", out JsonElement discriminator)) { switch (discriminator.GetString()) { - case "SQLAGWorkLoadContainer": return AzureSqlAGWorkloadContainerProtectionContainer.DeserializeAzureSqlAGWorkloadContainerProtectionContainer(element); - case "VMAppContainer": return AzureVmAppContainerProtectionContainer.DeserializeAzureVmAppContainerProtectionContainer(element); + case "SQLAGWorkLoadContainer": return SqlAvailabilityGroupWorkloadProtectionContainer.DeserializeSqlAvailabilityGroupWorkloadProtectionContainer(element); + case "VMAppContainer": return VmAppContainerProtectionContainer.DeserializeVmAppContainerProtectionContainer(element); } } - Optional sourceResourceId = default; + Optional sourceResourceId = default; Optional lastUpdatedTime = default; - Optional extendedInfo = default; - Optional workloadType = default; - Optional operationType = default; + Optional extendedInfo = default; + Optional workloadType = default; + Optional operationType = default; Optional friendlyName = default; Optional backupManagementType = default; Optional registrationStatus = default; @@ -96,7 +96,12 @@ internal static AzureWorkloadContainer DeserializeAzureWorkloadContainer(JsonEle { if (property.NameEquals("sourceResourceId"u8)) { - sourceResourceId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + sourceResourceId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("lastUpdatedTime"u8)) @@ -116,7 +121,7 @@ internal static AzureWorkloadContainer DeserializeAzureWorkloadContainer(JsonEle property.ThrowNonNullablePropertyIsNull(); continue; } - extendedInfo = AzureWorkloadContainerExtendedInfo.DeserializeAzureWorkloadContainerExtendedInfo(property.Value); + extendedInfo = WorkloadContainerExtendedInfo.DeserializeWorkloadContainerExtendedInfo(property.Value); continue; } if (property.NameEquals("workloadType"u8)) @@ -126,7 +131,7 @@ internal static AzureWorkloadContainer DeserializeAzureWorkloadContainer(JsonEle property.ThrowNonNullablePropertyIsNull(); continue; } - workloadType = new WorkloadType(property.Value.GetString()); + workloadType = new BackupWorkloadType(property.Value.GetString()); continue; } if (property.NameEquals("operationType"u8)) @@ -136,7 +141,7 @@ internal static AzureWorkloadContainer DeserializeAzureWorkloadContainer(JsonEle property.ThrowNonNullablePropertyIsNull(); continue; } - operationType = new OperationType(property.Value.GetString()); + operationType = new WorkloadOperationType(property.Value.GetString()); continue; } if (property.NameEquals("friendlyName"u8)) @@ -175,7 +180,7 @@ internal static AzureWorkloadContainer DeserializeAzureWorkloadContainer(JsonEle continue; } } - return new AzureWorkloadContainer(friendlyName.Value, Optional.ToNullable(backupManagementType), registrationStatus.Value, healthStatus.Value, containerType, protectableObjectType.Value, sourceResourceId.Value, Optional.ToNullable(lastUpdatedTime), extendedInfo.Value, Optional.ToNullable(workloadType), Optional.ToNullable(operationType)); + return new WorkloadContainer(friendlyName.Value, Optional.ToNullable(backupManagementType), registrationStatus.Value, healthStatus.Value, containerType, protectableObjectType.Value, sourceResourceId.Value, Optional.ToNullable(lastUpdatedTime), extendedInfo.Value, Optional.ToNullable(workloadType), Optional.ToNullable(operationType)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadContainer.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadContainer.cs similarity index 64% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadContainer.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadContainer.cs index 3b746eaaa0fb4..15c8c44416507 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadContainer.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadContainer.cs @@ -6,23 +6,24 @@ #nullable disable using System; +using Azure.Core; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// /// Container for the workloads running inside Azure Compute or Classic Compute. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . /// - public partial class AzureWorkloadContainer : ProtectionContainer + public partial class WorkloadContainer : BackupGenericProtectionContainer { - /// Initializes a new instance of AzureWorkloadContainer. - public AzureWorkloadContainer() + /// Initializes a new instance of WorkloadContainer. + public WorkloadContainer() { ContainerType = ProtectableContainerType.AzureWorkloadContainer; } - /// Initializes a new instance of AzureWorkloadContainer. + /// Initializes a new instance of WorkloadContainer. /// Friendly name of the container. /// Type of backup management for the container. /// Status of registration of the container with the Recovery Services Vault. @@ -39,7 +40,7 @@ public AzureWorkloadContainer() /// Additional details of a workload container. /// Workload type for which registration was sent. /// Re-Do Operation. - internal AzureWorkloadContainer(string friendlyName, BackupManagementType? backupManagementType, string registrationStatus, string healthStatus, ProtectableContainerType containerType, string protectableObjectType, string sourceResourceId, DateTimeOffset? lastUpdatedOn, AzureWorkloadContainerExtendedInfo extendedInfo, WorkloadType? workloadType, OperationType? operationType) : base(friendlyName, backupManagementType, registrationStatus, healthStatus, containerType, protectableObjectType) + internal WorkloadContainer(string friendlyName, BackupManagementType? backupManagementType, string registrationStatus, string healthStatus, ProtectableContainerType containerType, string protectableObjectType, ResourceIdentifier sourceResourceId, DateTimeOffset? lastUpdatedOn, WorkloadContainerExtendedInfo extendedInfo, BackupWorkloadType? workloadType, WorkloadOperationType? operationType) : base(friendlyName, backupManagementType, registrationStatus, healthStatus, containerType, protectableObjectType) { SourceResourceId = sourceResourceId; LastUpdatedOn = lastUpdatedOn; @@ -50,14 +51,14 @@ internal AzureWorkloadContainer(string friendlyName, BackupManagementType? backu } /// ARM ID of the virtual machine represented by this Azure Workload Container. - public string SourceResourceId { get; set; } + public ResourceIdentifier SourceResourceId { get; set; } /// Time stamp when this container was updated. public DateTimeOffset? LastUpdatedOn { get; set; } /// Additional details of a workload container. - public AzureWorkloadContainerExtendedInfo ExtendedInfo { get; set; } + public WorkloadContainerExtendedInfo ExtendedInfo { get; set; } /// Workload type for which registration was sent. - public WorkloadType? WorkloadType { get; set; } + public BackupWorkloadType? WorkloadType { get; set; } /// Re-Do Operation. - public OperationType? OperationType { get; set; } + public WorkloadOperationType? OperationType { get; set; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLAutoProtectionIntent.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadContainerAutoProtectionIntent.Serialization.cs similarity index 69% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLAutoProtectionIntent.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadContainerAutoProtectionIntent.Serialization.cs index 20e3e6f078951..d632508187d9e 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLAutoProtectionIntent.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadContainerAutoProtectionIntent.Serialization.cs @@ -10,16 +10,11 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureWorkloadSQLAutoProtectionIntent : IUtf8JsonSerializable + public partial class WorkloadContainerAutoProtectionIntent : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - if (Optional.IsDefined(WorkloadItemType)) - { - writer.WritePropertyName("workloadItemType"u8); - writer.WriteStringValue(WorkloadItemType.Value.ToString()); - } writer.WritePropertyName("protectionIntentItemType"u8); writer.WriteStringValue(ProtectionIntentItemType.ToString()); if (Optional.IsDefined(BackupManagementType)) @@ -50,27 +45,16 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureWorkloadSQLAutoProtectionIntent DeserializeAzureWorkloadSQLAutoProtectionIntent(JsonElement element) + internal static WorkloadContainerAutoProtectionIntent DeserializeWorkloadContainerAutoProtectionIntent(JsonElement element) { - Optional workloadItemType = default; ProtectionIntentItemType protectionIntentItemType = default; Optional backupManagementType = default; - Optional sourceResourceId = default; - Optional itemId = default; - Optional policyId = default; - Optional protectionState = default; + Optional sourceResourceId = default; + Optional itemId = default; + Optional policyId = default; + Optional protectionState = default; foreach (var property in element.EnumerateObject()) { - if (property.NameEquals("workloadItemType"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - workloadItemType = new WorkloadItemType(property.Value.GetString()); - continue; - } if (property.NameEquals("protectionIntentItemType"u8)) { protectionIntentItemType = new ProtectionIntentItemType(property.Value.GetString()); @@ -88,17 +72,32 @@ internal static AzureWorkloadSQLAutoProtectionIntent DeserializeAzureWorkloadSQL } if (property.NameEquals("sourceResourceId"u8)) { - sourceResourceId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + sourceResourceId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("itemId"u8)) { - itemId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + itemId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("policyId"u8)) { - policyId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + policyId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("protectionState"u8)) @@ -108,11 +107,11 @@ internal static AzureWorkloadSQLAutoProtectionIntent DeserializeAzureWorkloadSQL property.ThrowNonNullablePropertyIsNull(); continue; } - protectionState = new ProtectionStatus(property.Value.GetString()); + protectionState = new BackupProtectionStatus(property.Value.GetString()); continue; } } - return new AzureWorkloadSQLAutoProtectionIntent(protectionIntentItemType, Optional.ToNullable(backupManagementType), sourceResourceId.Value, itemId.Value, policyId.Value, Optional.ToNullable(protectionState), Optional.ToNullable(workloadItemType)); + return new WorkloadContainerAutoProtectionIntent(protectionIntentItemType, Optional.ToNullable(backupManagementType), sourceResourceId.Value, itemId.Value, policyId.Value, Optional.ToNullable(protectionState)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadContainerAutoProtectionIntent.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadContainerAutoProtectionIntent.cs similarity index 59% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadContainerAutoProtectionIntent.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadContainerAutoProtectionIntent.cs index 390014b2b09e3..5e37cf2ec173a 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadContainerAutoProtectionIntent.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadContainerAutoProtectionIntent.cs @@ -5,25 +5,27 @@ #nullable disable +using Azure.Core; + namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Azure workload specific protection intent item. - public partial class AzureWorkloadContainerAutoProtectionIntent : ProtectionIntent + public partial class WorkloadContainerAutoProtectionIntent : BackupGenericProtectionIntent { - /// Initializes a new instance of AzureWorkloadContainerAutoProtectionIntent. - public AzureWorkloadContainerAutoProtectionIntent() + /// Initializes a new instance of WorkloadContainerAutoProtectionIntent. + public WorkloadContainerAutoProtectionIntent() { ProtectionIntentItemType = ProtectionIntentItemType.AzureWorkloadContainerAutoProtectionIntent; } - /// Initializes a new instance of AzureWorkloadContainerAutoProtectionIntent. + /// Initializes a new instance of WorkloadContainerAutoProtectionIntent. /// backup protectionIntent type. /// Type of backup management for the backed up item. /// ARM ID of the resource to be backed up. /// ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId. /// ID of the backup policy with which this item is backed up. /// Backup state of this backup item. - internal AzureWorkloadContainerAutoProtectionIntent(ProtectionIntentItemType protectionIntentItemType, BackupManagementType? backupManagementType, string sourceResourceId, string itemId, string policyId, ProtectionStatus? protectionState) : base(protectionIntentItemType, backupManagementType, sourceResourceId, itemId, policyId, protectionState) + internal WorkloadContainerAutoProtectionIntent(ProtectionIntentItemType protectionIntentItemType, BackupManagementType? backupManagementType, ResourceIdentifier sourceResourceId, ResourceIdentifier itemId, ResourceIdentifier policyId, BackupProtectionStatus? protectionState) : base(protectionIntentItemType, backupManagementType, sourceResourceId, itemId, policyId, protectionState) { ProtectionIntentItemType = protectionIntentItemType; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadContainerExtendedInfo.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadContainerExtendedInfo.Serialization.cs similarity index 83% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadContainerExtendedInfo.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadContainerExtendedInfo.Serialization.cs index ae3e7930deaba..0438aadcc4fce 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadContainerExtendedInfo.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadContainerExtendedInfo.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureWorkloadContainerExtendedInfo : IUtf8JsonSerializable + public partial class WorkloadContainerExtendedInfo : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -39,10 +39,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureWorkloadContainerExtendedInfo DeserializeAzureWorkloadContainerExtendedInfo(JsonElement element) + internal static WorkloadContainerExtendedInfo DeserializeWorkloadContainerExtendedInfo(JsonElement element) { Optional hostServerName = default; - Optional inquiryInfo = default; + Optional inquiryInfo = default; Optional> nodesList = default; foreach (var property in element.EnumerateObject()) { @@ -58,7 +58,7 @@ internal static AzureWorkloadContainerExtendedInfo DeserializeAzureWorkloadConta property.ThrowNonNullablePropertyIsNull(); continue; } - inquiryInfo = InquiryInfo.DeserializeInquiryInfo(property.Value); + inquiryInfo = WorkloadContainerInquiryInfo.DeserializeWorkloadContainerInquiryInfo(property.Value); continue; } if (property.NameEquals("nodesList"u8)) @@ -77,7 +77,7 @@ internal static AzureWorkloadContainerExtendedInfo DeserializeAzureWorkloadConta continue; } } - return new AzureWorkloadContainerExtendedInfo(hostServerName.Value, inquiryInfo.Value, Optional.ToList(nodesList)); + return new WorkloadContainerExtendedInfo(hostServerName.Value, inquiryInfo.Value, Optional.ToList(nodesList)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadContainerExtendedInfo.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadContainerExtendedInfo.cs similarity index 71% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadContainerExtendedInfo.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadContainerExtendedInfo.cs index b76db2415a3d9..27595cd1f3ca0 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadContainerExtendedInfo.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadContainerExtendedInfo.cs @@ -11,19 +11,19 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Extended information of the container. - public partial class AzureWorkloadContainerExtendedInfo + public partial class WorkloadContainerExtendedInfo { - /// Initializes a new instance of AzureWorkloadContainerExtendedInfo. - public AzureWorkloadContainerExtendedInfo() + /// Initializes a new instance of WorkloadContainerExtendedInfo. + public WorkloadContainerExtendedInfo() { NodesList = new ChangeTrackingList(); } - /// Initializes a new instance of AzureWorkloadContainerExtendedInfo. + /// Initializes a new instance of WorkloadContainerExtendedInfo. /// Host Os Name in case of Stand Alone and Cluster Name in case of distributed container. /// Inquiry Status for the container. /// List of the nodes in case of distributed container. - internal AzureWorkloadContainerExtendedInfo(string hostServerName, InquiryInfo inquiryInfo, IList nodesList) + internal WorkloadContainerExtendedInfo(string hostServerName, WorkloadContainerInquiryInfo inquiryInfo, IList nodesList) { HostServerName = hostServerName; InquiryInfo = inquiryInfo; @@ -33,7 +33,7 @@ internal AzureWorkloadContainerExtendedInfo(string hostServerName, InquiryInfo i /// Host Os Name in case of Stand Alone and Cluster Name in case of distributed container. public string HostServerName { get; set; } /// Inquiry Status for the container. - public InquiryInfo InquiryInfo { get; set; } + public WorkloadContainerInquiryInfo InquiryInfo { get; set; } /// List of the nodes in case of distributed container. public IList NodesList { get; } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/InquiryInfo.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadContainerInquiryInfo.Serialization.cs similarity index 84% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/InquiryInfo.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadContainerInquiryInfo.Serialization.cs index 272d657d32ca1..b20c58a4a8093 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/InquiryInfo.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadContainerInquiryInfo.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class InquiryInfo : IUtf8JsonSerializable + public partial class WorkloadContainerInquiryInfo : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -39,10 +39,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static InquiryInfo DeserializeInquiryInfo(JsonElement element) + internal static WorkloadContainerInquiryInfo DeserializeWorkloadContainerInquiryInfo(JsonElement element) { Optional status = default; - Optional errorDetail = default; + Optional errorDetail = default; Optional> inquiryDetails = default; foreach (var property in element.EnumerateObject()) { @@ -58,7 +58,7 @@ internal static InquiryInfo DeserializeInquiryInfo(JsonElement element) property.ThrowNonNullablePropertyIsNull(); continue; } - errorDetail = ErrorDetail.DeserializeErrorDetail(property.Value); + errorDetail = BackupErrorDetail.DeserializeBackupErrorDetail(property.Value); continue; } if (property.NameEquals("inquiryDetails"u8)) @@ -77,7 +77,7 @@ internal static InquiryInfo DeserializeInquiryInfo(JsonElement element) continue; } } - return new InquiryInfo(status.Value, errorDetail.Value, Optional.ToList(inquiryDetails)); + return new WorkloadContainerInquiryInfo(status.Value, errorDetail.Value, Optional.ToList(inquiryDetails)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/InquiryInfo.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadContainerInquiryInfo.cs similarity index 76% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/InquiryInfo.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadContainerInquiryInfo.cs index 84f0c23421ec6..77925a3f1d009 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/InquiryInfo.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadContainerInquiryInfo.cs @@ -11,15 +11,15 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Details about inquired protectable items under a given container. - public partial class InquiryInfo + public partial class WorkloadContainerInquiryInfo { - /// Initializes a new instance of InquiryInfo. - public InquiryInfo() + /// Initializes a new instance of WorkloadContainerInquiryInfo. + public WorkloadContainerInquiryInfo() { InquiryDetails = new ChangeTrackingList(); } - /// Initializes a new instance of InquiryInfo. + /// Initializes a new instance of WorkloadContainerInquiryInfo. /// /// Inquiry Status for this container such as /// InProgress | Failed | Succeeded @@ -29,7 +29,7 @@ public InquiryInfo() /// Inquiry Details which will have workload specific details. /// For e.g. - For SQL and oracle this will contain different details. /// - internal InquiryInfo(string status, ErrorDetail errorDetail, IList inquiryDetails) + internal WorkloadContainerInquiryInfo(string status, BackupErrorDetail errorDetail, IList inquiryDetails) { Status = status; ErrorDetail = errorDetail; @@ -42,7 +42,7 @@ internal InquiryInfo(string status, ErrorDetail errorDetail, IList public string Status { get; set; } /// Error Details if the Status is non-success. - public ErrorDetail ErrorDetail { get; set; } + public BackupErrorDetail ErrorDetail { get; set; } /// /// Inquiry Details which will have workload specific details. /// For e.g. - For SQL and oracle this will contain different details. diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadErrorInfo.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadErrorInfo.Serialization.cs similarity index 91% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadErrorInfo.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadErrorInfo.Serialization.cs index bbb80461a2e2b..74e07d36c6a10 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadErrorInfo.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadErrorInfo.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureWorkloadErrorInfo : IUtf8JsonSerializable + public partial class WorkloadErrorInfo : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -49,7 +49,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureWorkloadErrorInfo DeserializeAzureWorkloadErrorInfo(JsonElement element) + internal static WorkloadErrorInfo DeserializeWorkloadErrorInfo(JsonElement element) { Optional errorCode = default; Optional errorString = default; @@ -99,7 +99,7 @@ internal static AzureWorkloadErrorInfo DeserializeAzureWorkloadErrorInfo(JsonEle continue; } } - return new AzureWorkloadErrorInfo(Optional.ToNullable(errorCode), errorString.Value, errorTitle.Value, Optional.ToList(recommendations), additionalDetails.Value); + return new WorkloadErrorInfo(Optional.ToNullable(errorCode), errorString.Value, errorTitle.Value, Optional.ToList(recommendations), additionalDetails.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadErrorInfo.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadErrorInfo.cs similarity index 80% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadErrorInfo.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadErrorInfo.cs index dd0e74a0ea08e..39ff53b991206 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadErrorInfo.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadErrorInfo.cs @@ -11,21 +11,21 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Azure storage specific error information. - public partial class AzureWorkloadErrorInfo + public partial class WorkloadErrorInfo { - /// Initializes a new instance of AzureWorkloadErrorInfo. - public AzureWorkloadErrorInfo() + /// Initializes a new instance of WorkloadErrorInfo. + public WorkloadErrorInfo() { Recommendations = new ChangeTrackingList(); } - /// Initializes a new instance of AzureWorkloadErrorInfo. + /// Initializes a new instance of WorkloadErrorInfo. /// Error code. /// Localized error string. /// Title: Typically, the entity that the error pertains to. /// List of localized recommendations for above error code. /// Additional details for above error code. - internal AzureWorkloadErrorInfo(int? errorCode, string errorString, string errorTitle, IList recommendations, string additionalDetails) + internal WorkloadErrorInfo(int? errorCode, string errorString, string errorTitle, IList recommendations, string additionalDetails) { ErrorCode = errorCode; ErrorString = errorString; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadItem.Serialization.cs index 36173a33a5169..8909ad035e50b 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadItem.Serialization.cs @@ -46,13 +46,13 @@ internal static WorkloadItem DeserializeWorkloadItem(JsonElement element) { switch (discriminator.GetString()) { - case "AzureVmWorkloadItem": return AzureVmWorkloadItem.DeserializeAzureVmWorkloadItem(element); - case "SAPAseDatabase": return AzureVmWorkloadSAPAseDatabaseWorkloadItem.DeserializeAzureVmWorkloadSAPAseDatabaseWorkloadItem(element); - case "SAPAseSystem": return AzureVmWorkloadSAPAseSystemWorkloadItem.DeserializeAzureVmWorkloadSAPAseSystemWorkloadItem(element); - case "SAPHanaDatabase": return AzureVmWorkloadSAPHanaDatabaseWorkloadItem.DeserializeAzureVmWorkloadSAPHanaDatabaseWorkloadItem(element); - case "SAPHanaSystem": return AzureVmWorkloadSAPHanaSystemWorkloadItem.DeserializeAzureVmWorkloadSAPHanaSystemWorkloadItem(element); - case "SQLDataBase": return AzureVmWorkloadSQLDatabaseWorkloadItem.DeserializeAzureVmWorkloadSQLDatabaseWorkloadItem(element); - case "SQLInstance": return AzureVmWorkloadSQLInstanceWorkloadItem.DeserializeAzureVmWorkloadSQLInstanceWorkloadItem(element); + case "AzureVmWorkloadItem": return VmWorkloadItem.DeserializeVmWorkloadItem(element); + case "SAPAseDatabase": return VmWorkloadSapAseDatabaseWorkloadItem.DeserializeVmWorkloadSapAseDatabaseWorkloadItem(element); + case "SAPAseSystem": return VmWorkloadSapAseSystemWorkloadItem.DeserializeVmWorkloadSapAseSystemWorkloadItem(element); + case "SAPHanaDatabase": return VmWorkloadSapHanaDatabaseWorkloadItem.DeserializeVmWorkloadSapHanaDatabaseWorkloadItem(element); + case "SAPHanaSystem": return VmWorkloadSapHanaSystemWorkloadItem.DeserializeVmWorkloadSapHanaSystemWorkloadItem(element); + case "SQLDataBase": return VmWorkloadSqlDatabaseWorkloadItem.DeserializeVmWorkloadSqlDatabaseWorkloadItem(element); + case "SQLInstance": return VmWorkloadSqlInstanceWorkloadItem.DeserializeVmWorkloadSqlInstanceWorkloadItem(element); } } return UnknownWorkloadItem.DeserializeUnknownWorkloadItem(element); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadItem.cs index 791548030299c..5a25d2bd4dcaf 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadItem.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models /// /// Base class for backup item. Workload-specific backup items are derived from this class. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , and . + /// The available derived classes include , , , , , and . /// public abstract partial class WorkloadItem { @@ -25,7 +25,7 @@ protected WorkloadItem() /// Type of the backup item. /// Friendly name of the backup item. /// State of the back up item. - internal WorkloadItem(string backupManagementType, string workloadType, string workloadItemType, string friendlyName, ProtectionStatus? protectionState) + internal WorkloadItem(string backupManagementType, string workloadType, string workloadItemType, string friendlyName, BackupProtectionStatus? protectionState) { BackupManagementType = backupManagementType; WorkloadType = workloadType; @@ -43,6 +43,6 @@ internal WorkloadItem(string backupManagementType, string workloadType, string w /// Friendly name of the backup item. public string FriendlyName { get; set; } /// State of the back up item. - public ProtectionStatus? ProtectionState { get; set; } + public BackupProtectionStatus? ProtectionState { get; set; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadItemResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadItemResource.cs index 219845d9df2a8..b2deceab9ec8c 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadItemResource.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadItemResource.cs @@ -31,7 +31,7 @@ public WorkloadItemResource(AzureLocation location) : base(location) /// /// WorkloadItemResource properties /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , and . + /// The available derived classes include , , , , , and . /// /// Optional ETag. internal WorkloadItemResource(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, WorkloadItem properties, ETag? eTag) : base(id, name, resourceType, systemData, tags, location) @@ -43,7 +43,7 @@ internal WorkloadItemResource(ResourceIdentifier id, string name, ResourceType r /// /// WorkloadItemResource properties /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , and . + /// The available derived classes include , , , , , and . /// public WorkloadItem Properties { get; set; } /// Optional ETag. diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadItemType.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadItemType.cs index 45cee7259c49e..278e5ab916c0b 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadItemType.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadItemType.cs @@ -23,30 +23,30 @@ public WorkloadItemType(string value) } private const string InvalidValue = "Invalid"; - private const string SQLInstanceValue = "SQLInstance"; - private const string SQLDataBaseValue = "SQLDataBase"; - private const string SAPHanaSystemValue = "SAPHanaSystem"; - private const string SAPHanaDatabaseValue = "SAPHanaDatabase"; - private const string SAPAseSystemValue = "SAPAseSystem"; - private const string SAPAseDatabaseValue = "SAPAseDatabase"; - private const string SAPHanaDBInstanceValue = "SAPHanaDBInstance"; + private const string SqlInstanceValue = "SQLInstance"; + private const string SqlDatabaseValue = "SQLDataBase"; + private const string SapHanaSystemValue = "SAPHanaSystem"; + private const string SapHanaDatabaseValue = "SAPHanaDatabase"; + private const string SapAseSystemValue = "SAPAseSystem"; + private const string SapAseDatabaseValue = "SAPAseDatabase"; + private const string SapHanaDBInstanceValue = "SAPHanaDBInstance"; /// Invalid. public static WorkloadItemType Invalid { get; } = new WorkloadItemType(InvalidValue); /// SQLInstance. - public static WorkloadItemType SQLInstance { get; } = new WorkloadItemType(SQLInstanceValue); + public static WorkloadItemType SqlInstance { get; } = new WorkloadItemType(SqlInstanceValue); /// SQLDataBase. - public static WorkloadItemType SQLDataBase { get; } = new WorkloadItemType(SQLDataBaseValue); + public static WorkloadItemType SqlDatabase { get; } = new WorkloadItemType(SqlDatabaseValue); /// SAPHanaSystem. - public static WorkloadItemType SAPHanaSystem { get; } = new WorkloadItemType(SAPHanaSystemValue); + public static WorkloadItemType SapHanaSystem { get; } = new WorkloadItemType(SapHanaSystemValue); /// SAPHanaDatabase. - public static WorkloadItemType SAPHanaDatabase { get; } = new WorkloadItemType(SAPHanaDatabaseValue); + public static WorkloadItemType SapHanaDatabase { get; } = new WorkloadItemType(SapHanaDatabaseValue); /// SAPAseSystem. - public static WorkloadItemType SAPAseSystem { get; } = new WorkloadItemType(SAPAseSystemValue); + public static WorkloadItemType SapAseSystem { get; } = new WorkloadItemType(SapAseSystemValue); /// SAPAseDatabase. - public static WorkloadItemType SAPAseDatabase { get; } = new WorkloadItemType(SAPAseDatabaseValue); + public static WorkloadItemType SapAseDatabase { get; } = new WorkloadItemType(SapAseDatabaseValue); /// SAPHanaDBInstance. - public static WorkloadItemType SAPHanaDBInstance { get; } = new WorkloadItemType(SAPHanaDBInstanceValue); + public static WorkloadItemType SapHanaDBInstance { get; } = new WorkloadItemType(SapHanaDBInstanceValue); /// Determines if two values are the same. public static bool operator ==(WorkloadItemType left, WorkloadItemType right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadOperationType.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadOperationType.cs new file mode 100644 index 0000000000000..246a00c6a5f0c --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadOperationType.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Models +{ + /// Re-Do Operation. + public readonly partial struct WorkloadOperationType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public WorkloadOperationType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string InvalidValue = "Invalid"; + private const string RegisterValue = "Register"; + private const string ReregisterValue = "Reregister"; + + /// Invalid. + public static WorkloadOperationType Invalid { get; } = new WorkloadOperationType(InvalidValue); + /// Register. + public static WorkloadOperationType Register { get; } = new WorkloadOperationType(RegisterValue); + /// Reregister. + public static WorkloadOperationType Reregister { get; } = new WorkloadOperationType(ReregisterValue); + /// Determines if two values are the same. + public static bool operator ==(WorkloadOperationType left, WorkloadOperationType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(WorkloadOperationType left, WorkloadOperationType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator WorkloadOperationType(string value) => new WorkloadOperationType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is WorkloadOperationType other && Equals(other); + /// + public bool Equals(WorkloadOperationType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadPointInTimeRecoveryPoint.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadPointInTimeRecoveryPoint.Serialization.cs similarity index 90% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadPointInTimeRecoveryPoint.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadPointInTimeRecoveryPoint.Serialization.cs index 0716f85d9c04a..70ca378d00ccd 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadPointInTimeRecoveryPoint.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadPointInTimeRecoveryPoint.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureWorkloadPointInTimeRecoveryPoint : IUtf8JsonSerializable + public partial class WorkloadPointInTimeRecoveryPoint : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -27,10 +27,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndArray(); } - if (Optional.IsDefined(RecoveryPointTimeInUTC)) + if (Optional.IsDefined(RecoveryPointCreatedOn)) { writer.WritePropertyName("recoveryPointTimeInUTC"u8); - writer.WriteStringValue(RecoveryPointTimeInUTC.Value, "O"); + writer.WriteStringValue(RecoveryPointCreatedOn.Value, "O"); } if (Optional.IsDefined(RestorePointType)) { @@ -68,13 +68,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureWorkloadPointInTimeRecoveryPoint DeserializeAzureWorkloadPointInTimeRecoveryPoint(JsonElement element) + internal static WorkloadPointInTimeRecoveryPoint DeserializeWorkloadPointInTimeRecoveryPoint(JsonElement element) { if (element.TryGetProperty("objectType", out JsonElement discriminator)) { switch (discriminator.GetString()) { - case "AzureWorkloadSAPHanaPointInTimeRecoveryPoint": return AzureWorkloadSAPHanaPointInTimeRecoveryPoint.DeserializeAzureWorkloadSAPHanaPointInTimeRecoveryPoint(element); + case "AzureWorkloadSAPHanaPointInTimeRecoveryPoint": return WorkloadSapHanaPointInTimeRecoveryPoint.DeserializeWorkloadSapHanaPointInTimeRecoveryPoint(element); } } Optional> timeRanges = default; @@ -167,7 +167,7 @@ internal static AzureWorkloadPointInTimeRecoveryPoint DeserializeAzureWorkloadPo continue; } } - return new AzureWorkloadPointInTimeRecoveryPoint(objectType, Optional.ToNullable(recoveryPointTimeInUTC), Optional.ToNullable(type), Optional.ToList(recoveryPointTierDetails), Optional.ToDictionary(recoveryPointMoveReadinessInfo), recoveryPointProperties.Value, Optional.ToList(timeRanges)); + return new WorkloadPointInTimeRecoveryPoint(objectType, Optional.ToNullable(recoveryPointTimeInUTC), Optional.ToNullable(type), Optional.ToList(recoveryPointTierDetails), Optional.ToDictionary(recoveryPointMoveReadinessInfo), recoveryPointProperties.Value, Optional.ToList(timeRanges)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadPointInTimeRecoveryPoint.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadPointInTimeRecoveryPoint.cs similarity index 52% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadPointInTimeRecoveryPoint.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadPointInTimeRecoveryPoint.cs index 598565a4ef4f1..99a9e2c455e4d 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadPointInTimeRecoveryPoint.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadPointInTimeRecoveryPoint.cs @@ -13,27 +13,27 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// /// Recovery point specific to PointInTime - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . /// - public partial class AzureWorkloadPointInTimeRecoveryPoint : AzureWorkloadRecoveryPoint + public partial class WorkloadPointInTimeRecoveryPoint : WorkloadRecoveryPoint { - /// Initializes a new instance of AzureWorkloadPointInTimeRecoveryPoint. - public AzureWorkloadPointInTimeRecoveryPoint() + /// Initializes a new instance of WorkloadPointInTimeRecoveryPoint. + public WorkloadPointInTimeRecoveryPoint() { TimeRanges = new ChangeTrackingList(); ObjectType = "AzureWorkloadPointInTimeRecoveryPoint"; } - /// Initializes a new instance of AzureWorkloadPointInTimeRecoveryPoint. + /// Initializes a new instance of WorkloadPointInTimeRecoveryPoint. /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. - /// UTC time at which recovery point was created. + /// UTC time at which recovery point was created. /// Type of restore point. /// Recovery point tier information. /// Eligibility of RP to be moved to another tier. /// Properties of Recovery Point. /// List of log ranges. - internal AzureWorkloadPointInTimeRecoveryPoint(string objectType, DateTimeOffset? recoveryPointTimeInUTC, RestorePointType? restorePointType, IList recoveryPointTierDetails, IDictionary recoveryPointMoveReadinessInfo, RecoveryPointProperties recoveryPointProperties, IList timeRanges) : base(objectType, recoveryPointTimeInUTC, restorePointType, recoveryPointTierDetails, recoveryPointMoveReadinessInfo, recoveryPointProperties) + internal WorkloadPointInTimeRecoveryPoint(string objectType, DateTimeOffset? recoveryPointCreatedOn, RestorePointType? restorePointType, IList recoveryPointTierDetails, IDictionary recoveryPointMoveReadinessInfo, RecoveryPointProperties recoveryPointProperties, IList timeRanges) : base(objectType, recoveryPointCreatedOn, restorePointType, recoveryPointTierDetails, recoveryPointMoveReadinessInfo, recoveryPointProperties) { TimeRanges = timeRanges; ObjectType = objectType ?? "AzureWorkloadPointInTimeRecoveryPoint"; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadPointInTimeRestoreRequest.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadPointInTimeRestoreContent.Serialization.cs similarity index 79% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadPointInTimeRestoreRequest.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadPointInTimeRestoreContent.Serialization.cs index e96d89d0a822f..3e8159ef9dd2c 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadPointInTimeRestoreRequest.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadPointInTimeRestoreContent.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureWorkloadPointInTimeRestoreRequest : IUtf8JsonSerializable + public partial class WorkloadPointInTimeRestoreContent : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -63,15 +63,15 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureWorkloadPointInTimeRestoreRequest DeserializeAzureWorkloadPointInTimeRestoreRequest(JsonElement element) + internal static WorkloadPointInTimeRestoreContent DeserializeWorkloadPointInTimeRestoreContent(JsonElement element) { Optional pointInTime = default; - Optional recoveryType = default; - Optional sourceResourceId = default; + Optional recoveryType = default; + Optional sourceResourceId = default; Optional> propertyBag = default; Optional targetInfo = default; Optional recoveryMode = default; - Optional targetVirtualMachineId = default; + Optional targetVirtualMachineId = default; string objectType = default; foreach (var property in element.EnumerateObject()) { @@ -92,12 +92,17 @@ internal static AzureWorkloadPointInTimeRestoreRequest DeserializeAzureWorkloadP property.ThrowNonNullablePropertyIsNull(); continue; } - recoveryType = new RecoveryType(property.Value.GetString()); + recoveryType = new FileShareRecoveryType(property.Value.GetString()); continue; } if (property.NameEquals("sourceResourceId"u8)) { - sourceResourceId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + sourceResourceId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("propertyBag"u8)) @@ -137,7 +142,12 @@ internal static AzureWorkloadPointInTimeRestoreRequest DeserializeAzureWorkloadP } if (property.NameEquals("targetVirtualMachineId"u8)) { - targetVirtualMachineId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + targetVirtualMachineId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("objectType"u8)) @@ -146,7 +156,7 @@ internal static AzureWorkloadPointInTimeRestoreRequest DeserializeAzureWorkloadP continue; } } - return new AzureWorkloadPointInTimeRestoreRequest(objectType, Optional.ToNullable(recoveryType), sourceResourceId.Value, Optional.ToDictionary(propertyBag), targetInfo.Value, Optional.ToNullable(recoveryMode), targetVirtualMachineId.Value, Optional.ToNullable(pointInTime)); + return new WorkloadPointInTimeRestoreContent(objectType, Optional.ToNullable(recoveryType), sourceResourceId.Value, Optional.ToDictionary(propertyBag), targetInfo.Value, Optional.ToNullable(recoveryMode), targetVirtualMachineId.Value, Optional.ToNullable(pointInTime)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadPointInTimeRestoreRequest.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadPointInTimeRestoreContent.cs similarity index 68% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadPointInTimeRestoreRequest.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadPointInTimeRestoreContent.cs index 303b704b20773..23a2cbb7642ba 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadPointInTimeRestoreRequest.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadPointInTimeRestoreContent.cs @@ -7,19 +7,20 @@ using System; using System.Collections.Generic; +using Azure.Core; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// AzureWorkload SAP Hana -specific restore. Specifically for PointInTime/Log restore. - public partial class AzureWorkloadPointInTimeRestoreRequest : AzureWorkloadRestoreRequest + public partial class WorkloadPointInTimeRestoreContent : WorkloadRestoreContent { - /// Initializes a new instance of AzureWorkloadPointInTimeRestoreRequest. - public AzureWorkloadPointInTimeRestoreRequest() + /// Initializes a new instance of WorkloadPointInTimeRestoreContent. + public WorkloadPointInTimeRestoreContent() { ObjectType = "AzureWorkloadPointInTimeRestoreRequest"; } - /// Initializes a new instance of AzureWorkloadPointInTimeRestoreRequest. + /// Initializes a new instance of WorkloadPointInTimeRestoreContent. /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. /// Type of this recovery. /// Fully qualified ARM ID of the VM on which workload that was running is being recovered. @@ -31,7 +32,7 @@ public AzureWorkloadPointInTimeRestoreRequest() /// For e.g. /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} /// /// PointInTime value. - internal AzureWorkloadPointInTimeRestoreRequest(string objectType, RecoveryType? recoveryType, string sourceResourceId, IDictionary propertyBag, TargetRestoreInfo targetInfo, RecoveryMode? recoveryMode, string targetVirtualMachineId, DateTimeOffset? pointInTime) : base(objectType, recoveryType, sourceResourceId, propertyBag, targetInfo, recoveryMode, targetVirtualMachineId) + internal WorkloadPointInTimeRestoreContent(string objectType, FileShareRecoveryType? recoveryType, ResourceIdentifier sourceResourceId, IDictionary propertyBag, TargetRestoreInfo targetInfo, RecoveryMode? recoveryMode, ResourceIdentifier targetVirtualMachineId, DateTimeOffset? pointInTime) : base(objectType, recoveryType, sourceResourceId, propertyBag, targetInfo, recoveryMode, targetVirtualMachineId) { PointInTime = pointInTime; ObjectType = objectType ?? "AzureWorkloadPointInTimeRestoreRequest"; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadProtectableItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadProtectableItem.Serialization.cs index 1d449b89176d5..8d5be82cf7d66 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadProtectableItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadProtectableItem.Serialization.cs @@ -46,19 +46,19 @@ internal static WorkloadProtectableItem DeserializeWorkloadProtectableItem(JsonE { switch (discriminator.GetString()) { - case "AzureFileShare": return AzureFileShareProtectableItem.DeserializeAzureFileShareProtectableItem(element); - case "AzureVmWorkloadProtectableItem": return AzureVmWorkloadProtectableItem.DeserializeAzureVmWorkloadProtectableItem(element); + case "AzureFileShare": return FileShareProtectableItem.DeserializeFileShareProtectableItem(element); + case "AzureVmWorkloadProtectableItem": return VmWorkloadProtectableItem.DeserializeVmWorkloadProtectableItem(element); case "IaaSVMProtectableItem": return IaasVmProtectableItem.DeserializeIaasVmProtectableItem(element); - case "Microsoft.ClassicCompute/virtualMachines": return AzureIaaSClassicComputeVmProtectableItem.DeserializeAzureIaaSClassicComputeVmProtectableItem(element); - case "Microsoft.Compute/virtualMachines": return AzureIaaSComputeVmProtectableItem.DeserializeAzureIaaSComputeVmProtectableItem(element); - case "SAPAseSystem": return AzureVmWorkloadSAPAseSystemProtectableItem.DeserializeAzureVmWorkloadSAPAseSystemProtectableItem(element); - case "SAPHanaDBInstance": return AzureVmWorkloadSAPHanaDBInstance.DeserializeAzureVmWorkloadSAPHanaDBInstance(element); - case "SAPHanaDatabase": return AzureVmWorkloadSAPHanaDatabaseProtectableItem.DeserializeAzureVmWorkloadSAPHanaDatabaseProtectableItem(element); - case "SAPHanaHSR": return AzureVmWorkloadSAPHanaHSR.DeserializeAzureVmWorkloadSAPHanaHSR(element); - case "SAPHanaSystem": return AzureVmWorkloadSAPHanaSystemProtectableItem.DeserializeAzureVmWorkloadSAPHanaSystemProtectableItem(element); - case "SQLAvailabilityGroupContainer": return AzureVmWorkloadSQLAvailabilityGroupProtectableItem.DeserializeAzureVmWorkloadSQLAvailabilityGroupProtectableItem(element); - case "SQLDataBase": return AzureVmWorkloadSQLDatabaseProtectableItem.DeserializeAzureVmWorkloadSQLDatabaseProtectableItem(element); - case "SQLInstance": return AzureVmWorkloadSQLInstanceProtectableItem.DeserializeAzureVmWorkloadSQLInstanceProtectableItem(element); + case "Microsoft.ClassicCompute/virtualMachines": return IaasClassicComputeVmProtectableItem.DeserializeIaasClassicComputeVmProtectableItem(element); + case "Microsoft.Compute/virtualMachines": return IaasComputeVmProtectableItem.DeserializeIaasComputeVmProtectableItem(element); + case "SAPAseSystem": return VmWorkloadSapAseSystemProtectableItem.DeserializeVmWorkloadSapAseSystemProtectableItem(element); + case "SAPHanaDBInstance": return VmWorkloadSapHanaDBInstance.DeserializeVmWorkloadSapHanaDBInstance(element); + case "SAPHanaDatabase": return VmWorkloadSapHanaDatabaseProtectableItem.DeserializeVmWorkloadSapHanaDatabaseProtectableItem(element); + case "SAPHanaHSR": return VmWorkloadSapHanaHsr.DeserializeVmWorkloadSapHanaHsr(element); + case "SAPHanaSystem": return VmWorkloadSapHanaSystemProtectableItem.DeserializeVmWorkloadSapHanaSystemProtectableItem(element); + case "SQLAvailabilityGroupContainer": return VmWorkloadSqlAvailabilityGroupProtectableItem.DeserializeVmWorkloadSqlAvailabilityGroupProtectableItem(element); + case "SQLDataBase": return VmWorkloadSqlDatabaseProtectableItem.DeserializeVmWorkloadSqlDatabaseProtectableItem(element); + case "SQLInstance": return VmWorkloadSqlInstanceProtectableItem.DeserializeVmWorkloadSqlInstanceProtectableItem(element); } } return UnknownWorkloadProtectableItem.DeserializeUnknownWorkloadProtectableItem(element); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadProtectableItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadProtectableItem.cs index 8184a750e670e..99c4b0032f158 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadProtectableItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadProtectableItem.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models /// /// Base class for backup item. Workload-specific backup items are derived from this class. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , and . + /// The available derived classes include , , , , , , , , , , , and . /// public abstract partial class WorkloadProtectableItem { @@ -25,7 +25,7 @@ protected WorkloadProtectableItem() /// Type of the backup item. /// Friendly name of the backup item. /// State of the back up item. - internal WorkloadProtectableItem(string backupManagementType, string workloadType, string protectableItemType, string friendlyName, ProtectionStatus? protectionState) + internal WorkloadProtectableItem(string backupManagementType, string workloadType, string protectableItemType, string friendlyName, BackupProtectionStatus? protectionState) { BackupManagementType = backupManagementType; WorkloadType = workloadType; @@ -43,6 +43,6 @@ internal WorkloadProtectableItem(string backupManagementType, string workloadTyp /// Friendly name of the backup item. public string FriendlyName { get; set; } /// State of the back up item. - public ProtectionStatus? ProtectionState { get; set; } + public BackupProtectionStatus? ProtectionState { get; set; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadProtectableItemResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadProtectableItemResource.cs index 52176ccae4202..1a0344c385c69 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadProtectableItemResource.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadProtectableItemResource.cs @@ -31,7 +31,7 @@ public WorkloadProtectableItemResource(AzureLocation location) : base(location) /// /// WorkloadProtectableItemResource properties /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , and . + /// The available derived classes include , , , , , , , , , , , and . /// /// Optional ETag. internal WorkloadProtectableItemResource(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, WorkloadProtectableItem properties, ETag? eTag) : base(id, name, resourceType, systemData, tags, location) @@ -43,7 +43,7 @@ internal WorkloadProtectableItemResource(ResourceIdentifier id, string name, Res /// /// WorkloadProtectableItemResource properties /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , and . + /// The available derived classes include , , , , , , , , , , , and . /// public WorkloadProtectableItem Properties { get; set; } /// Optional ETag. diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadRecoveryPoint.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadRecoveryPoint.Serialization.cs similarity index 84% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadRecoveryPoint.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadRecoveryPoint.Serialization.cs index 8f1e86f5a105b..4072597ba764c 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadRecoveryPoint.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadRecoveryPoint.Serialization.cs @@ -12,15 +12,15 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureWorkloadRecoveryPoint : IUtf8JsonSerializable + public partial class WorkloadRecoveryPoint : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - if (Optional.IsDefined(RecoveryPointTimeInUTC)) + if (Optional.IsDefined(RecoveryPointCreatedOn)) { writer.WritePropertyName("recoveryPointTimeInUTC"u8); - writer.WriteStringValue(RecoveryPointTimeInUTC.Value, "O"); + writer.WriteStringValue(RecoveryPointCreatedOn.Value, "O"); } if (Optional.IsDefined(RestorePointType)) { @@ -58,17 +58,17 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureWorkloadRecoveryPoint DeserializeAzureWorkloadRecoveryPoint(JsonElement element) + internal static WorkloadRecoveryPoint DeserializeWorkloadRecoveryPoint(JsonElement element) { if (element.TryGetProperty("objectType", out JsonElement discriminator)) { switch (discriminator.GetString()) { - case "AzureWorkloadPointInTimeRecoveryPoint": return AzureWorkloadPointInTimeRecoveryPoint.DeserializeAzureWorkloadPointInTimeRecoveryPoint(element); - case "AzureWorkloadSAPHanaPointInTimeRecoveryPoint": return AzureWorkloadSAPHanaPointInTimeRecoveryPoint.DeserializeAzureWorkloadSAPHanaPointInTimeRecoveryPoint(element); - case "AzureWorkloadSAPHanaRecoveryPoint": return AzureWorkloadSAPHanaRecoveryPoint.DeserializeAzureWorkloadSAPHanaRecoveryPoint(element); - case "AzureWorkloadSQLPointInTimeRecoveryPoint": return AzureWorkloadSQLPointInTimeRecoveryPoint.DeserializeAzureWorkloadSQLPointInTimeRecoveryPoint(element); - case "AzureWorkloadSQLRecoveryPoint": return AzureWorkloadSQLRecoveryPoint.DeserializeAzureWorkloadSQLRecoveryPoint(element); + case "AzureWorkloadPointInTimeRecoveryPoint": return WorkloadPointInTimeRecoveryPoint.DeserializeWorkloadPointInTimeRecoveryPoint(element); + case "AzureWorkloadSAPHanaPointInTimeRecoveryPoint": return WorkloadSapHanaPointInTimeRecoveryPoint.DeserializeWorkloadSapHanaPointInTimeRecoveryPoint(element); + case "AzureWorkloadSAPHanaRecoveryPoint": return WorkloadSapHanaRecoveryPoint.DeserializeWorkloadSapHanaRecoveryPoint(element); + case "AzureWorkloadSQLPointInTimeRecoveryPoint": return WorkloadSqlPointInTimeRecoveryPoint.DeserializeWorkloadSqlPointInTimeRecoveryPoint(element); + case "AzureWorkloadSQLRecoveryPoint": return WorkloadSqlRecoveryPoint.DeserializeWorkloadSqlRecoveryPoint(element); } } Optional recoveryPointTimeInUTC = default; @@ -145,7 +145,7 @@ internal static AzureWorkloadRecoveryPoint DeserializeAzureWorkloadRecoveryPoint continue; } } - return new AzureWorkloadRecoveryPoint(objectType, Optional.ToNullable(recoveryPointTimeInUTC), Optional.ToNullable(type), Optional.ToList(recoveryPointTierDetails), Optional.ToDictionary(recoveryPointMoveReadinessInfo), recoveryPointProperties.Value); + return new WorkloadRecoveryPoint(objectType, Optional.ToNullable(recoveryPointTimeInUTC), Optional.ToNullable(type), Optional.ToList(recoveryPointTierDetails), Optional.ToDictionary(recoveryPointMoveReadinessInfo), recoveryPointProperties.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadRecoveryPoint.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadRecoveryPoint.cs similarity index 62% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadRecoveryPoint.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadRecoveryPoint.cs index df4649ff7a0a5..a2d3dfe8a1b25 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadRecoveryPoint.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadRecoveryPoint.cs @@ -13,29 +13,29 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// /// Workload specific recovery point, specifically encapsulates full/diff recovery point - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . /// - public partial class AzureWorkloadRecoveryPoint : RecoveryPoint + public partial class WorkloadRecoveryPoint : BackupGenericRecoveryPoint { - /// Initializes a new instance of AzureWorkloadRecoveryPoint. - public AzureWorkloadRecoveryPoint() + /// Initializes a new instance of WorkloadRecoveryPoint. + public WorkloadRecoveryPoint() { RecoveryPointTierDetails = new ChangeTrackingList(); RecoveryPointMoveReadinessInfo = new ChangeTrackingDictionary(); ObjectType = "AzureWorkloadRecoveryPoint"; } - /// Initializes a new instance of AzureWorkloadRecoveryPoint. + /// Initializes a new instance of WorkloadRecoveryPoint. /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. - /// UTC time at which recovery point was created. + /// UTC time at which recovery point was created. /// Type of restore point. /// Recovery point tier information. /// Eligibility of RP to be moved to another tier. /// Properties of Recovery Point. - internal AzureWorkloadRecoveryPoint(string objectType, DateTimeOffset? recoveryPointTimeInUTC, RestorePointType? restorePointType, IList recoveryPointTierDetails, IDictionary recoveryPointMoveReadinessInfo, RecoveryPointProperties recoveryPointProperties) : base(objectType) + internal WorkloadRecoveryPoint(string objectType, DateTimeOffset? recoveryPointCreatedOn, RestorePointType? restorePointType, IList recoveryPointTierDetails, IDictionary recoveryPointMoveReadinessInfo, RecoveryPointProperties recoveryPointProperties) : base(objectType) { - RecoveryPointTimeInUTC = recoveryPointTimeInUTC; + RecoveryPointCreatedOn = recoveryPointCreatedOn; RestorePointType = restorePointType; RecoveryPointTierDetails = recoveryPointTierDetails; RecoveryPointMoveReadinessInfo = recoveryPointMoveReadinessInfo; @@ -44,7 +44,7 @@ internal AzureWorkloadRecoveryPoint(string objectType, DateTimeOffset? recoveryP } /// UTC time at which recovery point was created. - public DateTimeOffset? RecoveryPointTimeInUTC { get; set; } + public DateTimeOffset? RecoveryPointCreatedOn { get; set; } /// Type of restore point. public RestorePointType? RestorePointType { get; set; } /// Recovery point tier information. diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadRestoreRequest.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadRestoreContent.Serialization.cs similarity index 69% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadRestoreRequest.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadRestoreContent.Serialization.cs index 08e515fb7a923..fc2b75ac3f1b3 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadRestoreRequest.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadRestoreContent.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureWorkloadRestoreRequest : IUtf8JsonSerializable + public partial class WorkloadRestoreContent : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -57,29 +57,29 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureWorkloadRestoreRequest DeserializeAzureWorkloadRestoreRequest(JsonElement element) + internal static WorkloadRestoreContent DeserializeWorkloadRestoreContent(JsonElement element) { if (element.TryGetProperty("objectType", out JsonElement discriminator)) { switch (discriminator.GetString()) { - case "AzureWorkloadPointInTimeRestoreRequest": return AzureWorkloadPointInTimeRestoreRequest.DeserializeAzureWorkloadPointInTimeRestoreRequest(element); - case "AzureWorkloadSAPHanaPointInTimeRestoreRequest": return AzureWorkloadSAPHanaPointInTimeRestoreRequest.DeserializeAzureWorkloadSAPHanaPointInTimeRestoreRequest(element); - case "AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest": return AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest.DeserializeAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest(element); - case "AzureWorkloadSAPHanaRestoreRequest": return AzureWorkloadSAPHanaRestoreRequest.DeserializeAzureWorkloadSAPHanaRestoreRequest(element); - case "AzureWorkloadSAPHanaRestoreWithRehydrateRequest": return AzureWorkloadSAPHanaRestoreWithRehydrateRequest.DeserializeAzureWorkloadSAPHanaRestoreWithRehydrateRequest(element); - case "AzureWorkloadSQLPointInTimeRestoreRequest": return AzureWorkloadSQLPointInTimeRestoreRequest.DeserializeAzureWorkloadSQLPointInTimeRestoreRequest(element); - case "AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest": return AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest.DeserializeAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest(element); - case "AzureWorkloadSQLRestoreRequest": return AzureWorkloadSQLRestoreRequest.DeserializeAzureWorkloadSQLRestoreRequest(element); - case "AzureWorkloadSQLRestoreWithRehydrateRequest": return AzureWorkloadSQLRestoreWithRehydrateRequest.DeserializeAzureWorkloadSQLRestoreWithRehydrateRequest(element); + case "AzureWorkloadPointInTimeRestoreRequest": return WorkloadPointInTimeRestoreContent.DeserializeWorkloadPointInTimeRestoreContent(element); + case "AzureWorkloadSAPHanaPointInTimeRestoreRequest": return WorkloadSapHanaPointInTimeRestoreContent.DeserializeWorkloadSapHanaPointInTimeRestoreContent(element); + case "AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest": return WorkloadSapHanaPointInTimeRestoreWithRehydrateContent.DeserializeWorkloadSapHanaPointInTimeRestoreWithRehydrateContent(element); + case "AzureWorkloadSAPHanaRestoreRequest": return WorkloadSapHanaRestoreContent.DeserializeWorkloadSapHanaRestoreContent(element); + case "AzureWorkloadSAPHanaRestoreWithRehydrateRequest": return WorkloadSapHanaRestoreWithRehydrateContent.DeserializeWorkloadSapHanaRestoreWithRehydrateContent(element); + case "AzureWorkloadSQLPointInTimeRestoreRequest": return WorkloadSqlPointInTimeRestoreContent.DeserializeWorkloadSqlPointInTimeRestoreContent(element); + case "AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest": return WorkloadSqlPointInTimeRestoreWithRehydrateContent.DeserializeWorkloadSqlPointInTimeRestoreWithRehydrateContent(element); + case "AzureWorkloadSQLRestoreRequest": return WorkloadSqlRestoreContent.DeserializeWorkloadSqlRestoreContent(element); + case "AzureWorkloadSQLRestoreWithRehydrateRequest": return WorkloadSqlRestoreWithRehydrateContent.DeserializeWorkloadSqlRestoreWithRehydrateContent(element); } } - Optional recoveryType = default; - Optional sourceResourceId = default; + Optional recoveryType = default; + Optional sourceResourceId = default; Optional> propertyBag = default; Optional targetInfo = default; Optional recoveryMode = default; - Optional targetVirtualMachineId = default; + Optional targetVirtualMachineId = default; string objectType = "AzureWorkloadRestoreRequest"; foreach (var property in element.EnumerateObject()) { @@ -90,12 +90,17 @@ internal static AzureWorkloadRestoreRequest DeserializeAzureWorkloadRestoreReque property.ThrowNonNullablePropertyIsNull(); continue; } - recoveryType = new RecoveryType(property.Value.GetString()); + recoveryType = new FileShareRecoveryType(property.Value.GetString()); continue; } if (property.NameEquals("sourceResourceId"u8)) { - sourceResourceId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + sourceResourceId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("propertyBag"u8)) @@ -135,7 +140,12 @@ internal static AzureWorkloadRestoreRequest DeserializeAzureWorkloadRestoreReque } if (property.NameEquals("targetVirtualMachineId"u8)) { - targetVirtualMachineId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + targetVirtualMachineId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("objectType"u8)) @@ -144,7 +154,7 @@ internal static AzureWorkloadRestoreRequest DeserializeAzureWorkloadRestoreReque continue; } } - return new AzureWorkloadRestoreRequest(objectType, Optional.ToNullable(recoveryType), sourceResourceId.Value, Optional.ToDictionary(propertyBag), targetInfo.Value, Optional.ToNullable(recoveryMode), targetVirtualMachineId.Value); + return new WorkloadRestoreContent(objectType, Optional.ToNullable(recoveryType), sourceResourceId.Value, Optional.ToDictionary(propertyBag), targetInfo.Value, Optional.ToNullable(recoveryMode), targetVirtualMachineId.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadRestoreRequest.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadRestoreContent.cs similarity index 62% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadRestoreRequest.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadRestoreContent.cs index 244e8e752aff9..c2f148314c5df 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadRestoreRequest.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadRestoreContent.cs @@ -12,19 +12,19 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// /// AzureWorkload-specific restore. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , , and . /// - public partial class AzureWorkloadRestoreRequest : RestoreRequest + public partial class WorkloadRestoreContent : RestoreContent { - /// Initializes a new instance of AzureWorkloadRestoreRequest. - public AzureWorkloadRestoreRequest() + /// Initializes a new instance of WorkloadRestoreContent. + public WorkloadRestoreContent() { PropertyBag = new ChangeTrackingDictionary(); ObjectType = "AzureWorkloadRestoreRequest"; } - /// Initializes a new instance of AzureWorkloadRestoreRequest. + /// Initializes a new instance of WorkloadRestoreContent. /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. /// Type of this recovery. /// Fully qualified ARM ID of the VM on which workload that was running is being recovered. @@ -35,7 +35,7 @@ public AzureWorkloadRestoreRequest() /// This is the complete ARM Id of the target VM /// For e.g. /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} /// - internal AzureWorkloadRestoreRequest(string objectType, RecoveryType? recoveryType, string sourceResourceId, IDictionary propertyBag, TargetRestoreInfo targetInfo, RecoveryMode? recoveryMode, string targetVirtualMachineId) : base(objectType) + internal WorkloadRestoreContent(string objectType, FileShareRecoveryType? recoveryType, ResourceIdentifier sourceResourceId, IDictionary propertyBag, TargetRestoreInfo targetInfo, RecoveryMode? recoveryMode, ResourceIdentifier targetVirtualMachineId) : base(objectType) { RecoveryType = recoveryType; SourceResourceId = sourceResourceId; @@ -47,9 +47,9 @@ internal AzureWorkloadRestoreRequest(string objectType, RecoveryType? recoveryTy } /// Type of this recovery. - public RecoveryType? RecoveryType { get; set; } + public FileShareRecoveryType? RecoveryType { get; set; } /// Fully qualified ARM ID of the VM on which workload that was running is being recovered. - public string SourceResourceId { get; set; } + public ResourceIdentifier SourceResourceId { get; set; } /// Workload specific property bag. public IDictionary PropertyBag { get; } /// Details of target database. @@ -60,6 +60,6 @@ internal AzureWorkloadRestoreRequest(string objectType, RecoveryType? recoveryTy /// This is the complete ARM Id of the target VM /// For e.g. /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} /// - public string TargetVirtualMachineId { get; set; } + public ResourceIdentifier TargetVirtualMachineId { get; set; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSAPHanaPointInTimeRecoveryPoint.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaPointInTimeRecoveryPoint.Serialization.cs similarity index 90% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSAPHanaPointInTimeRecoveryPoint.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaPointInTimeRecoveryPoint.Serialization.cs index 6d51f61aee2c4..4e0e16a2d4b2b 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSAPHanaPointInTimeRecoveryPoint.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaPointInTimeRecoveryPoint.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureWorkloadSAPHanaPointInTimeRecoveryPoint : IUtf8JsonSerializable + public partial class WorkloadSapHanaPointInTimeRecoveryPoint : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -27,10 +27,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndArray(); } - if (Optional.IsDefined(RecoveryPointTimeInUTC)) + if (Optional.IsDefined(RecoveryPointCreatedOn)) { writer.WritePropertyName("recoveryPointTimeInUTC"u8); - writer.WriteStringValue(RecoveryPointTimeInUTC.Value, "O"); + writer.WriteStringValue(RecoveryPointCreatedOn.Value, "O"); } if (Optional.IsDefined(RestorePointType)) { @@ -68,7 +68,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureWorkloadSAPHanaPointInTimeRecoveryPoint DeserializeAzureWorkloadSAPHanaPointInTimeRecoveryPoint(JsonElement element) + internal static WorkloadSapHanaPointInTimeRecoveryPoint DeserializeWorkloadSapHanaPointInTimeRecoveryPoint(JsonElement element) { Optional> timeRanges = default; Optional recoveryPointTimeInUTC = default; @@ -160,7 +160,7 @@ internal static AzureWorkloadSAPHanaPointInTimeRecoveryPoint DeserializeAzureWor continue; } } - return new AzureWorkloadSAPHanaPointInTimeRecoveryPoint(objectType, Optional.ToNullable(recoveryPointTimeInUTC), Optional.ToNullable(type), Optional.ToList(recoveryPointTierDetails), Optional.ToDictionary(recoveryPointMoveReadinessInfo), recoveryPointProperties.Value, Optional.ToList(timeRanges)); + return new WorkloadSapHanaPointInTimeRecoveryPoint(objectType, Optional.ToNullable(recoveryPointTimeInUTC), Optional.ToNullable(type), Optional.ToList(recoveryPointTierDetails), Optional.ToDictionary(recoveryPointMoveReadinessInfo), recoveryPointProperties.Value, Optional.ToList(timeRanges)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSAPHanaPointInTimeRecoveryPoint.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaPointInTimeRecoveryPoint.cs similarity index 54% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSAPHanaPointInTimeRecoveryPoint.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaPointInTimeRecoveryPoint.cs index 5799f871ed0f6..4226180b8dac0 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSAPHanaPointInTimeRecoveryPoint.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaPointInTimeRecoveryPoint.cs @@ -11,23 +11,23 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Recovery point specific to PointInTime in SAPHana. - public partial class AzureWorkloadSAPHanaPointInTimeRecoveryPoint : AzureWorkloadPointInTimeRecoveryPoint + public partial class WorkloadSapHanaPointInTimeRecoveryPoint : WorkloadPointInTimeRecoveryPoint { - /// Initializes a new instance of AzureWorkloadSAPHanaPointInTimeRecoveryPoint. - public AzureWorkloadSAPHanaPointInTimeRecoveryPoint() + /// Initializes a new instance of WorkloadSapHanaPointInTimeRecoveryPoint. + public WorkloadSapHanaPointInTimeRecoveryPoint() { ObjectType = "AzureWorkloadSAPHanaPointInTimeRecoveryPoint"; } - /// Initializes a new instance of AzureWorkloadSAPHanaPointInTimeRecoveryPoint. + /// Initializes a new instance of WorkloadSapHanaPointInTimeRecoveryPoint. /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. - /// UTC time at which recovery point was created. + /// UTC time at which recovery point was created. /// Type of restore point. /// Recovery point tier information. /// Eligibility of RP to be moved to another tier. /// Properties of Recovery Point. /// List of log ranges. - internal AzureWorkloadSAPHanaPointInTimeRecoveryPoint(string objectType, DateTimeOffset? recoveryPointTimeInUTC, RestorePointType? restorePointType, IList recoveryPointTierDetails, IDictionary recoveryPointMoveReadinessInfo, RecoveryPointProperties recoveryPointProperties, IList timeRanges) : base(objectType, recoveryPointTimeInUTC, restorePointType, recoveryPointTierDetails, recoveryPointMoveReadinessInfo, recoveryPointProperties, timeRanges) + internal WorkloadSapHanaPointInTimeRecoveryPoint(string objectType, DateTimeOffset? recoveryPointCreatedOn, RestorePointType? restorePointType, IList recoveryPointTierDetails, IDictionary recoveryPointMoveReadinessInfo, RecoveryPointProperties recoveryPointProperties, IList timeRanges) : base(objectType, recoveryPointCreatedOn, restorePointType, recoveryPointTierDetails, recoveryPointMoveReadinessInfo, recoveryPointProperties, timeRanges) { ObjectType = objectType ?? "AzureWorkloadSAPHanaPointInTimeRecoveryPoint"; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSAPHanaPointInTimeRestoreRequest.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaPointInTimeRestoreContent.Serialization.cs similarity index 78% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSAPHanaPointInTimeRestoreRequest.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaPointInTimeRestoreContent.Serialization.cs index 91f7a1aa5f972..20d7bbe0bbffd 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSAPHanaPointInTimeRestoreRequest.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaPointInTimeRestoreContent.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureWorkloadSAPHanaPointInTimeRestoreRequest : IUtf8JsonSerializable + public partial class WorkloadSapHanaPointInTimeRestoreContent : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -63,22 +63,22 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureWorkloadSAPHanaPointInTimeRestoreRequest DeserializeAzureWorkloadSAPHanaPointInTimeRestoreRequest(JsonElement element) + internal static WorkloadSapHanaPointInTimeRestoreContent DeserializeWorkloadSapHanaPointInTimeRestoreContent(JsonElement element) { if (element.TryGetProperty("objectType", out JsonElement discriminator)) { switch (discriminator.GetString()) { - case "AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest": return AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest.DeserializeAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest(element); + case "AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest": return WorkloadSapHanaPointInTimeRestoreWithRehydrateContent.DeserializeWorkloadSapHanaPointInTimeRestoreWithRehydrateContent(element); } } Optional pointInTime = default; - Optional recoveryType = default; - Optional sourceResourceId = default; + Optional recoveryType = default; + Optional sourceResourceId = default; Optional> propertyBag = default; Optional targetInfo = default; Optional recoveryMode = default; - Optional targetVirtualMachineId = default; + Optional targetVirtualMachineId = default; string objectType = "AzureWorkloadSAPHanaPointInTimeRestoreRequest"; foreach (var property in element.EnumerateObject()) { @@ -99,12 +99,17 @@ internal static AzureWorkloadSAPHanaPointInTimeRestoreRequest DeserializeAzureWo property.ThrowNonNullablePropertyIsNull(); continue; } - recoveryType = new RecoveryType(property.Value.GetString()); + recoveryType = new FileShareRecoveryType(property.Value.GetString()); continue; } if (property.NameEquals("sourceResourceId"u8)) { - sourceResourceId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + sourceResourceId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("propertyBag"u8)) @@ -144,7 +149,12 @@ internal static AzureWorkloadSAPHanaPointInTimeRestoreRequest DeserializeAzureWo } if (property.NameEquals("targetVirtualMachineId"u8)) { - targetVirtualMachineId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + targetVirtualMachineId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("objectType"u8)) @@ -153,7 +163,7 @@ internal static AzureWorkloadSAPHanaPointInTimeRestoreRequest DeserializeAzureWo continue; } } - return new AzureWorkloadSAPHanaPointInTimeRestoreRequest(objectType, Optional.ToNullable(recoveryType), sourceResourceId.Value, Optional.ToDictionary(propertyBag), targetInfo.Value, Optional.ToNullable(recoveryMode), targetVirtualMachineId.Value, Optional.ToNullable(pointInTime)); + return new WorkloadSapHanaPointInTimeRestoreContent(objectType, Optional.ToNullable(recoveryType), sourceResourceId.Value, Optional.ToDictionary(propertyBag), targetInfo.Value, Optional.ToNullable(recoveryMode), targetVirtualMachineId.Value, Optional.ToNullable(pointInTime)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSAPHanaPointInTimeRestoreRequest.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaPointInTimeRestoreContent.cs similarity index 58% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSAPHanaPointInTimeRestoreRequest.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaPointInTimeRestoreContent.cs index f8f9add306201..b9a8b22183417 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSAPHanaPointInTimeRestoreRequest.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaPointInTimeRestoreContent.cs @@ -7,23 +7,24 @@ using System; using System.Collections.Generic; +using Azure.Core; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// /// AzureWorkload SAP Hana -specific restore. Specifically for PointInTime/Log restore - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . /// - public partial class AzureWorkloadSAPHanaPointInTimeRestoreRequest : AzureWorkloadSAPHanaRestoreRequest + public partial class WorkloadSapHanaPointInTimeRestoreContent : WorkloadSapHanaRestoreContent { - /// Initializes a new instance of AzureWorkloadSAPHanaPointInTimeRestoreRequest. - public AzureWorkloadSAPHanaPointInTimeRestoreRequest() + /// Initializes a new instance of WorkloadSapHanaPointInTimeRestoreContent. + public WorkloadSapHanaPointInTimeRestoreContent() { ObjectType = "AzureWorkloadSAPHanaPointInTimeRestoreRequest"; } - /// Initializes a new instance of AzureWorkloadSAPHanaPointInTimeRestoreRequest. + /// Initializes a new instance of WorkloadSapHanaPointInTimeRestoreContent. /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. /// Type of this recovery. /// Fully qualified ARM ID of the VM on which workload that was running is being recovered. @@ -35,7 +36,7 @@ public AzureWorkloadSAPHanaPointInTimeRestoreRequest() /// For e.g. /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} /// /// PointInTime value. - internal AzureWorkloadSAPHanaPointInTimeRestoreRequest(string objectType, RecoveryType? recoveryType, string sourceResourceId, IDictionary propertyBag, TargetRestoreInfo targetInfo, RecoveryMode? recoveryMode, string targetVirtualMachineId, DateTimeOffset? pointInTime) : base(objectType, recoveryType, sourceResourceId, propertyBag, targetInfo, recoveryMode, targetVirtualMachineId) + internal WorkloadSapHanaPointInTimeRestoreContent(string objectType, FileShareRecoveryType? recoveryType, ResourceIdentifier sourceResourceId, IDictionary propertyBag, TargetRestoreInfo targetInfo, RecoveryMode? recoveryMode, ResourceIdentifier targetVirtualMachineId, DateTimeOffset? pointInTime) : base(objectType, recoveryType, sourceResourceId, propertyBag, targetInfo, recoveryMode, targetVirtualMachineId) { PointInTime = pointInTime; ObjectType = objectType ?? "AzureWorkloadSAPHanaPointInTimeRestoreRequest"; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaPointInTimeRestoreWithRehydrateContent.Serialization.cs similarity index 80% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaPointInTimeRestoreWithRehydrateContent.Serialization.cs index 0b8883b1fb5c2..c6286aca257ea 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaPointInTimeRestoreWithRehydrateContent.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest : IUtf8JsonSerializable + public partial class WorkloadSapHanaPointInTimeRestoreWithRehydrateContent : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -68,16 +68,16 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest DeserializeAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest(JsonElement element) + internal static WorkloadSapHanaPointInTimeRestoreWithRehydrateContent DeserializeWorkloadSapHanaPointInTimeRestoreWithRehydrateContent(JsonElement element) { Optional recoveryPointRehydrationInfo = default; Optional pointInTime = default; - Optional recoveryType = default; - Optional sourceResourceId = default; + Optional recoveryType = default; + Optional sourceResourceId = default; Optional> propertyBag = default; Optional targetInfo = default; Optional recoveryMode = default; - Optional targetVirtualMachineId = default; + Optional targetVirtualMachineId = default; string objectType = default; foreach (var property in element.EnumerateObject()) { @@ -108,12 +108,17 @@ internal static AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest Deser property.ThrowNonNullablePropertyIsNull(); continue; } - recoveryType = new RecoveryType(property.Value.GetString()); + recoveryType = new FileShareRecoveryType(property.Value.GetString()); continue; } if (property.NameEquals("sourceResourceId"u8)) { - sourceResourceId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + sourceResourceId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("propertyBag"u8)) @@ -153,7 +158,12 @@ internal static AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest Deser } if (property.NameEquals("targetVirtualMachineId"u8)) { - targetVirtualMachineId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + targetVirtualMachineId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("objectType"u8)) @@ -162,7 +172,7 @@ internal static AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest Deser continue; } } - return new AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest(objectType, Optional.ToNullable(recoveryType), sourceResourceId.Value, Optional.ToDictionary(propertyBag), targetInfo.Value, Optional.ToNullable(recoveryMode), targetVirtualMachineId.Value, Optional.ToNullable(pointInTime), recoveryPointRehydrationInfo.Value); + return new WorkloadSapHanaPointInTimeRestoreWithRehydrateContent(objectType, Optional.ToNullable(recoveryType), sourceResourceId.Value, Optional.ToDictionary(propertyBag), targetInfo.Value, Optional.ToNullable(recoveryMode), targetVirtualMachineId.Value, Optional.ToNullable(pointInTime), recoveryPointRehydrationInfo.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaPointInTimeRestoreWithRehydrateContent.cs similarity index 65% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaPointInTimeRestoreWithRehydrateContent.cs index 7c738dd2671d5..394c011d5f6ab 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaPointInTimeRestoreWithRehydrateContent.cs @@ -7,19 +7,20 @@ using System; using System.Collections.Generic; +using Azure.Core; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// AzureWorkload SAP Hana-specific restore with integrated rehydration of recovery point. - public partial class AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest : AzureWorkloadSAPHanaPointInTimeRestoreRequest + public partial class WorkloadSapHanaPointInTimeRestoreWithRehydrateContent : WorkloadSapHanaPointInTimeRestoreContent { - /// Initializes a new instance of AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest. - public AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest() + /// Initializes a new instance of WorkloadSapHanaPointInTimeRestoreWithRehydrateContent. + public WorkloadSapHanaPointInTimeRestoreWithRehydrateContent() { ObjectType = "AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest"; } - /// Initializes a new instance of AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest. + /// Initializes a new instance of WorkloadSapHanaPointInTimeRestoreWithRehydrateContent. /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. /// Type of this recovery. /// Fully qualified ARM ID of the VM on which workload that was running is being recovered. @@ -32,7 +33,7 @@ public AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest() /// /// PointInTime value. /// RP Rehydration Info. - internal AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest(string objectType, RecoveryType? recoveryType, string sourceResourceId, IDictionary propertyBag, TargetRestoreInfo targetInfo, RecoveryMode? recoveryMode, string targetVirtualMachineId, DateTimeOffset? pointInTime, RecoveryPointRehydrationInfo recoveryPointRehydrationInfo) : base(objectType, recoveryType, sourceResourceId, propertyBag, targetInfo, recoveryMode, targetVirtualMachineId, pointInTime) + internal WorkloadSapHanaPointInTimeRestoreWithRehydrateContent(string objectType, FileShareRecoveryType? recoveryType, ResourceIdentifier sourceResourceId, IDictionary propertyBag, TargetRestoreInfo targetInfo, RecoveryMode? recoveryMode, ResourceIdentifier targetVirtualMachineId, DateTimeOffset? pointInTime, RecoveryPointRehydrationInfo recoveryPointRehydrationInfo) : base(objectType, recoveryType, sourceResourceId, propertyBag, targetInfo, recoveryMode, targetVirtualMachineId, pointInTime) { RecoveryPointRehydrationInfo = recoveryPointRehydrationInfo; ObjectType = objectType ?? "AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest"; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSAPHanaRecoveryPoint.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaRecoveryPoint.Serialization.cs similarity index 90% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSAPHanaRecoveryPoint.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaRecoveryPoint.Serialization.cs index 1857daabe8cf1..361dae92c2d48 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSAPHanaRecoveryPoint.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaRecoveryPoint.Serialization.cs @@ -12,15 +12,15 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureWorkloadSAPHanaRecoveryPoint : IUtf8JsonSerializable + public partial class WorkloadSapHanaRecoveryPoint : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - if (Optional.IsDefined(RecoveryPointTimeInUTC)) + if (Optional.IsDefined(RecoveryPointCreatedOn)) { writer.WritePropertyName("recoveryPointTimeInUTC"u8); - writer.WriteStringValue(RecoveryPointTimeInUTC.Value, "O"); + writer.WriteStringValue(RecoveryPointCreatedOn.Value, "O"); } if (Optional.IsDefined(RestorePointType)) { @@ -58,7 +58,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureWorkloadSAPHanaRecoveryPoint DeserializeAzureWorkloadSAPHanaRecoveryPoint(JsonElement element) + internal static WorkloadSapHanaRecoveryPoint DeserializeWorkloadSapHanaRecoveryPoint(JsonElement element) { Optional recoveryPointTimeInUTC = default; Optional type = default; @@ -134,7 +134,7 @@ internal static AzureWorkloadSAPHanaRecoveryPoint DeserializeAzureWorkloadSAPHan continue; } } - return new AzureWorkloadSAPHanaRecoveryPoint(objectType, Optional.ToNullable(recoveryPointTimeInUTC), Optional.ToNullable(type), Optional.ToList(recoveryPointTierDetails), Optional.ToDictionary(recoveryPointMoveReadinessInfo), recoveryPointProperties.Value); + return new WorkloadSapHanaRecoveryPoint(objectType, Optional.ToNullable(recoveryPointTimeInUTC), Optional.ToNullable(type), Optional.ToList(recoveryPointTierDetails), Optional.ToDictionary(recoveryPointMoveReadinessInfo), recoveryPointProperties.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSAPHanaRecoveryPoint.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaRecoveryPoint.cs similarity index 56% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSAPHanaRecoveryPoint.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaRecoveryPoint.cs index 5f8e9965369b0..d46ba0ea33c2d 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSAPHanaRecoveryPoint.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaRecoveryPoint.cs @@ -11,22 +11,22 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// SAPHana specific recoverypoint, specifically encapsulates full/diff recoverypoints. - public partial class AzureWorkloadSAPHanaRecoveryPoint : AzureWorkloadRecoveryPoint + public partial class WorkloadSapHanaRecoveryPoint : WorkloadRecoveryPoint { - /// Initializes a new instance of AzureWorkloadSAPHanaRecoveryPoint. - public AzureWorkloadSAPHanaRecoveryPoint() + /// Initializes a new instance of WorkloadSapHanaRecoveryPoint. + public WorkloadSapHanaRecoveryPoint() { ObjectType = "AzureWorkloadSAPHanaRecoveryPoint"; } - /// Initializes a new instance of AzureWorkloadSAPHanaRecoveryPoint. + /// Initializes a new instance of WorkloadSapHanaRecoveryPoint. /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. - /// UTC time at which recovery point was created. + /// UTC time at which recovery point was created. /// Type of restore point. /// Recovery point tier information. /// Eligibility of RP to be moved to another tier. /// Properties of Recovery Point. - internal AzureWorkloadSAPHanaRecoveryPoint(string objectType, DateTimeOffset? recoveryPointTimeInUTC, RestorePointType? restorePointType, IList recoveryPointTierDetails, IDictionary recoveryPointMoveReadinessInfo, RecoveryPointProperties recoveryPointProperties) : base(objectType, recoveryPointTimeInUTC, restorePointType, recoveryPointTierDetails, recoveryPointMoveReadinessInfo, recoveryPointProperties) + internal WorkloadSapHanaRecoveryPoint(string objectType, DateTimeOffset? recoveryPointCreatedOn, RestorePointType? restorePointType, IList recoveryPointTierDetails, IDictionary recoveryPointMoveReadinessInfo, RecoveryPointProperties recoveryPointProperties) : base(objectType, recoveryPointCreatedOn, restorePointType, recoveryPointTierDetails, recoveryPointMoveReadinessInfo, recoveryPointProperties) { ObjectType = objectType ?? "AzureWorkloadSAPHanaRecoveryPoint"; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSAPHanaRestoreRequest.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaRestoreContent.Serialization.cs similarity index 74% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSAPHanaRestoreRequest.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaRestoreContent.Serialization.cs index b3c5b5bd0515b..9f9addbf165c3 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSAPHanaRestoreRequest.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaRestoreContent.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureWorkloadSAPHanaRestoreRequest : IUtf8JsonSerializable + public partial class WorkloadSapHanaRestoreContent : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -57,23 +57,23 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureWorkloadSAPHanaRestoreRequest DeserializeAzureWorkloadSAPHanaRestoreRequest(JsonElement element) + internal static WorkloadSapHanaRestoreContent DeserializeWorkloadSapHanaRestoreContent(JsonElement element) { if (element.TryGetProperty("objectType", out JsonElement discriminator)) { switch (discriminator.GetString()) { - case "AzureWorkloadSAPHanaPointInTimeRestoreRequest": return AzureWorkloadSAPHanaPointInTimeRestoreRequest.DeserializeAzureWorkloadSAPHanaPointInTimeRestoreRequest(element); - case "AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest": return AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest.DeserializeAzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest(element); - case "AzureWorkloadSAPHanaRestoreWithRehydrateRequest": return AzureWorkloadSAPHanaRestoreWithRehydrateRequest.DeserializeAzureWorkloadSAPHanaRestoreWithRehydrateRequest(element); + case "AzureWorkloadSAPHanaPointInTimeRestoreRequest": return WorkloadSapHanaPointInTimeRestoreContent.DeserializeWorkloadSapHanaPointInTimeRestoreContent(element); + case "AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest": return WorkloadSapHanaPointInTimeRestoreWithRehydrateContent.DeserializeWorkloadSapHanaPointInTimeRestoreWithRehydrateContent(element); + case "AzureWorkloadSAPHanaRestoreWithRehydrateRequest": return WorkloadSapHanaRestoreWithRehydrateContent.DeserializeWorkloadSapHanaRestoreWithRehydrateContent(element); } } - Optional recoveryType = default; - Optional sourceResourceId = default; + Optional recoveryType = default; + Optional sourceResourceId = default; Optional> propertyBag = default; Optional targetInfo = default; Optional recoveryMode = default; - Optional targetVirtualMachineId = default; + Optional targetVirtualMachineId = default; string objectType = "AzureWorkloadSAPHanaRestoreRequest"; foreach (var property in element.EnumerateObject()) { @@ -84,12 +84,17 @@ internal static AzureWorkloadSAPHanaRestoreRequest DeserializeAzureWorkloadSAPHa property.ThrowNonNullablePropertyIsNull(); continue; } - recoveryType = new RecoveryType(property.Value.GetString()); + recoveryType = new FileShareRecoveryType(property.Value.GetString()); continue; } if (property.NameEquals("sourceResourceId"u8)) { - sourceResourceId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + sourceResourceId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("propertyBag"u8)) @@ -129,7 +134,12 @@ internal static AzureWorkloadSAPHanaRestoreRequest DeserializeAzureWorkloadSAPHa } if (property.NameEquals("targetVirtualMachineId"u8)) { - targetVirtualMachineId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + targetVirtualMachineId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("objectType"u8)) @@ -138,7 +148,7 @@ internal static AzureWorkloadSAPHanaRestoreRequest DeserializeAzureWorkloadSAPHa continue; } } - return new AzureWorkloadSAPHanaRestoreRequest(objectType, Optional.ToNullable(recoveryType), sourceResourceId.Value, Optional.ToDictionary(propertyBag), targetInfo.Value, Optional.ToNullable(recoveryMode), targetVirtualMachineId.Value); + return new WorkloadSapHanaRestoreContent(objectType, Optional.ToNullable(recoveryType), sourceResourceId.Value, Optional.ToDictionary(propertyBag), targetInfo.Value, Optional.ToNullable(recoveryMode), targetVirtualMachineId.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSAPHanaRestoreRequest.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaRestoreContent.cs similarity index 53% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSAPHanaRestoreRequest.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaRestoreContent.cs index 899b9eecf0a72..c2417336fe1b9 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSAPHanaRestoreRequest.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaRestoreContent.cs @@ -6,23 +6,24 @@ #nullable disable using System.Collections.Generic; +using Azure.Core; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// /// AzureWorkload SAP Hana-specific restore. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . /// - public partial class AzureWorkloadSAPHanaRestoreRequest : AzureWorkloadRestoreRequest + public partial class WorkloadSapHanaRestoreContent : WorkloadRestoreContent { - /// Initializes a new instance of AzureWorkloadSAPHanaRestoreRequest. - public AzureWorkloadSAPHanaRestoreRequest() + /// Initializes a new instance of WorkloadSapHanaRestoreContent. + public WorkloadSapHanaRestoreContent() { ObjectType = "AzureWorkloadSAPHanaRestoreRequest"; } - /// Initializes a new instance of AzureWorkloadSAPHanaRestoreRequest. + /// Initializes a new instance of WorkloadSapHanaRestoreContent. /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. /// Type of this recovery. /// Fully qualified ARM ID of the VM on which workload that was running is being recovered. @@ -33,7 +34,7 @@ public AzureWorkloadSAPHanaRestoreRequest() /// This is the complete ARM Id of the target VM /// For e.g. /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} /// - internal AzureWorkloadSAPHanaRestoreRequest(string objectType, RecoveryType? recoveryType, string sourceResourceId, IDictionary propertyBag, TargetRestoreInfo targetInfo, RecoveryMode? recoveryMode, string targetVirtualMachineId) : base(objectType, recoveryType, sourceResourceId, propertyBag, targetInfo, recoveryMode, targetVirtualMachineId) + internal WorkloadSapHanaRestoreContent(string objectType, FileShareRecoveryType? recoveryType, ResourceIdentifier sourceResourceId, IDictionary propertyBag, TargetRestoreInfo targetInfo, RecoveryMode? recoveryMode, ResourceIdentifier targetVirtualMachineId) : base(objectType, recoveryType, sourceResourceId, propertyBag, targetInfo, recoveryMode, targetVirtualMachineId) { ObjectType = objectType ?? "AzureWorkloadSAPHanaRestoreRequest"; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSAPHanaRestoreWithRehydrateRequest.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaRestoreWithRehydrateContent.Serialization.cs similarity index 79% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSAPHanaRestoreWithRehydrateRequest.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaRestoreWithRehydrateContent.Serialization.cs index d2dcf26ed9fc4..cec1df7a979d0 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSAPHanaRestoreWithRehydrateRequest.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaRestoreWithRehydrateContent.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureWorkloadSAPHanaRestoreWithRehydrateRequest : IUtf8JsonSerializable + public partial class WorkloadSapHanaRestoreWithRehydrateContent : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -62,15 +62,15 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureWorkloadSAPHanaRestoreWithRehydrateRequest DeserializeAzureWorkloadSAPHanaRestoreWithRehydrateRequest(JsonElement element) + internal static WorkloadSapHanaRestoreWithRehydrateContent DeserializeWorkloadSapHanaRestoreWithRehydrateContent(JsonElement element) { Optional recoveryPointRehydrationInfo = default; - Optional recoveryType = default; - Optional sourceResourceId = default; + Optional recoveryType = default; + Optional sourceResourceId = default; Optional> propertyBag = default; Optional targetInfo = default; Optional recoveryMode = default; - Optional targetVirtualMachineId = default; + Optional targetVirtualMachineId = default; string objectType = default; foreach (var property in element.EnumerateObject()) { @@ -91,12 +91,17 @@ internal static AzureWorkloadSAPHanaRestoreWithRehydrateRequest DeserializeAzure property.ThrowNonNullablePropertyIsNull(); continue; } - recoveryType = new RecoveryType(property.Value.GetString()); + recoveryType = new FileShareRecoveryType(property.Value.GetString()); continue; } if (property.NameEquals("sourceResourceId"u8)) { - sourceResourceId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + sourceResourceId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("propertyBag"u8)) @@ -136,7 +141,12 @@ internal static AzureWorkloadSAPHanaRestoreWithRehydrateRequest DeserializeAzure } if (property.NameEquals("targetVirtualMachineId"u8)) { - targetVirtualMachineId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + targetVirtualMachineId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("objectType"u8)) @@ -145,7 +155,7 @@ internal static AzureWorkloadSAPHanaRestoreWithRehydrateRequest DeserializeAzure continue; } } - return new AzureWorkloadSAPHanaRestoreWithRehydrateRequest(objectType, Optional.ToNullable(recoveryType), sourceResourceId.Value, Optional.ToDictionary(propertyBag), targetInfo.Value, Optional.ToNullable(recoveryMode), targetVirtualMachineId.Value, recoveryPointRehydrationInfo.Value); + return new WorkloadSapHanaRestoreWithRehydrateContent(objectType, Optional.ToNullable(recoveryType), sourceResourceId.Value, Optional.ToDictionary(propertyBag), targetInfo.Value, Optional.ToNullable(recoveryMode), targetVirtualMachineId.Value, recoveryPointRehydrationInfo.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSAPHanaRestoreWithRehydrateRequest.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaRestoreWithRehydrateContent.cs similarity index 67% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSAPHanaRestoreWithRehydrateRequest.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaRestoreWithRehydrateContent.cs index dd290e23b7802..6c053db970bba 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSAPHanaRestoreWithRehydrateRequest.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaRestoreWithRehydrateContent.cs @@ -6,19 +6,20 @@ #nullable disable using System.Collections.Generic; +using Azure.Core; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// AzureWorkload SAP Hana-specific restore with integrated rehydration of recovery point. - public partial class AzureWorkloadSAPHanaRestoreWithRehydrateRequest : AzureWorkloadSAPHanaRestoreRequest + public partial class WorkloadSapHanaRestoreWithRehydrateContent : WorkloadSapHanaRestoreContent { - /// Initializes a new instance of AzureWorkloadSAPHanaRestoreWithRehydrateRequest. - public AzureWorkloadSAPHanaRestoreWithRehydrateRequest() + /// Initializes a new instance of WorkloadSapHanaRestoreWithRehydrateContent. + public WorkloadSapHanaRestoreWithRehydrateContent() { ObjectType = "AzureWorkloadSAPHanaRestoreWithRehydrateRequest"; } - /// Initializes a new instance of AzureWorkloadSAPHanaRestoreWithRehydrateRequest. + /// Initializes a new instance of WorkloadSapHanaRestoreWithRehydrateContent. /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. /// Type of this recovery. /// Fully qualified ARM ID of the VM on which workload that was running is being recovered. @@ -30,7 +31,7 @@ public AzureWorkloadSAPHanaRestoreWithRehydrateRequest() /// For e.g. /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} /// /// RP Rehydration Info. - internal AzureWorkloadSAPHanaRestoreWithRehydrateRequest(string objectType, RecoveryType? recoveryType, string sourceResourceId, IDictionary propertyBag, TargetRestoreInfo targetInfo, RecoveryMode? recoveryMode, string targetVirtualMachineId, RecoveryPointRehydrationInfo recoveryPointRehydrationInfo) : base(objectType, recoveryType, sourceResourceId, propertyBag, targetInfo, recoveryMode, targetVirtualMachineId) + internal WorkloadSapHanaRestoreWithRehydrateContent(string objectType, FileShareRecoveryType? recoveryType, ResourceIdentifier sourceResourceId, IDictionary propertyBag, TargetRestoreInfo targetInfo, RecoveryMode? recoveryMode, ResourceIdentifier targetVirtualMachineId, RecoveryPointRehydrationInfo recoveryPointRehydrationInfo) : base(objectType, recoveryType, sourceResourceId, propertyBag, targetInfo, recoveryMode, targetVirtualMachineId) { RecoveryPointRehydrationInfo = recoveryPointRehydrationInfo; ObjectType = objectType ?? "AzureWorkloadSAPHanaRestoreWithRehydrateRequest"; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlAutoProtectionIntent.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlAutoProtectionIntent.Serialization.cs new file mode 100644 index 0000000000000..9e981d6019374 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlAutoProtectionIntent.Serialization.cs @@ -0,0 +1,133 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Models +{ + public partial class WorkloadSqlAutoProtectionIntent : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(WorkloadItemType)) + { + writer.WritePropertyName("workloadItemType"u8); + writer.WriteStringValue(WorkloadItemType.Value.ToString()); + } + writer.WritePropertyName("protectionIntentItemType"u8); + writer.WriteStringValue(ProtectionIntentItemType.ToString()); + if (Optional.IsDefined(BackupManagementType)) + { + writer.WritePropertyName("backupManagementType"u8); + writer.WriteStringValue(BackupManagementType.Value.ToString()); + } + if (Optional.IsDefined(SourceResourceId)) + { + writer.WritePropertyName("sourceResourceId"u8); + writer.WriteStringValue(SourceResourceId); + } + if (Optional.IsDefined(ItemId)) + { + writer.WritePropertyName("itemId"u8); + writer.WriteStringValue(ItemId); + } + if (Optional.IsDefined(PolicyId)) + { + writer.WritePropertyName("policyId"u8); + writer.WriteStringValue(PolicyId); + } + if (Optional.IsDefined(ProtectionState)) + { + writer.WritePropertyName("protectionState"u8); + writer.WriteStringValue(ProtectionState.Value.ToString()); + } + writer.WriteEndObject(); + } + + internal static WorkloadSqlAutoProtectionIntent DeserializeWorkloadSqlAutoProtectionIntent(JsonElement element) + { + Optional workloadItemType = default; + ProtectionIntentItemType protectionIntentItemType = default; + Optional backupManagementType = default; + Optional sourceResourceId = default; + Optional itemId = default; + Optional policyId = default; + Optional protectionState = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("workloadItemType"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + workloadItemType = new WorkloadItemType(property.Value.GetString()); + continue; + } + if (property.NameEquals("protectionIntentItemType"u8)) + { + protectionIntentItemType = new ProtectionIntentItemType(property.Value.GetString()); + continue; + } + if (property.NameEquals("backupManagementType"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + backupManagementType = new BackupManagementType(property.Value.GetString()); + continue; + } + if (property.NameEquals("sourceResourceId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + sourceResourceId = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("itemId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + itemId = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("policyId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + policyId = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("protectionState"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + protectionState = new BackupProtectionStatus(property.Value.GetString()); + continue; + } + } + return new WorkloadSqlAutoProtectionIntent(protectionIntentItemType, Optional.ToNullable(backupManagementType), sourceResourceId.Value, itemId.Value, policyId.Value, Optional.ToNullable(protectionState), Optional.ToNullable(workloadItemType)); + } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLAutoProtectionIntent.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlAutoProtectionIntent.cs similarity index 63% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLAutoProtectionIntent.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlAutoProtectionIntent.cs index a293b072da108..d65df637d35e2 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLAutoProtectionIntent.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlAutoProtectionIntent.cs @@ -5,18 +5,20 @@ #nullable disable +using Azure.Core; + namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Azure Workload SQL Auto Protection intent item. - public partial class AzureWorkloadSQLAutoProtectionIntent : AzureWorkloadAutoProtectionIntent + public partial class WorkloadSqlAutoProtectionIntent : WorkloadAutoProtectionIntent { - /// Initializes a new instance of AzureWorkloadSQLAutoProtectionIntent. - public AzureWorkloadSQLAutoProtectionIntent() + /// Initializes a new instance of WorkloadSqlAutoProtectionIntent. + public WorkloadSqlAutoProtectionIntent() { - ProtectionIntentItemType = ProtectionIntentItemType.AzureWorkloadSQLAutoProtectionIntent; + ProtectionIntentItemType = ProtectionIntentItemType.AzureWorkloadSqlAutoProtectionIntent; } - /// Initializes a new instance of AzureWorkloadSQLAutoProtectionIntent. + /// Initializes a new instance of WorkloadSqlAutoProtectionIntent. /// backup protectionIntent type. /// Type of backup management for the backed up item. /// ARM ID of the resource to be backed up. @@ -24,7 +26,7 @@ public AzureWorkloadSQLAutoProtectionIntent() /// ID of the backup policy with which this item is backed up. /// Backup state of this backup item. /// Workload item type of the item for which intent is to be set. - internal AzureWorkloadSQLAutoProtectionIntent(ProtectionIntentItemType protectionIntentItemType, BackupManagementType? backupManagementType, string sourceResourceId, string itemId, string policyId, ProtectionStatus? protectionState, WorkloadItemType? workloadItemType) : base(protectionIntentItemType, backupManagementType, sourceResourceId, itemId, policyId, protectionState) + internal WorkloadSqlAutoProtectionIntent(ProtectionIntentItemType protectionIntentItemType, BackupManagementType? backupManagementType, ResourceIdentifier sourceResourceId, ResourceIdentifier itemId, ResourceIdentifier policyId, BackupProtectionStatus? protectionState, WorkloadItemType? workloadItemType) : base(protectionIntentItemType, backupManagementType, sourceResourceId, itemId, policyId, protectionState) { WorkloadItemType = workloadItemType; ProtectionIntentItemType = protectionIntentItemType; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLPointInTimeRecoveryPoint.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlPointInTimeRecoveryPoint.Serialization.cs similarity index 88% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLPointInTimeRecoveryPoint.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlPointInTimeRecoveryPoint.Serialization.cs index 365daff51148a..32299dbafb753 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLPointInTimeRecoveryPoint.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlPointInTimeRecoveryPoint.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureWorkloadSQLPointInTimeRecoveryPoint : IUtf8JsonSerializable + public partial class WorkloadSqlPointInTimeRecoveryPoint : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -32,10 +32,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("extendedInfo"u8); writer.WriteObjectValue(ExtendedInfo); } - if (Optional.IsDefined(RecoveryPointTimeInUTC)) + if (Optional.IsDefined(RecoveryPointCreatedOn)) { writer.WritePropertyName("recoveryPointTimeInUTC"u8); - writer.WriteStringValue(RecoveryPointTimeInUTC.Value, "O"); + writer.WriteStringValue(RecoveryPointCreatedOn.Value, "O"); } if (Optional.IsDefined(RestorePointType)) { @@ -73,10 +73,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureWorkloadSQLPointInTimeRecoveryPoint DeserializeAzureWorkloadSQLPointInTimeRecoveryPoint(JsonElement element) + internal static WorkloadSqlPointInTimeRecoveryPoint DeserializeWorkloadSqlPointInTimeRecoveryPoint(JsonElement element) { Optional> timeRanges = default; - Optional extendedInfo = default; + Optional extendedInfo = default; Optional recoveryPointTimeInUTC = default; Optional type = default; Optional> recoveryPointTierDetails = default; @@ -107,7 +107,7 @@ internal static AzureWorkloadSQLPointInTimeRecoveryPoint DeserializeAzureWorkloa property.ThrowNonNullablePropertyIsNull(); continue; } - extendedInfo = AzureWorkloadSQLRecoveryPointExtendedInfo.DeserializeAzureWorkloadSQLRecoveryPointExtendedInfo(property.Value); + extendedInfo = WorkloadSqlRecoveryPointExtendedInfo.DeserializeWorkloadSqlRecoveryPointExtendedInfo(property.Value); continue; } if (property.NameEquals("recoveryPointTimeInUTC"u8)) @@ -176,7 +176,7 @@ internal static AzureWorkloadSQLPointInTimeRecoveryPoint DeserializeAzureWorkloa continue; } } - return new AzureWorkloadSQLPointInTimeRecoveryPoint(objectType, Optional.ToNullable(recoveryPointTimeInUTC), Optional.ToNullable(type), Optional.ToList(recoveryPointTierDetails), Optional.ToDictionary(recoveryPointMoveReadinessInfo), recoveryPointProperties.Value, extendedInfo.Value, Optional.ToList(timeRanges)); + return new WorkloadSqlPointInTimeRecoveryPoint(objectType, Optional.ToNullable(recoveryPointTimeInUTC), Optional.ToNullable(type), Optional.ToList(recoveryPointTierDetails), Optional.ToDictionary(recoveryPointMoveReadinessInfo), recoveryPointProperties.Value, extendedInfo.Value, Optional.ToList(timeRanges)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLPointInTimeRecoveryPoint.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlPointInTimeRecoveryPoint.cs similarity index 62% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLPointInTimeRecoveryPoint.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlPointInTimeRecoveryPoint.cs index 77c3331849488..bcf1d601eaef1 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLPointInTimeRecoveryPoint.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlPointInTimeRecoveryPoint.cs @@ -12,18 +12,18 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// Recovery point specific to PointInTime. - public partial class AzureWorkloadSQLPointInTimeRecoveryPoint : AzureWorkloadSQLRecoveryPoint + public partial class WorkloadSqlPointInTimeRecoveryPoint : WorkloadSqlRecoveryPoint { - /// Initializes a new instance of AzureWorkloadSQLPointInTimeRecoveryPoint. - public AzureWorkloadSQLPointInTimeRecoveryPoint() + /// Initializes a new instance of WorkloadSqlPointInTimeRecoveryPoint. + public WorkloadSqlPointInTimeRecoveryPoint() { TimeRanges = new ChangeTrackingList(); ObjectType = "AzureWorkloadSQLPointInTimeRecoveryPoint"; } - /// Initializes a new instance of AzureWorkloadSQLPointInTimeRecoveryPoint. + /// Initializes a new instance of WorkloadSqlPointInTimeRecoveryPoint. /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. - /// UTC time at which recovery point was created. + /// UTC time at which recovery point was created. /// Type of restore point. /// Recovery point tier information. /// Eligibility of RP to be moved to another tier. @@ -34,7 +34,7 @@ public AzureWorkloadSQLPointInTimeRecoveryPoint() /// Or when ListRecoveryPoints is called for Log RP only with ExtendedInfo query filter /// /// List of log ranges. - internal AzureWorkloadSQLPointInTimeRecoveryPoint(string objectType, DateTimeOffset? recoveryPointTimeInUTC, RestorePointType? restorePointType, IList recoveryPointTierDetails, IDictionary recoveryPointMoveReadinessInfo, RecoveryPointProperties recoveryPointProperties, AzureWorkloadSQLRecoveryPointExtendedInfo extendedInfo, IList timeRanges) : base(objectType, recoveryPointTimeInUTC, restorePointType, recoveryPointTierDetails, recoveryPointMoveReadinessInfo, recoveryPointProperties, extendedInfo) + internal WorkloadSqlPointInTimeRecoveryPoint(string objectType, DateTimeOffset? recoveryPointCreatedOn, RestorePointType? restorePointType, IList recoveryPointTierDetails, IDictionary recoveryPointMoveReadinessInfo, RecoveryPointProperties recoveryPointProperties, WorkloadSqlRecoveryPointExtendedInfo extendedInfo, IList timeRanges) : base(objectType, recoveryPointCreatedOn, restorePointType, recoveryPointTierDetails, recoveryPointMoveReadinessInfo, recoveryPointProperties, extendedInfo) { TimeRanges = timeRanges; ObjectType = objectType ?? "AzureWorkloadSQLPointInTimeRecoveryPoint"; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLPointInTimeRestoreRequest.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlPointInTimeRestoreContent.Serialization.cs similarity index 80% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLPointInTimeRestoreRequest.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlPointInTimeRestoreContent.Serialization.cs index e88f34db3d914..05e087cd4df9e 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLPointInTimeRestoreRequest.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlPointInTimeRestoreContent.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureWorkloadSQLPointInTimeRestoreRequest : IUtf8JsonSerializable + public partial class WorkloadSqlPointInTimeRestoreContent : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -83,25 +83,25 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureWorkloadSQLPointInTimeRestoreRequest DeserializeAzureWorkloadSQLPointInTimeRestoreRequest(JsonElement element) + internal static WorkloadSqlPointInTimeRestoreContent DeserializeWorkloadSqlPointInTimeRestoreContent(JsonElement element) { if (element.TryGetProperty("objectType", out JsonElement discriminator)) { switch (discriminator.GetString()) { - case "AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest": return AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest.DeserializeAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest(element); + case "AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest": return WorkloadSqlPointInTimeRestoreWithRehydrateContent.DeserializeWorkloadSqlPointInTimeRestoreWithRehydrateContent(element); } } Optional pointInTime = default; Optional shouldUseAlternateTargetLocation = default; Optional isNonRecoverable = default; - Optional> alternateDirectoryPaths = default; - Optional recoveryType = default; - Optional sourceResourceId = default; + Optional> alternateDirectoryPaths = default; + Optional recoveryType = default; + Optional sourceResourceId = default; Optional> propertyBag = default; Optional targetInfo = default; Optional recoveryMode = default; - Optional targetVirtualMachineId = default; + Optional targetVirtualMachineId = default; string objectType = "AzureWorkloadSQLPointInTimeRestoreRequest"; foreach (var property in element.EnumerateObject()) { @@ -142,10 +142,10 @@ internal static AzureWorkloadSQLPointInTimeRestoreRequest DeserializeAzureWorklo property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(SQLDataDirectoryMapping.DeserializeSQLDataDirectoryMapping(item)); + array.Add(SqlDataDirectoryMapping.DeserializeSqlDataDirectoryMapping(item)); } alternateDirectoryPaths = array; continue; @@ -157,12 +157,17 @@ internal static AzureWorkloadSQLPointInTimeRestoreRequest DeserializeAzureWorklo property.ThrowNonNullablePropertyIsNull(); continue; } - recoveryType = new RecoveryType(property.Value.GetString()); + recoveryType = new FileShareRecoveryType(property.Value.GetString()); continue; } if (property.NameEquals("sourceResourceId"u8)) { - sourceResourceId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + sourceResourceId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("propertyBag"u8)) @@ -202,7 +207,12 @@ internal static AzureWorkloadSQLPointInTimeRestoreRequest DeserializeAzureWorklo } if (property.NameEquals("targetVirtualMachineId"u8)) { - targetVirtualMachineId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + targetVirtualMachineId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("objectType"u8)) @@ -211,7 +221,7 @@ internal static AzureWorkloadSQLPointInTimeRestoreRequest DeserializeAzureWorklo continue; } } - return new AzureWorkloadSQLPointInTimeRestoreRequest(objectType, Optional.ToNullable(recoveryType), sourceResourceId.Value, Optional.ToDictionary(propertyBag), targetInfo.Value, Optional.ToNullable(recoveryMode), targetVirtualMachineId.Value, Optional.ToNullable(shouldUseAlternateTargetLocation), Optional.ToNullable(isNonRecoverable), Optional.ToList(alternateDirectoryPaths), Optional.ToNullable(pointInTime)); + return new WorkloadSqlPointInTimeRestoreContent(objectType, Optional.ToNullable(recoveryType), sourceResourceId.Value, Optional.ToDictionary(propertyBag), targetInfo.Value, Optional.ToNullable(recoveryMode), targetVirtualMachineId.Value, Optional.ToNullable(shouldUseAlternateTargetLocation), Optional.ToNullable(isNonRecoverable), Optional.ToList(alternateDirectoryPaths), Optional.ToNullable(pointInTime)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLPointInTimeRestoreRequest.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlPointInTimeRestoreContent.cs similarity index 60% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLPointInTimeRestoreRequest.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlPointInTimeRestoreContent.cs index 72805f2d33742..073f3a1b50429 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLPointInTimeRestoreRequest.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlPointInTimeRestoreContent.cs @@ -7,23 +7,24 @@ using System; using System.Collections.Generic; +using Azure.Core; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// /// AzureWorkload SQL -specific restore. Specifically for PointInTime/Log restore - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . /// - public partial class AzureWorkloadSQLPointInTimeRestoreRequest : AzureWorkloadSQLRestoreRequest + public partial class WorkloadSqlPointInTimeRestoreContent : WorkloadSqlRestoreContent { - /// Initializes a new instance of AzureWorkloadSQLPointInTimeRestoreRequest. - public AzureWorkloadSQLPointInTimeRestoreRequest() + /// Initializes a new instance of WorkloadSqlPointInTimeRestoreContent. + public WorkloadSqlPointInTimeRestoreContent() { ObjectType = "AzureWorkloadSQLPointInTimeRestoreRequest"; } - /// Initializes a new instance of AzureWorkloadSQLPointInTimeRestoreRequest. + /// Initializes a new instance of WorkloadSqlPointInTimeRestoreContent. /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. /// Type of this recovery. /// Fully qualified ARM ID of the VM on which workload that was running is being recovered. @@ -38,7 +39,7 @@ public AzureWorkloadSQLPointInTimeRestoreRequest() /// SQL specific property where user can chose to set no-recovery when restore operation is tried. /// Data directory details. /// PointInTime value. - internal AzureWorkloadSQLPointInTimeRestoreRequest(string objectType, RecoveryType? recoveryType, string sourceResourceId, IDictionary propertyBag, TargetRestoreInfo targetInfo, RecoveryMode? recoveryMode, string targetVirtualMachineId, bool? shouldUseAlternateTargetLocation, bool? isNonRecoverable, IList alternateDirectoryPaths, DateTimeOffset? pointInTime) : base(objectType, recoveryType, sourceResourceId, propertyBag, targetInfo, recoveryMode, targetVirtualMachineId, shouldUseAlternateTargetLocation, isNonRecoverable, alternateDirectoryPaths) + internal WorkloadSqlPointInTimeRestoreContent(string objectType, FileShareRecoveryType? recoveryType, ResourceIdentifier sourceResourceId, IDictionary propertyBag, TargetRestoreInfo targetInfo, RecoveryMode? recoveryMode, ResourceIdentifier targetVirtualMachineId, bool? shouldUseAlternateTargetLocation, bool? isNonRecoverable, IList alternateDirectoryPaths, DateTimeOffset? pointInTime) : base(objectType, recoveryType, sourceResourceId, propertyBag, targetInfo, recoveryMode, targetVirtualMachineId, shouldUseAlternateTargetLocation, isNonRecoverable, alternateDirectoryPaths) { PointInTime = pointInTime; ObjectType = objectType ?? "AzureWorkloadSQLPointInTimeRestoreRequest"; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlPointInTimeRestoreWithRehydrateContent.Serialization.cs similarity index 81% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlPointInTimeRestoreWithRehydrateContent.Serialization.cs index 830a9f84c19e8..ec46316b51ae1 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlPointInTimeRestoreWithRehydrateContent.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest : IUtf8JsonSerializable + public partial class WorkloadSqlPointInTimeRestoreWithRehydrateContent : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -88,19 +88,19 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest DeserializeAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest(JsonElement element) + internal static WorkloadSqlPointInTimeRestoreWithRehydrateContent DeserializeWorkloadSqlPointInTimeRestoreWithRehydrateContent(JsonElement element) { Optional recoveryPointRehydrationInfo = default; Optional pointInTime = default; Optional shouldUseAlternateTargetLocation = default; Optional isNonRecoverable = default; - Optional> alternateDirectoryPaths = default; - Optional recoveryType = default; - Optional sourceResourceId = default; + Optional> alternateDirectoryPaths = default; + Optional recoveryType = default; + Optional sourceResourceId = default; Optional> propertyBag = default; Optional targetInfo = default; Optional recoveryMode = default; - Optional targetVirtualMachineId = default; + Optional targetVirtualMachineId = default; string objectType = default; foreach (var property in element.EnumerateObject()) { @@ -151,10 +151,10 @@ internal static AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest Deseriali property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(SQLDataDirectoryMapping.DeserializeSQLDataDirectoryMapping(item)); + array.Add(SqlDataDirectoryMapping.DeserializeSqlDataDirectoryMapping(item)); } alternateDirectoryPaths = array; continue; @@ -166,12 +166,17 @@ internal static AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest Deseriali property.ThrowNonNullablePropertyIsNull(); continue; } - recoveryType = new RecoveryType(property.Value.GetString()); + recoveryType = new FileShareRecoveryType(property.Value.GetString()); continue; } if (property.NameEquals("sourceResourceId"u8)) { - sourceResourceId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + sourceResourceId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("propertyBag"u8)) @@ -211,7 +216,12 @@ internal static AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest Deseriali } if (property.NameEquals("targetVirtualMachineId"u8)) { - targetVirtualMachineId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + targetVirtualMachineId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("objectType"u8)) @@ -220,7 +230,7 @@ internal static AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest Deseriali continue; } } - return new AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest(objectType, Optional.ToNullable(recoveryType), sourceResourceId.Value, Optional.ToDictionary(propertyBag), targetInfo.Value, Optional.ToNullable(recoveryMode), targetVirtualMachineId.Value, Optional.ToNullable(shouldUseAlternateTargetLocation), Optional.ToNullable(isNonRecoverable), Optional.ToList(alternateDirectoryPaths), Optional.ToNullable(pointInTime), recoveryPointRehydrationInfo.Value); + return new WorkloadSqlPointInTimeRestoreWithRehydrateContent(objectType, Optional.ToNullable(recoveryType), sourceResourceId.Value, Optional.ToDictionary(propertyBag), targetInfo.Value, Optional.ToNullable(recoveryMode), targetVirtualMachineId.Value, Optional.ToNullable(shouldUseAlternateTargetLocation), Optional.ToNullable(isNonRecoverable), Optional.ToList(alternateDirectoryPaths), Optional.ToNullable(pointInTime), recoveryPointRehydrationInfo.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlPointInTimeRestoreWithRehydrateContent.cs similarity index 66% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlPointInTimeRestoreWithRehydrateContent.cs index aa45050fb08ef..0494a76d64f19 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlPointInTimeRestoreWithRehydrateContent.cs @@ -7,19 +7,20 @@ using System; using System.Collections.Generic; +using Azure.Core; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// AzureWorkload SQL-specific restore with integrated rehydration of recovery point. - public partial class AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest : AzureWorkloadSQLPointInTimeRestoreRequest + public partial class WorkloadSqlPointInTimeRestoreWithRehydrateContent : WorkloadSqlPointInTimeRestoreContent { - /// Initializes a new instance of AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest. - public AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest() + /// Initializes a new instance of WorkloadSqlPointInTimeRestoreWithRehydrateContent. + public WorkloadSqlPointInTimeRestoreWithRehydrateContent() { ObjectType = "AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest"; } - /// Initializes a new instance of AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest. + /// Initializes a new instance of WorkloadSqlPointInTimeRestoreWithRehydrateContent. /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. /// Type of this recovery. /// Fully qualified ARM ID of the VM on which workload that was running is being recovered. @@ -35,7 +36,7 @@ public AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest() /// Data directory details. /// PointInTime value. /// RP Rehydration Info. - internal AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest(string objectType, RecoveryType? recoveryType, string sourceResourceId, IDictionary propertyBag, TargetRestoreInfo targetInfo, RecoveryMode? recoveryMode, string targetVirtualMachineId, bool? shouldUseAlternateTargetLocation, bool? isNonRecoverable, IList alternateDirectoryPaths, DateTimeOffset? pointInTime, RecoveryPointRehydrationInfo recoveryPointRehydrationInfo) : base(objectType, recoveryType, sourceResourceId, propertyBag, targetInfo, recoveryMode, targetVirtualMachineId, shouldUseAlternateTargetLocation, isNonRecoverable, alternateDirectoryPaths, pointInTime) + internal WorkloadSqlPointInTimeRestoreWithRehydrateContent(string objectType, FileShareRecoveryType? recoveryType, ResourceIdentifier sourceResourceId, IDictionary propertyBag, TargetRestoreInfo targetInfo, RecoveryMode? recoveryMode, ResourceIdentifier targetVirtualMachineId, bool? shouldUseAlternateTargetLocation, bool? isNonRecoverable, IList alternateDirectoryPaths, DateTimeOffset? pointInTime, RecoveryPointRehydrationInfo recoveryPointRehydrationInfo) : base(objectType, recoveryType, sourceResourceId, propertyBag, targetInfo, recoveryMode, targetVirtualMachineId, shouldUseAlternateTargetLocation, isNonRecoverable, alternateDirectoryPaths, pointInTime) { RecoveryPointRehydrationInfo = recoveryPointRehydrationInfo; ObjectType = objectType ?? "AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest"; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLRecoveryPoint.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlRecoveryPoint.Serialization.cs similarity index 87% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLRecoveryPoint.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlRecoveryPoint.Serialization.cs index acb662087b43f..cbb221a7d06bb 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLRecoveryPoint.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlRecoveryPoint.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureWorkloadSQLRecoveryPoint : IUtf8JsonSerializable + public partial class WorkloadSqlRecoveryPoint : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -22,10 +22,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("extendedInfo"u8); writer.WriteObjectValue(ExtendedInfo); } - if (Optional.IsDefined(RecoveryPointTimeInUTC)) + if (Optional.IsDefined(RecoveryPointCreatedOn)) { writer.WritePropertyName("recoveryPointTimeInUTC"u8); - writer.WriteStringValue(RecoveryPointTimeInUTC.Value, "O"); + writer.WriteStringValue(RecoveryPointCreatedOn.Value, "O"); } if (Optional.IsDefined(RestorePointType)) { @@ -63,16 +63,16 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureWorkloadSQLRecoveryPoint DeserializeAzureWorkloadSQLRecoveryPoint(JsonElement element) + internal static WorkloadSqlRecoveryPoint DeserializeWorkloadSqlRecoveryPoint(JsonElement element) { if (element.TryGetProperty("objectType", out JsonElement discriminator)) { switch (discriminator.GetString()) { - case "AzureWorkloadSQLPointInTimeRecoveryPoint": return AzureWorkloadSQLPointInTimeRecoveryPoint.DeserializeAzureWorkloadSQLPointInTimeRecoveryPoint(element); + case "AzureWorkloadSQLPointInTimeRecoveryPoint": return WorkloadSqlPointInTimeRecoveryPoint.DeserializeWorkloadSqlPointInTimeRecoveryPoint(element); } } - Optional extendedInfo = default; + Optional extendedInfo = default; Optional recoveryPointTimeInUTC = default; Optional type = default; Optional> recoveryPointTierDetails = default; @@ -88,7 +88,7 @@ internal static AzureWorkloadSQLRecoveryPoint DeserializeAzureWorkloadSQLRecover property.ThrowNonNullablePropertyIsNull(); continue; } - extendedInfo = AzureWorkloadSQLRecoveryPointExtendedInfo.DeserializeAzureWorkloadSQLRecoveryPointExtendedInfo(property.Value); + extendedInfo = WorkloadSqlRecoveryPointExtendedInfo.DeserializeWorkloadSqlRecoveryPointExtendedInfo(property.Value); continue; } if (property.NameEquals("recoveryPointTimeInUTC"u8)) @@ -157,7 +157,7 @@ internal static AzureWorkloadSQLRecoveryPoint DeserializeAzureWorkloadSQLRecover continue; } } - return new AzureWorkloadSQLRecoveryPoint(objectType, Optional.ToNullable(recoveryPointTimeInUTC), Optional.ToNullable(type), Optional.ToList(recoveryPointTierDetails), Optional.ToDictionary(recoveryPointMoveReadinessInfo), recoveryPointProperties.Value, extendedInfo.Value); + return new WorkloadSqlRecoveryPoint(objectType, Optional.ToNullable(recoveryPointTimeInUTC), Optional.ToNullable(type), Optional.ToList(recoveryPointTierDetails), Optional.ToDictionary(recoveryPointMoveReadinessInfo), recoveryPointProperties.Value, extendedInfo.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLRecoveryPoint.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlRecoveryPoint.cs similarity index 57% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLRecoveryPoint.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlRecoveryPoint.cs index c6fe93bf5fa14..73f4a392f1f82 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLRecoveryPoint.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlRecoveryPoint.cs @@ -12,20 +12,20 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// /// SQL specific recoverypoint, specifically encapsulates full/diff recoverypoint along with extended info - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . /// - public partial class AzureWorkloadSQLRecoveryPoint : AzureWorkloadRecoveryPoint + public partial class WorkloadSqlRecoveryPoint : WorkloadRecoveryPoint { - /// Initializes a new instance of AzureWorkloadSQLRecoveryPoint. - public AzureWorkloadSQLRecoveryPoint() + /// Initializes a new instance of WorkloadSqlRecoveryPoint. + public WorkloadSqlRecoveryPoint() { ObjectType = "AzureWorkloadSQLRecoveryPoint"; } - /// Initializes a new instance of AzureWorkloadSQLRecoveryPoint. + /// Initializes a new instance of WorkloadSqlRecoveryPoint. /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. - /// UTC time at which recovery point was created. + /// UTC time at which recovery point was created. /// Type of restore point. /// Recovery point tier information. /// Eligibility of RP to be moved to another tier. @@ -35,7 +35,7 @@ public AzureWorkloadSQLRecoveryPoint() /// When a specific recovery point is accessed using GetRecoveryPoint /// Or when ListRecoveryPoints is called for Log RP only with ExtendedInfo query filter /// - internal AzureWorkloadSQLRecoveryPoint(string objectType, DateTimeOffset? recoveryPointTimeInUTC, RestorePointType? restorePointType, IList recoveryPointTierDetails, IDictionary recoveryPointMoveReadinessInfo, RecoveryPointProperties recoveryPointProperties, AzureWorkloadSQLRecoveryPointExtendedInfo extendedInfo) : base(objectType, recoveryPointTimeInUTC, restorePointType, recoveryPointTierDetails, recoveryPointMoveReadinessInfo, recoveryPointProperties) + internal WorkloadSqlRecoveryPoint(string objectType, DateTimeOffset? recoveryPointCreatedOn, RestorePointType? restorePointType, IList recoveryPointTierDetails, IDictionary recoveryPointMoveReadinessInfo, RecoveryPointProperties recoveryPointProperties, WorkloadSqlRecoveryPointExtendedInfo extendedInfo) : base(objectType, recoveryPointCreatedOn, restorePointType, recoveryPointTierDetails, recoveryPointMoveReadinessInfo, recoveryPointProperties) { ExtendedInfo = extendedInfo; ObjectType = objectType ?? "AzureWorkloadSQLRecoveryPoint"; @@ -46,6 +46,6 @@ internal AzureWorkloadSQLRecoveryPoint(string objectType, DateTimeOffset? recove /// When a specific recovery point is accessed using GetRecoveryPoint /// Or when ListRecoveryPoints is called for Log RP only with ExtendedInfo query filter /// - public AzureWorkloadSQLRecoveryPointExtendedInfo ExtendedInfo { get; set; } + public WorkloadSqlRecoveryPointExtendedInfo ExtendedInfo { get; set; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLRecoveryPointExtendedInfo.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlRecoveryPointExtendedInfo.Serialization.cs similarity index 74% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLRecoveryPointExtendedInfo.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlRecoveryPointExtendedInfo.Serialization.cs index 3509532382355..caf04ffe4c5c7 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLRecoveryPointExtendedInfo.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlRecoveryPointExtendedInfo.Serialization.cs @@ -12,15 +12,15 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureWorkloadSQLRecoveryPointExtendedInfo : IUtf8JsonSerializable + public partial class WorkloadSqlRecoveryPointExtendedInfo : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - if (Optional.IsDefined(DataDirectoryTimeInUTC)) + if (Optional.IsDefined(DataDirectoryInfoCapturedOn)) { writer.WritePropertyName("dataDirectoryTimeInUTC"u8); - writer.WriteStringValue(DataDirectoryTimeInUTC.Value, "O"); + writer.WriteStringValue(DataDirectoryInfoCapturedOn.Value, "O"); } if (Optional.IsCollectionDefined(DataDirectoryPaths)) { @@ -35,10 +35,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureWorkloadSQLRecoveryPointExtendedInfo DeserializeAzureWorkloadSQLRecoveryPointExtendedInfo(JsonElement element) + internal static WorkloadSqlRecoveryPointExtendedInfo DeserializeWorkloadSqlRecoveryPointExtendedInfo(JsonElement element) { Optional dataDirectoryTimeInUTC = default; - Optional> dataDirectoryPaths = default; + Optional> dataDirectoryPaths = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("dataDirectoryTimeInUTC"u8)) @@ -58,16 +58,16 @@ internal static AzureWorkloadSQLRecoveryPointExtendedInfo DeserializeAzureWorklo property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(SQLDataDirectory.DeserializeSQLDataDirectory(item)); + array.Add(SqlDataDirectory.DeserializeSqlDataDirectory(item)); } dataDirectoryPaths = array; continue; } } - return new AzureWorkloadSQLRecoveryPointExtendedInfo(Optional.ToNullable(dataDirectoryTimeInUTC), Optional.ToList(dataDirectoryPaths)); + return new WorkloadSqlRecoveryPointExtendedInfo(Optional.ToNullable(dataDirectoryTimeInUTC), Optional.ToList(dataDirectoryPaths)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlRecoveryPointExtendedInfo.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlRecoveryPointExtendedInfo.cs new file mode 100644 index 0000000000000..4ddac3cf62224 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlRecoveryPointExtendedInfo.cs @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Models +{ + /// Extended info class details. + public partial class WorkloadSqlRecoveryPointExtendedInfo + { + /// Initializes a new instance of WorkloadSqlRecoveryPointExtendedInfo. + public WorkloadSqlRecoveryPointExtendedInfo() + { + DataDirectoryPaths = new ChangeTrackingList(); + } + + /// Initializes a new instance of WorkloadSqlRecoveryPointExtendedInfo. + /// UTC time at which data directory info was captured. + /// List of data directory paths during restore operation. + internal WorkloadSqlRecoveryPointExtendedInfo(DateTimeOffset? dataDirectoryInfoCapturedOn, IList dataDirectoryPaths) + { + DataDirectoryInfoCapturedOn = dataDirectoryInfoCapturedOn; + DataDirectoryPaths = dataDirectoryPaths; + } + + /// UTC time at which data directory info was captured. + public DateTimeOffset? DataDirectoryInfoCapturedOn { get; set; } + /// List of data directory paths during restore operation. + public IList DataDirectoryPaths { get; } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLRestoreRequest.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlRestoreContent.Serialization.cs similarity index 78% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLRestoreRequest.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlRestoreContent.Serialization.cs index bc232adae8fea..c1448e2a2d026 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLRestoreRequest.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlRestoreContent.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureWorkloadSQLRestoreRequest : IUtf8JsonSerializable + public partial class WorkloadSqlRestoreContent : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -77,26 +77,26 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureWorkloadSQLRestoreRequest DeserializeAzureWorkloadSQLRestoreRequest(JsonElement element) + internal static WorkloadSqlRestoreContent DeserializeWorkloadSqlRestoreContent(JsonElement element) { if (element.TryGetProperty("objectType", out JsonElement discriminator)) { switch (discriminator.GetString()) { - case "AzureWorkloadSQLPointInTimeRestoreRequest": return AzureWorkloadSQLPointInTimeRestoreRequest.DeserializeAzureWorkloadSQLPointInTimeRestoreRequest(element); - case "AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest": return AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest.DeserializeAzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest(element); - case "AzureWorkloadSQLRestoreWithRehydrateRequest": return AzureWorkloadSQLRestoreWithRehydrateRequest.DeserializeAzureWorkloadSQLRestoreWithRehydrateRequest(element); + case "AzureWorkloadSQLPointInTimeRestoreRequest": return WorkloadSqlPointInTimeRestoreContent.DeserializeWorkloadSqlPointInTimeRestoreContent(element); + case "AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest": return WorkloadSqlPointInTimeRestoreWithRehydrateContent.DeserializeWorkloadSqlPointInTimeRestoreWithRehydrateContent(element); + case "AzureWorkloadSQLRestoreWithRehydrateRequest": return WorkloadSqlRestoreWithRehydrateContent.DeserializeWorkloadSqlRestoreWithRehydrateContent(element); } } Optional shouldUseAlternateTargetLocation = default; Optional isNonRecoverable = default; - Optional> alternateDirectoryPaths = default; - Optional recoveryType = default; - Optional sourceResourceId = default; + Optional> alternateDirectoryPaths = default; + Optional recoveryType = default; + Optional sourceResourceId = default; Optional> propertyBag = default; Optional targetInfo = default; Optional recoveryMode = default; - Optional targetVirtualMachineId = default; + Optional targetVirtualMachineId = default; string objectType = "AzureWorkloadSQLRestoreRequest"; foreach (var property in element.EnumerateObject()) { @@ -127,10 +127,10 @@ internal static AzureWorkloadSQLRestoreRequest DeserializeAzureWorkloadSQLRestor property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(SQLDataDirectoryMapping.DeserializeSQLDataDirectoryMapping(item)); + array.Add(SqlDataDirectoryMapping.DeserializeSqlDataDirectoryMapping(item)); } alternateDirectoryPaths = array; continue; @@ -142,12 +142,17 @@ internal static AzureWorkloadSQLRestoreRequest DeserializeAzureWorkloadSQLRestor property.ThrowNonNullablePropertyIsNull(); continue; } - recoveryType = new RecoveryType(property.Value.GetString()); + recoveryType = new FileShareRecoveryType(property.Value.GetString()); continue; } if (property.NameEquals("sourceResourceId"u8)) { - sourceResourceId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + sourceResourceId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("propertyBag"u8)) @@ -187,7 +192,12 @@ internal static AzureWorkloadSQLRestoreRequest DeserializeAzureWorkloadSQLRestor } if (property.NameEquals("targetVirtualMachineId"u8)) { - targetVirtualMachineId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + targetVirtualMachineId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("objectType"u8)) @@ -196,7 +206,7 @@ internal static AzureWorkloadSQLRestoreRequest DeserializeAzureWorkloadSQLRestor continue; } } - return new AzureWorkloadSQLRestoreRequest(objectType, Optional.ToNullable(recoveryType), sourceResourceId.Value, Optional.ToDictionary(propertyBag), targetInfo.Value, Optional.ToNullable(recoveryMode), targetVirtualMachineId.Value, Optional.ToNullable(shouldUseAlternateTargetLocation), Optional.ToNullable(isNonRecoverable), Optional.ToList(alternateDirectoryPaths)); + return new WorkloadSqlRestoreContent(objectType, Optional.ToNullable(recoveryType), sourceResourceId.Value, Optional.ToDictionary(propertyBag), targetInfo.Value, Optional.ToNullable(recoveryMode), targetVirtualMachineId.Value, Optional.ToNullable(shouldUseAlternateTargetLocation), Optional.ToNullable(isNonRecoverable), Optional.ToList(alternateDirectoryPaths)); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLRestoreRequest.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlRestoreContent.cs similarity index 63% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLRestoreRequest.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlRestoreContent.cs index f5c3af21d0d8f..b7ee3763de30e 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLRestoreRequest.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlRestoreContent.cs @@ -12,19 +12,19 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// /// AzureWorkload SQL -specific restore. Specifically for full/diff restore - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . /// - public partial class AzureWorkloadSQLRestoreRequest : AzureWorkloadRestoreRequest + public partial class WorkloadSqlRestoreContent : WorkloadRestoreContent { - /// Initializes a new instance of AzureWorkloadSQLRestoreRequest. - public AzureWorkloadSQLRestoreRequest() + /// Initializes a new instance of WorkloadSqlRestoreContent. + public WorkloadSqlRestoreContent() { - AlternateDirectoryPaths = new ChangeTrackingList(); + AlternateDirectoryPaths = new ChangeTrackingList(); ObjectType = "AzureWorkloadSQLRestoreRequest"; } - /// Initializes a new instance of AzureWorkloadSQLRestoreRequest. + /// Initializes a new instance of WorkloadSqlRestoreContent. /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. /// Type of this recovery. /// Fully qualified ARM ID of the VM on which workload that was running is being recovered. @@ -38,7 +38,7 @@ public AzureWorkloadSQLRestoreRequest() /// Default option set to true. If this is set to false, alternate data directory must be provided. /// SQL specific property where user can chose to set no-recovery when restore operation is tried. /// Data directory details. - internal AzureWorkloadSQLRestoreRequest(string objectType, RecoveryType? recoveryType, string sourceResourceId, IDictionary propertyBag, TargetRestoreInfo targetInfo, RecoveryMode? recoveryMode, string targetVirtualMachineId, bool? shouldUseAlternateTargetLocation, bool? isNonRecoverable, IList alternateDirectoryPaths) : base(objectType, recoveryType, sourceResourceId, propertyBag, targetInfo, recoveryMode, targetVirtualMachineId) + internal WorkloadSqlRestoreContent(string objectType, FileShareRecoveryType? recoveryType, ResourceIdentifier sourceResourceId, IDictionary propertyBag, TargetRestoreInfo targetInfo, RecoveryMode? recoveryMode, ResourceIdentifier targetVirtualMachineId, bool? shouldUseAlternateTargetLocation, bool? isNonRecoverable, IList alternateDirectoryPaths) : base(objectType, recoveryType, sourceResourceId, propertyBag, targetInfo, recoveryMode, targetVirtualMachineId) { ShouldUseAlternateTargetLocation = shouldUseAlternateTargetLocation; IsNonRecoverable = isNonRecoverable; @@ -51,6 +51,6 @@ internal AzureWorkloadSQLRestoreRequest(string objectType, RecoveryType? recover /// SQL specific property where user can chose to set no-recovery when restore operation is tried. public bool? IsNonRecoverable { get; set; } /// Data directory details. - public IList AlternateDirectoryPaths { get; } + public IList AlternateDirectoryPaths { get; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLRestoreWithRehydrateRequest.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlRestoreWithRehydrateContent.Serialization.cs similarity index 81% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLRestoreWithRehydrateRequest.Serialization.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlRestoreWithRehydrateContent.Serialization.cs index 27e4f61747b26..dd7ab526192a7 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLRestoreWithRehydrateRequest.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlRestoreWithRehydrateContent.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - public partial class AzureWorkloadSQLRestoreWithRehydrateRequest : IUtf8JsonSerializable + public partial class WorkloadSqlRestoreWithRehydrateContent : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -82,18 +82,18 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AzureWorkloadSQLRestoreWithRehydrateRequest DeserializeAzureWorkloadSQLRestoreWithRehydrateRequest(JsonElement element) + internal static WorkloadSqlRestoreWithRehydrateContent DeserializeWorkloadSqlRestoreWithRehydrateContent(JsonElement element) { Optional recoveryPointRehydrationInfo = default; Optional shouldUseAlternateTargetLocation = default; Optional isNonRecoverable = default; - Optional> alternateDirectoryPaths = default; - Optional recoveryType = default; - Optional sourceResourceId = default; + Optional> alternateDirectoryPaths = default; + Optional recoveryType = default; + Optional sourceResourceId = default; Optional> propertyBag = default; Optional targetInfo = default; Optional recoveryMode = default; - Optional targetVirtualMachineId = default; + Optional targetVirtualMachineId = default; string objectType = default; foreach (var property in element.EnumerateObject()) { @@ -134,10 +134,10 @@ internal static AzureWorkloadSQLRestoreWithRehydrateRequest DeserializeAzureWork property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(SQLDataDirectoryMapping.DeserializeSQLDataDirectoryMapping(item)); + array.Add(SqlDataDirectoryMapping.DeserializeSqlDataDirectoryMapping(item)); } alternateDirectoryPaths = array; continue; @@ -149,12 +149,17 @@ internal static AzureWorkloadSQLRestoreWithRehydrateRequest DeserializeAzureWork property.ThrowNonNullablePropertyIsNull(); continue; } - recoveryType = new RecoveryType(property.Value.GetString()); + recoveryType = new FileShareRecoveryType(property.Value.GetString()); continue; } if (property.NameEquals("sourceResourceId"u8)) { - sourceResourceId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + sourceResourceId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("propertyBag"u8)) @@ -194,7 +199,12 @@ internal static AzureWorkloadSQLRestoreWithRehydrateRequest DeserializeAzureWork } if (property.NameEquals("targetVirtualMachineId"u8)) { - targetVirtualMachineId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + targetVirtualMachineId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("objectType"u8)) @@ -203,7 +213,7 @@ internal static AzureWorkloadSQLRestoreWithRehydrateRequest DeserializeAzureWork continue; } } - return new AzureWorkloadSQLRestoreWithRehydrateRequest(objectType, Optional.ToNullable(recoveryType), sourceResourceId.Value, Optional.ToDictionary(propertyBag), targetInfo.Value, Optional.ToNullable(recoveryMode), targetVirtualMachineId.Value, Optional.ToNullable(shouldUseAlternateTargetLocation), Optional.ToNullable(isNonRecoverable), Optional.ToList(alternateDirectoryPaths), recoveryPointRehydrationInfo.Value); + return new WorkloadSqlRestoreWithRehydrateContent(objectType, Optional.ToNullable(recoveryType), sourceResourceId.Value, Optional.ToDictionary(propertyBag), targetInfo.Value, Optional.ToNullable(recoveryMode), targetVirtualMachineId.Value, Optional.ToNullable(shouldUseAlternateTargetLocation), Optional.ToNullable(isNonRecoverable), Optional.ToList(alternateDirectoryPaths), recoveryPointRehydrationInfo.Value); } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLRestoreWithRehydrateRequest.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlRestoreWithRehydrateContent.cs similarity index 67% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLRestoreWithRehydrateRequest.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlRestoreWithRehydrateContent.cs index c390fb2a867c5..9c662dea6b7f2 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSQLRestoreWithRehydrateRequest.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlRestoreWithRehydrateContent.cs @@ -6,19 +6,20 @@ #nullable disable using System.Collections.Generic; +using Azure.Core; namespace Azure.ResourceManager.RecoveryServicesBackup.Models { /// AzureWorkload SQL-specific restore with integrated rehydration of recovery point. - public partial class AzureWorkloadSQLRestoreWithRehydrateRequest : AzureWorkloadSQLRestoreRequest + public partial class WorkloadSqlRestoreWithRehydrateContent : WorkloadSqlRestoreContent { - /// Initializes a new instance of AzureWorkloadSQLRestoreWithRehydrateRequest. - public AzureWorkloadSQLRestoreWithRehydrateRequest() + /// Initializes a new instance of WorkloadSqlRestoreWithRehydrateContent. + public WorkloadSqlRestoreWithRehydrateContent() { ObjectType = "AzureWorkloadSQLRestoreWithRehydrateRequest"; } - /// Initializes a new instance of AzureWorkloadSQLRestoreWithRehydrateRequest. + /// Initializes a new instance of WorkloadSqlRestoreWithRehydrateContent. /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. /// Type of this recovery. /// Fully qualified ARM ID of the VM on which workload that was running is being recovered. @@ -33,7 +34,7 @@ public AzureWorkloadSQLRestoreWithRehydrateRequest() /// SQL specific property where user can chose to set no-recovery when restore operation is tried. /// Data directory details. /// RP Rehydration Info. - internal AzureWorkloadSQLRestoreWithRehydrateRequest(string objectType, RecoveryType? recoveryType, string sourceResourceId, IDictionary propertyBag, TargetRestoreInfo targetInfo, RecoveryMode? recoveryMode, string targetVirtualMachineId, bool? shouldUseAlternateTargetLocation, bool? isNonRecoverable, IList alternateDirectoryPaths, RecoveryPointRehydrationInfo recoveryPointRehydrationInfo) : base(objectType, recoveryType, sourceResourceId, propertyBag, targetInfo, recoveryMode, targetVirtualMachineId, shouldUseAlternateTargetLocation, isNonRecoverable, alternateDirectoryPaths) + internal WorkloadSqlRestoreWithRehydrateContent(string objectType, FileShareRecoveryType? recoveryType, ResourceIdentifier sourceResourceId, IDictionary propertyBag, TargetRestoreInfo targetInfo, RecoveryMode? recoveryMode, ResourceIdentifier targetVirtualMachineId, bool? shouldUseAlternateTargetLocation, bool? isNonRecoverable, IList alternateDirectoryPaths, RecoveryPointRehydrationInfo recoveryPointRehydrationInfo) : base(objectType, recoveryType, sourceResourceId, propertyBag, targetInfo, recoveryMode, targetVirtualMachineId, shouldUseAlternateTargetLocation, isNonRecoverable, alternateDirectoryPaths) { RecoveryPointRehydrationInfo = recoveryPointRehydrationInfo; ObjectType = objectType ?? "AzureWorkloadSQLRestoreWithRehydrateRequest"; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadType.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadType.cs deleted file mode 100644 index 94c891bb22b8c..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadType.cs +++ /dev/null @@ -1,93 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - /// Type of workload for the backup management. - public readonly partial struct WorkloadType : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public WorkloadType(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string InvalidValue = "Invalid"; - private const string VmValue = "VM"; - private const string FileFolderValue = "FileFolder"; - private const string AzureSqlDbValue = "AzureSqlDb"; - private const string SqlDBValue = "SQLDB"; - private const string ExchangeValue = "Exchange"; - private const string SharepointValue = "Sharepoint"; - private const string VMwareVmValue = "VMwareVM"; - private const string SystemStateValue = "SystemState"; - private const string ClientValue = "Client"; - private const string GenericDataSourceValue = "GenericDataSource"; - private const string SQLDataBaseValue = "SQLDataBase"; - private const string AzureFileShareValue = "AzureFileShare"; - private const string SAPHanaDatabaseValue = "SAPHanaDatabase"; - private const string SAPAseDatabaseValue = "SAPAseDatabase"; - private const string SAPHanaDBInstanceValue = "SAPHanaDBInstance"; - - /// Invalid. - public static WorkloadType Invalid { get; } = new WorkloadType(InvalidValue); - /// VM. - public static WorkloadType Vm { get; } = new WorkloadType(VmValue); - /// FileFolder. - public static WorkloadType FileFolder { get; } = new WorkloadType(FileFolderValue); - /// AzureSqlDb. - public static WorkloadType AzureSqlDb { get; } = new WorkloadType(AzureSqlDbValue); - /// SQLDB. - public static WorkloadType SqlDB { get; } = new WorkloadType(SqlDBValue); - /// Exchange. - public static WorkloadType Exchange { get; } = new WorkloadType(ExchangeValue); - /// Sharepoint. - public static WorkloadType Sharepoint { get; } = new WorkloadType(SharepointValue); - /// VMwareVM. - public static WorkloadType VMwareVm { get; } = new WorkloadType(VMwareVmValue); - /// SystemState. - public static WorkloadType SystemState { get; } = new WorkloadType(SystemStateValue); - /// Client. - public static WorkloadType Client { get; } = new WorkloadType(ClientValue); - /// GenericDataSource. - public static WorkloadType GenericDataSource { get; } = new WorkloadType(GenericDataSourceValue); - /// SQLDataBase. - public static WorkloadType SQLDataBase { get; } = new WorkloadType(SQLDataBaseValue); - /// AzureFileShare. - public static WorkloadType AzureFileShare { get; } = new WorkloadType(AzureFileShareValue); - /// SAPHanaDatabase. - public static WorkloadType SAPHanaDatabase { get; } = new WorkloadType(SAPHanaDatabaseValue); - /// SAPAseDatabase. - public static WorkloadType SAPAseDatabase { get; } = new WorkloadType(SAPAseDatabaseValue); - /// SAPHanaDBInstance. - public static WorkloadType SAPHanaDBInstance { get; } = new WorkloadType(SAPHanaDBInstanceValue); - /// Determines if two values are the same. - public static bool operator ==(WorkloadType left, WorkloadType right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(WorkloadType left, WorkloadType right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator WorkloadType(string value) => new WorkloadType(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is WorkloadType other && Equals(other); - /// - public bool Equals(WorkloadType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/XcoolState.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/XcoolState.cs deleted file mode 100644 index 688c8de3caa40..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/XcoolState.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.RecoveryServicesBackup.Models -{ - /// Vault x-cool state. - public readonly partial struct XcoolState : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public XcoolState(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string InvalidValue = "Invalid"; - private const string EnabledValue = "Enabled"; - private const string DisabledValue = "Disabled"; - - /// Invalid. - public static XcoolState Invalid { get; } = new XcoolState(InvalidValue); - /// Enabled. - public static XcoolState Enabled { get; } = new XcoolState(EnabledValue); - /// Disabled. - public static XcoolState Disabled { get; } = new XcoolState(DisabledValue); - /// Determines if two values are the same. - public static bool operator ==(XcoolState left, XcoolState right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(XcoolState left, XcoolState right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator XcoolState(string value) => new XcoolState(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is XcoolState other && Equals(other); - /// - public bool Equals(XcoolState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/YearlyRetentionSchedule.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/YearlyRetentionSchedule.Serialization.cs index 38b75503e6329..cdab2528d227a 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/YearlyRetentionSchedule.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/YearlyRetentionSchedule.Serialization.cs @@ -63,7 +63,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) internal static YearlyRetentionSchedule DeserializeYearlyRetentionSchedule(JsonElement element) { Optional retentionScheduleFormatType = default; - Optional> monthsOfYear = default; + Optional> monthsOfYear = default; Optional retentionScheduleDaily = default; Optional retentionScheduleWeekly = default; Optional> retentionTimes = default; @@ -87,10 +87,10 @@ internal static YearlyRetentionSchedule DeserializeYearlyRetentionSchedule(JsonE property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(item.GetString().ToMonthOfYear()); + array.Add(item.GetString().ToBackupMonthOfYear()); } monthsOfYear = array; continue; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/YearlyRetentionSchedule.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/YearlyRetentionSchedule.cs index 259c44d7bea62..eaa45f7c17a5e 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/YearlyRetentionSchedule.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/YearlyRetentionSchedule.cs @@ -17,7 +17,7 @@ public partial class YearlyRetentionSchedule /// Initializes a new instance of YearlyRetentionSchedule. public YearlyRetentionSchedule() { - MonthsOfYear = new ChangeTrackingList(); + MonthsOfYear = new ChangeTrackingList(); RetentionTimes = new ChangeTrackingList(); } @@ -28,7 +28,7 @@ public YearlyRetentionSchedule() /// Weekly retention format for yearly retention policy. /// Retention times of retention policy. /// Retention duration of retention Policy. - internal YearlyRetentionSchedule(RetentionScheduleFormat? retentionScheduleFormatType, IList monthsOfYear, DailyRetentionFormat retentionScheduleDaily, WeeklyRetentionFormat retentionScheduleWeekly, IList retentionTimes, RetentionDuration retentionDuration) + internal YearlyRetentionSchedule(RetentionScheduleFormat? retentionScheduleFormatType, IList monthsOfYear, DailyRetentionFormat retentionScheduleDaily, WeeklyRetentionFormat retentionScheduleWeekly, IList retentionTimes, RetentionDuration retentionDuration) { RetentionScheduleFormatType = retentionScheduleFormatType; MonthsOfYear = monthsOfYear; @@ -41,11 +41,11 @@ internal YearlyRetentionSchedule(RetentionScheduleFormat? retentionScheduleForma /// Retention schedule format for yearly retention policy. public RetentionScheduleFormat? RetentionScheduleFormatType { get; set; } /// List of months of year of yearly retention policy. - public IList MonthsOfYear { get; } + public IList MonthsOfYear { get; } /// Daily retention format for yearly retention policy. internal DailyRetentionFormat RetentionScheduleDaily { get; set; } /// List of days of the month. - public IList RetentionScheduleDailyDaysOfTheMonth + public IList RetentionScheduleDailyDaysOfTheMonth { get { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ProtectedItemResourceData.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ProtectedItemResourceData.cs deleted file mode 100644 index e86676ba44eba..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ProtectedItemResourceData.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using Azure; -using Azure.Core; -using Azure.ResourceManager.Models; -using Azure.ResourceManager.RecoveryServicesBackup.Models; - -namespace Azure.ResourceManager.RecoveryServicesBackup -{ - /// A class representing the ProtectedItemResource data model. - public partial class ProtectedItemResourceData : TrackedResourceData - { - /// Initializes a new instance of ProtectedItemResourceData. - /// The location. - public ProtectedItemResourceData(AzureLocation location) : base(location) - { - } - - /// Initializes a new instance of ProtectedItemResourceData. - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// The tags. - /// The location. - /// - /// ProtectedItemResource properties - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , and . - /// - /// Optional ETag. - internal ProtectedItemResourceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ProtectedItem properties, ETag? eTag) : base(id, name, resourceType, systemData, tags, location) - { - Properties = properties; - ETag = eTag; - } - - /// - /// ProtectedItemResource properties - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , and . - /// - public ProtectedItem Properties { get; set; } - /// Optional ETag. - public ETag? ETag { get; set; } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ProtectionContainerResourceData.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ProtectionContainerResourceData.cs deleted file mode 100644 index e23126011166d..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ProtectionContainerResourceData.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using Azure; -using Azure.Core; -using Azure.ResourceManager.Models; -using Azure.ResourceManager.RecoveryServicesBackup.Models; - -namespace Azure.ResourceManager.RecoveryServicesBackup -{ - /// A class representing the ProtectionContainerResource data model. - public partial class ProtectionContainerResourceData : TrackedResourceData - { - /// Initializes a new instance of ProtectionContainerResourceData. - /// The location. - public ProtectionContainerResourceData(AzureLocation location) : base(location) - { - } - - /// Initializes a new instance of ProtectionContainerResourceData. - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// The tags. - /// The location. - /// - /// ProtectionContainerResource properties - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , and . - /// - /// Optional ETag. - internal ProtectionContainerResourceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ProtectionContainer properties, ETag? eTag) : base(id, name, resourceType, systemData, tags, location) - { - Properties = properties; - ETag = eTag; - } - - /// - /// ProtectionContainerResource properties - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , and . - /// - public ProtectionContainer Properties { get; set; } - /// Optional ETag. - public ETag? ETag { get; set; } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ProtectionIntentResourceData.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ProtectionIntentResourceData.cs deleted file mode 100644 index e0aa21c29b54a..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ProtectionIntentResourceData.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using Azure; -using Azure.Core; -using Azure.ResourceManager.Models; -using Azure.ResourceManager.RecoveryServicesBackup.Models; - -namespace Azure.ResourceManager.RecoveryServicesBackup -{ - /// A class representing the ProtectionIntentResource data model. - public partial class ProtectionIntentResourceData : TrackedResourceData - { - /// Initializes a new instance of ProtectionIntentResourceData. - /// The location. - public ProtectionIntentResourceData(AzureLocation location) : base(location) - { - } - - /// Initializes a new instance of ProtectionIntentResourceData. - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// The tags. - /// The location. - /// - /// ProtectionIntentResource properties - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , and . - /// - /// Optional ETag. - internal ProtectionIntentResourceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ProtectionIntent properties, ETag? eTag) : base(id, name, resourceType, systemData, tags, location) - { - Properties = properties; - ETag = eTag; - } - - /// - /// ProtectionIntentResource properties - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , and . - /// - public ProtectionIntent Properties { get; set; } - /// Optional ETag. - public ETag? ETag { get; set; } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ProtectionPolicyResourceData.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ProtectionPolicyResourceData.cs deleted file mode 100644 index 2d3b7361ea8e3..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ProtectionPolicyResourceData.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using Azure; -using Azure.Core; -using Azure.ResourceManager.Models; -using Azure.ResourceManager.RecoveryServicesBackup.Models; - -namespace Azure.ResourceManager.RecoveryServicesBackup -{ - /// A class representing the ProtectionPolicyResource data model. - public partial class ProtectionPolicyResourceData : TrackedResourceData - { - /// Initializes a new instance of ProtectionPolicyResourceData. - /// The location. - public ProtectionPolicyResourceData(AzureLocation location) : base(location) - { - } - - /// Initializes a new instance of ProtectionPolicyResourceData. - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// The tags. - /// The location. - /// - /// ProtectionPolicyResource properties - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , and . - /// - /// Optional ETag. - internal ProtectionPolicyResourceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ProtectionPolicy properties, ETag? eTag) : base(id, name, resourceType, systemData, tags, location) - { - Properties = properties; - ETag = eTag; - } - - /// - /// ProtectionPolicyResource properties - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , and . - /// - public ProtectionPolicy Properties { get; set; } - /// Optional ETag. - public ETag? ETag { get; set; } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RecoveryPointResourceData.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RecoveryPointResourceData.cs deleted file mode 100644 index 540e8c8f677a2..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RecoveryPointResourceData.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using Azure; -using Azure.Core; -using Azure.ResourceManager.Models; -using Azure.ResourceManager.RecoveryServicesBackup.Models; - -namespace Azure.ResourceManager.RecoveryServicesBackup -{ - /// A class representing the RecoveryPointResource data model. - public partial class RecoveryPointResourceData : TrackedResourceData - { - /// Initializes a new instance of RecoveryPointResourceData. - /// The location. - public RecoveryPointResourceData(AzureLocation location) : base(location) - { - } - - /// Initializes a new instance of RecoveryPointResourceData. - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// The tags. - /// The location. - /// - /// RecoveryPointResource properties - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , and . - /// - /// Optional ETag. - internal RecoveryPointResourceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, RecoveryPoint properties, ETag? eTag) : base(id, name, resourceType, systemData, tags, location) - { - Properties = properties; - ETag = eTag; - } - - /// - /// RecoveryPointResource properties - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , and . - /// - public RecoveryPoint Properties { get; set; } - /// Optional ETag. - public ETag? ETag { get; set; } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ResourceGuardProxyBaseResourceCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ResourceGuardProxyCollection.cs similarity index 64% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ResourceGuardProxyBaseResourceCollection.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ResourceGuardProxyCollection.cs index 9f9f94065a96d..6f172deb6b7bd 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ResourceGuardProxyBaseResourceCollection.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ResourceGuardProxyCollection.cs @@ -20,38 +20,33 @@ namespace Azure.ResourceManager.RecoveryServicesBackup { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetResourceGuardProxyBaseResources method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetResourceGuardProxies method from an instance of . /// - public partial class ResourceGuardProxyBaseResourceCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class ResourceGuardProxyCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _resourceGuardProxyBaseResourceResourceGuardProxyClientDiagnostics; - private readonly ResourceGuardProxyRestOperations _resourceGuardProxyBaseResourceResourceGuardProxyRestClient; - private readonly ClientDiagnostics _resourceGuardProxyBaseResourceResourceGuardProxiesClientDiagnostics; - private readonly ResourceGuardProxiesRestOperations _resourceGuardProxyBaseResourceResourceGuardProxiesRestClient; + private readonly ClientDiagnostics _resourceGuardProxyClientDiagnostics; + private readonly ResourceGuardProxyRestOperations _resourceGuardProxyRestClient; private readonly string _vaultName; - /// Initializes a new instance of the class for mocking. - protected ResourceGuardProxyBaseResourceCollection() + /// Initializes a new instance of the class for mocking. + protected ResourceGuardProxyCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. /// The name of the recovery services vault. /// is null. /// is an empty string, and was expected to be non-empty. - internal ResourceGuardProxyBaseResourceCollection(ArmClient client, ResourceIdentifier id, string vaultName) : base(client, id) + internal ResourceGuardProxyCollection(ArmClient client, ResourceIdentifier id, string vaultName) : base(client, id) { _vaultName = vaultName; - _resourceGuardProxyBaseResourceResourceGuardProxyClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ResourceGuardProxyBaseResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceGuardProxyBaseResource.ResourceType, out string resourceGuardProxyBaseResourceResourceGuardProxyApiVersion); - _resourceGuardProxyBaseResourceResourceGuardProxyRestClient = new ResourceGuardProxyRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, resourceGuardProxyBaseResourceResourceGuardProxyApiVersion); - _resourceGuardProxyBaseResourceResourceGuardProxiesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ResourceGuardProxyBaseResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceGuardProxyBaseResource.ResourceType, out string resourceGuardProxyBaseResourceResourceGuardProxiesApiVersion); - _resourceGuardProxyBaseResourceResourceGuardProxiesRestClient = new ResourceGuardProxiesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, resourceGuardProxyBaseResourceResourceGuardProxiesApiVersion); + _resourceGuardProxyClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ResourceGuardProxyResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceGuardProxyResource.ResourceType, out string resourceGuardProxyApiVersion); + _resourceGuardProxyRestClient = new ResourceGuardProxyRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, resourceGuardProxyApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -83,17 +78,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string resourceGuardProxyName, ResourceGuardProxyBaseResourceData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string resourceGuardProxyName, ResourceGuardProxyData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(resourceGuardProxyName, nameof(resourceGuardProxyName)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _resourceGuardProxyBaseResourceResourceGuardProxyClientDiagnostics.CreateScope("ResourceGuardProxyBaseResourceCollection.CreateOrUpdate"); + using var scope = _resourceGuardProxyClientDiagnostics.CreateScope("ResourceGuardProxyCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _resourceGuardProxyBaseResourceResourceGuardProxyRestClient.PutAsync(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, resourceGuardProxyName, data, cancellationToken).ConfigureAwait(false); - var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new ResourceGuardProxyBaseResource(Client, response), response.GetRawResponse())); + var response = await _resourceGuardProxyRestClient.PutAsync(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, resourceGuardProxyName, data, cancellationToken).ConfigureAwait(false); + var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new ResourceGuardProxyResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -125,17 +120,17 @@ public virtual async Task> CreateOr /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string resourceGuardProxyName, ResourceGuardProxyBaseResourceData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string resourceGuardProxyName, ResourceGuardProxyData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(resourceGuardProxyName, nameof(resourceGuardProxyName)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _resourceGuardProxyBaseResourceResourceGuardProxyClientDiagnostics.CreateScope("ResourceGuardProxyBaseResourceCollection.CreateOrUpdate"); + using var scope = _resourceGuardProxyClientDiagnostics.CreateScope("ResourceGuardProxyCollection.CreateOrUpdate"); scope.Start(); try { - var response = _resourceGuardProxyBaseResourceResourceGuardProxyRestClient.Put(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, resourceGuardProxyName, data, cancellationToken); - var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new ResourceGuardProxyBaseResource(Client, response), response.GetRawResponse())); + var response = _resourceGuardProxyRestClient.Put(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, resourceGuardProxyName, data, cancellationToken); + var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new ResourceGuardProxyResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -164,18 +159,18 @@ public virtual ArmOperation CreateOrUpdate(WaitU /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string resourceGuardProxyName, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string resourceGuardProxyName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(resourceGuardProxyName, nameof(resourceGuardProxyName)); - using var scope = _resourceGuardProxyBaseResourceResourceGuardProxyClientDiagnostics.CreateScope("ResourceGuardProxyBaseResourceCollection.Get"); + using var scope = _resourceGuardProxyClientDiagnostics.CreateScope("ResourceGuardProxyCollection.Get"); scope.Start(); try { - var response = await _resourceGuardProxyBaseResourceResourceGuardProxyRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, resourceGuardProxyName, cancellationToken).ConfigureAwait(false); + var response = await _resourceGuardProxyRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, resourceGuardProxyName, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new ResourceGuardProxyBaseResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new ResourceGuardProxyResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -201,18 +196,18 @@ public virtual async Task> GetAsync(str /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string resourceGuardProxyName, CancellationToken cancellationToken = default) + public virtual Response Get(string resourceGuardProxyName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(resourceGuardProxyName, nameof(resourceGuardProxyName)); - using var scope = _resourceGuardProxyBaseResourceResourceGuardProxyClientDiagnostics.CreateScope("ResourceGuardProxyBaseResourceCollection.Get"); + using var scope = _resourceGuardProxyClientDiagnostics.CreateScope("ResourceGuardProxyCollection.Get"); scope.Start(); try { - var response = _resourceGuardProxyBaseResourceResourceGuardProxyRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, resourceGuardProxyName, cancellationToken); + var response = _resourceGuardProxyRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, resourceGuardProxyName, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new ResourceGuardProxyBaseResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new ResourceGuardProxyResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -230,17 +225,17 @@ public virtual Response Get(string resourceGuard /// /// /// Operation Id - /// ResourceGuardProxies_Get + /// ResourceGuardProxy_List /// /// /// /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _resourceGuardProxyBaseResourceResourceGuardProxiesRestClient.CreateGetRequest(Id.SubscriptionId, Id.ResourceGroupName, _vaultName); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _resourceGuardProxyBaseResourceResourceGuardProxiesRestClient.CreateGetNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, _vaultName); - return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new ResourceGuardProxyBaseResource(Client, ResourceGuardProxyBaseResourceData.DeserializeResourceGuardProxyBaseResourceData(e)), _resourceGuardProxyBaseResourceResourceGuardProxiesClientDiagnostics, Pipeline, "ResourceGuardProxyBaseResourceCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _resourceGuardProxyRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, _vaultName); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _resourceGuardProxyRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, _vaultName); + return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new ResourceGuardProxyResource(Client, ResourceGuardProxyData.DeserializeResourceGuardProxyData(e)), _resourceGuardProxyClientDiagnostics, Pipeline, "ResourceGuardProxyCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -252,17 +247,17 @@ public virtual AsyncPageable GetAllAsync(Cancell /// /// /// Operation Id - /// ResourceGuardProxies_Get + /// ResourceGuardProxy_List /// /// /// /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _resourceGuardProxyBaseResourceResourceGuardProxiesRestClient.CreateGetRequest(Id.SubscriptionId, Id.ResourceGroupName, _vaultName); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _resourceGuardProxyBaseResourceResourceGuardProxiesRestClient.CreateGetNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, _vaultName); - return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new ResourceGuardProxyBaseResource(Client, ResourceGuardProxyBaseResourceData.DeserializeResourceGuardProxyBaseResourceData(e)), _resourceGuardProxyBaseResourceResourceGuardProxiesClientDiagnostics, Pipeline, "ResourceGuardProxyBaseResourceCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _resourceGuardProxyRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, _vaultName); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _resourceGuardProxyRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, _vaultName); + return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new ResourceGuardProxyResource(Client, ResourceGuardProxyData.DeserializeResourceGuardProxyData(e)), _resourceGuardProxyClientDiagnostics, Pipeline, "ResourceGuardProxyCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -286,11 +281,11 @@ public virtual async Task> ExistsAsync(string resourceGuardProxyN { Argument.AssertNotNullOrEmpty(resourceGuardProxyName, nameof(resourceGuardProxyName)); - using var scope = _resourceGuardProxyBaseResourceResourceGuardProxyClientDiagnostics.CreateScope("ResourceGuardProxyBaseResourceCollection.Exists"); + using var scope = _resourceGuardProxyClientDiagnostics.CreateScope("ResourceGuardProxyCollection.Exists"); scope.Start(); try { - var response = await _resourceGuardProxyBaseResourceResourceGuardProxyRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, resourceGuardProxyName, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _resourceGuardProxyRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, resourceGuardProxyName, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -321,11 +316,11 @@ public virtual Response Exists(string resourceGuardProxyName, Cancellation { Argument.AssertNotNullOrEmpty(resourceGuardProxyName, nameof(resourceGuardProxyName)); - using var scope = _resourceGuardProxyBaseResourceResourceGuardProxyClientDiagnostics.CreateScope("ResourceGuardProxyBaseResourceCollection.Exists"); + using var scope = _resourceGuardProxyClientDiagnostics.CreateScope("ResourceGuardProxyCollection.Exists"); scope.Start(); try { - var response = _resourceGuardProxyBaseResourceResourceGuardProxyRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, resourceGuardProxyName, cancellationToken: cancellationToken); + var response = _resourceGuardProxyRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, resourceGuardProxyName, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -335,7 +330,7 @@ public virtual Response Exists(string resourceGuardProxyName, Cancellation } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -345,7 +340,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ResourceGuardProxyBaseResourceData.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ResourceGuardProxyData.cs similarity index 64% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ResourceGuardProxyBaseResourceData.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ResourceGuardProxyData.cs index 65cce44767674..44f1483cd231b 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ResourceGuardProxyBaseResourceData.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ResourceGuardProxyData.cs @@ -13,16 +13,16 @@ namespace Azure.ResourceManager.RecoveryServicesBackup { - /// A class representing the ResourceGuardProxyBaseResource data model. - public partial class ResourceGuardProxyBaseResourceData : TrackedResourceData + /// A class representing the ResourceGuardProxy data model. + public partial class ResourceGuardProxyData : TrackedResourceData { - /// Initializes a new instance of ResourceGuardProxyBaseResourceData. + /// Initializes a new instance of ResourceGuardProxyData. /// The location. - public ResourceGuardProxyBaseResourceData(AzureLocation location) : base(location) + public ResourceGuardProxyData(AzureLocation location) : base(location) { } - /// Initializes a new instance of ResourceGuardProxyBaseResourceData. + /// Initializes a new instance of ResourceGuardProxyData. /// The id. /// The name. /// The resourceType. @@ -31,14 +31,14 @@ public ResourceGuardProxyBaseResourceData(AzureLocation location) : base(locatio /// The location. /// ResourceGuardProxyBaseResource properties. /// Optional ETag. - internal ResourceGuardProxyBaseResourceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ResourceGuardProxyBase properties, ETag? eTag) : base(id, name, resourceType, systemData, tags, location) + internal ResourceGuardProxyData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ResourceGuardProxyProperties properties, ETag? eTag) : base(id, name, resourceType, systemData, tags, location) { Properties = properties; ETag = eTag; } /// ResourceGuardProxyBaseResource properties. - public ResourceGuardProxyBase Properties { get; set; } + public ResourceGuardProxyProperties Properties { get; set; } /// Optional ETag. public ETag? ETag { get; set; } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ResourceGuardProxyBaseResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ResourceGuardProxyResource.cs similarity index 75% rename from sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ResourceGuardProxyBaseResource.cs rename to sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ResourceGuardProxyResource.cs index 0ed044f021fec..94551840a66cc 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ResourceGuardProxyBaseResource.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ResourceGuardProxyResource.cs @@ -20,46 +20,46 @@ namespace Azure.ResourceManager.RecoveryServicesBackup { /// - /// A Class representing a ResourceGuardProxyBaseResource along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetResourceGuardProxyBaseResource method. - /// Otherwise you can get one from its parent resource using the GetResourceGuardProxyBaseResource method. + /// A Class representing a ResourceGuardProxy along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetResourceGuardProxyResource method. + /// Otherwise you can get one from its parent resource using the GetResourceGuardProxy method. /// - public partial class ResourceGuardProxyBaseResource : ArmResource + public partial class ResourceGuardProxyResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string vaultName, string resourceGuardProxyName) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupResourceGuardProxies/{resourceGuardProxyName}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _resourceGuardProxyBaseResourceResourceGuardProxyClientDiagnostics; - private readonly ResourceGuardProxyRestOperations _resourceGuardProxyBaseResourceResourceGuardProxyRestClient; - private readonly ResourceGuardProxyBaseResourceData _data; + private readonly ClientDiagnostics _resourceGuardProxyClientDiagnostics; + private readonly ResourceGuardProxyRestOperations _resourceGuardProxyRestClient; + private readonly ResourceGuardProxyData _data; - /// Initializes a new instance of the class for mocking. - protected ResourceGuardProxyBaseResource() + /// Initializes a new instance of the class for mocking. + protected ResourceGuardProxyResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal ResourceGuardProxyBaseResource(ArmClient client, ResourceGuardProxyBaseResourceData data) : this(client, data.Id) + internal ResourceGuardProxyResource(ArmClient client, ResourceGuardProxyData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal ResourceGuardProxyBaseResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal ResourceGuardProxyResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _resourceGuardProxyBaseResourceResourceGuardProxyClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string resourceGuardProxyBaseResourceResourceGuardProxyApiVersion); - _resourceGuardProxyBaseResourceResourceGuardProxyRestClient = new ResourceGuardProxyRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, resourceGuardProxyBaseResourceResourceGuardProxyApiVersion); + _resourceGuardProxyClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesBackup", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string resourceGuardProxyApiVersion); + _resourceGuardProxyRestClient = new ResourceGuardProxyRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, resourceGuardProxyApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -73,7 +73,7 @@ internal ResourceGuardProxyBaseResource(ArmClient client, ResourceIdentifier id) /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual ResourceGuardProxyBaseResourceData Data + public virtual ResourceGuardProxyData Data { get { @@ -103,16 +103,16 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _resourceGuardProxyBaseResourceResourceGuardProxyClientDiagnostics.CreateScope("ResourceGuardProxyBaseResource.Get"); + using var scope = _resourceGuardProxyClientDiagnostics.CreateScope("ResourceGuardProxyResource.Get"); scope.Start(); try { - var response = await _resourceGuardProxyBaseResourceResourceGuardProxyRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _resourceGuardProxyRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new ResourceGuardProxyBaseResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new ResourceGuardProxyResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -135,16 +135,16 @@ public virtual async Task> GetAsync(Can /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _resourceGuardProxyBaseResourceResourceGuardProxyClientDiagnostics.CreateScope("ResourceGuardProxyBaseResource.Get"); + using var scope = _resourceGuardProxyClientDiagnostics.CreateScope("ResourceGuardProxyResource.Get"); scope.Start(); try { - var response = _resourceGuardProxyBaseResourceResourceGuardProxyRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _resourceGuardProxyRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new ResourceGuardProxyBaseResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new ResourceGuardProxyResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -170,11 +170,11 @@ public virtual Response Get(CancellationToken ca /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _resourceGuardProxyBaseResourceResourceGuardProxyClientDiagnostics.CreateScope("ResourceGuardProxyBaseResource.Delete"); + using var scope = _resourceGuardProxyClientDiagnostics.CreateScope("ResourceGuardProxyResource.Delete"); scope.Start(); try { - var response = await _resourceGuardProxyBaseResourceResourceGuardProxyRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _resourceGuardProxyRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); var operation = new RecoveryServicesBackupArmOperation(response); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); @@ -204,11 +204,11 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _resourceGuardProxyBaseResourceResourceGuardProxyClientDiagnostics.CreateScope("ResourceGuardProxyBaseResource.Delete"); + using var scope = _resourceGuardProxyClientDiagnostics.CreateScope("ResourceGuardProxyResource.Delete"); scope.Start(); try { - var response = _resourceGuardProxyBaseResourceResourceGuardProxyRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _resourceGuardProxyRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); var operation = new RecoveryServicesBackupArmOperation(response); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); @@ -239,16 +239,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// Request body for operation. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, ResourceGuardProxyBaseResourceData data, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(WaitUntil waitUntil, ResourceGuardProxyData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _resourceGuardProxyBaseResourceResourceGuardProxyClientDiagnostics.CreateScope("ResourceGuardProxyBaseResource.Update"); + using var scope = _resourceGuardProxyClientDiagnostics.CreateScope("ResourceGuardProxyResource.Update"); scope.Start(); try { - var response = await _resourceGuardProxyBaseResourceResourceGuardProxyRestClient.PutAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new ResourceGuardProxyBaseResource(Client, response), response.GetRawResponse())); + var response = await _resourceGuardProxyRestClient.PutAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new ResourceGuardProxyResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -278,16 +278,16 @@ public virtual async Task> UpdateAs /// Request body for operation. /// The cancellation token to use. /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, ResourceGuardProxyBaseResourceData data, CancellationToken cancellationToken = default) + public virtual ArmOperation Update(WaitUntil waitUntil, ResourceGuardProxyData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _resourceGuardProxyBaseResourceResourceGuardProxyClientDiagnostics.CreateScope("ResourceGuardProxyBaseResource.Update"); + using var scope = _resourceGuardProxyClientDiagnostics.CreateScope("ResourceGuardProxyResource.Update"); scope.Start(); try { - var response = _resourceGuardProxyBaseResourceResourceGuardProxyRestClient.Put(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new ResourceGuardProxyBaseResource(Client, response), response.GetRawResponse())); + var response = _resourceGuardProxyRestClient.Put(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new ResourceGuardProxyResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -315,15 +315,15 @@ public virtual ArmOperation Update(WaitUntil wai /// Request body for operation. /// The cancellation token to use. /// is null. - public virtual async Task> UnlockDeleteAsync(UnlockDeleteContent content, CancellationToken cancellationToken = default) + public virtual async Task> UnlockDeleteAsync(UnlockDeleteContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(content, nameof(content)); - using var scope = _resourceGuardProxyBaseResourceResourceGuardProxyClientDiagnostics.CreateScope("ResourceGuardProxyBaseResource.UnlockDelete"); + using var scope = _resourceGuardProxyClientDiagnostics.CreateScope("ResourceGuardProxyResource.UnlockDelete"); scope.Start(); try { - var response = await _resourceGuardProxyBaseResourceResourceGuardProxyRestClient.UnlockDeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content, cancellationToken).ConfigureAwait(false); + var response = await _resourceGuardProxyRestClient.UnlockDeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content, cancellationToken).ConfigureAwait(false); return response; } catch (Exception e) @@ -349,15 +349,15 @@ public virtual async Task> UnlockDeleteAsync(Unlo /// Request body for operation. /// The cancellation token to use. /// is null. - public virtual Response UnlockDelete(UnlockDeleteContent content, CancellationToken cancellationToken = default) + public virtual Response UnlockDelete(UnlockDeleteContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(content, nameof(content)); - using var scope = _resourceGuardProxyBaseResourceResourceGuardProxyClientDiagnostics.CreateScope("ResourceGuardProxyBaseResource.UnlockDelete"); + using var scope = _resourceGuardProxyClientDiagnostics.CreateScope("ResourceGuardProxyResource.UnlockDelete"); scope.Start(); try { - var response = _resourceGuardProxyBaseResourceResourceGuardProxyRestClient.UnlockDelete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content, cancellationToken); + var response = _resourceGuardProxyRestClient.UnlockDelete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content, cancellationToken); return response; } catch (Exception e) @@ -384,12 +384,12 @@ public virtual Response UnlockDelete(UnlockDeleteContent c /// The value for the tag. /// The cancellation token to use. /// or is null. - public virtual async Task> AddTagAsync(string key, string value, CancellationToken cancellationToken = default) + public virtual async Task> AddTagAsync(string key, string value, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); Argument.AssertNotNull(value, nameof(value)); - using var scope = _resourceGuardProxyBaseResourceResourceGuardProxyClientDiagnostics.CreateScope("ResourceGuardProxyBaseResource.AddTag"); + using var scope = _resourceGuardProxyClientDiagnostics.CreateScope("ResourceGuardProxyResource.AddTag"); scope.Start(); try { @@ -398,8 +398,8 @@ public virtual async Task> AddTagAsync( var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); originalTags.Value.Data.TagValues[key] = value; await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); - var originalResponse = await _resourceGuardProxyBaseResourceResourceGuardProxyRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new ResourceGuardProxyBaseResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = await _resourceGuardProxyRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new ResourceGuardProxyResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { @@ -433,12 +433,12 @@ public virtual async Task> AddTagAsync( /// The value for the tag. /// The cancellation token to use. /// or is null. - public virtual Response AddTag(string key, string value, CancellationToken cancellationToken = default) + public virtual Response AddTag(string key, string value, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); Argument.AssertNotNull(value, nameof(value)); - using var scope = _resourceGuardProxyBaseResourceResourceGuardProxyClientDiagnostics.CreateScope("ResourceGuardProxyBaseResource.AddTag"); + using var scope = _resourceGuardProxyClientDiagnostics.CreateScope("ResourceGuardProxyResource.AddTag"); scope.Start(); try { @@ -447,8 +447,8 @@ public virtual Response AddTag(string key, strin var originalTags = GetTagResource().Get(cancellationToken); originalTags.Value.Data.TagValues[key] = value; GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); - var originalResponse = _resourceGuardProxyBaseResourceResourceGuardProxyRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - return Response.FromValue(new ResourceGuardProxyBaseResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = _resourceGuardProxyRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + return Response.FromValue(new ResourceGuardProxyResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { @@ -481,11 +481,11 @@ public virtual Response AddTag(string key, strin /// The set of tags to use as replacement. /// The cancellation token to use. /// is null. - public virtual async Task> SetTagsAsync(IDictionary tags, CancellationToken cancellationToken = default) + public virtual async Task> SetTagsAsync(IDictionary tags, CancellationToken cancellationToken = default) { Argument.AssertNotNull(tags, nameof(tags)); - using var scope = _resourceGuardProxyBaseResourceResourceGuardProxyClientDiagnostics.CreateScope("ResourceGuardProxyBaseResource.SetTags"); + using var scope = _resourceGuardProxyClientDiagnostics.CreateScope("ResourceGuardProxyResource.SetTags"); scope.Start(); try { @@ -495,8 +495,8 @@ public virtual async Task> SetTagsAsync var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); originalTags.Value.Data.TagValues.ReplaceWith(tags); await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); - var originalResponse = await _resourceGuardProxyBaseResourceResourceGuardProxyRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new ResourceGuardProxyBaseResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = await _resourceGuardProxyRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new ResourceGuardProxyResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { @@ -529,11 +529,11 @@ public virtual async Task> SetTagsAsync /// The set of tags to use as replacement. /// The cancellation token to use. /// is null. - public virtual Response SetTags(IDictionary tags, CancellationToken cancellationToken = default) + public virtual Response SetTags(IDictionary tags, CancellationToken cancellationToken = default) { Argument.AssertNotNull(tags, nameof(tags)); - using var scope = _resourceGuardProxyBaseResourceResourceGuardProxyClientDiagnostics.CreateScope("ResourceGuardProxyBaseResource.SetTags"); + using var scope = _resourceGuardProxyClientDiagnostics.CreateScope("ResourceGuardProxyResource.SetTags"); scope.Start(); try { @@ -543,8 +543,8 @@ public virtual Response SetTags(IDictionary SetTags(IDictionary The key for the tag. /// The cancellation token to use. /// is null. - public virtual async Task> RemoveTagAsync(string key, CancellationToken cancellationToken = default) + public virtual async Task> RemoveTagAsync(string key, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); - using var scope = _resourceGuardProxyBaseResourceResourceGuardProxyClientDiagnostics.CreateScope("ResourceGuardProxyBaseResource.RemoveTag"); + using var scope = _resourceGuardProxyClientDiagnostics.CreateScope("ResourceGuardProxyResource.RemoveTag"); scope.Start(); try { @@ -590,8 +590,8 @@ public virtual async Task> RemoveTagAsy var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); originalTags.Value.Data.TagValues.Remove(key); await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); - var originalResponse = await _resourceGuardProxyBaseResourceResourceGuardProxyRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new ResourceGuardProxyBaseResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = await _resourceGuardProxyRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new ResourceGuardProxyResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { @@ -624,11 +624,11 @@ public virtual async Task> RemoveTagAsy /// The key for the tag. /// The cancellation token to use. /// is null. - public virtual Response RemoveTag(string key, CancellationToken cancellationToken = default) + public virtual Response RemoveTag(string key, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); - using var scope = _resourceGuardProxyBaseResourceResourceGuardProxyClientDiagnostics.CreateScope("ResourceGuardProxyBaseResource.RemoveTag"); + using var scope = _resourceGuardProxyClientDiagnostics.CreateScope("ResourceGuardProxyResource.RemoveTag"); scope.Start(); try { @@ -637,8 +637,8 @@ public virtual Response RemoveTag(string key, Ca var originalTags = GetTagResource().Get(cancellationToken); originalTags.Value.Data.TagValues.Remove(key); GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); - var originalResponse = _resourceGuardProxyBaseResourceResourceGuardProxyRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - return Response.FromValue(new ResourceGuardProxyBaseResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = _resourceGuardProxyRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + return Response.FromValue(new ResourceGuardProxyResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BMSPrepareDataMoveOperationResultRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BMSPrepareDataMoveOperationResultRestOperations.cs deleted file mode 100644 index d19ed19864489..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BMSPrepareDataMoveOperationResultRestOperations.cs +++ /dev/null @@ -1,128 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager.RecoveryServicesBackup.Models; - -namespace Azure.ResourceManager.RecoveryServicesBackup -{ - internal partial class BMSPrepareDataMoveOperationResultRestOperations - { - private readonly TelemetryDetails _userAgent; - private readonly HttpPipeline _pipeline; - private readonly Uri _endpoint; - private readonly string _apiVersion; - - /// Initializes a new instance of BMSPrepareDataMoveOperationResultRestOperations. - /// The HTTP pipeline for sending and receiving REST requests and responses. - /// The application id to use for user agent. - /// server parameter. - /// Api Version. - /// or is null. - public BMSPrepareDataMoveOperationResultRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) - { - _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); - _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-01-01"; - _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); - } - - internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vaultName, string operationId) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); - uri.AppendPath(vaultName, true); - uri.AppendPath("/backupstorageconfig/vaultstorageconfig/operationResults/", false); - uri.AppendPath(operationId, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// Fetches Operation Result for Prepare Data Move. - /// The subscription Id. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// The String to use. - /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string vaultName, string operationId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - Argument.AssertNotNullOrEmpty(operationId, nameof(operationId)); - - using var message = CreateGetRequest(subscriptionId, resourceGroupName, vaultName, operationId); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - VaultStorageConfigOperationResultResponse value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = VaultStorageConfigOperationResultResponse.DeserializeVaultStorageConfigOperationResultResponse(document.RootElement); - return Response.FromValue(value, message.Response); - } - case 202: - return Response.FromValue((VaultStorageConfigOperationResultResponse)null, message.Response); - default: - throw new RequestFailedException(message.Response); - } - } - - /// Fetches Operation Result for Prepare Data Move. - /// The subscription Id. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// The String to use. - /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string vaultName, string operationId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - Argument.AssertNotNullOrEmpty(operationId, nameof(operationId)); - - using var message = CreateGetRequest(subscriptionId, resourceGroupName, vaultName, operationId); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - VaultStorageConfigOperationResultResponse value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = VaultStorageConfigOperationResultResponse.DeserializeVaultStorageConfigOperationResultResponse(document.RootElement); - return Response.FromValue(value, message.Response); - } - case 202: - return Response.FromValue((VaultStorageConfigOperationResultResponse)null, message.Response); - default: - throw new RequestFailedException(message.Response); - } - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupEnginesRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupEnginesRestOperations.cs index 6e937d51e9f7b..ff30f31f1a800 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupEnginesRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupEnginesRestOperations.cs @@ -168,7 +168,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string vaultName, string backupEngineName, string filter = null, string skipToken = null, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string vaultName, string backupEngineName, string filter = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -181,13 +181,13 @@ public async Task> GetAsync(string subscr { case 200: { - BackupEngineBaseResourceData value = default; + BackupEngineData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = BackupEngineBaseResourceData.DeserializeBackupEngineBaseResourceData(document.RootElement); + value = BackupEngineData.DeserializeBackupEngineData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((BackupEngineBaseResourceData)null, message.Response); + return Response.FromValue((BackupEngineData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -203,7 +203,7 @@ public async Task> GetAsync(string subscr /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string vaultName, string backupEngineName, string filter = null, string skipToken = null, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string vaultName, string backupEngineName, string filter = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -216,13 +216,13 @@ public Response Get(string subscriptionId, string { case 200: { - BackupEngineBaseResourceData value = default; + BackupEngineData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = BackupEngineBaseResourceData.DeserializeBackupEngineBaseResourceData(document.RootElement); + value = BackupEngineData.DeserializeBackupEngineData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((BackupEngineBaseResourceData)null, message.Response); + return Response.FromValue((BackupEngineData)null, message.Response); default: throw new RequestFailedException(message.Response); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupJobsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupJobsRestOperations.cs index 8c744da6ba26f..577dff086912d 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupJobsRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupJobsRestOperations.cs @@ -75,7 +75,7 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListAsync(string subscriptionId, string resourceGroupName, string vaultName, string filter = null, string skipToken = null, CancellationToken cancellationToken = default) + public async Task> ListAsync(string subscriptionId, string resourceGroupName, string vaultName, string filter = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -87,9 +87,9 @@ public async Task> ListAsync(string subscriptionId, st { case 200: { - JobResourceList value = default; + BackupJobListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = JobResourceList.DeserializeJobResourceList(document.RootElement); + value = BackupJobListResult.DeserializeBackupJobListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -106,7 +106,7 @@ public async Task> ListAsync(string subscriptionId, st /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response List(string subscriptionId, string resourceGroupName, string vaultName, string filter = null, string skipToken = null, CancellationToken cancellationToken = default) + public Response List(string subscriptionId, string resourceGroupName, string vaultName, string filter = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -118,9 +118,9 @@ public Response List(string subscriptionId, string resourceGrou { case 200: { - JobResourceList value = default; + BackupJobListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = JobResourceList.DeserializeJobResourceList(document.RootElement); + value = BackupJobListResult.DeserializeBackupJobListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -152,7 +152,7 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string subscript /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string vaultName, string filter = null, string skipToken = null, CancellationToken cancellationToken = default) + public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string vaultName, string filter = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -165,9 +165,9 @@ public async Task> ListNextPageAsync(string nextLink, { case 200: { - JobResourceList value = default; + BackupJobListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = JobResourceList.DeserializeJobResourceList(document.RootElement); + value = BackupJobListResult.DeserializeBackupJobListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -185,7 +185,7 @@ public async Task> ListNextPageAsync(string nextLink, /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string vaultName, string filter = null, string skipToken = null, CancellationToken cancellationToken = default) + public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string vaultName, string filter = null, string skipToken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -198,9 +198,9 @@ public Response ListNextPage(string nextLink, string subscripti { case 200: { - JobResourceList value = default; + BackupJobListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = JobResourceList.DeserializeJobResourceList(document.RootElement); + value = BackupJobListResult.DeserializeBackupJobListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupOperationResultsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupOperationResultsRestOperations.cs deleted file mode 100644 index f9feb35bcac65..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupOperationResultsRestOperations.cs +++ /dev/null @@ -1,126 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; - -namespace Azure.ResourceManager.RecoveryServicesBackup -{ - internal partial class BackupOperationResultsRestOperations - { - private readonly TelemetryDetails _userAgent; - private readonly HttpPipeline _pipeline; - private readonly Uri _endpoint; - private readonly string _apiVersion; - - /// Initializes a new instance of BackupOperationResultsRestOperations. - /// The HTTP pipeline for sending and receiving REST requests and responses. - /// The application id to use for user agent. - /// server parameter. - /// Api Version. - /// or is null. - public BackupOperationResultsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) - { - _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); - _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-01-01"; - _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); - } - - internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vaultName, string operationId) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); - uri.AppendPath(vaultName, true); - uri.AppendPath("/backupOperationResults/", false); - uri.AppendPath(operationId, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// - /// Provides the status of the delete operations such as deleting backed up item. Once the operation has started, the - /// status code in the response would be Accepted. It will continue to be in this state till it reaches completion. On - /// successful completion, the status code will be OK. This method expects OperationID as an argument. OperationID is - /// part of the Location header of the operation response. - /// - /// The subscription Id. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// OperationID which represents the operation. - /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public async Task GetAsync(string subscriptionId, string resourceGroupName, string vaultName, string operationId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - Argument.AssertNotNullOrEmpty(operationId, nameof(operationId)); - - using var message = CreateGetRequest(subscriptionId, resourceGroupName, vaultName, operationId); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - case 202: - case 204: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - /// - /// Provides the status of the delete operations such as deleting backed up item. Once the operation has started, the - /// status code in the response would be Accepted. It will continue to be in this state till it reaches completion. On - /// successful completion, the status code will be OK. This method expects OperationID as an argument. OperationID is - /// part of the Location header of the operation response. - /// - /// The subscription Id. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// OperationID which represents the operation. - /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string vaultName, string operationId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - Argument.AssertNotNullOrEmpty(operationId, nameof(operationId)); - - using var message = CreateGetRequest(subscriptionId, resourceGroupName, vaultName, operationId); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - case 202: - case 204: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupOperationStatusesRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupOperationStatusesRestOperations.cs deleted file mode 100644 index ed542c8da312d..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupOperationStatusesRestOperations.cs +++ /dev/null @@ -1,132 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager.RecoveryServicesBackup.Models; - -namespace Azure.ResourceManager.RecoveryServicesBackup -{ - internal partial class BackupOperationStatusesRestOperations - { - private readonly TelemetryDetails _userAgent; - private readonly HttpPipeline _pipeline; - private readonly Uri _endpoint; - private readonly string _apiVersion; - - /// Initializes a new instance of BackupOperationStatusesRestOperations. - /// The HTTP pipeline for sending and receiving REST requests and responses. - /// The application id to use for user agent. - /// server parameter. - /// Api Version. - /// or is null. - public BackupOperationStatusesRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) - { - _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); - _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-01-01"; - _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); - } - - internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vaultName, string operationId) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); - uri.AppendPath(vaultName, true); - uri.AppendPath("/backupOperations/", false); - uri.AppendPath(operationId, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// - /// Fetches the status of an operation such as triggering a backup, restore. The status can be in progress, completed - /// or failed. You can refer to the OperationStatus enum for all the possible states of an operation. Some operations - /// create jobs. This method returns the list of jobs when the operation is complete. - /// - /// The subscription Id. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// OperationID which represents the operation. - /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string vaultName, string operationId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - Argument.AssertNotNullOrEmpty(operationId, nameof(operationId)); - - using var message = CreateGetRequest(subscriptionId, resourceGroupName, vaultName, operationId); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - OperationStatus value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = OperationStatus.DeserializeOperationStatus(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// - /// Fetches the status of an operation such as triggering a backup, restore. The status can be in progress, completed - /// or failed. You can refer to the OperationStatus enum for all the possible states of an operation. Some operations - /// create jobs. This method returns the list of jobs when the operation is complete. - /// - /// The subscription Id. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// OperationID which represents the operation. - /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string vaultName, string operationId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - Argument.AssertNotNullOrEmpty(operationId, nameof(operationId)); - - using var message = CreateGetRequest(subscriptionId, resourceGroupName, vaultName, operationId); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - OperationStatus value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = OperationStatus.DeserializeOperationStatus(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupResourceEncryptionConfigsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupResourceEncryptionConfigsRestOperations.cs index 9311fa19675eb..bdcf4e3fc7e9d 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupResourceEncryptionConfigsRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupResourceEncryptionConfigsRestOperations.cs @@ -65,7 +65,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string vaultName, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string vaultName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -77,13 +77,13 @@ public async Task> { case 200: { - BackupResourceEncryptionConfigExtendedResourceData value = default; + BackupResourceEncryptionConfigExtendedData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = BackupResourceEncryptionConfigExtendedResourceData.DeserializeBackupResourceEncryptionConfigExtendedResourceData(document.RootElement); + value = BackupResourceEncryptionConfigExtendedData.DeserializeBackupResourceEncryptionConfigExtendedData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((BackupResourceEncryptionConfigExtendedResourceData)null, message.Response); + return Response.FromValue((BackupResourceEncryptionConfigExtendedData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -96,7 +96,7 @@ public async Task> /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string vaultName, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string vaultName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -108,19 +108,19 @@ public Response Get(string s { case 200: { - BackupResourceEncryptionConfigExtendedResourceData value = default; + BackupResourceEncryptionConfigExtendedData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = BackupResourceEncryptionConfigExtendedResourceData.DeserializeBackupResourceEncryptionConfigExtendedResourceData(document.RootElement); + value = BackupResourceEncryptionConfigExtendedData.DeserializeBackupResourceEncryptionConfigExtendedData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((BackupResourceEncryptionConfigExtendedResourceData)null, message.Response); + return Response.FromValue((BackupResourceEncryptionConfigExtendedData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string vaultName, BackupResourceEncryptionConfigExtendedResourceCreateOrUpdateContent content) + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string vaultName, BackupResourceEncryptionConfigExtendedCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -153,7 +153,7 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task UpdateAsync(string subscriptionId, string resourceGroupName, string vaultName, BackupResourceEncryptionConfigExtendedResourceCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public async Task UpdateAsync(string subscriptionId, string resourceGroupName, string vaultName, BackupResourceEncryptionConfigExtendedCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -179,7 +179,7 @@ public async Task UpdateAsync(string subscriptionId, string resourceGr /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response Update(string subscriptionId, string resourceGroupName, string vaultName, BackupResourceEncryptionConfigExtendedResourceCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public Response Update(string subscriptionId, string resourceGroupName, string vaultName, BackupResourceEncryptionConfigExtendedCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupResourceStorageConfigsNonCRRRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupResourceStorageConfigsNonCRRRestOperations.cs index 63ecef330acd7..8ead7a08e724b 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupResourceStorageConfigsNonCRRRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupResourceStorageConfigsNonCRRRestOperations.cs @@ -64,7 +64,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string vaultName, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string vaultName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -76,13 +76,13 @@ public async Task> GetAsync(string su { case 200: { - BackupResourceConfigResourceData value = default; + BackupResourceConfigData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = BackupResourceConfigResourceData.DeserializeBackupResourceConfigResourceData(document.RootElement); + value = BackupResourceConfigData.DeserializeBackupResourceConfigData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((BackupResourceConfigResourceData)null, message.Response); + return Response.FromValue((BackupResourceConfigData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -95,7 +95,7 @@ public async Task> GetAsync(string su /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string vaultName, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string vaultName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -107,19 +107,19 @@ public Response Get(string subscriptionId, str { case 200: { - BackupResourceConfigResourceData value = default; + BackupResourceConfigData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = BackupResourceConfigResourceData.DeserializeBackupResourceConfigResourceData(document.RootElement); + value = BackupResourceConfigData.DeserializeBackupResourceConfigData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((BackupResourceConfigResourceData)null, message.Response); + return Response.FromValue((BackupResourceConfigData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string vaultName, BackupResourceConfigResourceData data) + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string vaultName, BackupResourceConfigData data) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -152,7 +152,7 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string vaultName, BackupResourceConfigResourceData data, CancellationToken cancellationToken = default) + public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string vaultName, BackupResourceConfigData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -165,9 +165,9 @@ public async Task> UpdateAsync(string { case 200: { - BackupResourceConfigResourceData value = default; + BackupResourceConfigData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = BackupResourceConfigResourceData.DeserializeBackupResourceConfigResourceData(document.RootElement); + value = BackupResourceConfigData.DeserializeBackupResourceConfigData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -183,7 +183,7 @@ public async Task> UpdateAsync(string /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response Update(string subscriptionId, string resourceGroupName, string vaultName, BackupResourceConfigResourceData data, CancellationToken cancellationToken = default) + public Response Update(string subscriptionId, string resourceGroupName, string vaultName, BackupResourceConfigData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -196,9 +196,9 @@ public Response Update(string subscriptionId, { case 200: { - BackupResourceConfigResourceData value = default; + BackupResourceConfigData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = BackupResourceConfigResourceData.DeserializeBackupResourceConfigResourceData(document.RootElement); + value = BackupResourceConfigData.DeserializeBackupResourceConfigData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -206,7 +206,7 @@ public Response Update(string subscriptionId, } } - internal HttpMessage CreatePatchRequest(string subscriptionId, string resourceGroupName, string vaultName, BackupResourceConfigResourceData data) + internal HttpMessage CreatePatchRequest(string subscriptionId, string resourceGroupName, string vaultName, BackupResourceConfigData data) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -239,7 +239,7 @@ internal HttpMessage CreatePatchRequest(string subscriptionId, string resourceGr /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> PatchAsync(string subscriptionId, string resourceGroupName, string vaultName, BackupResourceConfigResourceData data, CancellationToken cancellationToken = default) + public async Task> PatchAsync(string subscriptionId, string resourceGroupName, string vaultName, BackupResourceConfigData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -252,13 +252,13 @@ public async Task> PatchAsync(string { case 200: { - BackupResourceConfigResourceData value = default; + BackupResourceConfigData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = BackupResourceConfigResourceData.DeserializeBackupResourceConfigResourceData(document.RootElement); + value = BackupResourceConfigData.DeserializeBackupResourceConfigData(document.RootElement); return Response.FromValue(value, message.Response); } case 204: - return Response.FromValue((BackupResourceConfigResourceData)null, message.Response); + return Response.FromValue((BackupResourceConfigData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -272,7 +272,7 @@ public async Task> PatchAsync(string /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response Patch(string subscriptionId, string resourceGroupName, string vaultName, BackupResourceConfigResourceData data, CancellationToken cancellationToken = default) + public Response Patch(string subscriptionId, string resourceGroupName, string vaultName, BackupResourceConfigData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -285,13 +285,13 @@ public Response Patch(string subscriptionId, s { case 200: { - BackupResourceConfigResourceData value = default; + BackupResourceConfigData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = BackupResourceConfigResourceData.DeserializeBackupResourceConfigResourceData(document.RootElement); + value = BackupResourceConfigData.DeserializeBackupResourceConfigData(document.RootElement); return Response.FromValue(value, message.Response); } case 204: - return Response.FromValue((BackupResourceConfigResourceData)null, message.Response); + return Response.FromValue((BackupResourceConfigData)null, message.Response); default: throw new RequestFailedException(message.Response); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupResourceVaultConfigsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupResourceVaultConfigsRestOperations.cs index f14aa0bb3c300..1211c8b3c4638 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupResourceVaultConfigsRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupResourceVaultConfigsRestOperations.cs @@ -64,7 +64,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string vaultName, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string vaultName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -76,13 +76,13 @@ public async Task> GetAsync(stri { case 200: { - BackupResourceVaultConfigResourceData value = default; + BackupResourceVaultConfigData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = BackupResourceVaultConfigResourceData.DeserializeBackupResourceVaultConfigResourceData(document.RootElement); + value = BackupResourceVaultConfigData.DeserializeBackupResourceVaultConfigData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((BackupResourceVaultConfigResourceData)null, message.Response); + return Response.FromValue((BackupResourceVaultConfigData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -95,7 +95,7 @@ public async Task> GetAsync(stri /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string vaultName, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string vaultName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -107,19 +107,19 @@ public Response Get(string subscriptionId { case 200: { - BackupResourceVaultConfigResourceData value = default; + BackupResourceVaultConfigData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = BackupResourceVaultConfigResourceData.DeserializeBackupResourceVaultConfigResourceData(document.RootElement); + value = BackupResourceVaultConfigData.DeserializeBackupResourceVaultConfigData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((BackupResourceVaultConfigResourceData)null, message.Response); + return Response.FromValue((BackupResourceVaultConfigData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string vaultName, BackupResourceVaultConfigResourceData data) + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string vaultName, BackupResourceVaultConfigData data) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -152,7 +152,7 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string vaultName, BackupResourceVaultConfigResourceData data, CancellationToken cancellationToken = default) + public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string vaultName, BackupResourceVaultConfigData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -165,9 +165,9 @@ public async Task> UpdateAsync(s { case 200: { - BackupResourceVaultConfigResourceData value = default; + BackupResourceVaultConfigData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = BackupResourceVaultConfigResourceData.DeserializeBackupResourceVaultConfigResourceData(document.RootElement); + value = BackupResourceVaultConfigData.DeserializeBackupResourceVaultConfigData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -183,7 +183,7 @@ public async Task> UpdateAsync(s /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response Update(string subscriptionId, string resourceGroupName, string vaultName, BackupResourceVaultConfigResourceData data, CancellationToken cancellationToken = default) + public Response Update(string subscriptionId, string resourceGroupName, string vaultName, BackupResourceVaultConfigData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -196,9 +196,9 @@ public Response Update(string subscriptio { case 200: { - BackupResourceVaultConfigResourceData value = default; + BackupResourceVaultConfigData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = BackupResourceVaultConfigResourceData.DeserializeBackupResourceVaultConfigResourceData(document.RootElement); + value = BackupResourceVaultConfigData.DeserializeBackupResourceVaultConfigData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -206,7 +206,7 @@ public Response Update(string subscriptio } } - internal HttpMessage CreatePutRequest(string subscriptionId, string resourceGroupName, string vaultName, BackupResourceVaultConfigResourceData data) + internal HttpMessage CreatePutRequest(string subscriptionId, string resourceGroupName, string vaultName, BackupResourceVaultConfigData data) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -239,7 +239,7 @@ internal HttpMessage CreatePutRequest(string subscriptionId, string resourceGrou /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> PutAsync(string subscriptionId, string resourceGroupName, string vaultName, BackupResourceVaultConfigResourceData data, CancellationToken cancellationToken = default) + public async Task> PutAsync(string subscriptionId, string resourceGroupName, string vaultName, BackupResourceVaultConfigData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -252,9 +252,9 @@ public async Task> PutAsync(stri { case 200: { - BackupResourceVaultConfigResourceData value = default; + BackupResourceVaultConfigData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = BackupResourceVaultConfigResourceData.DeserializeBackupResourceVaultConfigResourceData(document.RootElement); + value = BackupResourceVaultConfigData.DeserializeBackupResourceVaultConfigData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -270,7 +270,7 @@ public async Task> PutAsync(stri /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response Put(string subscriptionId, string resourceGroupName, string vaultName, BackupResourceVaultConfigResourceData data, CancellationToken cancellationToken = default) + public Response Put(string subscriptionId, string resourceGroupName, string vaultName, BackupResourceVaultConfigData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -283,9 +283,9 @@ public Response Put(string subscriptionId { case 200: { - BackupResourceVaultConfigResourceData value = default; + BackupResourceVaultConfigData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = BackupResourceVaultConfigResourceData.DeserializeBackupResourceVaultConfigResourceData(document.RootElement); + value = BackupResourceVaultConfigData.DeserializeBackupResourceVaultConfigData(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupStatusRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupStatusRestOperations.cs index aca61539165e2..cac8205486a4f 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupStatusRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupStatusRestOperations.cs @@ -37,7 +37,7 @@ public BackupStatusRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal HttpMessage CreateGetRequest(string subscriptionId, string azureRegion, BackupStatusContent content) + internal HttpMessage CreateGetRequest(string subscriptionId, AzureLocation location, BackupStatusContent content) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -47,7 +47,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string azureRegion, uri.AppendPath("/Subscriptions/", false); uri.AppendPath(subscriptionId, true); uri.AppendPath("/providers/Microsoft.RecoveryServices/locations/", false); - uri.AppendPath(azureRegion, true); + uri.AppendPath(location, true); uri.AppendPath("/backupStatus", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; @@ -62,26 +62,25 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string azureRegion, /// Get the container backup status. /// The subscription Id. - /// Azure region to hit Api. + /// Azure region to hit Api. /// Container Backup Status Request. /// The cancellation token to use. - /// , or is null. - /// or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string azureRegion, BackupStatusContent content, CancellationToken cancellationToken = default) + /// or is null. + /// is an empty string, and was expected to be non-empty. + public async Task> GetAsync(string subscriptionId, AzureLocation location, BackupStatusContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(azureRegion, nameof(azureRegion)); Argument.AssertNotNull(content, nameof(content)); - using var message = CreateGetRequest(subscriptionId, azureRegion, content); + using var message = CreateGetRequest(subscriptionId, location, content); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: { - BackupStatusResponse value = default; + BackupStatusResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = BackupStatusResponse.DeserializeBackupStatusResponse(document.RootElement); + value = BackupStatusResult.DeserializeBackupStatusResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -91,26 +90,25 @@ public async Task> GetAsync(string subscriptionId /// Get the container backup status. /// The subscription Id. - /// Azure region to hit Api. + /// Azure region to hit Api. /// Container Backup Status Request. /// The cancellation token to use. - /// , or is null. - /// or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string azureRegion, BackupStatusContent content, CancellationToken cancellationToken = default) + /// or is null. + /// is an empty string, and was expected to be non-empty. + public Response Get(string subscriptionId, AzureLocation location, BackupStatusContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(azureRegion, nameof(azureRegion)); Argument.AssertNotNull(content, nameof(content)); - using var message = CreateGetRequest(subscriptionId, azureRegion, content); + using var message = CreateGetRequest(subscriptionId, location, content); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: { - BackupStatusResponse value = default; + BackupStatusResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = BackupStatusResponse.DeserializeBackupStatusResponse(document.RootElement); + value = BackupStatusResult.DeserializeBackupStatusResult(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupsRestOperations.cs index 29023a019a8cc..069822babf00e 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupsRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupsRestOperations.cs @@ -36,7 +36,7 @@ public BackupsRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal HttpMessage CreateTriggerRequest(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, BackupRequestResource backupRequestResource) + internal HttpMessage CreateTriggerRequest(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, TriggerBackupContent content) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -60,9 +60,9 @@ internal HttpMessage CreateTriggerRequest(string subscriptionId, string resource request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(backupRequestResource); - request.Content = content; + var content0 = new Utf8JsonRequestContent(); + content0.JsonWriter.WriteObjectValue(content); + request.Content = content0; _userAgent.Apply(message); return message; } @@ -77,11 +77,11 @@ internal HttpMessage CreateTriggerRequest(string subscriptionId, string resource /// Fabric name associated with the backup item. /// Container name associated with the backup item. /// Backup item for which backup needs to be triggered. - /// resource backup request. + /// resource backup request. /// The cancellation token to use. - /// , , , , , or is null. + /// , , , , , or is null. /// , , , , or is an empty string, and was expected to be non-empty. - public async Task TriggerAsync(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, BackupRequestResource backupRequestResource, CancellationToken cancellationToken = default) + public async Task TriggerAsync(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, TriggerBackupContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -89,9 +89,9 @@ public async Task TriggerAsync(string subscriptionId, string resourceG Argument.AssertNotNullOrEmpty(fabricName, nameof(fabricName)); Argument.AssertNotNullOrEmpty(containerName, nameof(containerName)); Argument.AssertNotNullOrEmpty(protectedItemName, nameof(protectedItemName)); - Argument.AssertNotNull(backupRequestResource, nameof(backupRequestResource)); + Argument.AssertNotNull(content, nameof(content)); - using var message = CreateTriggerRequest(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName, backupRequestResource); + using var message = CreateTriggerRequest(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName, content); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -112,11 +112,11 @@ public async Task TriggerAsync(string subscriptionId, string resourceG /// Fabric name associated with the backup item. /// Container name associated with the backup item. /// Backup item for which backup needs to be triggered. - /// resource backup request. + /// resource backup request. /// The cancellation token to use. - /// , , , , , or is null. + /// , , , , , or is null. /// , , , , or is an empty string, and was expected to be non-empty. - public Response Trigger(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, BackupRequestResource backupRequestResource, CancellationToken cancellationToken = default) + public Response Trigger(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, TriggerBackupContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -124,9 +124,9 @@ public Response Trigger(string subscriptionId, string resourceGroupName, string Argument.AssertNotNullOrEmpty(fabricName, nameof(fabricName)); Argument.AssertNotNullOrEmpty(containerName, nameof(containerName)); Argument.AssertNotNullOrEmpty(protectedItemName, nameof(protectedItemName)); - Argument.AssertNotNull(backupRequestResource, nameof(backupRequestResource)); + Argument.AssertNotNull(content, nameof(content)); - using var message = CreateTriggerRequest(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName, backupRequestResource); + using var message = CreateTriggerRequest(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName, content); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ExportJobsOperationResultsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ExportJobsOperationResultsRestOperations.cs deleted file mode 100644 index 937d42329172f..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ExportJobsOperationResultsRestOperations.cs +++ /dev/null @@ -1,132 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager.RecoveryServicesBackup.Models; - -namespace Azure.ResourceManager.RecoveryServicesBackup -{ - internal partial class ExportJobsOperationResultsRestOperations - { - private readonly TelemetryDetails _userAgent; - private readonly HttpPipeline _pipeline; - private readonly Uri _endpoint; - private readonly string _apiVersion; - - /// Initializes a new instance of ExportJobsOperationResultsRestOperations. - /// The HTTP pipeline for sending and receiving REST requests and responses. - /// The application id to use for user agent. - /// server parameter. - /// Api Version. - /// or is null. - public ExportJobsOperationResultsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) - { - _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); - _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-01-01"; - _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); - } - - internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vaultName, string operationId) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); - uri.AppendPath(vaultName, true); - uri.AppendPath("/backupJobs/operationResults/", false); - uri.AppendPath(operationId, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// - /// Gets the operation result of operation triggered by Export Jobs API. If the operation is successful, then it also - /// contains URL of a Blob and a SAS key to access the same. The blob contains exported jobs in JSON serialized format. - /// - /// The subscription Id. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// OperationID which represents the export job. - /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string vaultName, string operationId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - Argument.AssertNotNullOrEmpty(operationId, nameof(operationId)); - - using var message = CreateGetRequest(subscriptionId, resourceGroupName, vaultName, operationId); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - case 202: - { - OperationResultInfoBaseResource value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = OperationResultInfoBaseResource.DeserializeOperationResultInfoBaseResource(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// - /// Gets the operation result of operation triggered by Export Jobs API. If the operation is successful, then it also - /// contains URL of a Blob and a SAS key to access the same. The blob contains exported jobs in JSON serialized format. - /// - /// The subscription Id. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// OperationID which represents the export job. - /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string vaultName, string operationId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - Argument.AssertNotNullOrEmpty(operationId, nameof(operationId)); - - using var message = CreateGetRequest(subscriptionId, resourceGroupName, vaultName, operationId); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - case 202: - { - OperationResultInfoBaseResource value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = OperationResultInfoBaseResource.DeserializeOperationResultInfoBaseResource(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/FeatureSupportRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/FeatureSupportRestOperations.cs index bb4f9cbc9ef88..1d72e0f358381 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/FeatureSupportRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/FeatureSupportRestOperations.cs @@ -37,7 +37,7 @@ public FeatureSupportRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal HttpMessage CreateValidateRequest(string subscriptionId, string azureRegion, FeatureSupportContent content) + internal HttpMessage CreateValidateRequest(string subscriptionId, AzureLocation location, FeatureSupportContent content) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -47,7 +47,7 @@ internal HttpMessage CreateValidateRequest(string subscriptionId, string azureRe uri.AppendPath("/Subscriptions/", false); uri.AppendPath(subscriptionId, true); uri.AppendPath("/providers/Microsoft.RecoveryServices/locations/", false); - uri.AppendPath(azureRegion, true); + uri.AppendPath(location, true); uri.AppendPath("/backupValidateFeatures", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; @@ -62,26 +62,25 @@ internal HttpMessage CreateValidateRequest(string subscriptionId, string azureRe /// It will validate if given feature with resource properties is supported in service. /// The subscription Id. - /// Azure region to hit Api. + /// Azure region to hit Api. /// Feature support request object. /// The cancellation token to use. - /// , or is null. - /// or is an empty string, and was expected to be non-empty. - public async Task> ValidateAsync(string subscriptionId, string azureRegion, FeatureSupportContent content, CancellationToken cancellationToken = default) + /// or is null. + /// is an empty string, and was expected to be non-empty. + public async Task> ValidateAsync(string subscriptionId, AzureLocation location, FeatureSupportContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(azureRegion, nameof(azureRegion)); Argument.AssertNotNull(content, nameof(content)); - using var message = CreateValidateRequest(subscriptionId, azureRegion, content); + using var message = CreateValidateRequest(subscriptionId, location, content); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: { - AzureVmResourceFeatureSupportResponse value = default; + VmResourceFeatureSupportResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = AzureVmResourceFeatureSupportResponse.DeserializeAzureVmResourceFeatureSupportResponse(document.RootElement); + value = VmResourceFeatureSupportResult.DeserializeVmResourceFeatureSupportResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -91,26 +90,25 @@ public async Task> ValidateAsync /// It will validate if given feature with resource properties is supported in service. /// The subscription Id. - /// Azure region to hit Api. + /// Azure region to hit Api. /// Feature support request object. /// The cancellation token to use. - /// , or is null. - /// or is an empty string, and was expected to be non-empty. - public Response Validate(string subscriptionId, string azureRegion, FeatureSupportContent content, CancellationToken cancellationToken = default) + /// or is null. + /// is an empty string, and was expected to be non-empty. + public Response Validate(string subscriptionId, AzureLocation location, FeatureSupportContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(azureRegion, nameof(azureRegion)); Argument.AssertNotNull(content, nameof(content)); - using var message = CreateValidateRequest(subscriptionId, azureRegion, content); + using var message = CreateValidateRequest(subscriptionId, location, content); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: { - AzureVmResourceFeatureSupportResponse value = default; + VmResourceFeatureSupportResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = AzureVmResourceFeatureSupportResponse.DeserializeAzureVmResourceFeatureSupportResponse(document.RootElement); + value = VmResourceFeatureSupportResult.DeserializeVmResourceFeatureSupportResult(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ItemLevelRecoveryConnectionsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ItemLevelRecoveryConnectionsRestOperations.cs index 78361d5d1bfeb..81c871478a5ac 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ItemLevelRecoveryConnectionsRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ItemLevelRecoveryConnectionsRestOperations.cs @@ -36,7 +36,7 @@ public ItemLevelRecoveryConnectionsRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal HttpMessage CreateProvisionRequest(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, string recoveryPointId, ILRRequestResource ilrRequestResource) + internal HttpMessage CreateProvisionRequest(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, string recoveryPointId, ProvisionIlrConnectionContent content) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -62,9 +62,9 @@ internal HttpMessage CreateProvisionRequest(string subscriptionId, string resour request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(ilrRequestResource); - request.Content = content; + var content0 = new Utf8JsonRequestContent(); + content0.JsonWriter.WriteObjectValue(content); + request.Content = content0; _userAgent.Apply(message); return message; } @@ -84,11 +84,11 @@ internal HttpMessage CreateProvisionRequest(string subscriptionId, string resour /// Recovery point ID which represents backed up data. iSCSI connection will be provisioned /// for this backed up data. /// - /// resource ILR request. + /// resource ILR request. /// The cancellation token to use. - /// , , , , , , or is null. + /// , , , , , , or is null. /// , , , , , or is an empty string, and was expected to be non-empty. - public async Task ProvisionAsync(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, string recoveryPointId, ILRRequestResource ilrRequestResource, CancellationToken cancellationToken = default) + public async Task ProvisionAsync(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, string recoveryPointId, ProvisionIlrConnectionContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -97,9 +97,9 @@ public async Task ProvisionAsync(string subscriptionId, string resourc Argument.AssertNotNullOrEmpty(containerName, nameof(containerName)); Argument.AssertNotNullOrEmpty(protectedItemName, nameof(protectedItemName)); Argument.AssertNotNullOrEmpty(recoveryPointId, nameof(recoveryPointId)); - Argument.AssertNotNull(ilrRequestResource, nameof(ilrRequestResource)); + Argument.AssertNotNull(content, nameof(content)); - using var message = CreateProvisionRequest(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName, recoveryPointId, ilrRequestResource); + using var message = CreateProvisionRequest(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName, recoveryPointId, content); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -125,11 +125,11 @@ public async Task ProvisionAsync(string subscriptionId, string resourc /// Recovery point ID which represents backed up data. iSCSI connection will be provisioned /// for this backed up data. /// - /// resource ILR request. + /// resource ILR request. /// The cancellation token to use. - /// , , , , , , or is null. + /// , , , , , , or is null. /// , , , , , or is an empty string, and was expected to be non-empty. - public Response Provision(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, string recoveryPointId, ILRRequestResource ilrRequestResource, CancellationToken cancellationToken = default) + public Response Provision(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, string recoveryPointId, ProvisionIlrConnectionContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -138,9 +138,9 @@ public Response Provision(string subscriptionId, string resourceGroupName, strin Argument.AssertNotNullOrEmpty(containerName, nameof(containerName)); Argument.AssertNotNullOrEmpty(protectedItemName, nameof(protectedItemName)); Argument.AssertNotNullOrEmpty(recoveryPointId, nameof(recoveryPointId)); - Argument.AssertNotNull(ilrRequestResource, nameof(ilrRequestResource)); + Argument.AssertNotNull(content, nameof(content)); - using var message = CreateProvisionRequest(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName, recoveryPointId, ilrRequestResource); + using var message = CreateProvisionRequest(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName, recoveryPointId, content); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/JobDetailsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/JobDetailsRestOperations.cs index 695929ca50a83..54b25064fdd5f 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/JobDetailsRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/JobDetailsRestOperations.cs @@ -66,7 +66,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string vaultName, string jobName, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string vaultName, string jobName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -79,13 +79,13 @@ public async Task> GetAsync(string subscriptionId, str { case 200: { - JobResourceData value = default; + BackupJobData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = JobResourceData.DeserializeJobResourceData(document.RootElement); + value = BackupJobData.DeserializeBackupJobData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((JobResourceData)null, message.Response); + return Response.FromValue((BackupJobData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -99,7 +99,7 @@ public async Task> GetAsync(string subscriptionId, str /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string vaultName, string jobName, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string vaultName, string jobName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -112,13 +112,13 @@ public Response Get(string subscriptionId, string resourceGroup { case 200: { - JobResourceData value = default; + BackupJobData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = JobResourceData.DeserializeJobResourceData(document.RootElement); + value = BackupJobData.DeserializeBackupJobData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((JobResourceData)null, message.Response); + return Response.FromValue((BackupJobData)null, message.Response); default: throw new RequestFailedException(message.Response); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/JobOperationResultsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/JobOperationResultsRestOperations.cs deleted file mode 100644 index a904ed1316502..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/JobOperationResultsRestOperations.cs +++ /dev/null @@ -1,122 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; - -namespace Azure.ResourceManager.RecoveryServicesBackup -{ - internal partial class JobOperationResultsRestOperations - { - private readonly TelemetryDetails _userAgent; - private readonly HttpPipeline _pipeline; - private readonly Uri _endpoint; - private readonly string _apiVersion; - - /// Initializes a new instance of JobOperationResultsRestOperations. - /// The HTTP pipeline for sending and receiving REST requests and responses. - /// The application id to use for user agent. - /// server parameter. - /// Api Version. - /// or is null. - public JobOperationResultsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) - { - _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); - _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-01-01"; - _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); - } - - internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vaultName, string jobName, string operationId) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); - uri.AppendPath(vaultName, true); - uri.AppendPath("/backupJobs/", false); - uri.AppendPath(jobName, true); - uri.AppendPath("/operationResults/", false); - uri.AppendPath(operationId, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// Fetches the result of any operation. - /// The subscription Id. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Job name whose operation result has to be fetched. - /// OperationID which represents the operation whose result has to be fetched. - /// The cancellation token to use. - /// , , , or is null. - /// , , , or is an empty string, and was expected to be non-empty. - public async Task GetAsync(string subscriptionId, string resourceGroupName, string vaultName, string jobName, string operationId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - Argument.AssertNotNullOrEmpty(jobName, nameof(jobName)); - Argument.AssertNotNullOrEmpty(operationId, nameof(operationId)); - - using var message = CreateGetRequest(subscriptionId, resourceGroupName, vaultName, jobName, operationId); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - case 202: - case 204: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - /// Fetches the result of any operation. - /// The subscription Id. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Job name whose operation result has to be fetched. - /// OperationID which represents the operation whose result has to be fetched. - /// The cancellation token to use. - /// , , , or is null. - /// , , , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string vaultName, string jobName, string operationId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - Argument.AssertNotNullOrEmpty(jobName, nameof(jobName)); - Argument.AssertNotNullOrEmpty(operationId, nameof(operationId)); - - using var message = CreateGetRequest(subscriptionId, resourceGroupName, vaultName, jobName, operationId); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - case 202: - case 204: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/OperationRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/OperationRestOperations.cs deleted file mode 100644 index 60e964aae25fa..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/OperationRestOperations.cs +++ /dev/null @@ -1,127 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager.RecoveryServicesBackup.Models; - -namespace Azure.ResourceManager.RecoveryServicesBackup -{ - internal partial class OperationRestOperations - { - private readonly TelemetryDetails _userAgent; - private readonly HttpPipeline _pipeline; - private readonly Uri _endpoint; - private readonly string _apiVersion; - - /// Initializes a new instance of OperationRestOperations. - /// The HTTP pipeline for sending and receiving REST requests and responses. - /// The application id to use for user agent. - /// server parameter. - /// Api Version. - /// or is null. - public OperationRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) - { - _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); - _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-01-01"; - _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); - } - - internal HttpMessage CreateValidateRequest(string subscriptionId, string resourceGroupName, string vaultName, ValidateOperationRequest validateOperationRequest) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); - uri.AppendPath(vaultName, true); - uri.AppendPath("/backupValidateOperation", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(validateOperationRequest); - request.Content = content; - _userAgent.Apply(message); - return message; - } - - /// Validate operation for specified backed up item. This is a synchronous operation. - /// The subscription Id. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// resource validate operation request. - /// The cancellation token to use. - /// , , or is null. - /// , or is an empty string, and was expected to be non-empty. - public async Task> ValidateAsync(string subscriptionId, string resourceGroupName, string vaultName, ValidateOperationRequest validateOperationRequest, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - Argument.AssertNotNull(validateOperationRequest, nameof(validateOperationRequest)); - - using var message = CreateValidateRequest(subscriptionId, resourceGroupName, vaultName, validateOperationRequest); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - ValidateOperationsResponse value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ValidateOperationsResponse.DeserializeValidateOperationsResponse(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// Validate operation for specified backed up item. This is a synchronous operation. - /// The subscription Id. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// resource validate operation request. - /// The cancellation token to use. - /// , , or is null. - /// , or is an empty string, and was expected to be non-empty. - public Response Validate(string subscriptionId, string resourceGroupName, string vaultName, ValidateOperationRequest validateOperationRequest, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - Argument.AssertNotNull(validateOperationRequest, nameof(validateOperationRequest)); - - using var message = CreateValidateRequest(subscriptionId, resourceGroupName, vaultName, validateOperationRequest); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - ValidateOperationsResponse value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ValidateOperationsResponse.DeserializeValidateOperationsResponse(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/PrivateEndpointConnectionRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/PrivateEndpointConnectionRestOperations.cs index 8eaf6c80d2f43..43e7c648772b3 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/PrivateEndpointConnectionRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/PrivateEndpointConnectionRestOperations.cs @@ -66,7 +66,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string vaultName, string privateEndpointConnectionName, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string vaultName, string privateEndpointConnectionName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -79,13 +79,13 @@ public async Task> GetAsync(stri { case 200: { - PrivateEndpointConnectionResourceData value = default; + BackupPrivateEndpointConnectionData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = PrivateEndpointConnectionResourceData.DeserializePrivateEndpointConnectionResourceData(document.RootElement); + value = BackupPrivateEndpointConnectionData.DeserializeBackupPrivateEndpointConnectionData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((PrivateEndpointConnectionResourceData)null, message.Response); + return Response.FromValue((BackupPrivateEndpointConnectionData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -99,7 +99,7 @@ public async Task> GetAsync(stri /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string vaultName, string privateEndpointConnectionName, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string vaultName, string privateEndpointConnectionName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -112,19 +112,19 @@ public Response Get(string subscriptionId { case 200: { - PrivateEndpointConnectionResourceData value = default; + BackupPrivateEndpointConnectionData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = PrivateEndpointConnectionResourceData.DeserializePrivateEndpointConnectionResourceData(document.RootElement); + value = BackupPrivateEndpointConnectionData.DeserializeBackupPrivateEndpointConnectionData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((PrivateEndpointConnectionResourceData)null, message.Response); + return Response.FromValue((BackupPrivateEndpointConnectionData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - internal HttpMessage CreatePutRequest(string subscriptionId, string resourceGroupName, string vaultName, string privateEndpointConnectionName, PrivateEndpointConnectionResourceData data) + internal HttpMessage CreatePutRequest(string subscriptionId, string resourceGroupName, string vaultName, string privateEndpointConnectionName, BackupPrivateEndpointConnectionData data) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -159,7 +159,7 @@ internal HttpMessage CreatePutRequest(string subscriptionId, string resourceGrou /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task PutAsync(string subscriptionId, string resourceGroupName, string vaultName, string privateEndpointConnectionName, PrivateEndpointConnectionResourceData data, CancellationToken cancellationToken = default) + public async Task PutAsync(string subscriptionId, string resourceGroupName, string vaultName, string privateEndpointConnectionName, BackupPrivateEndpointConnectionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -188,7 +188,7 @@ public async Task PutAsync(string subscriptionId, string resourceGroup /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response Put(string subscriptionId, string resourceGroupName, string vaultName, string privateEndpointConnectionName, PrivateEndpointConnectionResourceData data, CancellationToken cancellationToken = default) + public Response Put(string subscriptionId, string resourceGroupName, string vaultName, string privateEndpointConnectionName, BackupPrivateEndpointConnectionData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/PrivateEndpointRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/PrivateEndpointRestOperations.cs deleted file mode 100644 index db17784853bd0..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/PrivateEndpointRestOperations.cs +++ /dev/null @@ -1,130 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager.RecoveryServicesBackup.Models; - -namespace Azure.ResourceManager.RecoveryServicesBackup -{ - internal partial class PrivateEndpointRestOperations - { - private readonly TelemetryDetails _userAgent; - private readonly HttpPipeline _pipeline; - private readonly Uri _endpoint; - private readonly string _apiVersion; - - /// Initializes a new instance of PrivateEndpointRestOperations. - /// The HTTP pipeline for sending and receiving REST requests and responses. - /// The application id to use for user agent. - /// server parameter. - /// Api Version. - /// or is null. - public PrivateEndpointRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) - { - _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); - _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-01-01"; - _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); - } - - internal HttpMessage CreateGetOperationStatusRequest(string subscriptionId, string resourceGroupName, string vaultName, string privateEndpointConnectionName, string operationId) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); - uri.AppendPath(vaultName, true); - uri.AppendPath("/privateEndpointConnections/", false); - uri.AppendPath(privateEndpointConnectionName, true); - uri.AppendPath("/operationsStatus/", false); - uri.AppendPath(operationId, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// Gets the operation status for a private endpoint connection. - /// The subscription Id. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// The name of the private endpoint connection. - /// Operation id. - /// The cancellation token to use. - /// , , , or is null. - /// , , , or is an empty string, and was expected to be non-empty. - public async Task> GetOperationStatusAsync(string subscriptionId, string resourceGroupName, string vaultName, string privateEndpointConnectionName, string operationId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); - Argument.AssertNotNullOrEmpty(operationId, nameof(operationId)); - - using var message = CreateGetOperationStatusRequest(subscriptionId, resourceGroupName, vaultName, privateEndpointConnectionName, operationId); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - OperationStatus value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = OperationStatus.DeserializeOperationStatus(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// Gets the operation status for a private endpoint connection. - /// The subscription Id. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// The name of the private endpoint connection. - /// Operation id. - /// The cancellation token to use. - /// , , , or is null. - /// , , , or is an empty string, and was expected to be non-empty. - public Response GetOperationStatus(string subscriptionId, string resourceGroupName, string vaultName, string privateEndpointConnectionName, string operationId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName)); - Argument.AssertNotNullOrEmpty(operationId, nameof(operationId)); - - using var message = CreateGetOperationStatusRequest(subscriptionId, resourceGroupName, vaultName, privateEndpointConnectionName, operationId); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - OperationStatus value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = OperationStatus.DeserializeOperationStatus(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectedItemOperationStatusesRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectedItemOperationStatusesRestOperations.cs deleted file mode 100644 index 0cfe43582542a..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectedItemOperationStatusesRestOperations.cs +++ /dev/null @@ -1,150 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager.RecoveryServicesBackup.Models; - -namespace Azure.ResourceManager.RecoveryServicesBackup -{ - internal partial class ProtectedItemOperationStatusesRestOperations - { - private readonly TelemetryDetails _userAgent; - private readonly HttpPipeline _pipeline; - private readonly Uri _endpoint; - private readonly string _apiVersion; - - /// Initializes a new instance of ProtectedItemOperationStatusesRestOperations. - /// The HTTP pipeline for sending and receiving REST requests and responses. - /// The application id to use for user agent. - /// server parameter. - /// Api Version. - /// or is null. - public ProtectedItemOperationStatusesRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) - { - _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); - _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-01-01"; - _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); - } - - internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, string operationId) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); - uri.AppendPath(vaultName, true); - uri.AppendPath("/backupFabrics/", false); - uri.AppendPath(fabricName, true); - uri.AppendPath("/protectionContainers/", false); - uri.AppendPath(containerName, true); - uri.AppendPath("/protectedItems/", false); - uri.AppendPath(protectedItemName, true); - uri.AppendPath("/operationsStatus/", false); - uri.AppendPath(operationId, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// - /// Fetches the status of an operation such as triggering a backup, restore. The status can be in progress, completed - /// or failed. You can refer to the OperationStatus enum for all the possible states of the operation. Some operations - /// create jobs. This method returns the list of jobs associated with the operation. - /// - /// The subscription Id. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Fabric name associated with the backup item. - /// Container name associated with the backup item. - /// Backup item name whose details are to be fetched. - /// OperationID represents the operation whose status needs to be fetched. - /// The cancellation token to use. - /// , , , , , or is null. - /// , , , , , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, string operationId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - Argument.AssertNotNullOrEmpty(fabricName, nameof(fabricName)); - Argument.AssertNotNullOrEmpty(containerName, nameof(containerName)); - Argument.AssertNotNullOrEmpty(protectedItemName, nameof(protectedItemName)); - Argument.AssertNotNullOrEmpty(operationId, nameof(operationId)); - - using var message = CreateGetRequest(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName, operationId); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - OperationStatus value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = OperationStatus.DeserializeOperationStatus(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// - /// Fetches the status of an operation such as triggering a backup, restore. The status can be in progress, completed - /// or failed. You can refer to the OperationStatus enum for all the possible states of the operation. Some operations - /// create jobs. This method returns the list of jobs associated with the operation. - /// - /// The subscription Id. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Fabric name associated with the backup item. - /// Container name associated with the backup item. - /// Backup item name whose details are to be fetched. - /// OperationID represents the operation whose status needs to be fetched. - /// The cancellation token to use. - /// , , , , , or is null. - /// , , , , , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, string operationId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - Argument.AssertNotNullOrEmpty(fabricName, nameof(fabricName)); - Argument.AssertNotNullOrEmpty(containerName, nameof(containerName)); - Argument.AssertNotNullOrEmpty(protectedItemName, nameof(protectedItemName)); - Argument.AssertNotNullOrEmpty(operationId, nameof(operationId)); - - using var message = CreateGetRequest(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName, operationId); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - OperationStatus value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = OperationStatus.DeserializeOperationStatus(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectedItemsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectedItemsRestOperations.cs index c5440ebe2b413..f402f82a980dd 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectedItemsRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectedItemsRestOperations.cs @@ -80,7 +80,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou /// The cancellation token to use. /// , , , , or is null. /// , , , , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, string filter = null, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, string filter = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -95,13 +95,13 @@ public async Task> GetAsync(string subscript { case 200: { - ProtectedItemResourceData value = default; + BackupProtectedItemData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ProtectedItemResourceData.DeserializeProtectedItemResourceData(document.RootElement); + value = BackupProtectedItemData.DeserializeBackupProtectedItemData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((ProtectedItemResourceData)null, message.Response); + return Response.FromValue((BackupProtectedItemData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -121,7 +121,7 @@ public async Task> GetAsync(string subscript /// The cancellation token to use. /// , , , , or is null. /// , , , , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, string filter = null, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, string filter = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -136,19 +136,19 @@ public Response Get(string subscriptionId, string res { case 200: { - ProtectedItemResourceData value = default; + BackupProtectedItemData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ProtectedItemResourceData.DeserializeProtectedItemResourceData(document.RootElement); + value = BackupProtectedItemData.DeserializeBackupProtectedItemData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((ProtectedItemResourceData)null, message.Response); + return Response.FromValue((BackupProtectedItemData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, ProtectedItemResourceData data) + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, BackupProtectedItemData data) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -192,7 +192,7 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r /// The cancellation token to use. /// , , , , , or is null. /// , , , , or is an empty string, and was expected to be non-empty. - public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, ProtectedItemResourceData data, CancellationToken cancellationToken = default) + public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, BackupProtectedItemData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -208,13 +208,13 @@ public async Task> CreateOrUpdateAsync(strin { case 200: { - ProtectedItemResourceData value = default; + BackupProtectedItemData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ProtectedItemResourceData.DeserializeProtectedItemResourceData(document.RootElement); + value = BackupProtectedItemData.DeserializeBackupProtectedItemData(document.RootElement); return Response.FromValue(value, message.Response); } case 202: - return Response.FromValue((ProtectedItemResourceData)null, message.Response); + return Response.FromValue((BackupProtectedItemData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -234,7 +234,7 @@ public async Task> CreateOrUpdateAsync(strin /// The cancellation token to use. /// , , , , , or is null. /// , , , , or is an empty string, and was expected to be non-empty. - public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, ProtectedItemResourceData data, CancellationToken cancellationToken = default) + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, BackupProtectedItemData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -250,13 +250,13 @@ public Response CreateOrUpdate(string subscriptionId, { case 200: { - ProtectedItemResourceData value = default; + BackupProtectedItemData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ProtectedItemResourceData.DeserializeProtectedItemResourceData(document.RootElement); + value = BackupProtectedItemData.DeserializeBackupProtectedItemData(document.RootElement); return Response.FromValue(value, message.Response); } case 202: - return Response.FromValue((ProtectedItemResourceData)null, message.Response); + return Response.FromValue((BackupProtectedItemData)null, message.Response); default: throw new RequestFailedException(message.Response); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionContainerRefreshOperationResultsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionContainerRefreshOperationResultsRestOperations.cs deleted file mode 100644 index ed406b5db11ca..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionContainerRefreshOperationResultsRestOperations.cs +++ /dev/null @@ -1,120 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; - -namespace Azure.ResourceManager.RecoveryServicesBackup -{ - internal partial class ProtectionContainerRefreshOperationResultsRestOperations - { - private readonly TelemetryDetails _userAgent; - private readonly HttpPipeline _pipeline; - private readonly Uri _endpoint; - private readonly string _apiVersion; - - /// Initializes a new instance of ProtectionContainerRefreshOperationResultsRestOperations. - /// The HTTP pipeline for sending and receiving REST requests and responses. - /// The application id to use for user agent. - /// server parameter. - /// Api Version. - /// or is null. - public ProtectionContainerRefreshOperationResultsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) - { - _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); - _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-01-01"; - _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); - } - - internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string operationId) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); - uri.AppendPath(vaultName, true); - uri.AppendPath("/backupFabrics/", false); - uri.AppendPath(fabricName, true); - uri.AppendPath("/operationResults/", false); - uri.AppendPath(operationId, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// Provides the result of the refresh operation triggered by the BeginRefresh operation. - /// The subscription Id. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Fabric name associated with the container. - /// Operation ID associated with the operation whose result needs to be fetched. - /// The cancellation token to use. - /// , , , or is null. - /// , , , or is an empty string, and was expected to be non-empty. - public async Task GetAsync(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string operationId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - Argument.AssertNotNullOrEmpty(fabricName, nameof(fabricName)); - Argument.AssertNotNullOrEmpty(operationId, nameof(operationId)); - - using var message = CreateGetRequest(subscriptionId, resourceGroupName, vaultName, fabricName, operationId); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 202: - case 204: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - /// Provides the result of the refresh operation triggered by the BeginRefresh operation. - /// The subscription Id. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Fabric name associated with the container. - /// Operation ID associated with the operation whose result needs to be fetched. - /// The cancellation token to use. - /// , , , or is null. - /// , , , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string operationId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - Argument.AssertNotNullOrEmpty(fabricName, nameof(fabricName)); - Argument.AssertNotNullOrEmpty(operationId, nameof(operationId)); - - using var message = CreateGetRequest(subscriptionId, resourceGroupName, vaultName, fabricName, operationId); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 202: - case 204: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionContainersRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionContainersRestOperations.cs index d499e1ada252e..aeaacfdf00553 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionContainersRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionContainersRestOperations.cs @@ -69,7 +69,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -83,13 +83,13 @@ public async Task> GetAsync(string sub { case 200: { - ProtectionContainerResourceData value = default; + BackupProtectionContainerData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ProtectionContainerResourceData.DeserializeProtectionContainerResourceData(document.RootElement); + value = BackupProtectionContainerData.DeserializeBackupProtectionContainerData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((ProtectionContainerResourceData)null, message.Response); + return Response.FromValue((BackupProtectionContainerData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -104,7 +104,7 @@ public async Task> GetAsync(string sub /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -118,19 +118,19 @@ public Response Get(string subscriptionId, stri { case 200: { - ProtectionContainerResourceData value = default; + BackupProtectionContainerData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ProtectionContainerResourceData.DeserializeProtectionContainerResourceData(document.RootElement); + value = BackupProtectionContainerData.DeserializeBackupProtectionContainerData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((ProtectionContainerResourceData)null, message.Response); + return Response.FromValue((BackupProtectionContainerData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - internal HttpMessage CreateRegisterRequest(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, ProtectionContainerResourceData data) + internal HttpMessage CreateRegisterRequest(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, BackupProtectionContainerData data) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -172,7 +172,7 @@ internal HttpMessage CreateRegisterRequest(string subscriptionId, string resourc /// The cancellation token to use. /// , , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public async Task> RegisterAsync(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, ProtectionContainerResourceData data, CancellationToken cancellationToken = default) + public async Task> RegisterAsync(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, BackupProtectionContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -187,13 +187,13 @@ public async Task> RegisterAsync(strin { case 200: { - ProtectionContainerResourceData value = default; + BackupProtectionContainerData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ProtectionContainerResourceData.DeserializeProtectionContainerResourceData(document.RootElement); + value = BackupProtectionContainerData.DeserializeBackupProtectionContainerData(document.RootElement); return Response.FromValue(value, message.Response); } case 202: - return Response.FromValue((ProtectionContainerResourceData)null, message.Response); + return Response.FromValue((BackupProtectionContainerData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -213,7 +213,7 @@ public async Task> RegisterAsync(strin /// The cancellation token to use. /// , , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public Response Register(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, ProtectionContainerResourceData data, CancellationToken cancellationToken = default) + public Response Register(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, BackupProtectionContainerData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -228,13 +228,13 @@ public Response Register(string subscriptionId, { case 200: { - ProtectionContainerResourceData value = default; + BackupProtectionContainerData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ProtectionContainerResourceData.DeserializeProtectionContainerResourceData(document.RootElement); + value = BackupProtectionContainerData.DeserializeBackupProtectionContainerData(document.RootElement); return Response.FromValue(value, message.Response); } case 202: - return Response.FromValue((ProtectionContainerResourceData)null, message.Response); + return Response.FromValue((BackupProtectionContainerData)null, message.Response); default: throw new RequestFailedException(message.Response); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionIntentRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionIntentRestOperations.cs index 4cffe914c056c..0ac42ce45e493 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionIntentRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionIntentRestOperations.cs @@ -37,7 +37,7 @@ public ProtectionIntentRestOperations(HttpPipeline pipeline, string applicationI _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal HttpMessage CreateValidateRequest(string subscriptionId, string azureRegion, PreValidateEnableBackupContent content) + internal HttpMessage CreateValidateRequest(string subscriptionId, AzureLocation location, PreValidateEnableBackupContent content) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -47,7 +47,7 @@ internal HttpMessage CreateValidateRequest(string subscriptionId, string azureRe uri.AppendPath("/Subscriptions/", false); uri.AppendPath(subscriptionId, true); uri.AppendPath("/providers/Microsoft.RecoveryServices/locations/", false); - uri.AppendPath(azureRegion, true); + uri.AppendPath(location, true); uri.AppendPath("/backupPreValidateProtection", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; @@ -67,26 +67,25 @@ internal HttpMessage CreateValidateRequest(string subscriptionId, string azureRe /// 3. Any VM related configuration passed in properties. /// /// The subscription Id. - /// Azure region to hit Api. + /// Azure region to hit Api. /// Enable backup validation request on Virtual Machine. /// The cancellation token to use. - /// , or is null. - /// or is an empty string, and was expected to be non-empty. - public async Task> ValidateAsync(string subscriptionId, string azureRegion, PreValidateEnableBackupContent content, CancellationToken cancellationToken = default) + /// or is null. + /// is an empty string, and was expected to be non-empty. + public async Task> ValidateAsync(string subscriptionId, AzureLocation location, PreValidateEnableBackupContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(azureRegion, nameof(azureRegion)); Argument.AssertNotNull(content, nameof(content)); - using var message = CreateValidateRequest(subscriptionId, azureRegion, content); + using var message = CreateValidateRequest(subscriptionId, location, content); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: { - PreValidateEnableBackupResponse value = default; + PreValidateEnableBackupResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = PreValidateEnableBackupResponse.DeserializePreValidateEnableBackupResponse(document.RootElement); + value = PreValidateEnableBackupResult.DeserializePreValidateEnableBackupResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -101,26 +100,25 @@ public async Task> ValidateAsync(strin /// 3. Any VM related configuration passed in properties. /// /// The subscription Id. - /// Azure region to hit Api. + /// Azure region to hit Api. /// Enable backup validation request on Virtual Machine. /// The cancellation token to use. - /// , or is null. - /// or is an empty string, and was expected to be non-empty. - public Response Validate(string subscriptionId, string azureRegion, PreValidateEnableBackupContent content, CancellationToken cancellationToken = default) + /// or is null. + /// is an empty string, and was expected to be non-empty. + public Response Validate(string subscriptionId, AzureLocation location, PreValidateEnableBackupContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(azureRegion, nameof(azureRegion)); Argument.AssertNotNull(content, nameof(content)); - using var message = CreateValidateRequest(subscriptionId, azureRegion, content); + using var message = CreateValidateRequest(subscriptionId, location, content); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: { - PreValidateEnableBackupResponse value = default; + PreValidateEnableBackupResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = PreValidateEnableBackupResponse.DeserializePreValidateEnableBackupResponse(document.RootElement); + value = PreValidateEnableBackupResult.DeserializePreValidateEnableBackupResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -164,7 +162,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string intentObjectName, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string intentObjectName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -178,13 +176,13 @@ public async Task> GetAsync(string subscr { case 200: { - ProtectionIntentResourceData value = default; + BackupProtectionIntentData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ProtectionIntentResourceData.DeserializeProtectionIntentResourceData(document.RootElement); + value = BackupProtectionIntentData.DeserializeBackupProtectionIntentData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((ProtectionIntentResourceData)null, message.Response); + return Response.FromValue((BackupProtectionIntentData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -202,7 +200,7 @@ public async Task> GetAsync(string subscr /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string intentObjectName, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string intentObjectName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -216,19 +214,19 @@ public Response Get(string subscriptionId, string { case 200: { - ProtectionIntentResourceData value = default; + BackupProtectionIntentData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ProtectionIntentResourceData.DeserializeProtectionIntentResourceData(document.RootElement); + value = BackupProtectionIntentData.DeserializeBackupProtectionIntentData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((ProtectionIntentResourceData)null, message.Response); + return Response.FromValue((BackupProtectionIntentData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string intentObjectName, ProtectionIntentResourceData data) + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string intentObjectName, BackupProtectionIntentData data) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -266,7 +264,7 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r /// The cancellation token to use. /// , , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string intentObjectName, ProtectionIntentResourceData data, CancellationToken cancellationToken = default) + public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string intentObjectName, BackupProtectionIntentData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -281,9 +279,9 @@ public async Task> CreateOrUpdateAsync(st { case 200: { - ProtectionIntentResourceData value = default; + BackupProtectionIntentData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ProtectionIntentResourceData.DeserializeProtectionIntentResourceData(document.RootElement); + value = BackupProtectionIntentData.DeserializeBackupProtectionIntentData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -301,7 +299,7 @@ public async Task> CreateOrUpdateAsync(st /// The cancellation token to use. /// , , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string intentObjectName, ProtectionIntentResourceData data, CancellationToken cancellationToken = default) + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string intentObjectName, BackupProtectionIntentData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -316,9 +314,9 @@ public Response CreateOrUpdate(string subscription { case 200: { - ProtectionIntentResourceData value = default; + BackupProtectionIntentData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ProtectionIntentResourceData.DeserializeProtectionIntentResourceData(document.RootElement); + value = BackupProtectionIntentData.DeserializeBackupProtectionIntentData(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionPoliciesRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionPoliciesRestOperations.cs index 5152d2f0cd45e..53d2cd6a58e0b 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionPoliciesRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionPoliciesRestOperations.cs @@ -69,7 +69,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string vaultName, string policyName, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string vaultName, string policyName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -82,13 +82,13 @@ public async Task> GetAsync(string subscr { case 200: { - ProtectionPolicyResourceData value = default; + BackupProtectionPolicyData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ProtectionPolicyResourceData.DeserializeProtectionPolicyResourceData(document.RootElement); + value = BackupProtectionPolicyData.DeserializeBackupProtectionPolicyData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((ProtectionPolicyResourceData)null, message.Response); + return Response.FromValue((BackupProtectionPolicyData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -105,7 +105,7 @@ public async Task> GetAsync(string subscr /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string vaultName, string policyName, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string vaultName, string policyName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -118,19 +118,19 @@ public Response Get(string subscriptionId, string { case 200: { - ProtectionPolicyResourceData value = default; + BackupProtectionPolicyData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ProtectionPolicyResourceData.DeserializeProtectionPolicyResourceData(document.RootElement); + value = BackupProtectionPolicyData.DeserializeBackupProtectionPolicyData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((ProtectionPolicyResourceData)null, message.Response); + return Response.FromValue((BackupProtectionPolicyData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string vaultName, string policyName, ProtectionPolicyResourceData data) + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string vaultName, string policyName, BackupProtectionPolicyData data) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -168,7 +168,7 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string vaultName, string policyName, ProtectionPolicyResourceData data, CancellationToken cancellationToken = default) + public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string vaultName, string policyName, BackupProtectionPolicyData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -182,13 +182,13 @@ public async Task> CreateOrUpdateAsync(st { case 200: { - ProtectionPolicyResourceData value = default; + BackupProtectionPolicyData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ProtectionPolicyResourceData.DeserializeProtectionPolicyResourceData(document.RootElement); + value = BackupProtectionPolicyData.DeserializeBackupProtectionPolicyData(document.RootElement); return Response.FromValue(value, message.Response); } case 202: - return Response.FromValue((ProtectionPolicyResourceData)null, message.Response); + return Response.FromValue((BackupProtectionPolicyData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -206,7 +206,7 @@ public async Task> CreateOrUpdateAsync(st /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string vaultName, string policyName, ProtectionPolicyResourceData data, CancellationToken cancellationToken = default) + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string vaultName, string policyName, BackupProtectionPolicyData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -220,13 +220,13 @@ public Response CreateOrUpdate(string subscription { case 200: { - ProtectionPolicyResourceData value = default; + BackupProtectionPolicyData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ProtectionPolicyResourceData.DeserializeProtectionPolicyResourceData(document.RootElement); + value = BackupProtectionPolicyData.DeserializeBackupProtectionPolicyData(document.RootElement); return Response.FromValue(value, message.Response); } case 202: - return Response.FromValue((ProtectionPolicyResourceData)null, message.Response); + return Response.FromValue((BackupProtectionPolicyData)null, message.Response); default: throw new RequestFailedException(message.Response); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionPolicyOperationStatusesRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionPolicyOperationStatusesRestOperations.cs deleted file mode 100644 index 642c7b02877d8..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionPolicyOperationStatusesRestOperations.cs +++ /dev/null @@ -1,138 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager.RecoveryServicesBackup.Models; - -namespace Azure.ResourceManager.RecoveryServicesBackup -{ - internal partial class ProtectionPolicyOperationStatusesRestOperations - { - private readonly TelemetryDetails _userAgent; - private readonly HttpPipeline _pipeline; - private readonly Uri _endpoint; - private readonly string _apiVersion; - - /// Initializes a new instance of ProtectionPolicyOperationStatusesRestOperations. - /// The HTTP pipeline for sending and receiving REST requests and responses. - /// The application id to use for user agent. - /// server parameter. - /// Api Version. - /// or is null. - public ProtectionPolicyOperationStatusesRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) - { - _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); - _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-01-01"; - _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); - } - - internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vaultName, string policyName, string operationId) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); - uri.AppendPath(vaultName, true); - uri.AppendPath("/backupPolicies/", false); - uri.AppendPath(policyName, true); - uri.AppendPath("/operations/", false); - uri.AppendPath(operationId, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// - /// Provides the status of the asynchronous operations like backup, restore. The status can be in progress, completed - /// or failed. You can refer to the Operation Status enum for all the possible states of an operation. Some operations - /// create jobs. This method returns the list of jobs associated with operation. - /// - /// The subscription Id. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Backup policy name whose operation's status needs to be fetched. - /// Operation ID which represents an operation whose status needs to be fetched. - /// The cancellation token to use. - /// , , , or is null. - /// , , , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string vaultName, string policyName, string operationId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - Argument.AssertNotNullOrEmpty(policyName, nameof(policyName)); - Argument.AssertNotNullOrEmpty(operationId, nameof(operationId)); - - using var message = CreateGetRequest(subscriptionId, resourceGroupName, vaultName, policyName, operationId); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - OperationStatus value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = OperationStatus.DeserializeOperationStatus(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// - /// Provides the status of the asynchronous operations like backup, restore. The status can be in progress, completed - /// or failed. You can refer to the Operation Status enum for all the possible states of an operation. Some operations - /// create jobs. This method returns the list of jobs associated with operation. - /// - /// The subscription Id. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// Backup policy name whose operation's status needs to be fetched. - /// Operation ID which represents an operation whose status needs to be fetched. - /// The cancellation token to use. - /// , , , or is null. - /// , , , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string vaultName, string policyName, string operationId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - Argument.AssertNotNullOrEmpty(policyName, nameof(policyName)); - Argument.AssertNotNullOrEmpty(operationId, nameof(operationId)); - - using var message = CreateGetRequest(subscriptionId, resourceGroupName, vaultName, policyName, operationId); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - OperationStatus value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = OperationStatus.DeserializeOperationStatus(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RecoveryPointsRecommendedForMoveRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RecoveryPointsRecommendedForMoveRestOperations.cs index 91cf1c4781f4a..ad83c71a4337b 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RecoveryPointsRecommendedForMoveRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RecoveryPointsRecommendedForMoveRestOperations.cs @@ -37,7 +37,7 @@ public RecoveryPointsRecommendedForMoveRestOperations(HttpPipeline pipeline, str _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, ListRecoveryPointsRecommendedForMoveContent content) + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, RecoveryPointsRecommendedForMoveContent content) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -79,7 +79,7 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro /// The cancellation token to use. /// , , , , , or is null. /// , , , , or is an empty string, and was expected to be non-empty. - public async Task> ListAsync(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, ListRecoveryPointsRecommendedForMoveContent content, CancellationToken cancellationToken = default) + public async Task> ListAsync(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, RecoveryPointsRecommendedForMoveContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -116,7 +116,7 @@ public async Task> ListAsync(string subscrip /// The cancellation token to use. /// , , , , , or is null. /// , , , , or is an empty string, and was expected to be non-empty. - public Response List(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, ListRecoveryPointsRecommendedForMoveContent content, CancellationToken cancellationToken = default) + public Response List(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, RecoveryPointsRecommendedForMoveContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -142,7 +142,7 @@ public Response List(string subscriptionId, string re } } - internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, ListRecoveryPointsRecommendedForMoveContent content) + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, RecoveryPointsRecommendedForMoveContent content) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -168,7 +168,7 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string subscript /// The cancellation token to use. /// , , , , , , or is null. /// , , , , or is an empty string, and was expected to be non-empty. - public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, ListRecoveryPointsRecommendedForMoveContent content, CancellationToken cancellationToken = default) + public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, RecoveryPointsRecommendedForMoveContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -207,7 +207,7 @@ public async Task> ListNextPageAsync(string /// The cancellation token to use. /// , , , , , , or is null. /// , , , , or is an empty string, and was expected to be non-empty. - public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, ListRecoveryPointsRecommendedForMoveContent content, CancellationToken cancellationToken = default) + public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, RecoveryPointsRecommendedForMoveContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RecoveryPointsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RecoveryPointsRestOperations.cs index f70cfd5f0cff5..7f8e2fc519a66 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RecoveryPointsRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RecoveryPointsRestOperations.cs @@ -182,7 +182,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou /// The cancellation token to use. /// , , , , , or is null. /// , , , , , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, string recoveryPointId, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, string recoveryPointId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -198,13 +198,13 @@ public async Task> GetAsync(string subscript { case 200: { - RecoveryPointResourceData value = default; + BackupRecoveryPointData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = RecoveryPointResourceData.DeserializeRecoveryPointResourceData(document.RootElement); + value = BackupRecoveryPointData.DeserializeBackupRecoveryPointData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((RecoveryPointResourceData)null, message.Response); + return Response.FromValue((BackupRecoveryPointData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -224,7 +224,7 @@ public async Task> GetAsync(string subscript /// The cancellation token to use. /// , , , , , or is null. /// , , , , , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, string recoveryPointId, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, string recoveryPointId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -240,13 +240,13 @@ public Response Get(string subscriptionId, string res { case 200: { - RecoveryPointResourceData value = default; + BackupRecoveryPointData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = RecoveryPointResourceData.DeserializeRecoveryPointResourceData(document.RootElement); + value = BackupRecoveryPointData.DeserializeBackupRecoveryPointData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((RecoveryPointResourceData)null, message.Response); + return Response.FromValue((BackupRecoveryPointData)null, message.Response); default: throw new RequestFailedException(message.Response); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RecoveryServicesBackupRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RecoveryServicesBackupRestOperations.cs index 6d75bcb45dc0a..395ce31a34ec8 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RecoveryServicesBackupRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RecoveryServicesBackupRestOperations.cs @@ -6,7 +6,6 @@ #nullable disable using System; -using System.Text.Json; using System.Threading; using System.Threading.Tasks; using Azure; @@ -37,90 +36,6 @@ public RecoveryServicesBackupRestOperations(HttpPipeline pipeline, string applic _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal HttpMessage CreateGetOperationStatusRequest(string subscriptionId, string resourceGroupName, string vaultName, string operationId) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); - uri.AppendPath(vaultName, true); - uri.AppendPath("/backupstorageconfig/vaultstorageconfig/operationStatus/", false); - uri.AppendPath(operationId, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// Fetches operation status for data move operation on vault. - /// The subscription Id. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// The String to use. - /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public async Task> GetOperationStatusAsync(string subscriptionId, string resourceGroupName, string vaultName, string operationId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - Argument.AssertNotNullOrEmpty(operationId, nameof(operationId)); - - using var message = CreateGetOperationStatusRequest(subscriptionId, resourceGroupName, vaultName, operationId); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - OperationStatus value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = OperationStatus.DeserializeOperationStatus(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// Fetches operation status for data move operation on vault. - /// The subscription Id. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// The String to use. - /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response GetOperationStatus(string subscriptionId, string resourceGroupName, string vaultName, string operationId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - Argument.AssertNotNullOrEmpty(operationId, nameof(operationId)); - - using var message = CreateGetOperationStatusRequest(subscriptionId, resourceGroupName, vaultName, operationId); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - OperationStatus value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = OperationStatus.DeserializeOperationStatus(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - internal HttpMessage CreateBMSPrepareDataMoveRequest(string subscriptionId, string resourceGroupName, string vaultName, PrepareDataMoveContent content) { var message = _pipeline.CreateMessage(); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ResourceGuardProxiesRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ResourceGuardProxiesRestOperations.cs deleted file mode 100644 index b4dc0616a0cc2..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ResourceGuardProxiesRestOperations.cs +++ /dev/null @@ -1,195 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager.RecoveryServicesBackup.Models; - -namespace Azure.ResourceManager.RecoveryServicesBackup -{ - internal partial class ResourceGuardProxiesRestOperations - { - private readonly TelemetryDetails _userAgent; - private readonly HttpPipeline _pipeline; - private readonly Uri _endpoint; - private readonly string _apiVersion; - - /// Initializes a new instance of ResourceGuardProxiesRestOperations. - /// The HTTP pipeline for sending and receiving REST requests and responses. - /// The application id to use for user agent. - /// server parameter. - /// Api Version. - /// or is null. - public ResourceGuardProxiesRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) - { - _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); - _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-01-01"; - _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); - } - - internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vaultName) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); - uri.AppendPath(vaultName, true); - uri.AppendPath("/backupResourceGuardProxies", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// List the ResourceGuardProxies under vault. - /// The subscription Id. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string vaultName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - - using var message = CreateGetRequest(subscriptionId, resourceGroupName, vaultName); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - ResourceGuardProxyBaseResourceList value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ResourceGuardProxyBaseResourceList.DeserializeResourceGuardProxyBaseResourceList(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// List the ResourceGuardProxies under vault. - /// The subscription Id. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string vaultName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - - using var message = CreateGetRequest(subscriptionId, resourceGroupName, vaultName); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - ResourceGuardProxyBaseResourceList value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ResourceGuardProxyBaseResourceList.DeserializeResourceGuardProxyBaseResourceList(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - internal HttpMessage CreateGetNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string vaultName) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRawNextLink(nextLink, false); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// List the ResourceGuardProxies under vault. - /// The URL to the next page of results. - /// The subscription Id. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// The cancellation token to use. - /// , , or is null. - /// , or is an empty string, and was expected to be non-empty. - public async Task> GetNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string vaultName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(nextLink, nameof(nextLink)); - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - - using var message = CreateGetNextPageRequest(nextLink, subscriptionId, resourceGroupName, vaultName); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - ResourceGuardProxyBaseResourceList value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ResourceGuardProxyBaseResourceList.DeserializeResourceGuardProxyBaseResourceList(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// List the ResourceGuardProxies under vault. - /// The URL to the next page of results. - /// The subscription Id. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// The cancellation token to use. - /// , , or is null. - /// , or is an empty string, and was expected to be non-empty. - public Response GetNextPage(string nextLink, string subscriptionId, string resourceGroupName, string vaultName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(nextLink, nameof(nextLink)); - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - - using var message = CreateGetNextPageRequest(nextLink, subscriptionId, resourceGroupName, vaultName); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - ResourceGuardProxyBaseResourceList value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ResourceGuardProxyBaseResourceList.DeserializeResourceGuardProxyBaseResourceList(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ResourceGuardProxyRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ResourceGuardProxyRestOperations.cs index b21b44de761a4..c28461738afaa 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ResourceGuardProxyRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ResourceGuardProxyRestOperations.cs @@ -37,6 +37,85 @@ public ResourceGuardProxyRestOperations(HttpPipeline pipeline, string applicatio _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string vaultName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/backupResourceGuardProxies", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List the ResourceGuardProxies under vault. + /// The subscription Id. + /// The name of the resource group where the recovery services vault is present. + /// The name of the recovery services vault. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListAsync(string subscriptionId, string resourceGroupName, string vaultName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, vaultName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ResourceGuardProxyBaseResourceList value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = ResourceGuardProxyBaseResourceList.DeserializeResourceGuardProxyBaseResourceList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List the ResourceGuardProxies under vault. + /// The subscription Id. + /// The name of the resource group where the recovery services vault is present. + /// The name of the recovery services vault. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response List(string subscriptionId, string resourceGroupName, string vaultName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, vaultName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ResourceGuardProxyBaseResourceList value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = ResourceGuardProxyBaseResourceList.DeserializeResourceGuardProxyBaseResourceList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vaultName, string resourceGuardProxyName) { var message = _pipeline.CreateMessage(); @@ -67,7 +146,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string vaultName, string resourceGuardProxyName, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string vaultName, string resourceGuardProxyName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -80,13 +159,13 @@ public async Task> GetAsync(string { case 200: { - ResourceGuardProxyBaseResourceData value = default; + ResourceGuardProxyData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ResourceGuardProxyBaseResourceData.DeserializeResourceGuardProxyBaseResourceData(document.RootElement); + value = ResourceGuardProxyData.DeserializeResourceGuardProxyData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((ResourceGuardProxyBaseResourceData)null, message.Response); + return Response.FromValue((ResourceGuardProxyData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -100,7 +179,7 @@ public async Task> GetAsync(string /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string vaultName, string resourceGuardProxyName, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string vaultName, string resourceGuardProxyName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -113,19 +192,19 @@ public Response Get(string subscriptionId, s { case 200: { - ResourceGuardProxyBaseResourceData value = default; + ResourceGuardProxyData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ResourceGuardProxyBaseResourceData.DeserializeResourceGuardProxyBaseResourceData(document.RootElement); + value = ResourceGuardProxyData.DeserializeResourceGuardProxyData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((ResourceGuardProxyBaseResourceData)null, message.Response); + return Response.FromValue((ResourceGuardProxyData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - internal HttpMessage CreatePutRequest(string subscriptionId, string resourceGroupName, string vaultName, string resourceGuardProxyName, ResourceGuardProxyBaseResourceData data) + internal HttpMessage CreatePutRequest(string subscriptionId, string resourceGroupName, string vaultName, string resourceGuardProxyName, ResourceGuardProxyData data) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -163,7 +242,7 @@ internal HttpMessage CreatePutRequest(string subscriptionId, string resourceGrou /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> PutAsync(string subscriptionId, string resourceGroupName, string vaultName, string resourceGuardProxyName, ResourceGuardProxyBaseResourceData data, CancellationToken cancellationToken = default) + public async Task> PutAsync(string subscriptionId, string resourceGroupName, string vaultName, string resourceGuardProxyName, ResourceGuardProxyData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -177,9 +256,9 @@ public async Task> PutAsync(string { case 200: { - ResourceGuardProxyBaseResourceData value = default; + ResourceGuardProxyData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ResourceGuardProxyBaseResourceData.DeserializeResourceGuardProxyBaseResourceData(document.RootElement); + value = ResourceGuardProxyData.DeserializeResourceGuardProxyData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -199,7 +278,7 @@ public async Task> PutAsync(string /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response Put(string subscriptionId, string resourceGroupName, string vaultName, string resourceGuardProxyName, ResourceGuardProxyBaseResourceData data, CancellationToken cancellationToken = default) + public Response Put(string subscriptionId, string resourceGroupName, string vaultName, string resourceGuardProxyName, ResourceGuardProxyData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -213,9 +292,9 @@ public Response Put(string subscriptionId, s { case 200: { - ResourceGuardProxyBaseResourceData value = default; + ResourceGuardProxyData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ResourceGuardProxyBaseResourceData.DeserializeResourceGuardProxyBaseResourceData(document.RootElement); + value = ResourceGuardProxyData.DeserializeResourceGuardProxyData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -335,7 +414,7 @@ internal HttpMessage CreateUnlockDeleteRequest(string subscriptionId, string res /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> UnlockDeleteAsync(string subscriptionId, string resourceGroupName, string vaultName, string resourceGuardProxyName, UnlockDeleteContent content, CancellationToken cancellationToken = default) + public async Task> UnlockDeleteAsync(string subscriptionId, string resourceGroupName, string vaultName, string resourceGuardProxyName, UnlockDeleteContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -349,9 +428,9 @@ public async Task> UnlockDeleteAsync(string subsc { case 200: { - UnlockDeleteResponse value = default; + UnlockDeleteResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = UnlockDeleteResponse.DeserializeUnlockDeleteResponse(document.RootElement); + value = UnlockDeleteResult.DeserializeUnlockDeleteResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -368,7 +447,7 @@ public async Task> UnlockDeleteAsync(string subsc /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response UnlockDelete(string subscriptionId, string resourceGroupName, string vaultName, string resourceGuardProxyName, UnlockDeleteContent content, CancellationToken cancellationToken = default) + public Response UnlockDelete(string subscriptionId, string resourceGroupName, string vaultName, string resourceGuardProxyName, UnlockDeleteContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -382,9 +461,85 @@ public Response UnlockDelete(string subscriptionId, string { case 200: { - UnlockDeleteResponse value = default; + UnlockDeleteResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = UnlockDeleteResult.DeserializeUnlockDeleteResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string vaultName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List the ResourceGuardProxies under vault. + /// The URL to the next page of results. + /// The subscription Id. + /// The name of the resource group where the recovery services vault is present. + /// The name of the recovery services vault. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string vaultName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, vaultName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ResourceGuardProxyBaseResourceList value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = ResourceGuardProxyBaseResourceList.DeserializeResourceGuardProxyBaseResourceList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List the ResourceGuardProxies under vault. + /// The URL to the next page of results. + /// The subscription Id. + /// The name of the resource group where the recovery services vault is present. + /// The name of the recovery services vault. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string vaultName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, vaultName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ResourceGuardProxyBaseResourceList value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = UnlockDeleteResponse.DeserializeUnlockDeleteResponse(document.RootElement); + value = ResourceGuardProxyBaseResourceList.DeserializeResourceGuardProxyBaseResourceList(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RestoresRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RestoresRestOperations.cs index 6cd8caf39e190..8759be1e3f989 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RestoresRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RestoresRestOperations.cs @@ -36,7 +36,7 @@ public RestoresRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal HttpMessage CreateTriggerRequest(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, string recoveryPointId, RestoreRequestResource restoreRequestResource) + internal HttpMessage CreateTriggerRequest(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, string recoveryPointId, TriggerRestoreContent content) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -62,9 +62,9 @@ internal HttpMessage CreateTriggerRequest(string subscriptionId, string resource request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(restoreRequestResource); - request.Content = content; + var content0 = new Utf8JsonRequestContent(); + content0.JsonWriter.WriteObjectValue(content); + request.Content = content0; _userAgent.Apply(message); return message; } @@ -80,11 +80,11 @@ internal HttpMessage CreateTriggerRequest(string subscriptionId, string resource /// Container name associated with the backed up items. /// Backed up item to be restored. /// Recovery point ID which represents the backed up data to be restored. - /// resource restore request. + /// resource restore request. /// The cancellation token to use. - /// , , , , , , or is null. + /// , , , , , , or is null. /// , , , , , or is an empty string, and was expected to be non-empty. - public async Task TriggerAsync(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, string recoveryPointId, RestoreRequestResource restoreRequestResource, CancellationToken cancellationToken = default) + public async Task TriggerAsync(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, string recoveryPointId, TriggerRestoreContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -93,9 +93,9 @@ public async Task TriggerAsync(string subscriptionId, string resourceG Argument.AssertNotNullOrEmpty(containerName, nameof(containerName)); Argument.AssertNotNullOrEmpty(protectedItemName, nameof(protectedItemName)); Argument.AssertNotNullOrEmpty(recoveryPointId, nameof(recoveryPointId)); - Argument.AssertNotNull(restoreRequestResource, nameof(restoreRequestResource)); + Argument.AssertNotNull(content, nameof(content)); - using var message = CreateTriggerRequest(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName, recoveryPointId, restoreRequestResource); + using var message = CreateTriggerRequest(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName, recoveryPointId, content); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -117,11 +117,11 @@ public async Task TriggerAsync(string subscriptionId, string resourceG /// Container name associated with the backed up items. /// Backed up item to be restored. /// Recovery point ID which represents the backed up data to be restored. - /// resource restore request. + /// resource restore request. /// The cancellation token to use. - /// , , , , , , or is null. + /// , , , , , , or is null. /// , , , , , or is an empty string, and was expected to be non-empty. - public Response Trigger(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, string recoveryPointId, RestoreRequestResource restoreRequestResource, CancellationToken cancellationToken = default) + public Response Trigger(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, string recoveryPointId, TriggerRestoreContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -130,9 +130,9 @@ public Response Trigger(string subscriptionId, string resourceGroupName, string Argument.AssertNotNullOrEmpty(containerName, nameof(containerName)); Argument.AssertNotNullOrEmpty(protectedItemName, nameof(protectedItemName)); Argument.AssertNotNullOrEmpty(recoveryPointId, nameof(recoveryPointId)); - Argument.AssertNotNull(restoreRequestResource, nameof(restoreRequestResource)); + Argument.AssertNotNull(content, nameof(content)); - using var message = CreateTriggerRequest(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName, recoveryPointId, restoreRequestResource); + using var message = CreateTriggerRequest(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName, recoveryPointId, content); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/SecurityPINsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/SecurityPINsRestOperations.cs index 0bb84743880ad..c360725ae3cec 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/SecurityPINsRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/SecurityPINsRestOperations.cs @@ -37,7 +37,7 @@ public SecurityPINsRestOperations(HttpPipeline pipeline, string applicationId, U _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vaultName, SecurityPinBase securityPinBase) + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vaultName, SecurityPinContent content) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -54,12 +54,12 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); - if (securityPinBase != null) + if (content != null) { request.Headers.Add("Content-Type", "application/json"); - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(securityPinBase); - request.Content = content; + var content0 = new Utf8JsonRequestContent(); + content0.JsonWriter.WriteObjectValue(content); + request.Content = content0; } _userAgent.Apply(message); return message; @@ -69,17 +69,17 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou /// The subscription Id. /// The name of the resource group where the recovery services vault is present. /// The name of the recovery services vault. - /// security pin request. + /// security pin request. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string vaultName, SecurityPinBase securityPinBase = null, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string vaultName, SecurityPinContent content = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - using var message = CreateGetRequest(subscriptionId, resourceGroupName, vaultName, securityPinBase); + using var message = CreateGetRequest(subscriptionId, resourceGroupName, vaultName, content); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -99,17 +99,17 @@ public async Task> GetAsync(string subscriptionId, st /// The subscription Id. /// The name of the resource group where the recovery services vault is present. /// The name of the recovery services vault. - /// security pin request. + /// security pin request. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string vaultName, SecurityPinBase securityPinBase = null, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string vaultName, SecurityPinContent content = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - using var message = CreateGetRequest(subscriptionId, resourceGroupName, vaultName, securityPinBase); + using var message = CreateGetRequest(subscriptionId, resourceGroupName, vaultName, content); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ValidateOperationRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ValidateOperationRestOperations.cs deleted file mode 100644 index 195db36efb05c..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ValidateOperationRestOperations.cs +++ /dev/null @@ -1,116 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager.RecoveryServicesBackup.Models; - -namespace Azure.ResourceManager.RecoveryServicesBackup -{ - internal partial class ValidateOperationRestOperations - { - private readonly TelemetryDetails _userAgent; - private readonly HttpPipeline _pipeline; - private readonly Uri _endpoint; - private readonly string _apiVersion; - - /// Initializes a new instance of ValidateOperationRestOperations. - /// The HTTP pipeline for sending and receiving REST requests and responses. - /// The application id to use for user agent. - /// server parameter. - /// Api Version. - /// or is null. - public ValidateOperationRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) - { - _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); - _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-01-01"; - _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); - } - - internal HttpMessage CreateTriggerRequest(string subscriptionId, string resourceGroupName, string vaultName, ValidateOperationRequest validateOperationRequest) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Post; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); - uri.AppendPath(vaultName, true); - uri.AppendPath("/backupTriggerValidateOperation", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(validateOperationRequest); - request.Content = content; - _userAgent.Apply(message); - return message; - } - - /// Validate operation for specified backed up item in the form of an asynchronous operation. Returns tracking headers which can be tracked using GetValidateOperationResult API. - /// The subscription Id. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// resource validate operation request. - /// The cancellation token to use. - /// , , or is null. - /// , or is an empty string, and was expected to be non-empty. - public async Task TriggerAsync(string subscriptionId, string resourceGroupName, string vaultName, ValidateOperationRequest validateOperationRequest, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - Argument.AssertNotNull(validateOperationRequest, nameof(validateOperationRequest)); - - using var message = CreateTriggerRequest(subscriptionId, resourceGroupName, vaultName, validateOperationRequest); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 202: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - /// Validate operation for specified backed up item in the form of an asynchronous operation. Returns tracking headers which can be tracked using GetValidateOperationResult API. - /// The subscription Id. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// resource validate operation request. - /// The cancellation token to use. - /// , , or is null. - /// , or is an empty string, and was expected to be non-empty. - public Response Trigger(string subscriptionId, string resourceGroupName, string vaultName, ValidateOperationRequest validateOperationRequest, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - Argument.AssertNotNull(validateOperationRequest, nameof(validateOperationRequest)); - - using var message = CreateTriggerRequest(subscriptionId, resourceGroupName, vaultName, validateOperationRequest); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 202: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ValidateOperationResultsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ValidateOperationResultsRestOperations.cs deleted file mode 100644 index dc35b95403817..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ValidateOperationResultsRestOperations.cs +++ /dev/null @@ -1,128 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager.RecoveryServicesBackup.Models; - -namespace Azure.ResourceManager.RecoveryServicesBackup -{ - internal partial class ValidateOperationResultsRestOperations - { - private readonly TelemetryDetails _userAgent; - private readonly HttpPipeline _pipeline; - private readonly Uri _endpoint; - private readonly string _apiVersion; - - /// Initializes a new instance of ValidateOperationResultsRestOperations. - /// The HTTP pipeline for sending and receiving REST requests and responses. - /// The application id to use for user agent. - /// server parameter. - /// Api Version. - /// or is null. - public ValidateOperationResultsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) - { - _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); - _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-01-01"; - _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); - } - - internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vaultName, string operationId) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); - uri.AppendPath(vaultName, true); - uri.AppendPath("/backupValidateOperationResults/", false); - uri.AppendPath(operationId, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// Fetches the result of a triggered validate operation. - /// The subscription Id. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// OperationID which represents the operation whose result needs to be fetched. - /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string vaultName, string operationId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - Argument.AssertNotNullOrEmpty(operationId, nameof(operationId)); - - using var message = CreateGetRequest(subscriptionId, resourceGroupName, vaultName, operationId); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - ValidateOperationsResponse value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ValidateOperationsResponse.DeserializeValidateOperationsResponse(document.RootElement); - return Response.FromValue(value, message.Response); - } - case 202: - return Response.FromValue((ValidateOperationsResponse)null, message.Response); - default: - throw new RequestFailedException(message.Response); - } - } - - /// Fetches the result of a triggered validate operation. - /// The subscription Id. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// OperationID which represents the operation whose result needs to be fetched. - /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string vaultName, string operationId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - Argument.AssertNotNullOrEmpty(operationId, nameof(operationId)); - - using var message = CreateGetRequest(subscriptionId, resourceGroupName, vaultName, operationId); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - ValidateOperationsResponse value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ValidateOperationsResponse.DeserializeValidateOperationsResponse(document.RootElement); - return Response.FromValue(value, message.Response); - } - case 202: - return Response.FromValue((ValidateOperationsResponse)null, message.Response); - default: - throw new RequestFailedException(message.Response); - } - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ValidateOperationStatusesRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ValidateOperationStatusesRestOperations.cs deleted file mode 100644 index 57db99d2985ff..0000000000000 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ValidateOperationStatusesRestOperations.cs +++ /dev/null @@ -1,132 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager.RecoveryServicesBackup.Models; - -namespace Azure.ResourceManager.RecoveryServicesBackup -{ - internal partial class ValidateOperationStatusesRestOperations - { - private readonly TelemetryDetails _userAgent; - private readonly HttpPipeline _pipeline; - private readonly Uri _endpoint; - private readonly string _apiVersion; - - /// Initializes a new instance of ValidateOperationStatusesRestOperations. - /// The HTTP pipeline for sending and receiving REST requests and responses. - /// The application id to use for user agent. - /// server parameter. - /// Api Version. - /// or is null. - public ValidateOperationStatusesRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) - { - _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); - _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-01-01"; - _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); - } - - internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vaultName, string operationId) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/Microsoft.RecoveryServices/vaults/", false); - uri.AppendPath(vaultName, true); - uri.AppendPath("/backupValidateOperationsStatuses/", false); - uri.AppendPath(operationId, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// - /// Fetches the status of a triggered validate operation. The status can be in progress, completed - /// or failed. You can refer to the OperationStatus enum for all the possible states of the operation. - /// If operation has completed, this method returns the list of errors obtained while validating the operation. - /// - /// The subscription Id. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// OperationID represents the operation whose status needs to be fetched. - /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string vaultName, string operationId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - Argument.AssertNotNullOrEmpty(operationId, nameof(operationId)); - - using var message = CreateGetRequest(subscriptionId, resourceGroupName, vaultName, operationId); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - OperationStatus value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = OperationStatus.DeserializeOperationStatus(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// - /// Fetches the status of a triggered validate operation. The status can be in progress, completed - /// or failed. You can refer to the OperationStatus enum for all the possible states of the operation. - /// If operation has completed, this method returns the list of errors obtained while validating the operation. - /// - /// The subscription Id. - /// The name of the resource group where the recovery services vault is present. - /// The name of the recovery services vault. - /// OperationID represents the operation whose status needs to be fetched. - /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string vaultName, string operationId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - Argument.AssertNotNullOrEmpty(operationId, nameof(operationId)); - - using var message = CreateGetRequest(subscriptionId, resourceGroupName, vaultName, operationId); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - OperationStatus value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = OperationStatus.DeserializeOperationStatus(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - } -} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/autorest.md b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/autorest.md index 8931c745968f2..fc7f3017c97c5 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/autorest.md +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/autorest.md @@ -9,7 +9,7 @@ generate-model-factory: false csharp: true library-name: RecoveryServicesBackup namespace: Azure.ResourceManager.RecoveryServicesBackup -# default tag is a preview version +# tag: package-2023-01 require: https://github.com/Azure/azure-rest-api-specs/blob/2d9846d81852452cf10270b18329ac382a881bf7/specification/recoveryservicesbackup/resource-manager/readme.md output-folder: $(this-folder)/Generated clear-output-folder: true @@ -17,6 +17,273 @@ skip-csproj: true modelerfour: flatten-payloads: false +rename-mapping: + Job: BackupGenericJob + JobResource: BackupJob + JobResourceList: BackupJobListResult + BackupEngineBase: BackupGenericEngine + BackupEngineBaseResource: BackupEngine + BackupResourceConfig: BackupResourceConfigProperties + BackupResourceConfigResource: BackupResourceConfig + BackupResourceEncryptionConfigExtended: BackupResourceEncryptionConfigExtendedProperties + BackupResourceEncryptionConfigExtendedResource: BackupResourceEncryptionConfigExtended + BackupResourceVaultConfig: BackupResourceVaultConfigProperties + BackupResourceVaultConfigResource: BackupResourceVaultConfig + PrivateEndpointConnection: BackupPrivateEndpointConnectionProperties + PrivateEndpointConnectionResource: BackupPrivateEndpointConnection + ProtectedItem: BackupGenericProtectedItem + ProtectedItemResource: BackupProtectedItem + ProtectionContainer: BackupGenericProtectionContainer + ProtectionContainerResource: BackupProtectionContainer + ProtectionIntent: BackupGenericProtectionIntent + ProtectionIntentResource: BackupProtectionIntent + ProtectionPolicy: BackupGenericProtectionPolicy + ProtectionPolicyResource: BackupProtectionPolicy + RecoveryPoint: BackupGenericRecoveryPoint + RecoveryPointResource: BackupRecoveryPoint + ResourceGuardProxyBase: ResourceGuardProxyProperties + ResourceGuardProxyBaseResource: ResourceGuardProxy + AzureBackupGoalFeatureSupportRequest: BackupGoalFeatureSupportContent + AzureBackupServerContainer: BackupServerContainer + AzureBackupServerEngine: BackupServerEngine + AzureFileShareBackupRequest: FileShareBackupContent + AzureFileShareProtectableItem: FileShareProtectableItem + AzureFileshareProtectedItem: FileshareProtectedItem + AzureFileshareProtectedItemExtendedInfo: FileshareProtectedItemExtendedInfo + AzureFileShareProtectionPolicy: FileShareProtectionPolicy + AzureFileShareProvisionILRRequest: FileShareProvisionIlrContent + AzureFileShareRecoveryPoint: FileShareRecoveryPoint + AzureFileShareRestoreRequest: FileShareRestoreContent + AzureFileShareType: BackupFileShareType + AzureIaaSClassicComputeVMContainer: IaasClassicComputeVmContainer + AzureIaaSClassicComputeVMProtectableItem: IaasClassicComputeVmProtectableItem + AzureIaaSClassicComputeVMProtectedItem: IaasClassicComputeVmProtectedItem + AzureIaaSComputeVMContainer: IaasComputeVmContainer + AzureIaaSComputeVMProtectableItem: IaasComputeVmProtectableItem + AzureIaaSComputeVMProtectedItem: IaasComputeVmProtectedItem + AzureIaaSVMErrorInfo: IaasVmErrorInfo + AzureIaaSVMHealthDetails: IaasVmHealthDetails + AzureIaaSVMJob: IaasVmBackupJob + AzureIaaSVMJobExtendedInfo: IaasVmBackupJobExtendedInfo + AzureIaaSVMJobTaskDetails: IaasVmBackupJobTaskDetails + AzureIaaSVMJobV2: IaasVmBackupJobV2 + AzureIaaSVMProtectedItem: IaasVmProtectedItem + AzureIaaSVMProtectedItemExtendedInfo: IaasVmProtectedItemExtendedInfo + AzureIaaSVMProtectionPolicy: IaasVmProtectionPolicy + AzureRecoveryServiceVaultProtectionIntent: RecoveryServiceVaultProtectionIntent + AzureResourceProtectionIntent: ResourceProtectionIntent + AzureSqlagWorkloadContainerProtectionContainer: SqlAvailabilityGroupWorkloadProtectionContainer + AzureSqlContainer: SqlContainer + AzureSqlProtectedItem: SqlProtectedItem + AzureSqlProtectedItemExtendedInfo: SqlProtectedItemExtendedInfo + AzureSqlProtectionPolicy: SqlProtectionPolicy + AzureStorageContainer: StorageContainer + AzureStorageErrorInfo: StorageErrorInfo + AzureStorageJob: StorageBackupJob + AzureStorageJobExtendedInfo: StorageBackupJobExtendedInfo + AzureStorageJobTaskDetails: StorageBackupJobTaskDetails + AzureStorageProtectableContainer: StorageProtectableContainer + AzureVMAppContainerProtectableContainer: VmAppContainerProtectableContainer + AzureVMAppContainerProtectionContainer: VmAppContainerProtectionContainer + AzureVMResourceFeatureSupportRequest: VmResourceFeatureSupportContent + AzureVMResourceFeatureSupportResponse: VmResourceFeatureSupportResult + AzureVmWorkloadItem: VmWorkloadItem + AzureVmWorkloadProtectableItem: VmWorkloadProtectableItem + AzureVmWorkloadProtectedItem: VmWorkloadProtectedItem + AzureVmWorkloadProtectedItemExtendedInfo: VmWorkloadProtectedItemExtendedInfo + AzureVmWorkloadProtectionPolicy: VmWorkloadProtectionPolicy + AzureVmWorkloadSAPAseDatabaseProtectedItem: VmWorkloadSapAseDatabaseProtectedItem + AzureVmWorkloadSAPAseDatabaseWorkloadItem: VmWorkloadSapAseDatabaseWorkloadItem + AzureVmWorkloadSAPAseSystemProtectableItem: VmWorkloadSapAseSystemProtectableItem + AzureVmWorkloadSAPAseSystemWorkloadItem: VmWorkloadSapAseSystemWorkloadItem + AzureVmWorkloadSAPHanaDatabaseProtectableItem: VmWorkloadSapHanaDatabaseProtectableItem + AzureVmWorkloadSAPHanaDatabaseProtectedItem: VmWorkloadSapHanaDatabaseProtectedItem + AzureVmWorkloadSAPHanaDatabaseWorkloadItem: VmWorkloadSapHanaDatabaseWorkloadItem + AzureVmWorkloadSAPHanaDBInstance: VmWorkloadSapHanaDBInstance + AzureVmWorkloadSAPHanaDBInstanceProtectedItem: VmWorkloadSapHanaDBInstanceProtectedItem + AzureVmWorkloadSAPHanaHSR: VmWorkloadSapHanaHsr + AzureVmWorkloadSAPHanaSystemProtectableItem: VmWorkloadSapHanaSystemProtectableItem + AzureVmWorkloadSAPHanaSystemWorkloadItem: VmWorkloadSapHanaSystemWorkloadItem + AzureVmWorkloadSQLAvailabilityGroupProtectableItem: VmWorkloadSqlAvailabilityGroupProtectableItem + AzureVmWorkloadSQLDatabaseProtectableItem: VmWorkloadSqlDatabaseProtectableItem + AzureVmWorkloadSQLDatabaseProtectedItem: VmWorkloadSqlDatabaseProtectedItem + AzureVmWorkloadSQLDatabaseWorkloadItem: VmWorkloadSqlDatabaseWorkloadItem + AzureVmWorkloadSQLInstanceProtectableItem: VmWorkloadSqlInstanceProtectableItem + AzureVmWorkloadSQLInstanceWorkloadItem: VmWorkloadSqlInstanceWorkloadItem + AzureWorkloadAutoProtectionIntent: WorkloadAutoProtectionIntent + AzureWorkloadBackupRequest: WorkloadBackupContent + AzureWorkloadContainer: WorkloadContainer + AzureWorkloadContainerAutoProtectionIntent: WorkloadContainerAutoProtectionIntent + AzureWorkloadContainerExtendedInfo: WorkloadContainerExtendedInfo + AzureWorkloadErrorInfo: WorkloadErrorInfo + AzureWorkloadJob: WorkloadBackupJob + AzureWorkloadJobExtendedInfo: WorkloadBackupJobExtendedInfo + AzureWorkloadJobTaskDetails: WorkloadBackupJobTaskDetails + AzureWorkloadPointInTimeRecoveryPoint: WorkloadPointInTimeRecoveryPoint + AzureWorkloadPointInTimeRestoreRequest: WorkloadPointInTimeRestoreContent + AzureWorkloadSAPHanaPointInTimeRecoveryPoint: WorkloadSapHanaPointInTimeRecoveryPoint + AzureWorkloadRecoveryPoint: WorkloadRecoveryPoint + AzureWorkloadRestoreRequest: WorkloadRestoreContent + AzureWorkloadSAPHanaPointInTimeRestoreRequest: WorkloadSapHanaPointInTimeRestoreContent + AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest: WorkloadSapHanaPointInTimeRestoreWithRehydrateContent + AzureWorkloadSAPHanaRecoveryPoint: WorkloadSapHanaRecoveryPoint + AzureWorkloadSAPHanaRestoreRequest: WorkloadSapHanaRestoreContent + AzureWorkloadSAPHanaRestoreWithRehydrateRequest: WorkloadSapHanaRestoreWithRehydrateContent + AzureWorkloadSQLAutoProtectionIntent: WorkloadSqlAutoProtectionIntent + AzureWorkloadSQLPointInTimeRecoveryPoint: WorkloadSqlPointInTimeRecoveryPoint + AzureWorkloadSQLPointInTimeRestoreRequest: WorkloadSqlPointInTimeRestoreContent + AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest: WorkloadSqlPointInTimeRestoreWithRehydrateContent + AzureWorkloadSQLRecoveryPoint: WorkloadSqlRecoveryPoint + AzureWorkloadSQLRecoveryPointExtendedInfo: WorkloadSqlRecoveryPointExtendedInfo + AzureWorkloadSQLRestoreRequest: WorkloadSqlRestoreContent + AzureWorkloadSQLRestoreWithRehydrateRequest: WorkloadSqlRestoreWithRehydrateContent + BackupRequest: BackupContent + BackupRequestResource: TriggerBackupContent + BackupStatusResponse: BackupStatusResult + CreateMode: BackupCreateMode + DataSourceType: BackupDataSourceType + DailySchedule: BackupDailySchedule + Day: BackupDay + DayOfWeek: BackupDayOfWeek + DedupState: VaultDedupState + EncryptionAtRestType: BackupEncryptionAtRestType + EncryptionDetails: VmEncryptionDetails + ErrorDetail: BackupErrorDetail + ExtendedProperties: IaasVmBackupExtendedProperties + FabricName: BackupFabricName + HealthStatus: IaasVmProtectedItemHealthStatus + ProtectedItemHealthStatus: VmWorkloadProtectedItemHealthStatus + HourlySchedule: BackupHourlySchedule + ILRRequest: IlrContent + ILRRequestResource: ProvisionIlrConnectionContent + ListRecoveryPointsRecommendedForMoveRequest: RecoveryPointsRecommendedForMoveContent + MonthOfYear: BackupMonthOfYear + NameInfo: BackupNameInfo + OperationType: WorkloadOperationType + OverwriteOptions: RestoreOverwriteOptions + PolicyType: SubProtectionPolicyType + PreValidateEnableBackupResponse: PreValidateEnableBackupResult + Settings: BackupCommonSettings + SupportStatus: VmResourceFeatureSupportStatus + StorageType: BackupStorageType + UnlockDeleteResponse: UnlockDeleteResult + UsagesUnit: BackupUsagesUnit + ValidationStatus: BackupValidationStatus + WeekOfMonth: BackupWeekOfMonth + WeeklySchedule: BackupWeeklySchedule + WorkloadType: BackupWorkloadType + XcoolState: VaultXcoolState + BackupResourceConfig.crossRegionRestoreFlag: EnableCrossRegionRestore + DpmContainer.upgradeAvailable: IsUpgradeAvailable + DPMProtectedItemExtendedInfo.protected: IsProtected + AzureIaaSVMProtectedItemExtendedInfo.policyInconsistent: IsPolicyInconsistent + IaasVMRestoreRequest.createNewCloudService: DoesCreateNewCloudService + IaasVMRestoreRequest.restoreWithManagedDisks: DoesRestoreWithManagedDisks + EncryptionDetails.encryptionEnabled: IsEncryptionEnabled + AzureVmWorkloadProtectionPolicy.makePolicyConsistent: DoesMakePolicyConsistent + TriggerDataMoveRequest.pauseGC: DoesPauseGC + ProtectedItem.sourceResourceId: -|arm-id + ProtectedItem.policyId: -|arm-id + ProtectedItem.lastRecoveryPoint: LastRecoverOn + ProtectionIntent.sourceResourceId: -|arm-id + ProtectionIntent.itemId: -|arm-id + ProtectionIntent.policyId: -|arm-id + BackupStatusRequest.resourceId: -|arm-id + BackupStatusResponse.vaultId: -|arm-id + BEKDetails.secretVaultId: -|arm-id + ContainerIdentityInfo.aadTenantId: -|uuid + AzureFileShareBackupRequest.recoveryPointExpiryTimeInUTC: RecoveryPointExpireOn + AzureFileShareRestoreRequest.sourceResourceId: -|arm-id + IaasVMBackupRequest.recoveryPointExpiryTimeInUTC: RecoveryPointExpireOn + IaaSVMContainer.virtualMachineId: -|arm-id + IaasVmilrRegistrationRequest: IaasVmIlrRegistrationContent + IaasVmilrRegistrationRequest.virtualMachineId: -|arm-id + IaaSVMProtectableItem.virtualMachineId: -|arm-id + AzureIaaSVMProtectedItem.virtualMachineId: -|arm-id + IaasVMRestoreRequest.sourceResourceId: -|arm-id + IaasVMRestoreRequest.targetVirtualMachineId: -|arm-id + IaasVMRestoreRequest.targetResourceGroupId: -|arm-id + IaasVMRestoreRequest.storageAccountId: -|arm-id + IaasVMRestoreRequest.virtualNetworkId: -|arm-id + IaasVMRestoreRequest.subnetId: -|arm-id + IaasVMRestoreRequest.targetDomainNameId: -|arm-id + IaasVMRestoreRequest.region: -|azure-location + IdentityBasedRestoreDetails.targetStorageAccountId: -|arm-id + IdentityInfo.managedIdentityResourceId: -|arm-id + KEKDetails.keyVaultId: -|arm-id + PrepareDataMoveRequest.targetResourceId: -|arm-id + PreValidateEnableBackupRequest.resourceId: -|arm-id + PreValidateEnableBackupRequest.vaultId: -|arm-id + ResourceGuardProxyBase.resourceGuardResourceId: -|arm-id + ResourceGuardProxyBase.lastUpdatedTime: LastUpdatedOn|datetime + AzureStorageContainer.sourceResourceId: -|arm-id + TargetAFSRestoreInfo.targetResourceId: -|arm-id + TriggerDataMoveRequest.sourceResourceId: -|arm-id + TriggerDataMoveRequest.sourceContainerArmIds: -|arm-id + TriggerDataMoveRequest.sourceRegion: -|azure-location + EncryptionDetails.kekVaultId: -|arm-id + EncryptionDetails.secretKeyVaultId: -|arm-id + SupportStatus.DefaultOFF: DefaultOff + SupportStatus.DefaultON: DefaultOn + AzureWorkloadBackupRequest.recoveryPointExpiryTimeInUTC: RecoveryPointExpireOn + AzureWorkloadContainer.sourceResourceId: -|arm-id + AzureWorkloadRecoveryPoint.recoveryPointTimeInUTC: RecoveryPointCreatedOn + AzureWorkloadRestoreRequest.sourceResourceId: -|arm-id + AzureWorkloadRestoreRequest.targetVirtualMachineId: -|arm-id + AzureWorkloadSQLRecoveryPointExtendedInfo.dataDirectoryTimeInUTC: DataDirectoryInfoCapturedOn + ProtectedItem.deferredDeleteTimeInUTC: DeferredDeletedOn + AzureFileShareProvisionILRRequest.sourceResourceId: -|arm-id + PrepareDataMoveRequest.sourceContainerArmIds: -|arm-id + UnlockDeleteResponse.unlockDeleteExpiryTime: UnlockDeleteExpireOn|datetime + PrepareDataMoveRequest.targetRegion: -|azure-location + BackupResourceEncryptionConfigExtended.userAssignedIdentity: -|arm-id + RestoreRequest: RestoreContent + RestoreRequestResource: TriggerRestoreContent + RecoveryPointProperties.expiryTime: ExpireOn + DataSourceType.SQLDataBase: SqlDatabase + BackupItemType.SQLDataBase: SqlDatabase + WorkloadType.SQLDataBase: SqlDatabase + WorkloadItemType.SQLDataBase: SqlDatabase + IaasVMBackupRequest: IaasVmBackupContent + IaasVMRestoreRequest: IaasVmRestoreContent + IaasVMRestoreWithRehydrationRequest: IaasVmRestoreWithRehydrationContent + ResourceGuardOperationDetail.defaultResourceRequest: DefaultResourceId|arm-id + InquiryInfo: WorkloadContainerInquiryInfo + ProvisioningState: BackupPrivateEndpointConnectionProvisioningState + ProtectionState: BackupProtectionState + ProtectionStatus: BackupProtectionStatus + AzureFileshareProtectedItemExtendedInfo.oldestRecoveryPoint: OldestRecoverOn + AzureIaaSVMProtectedItemExtendedInfo.oldestRecoveryPoint: OldestRecoverOn + AzureSqlProtectedItemExtendedInfo.oldestRecoveryPoint: OldestRecoverOn + AzureVmWorkloadProtectedItemExtendedInfo.oldestRecoveryPoint: OldestRecoverOn + DPMProtectedItemExtendedInfo.oldestRecoveryPoint: OldestRecoverOn + DPMProtectedItemExtendedInfo.onPremiseOldestRecoveryPoint: OnPremiseOldestRecoverOn + DPMProtectedItemExtendedInfo.onPremiseLatestRecoveryPoint: OnPremiseLatestRecoverOn + MabFileFolderProtectedItemExtendedInfo.oldestRecoveryPoint: OldestRecoverOn + AzureIaaSVMProtectionPolicy.instantRpRetentionRangeInDays: InstantRPRetentionRangeInDays + AzureVmWorkloadItem.subinquireditemcount: SubInquiredItemCount + AzureVmWorkloadProtectableItem.subinquireditemcount: SubInquiredItemCount + AzureVmWorkloadProtectableItem.subprotectableitemcount: SubProtectableItemCount + AzureVmWorkloadProtectableItem.prebackupvalidation: PreBackupValidation + StorageTypeState: BackupStorageTypeState + RetentionPolicy: BackupRetentionPolicy + SchedulePolicy: BackupSchedulePolicy + TieringPolicy: BackupTieringPolicy + CopyOptions: FileShareCopyOption + RecoveryType: FileShareRecoveryType + RestoreRequestType: FileShareRestoreType + SecurityPinBase: SecurityPinContent + VaultJob: VaultBackupJob + VaultJobErrorInfo: VaultBackupJobErrorInfo + VaultJobExtendedInfo: VaultBackupJobExtendedInfo + MabJob: MabBackupJob + MabJobExtendedInfo: MabBackupJobExtendedInfo + MabJobTaskDetails: MabBackupJobTaskDetails + DpmJob: DpmBackupJob + DpmJobExtendedInfo: DpmBackupJobExtendedInfo + DpmJobTaskDetails: DpmBackupJobTaskDetails + IdentityInfo: BackupIdentityInfo + format-by-name-rules: 'tenantId': 'uuid' 'ETag': 'etag' @@ -50,29 +317,59 @@ rename-rules: IaaSVM: IaasVm Iaasvm: IaasVm Sqldb: SqlDB - SQLAG: SqlAG - Sqlag: SqlAG + SQLAG: SqlAvailabilityGroup + Sqlag: SqlAvailabilityGroup MAB: Mab DPM: Dpm Issqlcompression: IsSqlCompression + ILR: Ilr + SQL: Sql + BEK: Bek + KEK: Kek + KPI: Kpi + AFS: Afs + SAP: Sap + SqlDb: SqlDB + PIN: Pin override-operation-name: BackupStatus_Get: GetBackupStatus DeletedProtectionContainers_List: GetSoftDeletedProtectionContainers + RecoveryPointsRecommendedForMove_List: GetRecoveryPointsRecommendedForMove + BackupProtectionIntent_List: GetBackupProtectionIntents + BackupProtectedItems_List: GetBackupProtectedItems + BackupProtectionContainers_List: GetBackupProtectionContainers + SecurityPINs_Get: GetSecurityPin + BMSPrepareDataMove: PrepareDataMove + BMSTriggerDataMove: TriggerDataMove list-exception: - /Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig - /Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/backupProtectionIntent/{intentObjectName} - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupconfig/vaultconfig - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupEncryptionConfigs/backupResourceEncryptionConfig - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/privateEndpointConnections/{privateEndpointConnectionName} - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName} - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName} + - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupconfig/vaultconfig + - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupEncryptionConfigs/backupResourceEncryptionConfig directive: + - remove-operation: Operation_Validate + - remove-operation: ValidateOperation_Trigger + - remove-operation: PrivateEndpoint_GetOperationStatus + - remove-operation: GetOperationStatus + - remove-operation: BMSPrepareDataMoveOperationResult_Get - remove-operation: ProtectedItemOperationResults_Get - remove-operation: ProtectionPolicyOperationResults_Get + - remove-operation: JobOperationResults_Get + - remove-operation: ExportJobsOperationResults_Get + - remove-operation: ValidateOperationResults_Get + - remove-operation: ValidateOperationStatuses_Get + - remove-operation: ProtectionContainerRefreshOperationResults_Get - remove-operation: ProtectionContainerOperationResults_Get + - remove-operation: ProtectedItemOperationStatuses_Get + - remove-operation: BackupOperationResults_Get + - remove-operation: BackupOperationStatuses_Get + - remove-operation: ProtectionPolicyOperationStatuses_Get - from: bms.json where: $.definitions transform: > @@ -81,6 +378,11 @@ directive: $.BMSBackupSummariesQueryObject.properties.type['x-ms-client-name'] = 'BackupManagementType'; $.BMSBackupSummariesQueryObject.properties.type['x-ms-enum']['name'] = 'BackupManagementType'; $.RecoveryPointRehydrationInfo.properties.rehydrationRetentionDuration['format'] = 'duration'; + - from: bms.json + where: $.parameters + transform: > + $.AzureRegion['x-ms-format'] = 'azure-location'; + $.AzureRegion['x-ms-client-name'] = 'location'; # Autorest.CSharp can't find `nextLink` from parent (allOf), so here workaround. # Issues filed here: https://github.com/Azure/autorest.csharp/issues/2740. - from: bms.json @@ -158,6 +460,11 @@ directive: '$ref': '#/definitions/BackupResourceConfigResource' } }; + # The operation group should of list method be same as other method + - from: bms.json + where: $.paths['/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupResourceGuardProxies'] + transform: > + $.get['operationId'] = 'ResourceGuardProxy_List'; # Here the format date-time isn't specified in swagger, hence adding it explicitly - from: bms.json where: $.definitions.RecoveryPointProperties.properties.expiryTime diff --git a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/CHANGELOG.md b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/CHANGELOG.md index 5996b3673578e..f0bae4e156e23 100644 --- a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/CHANGELOG.md +++ b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/CHANGELOG.md @@ -1,13 +1,15 @@ # Release History -## 1.0.0 (2023-02-13) +## 1.0.0 (2023-02-20) This release is the first stable release of the Azure Recovery Services Backup Management client library. ### Features Added + Added support for Immutable vaults. ### Bugs Fixed + Polishing since last public beta release: - Prepended `RecoveryServices` prefix to all single / simple model names. - Corrected the format of all `Guid` type properties / parameters. @@ -23,7 +25,10 @@ Polishing since last public beta release: - Optimized the name of some models and functions. ### Other Changes -Changed API verison to 2023-01-01. + +- Changed API verison to 2023-01-01. +- Upgraded dependent `Azure.Core` to `1.28.0`. +- Upgraded dependent `Azure.ResourceManager` to `1.4.0`. ## 1.0.0-beta.1 (2022-09-25) From 1964c13850562ea0a9db4fe51988f322f00c61b5 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 20 Feb 2023 04:01:31 -0500 Subject: [PATCH 02/72] Increment package version after release of Azure.ResourceManager.RecoveryServices (#34366) --- .../CHANGELOG.md | 10 ++++++++++ .../src/Azure.ResourceManager.RecoveryServices.csproj | 4 +++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/CHANGELOG.md b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/CHANGELOG.md index f0bae4e156e23..b08d153017470 100644 --- a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/CHANGELOG.md +++ b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.1.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.0.0 (2023-02-20) This release is the first stable release of the Azure Recovery Services Backup Management client library. diff --git a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Azure.ResourceManager.RecoveryServices.csproj b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Azure.ResourceManager.RecoveryServices.csproj index 303745b341281..27aed095e7018 100644 --- a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Azure.ResourceManager.RecoveryServices.csproj +++ b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Azure.ResourceManager.RecoveryServices.csproj @@ -1,6 +1,8 @@ - 1.0.0 + 1.1.0-beta.1 + + 1.0.0 Azure.ResourceManager.RecoveryServices Microsoft Azure Resource Manager client SDK for Azure resource provider Microsoft.RecoveryServices. azure;management;arm;resource manager;recoveryservices From fe69183483ff0122144654614d4c53fb1130680d Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 20 Feb 2023 04:01:51 -0500 Subject: [PATCH 03/72] Increment package version after release of Azure.ResourceManager.RecoveryServicesBackup (#34365) --- .../CHANGELOG.md | 10 ++++++++++ ...Azure.ResourceManager.RecoveryServicesBackup.csproj | 4 +++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/CHANGELOG.md b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/CHANGELOG.md index 51e613be5f238..16344f9904d2d 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/CHANGELOG.md +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.1.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.0.0 (2023-02-20) This release is the first stable release of the Azure Recovery Services Backup Management client library. diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Azure.ResourceManager.RecoveryServicesBackup.csproj b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Azure.ResourceManager.RecoveryServicesBackup.csproj index e643950e479b1..ca47be036763f 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Azure.ResourceManager.RecoveryServicesBackup.csproj +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Azure.ResourceManager.RecoveryServicesBackup.csproj @@ -1,6 +1,8 @@ - 1.0.0 + 1.1.0-beta.1 + + 1.0.0 Azure.ResourceManager.RecoveryServicesBackup Microsoft Azure Resource Manager client SDK for Azure resource provider Microsoft.RecoveryServices Backup. azure;management;arm;resource manager;recoveryservicesbackup From a146065307b3f7f9ebf2a4f283e8cb1becd3ad6f Mon Sep 17 00:00:00 2001 From: YanjunGao <85206987+yanjungao718@users.noreply.github.com> Date: Mon, 20 Feb 2023 17:02:38 +0800 Subject: [PATCH 04/72] Add test case for track 2 mgmt sdk (#34363) --- .../tests/Helpers/CommonTestFixture.cs | 14 +- .../Helpers/SynapseManagementTestUtilities.cs | 83 + .../BigDatapoolOperationTests.cs | 83 + .../FirewallRuleOperationTests.cs | 69 + .../ScenarioTests/KustopoolOperationTests.cs | 151 + .../ScenarioTests/SqlpoolOperationTests.cs | 90 + .../TestBigDatapoolLifeCycle.json | 1914 +++++++ .../TestBigDatapoolLifeCycleAsync.json | 1752 ++++++ .../TestFirewallRule.json | 1917 +++++++ .../TestFirewallRuleAsync.json | 1819 +++++++ .../TestKustoPoolDatabaseLifeCycle.json | 2993 ++++++++++ .../TestKustoPoolDatabaseLifeCycleAsync.json | 2949 ++++++++++ .../TestKustoPoolLifeCycle.json | 4789 ++++++++++++++++ .../TestKustoPoolLifeCycleAsync.json | 4829 +++++++++++++++++ .../TestSqlPoolLifeCycle.json | 2059 +++++++ .../TestSqlPoolLifeCycleAsync.json | 2121 ++++++++ .../TestWorkspaceLifeCycle.json | 973 ++-- .../TestWorkspaceLifeCycleAsync.json | 1100 ++-- .../tests/SynapseManagementTestBase.cs | 30 +- 19 files changed, 28672 insertions(+), 1063 deletions(-) create mode 100644 sdk/synapse/Azure.ResourceManager.Synapse/tests/ScenarioTests/BigDatapoolOperationTests.cs create mode 100644 sdk/synapse/Azure.ResourceManager.Synapse/tests/ScenarioTests/FirewallRuleOperationTests.cs create mode 100644 sdk/synapse/Azure.ResourceManager.Synapse/tests/ScenarioTests/KustopoolOperationTests.cs create mode 100644 sdk/synapse/Azure.ResourceManager.Synapse/tests/ScenarioTests/SqlpoolOperationTests.cs create mode 100644 sdk/synapse/Azure.ResourceManager.Synapse/tests/SessionRecords/BigDatapoolOperationTests/TestBigDatapoolLifeCycle.json create mode 100644 sdk/synapse/Azure.ResourceManager.Synapse/tests/SessionRecords/BigDatapoolOperationTests/TestBigDatapoolLifeCycleAsync.json create mode 100644 sdk/synapse/Azure.ResourceManager.Synapse/tests/SessionRecords/FirewallRuleOperationTests/TestFirewallRule.json create mode 100644 sdk/synapse/Azure.ResourceManager.Synapse/tests/SessionRecords/FirewallRuleOperationTests/TestFirewallRuleAsync.json create mode 100644 sdk/synapse/Azure.ResourceManager.Synapse/tests/SessionRecords/KustopoolOperationTests/TestKustoPoolDatabaseLifeCycle.json create mode 100644 sdk/synapse/Azure.ResourceManager.Synapse/tests/SessionRecords/KustopoolOperationTests/TestKustoPoolDatabaseLifeCycleAsync.json create mode 100644 sdk/synapse/Azure.ResourceManager.Synapse/tests/SessionRecords/KustopoolOperationTests/TestKustoPoolLifeCycle.json create mode 100644 sdk/synapse/Azure.ResourceManager.Synapse/tests/SessionRecords/KustopoolOperationTests/TestKustoPoolLifeCycleAsync.json create mode 100644 sdk/synapse/Azure.ResourceManager.Synapse/tests/SessionRecords/SqlpoolOperationTests/TestSqlPoolLifeCycle.json create mode 100644 sdk/synapse/Azure.ResourceManager.Synapse/tests/SessionRecords/SqlpoolOperationTests/TestSqlPoolLifeCycleAsync.json diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/tests/Helpers/CommonTestFixture.cs b/sdk/synapse/Azure.ResourceManager.Synapse/tests/Helpers/CommonTestFixture.cs index ad35f6dfbbcc6..0b0288ab4bade 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/tests/Helpers/CommonTestFixture.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/tests/Helpers/CommonTestFixture.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System; +using System.Net; using Azure.Core; using Azure.ResourceManager.Synapse.Models; @@ -97,22 +98,27 @@ public class CommonTestFixture /// /// Gets or sets start ip address. /// - public string StartIpAddress { get; set; } + public IPAddress StartIpAddress { get; set; } /// /// Gets or sets end ip address. /// - public string EndIpAddress { get; set; } + public IPAddress EndIpAddress { get; set; } + + /// + /// Gets or sets resource provisioning state. + /// + public SynapseProvisioningState? provisioningState { get; set; } /// /// Gets or sets updated start ip address. /// - public string UpdatedStartIpAddress { get; set; } + public IPAddress UpdatedStartIpAddress { get; set; } /// /// Gets or sets updated end ip address. /// - public string UpdatedEndIpAddress { get; set; } + public IPAddress UpdatedEndIpAddress { get; set; } /// /// Gets or sets kusto sku. diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/tests/Helpers/SynapseManagementTestUtilities.cs b/sdk/synapse/Azure.ResourceManager.Synapse/tests/Helpers/SynapseManagementTestUtilities.cs index c1787020a7905..bbd6e638acfb1 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/tests/Helpers/SynapseManagementTestUtilities.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/tests/Helpers/SynapseManagementTestUtilities.cs @@ -1,6 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +using System.Collections.Generic; +using System; +using System.Data; +using System.Net; using Azure.ResourceManager.Models; using Azure.ResourceManager.Synapse.Models; @@ -27,5 +31,84 @@ public static SynapseWorkspaceData PrepareWorkspaceCreateParams(this CommonTestF SqlAdministratorLoginPassword = commonData.SshPassword }; } + + public static SynapseIPFirewallRuleInfoData PrepareFirewallRuleParams(this CommonTestFixture commonData, IPAddress startIpAddress, IPAddress endIpAddress) + { + return new SynapseIPFirewallRuleInfoData() + { + StartIPAddress = startIpAddress, + EndIPAddress = endIpAddress + }; + } + + /// + /// Create kustopool create parameters. + /// + /// + /// + public static SynapseKustoPoolData PrepareKustopoolCreateParams(this CommonTestFixture commonData) + { + return new SynapseKustoPoolData(commonData.Location, commonData.KustoSku) + { + Location = commonData.Location, + Sku = commonData.KustoSku + }; + } + + /// + /// Create spark create parameters. + /// + /// + /// + /// + /// + public static SynapseBigDataPoolInfoData PrepareBigDatapoolCreateParams(this CommonTestFixture commonData, bool enableAutoScale, bool enableAutoPause) + { + return new SynapseBigDataPoolInfoData(commonData.Location) + { + Location = commonData.Location, + NodeCount = enableAutoScale ? (int?)null : commonData.NodeCount, + NodeSizeFamily = BigDataPoolNodeSizeFamily.MemoryOptimized, + NodeSize = commonData.NodeSize, + AutoScale = new BigDataPoolAutoScaleProperties + { + IsEnabled = enableAutoScale, + MinNodeCount = commonData.AutoScaleMinNodeCount, + MaxNodeCount = commonData.AutoScaleMaxNodeCount + }, + AutoPause = new BigDataPoolAutoPauseProperties + { + IsEnabled = enableAutoPause, + DelayInMinutes = commonData.AutoPauseDelayInMinute + }, + SparkVersion = commonData.SparkVersion + }; + } + + /// + /// Create sqlpool create parameters. + /// + /// + /// + public static SynapseSqlPoolData PrepareSqlpoolCreateParams(this CommonTestFixture commonData) + { + return new SynapseSqlPoolData(commonData.Location) + { + Sku = new SynapseSku + { + Name = commonData.PerformanceLevel + } + }; + } + + public static SynapseReadWriteDatabase PrepareKustoDatabaseCreateParams(this CommonTestFixture commonData) + { + return new SynapseReadWriteDatabase + { + Location = commonData.Location, + SoftDeletePeriod = commonData.SoftDeletePeriod, + HotCachePeriod = commonData.HotCachePeriod + }; + } } } diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/tests/ScenarioTests/BigDatapoolOperationTests.cs b/sdk/synapse/Azure.ResourceManager.Synapse/tests/ScenarioTests/BigDatapoolOperationTests.cs new file mode 100644 index 0000000000000..1ba98c40936b6 --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/tests/ScenarioTests/BigDatapoolOperationTests.cs @@ -0,0 +1,83 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using Azure.ResourceManager.Synapse.Models; +using Azure.ResourceManager.Synapse.Tests; +using System.Collections.Generic; +using NUnit; +using System.Threading; +using System.Threading.Tasks; +using NUnit.Framework; +using Azure.ResourceManager.Synapse.Tests.Helpers; +using Azure.Core.TestFramework; +using System; +using System.Linq; + +namespace Azure.ResourceManager.Synapse.Tests +{ + public class BigDatapoolOperationTests : SynapseManagementTestBase + { + public BigDatapoolOperationTests(bool async) : base(async) + { } + + [SetUp] + public async Task Initialize() + { + await TestInitialize(); + + await CreateWorkspace(); + } + + [Test] + [RecordedTest] + public async Task TestBigDatapoolLifeCycle() + { + var workspaceName = WorkspaceResource.Data.Name; + + // create BigDatapool unable autoscale + string bigDatapoolName = Recording.GenerateAssetName("BigDatapool"); + var createBigDatapoolParams = CommonData.PrepareBigDatapoolCreateParams(enableAutoScale:false, enableAutoPause:false); + SynapseBigDataPoolInfoCollection bigdatapoolCollection = WorkspaceResource.GetSynapseBigDataPoolInfos(); + var bigDatapoolUnableAutoScale = (await bigdatapoolCollection.CreateOrUpdateAsync(WaitUntil.Completed, bigDatapoolName, createBigDatapoolParams)).Value; + Assert.AreEqual(CommonTestFixture.SparkpoolType, bigDatapoolUnableAutoScale.Data.ResourceType); + Assert.AreEqual(bigDatapoolName, bigDatapoolUnableAutoScale.Data.Name); + Assert.AreEqual(CommonData.Location, bigDatapoolUnableAutoScale.Data.Location); + + // update BigDatapool + var bigDatapoolCreated = (await bigdatapoolCollection.GetAsync(bigDatapoolName)).Value; + Dictionary tagsToUpdate = new Dictionary { { "TestTag", "TestUpdate" } }; + SynapseBigDataPoolInfoPatch bigdataPoolPatchInfo = new SynapseBigDataPoolInfoPatch { }; + bigdataPoolPatchInfo.Tags.ReplaceWith(tagsToUpdate); + await bigDatapoolCreated.UpdateAsync(bigdataPoolPatchInfo); + + var bigDatapoolUpdate = (await bigdatapoolCollection.GetAsync(bigDatapoolName)).Value; + Assert.NotNull(bigDatapoolUpdate.Data.Tags); + Assert.AreEqual("TestUpdate", bigDatapoolUpdate.Data.Tags["TestTag"]); + + // Enable Auto-scale and Auto-pause + createBigDatapoolParams = CommonData.PrepareBigDatapoolCreateParams(enableAutoScale: true, enableAutoPause: true); + var bigDatapoolEnableAutoScale = (await bigdatapoolCollection.CreateOrUpdateAsync(WaitUntil.Completed, bigDatapoolName, createBigDatapoolParams)).Value; + Assert.AreEqual(CommonTestFixture.SparkpoolType, bigDatapoolUnableAutoScale.Data.ResourceType); + Assert.AreEqual(bigDatapoolName, bigDatapoolUnableAutoScale.Data.Name); + Assert.AreEqual(CommonData.Location, bigDatapoolUnableAutoScale.Data.Location); + Assert.True(bigDatapoolEnableAutoScale.Data.AutoScale.IsEnabled); + Assert.AreEqual(CommonData.AutoScaleMaxNodeCount, bigDatapoolEnableAutoScale.Data.AutoScale.MaxNodeCount); + Assert.AreEqual(CommonData.AutoScaleMinNodeCount, bigDatapoolEnableAutoScale.Data.AutoScale.MinNodeCount); + Assert.True(bigDatapoolEnableAutoScale.Data.AutoPause.IsEnabled); + Assert.AreEqual(CommonData.AutoPauseDelayInMinute, bigDatapoolEnableAutoScale.Data.AutoPause.DelayInMinutes); + + // list BigDatapool from workspace + var bigDataPoolFromWorkspace = bigdatapoolCollection.GetAllAsync(); + var bigDataPoolList = await bigDataPoolFromWorkspace.ToEnumerableAsync(); + var bigDatapoolCount = bigDataPoolList.Count; + var bigDataPool = bigDataPoolList.Single(bigdatapool => bigdatapool.Data.Name == bigDatapoolName); + + Assert.True(bigDataPool != null, string.Format("BigDatapool created earlier is not found when listing all in workspace {0}", workspaceName)); + + // delete spark pool + await bigDataPool.DeleteAsync(WaitUntil.Completed); + var bigDatapoolAfterDelete = await bigdatapoolCollection.GetAllAsync().ToEnumerableAsync(); + Assert.AreEqual(bigDatapoolCount - 1, bigDatapoolAfterDelete.Count); + } + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/tests/ScenarioTests/FirewallRuleOperationTests.cs b/sdk/synapse/Azure.ResourceManager.Synapse/tests/ScenarioTests/FirewallRuleOperationTests.cs new file mode 100644 index 0000000000000..e254ab21930e3 --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/tests/ScenarioTests/FirewallRuleOperationTests.cs @@ -0,0 +1,69 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core.TestFramework; +using Azure.ResourceManager.Synapse.Models; +using Azure.ResourceManager.Synapse.Tests.Helpers; +using NUnit.Framework; + +namespace Azure.ResourceManager.Synapse.Tests +{ + public class FirewallRuleOperationTests : SynapseManagementTestBase + { + public FirewallRuleOperationTests(bool async): base(async) + { + } + + [SetUp] + public async Task Initialize() + { + await TestInitialize(); + + await CreateWorkspace(); + } + + [Test] + [RecordedTest] + public async Task TestFirewallRule() + { + var workspaceName = WorkspaceResource.Data.Name; + + // create firewall rule + string firewallRuleName = Recording.GenerateAssetName("firewallrulesdk"); + var firewallRuleCreateParams = CommonData.PrepareFirewallRuleParams(CommonData.StartIpAddress, CommonData.EndIpAddress); + SynapseIPFirewallRuleInfoCollection firewallRuleCollection = WorkspaceResource.GetSynapseIPFirewallRuleInfos(); + var firewallRuleCreate = (await firewallRuleCollection.CreateOrUpdateAsync(WaitUntil.Completed, firewallRuleName, firewallRuleCreateParams)).Value; + Assert.AreEqual(CommonData.StartIpAddress, firewallRuleCreate.Data.StartIPAddress); + Assert.AreEqual(CommonData.EndIpAddress, firewallRuleCreate.Data.EndIPAddress); + + // get firewall rule + var firewallRuleGet = (await firewallRuleCollection.GetAsync(firewallRuleName)).Value; + Assert.AreEqual(SynapseProvisioningState.Succeeded, firewallRuleGet.Data.ProvisioningState); + Assert.AreEqual(CommonData.StartIpAddress, firewallRuleCreate.Data.StartIPAddress); + Assert.AreEqual(CommonData.EndIpAddress, firewallRuleCreate.Data.EndIPAddress); + + // update firewall rule + var firewallRuleUpdateParams = CommonData.PrepareFirewallRuleParams(CommonData.UpdatedStartIpAddress, CommonData.UpdatedEndIpAddress); + var firewallRuleUpdate = (await firewallRuleCollection.CreateOrUpdateAsync(WaitUntil.Completed, firewallRuleName, firewallRuleUpdateParams)).Value; + Assert.AreEqual(CommonData.UpdatedStartIpAddress, firewallRuleUpdate.Data.StartIPAddress); + Assert.AreEqual(CommonData.UpdatedEndIpAddress, firewallRuleUpdate.Data.EndIPAddress); + + // list firewall rules from workspace + var firewallRuleFromWorkspace = firewallRuleCollection.GetAllAsync(); + var firewallRuleList = await firewallRuleFromWorkspace.ToEnumerableAsync(); + var firewallRuleCount = firewallRuleList.Count; + var firewallRule = firewallRuleList.Single(rule => rule.Id.Name == firewallRuleName); + + Assert.True(firewallRule != null, string.Format("firewall Rule created earlier is not found when listing all in workspace {0}", workspaceName)); + + // delete firewall rule + await firewallRule.DeleteAsync(WaitUntil.Completed); + firewallRuleList = await firewallRuleCollection.GetAllAsync().ToEnumerableAsync(); + Assert.AreEqual(firewallRuleCount - 1, firewallRuleList.Count); + } + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/tests/ScenarioTests/KustopoolOperationTests.cs b/sdk/synapse/Azure.ResourceManager.Synapse/tests/ScenarioTests/KustopoolOperationTests.cs new file mode 100644 index 0000000000000..ef8106981b7df --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/tests/ScenarioTests/KustopoolOperationTests.cs @@ -0,0 +1,151 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using Azure; +using Azure.Core.TestFramework; +using Azure.ResourceManager.Synapse; +using Azure.ResourceManager.Synapse.Models; +using Azure.ResourceManager.Synapse.Tests; +using Azure.ResourceManager.Synapse.Tests.Helpers; +using NUnit; +using NUnit.Framework; +using System; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; + +namespace Azure.ResourceManager.Synapse.Tests +{ + public class KustopoolOperationTests : SynapseManagementTestBase + { + public KustopoolOperationTests(bool async) : base(async) + { + } + + [SetUp] + public async Task Initialize() + { + await TestInitialize(); + + await CreateWorkspace(); + } + + [Test] + [RecordedTest] + public async Task TestKustoPoolLifeCycle() + { + KustoPoolState runningState = KustoPoolState.Running; + + var workspaceName = WorkspaceResource.Data.Name; + + // create kusto pool + string kustoPoolName = Recording.GenerateAssetName("kustopool"); + var createKustopoolParams = CommonData.PrepareKustopoolCreateParams(); + createKustopoolParams.WorkspaceUid = WorkspaceResource.Data.WorkspaceUid; + SynapseKustoPoolCollection kustoPoolCollection = WorkspaceResource.GetSynapseKustoPools(); + var kustoPoolCreate = (await kustoPoolCollection.CreateOrUpdateAsync(WaitUntil.Completed, kustoPoolName, createKustopoolParams)).Value; + VerifyKustoPool(kustoPoolCreate, kustoPoolName, createKustopoolParams.Sku, state: runningState, workspaceName); + + // get kusto pool + var kustoPoolGet = (await kustoPoolCollection.GetAsync(kustoPoolName)).Value; + VerifyKustoPool(kustoPoolGet, kustoPoolName, createKustopoolParams.Sku, state: runningState, workspaceName); + + // update kusto pool + createKustopoolParams.Sku = CommonData.UpdatedKustoSku; + var kustoPoolUpdate = (await kustoPoolCollection.CreateOrUpdateAsync(WaitUntil.Completed, kustoPoolName, createKustopoolParams)).Value; + VerifyKustoPool(kustoPoolUpdate, kustoPoolName, createKustopoolParams.Sku, state: runningState, workspaceName); + + // list kusto pools from workspace + var kustoPoolFromWorkspace = kustoPoolCollection.GetAllAsync(); + var kustoPoolList = await kustoPoolFromWorkspace.ToEnumerableAsync(); + var kustoPoolCount = kustoPoolList.Count; + var expectedKustoPoolName = GetFullKustoPoolName(workspaceName, kustoPoolName); + var kustoPool = kustoPoolList.Single(pool => pool.Data.Name == expectedKustoPoolName); + + Assert.True(kustoPool != null, string.Format("kusto pool created earlier is not found when listing all in workspace {0}", workspaceName)); + + // delete kusto pool + await kustoPool.DeleteAsync(WaitUntil.Completed); + kustoPoolList = await kustoPoolCollection.GetAllAsync().ToEnumerableAsync(); + Assert.AreEqual(kustoPoolCount - 1, kustoPoolList.Count); + } + + [Test] + [RecordedTest] + public async Task TestKustoPoolDatabaseLifeCycle() + { + var workspaceName = WorkspaceResource.Data.Name; + + // create kusto pool + string kustoPoolName = Recording.GenerateAssetName("kustopool"); + var createKustopoolParams = CommonData.PrepareKustopoolCreateParams(); + createKustopoolParams.WorkspaceUid = WorkspaceResource.Data.WorkspaceUid; + SynapseKustoPoolCollection kustoPoolCollection = WorkspaceResource.GetSynapseKustoPools(); + var kustoPoolCreate = (await kustoPoolCollection.CreateOrUpdateAsync(WaitUntil.Completed, kustoPoolName, createKustopoolParams)).Value; + + // create kusto database + string kustoDatabaseName = Recording.GenerateAssetName("kustodatabase"); + var createKustoDatabaseParams = CommonData.PrepareKustoDatabaseCreateParams(); + SynapseDatabaseCollection kustoPoolDatabaseCollection = kustoPoolCreate.GetSynapseDatabases(); + var kustoDatabaseCreate = (await kustoPoolDatabaseCollection.CreateOrUpdateAsync(WaitUntil.Completed, kustoDatabaseName, createKustoDatabaseParams)).Value.Data as SynapseReadWriteDatabase; + VerifyReadWriteDatabase(kustoDatabaseCreate, kustoDatabaseName, CommonData.SoftDeletePeriod, CommonData.HotCachePeriod, workspaceName, kustoPoolName); + + // get database + var kustoDatabaseGet = (await kustoPoolDatabaseCollection.GetAsync(kustoDatabaseName)).Value.Data as SynapseReadWriteDatabase; + VerifyReadWriteDatabase(kustoDatabaseGet, kustoDatabaseName, CommonData.SoftDeletePeriod, CommonData.HotCachePeriod, workspaceName, kustoPoolName); + + // update database + createKustoDatabaseParams.SoftDeletePeriod = CommonData.UpdatedSoftDeletePeriod; + createKustoDatabaseParams.HotCachePeriod = CommonData.UpdatedHotCachePeriod; + var kustoDatabaseUpdate = (await kustoPoolDatabaseCollection.CreateOrUpdateAsync(WaitUntil.Completed, kustoDatabaseName, createKustoDatabaseParams)).Value.Data as SynapseReadWriteDatabase; + VerifyReadWriteDatabase(kustoDatabaseUpdate, kustoDatabaseName, CommonData.UpdatedSoftDeletePeriod, CommonData.UpdatedHotCachePeriod, workspaceName, kustoPoolName); + + // list databases + var kustoDatabasesFromPool = kustoPoolDatabaseCollection.GetAllAsync(); + var kustoDatabaseList = await kustoDatabasesFromPool.ToEnumerableAsync(); + var kustoDatabaseCount = kustoDatabaseList.Count(); + var expectedKustoDatabaseName = GetFullKustoDatabaseName(workspaceName,kustoPoolName,kustoDatabaseName); + var kustoDatabase = kustoDatabaseList.Single(database => database.Data.Name == expectedKustoDatabaseName); + + Assert.True(kustoDatabase != null, string.Format("kusto Database created earlier is not found when listing all in kusto pool {0}", kustoPoolName)); + + // delete database + await kustoDatabase.DeleteAsync(WaitUntil.Completed); + kustoDatabaseList = await kustoPoolDatabaseCollection.GetAllAsync().ToEnumerableAsync(); + Assert.AreEqual(kustoDatabaseCount - 1, kustoDatabaseList.Count); + } + + private void VerifyKustoPool(SynapseKustoPoolResource kustoPool, string name, SynapseDataSourceSku sku, KustoPoolState state, string workspaceName) + { + var poolFullName = GetFullKustoPoolName(workspaceName, name); + Assert.AreEqual(kustoPool.Data.Name, poolFullName); + AssetEqualtsSku(kustoPool.Data.Sku, sku); + Assert.AreEqual(state, kustoPool.Data.State); + } + + private string GetFullKustoPoolName(string workspaceName, string kustoPoolName) + { + return $"{workspaceName}/{kustoPoolName}"; + } + + private void AssetEqualtsSku(SynapseDataSourceSku sku1, SynapseDataSourceSku sku2) + { + Assert.AreEqual(sku1.Size, sku2.Size); + Assert.AreEqual(sku1.Name, sku2.Name); + } + + private void VerifyReadWriteDatabase(SynapseReadWriteDatabase database, string databaseName, TimeSpan? softDeletePeriod, TimeSpan? hotCachePeriod, string workspaceName, string kustoPoolName) + { + var databaseFullName = GetFullKustoDatabaseName(workspaceName, kustoPoolName, databaseName); + Assert.NotNull(database); + Assert.AreEqual(database.Name, databaseFullName); + Assert.AreEqual(database.SoftDeletePeriod, softDeletePeriod); + Assert.AreEqual(database.HotCachePeriod, hotCachePeriod); + } + + private string GetFullKustoDatabaseName(string workspaceName, string kustoPoolName, string kustoDatabaseName) + { + return $"{workspaceName}/{kustoPoolName}/{kustoDatabaseName}"; + } + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/tests/ScenarioTests/SqlpoolOperationTests.cs b/sdk/synapse/Azure.ResourceManager.Synapse/tests/ScenarioTests/SqlpoolOperationTests.cs new file mode 100644 index 0000000000000..0175b74fbfe59 --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/tests/ScenarioTests/SqlpoolOperationTests.cs @@ -0,0 +1,90 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using Azure.ResourceManager.Synapse.Models; +using Azure.ResourceManager.Synapse.Tests; +using System.Collections.Generic; +using NUnit; +using System.Threading; +using Azure.Core.TestFramework; +using NUnit.Framework; +using System.Threading.Tasks; +using Azure.ResourceManager.Synapse.Tests.Helpers; +using System; +using System.Linq; + +namespace Azure.ResourceManager.Synapse.Tests +{ + public class SqlpoolOperationTests : SynapseManagementTestBase + { + public SqlpoolOperationTests(bool async) : base(async) + { } + + [SetUp] + public async Task Initialize() + { + await TestInitialize(); + + await CreateWorkspace(); + } + + [Test] + [RecordedTest] + public async Task TestSqlPoolLifeCycle() + { + var workspaceName = WorkspaceResource.Data.Name; + + // create sqlpool + string sqlpoolName = Recording.GenerateAssetName("sqlpool"); + var createSqlpoolParams = CommonData.PrepareSqlpoolCreateParams(); + SynapseSqlPoolCollection sqlPoolCollection = WorkspaceResource.GetSynapseSqlPools(); + var sqlpoolCreate =(await sqlPoolCollection.CreateOrUpdateAsync(WaitUntil.Completed, sqlpoolName, createSqlpoolParams)).Value; + Assert.AreEqual(CommonTestFixture.SqlpoolType, sqlpoolCreate.Data.ResourceType); + Assert.AreEqual(sqlpoolName, sqlpoolCreate.Data.Name); + Assert.AreEqual(CommonData.Location, sqlpoolCreate.Data.Location); + + // get sqlpool + for (int i = 0; i < 60; i++) + { + var sqlpoolGet = (await sqlPoolCollection.GetAsync(sqlpoolName)).Value; + if (sqlpoolGet.Data.ProvisioningState.Equals("Succeeded")) + { + Assert.AreEqual(CommonTestFixture.SqlpoolType, sqlpoolCreate.Data.ResourceType); + Assert.AreEqual(sqlpoolName, sqlpoolCreate.Data.Name); + Assert.AreEqual(CommonData.Location, sqlpoolCreate.Data.Location); + break; + } + + Thread.Sleep(30000); + Assert.True(i < 60, "Synapse SqlPool is not in succeeded state even after 30 min."); + } + + // update sqlpool + Dictionary tagsToUpdate = new Dictionary { { "TestTag", "TestUpdate" } }; + SynapseSqlPoolPatch sqlPoolPatchInfo = new SynapseSqlPoolPatch + { + Sku = sqlpoolCreate.Data.Sku + }; + sqlPoolPatchInfo.Tags.ReplaceWith(tagsToUpdate); + + await sqlpoolCreate.UpdateAsync(WaitUntil.Completed, sqlPoolPatchInfo); + + var sqlpoolUpdate = (await sqlPoolCollection.GetAsync(sqlpoolName)).Value; + Assert.NotNull(sqlpoolUpdate.Data.Tags); + Assert.AreEqual("TestUpdate", sqlpoolUpdate.Data.Tags["TestTag"]); + + // list sqlpool from workspace + var sqlpoolFromWorkspace = sqlPoolCollection.GetAllAsync(); + var sqlpoolList = await sqlpoolFromWorkspace.ToEnumerableAsync(); + var sqlpoolCount = sqlpoolList.Count; + var sqlpool = sqlpoolList.Single(pool => pool.Data.Name == sqlpoolName); + + Assert.True(sqlpool != null, string.Format("sql pool created earlier is not found when listing all in workspace {0}", workspaceName)); + + // delete sqlpool + await sqlpool.DeleteAsync(WaitUntil.Completed); + var sqlPoolList = await sqlPoolCollection.GetAllAsync().ToEnumerableAsync(); + Assert.AreEqual(sqlpoolCount - 1, sqlPoolList.Count); + } + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/tests/SessionRecords/BigDatapoolOperationTests/TestBigDatapoolLifeCycle.json b/sdk/synapse/Azure.ResourceManager.Synapse/tests/SessionRecords/BigDatapoolOperationTests/TestBigDatapoolLifeCycle.json new file mode 100644 index 0000000000000..bb44ed344da1f --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/tests/SessionRecords/BigDatapoolOperationTests/TestBigDatapoolLifeCycle.json @@ -0,0 +1,1914 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3?api-version=2021-01-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-063f9ad7ca8331cc5252459bc2f55669-fa348c9234df15dc-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "17246e530ed11a12dfbc154fb3a2d300", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "492", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:30:52 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "89f9ad2c-9b87-49da-b561-ffb11cf69e64", + "x-ms-ratelimit-remaining-subscription-reads": "11981", + "x-ms-request-id": "89f9ad2c-9b87-49da-b561-ffb11cf69e64", + "x-ms-routing-request-id": "JAPANEAST:20230217T083053Z:89f9ad2c-9b87-49da-b561-ffb11cf69e64" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3", + "authorizationSource": "RoleBased", + "managedByTenants": [ + { + "tenantId": "2f4a9838-26b7-47ee-be60-ccc1fdec5953" + } + ], + "tags": { + "sub_tagname_1": "sub_tagvalue_1" + }, + "subscriptionId": "051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Synapse Web Tooling", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourcegroups/synapsesdkrp1055?api-version=**", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "22", + "Content-Type": "application/json", + "traceparent": "00-760dd928922222978411ee57a8e92d59-00d1f6042a897780-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "63cd55e0924e69e424982a7e5bc61df8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "eastus2" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "230", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:30:56 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3ad4115a-dbc2-456a-938d-84fc42d49338", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-request-id": "3ad4115a-dbc2-456a-938d-84fc42d49338", + "x-ms-routing-request-id": "JAPANEAST:20230217T083056Z:3ad4115a-dbc2-456a-938d-84fc42d49338" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055", + "name": "synapsesdkrp1055", + "type": "Microsoft.Resources/resourceGroups", + "location": "eastus2", + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Storage/storageAccounts/synapsesdkstorage5247?api-version=2022-09-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "87", + "Content-Type": "application/json", + "traceparent": "00-bb6667b68d7a2ab038575df7892fb436-ea1988b77cb4a45f-00", + "User-Agent": "azsdk-net-ResourceManager.Storage/1.1.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "000b9aef12803e3da53fad61f24401c5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "sku": { + "name": "Standard_GRS" + }, + "kind": "StorageV2", + "location": "eastus2", + "properties": {} + }, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Content-Type": "text/plain; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:31:01 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Storage/locations/eastus2/asyncoperations/62edc9ea-c75d-406a-9ac6-40ceeef11814?monitor=true\u0026api-version=2022-09-01", + "Pragma": "no-cache", + "Retry-After": "17", + "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "000b9aef12803e3da53fad61f24401c5", + "x-ms-correlation-request-id": "1a848394-8897-49aa-8bb5-e785c24ed0fb", + "x-ms-ratelimit-remaining-subscription-writes": "1197", + "x-ms-request-id": "62edc9ea-c75d-406a-9ac6-40ceeef11814", + "x-ms-routing-request-id": "JAPANEAST:20230217T083102Z:1a848394-8897-49aa-8bb5-e785c24ed0fb" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Storage/locations/eastus2/asyncoperations/62edc9ea-c75d-406a-9ac6-40ceeef11814?monitor=true\u0026api-version=2022-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-bb6667b68d7a2ab038575df7892fb436-6b2e0c08332c9f3c-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "8fbf08b6706bce43178fbd0ee48376e0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Content-Type": "text/plain; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:31:01 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Storage/locations/eastus2/asyncoperations/62edc9ea-c75d-406a-9ac6-40ceeef11814?monitor=true\u0026api-version=2022-09-01", + "Pragma": "no-cache", + "Retry-After": "17", + "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "8fbf08b6706bce43178fbd0ee48376e0", + "x-ms-correlation-request-id": "7ceb5da6-0706-46c1-a0e5-19e77e2d86f0", + "x-ms-ratelimit-remaining-subscription-reads": "11980", + "x-ms-request-id": "3be4fce1-8dea-4e54-941d-8db0b262255b", + "x-ms-routing-request-id": "JAPANEAST:20230217T083102Z:7ceb5da6-0706-46c1-a0e5-19e77e2d86f0" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Storage/locations/eastus2/asyncoperations/62edc9ea-c75d-406a-9ac6-40ceeef11814?monitor=true\u0026api-version=2022-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-bb6667b68d7a2ab038575df7892fb436-36c3b117bfba3030-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "7db6659704523ba1178fd1d0571a53d4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1528", + "Content-Type": "application/json", + "Date": "Fri, 17 Feb 2023 08:31:19 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "7db6659704523ba1178fd1d0571a53d4", + "x-ms-correlation-request-id": "3f07b7ff-3cf9-4aac-84bd-7ed2d8ede221", + "x-ms-ratelimit-remaining-subscription-reads": "11979", + "x-ms-request-id": "30e6eeee-dc51-4b05-9336-71aff1c874a4", + "x-ms-routing-request-id": "JAPANEAST:20230217T083119Z:3f07b7ff-3cf9-4aac-84bd-7ed2d8ede221" + }, + "ResponseBody": { + "sku": { + "name": "Standard_GRS", + "tier": "Standard" + }, + "kind": "StorageV2", + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Storage/storageAccounts/synapsesdkstorage5247", + "name": "synapsesdkstorage5247", + "type": "Microsoft.Storage/storageAccounts", + "location": "eastus2", + "tags": {}, + "properties": { + "keyCreationTime": { + "key1": "2023-02-17T08:30:59.9569987Z", + "key2": "2023-02-17T08:30:59.9569987Z" + }, + "privateEndpointConnections": [], + "minimumTlsVersion": "TLS1_0", + "allowBlobPublicAccess": true, + "networkAcls": { + "bypass": "AzureServices", + "virtualNetworkRules": [], + "ipRules": [], + "defaultAction": "Allow" + }, + "supportsHttpsTrafficOnly": true, + "encryption": { + "services": { + "file": { + "keyType": "Account", + "enabled": true, + "lastEnabledTime": "2023-02-17T08:31:00.6288548Z" + }, + "blob": { + "keyType": "Account", + "enabled": true, + "lastEnabledTime": "2023-02-17T08:31:00.6288548Z" + } + }, + "keySource": "Microsoft.Storage" + }, + "accessTier": "Hot", + "provisioningState": "Succeeded", + "creationTime": "2023-02-17T08:30:59.8319705Z", + "primaryEndpoints": { + "dfs": "https://synapsesdkstorage5247.dfs.core.windows.net/", + "web": "https://synapsesdkstorage5247.z20.web.core.windows.net/", + "blob": "https://synapsesdkstorage5247.blob.core.windows.net/", + "queue": "https://synapsesdkstorage5247.queue.core.windows.net/", + "table": "https://synapsesdkstorage5247.table.core.windows.net/", + "file": "https://synapsesdkstorage5247.file.core.windows.net/" + }, + "primaryLocation": "eastus2", + "statusOfPrimary": "available", + "secondaryLocation": "centralus", + "statusOfSecondary": "available" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Storage/storageAccounts/synapsesdkstorage5247/listKeys?api-version=2022-09-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "0", + "traceparent": "00-e5012f1f365fa03927f91de617b80ba6-e3965e96a6d1a81d-00", + "User-Agent": "azsdk-net-ResourceManager.Storage/1.1.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "eaaad1e8718557599aa501c8f77497ab", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "380", + "Content-Type": "application/json", + "Date": "Fri, 17 Feb 2023 08:31:19 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "eaaad1e8718557599aa501c8f77497ab", + "x-ms-correlation-request-id": "a6184633-e09e-448a-9da9-9403cd4dc24e", + "x-ms-ratelimit-remaining-subscription-resource-requests": "11999", + "x-ms-request-id": "b13ca436-0d4c-46ee-85fd-7ae167eb0502", + "x-ms-routing-request-id": "JAPANEAST:20230217T083120Z:a6184633-e09e-448a-9da9-9403cd4dc24e" + }, + "ResponseBody": { + "keys": [ + { + "creationTime": "2023-02-17T08:30:59.9569987Z", + "keyName": "key1", + "value": "QrMakhUa9TFn/AF9MqigyB8oeNY/\u002BkkBIJZpgT2U3yf1FrUhjGnNcDAJTk8X7NqhD2Mw7ImPO\u002Boc\u002BAStwEUgyA==", + "permissions": "FULL" + }, + { + "creationTime": "2023-02-17T08:30:59.9569987Z", + "keyName": "key2", + "value": "RxEWBP1C9nnfnrCRyyXB2bND5uK/IOti/r4vT8FTGme0G1l\u002BVsd\u002BILtMm9cNWuDOC91jx4w9\u002B3xs\u002BAStt10HYQ==", + "permissions": "FULL" + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8226?api-version=2021-06-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "302", + "Content-Type": "application/json", + "traceparent": "00-45591a4f14ebf853aabded61133a0a79-84cf4f201678e517-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "1a848cda89d967b28478dc9e7376fd3b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "identity": { + "type": "SystemAssigned" + }, + "tags": {}, + "location": "eastus2", + "properties": { + "defaultDataLakeStorage": { + "accountUrl": "https://synapsesdkstorage5247.dfs.core.windows.net/", + "filesystem": "synapsesdkfilesys7767" + }, + "sqlAdministratorLoginPassword": "Password1!3710", + "sqlAdministratorLogin": "sshuser3056" + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8226/operationStatuses/8a6c7e19-ca8a-47da-b530-9ce9f644435f?api-version=2021-06-01", + "Cache-Control": "no-cache", + "Content-Length": "1477", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:31:26 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "1a848cda89d967b28478dc9e7376fd3b", + "x-ms-correlation-request-id": "324d1f2c-07b4-4fb7-add2-7e4a54659865", + "x-ms-ratelimit-remaining-subscription-writes": "1196", + "x-ms-request-id": "a0ada5ec-9668-43d9-b241-85a3ba014cec", + "x-ms-routing-request-id": "JAPANEAST:20230217T083127Z:324d1f2c-07b4-4fb7-add2-7e4a54659865" + }, + "ResponseBody": { + "properties": { + "defaultDataLakeStorage": { + "createManagedPrivateEndpoint": false, + "accountUrl": "https://synapsesdkstorage5247.dfs.core.windows.net/", + "filesystem": "synapsesdkfilesys7767" + }, + "encryption": { + "doubleEncryptionEnabled": false + }, + "provisioningState": "Provisioning", + "connectivityEndpoints": { + "web": "https://web.azuresynapse.net?workspace=%2fsubscriptions%2f051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3%2fresourceGroups%2fsynapsesdkrp1055%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fsynapsesdkworkspace8226", + "dev": "https://synapsesdkworkspace8226.dev.azuresynapse.net", + "sqlOnDemand": "synapsesdkworkspace8226-ondemand.sql.azuresynapse.net", + "sql": "synapsesdkworkspace8226.sql.azuresynapse.net" + }, + "managedResourceGroupName": "synapseworkspace-managedrg-b876a557-66f1-4505-bc37-03de03dcbf00", + "privateEndpointConnections": [], + "workspaceUID": "206c68cd-c0db-4245-a0a4-0ad747b2649e", + "extraProperties": { + "WorkspaceType": "Normal" + }, + "publicNetworkAccess": "Enabled", + "cspWorkspaceAdminProperties": { + "initialWorkspaceAdminObjectId": "5adcf4d8-4923-420e-ab0b-f6e5fc718b42" + }, + "trustedServiceBypassEnabled": false + }, + "type": "Microsoft.Synapse/workspaces", + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8226", + "location": "eastus2", + "name": "synapsesdkworkspace8226", + "identity": { + "type": "SystemAssigned", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "principalId": "e240c84c-a747-4de2-bbf9-d717a2eb5d22" + }, + "tags": {} + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8226/operationStatuses/8a6c7e19-ca8a-47da-b530-9ce9f644435f?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-45591a4f14ebf853aabded61133a0a79-a76fe056bd62863e-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "8e7d9626bace480ef78301f97db8272e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:31:27 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "8e7d9626bace480ef78301f97db8272e", + "x-ms-correlation-request-id": "5e6d0ab5-7595-4568-b647-f88ceb443485", + "x-ms-ratelimit-remaining-subscription-reads": "11978", + "x-ms-request-id": "81dcc50c-27ba-4a71-8b59-5c8306982a3f", + "x-ms-routing-request-id": "JAPANEAST:20230217T083127Z:5e6d0ab5-7595-4568-b647-f88ceb443485" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8226/operationStatuses/8a6c7e19-ca8a-47da-b530-9ce9f644435f?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-45591a4f14ebf853aabded61133a0a79-a01b4e3b893ad269-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "4d0d8c03d2857fad6678baf6dbaf8e40", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:31:28 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "4d0d8c03d2857fad6678baf6dbaf8e40", + "x-ms-correlation-request-id": "899f657e-9674-4932-bbc3-3889379c28bc", + "x-ms-ratelimit-remaining-subscription-reads": "11977", + "x-ms-request-id": "e11a4fd1-6d72-450f-8c75-62ec86d0e892", + "x-ms-routing-request-id": "JAPANEAST:20230217T083129Z:899f657e-9674-4932-bbc3-3889379c28bc" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8226/operationStatuses/8a6c7e19-ca8a-47da-b530-9ce9f644435f?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-45591a4f14ebf853aabded61133a0a79-d4f2c290c462b47e-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "dc78e4d56ff82f6c18cae008582c8ea7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:31:30 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "dc78e4d56ff82f6c18cae008582c8ea7", + "x-ms-correlation-request-id": "9c68090e-f6e8-4cef-b4c3-31b544b5d143", + "x-ms-ratelimit-remaining-subscription-reads": "11976", + "x-ms-request-id": "0c379ebc-06cc-473b-90aa-69a71d5c05ca", + "x-ms-routing-request-id": "JAPANEAST:20230217T083130Z:9c68090e-f6e8-4cef-b4c3-31b544b5d143" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8226/operationStatuses/8a6c7e19-ca8a-47da-b530-9ce9f644435f?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-45591a4f14ebf853aabded61133a0a79-b51c63020e4e2213-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "4cfe7fbb54365372e8fd2856ff186c47", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:31:31 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "4cfe7fbb54365372e8fd2856ff186c47", + "x-ms-correlation-request-id": "00366734-cded-4c59-b081-335505a2ca06", + "x-ms-ratelimit-remaining-subscription-reads": "11975", + "x-ms-request-id": "35ee2d4b-86a0-48a9-abf0-608c61e753eb", + "x-ms-routing-request-id": "JAPANEAST:20230217T083132Z:00366734-cded-4c59-b081-335505a2ca06" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8226/operationStatuses/8a6c7e19-ca8a-47da-b530-9ce9f644435f?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-45591a4f14ebf853aabded61133a0a79-42ac8b9d68ff0455-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "9823c1f54a3f943520dd35baf1a52739", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:31:34 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "9823c1f54a3f943520dd35baf1a52739", + "x-ms-correlation-request-id": "80b11f40-7a10-401b-8577-1d9db66e2128", + "x-ms-ratelimit-remaining-subscription-reads": "11974", + "x-ms-request-id": "1da83af5-d879-44ea-a617-919f1f46870b", + "x-ms-routing-request-id": "JAPANEAST:20230217T083134Z:80b11f40-7a10-401b-8577-1d9db66e2128" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8226/operationStatuses/8a6c7e19-ca8a-47da-b530-9ce9f644435f?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-45591a4f14ebf853aabded61133a0a79-3e72e1525e1e8534-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "5c3a12ea41b180097225f4fb47162fff", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:31:38 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "5c3a12ea41b180097225f4fb47162fff", + "x-ms-correlation-request-id": "10ecbd35-0b8f-4b17-a9ec-d4982bd22974", + "x-ms-ratelimit-remaining-subscription-reads": "11973", + "x-ms-request-id": "244143da-84c7-4dab-8cd2-3fe85a01d377", + "x-ms-routing-request-id": "JAPANEAST:20230217T083139Z:10ecbd35-0b8f-4b17-a9ec-d4982bd22974" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8226/operationStatuses/8a6c7e19-ca8a-47da-b530-9ce9f644435f?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-45591a4f14ebf853aabded61133a0a79-a6d252a0850aeebd-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "9712995ef5097067496a2c581eb86142", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:31:46 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "9712995ef5097067496a2c581eb86142", + "x-ms-correlation-request-id": "76ecfb8c-86f7-4bf9-a7d3-d81e89041d50", + "x-ms-ratelimit-remaining-subscription-reads": "11972", + "x-ms-request-id": "5bf11325-c704-45c0-9eee-477b78a5a5bc", + "x-ms-routing-request-id": "JAPANEAST:20230217T083147Z:76ecfb8c-86f7-4bf9-a7d3-d81e89041d50" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8226/operationStatuses/8a6c7e19-ca8a-47da-b530-9ce9f644435f?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-45591a4f14ebf853aabded61133a0a79-4c569108cb40d12d-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "ed6ceed610deb396b7a2261a563a4d09", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:32:03 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "ed6ceed610deb396b7a2261a563a4d09", + "x-ms-correlation-request-id": "a1d9e400-e48c-4365-b256-cc3060fc84e9", + "x-ms-ratelimit-remaining-subscription-reads": "11971", + "x-ms-request-id": "ff749674-16ed-4c88-83a0-c88c01ef9d64", + "x-ms-routing-request-id": "JAPANEAST:20230217T083204Z:a1d9e400-e48c-4365-b256-cc3060fc84e9" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8226/operationStatuses/8a6c7e19-ca8a-47da-b530-9ce9f644435f?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-45591a4f14ebf853aabded61133a0a79-0b1779c1d658d28b-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "585b36ad8f92f430abc9124615b061ba", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:32:36 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "585b36ad8f92f430abc9124615b061ba", + "x-ms-correlation-request-id": "a9b5137f-9aad-4b1a-9510-685427dccc0e", + "x-ms-ratelimit-remaining-subscription-reads": "11970", + "x-ms-request-id": "347c0405-b8b8-4696-9c58-c6a778f302d2", + "x-ms-routing-request-id": "JAPANEAST:20230217T083236Z:a9b5137f-9aad-4b1a-9510-685427dccc0e" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8226/operationStatuses/8a6c7e19-ca8a-47da-b530-9ce9f644435f?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-45591a4f14ebf853aabded61133a0a79-7c982b2d9f6e386c-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "5824b1c442aa4e21025edf66cf4d1a0e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:33:08 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "5824b1c442aa4e21025edf66cf4d1a0e", + "x-ms-correlation-request-id": "c8ae5657-3fce-4c08-978d-8271be426031", + "x-ms-ratelimit-remaining-subscription-reads": "11969", + "x-ms-request-id": "54eb2a3e-4dc0-4ea6-adb8-4904925c74f3", + "x-ms-routing-request-id": "JAPANEAST:20230217T083309Z:c8ae5657-3fce-4c08-978d-8271be426031" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8226/operationStatuses/8a6c7e19-ca8a-47da-b530-9ce9f644435f?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-45591a4f14ebf853aabded61133a0a79-ccc7a6d0f1f28891-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "e8aa221c085c46afbe784214fd4f9e07", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:33:41 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "e8aa221c085c46afbe784214fd4f9e07", + "x-ms-correlation-request-id": "ec81e4c2-3aaa-4f7d-9e4f-04a4eb013afa", + "x-ms-ratelimit-remaining-subscription-reads": "11968", + "x-ms-request-id": "21090077-b23a-4fdd-bf03-5dec8d596e05", + "x-ms-routing-request-id": "JAPANEAST:20230217T083341Z:ec81e4c2-3aaa-4f7d-9e4f-04a4eb013afa" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8226/operationStatuses/8a6c7e19-ca8a-47da-b530-9ce9f644435f?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-45591a4f14ebf853aabded61133a0a79-c4c2aeda03d1dd0b-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "a5566c40f5156b5f140d5634afc9245d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:34:13 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "a5566c40f5156b5f140d5634afc9245d", + "x-ms-correlation-request-id": "145f27bf-0e4f-4770-ac79-ca6ee0aab1a2", + "x-ms-ratelimit-remaining-subscription-reads": "11967", + "x-ms-request-id": "b02a86ee-7c9d-443e-8413-d967c8c4c89e", + "x-ms-routing-request-id": "JAPANEAST:20230217T083414Z:145f27bf-0e4f-4770-ac79-ca6ee0aab1a2" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8226/operationStatuses/8a6c7e19-ca8a-47da-b530-9ce9f644435f?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-45591a4f14ebf853aabded61133a0a79-2d06cb3381c57d21-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "f22a04af7905bb5d01de9a31000d50b2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "22", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:34:45 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "f22a04af7905bb5d01de9a31000d50b2", + "x-ms-correlation-request-id": "5fc6e284-5ab8-4eee-827b-2bf9af70dcb7", + "x-ms-ratelimit-remaining-subscription-reads": "11966", + "x-ms-request-id": "5548cb28-b339-4523-8281-9b699e918520", + "x-ms-routing-request-id": "JAPANEAST:20230217T083446Z:5fc6e284-5ab8-4eee-827b-2bf9af70dcb7" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8226?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-45591a4f14ebf853aabded61133a0a79-4183006b31170221-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "6326d8c075f627f8c23fd34eb27b96f5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1535", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:34:46 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "6326d8c075f627f8c23fd34eb27b96f5", + "x-ms-correlation-request-id": "6642bb5b-c921-4114-81fd-57c3c75f0430", + "x-ms-ratelimit-remaining-subscription-reads": "11965", + "x-ms-request-id": "abbdb235-941f-4e30-85ae-08d2005869b1", + "x-ms-routing-request-id": "JAPANEAST:20230217T083446Z:6642bb5b-c921-4114-81fd-57c3c75f0430" + }, + "ResponseBody": { + "properties": { + "defaultDataLakeStorage": { + "createManagedPrivateEndpoint": false, + "accountUrl": "https://synapsesdkstorage5247.dfs.core.windows.net/", + "filesystem": "synapsesdkfilesys7767" + }, + "encryption": { + "doubleEncryptionEnabled": false + }, + "provisioningState": "Succeeded", + "connectivityEndpoints": { + "web": "https://web.azuresynapse.net?workspace=%2fsubscriptions%2f051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3%2fresourceGroups%2fsynapsesdkrp1055%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fsynapsesdkworkspace8226", + "dev": "https://synapsesdkworkspace8226.dev.azuresynapse.net", + "sqlOnDemand": "synapsesdkworkspace8226-ondemand.sql.azuresynapse.net", + "sql": "synapsesdkworkspace8226.sql.azuresynapse.net" + }, + "managedResourceGroupName": "synapseworkspace-managedrg-b876a557-66f1-4505-bc37-03de03dcbf00", + "sqlAdministratorLogin": "sshuser3056", + "privateEndpointConnections": [], + "workspaceUID": "206c68cd-c0db-4245-a0a4-0ad747b2649e", + "extraProperties": { + "WorkspaceType": "Normal", + "IsScopeEnabled": false + }, + "publicNetworkAccess": "Enabled", + "cspWorkspaceAdminProperties": { + "initialWorkspaceAdminObjectId": "5adcf4d8-4923-420e-ab0b-f6e5fc718b42" + }, + "trustedServiceBypassEnabled": false + }, + "type": "Microsoft.Synapse/workspaces", + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8226", + "location": "eastus2", + "name": "synapsesdkworkspace8226", + "identity": { + "type": "SystemAssigned", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "principalId": "e240c84c-a747-4de2-bbf9-d717a2eb5d22" + }, + "tags": {} + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8226/bigDataPools/BigDatapool8775?api-version=2021-06-01-preview", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "250", + "Content-Type": "application/json", + "traceparent": "00-430897cf376b503af0a7e11a9d8cd283-afdfd0da2e356768-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "25f864e401ab0ec79aa3375b2d6a07bc", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": {}, + "location": "eastus2", + "properties": { + "autoScale": { + "minNodeCount": 3, + "enabled": false, + "maxNodeCount": 6 + }, + "autoPause": { + "delayInMinutes": 15, + "enabled": false + }, + "nodeCount": 3, + "sparkVersion": "2.4", + "nodeSize": "Small", + "nodeSizeFamily": "MemoryOptimized" + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Allow-Headers": "Location", + "Access-Control-Expose-Headers": "Location", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8226/operationStatuses/9bc8ed06-5bf9-460c-b682-7291c72ae8c8?api-version=2021-06-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "742", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:34:48 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8226/operationResults/9bc8ed06-5bf9-460c-b682-7291c72ae8c8?api-version=2021-06-01-preview", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "25f864e401ab0ec79aa3375b2d6a07bc", + "x-ms-correlation-request-id": "afa5cf5c-843b-49d7-9df6-d528d7f9fba4", + "x-ms-ratelimit-remaining-subscription-writes": "1195", + "x-ms-request-id": "8965ff43-0f3b-4fa6-bd1c-e1e204d76c97", + "x-ms-routing-request-id": "JAPANEAST:20230217T083449Z:afa5cf5c-843b-49d7-9df6-d528d7f9fba4" + }, + "ResponseBody": { + "properties": { + "creationDate": "2023-02-17T08:34:49.06Z", + "sparkVersion": "2.4", + "nodeCount": 3, + "nodeSize": "Small", + "nodeSizeFamily": "MemoryOptimized", + "autoScale": { + "enabled": false, + "minNodeCount": 3, + "maxNodeCount": 6 + }, + "autoPause": { + "enabled": false, + "delayInMinutes": 15 + }, + "isComputeIsolationEnabled": false, + "sessionLevelPackagesEnabled": false, + "cacheSize": 50, + "dynamicExecutorAllocation": { + "enabled": false + }, + "isAutotuneEnabled": false, + "provisioningState": "Provisioning" + }, + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8226/bigDataPools/BigDatapool8775", + "name": "BigDatapool8775", + "type": "Microsoft.Synapse/workspaces/bigDataPools", + "location": "eastus2", + "tags": {} + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8226/operationStatuses/9bc8ed06-5bf9-460c-b682-7291c72ae8c8?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-430897cf376b503af0a7e11a9d8cd283-717bc378c61b33ce-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "a81cdea48d57d7145e555cd1c0cc95d5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:34:48 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "a81cdea48d57d7145e555cd1c0cc95d5", + "x-ms-correlation-request-id": "bdf321ba-0a7d-491e-8cb1-6d831e49aa77", + "x-ms-ratelimit-remaining-subscription-reads": "11964", + "x-ms-request-id": "048bfe4b-26fd-456a-a8b7-b3eef137659a", + "x-ms-routing-request-id": "JAPANEAST:20230217T083449Z:bdf321ba-0a7d-491e-8cb1-6d831e49aa77" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8226/operationStatuses/9bc8ed06-5bf9-460c-b682-7291c72ae8c8?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-430897cf376b503af0a7e11a9d8cd283-70fd1b4e5d5dca5f-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "070f92cc51bf7d932aed237b3b22ff91", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:34:50 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "070f92cc51bf7d932aed237b3b22ff91", + "x-ms-correlation-request-id": "1459d95c-7c63-4e42-b1d1-be2ddb3d31c7", + "x-ms-ratelimit-remaining-subscription-reads": "11963", + "x-ms-request-id": "2076f606-3c05-451b-9dfe-87a3d25c7eda", + "x-ms-routing-request-id": "JAPANEAST:20230217T083450Z:1459d95c-7c63-4e42-b1d1-be2ddb3d31c7" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8226/operationStatuses/9bc8ed06-5bf9-460c-b682-7291c72ae8c8?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-430897cf376b503af0a7e11a9d8cd283-95ed7b2df29dc2f9-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "4fb6f01d5f4e16645f00446b0a684a36", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:34:51 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "4fb6f01d5f4e16645f00446b0a684a36", + "x-ms-correlation-request-id": "ce86a29f-60e1-4046-9ef3-b325ff008d03", + "x-ms-ratelimit-remaining-subscription-reads": "11962", + "x-ms-request-id": "66800f36-37ae-4539-9386-1f4fb1cc74d2", + "x-ms-routing-request-id": "JAPANEAST:20230217T083452Z:ce86a29f-60e1-4046-9ef3-b325ff008d03" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8226/operationStatuses/9bc8ed06-5bf9-460c-b682-7291c72ae8c8?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-430897cf376b503af0a7e11a9d8cd283-5a0d9e7d4d3e38e5-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "7cd8f09a7df952874a9e7d6a6a999b3c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:34:52 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "7cd8f09a7df952874a9e7d6a6a999b3c", + "x-ms-correlation-request-id": "b07e301e-79b5-4ca4-850a-3e3941c68ed1", + "x-ms-ratelimit-remaining-subscription-reads": "11961", + "x-ms-request-id": "138338ec-a0b1-4d89-9be9-ddfd9c3eacec", + "x-ms-routing-request-id": "JAPANEAST:20230217T083453Z:b07e301e-79b5-4ca4-850a-3e3941c68ed1" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8226/operationStatuses/9bc8ed06-5bf9-460c-b682-7291c72ae8c8?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-430897cf376b503af0a7e11a9d8cd283-9476b869f22df695-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "d0b3ca5545166c862df9a8bf0d2772c2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "22", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:34:55 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "d0b3ca5545166c862df9a8bf0d2772c2", + "x-ms-correlation-request-id": "f5969d79-4080-4602-a426-09456f4f3ec1", + "x-ms-ratelimit-remaining-subscription-reads": "11960", + "x-ms-request-id": "a5066427-85ac-42cc-91f8-c5fdef671003", + "x-ms-routing-request-id": "JAPANEAST:20230217T083456Z:f5969d79-4080-4602-a426-09456f4f3ec1" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8226/bigDataPools/BigDatapool8775?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-430897cf376b503af0a7e11a9d8cd283-d90af9bc152f9701-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "4ae0eda282499f98686304afe1faabc6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "795", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:34:55 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "4ae0eda282499f98686304afe1faabc6", + "x-ms-correlation-request-id": "b3e88320-9e97-4dc1-8ea6-12f69772e968", + "x-ms-ratelimit-remaining-subscription-reads": "11959", + "x-ms-request-id": "99e935e3-6fbc-4357-abe1-8d87fff600d5", + "x-ms-routing-request-id": "JAPANEAST:20230217T083456Z:b3e88320-9e97-4dc1-8ea6-12f69772e968" + }, + "ResponseBody": { + "properties": { + "creationDate": "2023-02-17T08:34:49.06Z", + "sparkVersion": "2.4", + "nodeCount": 3, + "nodeSize": "Small", + "nodeSizeFamily": "MemoryOptimized", + "autoScale": { + "enabled": false, + "minNodeCount": 3, + "maxNodeCount": 6 + }, + "autoPause": { + "enabled": false, + "delayInMinutes": 15 + }, + "isComputeIsolationEnabled": false, + "sessionLevelPackagesEnabled": false, + "cacheSize": 50, + "dynamicExecutorAllocation": { + "enabled": false + }, + "lastSucceededTimestamp": "2023-02-17T08:34:53.7166667Z", + "isAutotuneEnabled": false, + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8226/bigDataPools/BigDatapool8775", + "name": "BigDatapool8775", + "type": "Microsoft.Synapse/workspaces/bigDataPools", + "location": "eastus2", + "tags": {} + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8226/bigDataPools/BigDatapool8775?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-29ab20483fc98e060b065e246648061b-1003e3a91c3bc5d4-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "401508647ab4551f6a6c4f00d5c84522", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "795", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:34:56 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "401508647ab4551f6a6c4f00d5c84522", + "x-ms-correlation-request-id": "475243df-27bf-4039-b5ca-b85dea6c5806", + "x-ms-ratelimit-remaining-subscription-reads": "11958", + "x-ms-request-id": "bb03b6e3-6aac-474d-b781-60d03ef12523", + "x-ms-routing-request-id": "JAPANEAST:20230217T083457Z:475243df-27bf-4039-b5ca-b85dea6c5806" + }, + "ResponseBody": { + "properties": { + "creationDate": "2023-02-17T08:34:49.06Z", + "sparkVersion": "2.4", + "nodeCount": 3, + "nodeSize": "Small", + "nodeSizeFamily": "MemoryOptimized", + "autoScale": { + "enabled": false, + "minNodeCount": 3, + "maxNodeCount": 6 + }, + "autoPause": { + "enabled": false, + "delayInMinutes": 15 + }, + "isComputeIsolationEnabled": false, + "sessionLevelPackagesEnabled": false, + "cacheSize": 50, + "dynamicExecutorAllocation": { + "enabled": false + }, + "lastSucceededTimestamp": "2023-02-17T08:34:53.7166667Z", + "isAutotuneEnabled": false, + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8226/bigDataPools/BigDatapool8775", + "name": "BigDatapool8775", + "type": "Microsoft.Synapse/workspaces/bigDataPools", + "location": "eastus2", + "tags": {} + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8226/bigDataPools/BigDatapool8775?api-version=2021-06-01-preview", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "33", + "Content-Type": "application/json", + "traceparent": "00-73fdf7c33edf24150729a59e97b1ac41-a357d70784a07e84-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "7dc7bb2c51b8d3f2311367b240d78a32", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "TestTag": "TestUpdate" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "817", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:34:57 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "7dc7bb2c51b8d3f2311367b240d78a32", + "x-ms-correlation-request-id": "c3fb2db2-3bcc-40b4-a78f-781711cef674", + "x-ms-ratelimit-remaining-subscription-writes": "1194", + "x-ms-request-id": "549c33a2-a781-4e2c-b6c7-c2a4439c5146", + "x-ms-routing-request-id": "JAPANEAST:20230217T083458Z:c3fb2db2-3bcc-40b4-a78f-781711cef674" + }, + "ResponseBody": { + "properties": { + "creationDate": "2023-02-17T08:34:49.06Z", + "sparkVersion": "2.4", + "nodeCount": 3, + "nodeSize": "Small", + "nodeSizeFamily": "MemoryOptimized", + "autoScale": { + "enabled": false, + "minNodeCount": 3, + "maxNodeCount": 6 + }, + "autoPause": { + "enabled": false, + "delayInMinutes": 15 + }, + "isComputeIsolationEnabled": false, + "sessionLevelPackagesEnabled": false, + "cacheSize": 50, + "dynamicExecutorAllocation": { + "enabled": false + }, + "lastSucceededTimestamp": "2023-02-17T08:34:53.7166667Z", + "isAutotuneEnabled": false, + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8226/bigDataPools/BigDatapool8775", + "name": "BigDatapool8775", + "type": "Microsoft.Synapse/workspaces/bigDataPools", + "location": "eastus2", + "tags": { + "TestTag": "TestUpdate" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8226/bigDataPools/BigDatapool8775?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-56b00278b43dd9d72f5c8c08d94de911-b8538e227d468396-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "045be14d3212280dcd8be0dd3298caa0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "817", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:34:58 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "045be14d3212280dcd8be0dd3298caa0", + "x-ms-correlation-request-id": "8478b3a7-6b05-46c0-9dd2-abb6611e5514", + "x-ms-ratelimit-remaining-subscription-reads": "11957", + "x-ms-request-id": "60a9ca4f-5b40-41b9-ae5d-8753d9fa0180", + "x-ms-routing-request-id": "JAPANEAST:20230217T083458Z:8478b3a7-6b05-46c0-9dd2-abb6611e5514" + }, + "ResponseBody": { + "properties": { + "creationDate": "2023-02-17T08:34:49.06Z", + "sparkVersion": "2.4", + "nodeCount": 3, + "nodeSize": "Small", + "nodeSizeFamily": "MemoryOptimized", + "autoScale": { + "enabled": false, + "minNodeCount": 3, + "maxNodeCount": 6 + }, + "autoPause": { + "enabled": false, + "delayInMinutes": 15 + }, + "isComputeIsolationEnabled": false, + "sessionLevelPackagesEnabled": false, + "cacheSize": 50, + "dynamicExecutorAllocation": { + "enabled": false + }, + "lastSucceededTimestamp": "2023-02-17T08:34:53.7166667Z", + "isAutotuneEnabled": false, + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8226/bigDataPools/BigDatapool8775", + "name": "BigDatapool8775", + "type": "Microsoft.Synapse/workspaces/bigDataPools", + "location": "eastus2", + "tags": { + "TestTag": "TestUpdate" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8226/bigDataPools/BigDatapool8775?api-version=2021-06-01-preview", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "234", + "Content-Type": "application/json", + "traceparent": "00-494d67a4bbbb0e628586c937ef4a002f-6fb062c5dfbd3a48-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "2683e11d2e32120d16410ea0126c1492", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": {}, + "location": "eastus2", + "properties": { + "autoScale": { + "minNodeCount": 3, + "enabled": true, + "maxNodeCount": 6 + }, + "autoPause": { + "delayInMinutes": 15, + "enabled": true + }, + "sparkVersion": "2.4", + "nodeSize": "Small", + "nodeSizeFamily": "MemoryOptimized" + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Allow-Headers": "Location", + "Access-Control-Expose-Headers": "Location", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8226/operationStatuses/48fa9077-5133-4817-8633-f985fddee885?api-version=2021-06-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "796", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:34:58 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8226/operationResults/48fa9077-5133-4817-8633-f985fddee885?api-version=2021-06-01-preview", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "2683e11d2e32120d16410ea0126c1492", + "x-ms-correlation-request-id": "002cb94c-7a3a-4457-a0f4-3eb430234d7a", + "x-ms-ratelimit-remaining-subscription-writes": "1193", + "x-ms-request-id": "0a8ed686-1cf4-4b99-ac9c-0d7f4defd191", + "x-ms-routing-request-id": "JAPANEAST:20230217T083459Z:002cb94c-7a3a-4457-a0f4-3eb430234d7a" + }, + "ResponseBody": { + "properties": { + "creationDate": "2023-02-17T08:34:49.06Z", + "sparkVersion": "2.4", + "nodeCount": 0, + "nodeSize": "Small", + "nodeSizeFamily": "MemoryOptimized", + "autoScale": { + "enabled": true, + "minNodeCount": 3, + "maxNodeCount": 6 + }, + "autoPause": { + "enabled": true, + "delayInMinutes": 15 + }, + "isComputeIsolationEnabled": false, + "sessionLevelPackagesEnabled": false, + "cacheSize": 50, + "dynamicExecutorAllocation": { + "enabled": false + }, + "lastSucceededTimestamp": "2023-02-17T08:34:53.7166667Z", + "isAutotuneEnabled": false, + "provisioningState": "Provisioning" + }, + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8226/bigDataPools/BigDatapool8775", + "name": "BigDatapool8775", + "type": "Microsoft.Synapse/workspaces/bigDataPools", + "location": "eastus2", + "tags": {} + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8226/operationStatuses/48fa9077-5133-4817-8633-f985fddee885?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-494d67a4bbbb0e628586c937ef4a002f-85dbcdd05fe0df9d-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "5e95c74964541e00d348eed0236c1560", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:34:58 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "5e95c74964541e00d348eed0236c1560", + "x-ms-correlation-request-id": "96c9e0c1-6b0f-47e1-a356-c49729e06efd", + "x-ms-ratelimit-remaining-subscription-reads": "11956", + "x-ms-request-id": "8c3ba61e-9993-4bd0-9e2a-e34aa823c3e4", + "x-ms-routing-request-id": "JAPANEAST:20230217T083459Z:96c9e0c1-6b0f-47e1-a356-c49729e06efd" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8226/operationStatuses/48fa9077-5133-4817-8633-f985fddee885?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-494d67a4bbbb0e628586c937ef4a002f-87f6c8c92f3496a0-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "15fc4d76d6e5dc32d18879927fe0a100", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:35:00 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "15fc4d76d6e5dc32d18879927fe0a100", + "x-ms-correlation-request-id": "8938a4a1-f089-45bd-b5fa-5cdeff4fff91", + "x-ms-ratelimit-remaining-subscription-reads": "11955", + "x-ms-request-id": "ca924d78-13d5-4be5-adcb-a59366e593d9", + "x-ms-routing-request-id": "JAPANEAST:20230217T083501Z:8938a4a1-f089-45bd-b5fa-5cdeff4fff91" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8226/operationStatuses/48fa9077-5133-4817-8633-f985fddee885?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-494d67a4bbbb0e628586c937ef4a002f-f6f34a7c40593334-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "4a5674a1b5d77c3e1c941f24523fd640", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:35:01 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "4a5674a1b5d77c3e1c941f24523fd640", + "x-ms-correlation-request-id": "edcedfc2-c214-42b9-b4ae-267be9acedc3", + "x-ms-ratelimit-remaining-subscription-reads": "11954", + "x-ms-request-id": "cba137b4-4b57-4969-b0dc-9e05d9eb22d3", + "x-ms-routing-request-id": "JAPANEAST:20230217T083502Z:edcedfc2-c214-42b9-b4ae-267be9acedc3" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8226/operationStatuses/48fa9077-5133-4817-8633-f985fddee885?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-494d67a4bbbb0e628586c937ef4a002f-8077162e82676ccf-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "24b64e8a8a1973b495b88dcbea6d9ff3", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:35:03 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "24b64e8a8a1973b495b88dcbea6d9ff3", + "x-ms-correlation-request-id": "d8ed7bea-2f44-41f3-a719-50bcaf91c592", + "x-ms-ratelimit-remaining-subscription-reads": "11953", + "x-ms-request-id": "1add477c-e957-42c0-a6c9-a20b5690d975", + "x-ms-routing-request-id": "JAPANEAST:20230217T083504Z:d8ed7bea-2f44-41f3-a719-50bcaf91c592" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8226/operationStatuses/48fa9077-5133-4817-8633-f985fddee885?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-494d67a4bbbb0e628586c937ef4a002f-f6d56b689e9e035d-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "ae2feda7ca15c0890e7ff950b60d8992", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "22", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:35:05 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "ae2feda7ca15c0890e7ff950b60d8992", + "x-ms-correlation-request-id": "d6c195e2-0415-46c9-a91f-0ee75ac9081a", + "x-ms-ratelimit-remaining-subscription-reads": "11952", + "x-ms-request-id": "34e3f71b-11b3-4d5c-b399-9d4e7cedf554", + "x-ms-routing-request-id": "JAPANEAST:20230217T083506Z:d6c195e2-0415-46c9-a91f-0ee75ac9081a" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8226/bigDataPools/BigDatapool8775?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-494d67a4bbbb0e628586c937ef4a002f-ac6fce361a58bf15-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "300838b17d2916e7c0e3b51e287392af", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "788", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:35:05 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "300838b17d2916e7c0e3b51e287392af", + "x-ms-correlation-request-id": "34c16b0d-623c-4f68-bc0d-00c65e9a72ef", + "x-ms-ratelimit-remaining-subscription-reads": "11951", + "x-ms-request-id": "ce11847d-5b96-460e-b363-0d256741fd6f", + "x-ms-routing-request-id": "JAPANEAST:20230217T083506Z:34c16b0d-623c-4f68-bc0d-00c65e9a72ef" + }, + "ResponseBody": { + "properties": { + "creationDate": "2023-02-17T08:34:49.06Z", + "sparkVersion": "2.4", + "nodeCount": 0, + "nodeSize": "Small", + "nodeSizeFamily": "MemoryOptimized", + "autoScale": { + "enabled": true, + "minNodeCount": 3, + "maxNodeCount": 6 + }, + "autoPause": { + "enabled": true, + "delayInMinutes": 15 + }, + "isComputeIsolationEnabled": false, + "sessionLevelPackagesEnabled": false, + "cacheSize": 50, + "dynamicExecutorAllocation": { + "enabled": false + }, + "lastSucceededTimestamp": "2023-02-17T08:35:06.28Z", + "isAutotuneEnabled": false, + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8226/bigDataPools/BigDatapool8775", + "name": "BigDatapool8775", + "type": "Microsoft.Synapse/workspaces/bigDataPools", + "location": "eastus2", + "tags": {} + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8226/bigDataPools?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-3f826ddd53096b856fc78763bbcd7b46-3f185c991073e681-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "657d2cf52710bf2ac5f6159a9163bd87", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "800", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:35:07 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "657d2cf52710bf2ac5f6159a9163bd87", + "x-ms-correlation-request-id": "5e06d523-7c5c-4c7d-9426-c4952cfd2c65", + "x-ms-ratelimit-remaining-subscription-reads": "11950", + "x-ms-request-id": "026d9c7c-d575-4018-b807-ca0c882f7519", + "x-ms-routing-request-id": "JAPANEAST:20230217T083507Z:5e06d523-7c5c-4c7d-9426-c4952cfd2c65" + }, + "ResponseBody": { + "value": [ + { + "properties": { + "creationDate": "2023-02-17T08:34:49.06Z", + "sparkVersion": "2.4", + "nodeCount": 0, + "nodeSize": "Small", + "nodeSizeFamily": "MemoryOptimized", + "autoScale": { + "enabled": true, + "minNodeCount": 3, + "maxNodeCount": 6 + }, + "autoPause": { + "enabled": true, + "delayInMinutes": 15 + }, + "isComputeIsolationEnabled": false, + "sessionLevelPackagesEnabled": false, + "cacheSize": 50, + "dynamicExecutorAllocation": { + "enabled": false + }, + "lastSucceededTimestamp": "2023-02-17T08:35:06.28Z", + "isAutotuneEnabled": false, + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8226/bigDataPools/BigDatapool8775", + "name": "BigDatapool8775", + "type": "Microsoft.Synapse/workspaces/bigDataPools", + "location": "eastus2", + "tags": {} + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8226/bigDataPools/BigDatapool8775?api-version=2021-06-01-preview", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-c01ca2aed38e53c930bead0eff3a09a3-4295ca5a517e63a1-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "b219fb2f6f652aca0618ee32156a989b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Allow-Headers": "Location", + "Access-Control-Expose-Headers": "Location", + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Fri, 17 Feb 2023 08:35:08 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8226/operationResults/7c4d2630-f8c0-40cf-ab2a-480708cc78dc?api-version=2021-06-01-preview", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "b219fb2f6f652aca0618ee32156a989b", + "x-ms-correlation-request-id": "74847c19-2fec-4a74-abe1-9846720b497e", + "x-ms-ratelimit-remaining-subscription-deletes": "14999", + "x-ms-request-id": "3f9d46fc-d15b-483c-9dd0-fbb18a573407", + "x-ms-routing-request-id": "JAPANEAST:20230217T083508Z:74847c19-2fec-4a74-abe1-9846720b497e" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8226/operationResults/7c4d2630-f8c0-40cf-ab2a-480708cc78dc?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-c01ca2aed38e53c930bead0eff3a09a3-c2fd821caa37d83e-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "2def2e25df59864962535ef739f8a95b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Allow-Headers": "Location", + "Access-Control-Expose-Headers": "Location", + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Fri, 17 Feb 2023 08:35:08 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8226/operationResults/7c4d2630-f8c0-40cf-ab2a-480708cc78dc?api-version=2021-06-01-preview", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "2def2e25df59864962535ef739f8a95b", + "x-ms-correlation-request-id": "0f1d26b9-f1f7-49e4-a318-172068c7cf99", + "x-ms-ratelimit-remaining-subscription-reads": "11949", + "x-ms-request-id": "02f07fae-eb74-4d3e-867e-4da431a1f79f", + "x-ms-routing-request-id": "JAPANEAST:20230217T083508Z:0f1d26b9-f1f7-49e4-a318-172068c7cf99" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8226/operationResults/7c4d2630-f8c0-40cf-ab2a-480708cc78dc?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-c01ca2aed38e53c930bead0eff3a09a3-0daab084bc9e80ee-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "47ac7a5d33080af7798fa41b0496c2b9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Allow-Headers": "Location", + "Access-Control-Expose-Headers": "Location", + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Fri, 17 Feb 2023 08:35:09 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8226/operationResults/7c4d2630-f8c0-40cf-ab2a-480708cc78dc?api-version=2021-06-01-preview", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "47ac7a5d33080af7798fa41b0496c2b9", + "x-ms-correlation-request-id": "84c65aaf-a285-4600-844c-14721beb9c0e", + "x-ms-ratelimit-remaining-subscription-reads": "11948", + "x-ms-request-id": "25c98bea-5583-4130-9759-ee44274a8a40", + "x-ms-routing-request-id": "JAPANEAST:20230217T083510Z:84c65aaf-a285-4600-844c-14721beb9c0e" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8226/operationResults/7c4d2630-f8c0-40cf-ab2a-480708cc78dc?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-c01ca2aed38e53c930bead0eff3a09a3-07682b082cd9e9df-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "e70c92936b7a0d4100d5273cc5895015", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 204, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Date": "Fri, 17 Feb 2023 08:35:11 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "e70c92936b7a0d4100d5273cc5895015", + "x-ms-correlation-request-id": "617c56e9-118c-4e33-864f-205aba584b64", + "x-ms-ratelimit-remaining-subscription-reads": "11947", + "x-ms-request-id": "f555a01b-12ed-4185-9670-a925b7b471a8", + "x-ms-routing-request-id": "JAPANEAST:20230217T083511Z:617c56e9-118c-4e33-864f-205aba584b64" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1055/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace8226/bigDataPools?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-a213022b1d191f8031e83346bd401fb0-ad409b6b40b2f287-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "edd50f9f3da0f25437e4b3ca3b2e81cb", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "12", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:35:11 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "edd50f9f3da0f25437e4b3ca3b2e81cb", + "x-ms-correlation-request-id": "992d448b-74df-41cb-86da-a985ad5ebbb8", + "x-ms-ratelimit-remaining-subscription-reads": "11946", + "x-ms-request-id": "7b6a6aae-ca86-4abf-8e6b-1b72127424d1", + "x-ms-routing-request-id": "JAPANEAST:20230217T083511Z:992d448b-74df-41cb-86da-a985ad5ebbb8" + }, + "ResponseBody": { + "value": [] + } + } + ], + "Variables": { + "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com/", + "RandomSeed": "867841867", + "RESOURCE_MANAGER_URL": null, + "SUBSCRIPTION_ID": "051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3" + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/tests/SessionRecords/BigDatapoolOperationTests/TestBigDatapoolLifeCycleAsync.json b/sdk/synapse/Azure.ResourceManager.Synapse/tests/SessionRecords/BigDatapoolOperationTests/TestBigDatapoolLifeCycleAsync.json new file mode 100644 index 0000000000000..98650e459973c --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/tests/SessionRecords/BigDatapoolOperationTests/TestBigDatapoolLifeCycleAsync.json @@ -0,0 +1,1752 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3?api-version=2021-01-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-11ace424a51c4891d1de1d1b73218281-656ff7bcbea0b723-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "718fe4f6ad245f300928b44e47664416", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "492", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:35:16 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "37eee116-cf77-403c-8c63-ec51fd3f186d", + "x-ms-ratelimit-remaining-subscription-reads": "11945", + "x-ms-request-id": "37eee116-cf77-403c-8c63-ec51fd3f186d", + "x-ms-routing-request-id": "JAPANEAST:20230217T083516Z:37eee116-cf77-403c-8c63-ec51fd3f186d" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3", + "authorizationSource": "RoleBased", + "managedByTenants": [ + { + "tenantId": "2f4a9838-26b7-47ee-be60-ccc1fdec5953" + } + ], + "tags": { + "sub_tagname_1": "sub_tagvalue_1" + }, + "subscriptionId": "051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Synapse Web Tooling", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourcegroups/synapsesdkrp34?api-version=**", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "22", + "Content-Type": "application/json", + "traceparent": "00-d9ff420718e6efa38396273f4f98ff1b-84211417da7ad150-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "1dea3ba397c4831453dff0244cbfb3a8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "eastus2" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "226", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:35:18 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b8336d34-8e39-47bb-bd91-f8b7ec1c7014", + "x-ms-ratelimit-remaining-subscription-writes": "1192", + "x-ms-request-id": "b8336d34-8e39-47bb-bd91-f8b7ec1c7014", + "x-ms-routing-request-id": "JAPANEAST:20230217T083518Z:b8336d34-8e39-47bb-bd91-f8b7ec1c7014" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp34", + "name": "synapsesdkrp34", + "type": "Microsoft.Resources/resourceGroups", + "location": "eastus2", + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp34/providers/Microsoft.Storage/storageAccounts/synapsesdkstorage5989?api-version=2022-09-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "87", + "Content-Type": "application/json", + "traceparent": "00-84f252e9eaeb3346a1d4a00b5b26783b-59dddcb6310dd8a7-00", + "User-Agent": "azsdk-net-ResourceManager.Storage/1.1.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "21507c24fc360ce814dd6b6c8f5ea4ac", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "sku": { + "name": "Standard_GRS" + }, + "kind": "StorageV2", + "location": "eastus2", + "properties": {} + }, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Content-Type": "text/plain; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:35:23 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Storage/locations/eastus2/asyncoperations/b3642e35-e08d-4139-bf78-d7a217ff0ea5?monitor=true\u0026api-version=2022-09-01", + "Pragma": "no-cache", + "Retry-After": "17", + "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "21507c24fc360ce814dd6b6c8f5ea4ac", + "x-ms-correlation-request-id": "8d964be8-340a-45e5-96f2-97ab6b38ce29", + "x-ms-ratelimit-remaining-subscription-writes": "1191", + "x-ms-request-id": "b3642e35-e08d-4139-bf78-d7a217ff0ea5", + "x-ms-routing-request-id": "JAPANEAST:20230217T083524Z:8d964be8-340a-45e5-96f2-97ab6b38ce29" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Storage/locations/eastus2/asyncoperations/b3642e35-e08d-4139-bf78-d7a217ff0ea5?monitor=true\u0026api-version=2022-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-84f252e9eaeb3346a1d4a00b5b26783b-fe673d896ad0774c-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "275a6d9173dea67e52de09e72ba8f4f5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Content-Type": "text/plain; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:35:24 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Storage/locations/eastus2/asyncoperations/b3642e35-e08d-4139-bf78-d7a217ff0ea5?monitor=true\u0026api-version=2022-09-01", + "Pragma": "no-cache", + "Retry-After": "17", + "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "275a6d9173dea67e52de09e72ba8f4f5", + "x-ms-correlation-request-id": "c80f616b-2280-4b33-a4fb-5597cbb8c467", + "x-ms-ratelimit-remaining-subscription-reads": "11944", + "x-ms-request-id": "304468b4-ff02-47d7-b30c-c5c29cd6356f", + "x-ms-routing-request-id": "JAPANEAST:20230217T083524Z:c80f616b-2280-4b33-a4fb-5597cbb8c467" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Storage/locations/eastus2/asyncoperations/b3642e35-e08d-4139-bf78-d7a217ff0ea5?monitor=true\u0026api-version=2022-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-84f252e9eaeb3346a1d4a00b5b26783b-a68f7c2505ca9c0d-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "0a49443b0a6bd0041d3a065a469f48e9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1526", + "Content-Type": "application/json", + "Date": "Fri, 17 Feb 2023 08:35:41 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "0a49443b0a6bd0041d3a065a469f48e9", + "x-ms-correlation-request-id": "a53254bc-399b-4968-bb63-25dded215d28", + "x-ms-ratelimit-remaining-subscription-reads": "11943", + "x-ms-request-id": "1d621cd9-15b0-4bcb-bf39-94fd5554f351", + "x-ms-routing-request-id": "JAPANEAST:20230217T083541Z:a53254bc-399b-4968-bb63-25dded215d28" + }, + "ResponseBody": { + "sku": { + "name": "Standard_GRS", + "tier": "Standard" + }, + "kind": "StorageV2", + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp34/providers/Microsoft.Storage/storageAccounts/synapsesdkstorage5989", + "name": "synapsesdkstorage5989", + "type": "Microsoft.Storage/storageAccounts", + "location": "eastus2", + "tags": {}, + "properties": { + "keyCreationTime": { + "key1": "2023-02-17T08:35:20.4966997Z", + "key2": "2023-02-17T08:35:20.4966997Z" + }, + "privateEndpointConnections": [], + "minimumTlsVersion": "TLS1_0", + "allowBlobPublicAccess": true, + "networkAcls": { + "bypass": "AzureServices", + "virtualNetworkRules": [], + "ipRules": [], + "defaultAction": "Allow" + }, + "supportsHttpsTrafficOnly": true, + "encryption": { + "services": { + "file": { + "keyType": "Account", + "enabled": true, + "lastEnabledTime": "2023-02-17T08:35:21.2779950Z" + }, + "blob": { + "keyType": "Account", + "enabled": true, + "lastEnabledTime": "2023-02-17T08:35:21.2779950Z" + } + }, + "keySource": "Microsoft.Storage" + }, + "accessTier": "Hot", + "provisioningState": "Succeeded", + "creationTime": "2023-02-17T08:35:20.3716895Z", + "primaryEndpoints": { + "dfs": "https://synapsesdkstorage5989.dfs.core.windows.net/", + "web": "https://synapsesdkstorage5989.z20.web.core.windows.net/", + "blob": "https://synapsesdkstorage5989.blob.core.windows.net/", + "queue": "https://synapsesdkstorage5989.queue.core.windows.net/", + "table": "https://synapsesdkstorage5989.table.core.windows.net/", + "file": "https://synapsesdkstorage5989.file.core.windows.net/" + }, + "primaryLocation": "eastus2", + "statusOfPrimary": "available", + "secondaryLocation": "centralus", + "statusOfSecondary": "available" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp34/providers/Microsoft.Storage/storageAccounts/synapsesdkstorage5989/listKeys?api-version=2022-09-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "0", + "traceparent": "00-1e4aef37d305ed805b3d1b0f0b64be9a-da51d4fccf473a11-00", + "User-Agent": "azsdk-net-ResourceManager.Storage/1.1.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "21dbc3e27d0367cdc4ad55c54a78ea73", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "380", + "Content-Type": "application/json", + "Date": "Fri, 17 Feb 2023 08:35:41 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "21dbc3e27d0367cdc4ad55c54a78ea73", + "x-ms-correlation-request-id": "04b0eef6-d832-4229-bffb-73ddcf58211a", + "x-ms-ratelimit-remaining-subscription-resource-requests": "11998", + "x-ms-request-id": "db2f50e6-212d-4f10-af85-1e3728959504", + "x-ms-routing-request-id": "JAPANEAST:20230217T083542Z:04b0eef6-d832-4229-bffb-73ddcf58211a" + }, + "ResponseBody": { + "keys": [ + { + "creationTime": "2023-02-17T08:35:20.4966997Z", + "keyName": "key1", + "value": "1qwu1GZ/AAymkHqkW8SrEBsGzC5kRF0fTToDuG/pozroIJWF8Ae1YVjiJOFqvw9S3YlJaPUJBkiV\u002BAStDggvyg==", + "permissions": "FULL" + }, + { + "creationTime": "2023-02-17T08:35:20.4966997Z", + "keyName": "key2", + "value": "BvIdH9WnLIU9SXuXJ7nlJe9mZdTZOW8JcZoAtwqwLpej8ATDUodgRLMsGcZjAAr1CP4nY91XNy74\u002BAStsvGn4A==", + "permissions": "FULL" + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp34/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace7263?api-version=2021-06-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "302", + "Content-Type": "application/json", + "traceparent": "00-96cdb1c26344d45f71022ad93d41e42f-d666a26708355b24-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "e07f0dc03bf068868909a36d235fb396", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "identity": { + "type": "SystemAssigned" + }, + "tags": {}, + "location": "eastus2", + "properties": { + "defaultDataLakeStorage": { + "accountUrl": "https://synapsesdkstorage5989.dfs.core.windows.net/", + "filesystem": "synapsesdkfilesys7017" + }, + "sqlAdministratorLoginPassword": "Password1!9316", + "sqlAdministratorLogin": "sshuser8977" + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp34/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace7263/operationStatuses/4618a170-53bc-4b4f-b028-c0fdda2a6c6c?api-version=2021-06-01", + "Cache-Control": "no-cache", + "Content-Length": "1473", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:35:48 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "e07f0dc03bf068868909a36d235fb396", + "x-ms-correlation-request-id": "cdf522b1-f169-40d9-9cc7-f1431b3c13b9", + "x-ms-ratelimit-remaining-subscription-writes": "1190", + "x-ms-request-id": "a7c1ae02-e8cb-4fda-ad9c-ffa2bb851801", + "x-ms-routing-request-id": "JAPANEAST:20230217T083549Z:cdf522b1-f169-40d9-9cc7-f1431b3c13b9" + }, + "ResponseBody": { + "properties": { + "defaultDataLakeStorage": { + "createManagedPrivateEndpoint": false, + "accountUrl": "https://synapsesdkstorage5989.dfs.core.windows.net/", + "filesystem": "synapsesdkfilesys7017" + }, + "encryption": { + "doubleEncryptionEnabled": false + }, + "provisioningState": "Provisioning", + "connectivityEndpoints": { + "web": "https://web.azuresynapse.net?workspace=%2fsubscriptions%2f051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3%2fresourceGroups%2fsynapsesdkrp34%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fsynapsesdkworkspace7263", + "dev": "https://synapsesdkworkspace7263.dev.azuresynapse.net", + "sqlOnDemand": "synapsesdkworkspace7263-ondemand.sql.azuresynapse.net", + "sql": "synapsesdkworkspace7263.sql.azuresynapse.net" + }, + "managedResourceGroupName": "synapseworkspace-managedrg-8560b00f-803b-4b10-83d2-8b2f024991a9", + "privateEndpointConnections": [], + "workspaceUID": "b2b4b171-bd5a-49bf-8522-660788276671", + "extraProperties": { + "WorkspaceType": "Normal" + }, + "publicNetworkAccess": "Enabled", + "cspWorkspaceAdminProperties": { + "initialWorkspaceAdminObjectId": "5adcf4d8-4923-420e-ab0b-f6e5fc718b42" + }, + "trustedServiceBypassEnabled": false + }, + "type": "Microsoft.Synapse/workspaces", + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp34/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace7263", + "location": "eastus2", + "name": "synapsesdkworkspace7263", + "identity": { + "type": "SystemAssigned", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "principalId": "cd9a5f86-681f-4fc5-a921-5089849c2e4c" + }, + "tags": {} + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp34/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace7263/operationStatuses/4618a170-53bc-4b4f-b028-c0fdda2a6c6c?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-96cdb1c26344d45f71022ad93d41e42f-e35879961d147af5-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "9286729208c888f254b97a7329f9a14d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:35:49 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "9286729208c888f254b97a7329f9a14d", + "x-ms-correlation-request-id": "739a0fda-7598-4be2-99bb-94e1eb8d6a00", + "x-ms-ratelimit-remaining-subscription-reads": "11942", + "x-ms-request-id": "8e061079-80f3-4232-9359-15bd4287a05a", + "x-ms-routing-request-id": "JAPANEAST:20230217T083549Z:739a0fda-7598-4be2-99bb-94e1eb8d6a00" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp34/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace7263/operationStatuses/4618a170-53bc-4b4f-b028-c0fdda2a6c6c?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-96cdb1c26344d45f71022ad93d41e42f-608b2fde52317790-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "732b2fa2a682ce154f09feaa7dd22903", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:35:50 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "732b2fa2a682ce154f09feaa7dd22903", + "x-ms-correlation-request-id": "4b41119e-7cc6-4be1-b0d1-4df4f7388ced", + "x-ms-ratelimit-remaining-subscription-reads": "11941", + "x-ms-request-id": "e6aef849-a37c-41b1-a816-54e7cba01c8b", + "x-ms-routing-request-id": "JAPANEAST:20230217T083551Z:4b41119e-7cc6-4be1-b0d1-4df4f7388ced" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp34/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace7263/operationStatuses/4618a170-53bc-4b4f-b028-c0fdda2a6c6c?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-96cdb1c26344d45f71022ad93d41e42f-c22132bdb5b2fa60-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "b0da536421d916ce11df7819774b4de8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:35:52 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "b0da536421d916ce11df7819774b4de8", + "x-ms-correlation-request-id": "c539422d-0723-4237-aab7-63e7dfe5e97d", + "x-ms-ratelimit-remaining-subscription-reads": "11940", + "x-ms-request-id": "32288831-7227-4984-807a-21557a47d93c", + "x-ms-routing-request-id": "JAPANEAST:20230217T083552Z:c539422d-0723-4237-aab7-63e7dfe5e97d" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp34/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace7263/operationStatuses/4618a170-53bc-4b4f-b028-c0fdda2a6c6c?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-96cdb1c26344d45f71022ad93d41e42f-a149315eb7b9ee57-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "0f1170a4315aebce5db742bf0a470a81", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:35:53 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "0f1170a4315aebce5db742bf0a470a81", + "x-ms-correlation-request-id": "26ccfc7e-a4b9-4051-a581-b48f6bd12f7f", + "x-ms-ratelimit-remaining-subscription-reads": "11939", + "x-ms-request-id": "86c3272c-f571-459c-95ac-fd3a175cd405", + "x-ms-routing-request-id": "JAPANEAST:20230217T083554Z:26ccfc7e-a4b9-4051-a581-b48f6bd12f7f" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp34/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace7263/operationStatuses/4618a170-53bc-4b4f-b028-c0fdda2a6c6c?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-96cdb1c26344d45f71022ad93d41e42f-2d9cad4bac8ce88a-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "d60e768ff01e8174611461a22efc5704", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:35:56 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "d60e768ff01e8174611461a22efc5704", + "x-ms-correlation-request-id": "5be8bff3-2b78-4b9b-b44c-0c3a8dfb2d01", + "x-ms-ratelimit-remaining-subscription-reads": "11938", + "x-ms-request-id": "4c1ba291-5606-4356-860f-ed9a811a574f", + "x-ms-routing-request-id": "JAPANEAST:20230217T083556Z:5be8bff3-2b78-4b9b-b44c-0c3a8dfb2d01" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp34/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace7263/operationStatuses/4618a170-53bc-4b4f-b028-c0fdda2a6c6c?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-96cdb1c26344d45f71022ad93d41e42f-96211cbc65dbfdee-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "0d0515bc1ac033a984ef5222de0f0cca", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:36:00 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "0d0515bc1ac033a984ef5222de0f0cca", + "x-ms-correlation-request-id": "c75226af-1283-4883-b5f1-284d6716cace", + "x-ms-ratelimit-remaining-subscription-reads": "11937", + "x-ms-request-id": "4b16d5aa-fc28-451d-8b9e-0e66ed88ae38", + "x-ms-routing-request-id": "JAPANEAST:20230217T083601Z:c75226af-1283-4883-b5f1-284d6716cace" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp34/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace7263/operationStatuses/4618a170-53bc-4b4f-b028-c0fdda2a6c6c?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-96cdb1c26344d45f71022ad93d41e42f-b0b00a1dce8720e7-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "0089f6d5773db4c9fc8fae45cf2cbc61", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:36:08 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "0089f6d5773db4c9fc8fae45cf2cbc61", + "x-ms-correlation-request-id": "25427695-359c-420f-a317-fa833e239f15", + "x-ms-ratelimit-remaining-subscription-reads": "11936", + "x-ms-request-id": "8b9254f6-c072-4938-a347-3d44b3fdf599", + "x-ms-routing-request-id": "JAPANEAST:20230217T083609Z:25427695-359c-420f-a317-fa833e239f15" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp34/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace7263/operationStatuses/4618a170-53bc-4b4f-b028-c0fdda2a6c6c?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-96cdb1c26344d45f71022ad93d41e42f-9cb9fd88562badfc-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "f4023e5ffd4275c1ccda512f9d51a351", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:36:25 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "f4023e5ffd4275c1ccda512f9d51a351", + "x-ms-correlation-request-id": "2700c821-8118-4f6b-969c-3cc61cf14ba9", + "x-ms-ratelimit-remaining-subscription-reads": "11935", + "x-ms-request-id": "a82416e7-8de9-4ea9-98c0-c3c58d1f504f", + "x-ms-routing-request-id": "JAPANEAST:20230217T083626Z:2700c821-8118-4f6b-969c-3cc61cf14ba9" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp34/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace7263/operationStatuses/4618a170-53bc-4b4f-b028-c0fdda2a6c6c?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-96cdb1c26344d45f71022ad93d41e42f-8b40110216649f22-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "38cc9708567245c74b5110306b646458", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:36:57 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "38cc9708567245c74b5110306b646458", + "x-ms-correlation-request-id": "3428c5a4-d40c-4571-b444-6c226af0b8e9", + "x-ms-ratelimit-remaining-subscription-reads": "11934", + "x-ms-request-id": "d642369e-d9ae-40f6-996a-a1b4a1943604", + "x-ms-routing-request-id": "JAPANEAST:20230217T083658Z:3428c5a4-d40c-4571-b444-6c226af0b8e9" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp34/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace7263/operationStatuses/4618a170-53bc-4b4f-b028-c0fdda2a6c6c?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-96cdb1c26344d45f71022ad93d41e42f-7a62e2a1fe3d586c-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "9fc2f132170cd88735143462259a16aa", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:37:31 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "9fc2f132170cd88735143462259a16aa", + "x-ms-correlation-request-id": "35551f87-53d7-43c1-bb00-a5d8384f4d9d", + "x-ms-ratelimit-remaining-subscription-reads": "11933", + "x-ms-request-id": "95a28751-352c-41c9-b387-8a067b175e27", + "x-ms-routing-request-id": "JAPANEAST:20230217T083731Z:35551f87-53d7-43c1-bb00-a5d8384f4d9d" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp34/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace7263/operationStatuses/4618a170-53bc-4b4f-b028-c0fdda2a6c6c?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-96cdb1c26344d45f71022ad93d41e42f-ef7abd3fb59c1a64-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "373d5cec845f09ef77bda9f0ec900a68", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:38:03 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "373d5cec845f09ef77bda9f0ec900a68", + "x-ms-correlation-request-id": "1094175c-88d0-49d9-aa4a-183df222d7cd", + "x-ms-ratelimit-remaining-subscription-reads": "11932", + "x-ms-request-id": "7f305deb-6bfa-46f2-9314-a60d9b598665", + "x-ms-routing-request-id": "JAPANEAST:20230217T083803Z:1094175c-88d0-49d9-aa4a-183df222d7cd" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp34/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace7263/operationStatuses/4618a170-53bc-4b4f-b028-c0fdda2a6c6c?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-96cdb1c26344d45f71022ad93d41e42f-361bb83167622a5b-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "acfcf975038ff0450ff4035d22641fb1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "22", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:38:35 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "acfcf975038ff0450ff4035d22641fb1", + "x-ms-correlation-request-id": "f7801c21-00a2-4bfb-9c80-60dab92b299c", + "x-ms-ratelimit-remaining-subscription-reads": "11931", + "x-ms-request-id": "629d08d4-e461-454e-b8ca-3809509d1557", + "x-ms-routing-request-id": "JAPANEAST:20230217T083836Z:f7801c21-00a2-4bfb-9c80-60dab92b299c" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp34/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace7263?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-96cdb1c26344d45f71022ad93d41e42f-ca5ae419d6488d97-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "0e44663a2c27aef902b9284e6e96eba5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1531", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:38:35 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "0e44663a2c27aef902b9284e6e96eba5", + "x-ms-correlation-request-id": "e50809b2-4ffe-4ba1-9fc6-a61ac5fb48cd", + "x-ms-ratelimit-remaining-subscription-reads": "11930", + "x-ms-request-id": "2adf5037-2d03-4056-96f3-09819cf3faaa", + "x-ms-routing-request-id": "JAPANEAST:20230217T083836Z:e50809b2-4ffe-4ba1-9fc6-a61ac5fb48cd" + }, + "ResponseBody": { + "properties": { + "defaultDataLakeStorage": { + "createManagedPrivateEndpoint": false, + "accountUrl": "https://synapsesdkstorage5989.dfs.core.windows.net/", + "filesystem": "synapsesdkfilesys7017" + }, + "encryption": { + "doubleEncryptionEnabled": false + }, + "provisioningState": "Succeeded", + "connectivityEndpoints": { + "web": "https://web.azuresynapse.net?workspace=%2fsubscriptions%2f051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3%2fresourceGroups%2fsynapsesdkrp34%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fsynapsesdkworkspace7263", + "dev": "https://synapsesdkworkspace7263.dev.azuresynapse.net", + "sqlOnDemand": "synapsesdkworkspace7263-ondemand.sql.azuresynapse.net", + "sql": "synapsesdkworkspace7263.sql.azuresynapse.net" + }, + "managedResourceGroupName": "synapseworkspace-managedrg-8560b00f-803b-4b10-83d2-8b2f024991a9", + "sqlAdministratorLogin": "sshuser8977", + "privateEndpointConnections": [], + "workspaceUID": "b2b4b171-bd5a-49bf-8522-660788276671", + "extraProperties": { + "WorkspaceType": "Normal", + "IsScopeEnabled": false + }, + "publicNetworkAccess": "Enabled", + "cspWorkspaceAdminProperties": { + "initialWorkspaceAdminObjectId": "5adcf4d8-4923-420e-ab0b-f6e5fc718b42" + }, + "trustedServiceBypassEnabled": false + }, + "type": "Microsoft.Synapse/workspaces", + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp34/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace7263", + "location": "eastus2", + "name": "synapsesdkworkspace7263", + "identity": { + "type": "SystemAssigned", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "principalId": "cd9a5f86-681f-4fc5-a921-5089849c2e4c" + }, + "tags": {} + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp34/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace7263/bigDataPools/BigDatapool2943?api-version=2021-06-01-preview", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "250", + "Content-Type": "application/json", + "traceparent": "00-f53b4ceb11aa082c51e73cebf9920325-0438471754aa7006-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "9d2ceccb1a6a16e94c276a8091e6129e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": {}, + "location": "eastus2", + "properties": { + "autoScale": { + "minNodeCount": 3, + "enabled": false, + "maxNodeCount": 6 + }, + "autoPause": { + "delayInMinutes": 15, + "enabled": false + }, + "nodeCount": 3, + "sparkVersion": "2.4", + "nodeSize": "Small", + "nodeSizeFamily": "MemoryOptimized" + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Allow-Headers": "Location", + "Access-Control-Expose-Headers": "Location", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp34/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace7263/operationStatuses/e22322b8-3eac-42f6-bba5-3b70cea59dd7?api-version=2021-06-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "745", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:38:38 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp34/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace7263/operationResults/e22322b8-3eac-42f6-bba5-3b70cea59dd7?api-version=2021-06-01-preview", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "9d2ceccb1a6a16e94c276a8091e6129e", + "x-ms-correlation-request-id": "321e0942-e4ca-4474-9cc1-f55143885169", + "x-ms-ratelimit-remaining-subscription-writes": "1189", + "x-ms-request-id": "b7d2d5ba-b9ae-4713-a4d0-962b88859d42", + "x-ms-routing-request-id": "JAPANEAST:20230217T083839Z:321e0942-e4ca-4474-9cc1-f55143885169" + }, + "ResponseBody": { + "properties": { + "creationDate": "2023-02-17T08:38:39.1333333Z", + "sparkVersion": "2.4", + "nodeCount": 3, + "nodeSize": "Small", + "nodeSizeFamily": "MemoryOptimized", + "autoScale": { + "enabled": false, + "minNodeCount": 3, + "maxNodeCount": 6 + }, + "autoPause": { + "enabled": false, + "delayInMinutes": 15 + }, + "isComputeIsolationEnabled": false, + "sessionLevelPackagesEnabled": false, + "cacheSize": 50, + "dynamicExecutorAllocation": { + "enabled": false + }, + "isAutotuneEnabled": false, + "provisioningState": "Provisioning" + }, + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp34/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace7263/bigDataPools/BigDatapool2943", + "name": "BigDatapool2943", + "type": "Microsoft.Synapse/workspaces/bigDataPools", + "location": "eastus2", + "tags": {} + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp34/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace7263/operationStatuses/e22322b8-3eac-42f6-bba5-3b70cea59dd7?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-f53b4ceb11aa082c51e73cebf9920325-7e030b8deac55ca4-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "7757535e14f34bd05af7da058e2d71d2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:38:38 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "7757535e14f34bd05af7da058e2d71d2", + "x-ms-correlation-request-id": "8de96bc2-ae62-466d-ab3a-93a9434e13e9", + "x-ms-ratelimit-remaining-subscription-reads": "11929", + "x-ms-request-id": "aed65b58-eb30-4c6b-97c7-b6a07744c2fa", + "x-ms-routing-request-id": "JAPANEAST:20230217T083839Z:8de96bc2-ae62-466d-ab3a-93a9434e13e9" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp34/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace7263/operationStatuses/e22322b8-3eac-42f6-bba5-3b70cea59dd7?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-f53b4ceb11aa082c51e73cebf9920325-e7e370b3c6a0409c-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "e076af155964890ea42c4fc0440e1fca", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:38:40 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "e076af155964890ea42c4fc0440e1fca", + "x-ms-correlation-request-id": "f7f386dd-af29-4ad4-b9b2-86417a8ad2b1", + "x-ms-ratelimit-remaining-subscription-reads": "11928", + "x-ms-request-id": "e346dd82-8fb7-46b1-9c8a-e13e6122aaf8", + "x-ms-routing-request-id": "JAPANEAST:20230217T083841Z:f7f386dd-af29-4ad4-b9b2-86417a8ad2b1" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp34/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace7263/operationStatuses/e22322b8-3eac-42f6-bba5-3b70cea59dd7?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-f53b4ceb11aa082c51e73cebf9920325-25a83e7591feca0c-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "3d2260ae9b8fe3aae53bf10366437120", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "22", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:38:41 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "3d2260ae9b8fe3aae53bf10366437120", + "x-ms-correlation-request-id": "0b9603d6-5566-4b68-8327-d3b72651f4a8", + "x-ms-ratelimit-remaining-subscription-reads": "11927", + "x-ms-request-id": "6f986987-1694-4e5d-b4df-9456f4283ae7", + "x-ms-routing-request-id": "JAPANEAST:20230217T083842Z:0b9603d6-5566-4b68-8327-d3b72651f4a8" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp34/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace7263/bigDataPools/BigDatapool2943?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-f53b4ceb11aa082c51e73cebf9920325-cce9ca6170b57ac6-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "47c40338980b05a544cdd3c7c410064c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "793", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:38:42 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "47c40338980b05a544cdd3c7c410064c", + "x-ms-correlation-request-id": "0485ea53-7b66-4944-9fc9-eea5e014d00a", + "x-ms-ratelimit-remaining-subscription-reads": "11926", + "x-ms-request-id": "169a94e5-ecd5-40f2-a41e-088df3e919c8", + "x-ms-routing-request-id": "JAPANEAST:20230217T083842Z:0485ea53-7b66-4944-9fc9-eea5e014d00a" + }, + "ResponseBody": { + "properties": { + "creationDate": "2023-02-17T08:38:39.1333333Z", + "sparkVersion": "2.4", + "nodeCount": 3, + "nodeSize": "Small", + "nodeSizeFamily": "MemoryOptimized", + "autoScale": { + "enabled": false, + "minNodeCount": 3, + "maxNodeCount": 6 + }, + "autoPause": { + "enabled": false, + "delayInMinutes": 15 + }, + "isComputeIsolationEnabled": false, + "sessionLevelPackagesEnabled": false, + "cacheSize": 50, + "dynamicExecutorAllocation": { + "enabled": false + }, + "lastSucceededTimestamp": "2023-02-17T08:38:42.11Z", + "isAutotuneEnabled": false, + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp34/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace7263/bigDataPools/BigDatapool2943", + "name": "BigDatapool2943", + "type": "Microsoft.Synapse/workspaces/bigDataPools", + "location": "eastus2", + "tags": {} + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp34/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace7263/bigDataPools/BigDatapool2943?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-136923cf46ec20f40ecfa06d9413cd75-5fc3f533eb20140d-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "2d5610d8330b7a430493fb29680a2260", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "793", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:38:42 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "2d5610d8330b7a430493fb29680a2260", + "x-ms-correlation-request-id": "80cc3293-d209-4865-8b86-7781c4d2146c", + "x-ms-ratelimit-remaining-subscription-reads": "11925", + "x-ms-request-id": "3ffe5a63-5bab-42b0-a73d-849b203c6ad2", + "x-ms-routing-request-id": "JAPANEAST:20230217T083843Z:80cc3293-d209-4865-8b86-7781c4d2146c" + }, + "ResponseBody": { + "properties": { + "creationDate": "2023-02-17T08:38:39.1333333Z", + "sparkVersion": "2.4", + "nodeCount": 3, + "nodeSize": "Small", + "nodeSizeFamily": "MemoryOptimized", + "autoScale": { + "enabled": false, + "minNodeCount": 3, + "maxNodeCount": 6 + }, + "autoPause": { + "enabled": false, + "delayInMinutes": 15 + }, + "isComputeIsolationEnabled": false, + "sessionLevelPackagesEnabled": false, + "cacheSize": 50, + "dynamicExecutorAllocation": { + "enabled": false + }, + "lastSucceededTimestamp": "2023-02-17T08:38:42.11Z", + "isAutotuneEnabled": false, + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp34/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace7263/bigDataPools/BigDatapool2943", + "name": "BigDatapool2943", + "type": "Microsoft.Synapse/workspaces/bigDataPools", + "location": "eastus2", + "tags": {} + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp34/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace7263/bigDataPools/BigDatapool2943?api-version=2021-06-01-preview", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "33", + "Content-Type": "application/json", + "traceparent": "00-7a20205f2ecfff94d2ff1f68f3983588-9e78876ea4a2c015-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "41872ebad74a16bfbb1cf8c1c7e31ed4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "TestTag": "TestUpdate" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "815", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:38:44 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "41872ebad74a16bfbb1cf8c1c7e31ed4", + "x-ms-correlation-request-id": "fccce679-3933-45b7-b182-b1fb6a90aaaa", + "x-ms-ratelimit-remaining-subscription-writes": "1188", + "x-ms-request-id": "89c3e187-7fa9-4ef9-a3d0-c6c70f73f915", + "x-ms-routing-request-id": "JAPANEAST:20230217T083845Z:fccce679-3933-45b7-b182-b1fb6a90aaaa" + }, + "ResponseBody": { + "properties": { + "creationDate": "2023-02-17T08:38:39.1333333Z", + "sparkVersion": "2.4", + "nodeCount": 3, + "nodeSize": "Small", + "nodeSizeFamily": "MemoryOptimized", + "autoScale": { + "enabled": false, + "minNodeCount": 3, + "maxNodeCount": 6 + }, + "autoPause": { + "enabled": false, + "delayInMinutes": 15 + }, + "isComputeIsolationEnabled": false, + "sessionLevelPackagesEnabled": false, + "cacheSize": 50, + "dynamicExecutorAllocation": { + "enabled": false + }, + "lastSucceededTimestamp": "2023-02-17T08:38:42.11Z", + "isAutotuneEnabled": false, + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp34/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace7263/bigDataPools/BigDatapool2943", + "name": "BigDatapool2943", + "type": "Microsoft.Synapse/workspaces/bigDataPools", + "location": "eastus2", + "tags": { + "TestTag": "TestUpdate" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp34/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace7263/bigDataPools/BigDatapool2943?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-09b9584761b22af5f22cd30c023f246b-5c7ff532f836769a-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "562ba43543ec0514bf4942779c7c9d3a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "815", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:38:44 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "562ba43543ec0514bf4942779c7c9d3a", + "x-ms-correlation-request-id": "3c7024fb-ccc7-4451-9829-5d2f7c784383", + "x-ms-ratelimit-remaining-subscription-reads": "11924", + "x-ms-request-id": "39670a9e-98f4-466a-bec3-70ca2491b3c5", + "x-ms-routing-request-id": "JAPANEAST:20230217T083845Z:3c7024fb-ccc7-4451-9829-5d2f7c784383" + }, + "ResponseBody": { + "properties": { + "creationDate": "2023-02-17T08:38:39.1333333Z", + "sparkVersion": "2.4", + "nodeCount": 3, + "nodeSize": "Small", + "nodeSizeFamily": "MemoryOptimized", + "autoScale": { + "enabled": false, + "minNodeCount": 3, + "maxNodeCount": 6 + }, + "autoPause": { + "enabled": false, + "delayInMinutes": 15 + }, + "isComputeIsolationEnabled": false, + "sessionLevelPackagesEnabled": false, + "cacheSize": 50, + "dynamicExecutorAllocation": { + "enabled": false + }, + "lastSucceededTimestamp": "2023-02-17T08:38:42.11Z", + "isAutotuneEnabled": false, + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp34/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace7263/bigDataPools/BigDatapool2943", + "name": "BigDatapool2943", + "type": "Microsoft.Synapse/workspaces/bigDataPools", + "location": "eastus2", + "tags": { + "TestTag": "TestUpdate" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp34/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace7263/bigDataPools/BigDatapool2943?api-version=2021-06-01-preview", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "234", + "Content-Type": "application/json", + "traceparent": "00-d7e8096721bdf93d665438370109d21f-9e81712c57f06eb6-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "960c72aac5890001514072ee3a81b321", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": {}, + "location": "eastus2", + "properties": { + "autoScale": { + "minNodeCount": 3, + "enabled": true, + "maxNodeCount": 6 + }, + "autoPause": { + "delayInMinutes": 15, + "enabled": true + }, + "sparkVersion": "2.4", + "nodeSize": "Small", + "nodeSizeFamily": "MemoryOptimized" + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Allow-Headers": "Location", + "Access-Control-Expose-Headers": "Location", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp34/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace7263/operationStatuses/f8b82788-d1b5-4aeb-8db7-ae952782b0fc?api-version=2021-06-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "794", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:38:45 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp34/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace7263/operationResults/f8b82788-d1b5-4aeb-8db7-ae952782b0fc?api-version=2021-06-01-preview", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "960c72aac5890001514072ee3a81b321", + "x-ms-correlation-request-id": "7c88b715-c1e2-4ed9-9bb2-8067529affa5", + "x-ms-ratelimit-remaining-subscription-writes": "1187", + "x-ms-request-id": "9c860245-4da2-4637-9ec5-1aa0bccfef9e", + "x-ms-routing-request-id": "JAPANEAST:20230217T083846Z:7c88b715-c1e2-4ed9-9bb2-8067529affa5" + }, + "ResponseBody": { + "properties": { + "creationDate": "2023-02-17T08:38:39.1333333Z", + "sparkVersion": "2.4", + "nodeCount": 0, + "nodeSize": "Small", + "nodeSizeFamily": "MemoryOptimized", + "autoScale": { + "enabled": true, + "minNodeCount": 3, + "maxNodeCount": 6 + }, + "autoPause": { + "enabled": true, + "delayInMinutes": 15 + }, + "isComputeIsolationEnabled": false, + "sessionLevelPackagesEnabled": false, + "cacheSize": 50, + "dynamicExecutorAllocation": { + "enabled": false + }, + "lastSucceededTimestamp": "2023-02-17T08:38:42.11Z", + "isAutotuneEnabled": false, + "provisioningState": "Provisioning" + }, + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp34/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace7263/bigDataPools/BigDatapool2943", + "name": "BigDatapool2943", + "type": "Microsoft.Synapse/workspaces/bigDataPools", + "location": "eastus2", + "tags": {} + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp34/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace7263/operationStatuses/f8b82788-d1b5-4aeb-8db7-ae952782b0fc?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-d7e8096721bdf93d665438370109d21f-c343d8ecda362040-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "5416be7f88d76f4ba32a05abd125ca3e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:38:45 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "5416be7f88d76f4ba32a05abd125ca3e", + "x-ms-correlation-request-id": "f87f0ceb-2a6c-4c25-9619-a7f54153da00", + "x-ms-ratelimit-remaining-subscription-reads": "11923", + "x-ms-request-id": "4e025f7d-f578-407e-9707-4cffa13a1f29", + "x-ms-routing-request-id": "JAPANEAST:20230217T083846Z:f87f0ceb-2a6c-4c25-9619-a7f54153da00" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp34/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace7263/operationStatuses/f8b82788-d1b5-4aeb-8db7-ae952782b0fc?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-d7e8096721bdf93d665438370109d21f-5f72b630e170b8ff-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "76022196da88de5afe947b0744016c09", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:38:47 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "76022196da88de5afe947b0744016c09", + "x-ms-correlation-request-id": "26b02e7b-cf5d-4bc3-bddb-5aae6aa65a74", + "x-ms-ratelimit-remaining-subscription-reads": "11922", + "x-ms-request-id": "7cdc3369-4b18-4757-aca3-dbbe86d56ee6", + "x-ms-routing-request-id": "JAPANEAST:20230217T083848Z:26b02e7b-cf5d-4bc3-bddb-5aae6aa65a74" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp34/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace7263/operationStatuses/f8b82788-d1b5-4aeb-8db7-ae952782b0fc?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-d7e8096721bdf93d665438370109d21f-418b9769f4dbafbc-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "7c6e32c65e6bec49da8420b4c6c8a6f4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:38:48 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "7c6e32c65e6bec49da8420b4c6c8a6f4", + "x-ms-correlation-request-id": "fe908d9c-89d0-46f7-98b4-8b9741957bf2", + "x-ms-ratelimit-remaining-subscription-reads": "11921", + "x-ms-request-id": "e2c97564-8a42-4237-8326-25ef6c19553b", + "x-ms-routing-request-id": "JAPANEAST:20230217T083849Z:fe908d9c-89d0-46f7-98b4-8b9741957bf2" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp34/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace7263/operationStatuses/f8b82788-d1b5-4aeb-8db7-ae952782b0fc?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-d7e8096721bdf93d665438370109d21f-57f737017314a1bb-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "726943b70344a5b7633756420c442ba1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "22", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:38:50 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "726943b70344a5b7633756420c442ba1", + "x-ms-correlation-request-id": "45bfedda-32ee-49cb-9821-1104d61c8d14", + "x-ms-ratelimit-remaining-subscription-reads": "11920", + "x-ms-request-id": "5ac46884-74e7-47e8-baba-3b9324ad7aa4", + "x-ms-routing-request-id": "JAPANEAST:20230217T083850Z:45bfedda-32ee-49cb-9821-1104d61c8d14" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp34/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace7263/bigDataPools/BigDatapool2943?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-d7e8096721bdf93d665438370109d21f-b5eaeba2d19ed9e7-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "9ee4fbbe4eb638d2d8169b03baa61736", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "791", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:38:50 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "9ee4fbbe4eb638d2d8169b03baa61736", + "x-ms-correlation-request-id": "00566a4b-2aa3-4299-85a9-067684b8f70f", + "x-ms-ratelimit-remaining-subscription-reads": "11919", + "x-ms-request-id": "c66e8b48-0eee-46a6-a2e5-6149cf9ab000", + "x-ms-routing-request-id": "JAPANEAST:20230217T083851Z:00566a4b-2aa3-4299-85a9-067684b8f70f" + }, + "ResponseBody": { + "properties": { + "creationDate": "2023-02-17T08:38:39.1333333Z", + "sparkVersion": "2.4", + "nodeCount": 0, + "nodeSize": "Small", + "nodeSizeFamily": "MemoryOptimized", + "autoScale": { + "enabled": true, + "minNodeCount": 3, + "maxNodeCount": 6 + }, + "autoPause": { + "enabled": true, + "delayInMinutes": 15 + }, + "isComputeIsolationEnabled": false, + "sessionLevelPackagesEnabled": false, + "cacheSize": 50, + "dynamicExecutorAllocation": { + "enabled": false + }, + "lastSucceededTimestamp": "2023-02-17T08:38:49.99Z", + "isAutotuneEnabled": false, + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp34/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace7263/bigDataPools/BigDatapool2943", + "name": "BigDatapool2943", + "type": "Microsoft.Synapse/workspaces/bigDataPools", + "location": "eastus2", + "tags": {} + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp34/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace7263/bigDataPools?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "005087eef997c3c57bc918330706df96", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "803", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:38:51 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "005087eef997c3c57bc918330706df96", + "x-ms-correlation-request-id": "d9bc9778-5426-4e2e-8fbe-b89d88cf616a", + "x-ms-ratelimit-remaining-subscription-reads": "11918", + "x-ms-request-id": "71903936-dfef-433b-8ca3-c061f64d0c20", + "x-ms-routing-request-id": "JAPANEAST:20230217T083851Z:d9bc9778-5426-4e2e-8fbe-b89d88cf616a" + }, + "ResponseBody": { + "value": [ + { + "properties": { + "creationDate": "2023-02-17T08:38:39.1333333Z", + "sparkVersion": "2.4", + "nodeCount": 0, + "nodeSize": "Small", + "nodeSizeFamily": "MemoryOptimized", + "autoScale": { + "enabled": true, + "minNodeCount": 3, + "maxNodeCount": 6 + }, + "autoPause": { + "enabled": true, + "delayInMinutes": 15 + }, + "isComputeIsolationEnabled": false, + "sessionLevelPackagesEnabled": false, + "cacheSize": 50, + "dynamicExecutorAllocation": { + "enabled": false + }, + "lastSucceededTimestamp": "2023-02-17T08:38:49.99Z", + "isAutotuneEnabled": false, + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp34/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace7263/bigDataPools/BigDatapool2943", + "name": "BigDatapool2943", + "type": "Microsoft.Synapse/workspaces/bigDataPools", + "location": "eastus2", + "tags": {} + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp34/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace7263/bigDataPools/BigDatapool2943?api-version=2021-06-01-preview", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-96052536efb1e2d405aaded9af9373cb-634a7db6d3962a83-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "cbf57e5807e3693d70319a2d67b3ebbd", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Allow-Headers": "Location", + "Access-Control-Expose-Headers": "Location", + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Fri, 17 Feb 2023 08:38:51 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp34/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace7263/operationResults/a4bd64bf-bac6-41e7-bc55-a0d9757f4fa4?api-version=2021-06-01-preview", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "cbf57e5807e3693d70319a2d67b3ebbd", + "x-ms-correlation-request-id": "90573bcc-8af1-4b56-bf4c-754b3f2080a8", + "x-ms-ratelimit-remaining-subscription-deletes": "14998", + "x-ms-request-id": "0d5535af-eba7-428e-9f05-f1b9758e5935", + "x-ms-routing-request-id": "JAPANEAST:20230217T083852Z:90573bcc-8af1-4b56-bf4c-754b3f2080a8" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp34/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace7263/operationResults/a4bd64bf-bac6-41e7-bc55-a0d9757f4fa4?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-96052536efb1e2d405aaded9af9373cb-f14b984aa83e70bc-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "3bab05364cb0e65249e790665f975bc7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Allow-Headers": "Location", + "Access-Control-Expose-Headers": "Location", + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Fri, 17 Feb 2023 08:38:52 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp34/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace7263/operationResults/a4bd64bf-bac6-41e7-bc55-a0d9757f4fa4?api-version=2021-06-01-preview", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "3bab05364cb0e65249e790665f975bc7", + "x-ms-correlation-request-id": "91acb8bd-663e-4817-a3b1-a8406309d07f", + "x-ms-ratelimit-remaining-subscription-reads": "11917", + "x-ms-request-id": "8e62b416-bc6b-4a9b-8575-3d4ded629d94", + "x-ms-routing-request-id": "JAPANEAST:20230217T083853Z:91acb8bd-663e-4817-a3b1-a8406309d07f" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp34/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace7263/operationResults/a4bd64bf-bac6-41e7-bc55-a0d9757f4fa4?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-96052536efb1e2d405aaded9af9373cb-753ae2fc68a84ec0-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "e7135bdd5ab22ea2743095c2e44f33d0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 204, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Date": "Fri, 17 Feb 2023 08:38:53 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "e7135bdd5ab22ea2743095c2e44f33d0", + "x-ms-correlation-request-id": "ce01dbc0-1cae-4e8f-8fc8-3b119992636f", + "x-ms-ratelimit-remaining-subscription-reads": "11916", + "x-ms-request-id": "e8912696-5b0b-4c3e-92ea-9a1fce0aa14c", + "x-ms-routing-request-id": "JAPANEAST:20230217T083854Z:ce01dbc0-1cae-4e8f-8fc8-3b119992636f" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp34/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace7263/bigDataPools?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "62f6c800b008d30ccd6d3b0d99a2669d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "12", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:38:54 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "62f6c800b008d30ccd6d3b0d99a2669d", + "x-ms-correlation-request-id": "4548bb6f-ca1c-4b9d-88f7-e939e3e3a4b1", + "x-ms-ratelimit-remaining-subscription-reads": "11915", + "x-ms-request-id": "e085897c-a1f5-48de-a962-a9a2f87a3627", + "x-ms-routing-request-id": "JAPANEAST:20230217T083855Z:4548bb6f-ca1c-4b9d-88f7-e939e3e3a4b1" + }, + "ResponseBody": { + "value": [] + } + } + ], + "Variables": { + "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com/", + "RandomSeed": "1801031230", + "RESOURCE_MANAGER_URL": null, + "SUBSCRIPTION_ID": "051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3" + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/tests/SessionRecords/FirewallRuleOperationTests/TestFirewallRule.json b/sdk/synapse/Azure.ResourceManager.Synapse/tests/SessionRecords/FirewallRuleOperationTests/TestFirewallRule.json new file mode 100644 index 0000000000000..1cb4e15380002 --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/tests/SessionRecords/FirewallRuleOperationTests/TestFirewallRule.json @@ -0,0 +1,1917 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3?api-version=2021-01-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-d2e78fc90f95d052510d0bf788533f4e-c0810a53586851aa-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "c5d27f3279c0b139b06fe0f1a34f5448", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "492", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:38:59 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1454983a-b299-4a6e-ba4c-59dcdf198390", + "x-ms-ratelimit-remaining-subscription-reads": "11914", + "x-ms-request-id": "1454983a-b299-4a6e-ba4c-59dcdf198390", + "x-ms-routing-request-id": "JAPANEAST:20230217T083900Z:1454983a-b299-4a6e-ba4c-59dcdf198390" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3", + "authorizationSource": "RoleBased", + "managedByTenants": [ + { + "tenantId": "2f4a9838-26b7-47ee-be60-ccc1fdec5953" + } + ], + "tags": { + "sub_tagname_1": "sub_tagvalue_1" + }, + "subscriptionId": "051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Synapse Web Tooling", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourcegroups/synapsesdkrp4103?api-version=**", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "22", + "Content-Type": "application/json", + "traceparent": "00-1dd55824a3f23f88a9a48c9d6e212f84-82ba0b0ab8b3b4d7-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "b33f10a16024a202ce117f1107437671", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "eastus2" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "230", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:39:00 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "36b91efb-94c5-42e9-bdbd-89d95f6deb24", + "x-ms-ratelimit-remaining-subscription-writes": "1186", + "x-ms-request-id": "36b91efb-94c5-42e9-bdbd-89d95f6deb24", + "x-ms-routing-request-id": "JAPANEAST:20230217T083901Z:36b91efb-94c5-42e9-bdbd-89d95f6deb24" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103", + "name": "synapsesdkrp4103", + "type": "Microsoft.Resources/resourceGroups", + "location": "eastus2", + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Storage/storageAccounts/synapsesdkstorage8997?api-version=2022-09-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "87", + "Content-Type": "application/json", + "traceparent": "00-75f956536a36a7d0f6c6f3075e20c8e2-50afd015fb994d70-00", + "User-Agent": "azsdk-net-ResourceManager.Storage/1.1.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "cd4609a61b9d3a9eb39c04fd46f17ee5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "sku": { + "name": "Standard_GRS" + }, + "kind": "StorageV2", + "location": "eastus2", + "properties": {} + }, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Content-Type": "text/plain; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:39:06 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Storage/locations/eastus2/asyncoperations/ceddd8e6-3d73-4def-b3e8-a8cb28a965cb?monitor=true\u0026api-version=2022-09-01", + "Pragma": "no-cache", + "Retry-After": "17", + "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "cd4609a61b9d3a9eb39c04fd46f17ee5", + "x-ms-correlation-request-id": "91db47fb-bacc-4a0d-9e81-ca0f6f7e88e9", + "x-ms-ratelimit-remaining-subscription-writes": "1185", + "x-ms-request-id": "ceddd8e6-3d73-4def-b3e8-a8cb28a965cb", + "x-ms-routing-request-id": "JAPANEAST:20230217T083906Z:91db47fb-bacc-4a0d-9e81-ca0f6f7e88e9" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Storage/locations/eastus2/asyncoperations/ceddd8e6-3d73-4def-b3e8-a8cb28a965cb?monitor=true\u0026api-version=2022-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-75f956536a36a7d0f6c6f3075e20c8e2-e8995f313604d67b-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "8287d6dec9fe8637720400885c045bdd", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Content-Type": "text/plain; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:39:07 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Storage/locations/eastus2/asyncoperations/ceddd8e6-3d73-4def-b3e8-a8cb28a965cb?monitor=true\u0026api-version=2022-09-01", + "Pragma": "no-cache", + "Retry-After": "17", + "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "8287d6dec9fe8637720400885c045bdd", + "x-ms-correlation-request-id": "0ed7597a-06b1-4181-ba57-3b081334f22e", + "x-ms-ratelimit-remaining-subscription-reads": "11913", + "x-ms-request-id": "440ed377-8733-4098-888a-d8996344a6a3", + "x-ms-routing-request-id": "JAPANEAST:20230217T083907Z:0ed7597a-06b1-4181-ba57-3b081334f22e" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Storage/locations/eastus2/asyncoperations/ceddd8e6-3d73-4def-b3e8-a8cb28a965cb?monitor=true\u0026api-version=2022-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-75f956536a36a7d0f6c6f3075e20c8e2-a834c2618988004d-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "b2959a9207b294de6d2d978d3940dad3", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1528", + "Content-Type": "application/json", + "Date": "Fri, 17 Feb 2023 08:39:24 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "b2959a9207b294de6d2d978d3940dad3", + "x-ms-correlation-request-id": "e4acd2bc-dde1-4025-973d-51599c81c338", + "x-ms-ratelimit-remaining-subscription-reads": "11912", + "x-ms-request-id": "90243de6-276b-4871-94bc-40c1560190fb", + "x-ms-routing-request-id": "JAPANEAST:20230217T083924Z:e4acd2bc-dde1-4025-973d-51599c81c338" + }, + "ResponseBody": { + "sku": { + "name": "Standard_GRS", + "tier": "Standard" + }, + "kind": "StorageV2", + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Storage/storageAccounts/synapsesdkstorage8997", + "name": "synapsesdkstorage8997", + "type": "Microsoft.Storage/storageAccounts", + "location": "eastus2", + "tags": {}, + "properties": { + "keyCreationTime": { + "key1": "2023-02-17T08:39:03.6139842Z", + "key2": "2023-02-17T08:39:03.6139842Z" + }, + "privateEndpointConnections": [], + "minimumTlsVersion": "TLS1_0", + "allowBlobPublicAccess": true, + "networkAcls": { + "bypass": "AzureServices", + "virtualNetworkRules": [], + "ipRules": [], + "defaultAction": "Allow" + }, + "supportsHttpsTrafficOnly": true, + "encryption": { + "services": { + "file": { + "keyType": "Account", + "enabled": true, + "lastEnabledTime": "2023-02-17T08:39:04.2233685Z" + }, + "blob": { + "keyType": "Account", + "enabled": true, + "lastEnabledTime": "2023-02-17T08:39:04.2233685Z" + } + }, + "keySource": "Microsoft.Storage" + }, + "accessTier": "Hot", + "provisioningState": "Succeeded", + "creationTime": "2023-02-17T08:39:03.4733724Z", + "primaryEndpoints": { + "dfs": "https://synapsesdkstorage8997.dfs.core.windows.net/", + "web": "https://synapsesdkstorage8997.z20.web.core.windows.net/", + "blob": "https://synapsesdkstorage8997.blob.core.windows.net/", + "queue": "https://synapsesdkstorage8997.queue.core.windows.net/", + "table": "https://synapsesdkstorage8997.table.core.windows.net/", + "file": "https://synapsesdkstorage8997.file.core.windows.net/" + }, + "primaryLocation": "eastus2", + "statusOfPrimary": "available", + "secondaryLocation": "centralus", + "statusOfSecondary": "available" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Storage/storageAccounts/synapsesdkstorage8997/listKeys?api-version=2022-09-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "0", + "traceparent": "00-cd974df0952f56f47ff82de2f6ce2b3b-125228ce69efcca7-00", + "User-Agent": "azsdk-net-ResourceManager.Storage/1.1.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "6f1ff8fffc69b1e71d0afb8e1113bd31", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "380", + "Content-Type": "application/json", + "Date": "Fri, 17 Feb 2023 08:39:24 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "6f1ff8fffc69b1e71d0afb8e1113bd31", + "x-ms-correlation-request-id": "f16543e2-4e4e-42d7-ad27-2a31dad10c8d", + "x-ms-ratelimit-remaining-subscription-resource-requests": "11997", + "x-ms-request-id": "c3f935bd-ec4d-41a9-b773-32c7d1a458a4", + "x-ms-routing-request-id": "JAPANEAST:20230217T083924Z:f16543e2-4e4e-42d7-ad27-2a31dad10c8d" + }, + "ResponseBody": { + "keys": [ + { + "creationTime": "2023-02-17T08:39:03.6139842Z", + "keyName": "key1", + "value": "HQENininfo16hH4cdDSEmkvIk4qlY4MegUwxiwIDbyvZ4CoZbTZMTyIRgHcxmXCX4/sQwXy3hxov\u002BAStbCDlXw==", + "permissions": "FULL" + }, + { + "creationTime": "2023-02-17T08:39:03.6139842Z", + "keyName": "key2", + "value": "tD4CdV\u002BKAESPSpKN0rgQJG6ohqzr4W8HVi3nsvgmGfcysa9eKsn8tGP\u002BF15NGM\u002BfOJyY4aG4fyzD\u002BASth9Z5Rw==", + "permissions": "FULL" + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512?api-version=2021-06-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "302", + "Content-Type": "application/json", + "traceparent": "00-e87d02fdb8558f3b48dd071f701ebc92-f85105e38b8beefc-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "4ac6cb0459e9f8d6f314d032a94d322a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "identity": { + "type": "SystemAssigned" + }, + "tags": {}, + "location": "eastus2", + "properties": { + "defaultDataLakeStorage": { + "accountUrl": "https://synapsesdkstorage8997.dfs.core.windows.net/", + "filesystem": "synapsesdkfilesys9183" + }, + "sqlAdministratorLoginPassword": "Password1!7262", + "sqlAdministratorLogin": "sshuser7615" + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512/operationStatuses/812b6cde-7e3a-4320-95d8-6e149f42be34?api-version=2021-06-01", + "Cache-Control": "no-cache", + "Content-Length": "1477", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:39:30 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "4ac6cb0459e9f8d6f314d032a94d322a", + "x-ms-correlation-request-id": "8460d23a-711c-4490-a793-b918a55d9d01", + "x-ms-ratelimit-remaining-subscription-writes": "1184", + "x-ms-request-id": "31c67df4-8744-4d74-84d3-9b64f637d4fc", + "x-ms-routing-request-id": "JAPANEAST:20230217T083931Z:8460d23a-711c-4490-a793-b918a55d9d01" + }, + "ResponseBody": { + "properties": { + "defaultDataLakeStorage": { + "createManagedPrivateEndpoint": false, + "accountUrl": "https://synapsesdkstorage8997.dfs.core.windows.net/", + "filesystem": "synapsesdkfilesys9183" + }, + "encryption": { + "doubleEncryptionEnabled": false + }, + "provisioningState": "Provisioning", + "connectivityEndpoints": { + "web": "https://web.azuresynapse.net?workspace=%2fsubscriptions%2f051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3%2fresourceGroups%2fsynapsesdkrp4103%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fsynapsesdkworkspace3512", + "dev": "https://synapsesdkworkspace3512.dev.azuresynapse.net", + "sqlOnDemand": "synapsesdkworkspace3512-ondemand.sql.azuresynapse.net", + "sql": "synapsesdkworkspace3512.sql.azuresynapse.net" + }, + "managedResourceGroupName": "synapseworkspace-managedrg-0b653f8d-24ae-4860-8832-58b974d94a3c", + "privateEndpointConnections": [], + "workspaceUID": "0abc82a5-5a8d-4cb9-ba8d-63e2bc57562c", + "extraProperties": { + "WorkspaceType": "Normal" + }, + "publicNetworkAccess": "Enabled", + "cspWorkspaceAdminProperties": { + "initialWorkspaceAdminObjectId": "5adcf4d8-4923-420e-ab0b-f6e5fc718b42" + }, + "trustedServiceBypassEnabled": false + }, + "type": "Microsoft.Synapse/workspaces", + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512", + "location": "eastus2", + "name": "synapsesdkworkspace3512", + "identity": { + "type": "SystemAssigned", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "principalId": "3814f7db-2928-47ed-8a33-34d61512ee2a" + }, + "tags": {} + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512/operationStatuses/812b6cde-7e3a-4320-95d8-6e149f42be34?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-e87d02fdb8558f3b48dd071f701ebc92-fa6f0b3b96a45fdb-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "7534da6588139f15487775e7167e73bd", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:39:31 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "7534da6588139f15487775e7167e73bd", + "x-ms-correlation-request-id": "393099fa-2678-470b-9edb-bebbdfab63e1", + "x-ms-ratelimit-remaining-subscription-reads": "11911", + "x-ms-request-id": "e01b62d6-ef96-49da-94d3-59c03e9a46d6", + "x-ms-routing-request-id": "JAPANEAST:20230217T083931Z:393099fa-2678-470b-9edb-bebbdfab63e1" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512/operationStatuses/812b6cde-7e3a-4320-95d8-6e149f42be34?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-e87d02fdb8558f3b48dd071f701ebc92-e104b39731163020-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "8be464c94c5990c635126655b1caa770", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:39:32 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "8be464c94c5990c635126655b1caa770", + "x-ms-correlation-request-id": "24cf38dc-c12b-4b55-9b08-8f477ae96599", + "x-ms-ratelimit-remaining-subscription-reads": "11910", + "x-ms-request-id": "bda2bef8-45a6-4ec6-97ce-3354425b57ed", + "x-ms-routing-request-id": "JAPANEAST:20230217T083932Z:24cf38dc-c12b-4b55-9b08-8f477ae96599" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512/operationStatuses/812b6cde-7e3a-4320-95d8-6e149f42be34?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-e87d02fdb8558f3b48dd071f701ebc92-8f1b62d1b8de6ae9-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "cfcd60bbbd18a41672c49d75feae9d65", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:39:34 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "cfcd60bbbd18a41672c49d75feae9d65", + "x-ms-correlation-request-id": "98dbe310-b6b0-4917-9f71-15d8f789a475", + "x-ms-ratelimit-remaining-subscription-reads": "11909", + "x-ms-request-id": "2e96cfa9-c69e-40db-808f-eeba1319050f", + "x-ms-routing-request-id": "JAPANEAST:20230217T083934Z:98dbe310-b6b0-4917-9f71-15d8f789a475" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512/operationStatuses/812b6cde-7e3a-4320-95d8-6e149f42be34?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-e87d02fdb8558f3b48dd071f701ebc92-76bff3a53f688f00-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "ec42ea21ce9d191613a3400122c0ed7d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:39:35 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "ec42ea21ce9d191613a3400122c0ed7d", + "x-ms-correlation-request-id": "fa6c4d11-5a07-4fea-bd49-f069292a8a8f", + "x-ms-ratelimit-remaining-subscription-reads": "11908", + "x-ms-request-id": "a0a358b0-56d2-4488-abde-5025ab52599d", + "x-ms-routing-request-id": "JAPANEAST:20230217T083935Z:fa6c4d11-5a07-4fea-bd49-f069292a8a8f" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512/operationStatuses/812b6cde-7e3a-4320-95d8-6e149f42be34?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-e87d02fdb8558f3b48dd071f701ebc92-54f8271aee664441-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "b62c04cfa4b10ca44d401995ae519286", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:39:38 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "b62c04cfa4b10ca44d401995ae519286", + "x-ms-correlation-request-id": "4fecc12c-6cdd-4ef2-a3a8-2c6561729031", + "x-ms-ratelimit-remaining-subscription-reads": "11907", + "x-ms-request-id": "74552562-4d19-439b-a3d4-f71982e1a7d0", + "x-ms-routing-request-id": "JAPANEAST:20230217T083938Z:4fecc12c-6cdd-4ef2-a3a8-2c6561729031" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512/operationStatuses/812b6cde-7e3a-4320-95d8-6e149f42be34?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-e87d02fdb8558f3b48dd071f701ebc92-3f420150caff6419-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "c7340075bb88ecd249b4bb757c1481b1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:39:42 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "c7340075bb88ecd249b4bb757c1481b1", + "x-ms-correlation-request-id": "f624510b-9bf9-486a-92af-46975c5e7963", + "x-ms-ratelimit-remaining-subscription-reads": "11906", + "x-ms-request-id": "c3af5fb6-9ebe-47ec-a288-4ac2463025c6", + "x-ms-routing-request-id": "JAPANEAST:20230217T083942Z:f624510b-9bf9-486a-92af-46975c5e7963" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512/operationStatuses/812b6cde-7e3a-4320-95d8-6e149f42be34?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-e87d02fdb8558f3b48dd071f701ebc92-778eba7a4349c785-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "f9a51fd7e6817cb445369e5db4816ac2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:39:50 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "f9a51fd7e6817cb445369e5db4816ac2", + "x-ms-correlation-request-id": "38740362-d8b3-4c93-b1ce-56d2e4b99d46", + "x-ms-ratelimit-remaining-subscription-reads": "11905", + "x-ms-request-id": "00657ac9-52c1-4963-af52-7665e7fa6ed0", + "x-ms-routing-request-id": "JAPANEAST:20230217T083951Z:38740362-d8b3-4c93-b1ce-56d2e4b99d46" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512/operationStatuses/812b6cde-7e3a-4320-95d8-6e149f42be34?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-e87d02fdb8558f3b48dd071f701ebc92-32b5dbdce756e4e3-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "228bb911258c13f5313f6cfce82f8f38", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:40:07 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "228bb911258c13f5313f6cfce82f8f38", + "x-ms-correlation-request-id": "ffc45d1d-4c6d-427e-90e8-989ee0c4544b", + "x-ms-ratelimit-remaining-subscription-reads": "11904", + "x-ms-request-id": "2487ef65-ea0d-406a-9cf2-cd854a8164ba", + "x-ms-routing-request-id": "JAPANEAST:20230217T084007Z:ffc45d1d-4c6d-427e-90e8-989ee0c4544b" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512/operationStatuses/812b6cde-7e3a-4320-95d8-6e149f42be34?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-e87d02fdb8558f3b48dd071f701ebc92-3a472d96e6ff4c12-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "8fbd67be98ab8e054cb782511d7538c7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:40:39 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "8fbd67be98ab8e054cb782511d7538c7", + "x-ms-correlation-request-id": "c1ccfa33-da4a-49a2-86a3-6bf65501203b", + "x-ms-ratelimit-remaining-subscription-reads": "11903", + "x-ms-request-id": "a739f236-4426-4b79-88c1-4e0b936e0c62", + "x-ms-routing-request-id": "JAPANEAST:20230217T084039Z:c1ccfa33-da4a-49a2-86a3-6bf65501203b" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512/operationStatuses/812b6cde-7e3a-4320-95d8-6e149f42be34?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-e87d02fdb8558f3b48dd071f701ebc92-6530765585a1c832-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "c363f94a5f89b1242991c74179b89415", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:41:11 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "c363f94a5f89b1242991c74179b89415", + "x-ms-correlation-request-id": "af58aaeb-4899-4fcd-b6a7-cefad1103c40", + "x-ms-ratelimit-remaining-subscription-reads": "11902", + "x-ms-request-id": "2e5b9205-1b97-479f-b2c4-5994c0948b66", + "x-ms-routing-request-id": "JAPANEAST:20230217T084112Z:af58aaeb-4899-4fcd-b6a7-cefad1103c40" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512/operationStatuses/812b6cde-7e3a-4320-95d8-6e149f42be34?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-e87d02fdb8558f3b48dd071f701ebc92-99290812f57b998d-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "4d9f65a7dac37816b3fcd6d5a3a4f6bc", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:41:43 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "4d9f65a7dac37816b3fcd6d5a3a4f6bc", + "x-ms-correlation-request-id": "849927e9-40e3-4eca-880b-83bf326af2a7", + "x-ms-ratelimit-remaining-subscription-reads": "11901", + "x-ms-request-id": "7906a08e-0467-4413-b575-dc622af8a668", + "x-ms-routing-request-id": "JAPANEAST:20230217T084144Z:849927e9-40e3-4eca-880b-83bf326af2a7" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512/operationStatuses/812b6cde-7e3a-4320-95d8-6e149f42be34?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-e87d02fdb8558f3b48dd071f701ebc92-02da731704f4f697-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "efb1a507cbcb5eaf420c6619d1c41593", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "22", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:42:17 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "efb1a507cbcb5eaf420c6619d1c41593", + "x-ms-correlation-request-id": "887ee4ff-fd9c-458c-aaac-9ee193966cb6", + "x-ms-ratelimit-remaining-subscription-reads": "11900", + "x-ms-request-id": "2b06639b-f228-48fe-bfe9-49c2f1147db5", + "x-ms-routing-request-id": "JAPANEAST:20230217T084217Z:887ee4ff-fd9c-458c-aaac-9ee193966cb6" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-e87d02fdb8558f3b48dd071f701ebc92-14af2d1091940862-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "b7aa6c23ead57003e3eb108c894f0d85", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1535", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:42:17 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "b7aa6c23ead57003e3eb108c894f0d85", + "x-ms-correlation-request-id": "0f038db5-aebf-491d-acd8-e3af80d77738", + "x-ms-ratelimit-remaining-subscription-reads": "11899", + "x-ms-request-id": "138a566c-0bba-430f-b74c-4fb026fd29df", + "x-ms-routing-request-id": "JAPANEAST:20230217T084217Z:0f038db5-aebf-491d-acd8-e3af80d77738" + }, + "ResponseBody": { + "properties": { + "defaultDataLakeStorage": { + "createManagedPrivateEndpoint": false, + "accountUrl": "https://synapsesdkstorage8997.dfs.core.windows.net/", + "filesystem": "synapsesdkfilesys9183" + }, + "encryption": { + "doubleEncryptionEnabled": false + }, + "provisioningState": "Succeeded", + "connectivityEndpoints": { + "web": "https://web.azuresynapse.net?workspace=%2fsubscriptions%2f051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3%2fresourceGroups%2fsynapsesdkrp4103%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fsynapsesdkworkspace3512", + "dev": "https://synapsesdkworkspace3512.dev.azuresynapse.net", + "sqlOnDemand": "synapsesdkworkspace3512-ondemand.sql.azuresynapse.net", + "sql": "synapsesdkworkspace3512.sql.azuresynapse.net" + }, + "managedResourceGroupName": "synapseworkspace-managedrg-0b653f8d-24ae-4860-8832-58b974d94a3c", + "sqlAdministratorLogin": "sshuser7615", + "privateEndpointConnections": [], + "workspaceUID": "0abc82a5-5a8d-4cb9-ba8d-63e2bc57562c", + "extraProperties": { + "WorkspaceType": "Normal", + "IsScopeEnabled": false + }, + "publicNetworkAccess": "Enabled", + "cspWorkspaceAdminProperties": { + "initialWorkspaceAdminObjectId": "5adcf4d8-4923-420e-ab0b-f6e5fc718b42" + }, + "trustedServiceBypassEnabled": false + }, + "type": "Microsoft.Synapse/workspaces", + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512", + "location": "eastus2", + "name": "synapsesdkworkspace3512", + "identity": { + "type": "SystemAssigned", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "principalId": "3814f7db-2928-47ed-8a33-34d61512ee2a" + }, + "tags": {} + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512/firewallRules/firewallrulesdk3379?api-version=2021-06-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "76", + "Content-Type": "application/json", + "traceparent": "00-b046e15bd953596646c0c0e645053aef-ca47fd187e355059-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "06d4390a49a5b5db400ab774fca7efe7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": { + "endIpAddress": "255.255.255.255", + "startIpAddress": "0.0.0.0" + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Access-Control-Allow-Headers": "Location", + "Access-Control-Expose-Headers": "Location", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512/operationStatuses/3b3de854-23fd-4bb5-a248-074b1f87f70a?api-version=2021-06-01", + "Cache-Control": "no-cache", + "Content-Length": "380", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:42:18 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512/operationResults/3b3de854-23fd-4bb5-a248-074b1f87f70a?api-version=2021-06-01", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "06d4390a49a5b5db400ab774fca7efe7", + "x-ms-correlation-request-id": "39ebd782-8cad-457f-9eca-e4179f54c950", + "x-ms-ratelimit-remaining-subscription-writes": "1183", + "x-ms-request-id": "41575aca-7dc0-426e-853b-933da9b9ba06", + "x-ms-routing-request-id": "JAPANEAST:20230217T084218Z:39ebd782-8cad-457f-9eca-e4179f54c950" + }, + "ResponseBody": { + "properties": { + "provisioningState": "Provisioning", + "startIpAddress": "0.0.0.0", + "endIpAddress": "255.255.255.255" + }, + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512/firewallRules/firewallrulesdk3379", + "name": "firewallrulesdk3379", + "type": "Microsoft.Synapse/workspaces/firewallRules" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512/operationStatuses/3b3de854-23fd-4bb5-a248-074b1f87f70a?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-b046e15bd953596646c0c0e645053aef-23a1f33e0645d071-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "8ac67ee08d40227ece0195e04cfbe644", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:42:18 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "8ac67ee08d40227ece0195e04cfbe644", + "x-ms-correlation-request-id": "e04de7b1-82c9-46e4-846c-278c4b9ace35", + "x-ms-ratelimit-remaining-subscription-reads": "11898", + "x-ms-request-id": "a48b7980-1826-4c26-bc1d-4e715b98e362", + "x-ms-routing-request-id": "JAPANEAST:20230217T084218Z:e04de7b1-82c9-46e4-846c-278c4b9ace35" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512/operationStatuses/3b3de854-23fd-4bb5-a248-074b1f87f70a?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-b046e15bd953596646c0c0e645053aef-3e5d1be8d3c74bb4-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "9d47a4208bd6245c1c33c4996920926b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:42:19 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "9d47a4208bd6245c1c33c4996920926b", + "x-ms-correlation-request-id": "c7843fe2-cc19-40ee-9ac0-0356815d9b8f", + "x-ms-ratelimit-remaining-subscription-reads": "11897", + "x-ms-request-id": "1bb69078-5af3-49c0-985b-6c7d8cde848e", + "x-ms-routing-request-id": "JAPANEAST:20230217T084219Z:c7843fe2-cc19-40ee-9ac0-0356815d9b8f" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512/operationStatuses/3b3de854-23fd-4bb5-a248-074b1f87f70a?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-b046e15bd953596646c0c0e645053aef-abade0015233ed26-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "7d93b71664e0b4a633142b3c513c5446", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:42:21 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "7d93b71664e0b4a633142b3c513c5446", + "x-ms-correlation-request-id": "92fea5cd-c7cc-4f32-ba7c-5eee860d2b7e", + "x-ms-ratelimit-remaining-subscription-reads": "11896", + "x-ms-request-id": "b5ca58eb-2340-4edd-b2a5-62043b45a05c", + "x-ms-routing-request-id": "JAPANEAST:20230217T084221Z:92fea5cd-c7cc-4f32-ba7c-5eee860d2b7e" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512/operationStatuses/3b3de854-23fd-4bb5-a248-074b1f87f70a?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-b046e15bd953596646c0c0e645053aef-fda6f28befb80376-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "7e9a9c24568e552822a26e0dc9e4b9ad", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:42:22 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "7e9a9c24568e552822a26e0dc9e4b9ad", + "x-ms-correlation-request-id": "b241a391-8443-4a36-8f27-7a6b4604c5db", + "x-ms-ratelimit-remaining-subscription-reads": "11895", + "x-ms-request-id": "b4269957-055c-480a-882e-e5fde96f60c6", + "x-ms-routing-request-id": "JAPANEAST:20230217T084222Z:b241a391-8443-4a36-8f27-7a6b4604c5db" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512/operationStatuses/3b3de854-23fd-4bb5-a248-074b1f87f70a?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-b046e15bd953596646c0c0e645053aef-28a2ff8bd911d9fb-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "94ca2a6f6968bc63fd9269c15f1fd2e0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:42:25 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "94ca2a6f6968bc63fd9269c15f1fd2e0", + "x-ms-correlation-request-id": "e65d3c80-d64c-4500-a946-0af1c635aebb", + "x-ms-ratelimit-remaining-subscription-reads": "11894", + "x-ms-request-id": "65a78afc-11e6-463c-aa7f-e032a8cb6bba", + "x-ms-routing-request-id": "JAPANEAST:20230217T084225Z:e65d3c80-d64c-4500-a946-0af1c635aebb" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512/operationStatuses/3b3de854-23fd-4bb5-a248-074b1f87f70a?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-b046e15bd953596646c0c0e645053aef-29f9a8e7537f9ad0-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "cc747ede1386c0dc8f3d5b3ef699eb4f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:42:29 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "cc747ede1386c0dc8f3d5b3ef699eb4f", + "x-ms-correlation-request-id": "d10391a0-712b-4bed-8382-37cb0928247d", + "x-ms-ratelimit-remaining-subscription-reads": "11893", + "x-ms-request-id": "2f2eb348-34b5-4ea5-ab35-107cc4da8b55", + "x-ms-routing-request-id": "JAPANEAST:20230217T084229Z:d10391a0-712b-4bed-8382-37cb0928247d" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512/operationStatuses/3b3de854-23fd-4bb5-a248-074b1f87f70a?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-b046e15bd953596646c0c0e645053aef-cd36ddba27dfeec8-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "27cd7d5bbf71bbde39dd81fbec67f602", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:42:38 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "27cd7d5bbf71bbde39dd81fbec67f602", + "x-ms-correlation-request-id": "55281806-5cd9-42ab-bc6f-199d8340f77a", + "x-ms-ratelimit-remaining-subscription-reads": "11892", + "x-ms-request-id": "3c6fe454-893d-4ef8-b9d6-b0c88972f00b", + "x-ms-routing-request-id": "JAPANEAST:20230217T084238Z:55281806-5cd9-42ab-bc6f-199d8340f77a" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512/operationStatuses/3b3de854-23fd-4bb5-a248-074b1f87f70a?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-b046e15bd953596646c0c0e645053aef-37e18b7a30167817-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "4b2e8dcfec705b274d09052a0d24c664", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "22", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:42:54 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "4b2e8dcfec705b274d09052a0d24c664", + "x-ms-correlation-request-id": "03432548-720f-416a-b116-6fc0c9b1e46d", + "x-ms-ratelimit-remaining-subscription-reads": "11891", + "x-ms-request-id": "daa7f26c-473f-41e1-a3c8-323fa08f352b", + "x-ms-routing-request-id": "JAPANEAST:20230217T084254Z:03432548-720f-416a-b116-6fc0c9b1e46d" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512/firewallRules/firewallrulesdk3379?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-b046e15bd953596646c0c0e645053aef-fbf81d1a0a5732f0-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "e1661aa7aa511f6ea0b993a892e1d328", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "377", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:42:55 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "e1661aa7aa511f6ea0b993a892e1d328", + "x-ms-correlation-request-id": "f583099c-0fc1-402c-98bc-141c54512d57", + "x-ms-ratelimit-remaining-subscription-reads": "11890", + "x-ms-request-id": "85367632-5b51-4a05-87ec-5bec9f5f3ee8", + "x-ms-routing-request-id": "JAPANEAST:20230217T084255Z:f583099c-0fc1-402c-98bc-141c54512d57" + }, + "ResponseBody": { + "properties": { + "provisioningState": "Succeeded", + "startIpAddress": "0.0.0.0", + "endIpAddress": "255.255.255.255" + }, + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512/firewallRules/firewallrulesdk3379", + "name": "firewallrulesdk3379", + "type": "Microsoft.Synapse/workspaces/firewallRules" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512/firewallRules/firewallrulesdk3379?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-c925a39268b41995b4a4aa7b160cf3df-1e7cf9d411a05cac-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "686e59479f6a6fde5672da68b9b3ad14", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "377", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:42:55 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "686e59479f6a6fde5672da68b9b3ad14", + "x-ms-correlation-request-id": "991befae-0124-47ea-958b-d63dbda9fe8e", + "x-ms-ratelimit-remaining-subscription-reads": "11889", + "x-ms-request-id": "5276fc42-cf5e-4cd2-91a4-71f4663d45cd", + "x-ms-routing-request-id": "JAPANEAST:20230217T084256Z:991befae-0124-47ea-958b-d63dbda9fe8e" + }, + "ResponseBody": { + "properties": { + "provisioningState": "Succeeded", + "startIpAddress": "0.0.0.0", + "endIpAddress": "255.255.255.255" + }, + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512/firewallRules/firewallrulesdk3379", + "name": "firewallrulesdk3379", + "type": "Microsoft.Synapse/workspaces/firewallRules" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512/firewallRules/firewallrulesdk3379?api-version=2021-06-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "71", + "Content-Type": "application/json", + "traceparent": "00-89c833876ddcc63deec669264bce5c37-0f50a9cadf1ca6d1-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "d2531c17140124b01f0fabb7587ec86b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": { + "endIpAddress": "255.0.0.0", + "startIpAddress": "10.0.0.0" + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Access-Control-Allow-Headers": "Location", + "Access-Control-Expose-Headers": "Location", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512/operationStatuses/54f82207-d538-4421-a817-dcd45c5e5cf2?api-version=2021-06-01", + "Cache-Control": "no-cache", + "Content-Length": "375", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:42:56 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512/operationResults/54f82207-d538-4421-a817-dcd45c5e5cf2?api-version=2021-06-01", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "d2531c17140124b01f0fabb7587ec86b", + "x-ms-correlation-request-id": "9a6efa5a-e11f-4731-8893-d7b50ffbd1c5", + "x-ms-ratelimit-remaining-subscription-writes": "1182", + "x-ms-request-id": "4b32971a-6ed5-4cb3-91bf-9a2939c7151d", + "x-ms-routing-request-id": "JAPANEAST:20230217T084256Z:9a6efa5a-e11f-4731-8893-d7b50ffbd1c5" + }, + "ResponseBody": { + "properties": { + "provisioningState": "Provisioning", + "startIpAddress": "10.0.0.0", + "endIpAddress": "255.0.0.0" + }, + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512/firewallRules/firewallrulesdk3379", + "name": "firewallrulesdk3379", + "type": "Microsoft.Synapse/workspaces/firewallRules" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512/operationStatuses/54f82207-d538-4421-a817-dcd45c5e5cf2?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-89c833876ddcc63deec669264bce5c37-6d11e95ba8725b55-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "76907f0b018e3226a849495af42716d7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:42:56 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "76907f0b018e3226a849495af42716d7", + "x-ms-correlation-request-id": "17427fca-f35c-4c09-a64a-e0dfc6f1857d", + "x-ms-ratelimit-remaining-subscription-reads": "11888", + "x-ms-request-id": "5e1a9408-f3de-4944-9016-ec364fff6c42", + "x-ms-routing-request-id": "JAPANEAST:20230217T084256Z:17427fca-f35c-4c09-a64a-e0dfc6f1857d" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512/operationStatuses/54f82207-d538-4421-a817-dcd45c5e5cf2?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-89c833876ddcc63deec669264bce5c37-4ed97701c0813215-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "db326ea9f9d1ba5e224b970a89d05418", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:42:58 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "db326ea9f9d1ba5e224b970a89d05418", + "x-ms-correlation-request-id": "cce9bd4d-2122-4f7b-8d5b-364f4abe53c8", + "x-ms-ratelimit-remaining-subscription-reads": "11887", + "x-ms-request-id": "c76fb34d-4720-4f69-8135-8ae8facccac7", + "x-ms-routing-request-id": "JAPANEAST:20230217T084258Z:cce9bd4d-2122-4f7b-8d5b-364f4abe53c8" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512/operationStatuses/54f82207-d538-4421-a817-dcd45c5e5cf2?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-89c833876ddcc63deec669264bce5c37-b9371108d1773426-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "d9abbea952ee34ddb6b00c6c149f1313", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:42:59 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "d9abbea952ee34ddb6b00c6c149f1313", + "x-ms-correlation-request-id": "6de7fecd-3d22-403f-984f-47d57023bfcb", + "x-ms-ratelimit-remaining-subscription-reads": "11886", + "x-ms-request-id": "7c8e2454-c0a8-4718-946c-aa6aa06533c6", + "x-ms-routing-request-id": "JAPANEAST:20230217T084259Z:6de7fecd-3d22-403f-984f-47d57023bfcb" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512/operationStatuses/54f82207-d538-4421-a817-dcd45c5e5cf2?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-89c833876ddcc63deec669264bce5c37-2891b2d6520f36bb-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "6236b3e089d4111b20d653426a1ca8d7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:43:00 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "6236b3e089d4111b20d653426a1ca8d7", + "x-ms-correlation-request-id": "56082a49-c2cb-4582-904e-f45f5bb44b5a", + "x-ms-ratelimit-remaining-subscription-reads": "11885", + "x-ms-request-id": "ff1e4b34-0e16-4b2d-8a01-8be586dac6db", + "x-ms-routing-request-id": "JAPANEAST:20230217T084301Z:56082a49-c2cb-4582-904e-f45f5bb44b5a" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512/operationStatuses/54f82207-d538-4421-a817-dcd45c5e5cf2?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-89c833876ddcc63deec669264bce5c37-b8fd780393a6b43f-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "35b130f53d7b56e991fd2520edf2a583", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:43:03 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "35b130f53d7b56e991fd2520edf2a583", + "x-ms-correlation-request-id": "30d94f5d-3934-4d28-9dc8-d51fa94824f2", + "x-ms-ratelimit-remaining-subscription-reads": "11884", + "x-ms-request-id": "b027984d-fbd2-4a42-b0ec-f2c5bf1dca88", + "x-ms-routing-request-id": "JAPANEAST:20230217T084303Z:30d94f5d-3934-4d28-9dc8-d51fa94824f2" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512/operationStatuses/54f82207-d538-4421-a817-dcd45c5e5cf2?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-89c833876ddcc63deec669264bce5c37-13dea32d129d86b2-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "d6298338f19a1f44a39ab817ff9aca99", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:43:07 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "d6298338f19a1f44a39ab817ff9aca99", + "x-ms-correlation-request-id": "5b63989e-28e9-478b-a33f-8ca701ba2ae5", + "x-ms-ratelimit-remaining-subscription-reads": "11883", + "x-ms-request-id": "8d43d069-0d76-4207-81a1-9d3bb8ea88d7", + "x-ms-routing-request-id": "JAPANEAST:20230217T084308Z:5b63989e-28e9-478b-a33f-8ca701ba2ae5" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512/operationStatuses/54f82207-d538-4421-a817-dcd45c5e5cf2?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-89c833876ddcc63deec669264bce5c37-b29fc28b9b0c808d-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "e4763407ddeea397c9e0d1d664fa242e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "22", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:43:16 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "e4763407ddeea397c9e0d1d664fa242e", + "x-ms-correlation-request-id": "8e5ff6cb-bfda-47f9-a8b8-9082670e1193", + "x-ms-ratelimit-remaining-subscription-reads": "11882", + "x-ms-request-id": "b468e619-8df6-4155-bda3-2d13e470b2dd", + "x-ms-routing-request-id": "JAPANEAST:20230217T084316Z:8e5ff6cb-bfda-47f9-a8b8-9082670e1193" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512/firewallRules/firewallrulesdk3379?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-89c833876ddcc63deec669264bce5c37-a7f95384edf299ac-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "e60ad030d1f3033deb9192e184d156f6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "372", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:43:16 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "e60ad030d1f3033deb9192e184d156f6", + "x-ms-correlation-request-id": "bfb46aed-b200-4d03-9188-62e7cceac526", + "x-ms-ratelimit-remaining-subscription-reads": "11881", + "x-ms-request-id": "9f64e59f-7ff4-439c-bd83-93d961871e1a", + "x-ms-routing-request-id": "JAPANEAST:20230217T084317Z:bfb46aed-b200-4d03-9188-62e7cceac526" + }, + "ResponseBody": { + "properties": { + "provisioningState": "Succeeded", + "startIpAddress": "10.0.0.0", + "endIpAddress": "255.0.0.0" + }, + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512/firewallRules/firewallrulesdk3379", + "name": "firewallrulesdk3379", + "type": "Microsoft.Synapse/workspaces/firewallRules" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512/firewallRules?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-fa76b01c2cd1f3cdfb4e6336ac53983e-c6e7239e91ed61a2-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "b8198b32c17b5b95eb860cb9206dbba9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "384", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:43:17 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "b8198b32c17b5b95eb860cb9206dbba9", + "x-ms-correlation-request-id": "ab179a4c-0792-46ec-83e0-74cdb69c0c8e", + "x-ms-ratelimit-remaining-subscription-reads": "11880", + "x-ms-request-id": "6ceac0ab-6281-406d-9620-051bc0051159", + "x-ms-routing-request-id": "JAPANEAST:20230217T084317Z:ab179a4c-0792-46ec-83e0-74cdb69c0c8e" + }, + "ResponseBody": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "startIpAddress": "10.0.0.0", + "endIpAddress": "255.0.0.0" + }, + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512/firewallRules/firewallrulesdk3379", + "name": "firewallrulesdk3379", + "type": "Microsoft.Synapse/workspaces/firewallRules" + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512/firewallRules/firewallrulesdk3379?api-version=2021-06-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-b761ed1bba79ecb400981fff4285a159-290e96966603478d-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "2fe78a75e48f35a6f772f85c4ab51ef8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Allow-Headers": "Location", + "Access-Control-Expose-Headers": "Location", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512/operationStatuses/e309e9d4-b11f-42e0-bb09-e70083caf40b?api-version=2021-06-01", + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Fri, 17 Feb 2023 08:43:17 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512/operationResults/e309e9d4-b11f-42e0-bb09-e70083caf40b?api-version=2021-06-01", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "2fe78a75e48f35a6f772f85c4ab51ef8", + "x-ms-correlation-request-id": "4f2b2db2-332c-4acc-8d2e-20e0c7641ed5", + "x-ms-ratelimit-remaining-subscription-deletes": "14997", + "x-ms-request-id": "b60451fe-ebad-4edf-827f-30fb23ea571b", + "x-ms-routing-request-id": "JAPANEAST:20230217T084318Z:4f2b2db2-332c-4acc-8d2e-20e0c7641ed5" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512/operationStatuses/e309e9d4-b11f-42e0-bb09-e70083caf40b?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-b761ed1bba79ecb400981fff4285a159-ea12e216ef4d71c8-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "fa6ce8d627ea4e66e4e3c109c9381036", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:43:18 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "fa6ce8d627ea4e66e4e3c109c9381036", + "x-ms-correlation-request-id": "059e584b-e756-4d84-ad66-ea565bcfa3c3", + "x-ms-ratelimit-remaining-subscription-reads": "11879", + "x-ms-request-id": "e291bb03-aa15-49fb-ba46-484117b1522c", + "x-ms-routing-request-id": "JAPANEAST:20230217T084318Z:059e584b-e756-4d84-ad66-ea565bcfa3c3" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512/operationStatuses/e309e9d4-b11f-42e0-bb09-e70083caf40b?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-b761ed1bba79ecb400981fff4285a159-7d3ac477e7bcbc1f-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "462f1468e1ca08c8d777f4e0e93a7072", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:43:19 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "462f1468e1ca08c8d777f4e0e93a7072", + "x-ms-correlation-request-id": "b4792f47-754c-479e-a1c2-476b83918cd3", + "x-ms-ratelimit-remaining-subscription-reads": "11878", + "x-ms-request-id": "0a89ba6c-e739-40dc-bb66-2eb369c50fc7", + "x-ms-routing-request-id": "JAPANEAST:20230217T084320Z:b4792f47-754c-479e-a1c2-476b83918cd3" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512/operationStatuses/e309e9d4-b11f-42e0-bb09-e70083caf40b?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-b761ed1bba79ecb400981fff4285a159-8d8c8837d622c113-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "62867a8f2349620e7454f5fcaaa9a602", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:43:20 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "62867a8f2349620e7454f5fcaaa9a602", + "x-ms-correlation-request-id": "04376d47-612d-4a7e-ba6a-eec26e44f241", + "x-ms-ratelimit-remaining-subscription-reads": "11877", + "x-ms-request-id": "07d6925e-86ed-4650-b0c8-e3947a578575", + "x-ms-routing-request-id": "JAPANEAST:20230217T084321Z:04376d47-612d-4a7e-ba6a-eec26e44f241" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512/operationStatuses/e309e9d4-b11f-42e0-bb09-e70083caf40b?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-b761ed1bba79ecb400981fff4285a159-52363690a4eb42c2-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "b004c49f9c54f4b31f632272338665aa", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:43:22 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "b004c49f9c54f4b31f632272338665aa", + "x-ms-correlation-request-id": "c50a97e2-9a49-4e9c-bd65-846afbcfb96c", + "x-ms-ratelimit-remaining-subscription-reads": "11876", + "x-ms-request-id": "25dc2bd6-301b-4f11-b25b-3dca6d707325", + "x-ms-routing-request-id": "JAPANEAST:20230217T084322Z:c50a97e2-9a49-4e9c-bd65-846afbcfb96c" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512/operationStatuses/e309e9d4-b11f-42e0-bb09-e70083caf40b?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-b761ed1bba79ecb400981fff4285a159-aa495ec6b867bc03-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "4e794e73adb144ec06cdd175ebcb5e2e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:43:24 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "4e794e73adb144ec06cdd175ebcb5e2e", + "x-ms-correlation-request-id": "13cea4ba-5080-4cc0-aa08-f2b54e586776", + "x-ms-ratelimit-remaining-subscription-reads": "11875", + "x-ms-request-id": "20722b44-1085-46af-ac82-c90539a975f4", + "x-ms-routing-request-id": "JAPANEAST:20230217T084325Z:13cea4ba-5080-4cc0-aa08-f2b54e586776" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512/operationStatuses/e309e9d4-b11f-42e0-bb09-e70083caf40b?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-b761ed1bba79ecb400981fff4285a159-67a88f752ba96261-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "2541f1d1bf35f21ec69242e5019b2eee", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:43:29 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "2541f1d1bf35f21ec69242e5019b2eee", + "x-ms-correlation-request-id": "0a31d2c7-d1ad-4d2d-8847-b93da0cf198c", + "x-ms-ratelimit-remaining-subscription-reads": "11874", + "x-ms-request-id": "57cb45e6-9601-4945-b8bd-196e9c087649", + "x-ms-routing-request-id": "JAPANEAST:20230217T084329Z:0a31d2c7-d1ad-4d2d-8847-b93da0cf198c" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512/operationStatuses/e309e9d4-b11f-42e0-bb09-e70083caf40b?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-b761ed1bba79ecb400981fff4285a159-0438ba4e1d2e5c5e-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "5c894bef572ff151d7bfaa87ca3e0853", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:43:37 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "5c894bef572ff151d7bfaa87ca3e0853", + "x-ms-correlation-request-id": "5bfb47f1-ab94-4748-a755-495adf726bd7", + "x-ms-ratelimit-remaining-subscription-reads": "11873", + "x-ms-request-id": "91062f9a-8421-4fbc-9abd-203e0fd254ca", + "x-ms-routing-request-id": "JAPANEAST:20230217T084338Z:5bfb47f1-ab94-4748-a755-495adf726bd7" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512/operationStatuses/e309e9d4-b11f-42e0-bb09-e70083caf40b?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-b761ed1bba79ecb400981fff4285a159-c94427fec0652280-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "42a1f3054044b3743086881f6b07436a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "22", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:43:53 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "42a1f3054044b3743086881f6b07436a", + "x-ms-correlation-request-id": "ee08fe8a-14ef-4f1d-a35c-dd3cc7e99183", + "x-ms-ratelimit-remaining-subscription-reads": "11872", + "x-ms-request-id": "d2ba43d6-f152-46c3-9cf5-06635bd7d534", + "x-ms-routing-request-id": "JAPANEAST:20230217T084354Z:ee08fe8a-14ef-4f1d-a35c-dd3cc7e99183" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp4103/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3512/firewallRules?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-1f1b4bb87f01b67ee7752e4fb156e929-e38acd7ac91163af-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "a086e39e01427affa04f4d7515962788", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "12", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:43:54 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "a086e39e01427affa04f4d7515962788", + "x-ms-correlation-request-id": "dadf4502-a229-486d-b76f-a137a81e422d", + "x-ms-ratelimit-remaining-subscription-reads": "11871", + "x-ms-request-id": "07aa9718-3c25-4a1c-bce2-8a9ceb6cd846", + "x-ms-routing-request-id": "JAPANEAST:20230217T084354Z:dadf4502-a229-486d-b76f-a137a81e422d" + }, + "ResponseBody": { + "value": [] + } + } + ], + "Variables": { + "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com/", + "RandomSeed": "1240568777", + "RESOURCE_MANAGER_URL": null, + "SUBSCRIPTION_ID": "051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3" + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/tests/SessionRecords/FirewallRuleOperationTests/TestFirewallRuleAsync.json b/sdk/synapse/Azure.ResourceManager.Synapse/tests/SessionRecords/FirewallRuleOperationTests/TestFirewallRuleAsync.json new file mode 100644 index 0000000000000..7b38d67c26900 --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/tests/SessionRecords/FirewallRuleOperationTests/TestFirewallRuleAsync.json @@ -0,0 +1,1819 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3?api-version=2021-01-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-1f3f04cf24390bd1719b02d6c62654d9-2e304a133f35e068-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "8e9d3ba79094c6dc9ba6046023700749", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "492", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:43:58 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5ad7b6e1-d228-44de-8bd7-2129cf61a707", + "x-ms-ratelimit-remaining-subscription-reads": "11870", + "x-ms-request-id": "5ad7b6e1-d228-44de-8bd7-2129cf61a707", + "x-ms-routing-request-id": "JAPANEAST:20230217T084358Z:5ad7b6e1-d228-44de-8bd7-2129cf61a707" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3", + "authorizationSource": "RoleBased", + "managedByTenants": [ + { + "tenantId": "2f4a9838-26b7-47ee-be60-ccc1fdec5953" + } + ], + "tags": { + "sub_tagname_1": "sub_tagvalue_1" + }, + "subscriptionId": "051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Synapse Web Tooling", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourcegroups/synapsesdkrp6950?api-version=**", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "22", + "Content-Type": "application/json", + "traceparent": "00-0a0a22258dba3261c6e8be3a23a96a77-455d12c4b05dac5d-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "1b6fc7ee50c67e028b2aced8ee3be10d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "eastus2" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "230", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:43:59 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4c0f7e7e-b4c1-4307-8cee-0de884b2bc2c", + "x-ms-ratelimit-remaining-subscription-writes": "1181", + "x-ms-request-id": "4c0f7e7e-b4c1-4307-8cee-0de884b2bc2c", + "x-ms-routing-request-id": "JAPANEAST:20230217T084359Z:4c0f7e7e-b4c1-4307-8cee-0de884b2bc2c" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950", + "name": "synapsesdkrp6950", + "type": "Microsoft.Resources/resourceGroups", + "location": "eastus2", + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Storage/storageAccounts/synapsesdkstorage4069?api-version=2022-09-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "87", + "Content-Type": "application/json", + "traceparent": "00-ed92bd05fd3822f75d7ebf85ceccee4f-c96adabf789a26fd-00", + "User-Agent": "azsdk-net-ResourceManager.Storage/1.1.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "5f6d3917ebc33d1eb6a8e2a8a83eb3a3", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "sku": { + "name": "Standard_GRS" + }, + "kind": "StorageV2", + "location": "eastus2", + "properties": {} + }, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Content-Type": "text/plain; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:44:04 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Storage/locations/eastus2/asyncoperations/de4bda13-dcc9-49f3-bf71-5d107eb7d478?monitor=true\u0026api-version=2022-09-01", + "Pragma": "no-cache", + "Retry-After": "17", + "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "5f6d3917ebc33d1eb6a8e2a8a83eb3a3", + "x-ms-correlation-request-id": "6a3539ce-d175-4613-a5dd-a2fa64175e04", + "x-ms-ratelimit-remaining-subscription-writes": "1180", + "x-ms-request-id": "de4bda13-dcc9-49f3-bf71-5d107eb7d478", + "x-ms-routing-request-id": "JAPANEAST:20230217T084404Z:6a3539ce-d175-4613-a5dd-a2fa64175e04" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Storage/locations/eastus2/asyncoperations/de4bda13-dcc9-49f3-bf71-5d107eb7d478?monitor=true\u0026api-version=2022-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ed92bd05fd3822f75d7ebf85ceccee4f-00a5aa3b7777412b-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "1c353c252d8d024ba831651e6d5ad64d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Content-Type": "text/plain; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:44:04 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Storage/locations/eastus2/asyncoperations/de4bda13-dcc9-49f3-bf71-5d107eb7d478?monitor=true\u0026api-version=2022-09-01", + "Pragma": "no-cache", + "Retry-After": "17", + "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "1c353c252d8d024ba831651e6d5ad64d", + "x-ms-correlation-request-id": "c5be5960-f338-4571-8d79-d062a74fc73d", + "x-ms-ratelimit-remaining-subscription-reads": "11869", + "x-ms-request-id": "c05f84c7-b0d3-46a6-aa62-6f60695e4e43", + "x-ms-routing-request-id": "JAPANEAST:20230217T084405Z:c5be5960-f338-4571-8d79-d062a74fc73d" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Storage/locations/eastus2/asyncoperations/de4bda13-dcc9-49f3-bf71-5d107eb7d478?monitor=true\u0026api-version=2022-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ed92bd05fd3822f75d7ebf85ceccee4f-0a075b32223147dc-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "cf9c2b766c82a4de6b2c867bdca2072d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1528", + "Content-Type": "application/json", + "Date": "Fri, 17 Feb 2023 08:44:21 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "cf9c2b766c82a4de6b2c867bdca2072d", + "x-ms-correlation-request-id": "80840422-c87a-4689-a7a5-27b099f8dc75", + "x-ms-ratelimit-remaining-subscription-reads": "11868", + "x-ms-request-id": "38b27a7c-2b28-4d46-b0b7-6f4165be00e7", + "x-ms-routing-request-id": "JAPANEAST:20230217T084422Z:80840422-c87a-4689-a7a5-27b099f8dc75" + }, + "ResponseBody": { + "sku": { + "name": "Standard_GRS", + "tier": "Standard" + }, + "kind": "StorageV2", + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Storage/storageAccounts/synapsesdkstorage4069", + "name": "synapsesdkstorage4069", + "type": "Microsoft.Storage/storageAccounts", + "location": "eastus2", + "tags": {}, + "properties": { + "keyCreationTime": { + "key1": "2023-02-17T08:44:02.5773488Z", + "key2": "2023-02-17T08:44:02.5773488Z" + }, + "privateEndpointConnections": [], + "minimumTlsVersion": "TLS1_0", + "allowBlobPublicAccess": true, + "networkAcls": { + "bypass": "AzureServices", + "virtualNetworkRules": [], + "ipRules": [], + "defaultAction": "Allow" + }, + "supportsHttpsTrafficOnly": true, + "encryption": { + "services": { + "file": { + "keyType": "Account", + "enabled": true, + "lastEnabledTime": "2023-02-17T08:44:03.5148848Z" + }, + "blob": { + "keyType": "Account", + "enabled": true, + "lastEnabledTime": "2023-02-17T08:44:03.5148848Z" + } + }, + "keySource": "Microsoft.Storage" + }, + "accessTier": "Hot", + "provisioningState": "Succeeded", + "creationTime": "2023-02-17T08:44:02.4210966Z", + "primaryEndpoints": { + "dfs": "https://synapsesdkstorage4069.dfs.core.windows.net/", + "web": "https://synapsesdkstorage4069.z20.web.core.windows.net/", + "blob": "https://synapsesdkstorage4069.blob.core.windows.net/", + "queue": "https://synapsesdkstorage4069.queue.core.windows.net/", + "table": "https://synapsesdkstorage4069.table.core.windows.net/", + "file": "https://synapsesdkstorage4069.file.core.windows.net/" + }, + "primaryLocation": "eastus2", + "statusOfPrimary": "available", + "secondaryLocation": "centralus", + "statusOfSecondary": "available" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Storage/storageAccounts/synapsesdkstorage4069/listKeys?api-version=2022-09-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "0", + "traceparent": "00-c682475f0e5e44ef699d2cc79de6d9a8-55e17680e8d8841a-00", + "User-Agent": "azsdk-net-ResourceManager.Storage/1.1.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "6c82ad7397080d15d4b6ccfc0dafd27f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "380", + "Content-Type": "application/json", + "Date": "Fri, 17 Feb 2023 08:44:22 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "6c82ad7397080d15d4b6ccfc0dafd27f", + "x-ms-correlation-request-id": "935cd71e-d326-4191-9729-dcfcc0f8a7e6", + "x-ms-ratelimit-remaining-subscription-resource-requests": "11996", + "x-ms-request-id": "460bc76e-f3a3-46b2-9e9b-6279acae62ea", + "x-ms-routing-request-id": "JAPANEAST:20230217T084422Z:935cd71e-d326-4191-9729-dcfcc0f8a7e6" + }, + "ResponseBody": { + "keys": [ + { + "creationTime": "2023-02-17T08:44:02.5773488Z", + "keyName": "key1", + "value": "YDG27R9To51W2OKEugEs/HsBenSiuQCsm7w5BaYAngAe7xRdcpJlf78Lbk9m22/gUo6wTzHko6ug\u002BASt0mi\u002B\u002Bg==", + "permissions": "FULL" + }, + { + "creationTime": "2023-02-17T08:44:02.5773488Z", + "keyName": "key2", + "value": "27mf9e6mXGpVSYkJhabZ2noCTZikOBOczZIJQCc4fMk//nxH6EINqSBvpz8qEyH0XRx9w6ScJwQu\u002BASteR3arw==", + "permissions": "FULL" + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355?api-version=2021-06-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "302", + "Content-Type": "application/json", + "traceparent": "00-2f62d0bbab4ac03b0d18a5a67df19101-a829072532c8331d-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "eb0a06c1b2655eb991b160a7cf25062a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "identity": { + "type": "SystemAssigned" + }, + "tags": {}, + "location": "eastus2", + "properties": { + "defaultDataLakeStorage": { + "accountUrl": "https://synapsesdkstorage4069.dfs.core.windows.net/", + "filesystem": "synapsesdkfilesys1886" + }, + "sqlAdministratorLoginPassword": "Password1!9844", + "sqlAdministratorLogin": "sshuser5851" + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355/operationStatuses/1ce6824b-13c0-4b99-b897-e5b6c3f26ed3?api-version=2021-06-01", + "Cache-Control": "no-cache", + "Content-Length": "1471", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:44:28 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "eb0a06c1b2655eb991b160a7cf25062a", + "x-ms-correlation-request-id": "0e7bcd3c-8930-496b-be4e-795a4b6d7298", + "x-ms-ratelimit-remaining-subscription-writes": "1179", + "x-ms-request-id": "3799904f-849a-43ee-a14a-507f2c4deb5e", + "x-ms-routing-request-id": "JAPANEAST:20230217T084429Z:0e7bcd3c-8930-496b-be4e-795a4b6d7298" + }, + "ResponseBody": { + "properties": { + "defaultDataLakeStorage": { + "createManagedPrivateEndpoint": false, + "accountUrl": "https://synapsesdkstorage4069.dfs.core.windows.net/", + "filesystem": "synapsesdkfilesys1886" + }, + "encryption": { + "doubleEncryptionEnabled": false + }, + "provisioningState": "Provisioning", + "connectivityEndpoints": { + "web": "https://web.azuresynapse.net?workspace=%2fsubscriptions%2f051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3%2fresourceGroups%2fsynapsesdkrp6950%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fsynapsesdkworkspace355", + "dev": "https://synapsesdkworkspace355.dev.azuresynapse.net", + "sqlOnDemand": "synapsesdkworkspace355-ondemand.sql.azuresynapse.net", + "sql": "synapsesdkworkspace355.sql.azuresynapse.net" + }, + "managedResourceGroupName": "synapseworkspace-managedrg-5da77b2c-b833-41f7-aeec-e4c71e107249", + "privateEndpointConnections": [], + "workspaceUID": "73ba754f-6b21-474e-808b-7fa314d84170", + "extraProperties": { + "WorkspaceType": "Normal" + }, + "publicNetworkAccess": "Enabled", + "cspWorkspaceAdminProperties": { + "initialWorkspaceAdminObjectId": "5adcf4d8-4923-420e-ab0b-f6e5fc718b42" + }, + "trustedServiceBypassEnabled": false + }, + "type": "Microsoft.Synapse/workspaces", + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355", + "location": "eastus2", + "name": "synapsesdkworkspace355", + "identity": { + "type": "SystemAssigned", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "principalId": "b179cc7d-7d3e-4ca4-8a9b-504c2430b184" + }, + "tags": {} + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355/operationStatuses/1ce6824b-13c0-4b99-b897-e5b6c3f26ed3?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-2f62d0bbab4ac03b0d18a5a67df19101-5d5010f956d3cc47-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "9b1a0a0641fdfa0dc90d76e6b5660490", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:44:29 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "9b1a0a0641fdfa0dc90d76e6b5660490", + "x-ms-correlation-request-id": "a658b22c-4e91-409c-bb96-159432821c86", + "x-ms-ratelimit-remaining-subscription-reads": "11867", + "x-ms-request-id": "76ee30d8-6dac-4a71-a1bc-cdb781159372", + "x-ms-routing-request-id": "JAPANEAST:20230217T084430Z:a658b22c-4e91-409c-bb96-159432821c86" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355/operationStatuses/1ce6824b-13c0-4b99-b897-e5b6c3f26ed3?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-2f62d0bbab4ac03b0d18a5a67df19101-9e45b0ffa2a55353-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "04d6d2c6a7127c0627f45d6ae7187cfb", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:44:30 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "04d6d2c6a7127c0627f45d6ae7187cfb", + "x-ms-correlation-request-id": "c43d295c-c0c9-4249-855d-c293c10ea7eb", + "x-ms-ratelimit-remaining-subscription-reads": "11866", + "x-ms-request-id": "83f9d923-7706-4fbe-a5cf-e06a3065359f", + "x-ms-routing-request-id": "JAPANEAST:20230217T084431Z:c43d295c-c0c9-4249-855d-c293c10ea7eb" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355/operationStatuses/1ce6824b-13c0-4b99-b897-e5b6c3f26ed3?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-2f62d0bbab4ac03b0d18a5a67df19101-4a33f47a593b40eb-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "c4a006f46a0bf52d9dc50d5ccef86028", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:44:32 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "c4a006f46a0bf52d9dc50d5ccef86028", + "x-ms-correlation-request-id": "61e46333-96a9-4f3a-a7bd-a039c297ced5", + "x-ms-ratelimit-remaining-subscription-reads": "11865", + "x-ms-request-id": "e31656ac-65c1-4555-a829-67a6c6a810a6", + "x-ms-routing-request-id": "JAPANEAST:20230217T084433Z:61e46333-96a9-4f3a-a7bd-a039c297ced5" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355/operationStatuses/1ce6824b-13c0-4b99-b897-e5b6c3f26ed3?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-2f62d0bbab4ac03b0d18a5a67df19101-451fad5329bcb5d4-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "0eda3af6b7bf5e47039d7408e4a213b1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:44:33 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "0eda3af6b7bf5e47039d7408e4a213b1", + "x-ms-correlation-request-id": "fbd020a2-3863-4de6-acfe-db4bd5b3c594", + "x-ms-ratelimit-remaining-subscription-reads": "11864", + "x-ms-request-id": "4efd7158-9371-44eb-b4cf-e147f1411bd0", + "x-ms-routing-request-id": "JAPANEAST:20230217T084434Z:fbd020a2-3863-4de6-acfe-db4bd5b3c594" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355/operationStatuses/1ce6824b-13c0-4b99-b897-e5b6c3f26ed3?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-2f62d0bbab4ac03b0d18a5a67df19101-c84e21eb926a9d9d-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "aff17b9140c55c85a5e0664d9aaaae2f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:44:35 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "aff17b9140c55c85a5e0664d9aaaae2f", + "x-ms-correlation-request-id": "ecc1e2d1-59f3-46b1-9d49-3c9d08d33a4c", + "x-ms-ratelimit-remaining-subscription-reads": "11863", + "x-ms-request-id": "9fa41d42-7c99-4bd6-a732-6ef6656399d3", + "x-ms-routing-request-id": "JAPANEAST:20230217T084436Z:ecc1e2d1-59f3-46b1-9d49-3c9d08d33a4c" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355/operationStatuses/1ce6824b-13c0-4b99-b897-e5b6c3f26ed3?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-2f62d0bbab4ac03b0d18a5a67df19101-4a8c29a58a6b0a2c-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "ac7434946d3e3c3bbe41c06ef52411fb", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:44:40 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "ac7434946d3e3c3bbe41c06ef52411fb", + "x-ms-correlation-request-id": "ca26923c-f548-4f20-8b6d-256322112fe1", + "x-ms-ratelimit-remaining-subscription-reads": "11862", + "x-ms-request-id": "7a57cb62-86bf-4bc7-a3c0-2d301d41e2f3", + "x-ms-routing-request-id": "JAPANEAST:20230217T084441Z:ca26923c-f548-4f20-8b6d-256322112fe1" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355/operationStatuses/1ce6824b-13c0-4b99-b897-e5b6c3f26ed3?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-2f62d0bbab4ac03b0d18a5a67df19101-05ef145e86214331-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "53ca5cb1b006b562b57e69df51fac459", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:44:48 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "53ca5cb1b006b562b57e69df51fac459", + "x-ms-correlation-request-id": "916e5915-fd8b-400f-9edd-7d23152eb246", + "x-ms-ratelimit-remaining-subscription-reads": "11861", + "x-ms-request-id": "0a1523b5-e213-45fc-84ca-03ffa2710a71", + "x-ms-routing-request-id": "JAPANEAST:20230217T084449Z:916e5915-fd8b-400f-9edd-7d23152eb246" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355/operationStatuses/1ce6824b-13c0-4b99-b897-e5b6c3f26ed3?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-2f62d0bbab4ac03b0d18a5a67df19101-54453c42ff6cf7bf-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "b07345ef672d23723fb4f0837f176680", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:45:06 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "b07345ef672d23723fb4f0837f176680", + "x-ms-correlation-request-id": "403931ac-8ad8-441e-852c-1870e7d847e6", + "x-ms-ratelimit-remaining-subscription-reads": "11860", + "x-ms-request-id": "d2478a91-74e8-4330-b7be-0357a19348bb", + "x-ms-routing-request-id": "JAPANEAST:20230217T084506Z:403931ac-8ad8-441e-852c-1870e7d847e6" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355/operationStatuses/1ce6824b-13c0-4b99-b897-e5b6c3f26ed3?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-2f62d0bbab4ac03b0d18a5a67df19101-86f885f54e01946a-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "3d9c6bcf5bdfe328d1bff7bf045cebc4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:45:38 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "3d9c6bcf5bdfe328d1bff7bf045cebc4", + "x-ms-correlation-request-id": "693bbb2f-f063-454c-bfd6-fab0a477fe57", + "x-ms-ratelimit-remaining-subscription-reads": "11859", + "x-ms-request-id": "97443f7d-f810-4b94-9685-b7dde80e70b3", + "x-ms-routing-request-id": "JAPANEAST:20230217T084538Z:693bbb2f-f063-454c-bfd6-fab0a477fe57" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355/operationStatuses/1ce6824b-13c0-4b99-b897-e5b6c3f26ed3?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-2f62d0bbab4ac03b0d18a5a67df19101-bdd667959b02850e-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "b07e677d61b14acde9a71352bfdf359e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:46:10 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "b07e677d61b14acde9a71352bfdf359e", + "x-ms-correlation-request-id": "dd2976cc-836f-434a-a376-a303d6bc57e6", + "x-ms-ratelimit-remaining-subscription-reads": "11858", + "x-ms-request-id": "b6afadcd-fc6c-4277-a447-0291e5207a35", + "x-ms-routing-request-id": "JAPANEAST:20230217T084611Z:dd2976cc-836f-434a-a376-a303d6bc57e6" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355/operationStatuses/1ce6824b-13c0-4b99-b897-e5b6c3f26ed3?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-2f62d0bbab4ac03b0d18a5a67df19101-34da93118850bd3b-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "e60fe818875e94791d8fde6e6fb31fe2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:46:42 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "e60fe818875e94791d8fde6e6fb31fe2", + "x-ms-correlation-request-id": "22aac49b-15c0-47e6-a812-aaec55ad7d7a", + "x-ms-ratelimit-remaining-subscription-reads": "11857", + "x-ms-request-id": "6eec0c75-46a8-4241-afed-61a4d95ef35e", + "x-ms-routing-request-id": "JAPANEAST:20230217T084643Z:22aac49b-15c0-47e6-a812-aaec55ad7d7a" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355/operationStatuses/1ce6824b-13c0-4b99-b897-e5b6c3f26ed3?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-2f62d0bbab4ac03b0d18a5a67df19101-d3f6aa043661affd-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "18062cc9b5986ecf9d51533847d523f2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "22", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:47:15 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "18062cc9b5986ecf9d51533847d523f2", + "x-ms-correlation-request-id": "5e28daa1-b8c6-417e-a1e7-e04e66f5161f", + "x-ms-ratelimit-remaining-subscription-reads": "11856", + "x-ms-request-id": "ccdb81bc-0c93-4025-9b98-7a813d791ba9", + "x-ms-routing-request-id": "JAPANEAST:20230217T084715Z:5e28daa1-b8c6-417e-a1e7-e04e66f5161f" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-2f62d0bbab4ac03b0d18a5a67df19101-16f93bf8a24cbcb5-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "1ca75889044cf566edea9322825eda36", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1529", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:47:16 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "1ca75889044cf566edea9322825eda36", + "x-ms-correlation-request-id": "bf2fb995-63fd-4371-966b-4585d4dd1961", + "x-ms-ratelimit-remaining-subscription-reads": "11855", + "x-ms-request-id": "fd6bc893-079b-4f5d-83af-6d3322b8ee50", + "x-ms-routing-request-id": "JAPANEAST:20230217T084716Z:bf2fb995-63fd-4371-966b-4585d4dd1961" + }, + "ResponseBody": { + "properties": { + "defaultDataLakeStorage": { + "createManagedPrivateEndpoint": false, + "accountUrl": "https://synapsesdkstorage4069.dfs.core.windows.net/", + "filesystem": "synapsesdkfilesys1886" + }, + "encryption": { + "doubleEncryptionEnabled": false + }, + "provisioningState": "Succeeded", + "connectivityEndpoints": { + "web": "https://web.azuresynapse.net?workspace=%2fsubscriptions%2f051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3%2fresourceGroups%2fsynapsesdkrp6950%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fsynapsesdkworkspace355", + "dev": "https://synapsesdkworkspace355.dev.azuresynapse.net", + "sqlOnDemand": "synapsesdkworkspace355-ondemand.sql.azuresynapse.net", + "sql": "synapsesdkworkspace355.sql.azuresynapse.net" + }, + "managedResourceGroupName": "synapseworkspace-managedrg-5da77b2c-b833-41f7-aeec-e4c71e107249", + "sqlAdministratorLogin": "sshuser5851", + "privateEndpointConnections": [], + "workspaceUID": "73ba754f-6b21-474e-808b-7fa314d84170", + "extraProperties": { + "WorkspaceType": "Normal", + "IsScopeEnabled": false + }, + "publicNetworkAccess": "Enabled", + "cspWorkspaceAdminProperties": { + "initialWorkspaceAdminObjectId": "5adcf4d8-4923-420e-ab0b-f6e5fc718b42" + }, + "trustedServiceBypassEnabled": false + }, + "type": "Microsoft.Synapse/workspaces", + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355", + "location": "eastus2", + "name": "synapsesdkworkspace355", + "identity": { + "type": "SystemAssigned", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "principalId": "b179cc7d-7d3e-4ca4-8a9b-504c2430b184" + }, + "tags": {} + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355/firewallRules/firewallrulesdk9137?api-version=2021-06-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "76", + "Content-Type": "application/json", + "traceparent": "00-78a1a7f85d7889479cbc6d030228c6ea-251281cc96d89b2e-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "d8938930061d1962a1480c33414c476b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": { + "endIpAddress": "255.255.255.255", + "startIpAddress": "0.0.0.0" + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Access-Control-Allow-Headers": "Location", + "Access-Control-Expose-Headers": "Location", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355/operationStatuses/1dfd976b-59c1-4824-8e8b-d90359f6ee2a?api-version=2021-06-01", + "Cache-Control": "no-cache", + "Content-Length": "379", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:47:16 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355/operationResults/1dfd976b-59c1-4824-8e8b-d90359f6ee2a?api-version=2021-06-01", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "d8938930061d1962a1480c33414c476b", + "x-ms-correlation-request-id": "d5296191-0f43-4c30-82e8-00c503f2449e", + "x-ms-ratelimit-remaining-subscription-writes": "1178", + "x-ms-request-id": "1ef96233-85fb-4746-9a51-fbe915a6d6de", + "x-ms-routing-request-id": "JAPANEAST:20230217T084716Z:d5296191-0f43-4c30-82e8-00c503f2449e" + }, + "ResponseBody": { + "properties": { + "provisioningState": "Provisioning", + "startIpAddress": "0.0.0.0", + "endIpAddress": "255.255.255.255" + }, + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355/firewallRules/firewallrulesdk9137", + "name": "firewallrulesdk9137", + "type": "Microsoft.Synapse/workspaces/firewallRules" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355/operationStatuses/1dfd976b-59c1-4824-8e8b-d90359f6ee2a?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-78a1a7f85d7889479cbc6d030228c6ea-cf3bfbd949d8bef5-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "4c16b01c1990526c4503abbc59c2ac9e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:47:17 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "4c16b01c1990526c4503abbc59c2ac9e", + "x-ms-correlation-request-id": "3d6ef7f4-6304-4bff-8c11-a36537522a54", + "x-ms-ratelimit-remaining-subscription-reads": "11854", + "x-ms-request-id": "b0255709-ab1f-4807-ba38-bd28168fd107", + "x-ms-routing-request-id": "JAPANEAST:20230217T084717Z:3d6ef7f4-6304-4bff-8c11-a36537522a54" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355/operationStatuses/1dfd976b-59c1-4824-8e8b-d90359f6ee2a?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-78a1a7f85d7889479cbc6d030228c6ea-78ebf3325b19e0a0-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "7996b64b2bc39a85c5ccc8f1583f6cb5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:47:18 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "7996b64b2bc39a85c5ccc8f1583f6cb5", + "x-ms-correlation-request-id": "0f595765-891e-44f5-99f9-30982f35db7a", + "x-ms-ratelimit-remaining-subscription-reads": "11853", + "x-ms-request-id": "f1805b10-cb8a-4b47-b313-9a1b3afb6467", + "x-ms-routing-request-id": "JAPANEAST:20230217T084718Z:0f595765-891e-44f5-99f9-30982f35db7a" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355/operationStatuses/1dfd976b-59c1-4824-8e8b-d90359f6ee2a?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-78a1a7f85d7889479cbc6d030228c6ea-b9be85c14a479606-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "9016940afa35d2da78c4c5ffea086d4e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:47:20 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "9016940afa35d2da78c4c5ffea086d4e", + "x-ms-correlation-request-id": "5f940705-a403-49f0-9d80-a2c237356a68", + "x-ms-ratelimit-remaining-subscription-reads": "11852", + "x-ms-request-id": "07830583-cfd7-4bf7-97cb-e6a456c27c7f", + "x-ms-routing-request-id": "JAPANEAST:20230217T084720Z:5f940705-a403-49f0-9d80-a2c237356a68" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355/operationStatuses/1dfd976b-59c1-4824-8e8b-d90359f6ee2a?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-78a1a7f85d7889479cbc6d030228c6ea-96ffa6598dddbf16-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "f6d60e7ec455f1b42b7b87c4507af906", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:47:21 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "f6d60e7ec455f1b42b7b87c4507af906", + "x-ms-correlation-request-id": "b14b2ec9-0bb4-4507-ac61-1fecabe8031f", + "x-ms-ratelimit-remaining-subscription-reads": "11851", + "x-ms-request-id": "b551c597-3e2d-4bf4-a5b0-fb32c11212ba", + "x-ms-routing-request-id": "JAPANEAST:20230217T084721Z:b14b2ec9-0bb4-4507-ac61-1fecabe8031f" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355/operationStatuses/1dfd976b-59c1-4824-8e8b-d90359f6ee2a?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-78a1a7f85d7889479cbc6d030228c6ea-3048edaa594cb776-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "c4b2f5971cab5068dcc301fe6585b0bd", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "22", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:47:23 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "c4b2f5971cab5068dcc301fe6585b0bd", + "x-ms-correlation-request-id": "76852d69-aeb4-4c60-89c2-8e4b898a9044", + "x-ms-ratelimit-remaining-subscription-reads": "11850", + "x-ms-request-id": "14023c55-e8ac-4782-939e-6d3fe3b80230", + "x-ms-routing-request-id": "JAPANEAST:20230217T084724Z:76852d69-aeb4-4c60-89c2-8e4b898a9044" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355/firewallRules/firewallrulesdk9137?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-78a1a7f85d7889479cbc6d030228c6ea-69bab87f5c178808-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "4a727a5f75684560e02564b9731682fd", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "376", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:47:24 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "4a727a5f75684560e02564b9731682fd", + "x-ms-correlation-request-id": "1c43bb81-ecd9-4115-9c6d-d6b08a1ba562", + "x-ms-ratelimit-remaining-subscription-reads": "11849", + "x-ms-request-id": "5c0c641a-3b94-4da3-8b03-736a4f24823d", + "x-ms-routing-request-id": "JAPANEAST:20230217T084724Z:1c43bb81-ecd9-4115-9c6d-d6b08a1ba562" + }, + "ResponseBody": { + "properties": { + "provisioningState": "Succeeded", + "startIpAddress": "0.0.0.0", + "endIpAddress": "255.255.255.255" + }, + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355/firewallRules/firewallrulesdk9137", + "name": "firewallrulesdk9137", + "type": "Microsoft.Synapse/workspaces/firewallRules" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355/firewallRules/firewallrulesdk9137?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-b0447547290ba442d460163ff990a593-d6a26f3e0e608f93-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "f467bfcba85562a3a6861a91c3b58ca5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "376", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:47:24 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "f467bfcba85562a3a6861a91c3b58ca5", + "x-ms-correlation-request-id": "d8ed3e9e-7fb1-4801-8def-4fe79883af2c", + "x-ms-ratelimit-remaining-subscription-reads": "11848", + "x-ms-request-id": "ad8612e5-2c36-453c-9f69-88280f109992", + "x-ms-routing-request-id": "JAPANEAST:20230217T084725Z:d8ed3e9e-7fb1-4801-8def-4fe79883af2c" + }, + "ResponseBody": { + "properties": { + "provisioningState": "Succeeded", + "startIpAddress": "0.0.0.0", + "endIpAddress": "255.255.255.255" + }, + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355/firewallRules/firewallrulesdk9137", + "name": "firewallrulesdk9137", + "type": "Microsoft.Synapse/workspaces/firewallRules" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355/firewallRules/firewallrulesdk9137?api-version=2021-06-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "71", + "Content-Type": "application/json", + "traceparent": "00-70b48ad3456632d26a4cd63716052e6c-3eda6cc3d0fd1468-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "d664cacbaf07219d956ce386b7aeddc5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": { + "endIpAddress": "255.0.0.0", + "startIpAddress": "10.0.0.0" + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Access-Control-Allow-Headers": "Location", + "Access-Control-Expose-Headers": "Location", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355/operationStatuses/437e31fc-154d-4004-b965-429c58458168?api-version=2021-06-01", + "Cache-Control": "no-cache", + "Content-Length": "374", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:47:25 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355/operationResults/437e31fc-154d-4004-b965-429c58458168?api-version=2021-06-01", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "d664cacbaf07219d956ce386b7aeddc5", + "x-ms-correlation-request-id": "6988a245-ec39-45fe-acf2-1c9bf329b65c", + "x-ms-ratelimit-remaining-subscription-writes": "1177", + "x-ms-request-id": "0746250e-dcb7-4445-8035-9719c4f03663", + "x-ms-routing-request-id": "JAPANEAST:20230217T084725Z:6988a245-ec39-45fe-acf2-1c9bf329b65c" + }, + "ResponseBody": { + "properties": { + "provisioningState": "Provisioning", + "startIpAddress": "10.0.0.0", + "endIpAddress": "255.0.0.0" + }, + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355/firewallRules/firewallrulesdk9137", + "name": "firewallrulesdk9137", + "type": "Microsoft.Synapse/workspaces/firewallRules" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355/operationStatuses/437e31fc-154d-4004-b965-429c58458168?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-70b48ad3456632d26a4cd63716052e6c-22d738b9d5bee246-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "a9eebe98abb11bf621465fe9c41cabf7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:47:25 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "a9eebe98abb11bf621465fe9c41cabf7", + "x-ms-correlation-request-id": "d6409348-399e-444d-9e46-e920db384a5e", + "x-ms-ratelimit-remaining-subscription-reads": "11847", + "x-ms-request-id": "f0464564-9912-4554-ab98-29302fe69b34", + "x-ms-routing-request-id": "JAPANEAST:20230217T084726Z:d6409348-399e-444d-9e46-e920db384a5e" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355/operationStatuses/437e31fc-154d-4004-b965-429c58458168?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-70b48ad3456632d26a4cd63716052e6c-63e03e8d431fac39-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "bf5054a8e6820f8763aefff70bbbc5c6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:47:27 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "bf5054a8e6820f8763aefff70bbbc5c6", + "x-ms-correlation-request-id": "924fdfab-eee1-4a2e-b661-1e8be0cbd866", + "x-ms-ratelimit-remaining-subscription-reads": "11846", + "x-ms-request-id": "d6c5d73a-ec0e-45dc-a702-32e3079e83dd", + "x-ms-routing-request-id": "JAPANEAST:20230217T084727Z:924fdfab-eee1-4a2e-b661-1e8be0cbd866" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355/operationStatuses/437e31fc-154d-4004-b965-429c58458168?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-70b48ad3456632d26a4cd63716052e6c-463823dabc2c0bf9-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "f8edb8ea34c095140d1784d75c7df2ba", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:47:28 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "f8edb8ea34c095140d1784d75c7df2ba", + "x-ms-correlation-request-id": "3df3cb12-ea35-4b63-898b-c9704ec2d085", + "x-ms-ratelimit-remaining-subscription-reads": "11845", + "x-ms-request-id": "28557c4b-6487-47f7-a6b0-bd19859f66c8", + "x-ms-routing-request-id": "JAPANEAST:20230217T084729Z:3df3cb12-ea35-4b63-898b-c9704ec2d085" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355/operationStatuses/437e31fc-154d-4004-b965-429c58458168?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-70b48ad3456632d26a4cd63716052e6c-632c18f1867de74a-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "0739ac65c27eb2a837df4503acfe0f66", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:47:30 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "0739ac65c27eb2a837df4503acfe0f66", + "x-ms-correlation-request-id": "564e0ffa-018e-4926-8f85-8061cb863bf6", + "x-ms-ratelimit-remaining-subscription-reads": "11844", + "x-ms-request-id": "5c6e19fc-6205-4425-8757-a26c34df2935", + "x-ms-routing-request-id": "JAPANEAST:20230217T084730Z:564e0ffa-018e-4926-8f85-8061cb863bf6" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355/operationStatuses/437e31fc-154d-4004-b965-429c58458168?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-70b48ad3456632d26a4cd63716052e6c-6e6efbad93a4b597-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "0bfe9980b22f743740bab26a61b0b3e5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:47:32 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "0bfe9980b22f743740bab26a61b0b3e5", + "x-ms-correlation-request-id": "acb9ce13-2ae1-48a4-9928-fa30c007815c", + "x-ms-ratelimit-remaining-subscription-reads": "11843", + "x-ms-request-id": "cc776537-51fa-4cb9-adb7-67f833c6c74a", + "x-ms-routing-request-id": "JAPANEAST:20230217T084732Z:acb9ce13-2ae1-48a4-9928-fa30c007815c" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355/operationStatuses/437e31fc-154d-4004-b965-429c58458168?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-70b48ad3456632d26a4cd63716052e6c-e77683d804c093fa-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "5f9144bbbe822847103ac1e1ee11e90e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:47:37 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "5f9144bbbe822847103ac1e1ee11e90e", + "x-ms-correlation-request-id": "53be4a6b-b378-4d5f-887e-0e89f4f333a6", + "x-ms-ratelimit-remaining-subscription-reads": "11842", + "x-ms-request-id": "84dfbdaf-9e07-4452-8af5-f9e3d22f39d8", + "x-ms-routing-request-id": "JAPANEAST:20230217T084737Z:53be4a6b-b378-4d5f-887e-0e89f4f333a6" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355/operationStatuses/437e31fc-154d-4004-b965-429c58458168?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-70b48ad3456632d26a4cd63716052e6c-106aa510cef78d61-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "c3561e07e67fb28a74c4c7c40f3d5086", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "22", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:47:45 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "c3561e07e67fb28a74c4c7c40f3d5086", + "x-ms-correlation-request-id": "21474849-89fd-4229-aa0d-48a0dc984c4c", + "x-ms-ratelimit-remaining-subscription-reads": "11841", + "x-ms-request-id": "dfbe36ef-6b2a-4237-829b-9191a1fff1ec", + "x-ms-routing-request-id": "JAPANEAST:20230217T084745Z:21474849-89fd-4229-aa0d-48a0dc984c4c" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355/firewallRules/firewallrulesdk9137?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-70b48ad3456632d26a4cd63716052e6c-ba0ad4e0e95db30b-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "6747602bb06dc2e351d6fbf4f156862e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "371", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:47:45 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "6747602bb06dc2e351d6fbf4f156862e", + "x-ms-correlation-request-id": "47b81c98-56f0-463f-94bb-1eff7870be6f", + "x-ms-ratelimit-remaining-subscription-reads": "11840", + "x-ms-request-id": "179a91dc-cf62-483f-90a4-943aa5a19547", + "x-ms-routing-request-id": "JAPANEAST:20230217T084746Z:47b81c98-56f0-463f-94bb-1eff7870be6f" + }, + "ResponseBody": { + "properties": { + "provisioningState": "Succeeded", + "startIpAddress": "10.0.0.0", + "endIpAddress": "255.0.0.0" + }, + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355/firewallRules/firewallrulesdk9137", + "name": "firewallrulesdk9137", + "type": "Microsoft.Synapse/workspaces/firewallRules" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355/firewallRules?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "4363a4d1ef59d466badfeabdf78318d2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "383", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:47:46 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "4363a4d1ef59d466badfeabdf78318d2", + "x-ms-correlation-request-id": "a2ef6b92-b93b-4029-a16f-eed3a6bea660", + "x-ms-ratelimit-remaining-subscription-reads": "11839", + "x-ms-request-id": "fc0d5c63-9a1f-4297-82e7-449e5c584c05", + "x-ms-routing-request-id": "JAPANEAST:20230217T084746Z:a2ef6b92-b93b-4029-a16f-eed3a6bea660" + }, + "ResponseBody": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "startIpAddress": "10.0.0.0", + "endIpAddress": "255.0.0.0" + }, + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355/firewallRules/firewallrulesdk9137", + "name": "firewallrulesdk9137", + "type": "Microsoft.Synapse/workspaces/firewallRules" + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355/firewallRules/firewallrulesdk9137?api-version=2021-06-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-8c0f62f6373a160415026953e8a56d0e-51c3b8ae5318f9a0-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "8eb53ae981c957a13a9471a8eb95c11e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Allow-Headers": "Location", + "Access-Control-Expose-Headers": "Location", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355/operationStatuses/3a2dabb3-e631-494f-b6f6-dfee1a95286c?api-version=2021-06-01", + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Fri, 17 Feb 2023 08:47:46 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355/operationResults/3a2dabb3-e631-494f-b6f6-dfee1a95286c?api-version=2021-06-01", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "8eb53ae981c957a13a9471a8eb95c11e", + "x-ms-correlation-request-id": "b8e6eb50-08ec-443e-810f-a2dc699c91e1", + "x-ms-ratelimit-remaining-subscription-deletes": "14996", + "x-ms-request-id": "5bcad098-9918-4775-b3de-5b29873d0f6c", + "x-ms-routing-request-id": "JAPANEAST:20230217T084747Z:b8e6eb50-08ec-443e-810f-a2dc699c91e1" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355/operationStatuses/3a2dabb3-e631-494f-b6f6-dfee1a95286c?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-8c0f62f6373a160415026953e8a56d0e-7c755b741ac44d26-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "b60b29bdf8a04f65020b09c57ebde924", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:47:47 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "b60b29bdf8a04f65020b09c57ebde924", + "x-ms-correlation-request-id": "612cf315-d453-4b05-b1d0-65cf34b63dde", + "x-ms-ratelimit-remaining-subscription-reads": "11838", + "x-ms-request-id": "9f224d59-1cdc-4de9-9646-270334a859bc", + "x-ms-routing-request-id": "JAPANEAST:20230217T084747Z:612cf315-d453-4b05-b1d0-65cf34b63dde" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355/operationStatuses/3a2dabb3-e631-494f-b6f6-dfee1a95286c?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-8c0f62f6373a160415026953e8a56d0e-f0e000193be2f5c8-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "5e7fcc1dad90dcf70e799456d4139114", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:47:48 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "5e7fcc1dad90dcf70e799456d4139114", + "x-ms-correlation-request-id": "422372ed-bf19-42b2-a409-58f9d8397638", + "x-ms-ratelimit-remaining-subscription-reads": "11837", + "x-ms-request-id": "f281bc49-4b6b-43d9-91d8-35f1359bfdf5", + "x-ms-routing-request-id": "JAPANEAST:20230217T084749Z:422372ed-bf19-42b2-a409-58f9d8397638" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355/operationStatuses/3a2dabb3-e631-494f-b6f6-dfee1a95286c?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-8c0f62f6373a160415026953e8a56d0e-81d8cf4fc970e849-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "c1eba3c80b8a467d32a368ce0366bd3c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:47:49 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "c1eba3c80b8a467d32a368ce0366bd3c", + "x-ms-correlation-request-id": "b6d02077-b270-4227-a0f4-fd7be9c61076", + "x-ms-ratelimit-remaining-subscription-reads": "11836", + "x-ms-request-id": "b047a721-2eb6-448d-af9b-c5c6cd5d9500", + "x-ms-routing-request-id": "JAPANEAST:20230217T084750Z:b6d02077-b270-4227-a0f4-fd7be9c61076" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355/operationStatuses/3a2dabb3-e631-494f-b6f6-dfee1a95286c?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-8c0f62f6373a160415026953e8a56d0e-aba2bfe623ddcc04-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "f97089886ca6103c312ea727630e7aef", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:47:51 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "f97089886ca6103c312ea727630e7aef", + "x-ms-correlation-request-id": "d25dfad5-00bb-4c1c-9710-6afc59424825", + "x-ms-ratelimit-remaining-subscription-reads": "11835", + "x-ms-request-id": "7854081e-a9ad-44c9-bb1c-34232b32cf6f", + "x-ms-routing-request-id": "JAPANEAST:20230217T084751Z:d25dfad5-00bb-4c1c-9710-6afc59424825" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355/operationStatuses/3a2dabb3-e631-494f-b6f6-dfee1a95286c?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-8c0f62f6373a160415026953e8a56d0e-29fc80d104eab662-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "dafcf57a28d211994e392bed4429d8a7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:47:53 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "dafcf57a28d211994e392bed4429d8a7", + "x-ms-correlation-request-id": "ec7184bb-3680-4d1e-9ac4-4ca7c997243c", + "x-ms-ratelimit-remaining-subscription-reads": "11834", + "x-ms-request-id": "082e8fde-716b-4fdc-a0db-b15d7957f396", + "x-ms-routing-request-id": "JAPANEAST:20230217T084754Z:ec7184bb-3680-4d1e-9ac4-4ca7c997243c" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355/operationStatuses/3a2dabb3-e631-494f-b6f6-dfee1a95286c?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-8c0f62f6373a160415026953e8a56d0e-5441a2186530c802-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "4bcd58bb98a25c6d66da905c6355e223", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:47:58 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "4bcd58bb98a25c6d66da905c6355e223", + "x-ms-correlation-request-id": "9dc25232-9254-4c30-abea-84a588561070", + "x-ms-ratelimit-remaining-subscription-reads": "11833", + "x-ms-request-id": "cb94f26e-2d22-4090-a15c-1c1a6b98edeb", + "x-ms-routing-request-id": "JAPANEAST:20230217T084758Z:9dc25232-9254-4c30-abea-84a588561070" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355/operationStatuses/3a2dabb3-e631-494f-b6f6-dfee1a95286c?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-8c0f62f6373a160415026953e8a56d0e-667293304844b353-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "0e547928e36a6069ef5faa6d404fcc08", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:48:06 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "0e547928e36a6069ef5faa6d404fcc08", + "x-ms-correlation-request-id": "8cc481c7-4e24-4510-b834-7b0257f90e6d", + "x-ms-ratelimit-remaining-subscription-reads": "11832", + "x-ms-request-id": "1d3c854c-9308-48ee-8b4f-75d6df37d973", + "x-ms-routing-request-id": "JAPANEAST:20230217T084807Z:8cc481c7-4e24-4510-b834-7b0257f90e6d" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355/operationStatuses/3a2dabb3-e631-494f-b6f6-dfee1a95286c?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-8c0f62f6373a160415026953e8a56d0e-bed4dd47e09d3810-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "0b6c00552f41e14c87a073f7973dadf9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "22", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:48:23 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "0b6c00552f41e14c87a073f7973dadf9", + "x-ms-correlation-request-id": "6955b9df-4611-4e60-9cf8-0f09fe1da323", + "x-ms-ratelimit-remaining-subscription-reads": "11831", + "x-ms-request-id": "675653a6-55f5-47b2-9823-9ab15bfcbea9", + "x-ms-routing-request-id": "JAPANEAST:20230217T084823Z:6955b9df-4611-4e60-9cf8-0f09fe1da323" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6950/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace355/firewallRules?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "cbc50857cad4d73dee6d5b43ee001b17", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "12", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:48:24 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "cbc50857cad4d73dee6d5b43ee001b17", + "x-ms-correlation-request-id": "2a42603d-931c-49ea-a8a4-8e25ac4a281f", + "x-ms-ratelimit-remaining-subscription-reads": "11830", + "x-ms-request-id": "94c230e7-16c7-4f59-aff9-a10ed79434c8", + "x-ms-routing-request-id": "JAPANEAST:20230217T084824Z:2a42603d-931c-49ea-a8a4-8e25ac4a281f" + }, + "ResponseBody": { + "value": [] + } + } + ], + "Variables": { + "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com/", + "RandomSeed": "356415523", + "RESOURCE_MANAGER_URL": null, + "SUBSCRIPTION_ID": "051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3" + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/tests/SessionRecords/KustopoolOperationTests/TestKustoPoolDatabaseLifeCycle.json b/sdk/synapse/Azure.ResourceManager.Synapse/tests/SessionRecords/KustopoolOperationTests/TestKustoPoolDatabaseLifeCycle.json new file mode 100644 index 0000000000000..4fc7efe9f8d41 --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/tests/SessionRecords/KustopoolOperationTests/TestKustoPoolDatabaseLifeCycle.json @@ -0,0 +1,2993 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3?api-version=2021-01-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-e1a80c5483a3822d0b3c734c6e4dddbb-be7953a7e8fce588-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "8a749951006455ce8476add925c1f9ff", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "492", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:48:30 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "02f0a062-2eef-4be1-8ca6-9c6312b51ead", + "x-ms-ratelimit-remaining-subscription-reads": "11829", + "x-ms-request-id": "02f0a062-2eef-4be1-8ca6-9c6312b51ead", + "x-ms-routing-request-id": "JAPANEAST:20230217T084830Z:02f0a062-2eef-4be1-8ca6-9c6312b51ead" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3", + "authorizationSource": "RoleBased", + "managedByTenants": [ + { + "tenantId": "2f4a9838-26b7-47ee-be60-ccc1fdec5953" + } + ], + "tags": { + "sub_tagname_1": "sub_tagvalue_1" + }, + "subscriptionId": "051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Synapse Web Tooling", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourcegroups/synapsesdkrp7947?api-version=**", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "22", + "Content-Type": "application/json", + "traceparent": "00-7f91e526594e17312dc8164d5711cb7e-377973b05196e0af-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "92749deed6eb698ce7397a8151fba20c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "eastus2" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "230", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:48:31 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c84c199d-fd64-477c-b2cc-d29ec9fa86e7", + "x-ms-ratelimit-remaining-subscription-writes": "1176", + "x-ms-request-id": "c84c199d-fd64-477c-b2cc-d29ec9fa86e7", + "x-ms-routing-request-id": "JAPANEAST:20230217T084831Z:c84c199d-fd64-477c-b2cc-d29ec9fa86e7" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp7947", + "name": "synapsesdkrp7947", + "type": "Microsoft.Resources/resourceGroups", + "location": "eastus2", + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp7947/providers/Microsoft.Storage/storageAccounts/synapsesdkstorage6920?api-version=2022-09-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "87", + "Content-Type": "application/json", + "traceparent": "00-5ca4cc1a794ad05c082348ad2bf55c22-831c556c618341b0-00", + "User-Agent": "azsdk-net-ResourceManager.Storage/1.1.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "2498419923435a09a36d96a92ec65382", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "sku": { + "name": "Standard_GRS" + }, + "kind": "StorageV2", + "location": "eastus2", + "properties": {} + }, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Content-Type": "text/plain; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:48:37 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Storage/locations/eastus2/asyncoperations/0957aeca-b041-4bf9-9475-3122070eb4f4?monitor=true\u0026api-version=2022-09-01", + "Pragma": "no-cache", + "Retry-After": "17", + "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "2498419923435a09a36d96a92ec65382", + "x-ms-correlation-request-id": "73f9ca9b-79e0-4699-9429-8484abd96296", + "x-ms-ratelimit-remaining-subscription-writes": "1175", + "x-ms-request-id": "0957aeca-b041-4bf9-9475-3122070eb4f4", + "x-ms-routing-request-id": "JAPANEAST:20230217T084837Z:73f9ca9b-79e0-4699-9429-8484abd96296" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Storage/locations/eastus2/asyncoperations/0957aeca-b041-4bf9-9475-3122070eb4f4?monitor=true\u0026api-version=2022-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5ca4cc1a794ad05c082348ad2bf55c22-8fcc9700af4854c8-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "d3c2f3569a05ca30931aee7d3fe33a21", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Content-Type": "text/plain; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:48:37 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Storage/locations/eastus2/asyncoperations/0957aeca-b041-4bf9-9475-3122070eb4f4?monitor=true\u0026api-version=2022-09-01", + "Pragma": "no-cache", + "Retry-After": "17", + "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "d3c2f3569a05ca30931aee7d3fe33a21", + "x-ms-correlation-request-id": "1c99d311-884b-47c0-ab95-068f19389e22", + "x-ms-ratelimit-remaining-subscription-reads": "11828", + "x-ms-request-id": "ba8f76b3-5f45-4b84-a563-038d5ca52eb1", + "x-ms-routing-request-id": "JAPANEAST:20230217T084837Z:1c99d311-884b-47c0-ab95-068f19389e22" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Storage/locations/eastus2/asyncoperations/0957aeca-b041-4bf9-9475-3122070eb4f4?monitor=true\u0026api-version=2022-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5ca4cc1a794ad05c082348ad2bf55c22-63b45d6a163052c1-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "294df7e6a698a10cc86ee35685cc274c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1528", + "Content-Type": "application/json", + "Date": "Fri, 17 Feb 2023 08:48:54 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "294df7e6a698a10cc86ee35685cc274c", + "x-ms-correlation-request-id": "17cce1fc-f5d7-4679-9c23-0105560cd704", + "x-ms-ratelimit-remaining-subscription-reads": "11827", + "x-ms-request-id": "f948a77f-8ebc-4d34-bdbc-7062fd5a882a", + "x-ms-routing-request-id": "JAPANEAST:20230217T084855Z:17cce1fc-f5d7-4679-9c23-0105560cd704" + }, + "ResponseBody": { + "sku": { + "name": "Standard_GRS", + "tier": "Standard" + }, + "kind": "StorageV2", + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp7947/providers/Microsoft.Storage/storageAccounts/synapsesdkstorage6920", + "name": "synapsesdkstorage6920", + "type": "Microsoft.Storage/storageAccounts", + "location": "eastus2", + "tags": {}, + "properties": { + "keyCreationTime": { + "key1": "2023-02-17T08:48:34.6799875Z", + "key2": "2023-02-17T08:48:34.6799875Z" + }, + "privateEndpointConnections": [], + "minimumTlsVersion": "TLS1_0", + "allowBlobPublicAccess": true, + "networkAcls": { + "bypass": "AzureServices", + "virtualNetworkRules": [], + "ipRules": [], + "defaultAction": "Allow" + }, + "supportsHttpsTrafficOnly": true, + "encryption": { + "services": { + "file": { + "keyType": "Account", + "enabled": true, + "lastEnabledTime": "2023-02-17T08:48:35.0081665Z" + }, + "blob": { + "keyType": "Account", + "enabled": true, + "lastEnabledTime": "2023-02-17T08:48:35.0081665Z" + } + }, + "keySource": "Microsoft.Storage" + }, + "accessTier": "Hot", + "provisioningState": "Succeeded", + "creationTime": "2023-02-17T08:48:34.5393637Z", + "primaryEndpoints": { + "dfs": "https://synapsesdkstorage6920.dfs.core.windows.net/", + "web": "https://synapsesdkstorage6920.z20.web.core.windows.net/", + "blob": "https://synapsesdkstorage6920.blob.core.windows.net/", + "queue": "https://synapsesdkstorage6920.queue.core.windows.net/", + "table": "https://synapsesdkstorage6920.table.core.windows.net/", + "file": "https://synapsesdkstorage6920.file.core.windows.net/" + }, + "primaryLocation": "eastus2", + "statusOfPrimary": "available", + "secondaryLocation": "centralus", + "statusOfSecondary": "available" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp7947/providers/Microsoft.Storage/storageAccounts/synapsesdkstorage6920/listKeys?api-version=2022-09-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "0", + "traceparent": "00-d993721998730e05281cc60bbafe40db-81e5a769ca71493f-00", + "User-Agent": "azsdk-net-ResourceManager.Storage/1.1.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "3b52d0997f039a7df69868e50afbea5e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "380", + "Content-Type": "application/json", + "Date": "Fri, 17 Feb 2023 08:48:54 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "3b52d0997f039a7df69868e50afbea5e", + "x-ms-correlation-request-id": "53123913-29f6-4aa1-af4d-2b3010d5e6de", + "x-ms-ratelimit-remaining-subscription-resource-requests": "11995", + "x-ms-request-id": "5f2e378d-12ab-47fc-a3cd-863b501b107f", + "x-ms-routing-request-id": "JAPANEAST:20230217T084855Z:53123913-29f6-4aa1-af4d-2b3010d5e6de" + }, + "ResponseBody": { + "keys": [ + { + "creationTime": "2023-02-17T08:48:34.6799875Z", + "keyName": "key1", + "value": "sYsdn9D9F5wxss5HA9xmP1ZycvflhDwHfOtzo\u002B\u002Be5vnHxLvEduUHMZ7xGVpa22FG7tq8yU5/6X7P\u002BAStmAxuIQ==", + "permissions": "FULL" + }, + { + "creationTime": "2023-02-17T08:48:34.6799875Z", + "keyName": "key2", + "value": "gh15ohgF5T6Mdg2pcDiTSfJ1I\u002BmI7JsE6ccu9i3\u002Bp/3X6XJqtdT8ZI04iZm84cqc7oZgM1XIRUzQ\u002BAStrNWXGA==", + "permissions": "FULL" + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp7947/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace716?api-version=2021-06-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "301", + "Content-Type": "application/json", + "traceparent": "00-e902a320a7bfb63de94b3965313c4191-e3a624d2e60902a7-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "0a3a567c2eaae6b0210b96b7d945c6f2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "identity": { + "type": "SystemAssigned" + }, + "tags": {}, + "location": "eastus2", + "properties": { + "defaultDataLakeStorage": { + "accountUrl": "https://synapsesdkstorage6920.dfs.core.windows.net/", + "filesystem": "synapsesdkfilesys197" + }, + "sqlAdministratorLoginPassword": "Password1!2289", + "sqlAdministratorLogin": "sshuser2657" + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp7947/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace716/operationStatuses/ded38eac-80f9-41e7-b808-7bf32ffa6cdd?api-version=2021-06-01", + "Cache-Control": "no-cache", + "Content-Length": "1470", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:49:00 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "0a3a567c2eaae6b0210b96b7d945c6f2", + "x-ms-correlation-request-id": "e3b18367-c838-46ce-9f5b-34b725946b79", + "x-ms-ratelimit-remaining-subscription-writes": "1174", + "x-ms-request-id": "d230aa52-ff4f-4812-ad0b-a45c6447a04b", + "x-ms-routing-request-id": "JAPANEAST:20230217T084901Z:e3b18367-c838-46ce-9f5b-34b725946b79" + }, + "ResponseBody": { + "properties": { + "defaultDataLakeStorage": { + "createManagedPrivateEndpoint": false, + "accountUrl": "https://synapsesdkstorage6920.dfs.core.windows.net/", + "filesystem": "synapsesdkfilesys197" + }, + "encryption": { + "doubleEncryptionEnabled": false + }, + "provisioningState": "Provisioning", + "connectivityEndpoints": { + "web": "https://web.azuresynapse.net?workspace=%2fsubscriptions%2f051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3%2fresourceGroups%2fsynapsesdkrp7947%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fsynapsesdkworkspace716", + "dev": "https://synapsesdkworkspace716.dev.azuresynapse.net", + "sqlOnDemand": "synapsesdkworkspace716-ondemand.sql.azuresynapse.net", + "sql": "synapsesdkworkspace716.sql.azuresynapse.net" + }, + "managedResourceGroupName": "synapseworkspace-managedrg-3f5148f1-431c-4c3d-b0ba-1c22b26d934a", + "privateEndpointConnections": [], + "workspaceUID": "c01cffa2-fbc3-42f0-badd-e45f054debd6", + "extraProperties": { + "WorkspaceType": "Normal" + }, + "publicNetworkAccess": "Enabled", + "cspWorkspaceAdminProperties": { + "initialWorkspaceAdminObjectId": "5adcf4d8-4923-420e-ab0b-f6e5fc718b42" + }, + "trustedServiceBypassEnabled": false + }, + "type": "Microsoft.Synapse/workspaces", + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp7947/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace716", + "location": "eastus2", + "name": "synapsesdkworkspace716", + "identity": { + "type": "SystemAssigned", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "principalId": "f1043d07-715a-42c0-b978-0d094610cedb" + }, + "tags": {} + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp7947/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace716/operationStatuses/ded38eac-80f9-41e7-b808-7bf32ffa6cdd?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-e902a320a7bfb63de94b3965313c4191-13102acc106f930b-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "7609a48541eca2efa255e274e6e21c52", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:49:01 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "7609a48541eca2efa255e274e6e21c52", + "x-ms-correlation-request-id": "a570ee97-a311-4056-8100-de86dffb9495", + "x-ms-ratelimit-remaining-subscription-reads": "11826", + "x-ms-request-id": "bb689839-0ced-4c8d-98e7-9057551aff57", + "x-ms-routing-request-id": "JAPANEAST:20230217T084902Z:a570ee97-a311-4056-8100-de86dffb9495" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp7947/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace716/operationStatuses/ded38eac-80f9-41e7-b808-7bf32ffa6cdd?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-e902a320a7bfb63de94b3965313c4191-487e948600bb79c6-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "1667f3a1cc7c5eb3efc057772e72c08a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:49:02 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "1667f3a1cc7c5eb3efc057772e72c08a", + "x-ms-correlation-request-id": "ee8cc52d-e52c-4027-a818-1f85dff9cef6", + "x-ms-ratelimit-remaining-subscription-reads": "11825", + "x-ms-request-id": "9761bf86-e281-4644-847e-5ed054a7626e", + "x-ms-routing-request-id": "JAPANEAST:20230217T084903Z:ee8cc52d-e52c-4027-a818-1f85dff9cef6" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp7947/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace716/operationStatuses/ded38eac-80f9-41e7-b808-7bf32ffa6cdd?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-e902a320a7bfb63de94b3965313c4191-0ad8216036f7a4a2-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "3532123e503b6005f5cbeea93af393cf", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:49:04 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "3532123e503b6005f5cbeea93af393cf", + "x-ms-correlation-request-id": "720af173-3b5b-4760-8bd9-86bc60985bc5", + "x-ms-ratelimit-remaining-subscription-reads": "11824", + "x-ms-request-id": "ddc52dc0-6352-4a64-8afc-54260307dc46", + "x-ms-routing-request-id": "JAPANEAST:20230217T084904Z:720af173-3b5b-4760-8bd9-86bc60985bc5" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp7947/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace716/operationStatuses/ded38eac-80f9-41e7-b808-7bf32ffa6cdd?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-e902a320a7bfb63de94b3965313c4191-135df441431baa89-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "339bad16b52fb808f1aa872ce978742f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:49:05 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "339bad16b52fb808f1aa872ce978742f", + "x-ms-correlation-request-id": "3c5b1115-bb4e-4f7e-afe3-403b1c6096fc", + "x-ms-ratelimit-remaining-subscription-reads": "11823", + "x-ms-request-id": "0416839d-27cd-4a1a-9628-a24b03106bee", + "x-ms-routing-request-id": "JAPANEAST:20230217T084906Z:3c5b1115-bb4e-4f7e-afe3-403b1c6096fc" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp7947/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace716/operationStatuses/ded38eac-80f9-41e7-b808-7bf32ffa6cdd?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-e902a320a7bfb63de94b3965313c4191-45d48d4ae047fd28-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "d4355894e7b05117ed0621b0dd0a24fc", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:49:08 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "d4355894e7b05117ed0621b0dd0a24fc", + "x-ms-correlation-request-id": "9022cc3b-fc54-45a2-a369-1eb57a4510be", + "x-ms-ratelimit-remaining-subscription-reads": "11822", + "x-ms-request-id": "9b52c1a2-e61f-46b5-8e4a-3aad43dbc3d2", + "x-ms-routing-request-id": "JAPANEAST:20230217T084908Z:9022cc3b-fc54-45a2-a369-1eb57a4510be" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp7947/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace716/operationStatuses/ded38eac-80f9-41e7-b808-7bf32ffa6cdd?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-e902a320a7bfb63de94b3965313c4191-95a6fa4139d54e72-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "8060872c8cd6885b09794390c9d9777d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:49:12 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "8060872c8cd6885b09794390c9d9777d", + "x-ms-correlation-request-id": "670da8e0-eb7d-4f3e-8e01-f307f509f5e5", + "x-ms-ratelimit-remaining-subscription-reads": "11821", + "x-ms-request-id": "8d6e0aa8-97aa-4574-b1f8-d97947b6a226", + "x-ms-routing-request-id": "JAPANEAST:20230217T084913Z:670da8e0-eb7d-4f3e-8e01-f307f509f5e5" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp7947/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace716/operationStatuses/ded38eac-80f9-41e7-b808-7bf32ffa6cdd?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-e902a320a7bfb63de94b3965313c4191-7e269c0227f8f868-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "e214bf57bfbd2e1e954a46289457dae7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:49:20 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "e214bf57bfbd2e1e954a46289457dae7", + "x-ms-correlation-request-id": "3b663162-8135-4e3e-aac0-9ff701b0b64c", + "x-ms-ratelimit-remaining-subscription-reads": "11820", + "x-ms-request-id": "1fe0c070-39f5-4293-a0c1-d4eac80dbedf", + "x-ms-routing-request-id": "JAPANEAST:20230217T084921Z:3b663162-8135-4e3e-aac0-9ff701b0b64c" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp7947/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace716/operationStatuses/ded38eac-80f9-41e7-b808-7bf32ffa6cdd?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-e902a320a7bfb63de94b3965313c4191-66c12978914cafb6-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "61008b86f3170758fcacca37a4868814", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:49:37 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "61008b86f3170758fcacca37a4868814", + "x-ms-correlation-request-id": "1b23c723-6b45-465c-97a8-63645a2d08f3", + "x-ms-ratelimit-remaining-subscription-reads": "11819", + "x-ms-request-id": "2006bb4a-ae1e-4060-afa2-16781eb652f4", + "x-ms-routing-request-id": "JAPANEAST:20230217T084938Z:1b23c723-6b45-465c-97a8-63645a2d08f3" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp7947/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace716/operationStatuses/ded38eac-80f9-41e7-b808-7bf32ffa6cdd?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-e902a320a7bfb63de94b3965313c4191-e788797f2d5dcb20-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "1e59a48f41f56d3e6832eb8c4633f4b1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:50:10 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "1e59a48f41f56d3e6832eb8c4633f4b1", + "x-ms-correlation-request-id": "996c5e58-b58a-42cf-93e4-f05a0b99a66e", + "x-ms-ratelimit-remaining-subscription-reads": "11818", + "x-ms-request-id": "fd77a282-8819-48d5-ae08-c82128b03ae8", + "x-ms-routing-request-id": "JAPANEAST:20230217T085010Z:996c5e58-b58a-42cf-93e4-f05a0b99a66e" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp7947/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace716/operationStatuses/ded38eac-80f9-41e7-b808-7bf32ffa6cdd?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-e902a320a7bfb63de94b3965313c4191-690c419a8ca54999-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "3e095c9f15d86365660ce511f4e78a0f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:50:42 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "3e095c9f15d86365660ce511f4e78a0f", + "x-ms-correlation-request-id": "ef6963c8-5a32-4f5d-93a8-16cac7164448", + "x-ms-ratelimit-remaining-subscription-reads": "11817", + "x-ms-request-id": "201547fa-2e9d-49bc-9ab2-9cdbb1b87439", + "x-ms-routing-request-id": "JAPANEAST:20230217T085042Z:ef6963c8-5a32-4f5d-93a8-16cac7164448" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp7947/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace716/operationStatuses/ded38eac-80f9-41e7-b808-7bf32ffa6cdd?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-e902a320a7bfb63de94b3965313c4191-57f2a4961a2c49a9-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "ef9831c2bbfe45f14c93f8e508ccc0c9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:51:14 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "ef9831c2bbfe45f14c93f8e508ccc0c9", + "x-ms-correlation-request-id": "1768ad3a-1fbc-4947-95b1-44f8b7009a20", + "x-ms-ratelimit-remaining-subscription-reads": "11816", + "x-ms-request-id": "8c576d60-e853-4f2b-96c4-a8984219b578", + "x-ms-routing-request-id": "JAPANEAST:20230217T085115Z:1768ad3a-1fbc-4947-95b1-44f8b7009a20" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp7947/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace716/operationStatuses/ded38eac-80f9-41e7-b808-7bf32ffa6cdd?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-e902a320a7bfb63de94b3965313c4191-37287f6239dfeecc-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "479718b74a7c793b3ef6b8e85b2c7881", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "22", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:51:47 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "479718b74a7c793b3ef6b8e85b2c7881", + "x-ms-correlation-request-id": "94f77d39-8c82-4cd3-94d9-92b2fd7e96f8", + "x-ms-ratelimit-remaining-subscription-reads": "11815", + "x-ms-request-id": "b2cb7893-b627-439d-8c3e-4746abf91441", + "x-ms-routing-request-id": "JAPANEAST:20230217T085147Z:94f77d39-8c82-4cd3-94d9-92b2fd7e96f8" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp7947/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace716?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-e902a320a7bfb63de94b3965313c4191-806a777e471eb967-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "15cadba7059ae3b36ac4f1451d805a99", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1528", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:51:47 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "15cadba7059ae3b36ac4f1451d805a99", + "x-ms-correlation-request-id": "7575a902-30bf-4b71-8c63-adb78b3ad869", + "x-ms-ratelimit-remaining-subscription-reads": "11814", + "x-ms-request-id": "b186de7c-9db3-4815-83e8-e1d81637777a", + "x-ms-routing-request-id": "JAPANEAST:20230217T085148Z:7575a902-30bf-4b71-8c63-adb78b3ad869" + }, + "ResponseBody": { + "properties": { + "defaultDataLakeStorage": { + "createManagedPrivateEndpoint": false, + "accountUrl": "https://synapsesdkstorage6920.dfs.core.windows.net/", + "filesystem": "synapsesdkfilesys197" + }, + "encryption": { + "doubleEncryptionEnabled": false + }, + "provisioningState": "Succeeded", + "connectivityEndpoints": { + "web": "https://web.azuresynapse.net?workspace=%2fsubscriptions%2f051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3%2fresourceGroups%2fsynapsesdkrp7947%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fsynapsesdkworkspace716", + "dev": "https://synapsesdkworkspace716.dev.azuresynapse.net", + "sqlOnDemand": "synapsesdkworkspace716-ondemand.sql.azuresynapse.net", + "sql": "synapsesdkworkspace716.sql.azuresynapse.net" + }, + "managedResourceGroupName": "synapseworkspace-managedrg-3f5148f1-431c-4c3d-b0ba-1c22b26d934a", + "sqlAdministratorLogin": "sshuser2657", + "privateEndpointConnections": [], + "workspaceUID": "c01cffa2-fbc3-42f0-badd-e45f054debd6", + "extraProperties": { + "WorkspaceType": "Normal", + "IsScopeEnabled": false + }, + "publicNetworkAccess": "Enabled", + "cspWorkspaceAdminProperties": { + "initialWorkspaceAdminObjectId": "5adcf4d8-4923-420e-ab0b-f6e5fc718b42" + }, + "trustedServiceBypassEnabled": false + }, + "type": "Microsoft.Synapse/workspaces", + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp7947/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace716", + "location": "eastus2", + "name": "synapsesdkworkspace716", + "identity": { + "type": "SystemAssigned", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "principalId": "f1043d07-715a-42c0-b978-0d094610cedb" + }, + "tags": {} + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp7947/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace716/kustoPools/kustopool8935?api-version=2021-06-01-preview", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "152", + "Content-Type": "application/json", + "traceparent": "00-3d5b18f4d2b08148d13c9675885b30b5-b815c9a438551ecd-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "50db591c9242f6771eb0080309e91f1a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "sku": { + "name": "Storage optimized", + "size": "Medium" + }, + "tags": {}, + "location": "eastus2", + "properties": { + "workspaceUID": "c01cffa2-fbc3-42f0-badd-e45f054debd6" + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/3fb1bd7f-8330-43a7-a18b-02e4a0a721ed?api-version=2021-06-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "489", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:51:52 GMT", + "ETag": "\u0022\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7a95315c-c75c-435c-9a71-262b07eedb59", + "x-ms-ratelimit-remaining-subscription-writes": "1173", + "x-ms-request-id": "ba312210-0c98-4008-bb3e-cf829f35ef96", + "x-ms-routing-request-id": "JAPANEAST:20230217T085153Z:7a95315c-c75c-435c-9a71-262b07eedb59" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp7947/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace716/kustoPools/kustopool8935", + "name": "synapsesdkworkspace716/kustopool8935", + "type": "Microsoft.Synapse/workspaces/kustoPools", + "etag": "\u0022\u0022", + "location": "eastus2", + "sku": { + "name": "Storage optimized", + "size": "Medium" + }, + "tags": {}, + "properties": { + "state": "Creating", + "workspaceUID": "c01cffa2-fbc3-42f0-badd-e45f054debd6", + "provisioningState": "Creating" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/3fb1bd7f-8330-43a7-a18b-02e4a0a721ed?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-3d5b18f4d2b08148d13c9675885b30b5-0361c3435b9a08f5-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "d33f9c1e309d4865521e7b54aae061db", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:51:52 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "fb3aaef9-04a6-4c0e-9118-941d975827c7", + "x-ms-ratelimit-remaining-subscription-reads": "11813", + "x-ms-request-id": "dddc6fbe-1e3c-486c-9f5f-f6ad7e945641", + "x-ms-routing-request-id": "JAPANEAST:20230217T085153Z:fb3aaef9-04a6-4c0e-9118-941d975827c7" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/3fb1bd7f-8330-43a7-a18b-02e4a0a721ed", + "name": "3fb1bd7f-8330-43a7-a18b-02e4a0a721ed", + "status": "Running", + "startTime": "2023-02-17T08:51:52.0837158Z", + "endTime": "2023-02-17T08:51:52.0837158Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "cfd96567-ffb2-4a73-8b93-b2b16a11639f", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/3fb1bd7f-8330-43a7-a18b-02e4a0a721ed?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-3d5b18f4d2b08148d13c9675885b30b5-f0f2973ec21c1e3c-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "43a52bd1972ded9fa6759c65da1e00c2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:51:54 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5f1e703e-b4d4-4642-aafc-8a6f155f48d1", + "x-ms-ratelimit-remaining-subscription-reads": "11812", + "x-ms-request-id": "19e60474-3915-430b-9567-450f99899a51", + "x-ms-routing-request-id": "JAPANEAST:20230217T085154Z:5f1e703e-b4d4-4642-aafc-8a6f155f48d1" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/3fb1bd7f-8330-43a7-a18b-02e4a0a721ed", + "name": "3fb1bd7f-8330-43a7-a18b-02e4a0a721ed", + "status": "Running", + "startTime": "2023-02-17T08:51:52.0837158Z", + "endTime": "2023-02-17T08:51:52.0837158Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "cfd96567-ffb2-4a73-8b93-b2b16a11639f", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/3fb1bd7f-8330-43a7-a18b-02e4a0a721ed?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-3d5b18f4d2b08148d13c9675885b30b5-fcd89e4f2e2cf237-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "6ce46cf34ca9467cd7e4b08db35ebad2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:51:55 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "cd2f96b3-32a7-47f1-a0df-ebad649f3674", + "x-ms-ratelimit-remaining-subscription-reads": "11811", + "x-ms-request-id": "5d8b2297-9b72-4df1-8824-f51ddcf29d48", + "x-ms-routing-request-id": "JAPANEAST:20230217T085156Z:cd2f96b3-32a7-47f1-a0df-ebad649f3674" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/3fb1bd7f-8330-43a7-a18b-02e4a0a721ed", + "name": "3fb1bd7f-8330-43a7-a18b-02e4a0a721ed", + "status": "Running", + "startTime": "2023-02-17T08:51:52.0837158Z", + "endTime": "2023-02-17T08:51:52.0837158Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "cfd96567-ffb2-4a73-8b93-b2b16a11639f", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/3fb1bd7f-8330-43a7-a18b-02e4a0a721ed?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-3d5b18f4d2b08148d13c9675885b30b5-bce7677baf158a7f-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "ca87dc7b7ab6876efc522c2894ff6e33", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:51:56 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1994f79a-d038-461c-ada0-f2bb752c8671", + "x-ms-ratelimit-remaining-subscription-reads": "11810", + "x-ms-request-id": "e286921d-e9a0-4a48-b0bc-fd32b420c023", + "x-ms-routing-request-id": "JAPANEAST:20230217T085157Z:1994f79a-d038-461c-ada0-f2bb752c8671" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/3fb1bd7f-8330-43a7-a18b-02e4a0a721ed", + "name": "3fb1bd7f-8330-43a7-a18b-02e4a0a721ed", + "status": "Running", + "startTime": "2023-02-17T08:51:52.0837158Z", + "endTime": "2023-02-17T08:51:52.0837158Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "cfd96567-ffb2-4a73-8b93-b2b16a11639f", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/3fb1bd7f-8330-43a7-a18b-02e4a0a721ed?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-3d5b18f4d2b08148d13c9675885b30b5-f1bf3c9188681323-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "3d61b91ef4fc8431ae5e6b49e6123947", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:51:59 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "84ba359b-7679-46f3-90bc-9578a1978cfe", + "x-ms-ratelimit-remaining-subscription-reads": "11809", + "x-ms-request-id": "9eec7982-830c-441c-b0ca-7c0b7fba6925", + "x-ms-routing-request-id": "JAPANEAST:20230217T085200Z:84ba359b-7679-46f3-90bc-9578a1978cfe" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/3fb1bd7f-8330-43a7-a18b-02e4a0a721ed", + "name": "3fb1bd7f-8330-43a7-a18b-02e4a0a721ed", + "status": "Running", + "startTime": "2023-02-17T08:51:52.0837158Z", + "endTime": "2023-02-17T08:51:52.0837158Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "cfd96567-ffb2-4a73-8b93-b2b16a11639f", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/3fb1bd7f-8330-43a7-a18b-02e4a0a721ed?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-3d5b18f4d2b08148d13c9675885b30b5-ad4ed2afc8f7ec24-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "feeac9ba3597780bfe5c70561f54b2d8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:52:03 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b0786128-7413-47e0-82bc-3f2a47caad4d", + "x-ms-ratelimit-remaining-subscription-reads": "11808", + "x-ms-request-id": "231eedda-5d8b-45d1-91f0-c2218c5145e0", + "x-ms-routing-request-id": "JAPANEAST:20230217T085204Z:b0786128-7413-47e0-82bc-3f2a47caad4d" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/3fb1bd7f-8330-43a7-a18b-02e4a0a721ed", + "name": "3fb1bd7f-8330-43a7-a18b-02e4a0a721ed", + "status": "Running", + "startTime": "2023-02-17T08:51:52.0837158Z", + "endTime": "2023-02-17T08:51:52.0837158Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "cfd96567-ffb2-4a73-8b93-b2b16a11639f", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/3fb1bd7f-8330-43a7-a18b-02e4a0a721ed?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-3d5b18f4d2b08148d13c9675885b30b5-bf1b56f5bf2ee511-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "f96f7c757dfd87d5ab021b580e24a1ea", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:52:12 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e91eb544-ab2a-4038-a75e-6f55ee0b4a8e", + "x-ms-ratelimit-remaining-subscription-reads": "11807", + "x-ms-request-id": "4747a4f5-d156-43bc-8873-e7cf513ce57a", + "x-ms-routing-request-id": "JAPANEAST:20230217T085212Z:e91eb544-ab2a-4038-a75e-6f55ee0b4a8e" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/3fb1bd7f-8330-43a7-a18b-02e4a0a721ed", + "name": "3fb1bd7f-8330-43a7-a18b-02e4a0a721ed", + "status": "Running", + "startTime": "2023-02-17T08:51:52.0837158Z", + "endTime": "2023-02-17T08:51:52.0837158Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "cfd96567-ffb2-4a73-8b93-b2b16a11639f", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/3fb1bd7f-8330-43a7-a18b-02e4a0a721ed?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-3d5b18f4d2b08148d13c9675885b30b5-1dbba2b4dd304a5f-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "ca6de4187015e89cade83ea084da655a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:52:28 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "744503b8-55d8-42da-8d97-1c6a30c3c5dd", + "x-ms-ratelimit-remaining-subscription-reads": "11806", + "x-ms-request-id": "1426048a-5601-488d-b468-357eb4323363", + "x-ms-routing-request-id": "JAPANEAST:20230217T085229Z:744503b8-55d8-42da-8d97-1c6a30c3c5dd" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/3fb1bd7f-8330-43a7-a18b-02e4a0a721ed", + "name": "3fb1bd7f-8330-43a7-a18b-02e4a0a721ed", + "status": "Running", + "startTime": "2023-02-17T08:51:52.0837158Z", + "endTime": "2023-02-17T08:51:52.0837158Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "cfd96567-ffb2-4a73-8b93-b2b16a11639f", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/3fb1bd7f-8330-43a7-a18b-02e4a0a721ed?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-3d5b18f4d2b08148d13c9675885b30b5-2e7f66db54a7a57c-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "69d393ac3fa33d4af362529419b36ad9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:53:01 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8e9efe45-daa2-4895-98fc-b9cb87443cd2", + "x-ms-ratelimit-remaining-subscription-reads": "11805", + "x-ms-request-id": "2ebf8737-aa0e-4966-990d-452553a8b410", + "x-ms-routing-request-id": "JAPANEAST:20230217T085301Z:8e9efe45-daa2-4895-98fc-b9cb87443cd2" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/3fb1bd7f-8330-43a7-a18b-02e4a0a721ed", + "name": "3fb1bd7f-8330-43a7-a18b-02e4a0a721ed", + "status": "Running", + "startTime": "2023-02-17T08:51:52.0837158Z", + "endTime": "2023-02-17T08:51:52.0837158Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "cfd96567-ffb2-4a73-8b93-b2b16a11639f", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/3fb1bd7f-8330-43a7-a18b-02e4a0a721ed?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-3d5b18f4d2b08148d13c9675885b30b5-61f0d7284792a9ac-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "3a3e86bbe8e605c3e0864c153e3502d0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:53:33 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "20524873-e244-4263-a037-59ad54773df8", + "x-ms-ratelimit-remaining-subscription-reads": "11804", + "x-ms-request-id": "fedc4a09-b47f-43a7-8f50-f206e9c37daf", + "x-ms-routing-request-id": "JAPANEAST:20230217T085333Z:20524873-e244-4263-a037-59ad54773df8" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/3fb1bd7f-8330-43a7-a18b-02e4a0a721ed", + "name": "3fb1bd7f-8330-43a7-a18b-02e4a0a721ed", + "status": "Running", + "startTime": "2023-02-17T08:51:52.0837158Z", + "endTime": "2023-02-17T08:53:29.9498486Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "cfd96567-ffb2-4a73-8b93-b2b16a11639f", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/3fb1bd7f-8330-43a7-a18b-02e4a0a721ed?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-3d5b18f4d2b08148d13c9675885b30b5-56225f4fcd6b8694-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "7babc19d3751d8469a30d6b21d07cefa", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:54:05 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "938bc118-4bb5-4a94-9379-84b709f9ce8b", + "x-ms-ratelimit-remaining-subscription-reads": "11803", + "x-ms-request-id": "a87dc441-44dd-480e-a965-72d8620d68f2", + "x-ms-routing-request-id": "JAPANEAST:20230217T085405Z:938bc118-4bb5-4a94-9379-84b709f9ce8b" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/3fb1bd7f-8330-43a7-a18b-02e4a0a721ed", + "name": "3fb1bd7f-8330-43a7-a18b-02e4a0a721ed", + "status": "Running", + "startTime": "2023-02-17T08:51:52.0837158Z", + "endTime": "2023-02-17T08:53:29.9498486Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "cfd96567-ffb2-4a73-8b93-b2b16a11639f", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/3fb1bd7f-8330-43a7-a18b-02e4a0a721ed?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-3d5b18f4d2b08148d13c9675885b30b5-ce83d105dec390bc-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "fee5657d2a9cc373cfcd891cf334ffbe", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:54:37 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "30ea68c1-f91d-4dc2-b95a-5d1e9649dc1c", + "x-ms-ratelimit-remaining-subscription-reads": "11802", + "x-ms-request-id": "6b13568f-247f-4b22-aa0b-8ecc9012207a", + "x-ms-routing-request-id": "JAPANEAST:20230217T085438Z:30ea68c1-f91d-4dc2-b95a-5d1e9649dc1c" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/3fb1bd7f-8330-43a7-a18b-02e4a0a721ed", + "name": "3fb1bd7f-8330-43a7-a18b-02e4a0a721ed", + "status": "Running", + "startTime": "2023-02-17T08:51:52.0837158Z", + "endTime": "2023-02-17T08:53:29.9498486Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "cfd96567-ffb2-4a73-8b93-b2b16a11639f", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/3fb1bd7f-8330-43a7-a18b-02e4a0a721ed?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-3d5b18f4d2b08148d13c9675885b30b5-3a0bc16f380bfe22-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "58f6825fef0784883f659fb61111e8d9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:55:10 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "539d3735-9cad-420a-ada9-91d4d525c098", + "x-ms-ratelimit-remaining-subscription-reads": "11801", + "x-ms-request-id": "05c04f52-a1d2-4014-a8cc-27cbf1c2a3cd", + "x-ms-routing-request-id": "JAPANEAST:20230217T085510Z:539d3735-9cad-420a-ada9-91d4d525c098" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/3fb1bd7f-8330-43a7-a18b-02e4a0a721ed", + "name": "3fb1bd7f-8330-43a7-a18b-02e4a0a721ed", + "status": "Running", + "startTime": "2023-02-17T08:51:52.0837158Z", + "endTime": "2023-02-17T08:53:29.9498486Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "cfd96567-ffb2-4a73-8b93-b2b16a11639f", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/3fb1bd7f-8330-43a7-a18b-02e4a0a721ed?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-3d5b18f4d2b08148d13c9675885b30b5-8d665b926e9ce7ba-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "d99851b8045072344de7ab83ad29e566", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:55:42 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "11c20585-5838-4d4b-ae1c-a007f0f60320", + "x-ms-ratelimit-remaining-subscription-reads": "11800", + "x-ms-request-id": "b3d0affd-b6b0-43da-81cc-a83bf2d0794e", + "x-ms-routing-request-id": "JAPANEAST:20230217T085542Z:11c20585-5838-4d4b-ae1c-a007f0f60320" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/3fb1bd7f-8330-43a7-a18b-02e4a0a721ed", + "name": "3fb1bd7f-8330-43a7-a18b-02e4a0a721ed", + "status": "Running", + "startTime": "2023-02-17T08:51:52.0837158Z", + "endTime": "2023-02-17T08:53:29.9498486Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "cfd96567-ffb2-4a73-8b93-b2b16a11639f", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/3fb1bd7f-8330-43a7-a18b-02e4a0a721ed?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-3d5b18f4d2b08148d13c9675885b30b5-986d30113b67b074-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "9a52173075108df2dc61be378abdb2be", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:56:14 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "58e55306-fe81-477f-be0d-460f82e858ce", + "x-ms-ratelimit-remaining-subscription-reads": "11799", + "x-ms-request-id": "03bfa0d4-cf97-4d2e-a522-7885db4270f9", + "x-ms-routing-request-id": "JAPANEAST:20230217T085614Z:58e55306-fe81-477f-be0d-460f82e858ce" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/3fb1bd7f-8330-43a7-a18b-02e4a0a721ed", + "name": "3fb1bd7f-8330-43a7-a18b-02e4a0a721ed", + "status": "Running", + "startTime": "2023-02-17T08:51:52.0837158Z", + "endTime": "2023-02-17T08:53:29.9498486Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "cfd96567-ffb2-4a73-8b93-b2b16a11639f", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/3fb1bd7f-8330-43a7-a18b-02e4a0a721ed?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-3d5b18f4d2b08148d13c9675885b30b5-e06eb0d00a153190-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "a164b0e5269c5b6e4e840b1f4404d615", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:56:46 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "081e9074-f4bc-4ed3-aeaf-9de7c90af39f", + "x-ms-ratelimit-remaining-subscription-reads": "11798", + "x-ms-request-id": "bf286506-4934-488a-9c44-e1cbd06ab5b8", + "x-ms-routing-request-id": "JAPANEAST:20230217T085647Z:081e9074-f4bc-4ed3-aeaf-9de7c90af39f" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/3fb1bd7f-8330-43a7-a18b-02e4a0a721ed", + "name": "3fb1bd7f-8330-43a7-a18b-02e4a0a721ed", + "status": "Running", + "startTime": "2023-02-17T08:51:52.0837158Z", + "endTime": "2023-02-17T08:53:29.9498486Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "cfd96567-ffb2-4a73-8b93-b2b16a11639f", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/3fb1bd7f-8330-43a7-a18b-02e4a0a721ed?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-3d5b18f4d2b08148d13c9675885b30b5-91af4325a4704aa0-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "f985397f4dbe42c85f0afcef46fce790", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:57:18 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "54b6ea61-a1c1-4369-b030-38945307f6cf", + "x-ms-ratelimit-remaining-subscription-reads": "11797", + "x-ms-request-id": "e09dc553-7d91-43be-b237-7ad7e735febc", + "x-ms-routing-request-id": "JAPANEAST:20230217T085719Z:54b6ea61-a1c1-4369-b030-38945307f6cf" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/3fb1bd7f-8330-43a7-a18b-02e4a0a721ed", + "name": "3fb1bd7f-8330-43a7-a18b-02e4a0a721ed", + "status": "Running", + "startTime": "2023-02-17T08:51:52.0837158Z", + "endTime": "2023-02-17T08:53:29.9498486Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "cfd96567-ffb2-4a73-8b93-b2b16a11639f", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/3fb1bd7f-8330-43a7-a18b-02e4a0a721ed?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-3d5b18f4d2b08148d13c9675885b30b5-58ae5a679b6e0990-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "fd9eec3543c50ac9a9f74c8c6ad249d7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:57:51 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d9849a05-96e2-4baf-b5a2-a011ec7abc29", + "x-ms-ratelimit-remaining-subscription-reads": "11796", + "x-ms-request-id": "23540395-dda1-411d-97e5-e6da30208cec", + "x-ms-routing-request-id": "JAPANEAST:20230217T085752Z:d9849a05-96e2-4baf-b5a2-a011ec7abc29" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/3fb1bd7f-8330-43a7-a18b-02e4a0a721ed", + "name": "3fb1bd7f-8330-43a7-a18b-02e4a0a721ed", + "status": "Running", + "startTime": "2023-02-17T08:51:52.0837158Z", + "endTime": "2023-02-17T08:53:29.9498486Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "cfd96567-ffb2-4a73-8b93-b2b16a11639f", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/3fb1bd7f-8330-43a7-a18b-02e4a0a721ed?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-3d5b18f4d2b08148d13c9675885b30b5-ae4757de08ea9fe0-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "51b7a98ab83797ffe7214292297f1551", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:58:23 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9aeedd47-a17d-4e92-a5b0-c8a60fbea9ba", + "x-ms-ratelimit-remaining-subscription-reads": "11795", + "x-ms-request-id": "27acbeb1-044d-4f76-b051-01cb54e12e60", + "x-ms-routing-request-id": "JAPANEAST:20230217T085824Z:9aeedd47-a17d-4e92-a5b0-c8a60fbea9ba" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/3fb1bd7f-8330-43a7-a18b-02e4a0a721ed", + "name": "3fb1bd7f-8330-43a7-a18b-02e4a0a721ed", + "status": "Running", + "startTime": "2023-02-17T08:51:52.0837158Z", + "endTime": "2023-02-17T08:53:29.9498486Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "cfd96567-ffb2-4a73-8b93-b2b16a11639f", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/3fb1bd7f-8330-43a7-a18b-02e4a0a721ed?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-3d5b18f4d2b08148d13c9675885b30b5-3948c49ee49f3644-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "57e97b9cd8653c4f707b50c7013bd88c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:58:55 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "91347ad2-237f-4116-b9c2-ec6fd6ad0493", + "x-ms-ratelimit-remaining-subscription-reads": "11794", + "x-ms-request-id": "25b4b4e6-75c6-4bcf-8b01-0acb05e4dfa1", + "x-ms-routing-request-id": "JAPANEAST:20230217T085856Z:91347ad2-237f-4116-b9c2-ec6fd6ad0493" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/3fb1bd7f-8330-43a7-a18b-02e4a0a721ed", + "name": "3fb1bd7f-8330-43a7-a18b-02e4a0a721ed", + "status": "Running", + "startTime": "2023-02-17T08:51:52.0837158Z", + "endTime": "2023-02-17T08:53:29.9498486Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "cfd96567-ffb2-4a73-8b93-b2b16a11639f", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/3fb1bd7f-8330-43a7-a18b-02e4a0a721ed?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-3d5b18f4d2b08148d13c9675885b30b5-dff4fbfc29340eab-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "9c6424c096457d58ec0716a30036e02a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:59:27 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "95e36629-f4e9-453d-8498-8acf3c33b0b5", + "x-ms-ratelimit-remaining-subscription-reads": "11793", + "x-ms-request-id": "a509d5d5-3ba1-4ce4-a3b6-570e3bfb0fbe", + "x-ms-routing-request-id": "JAPANEAST:20230217T085928Z:95e36629-f4e9-453d-8498-8acf3c33b0b5" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/3fb1bd7f-8330-43a7-a18b-02e4a0a721ed", + "name": "3fb1bd7f-8330-43a7-a18b-02e4a0a721ed", + "status": "Running", + "startTime": "2023-02-17T08:51:52.0837158Z", + "endTime": "2023-02-17T08:53:29.9498486Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "cfd96567-ffb2-4a73-8b93-b2b16a11639f", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/3fb1bd7f-8330-43a7-a18b-02e4a0a721ed?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-3d5b18f4d2b08148d13c9675885b30b5-f610df6e7ddf1e57-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "eef0fae2f1e9b272597ae0bb673896ab", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:00:01 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5247f471-c143-4a1f-9531-a8bdb6e85a23", + "x-ms-ratelimit-remaining-subscription-reads": "11804", + "x-ms-request-id": "a48ae154-03cd-47f1-b46c-f918f8fa068c", + "x-ms-routing-request-id": "JAPANEAST:20230217T090001Z:5247f471-c143-4a1f-9531-a8bdb6e85a23" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/3fb1bd7f-8330-43a7-a18b-02e4a0a721ed", + "name": "3fb1bd7f-8330-43a7-a18b-02e4a0a721ed", + "status": "Running", + "startTime": "2023-02-17T08:51:52.0837158Z", + "endTime": "2023-02-17T08:53:29.9498486Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "cfd96567-ffb2-4a73-8b93-b2b16a11639f", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/3fb1bd7f-8330-43a7-a18b-02e4a0a721ed?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-3d5b18f4d2b08148d13c9675885b30b5-e5386308f33c86a2-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "05d2b649781a050c226c6b5ec2ab3c39", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:00:33 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "922efb73-8a86-4684-82c0-63904f997c9b", + "x-ms-ratelimit-remaining-subscription-reads": "11803", + "x-ms-request-id": "e3365b5a-bf29-448b-9291-7400ed396194", + "x-ms-routing-request-id": "JAPANEAST:20230217T090033Z:922efb73-8a86-4684-82c0-63904f997c9b" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/3fb1bd7f-8330-43a7-a18b-02e4a0a721ed", + "name": "3fb1bd7f-8330-43a7-a18b-02e4a0a721ed", + "status": "Running", + "startTime": "2023-02-17T08:51:52.0837158Z", + "endTime": "2023-02-17T08:53:29.9498486Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "cfd96567-ffb2-4a73-8b93-b2b16a11639f", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/3fb1bd7f-8330-43a7-a18b-02e4a0a721ed?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-3d5b18f4d2b08148d13c9675885b30b5-0d301fa937252f64-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "06e5259ae94bcea3b2b243cab69c15b3", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "513", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:01:05 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "209ae417-3065-4a3d-a8e3-3f354dd88976", + "x-ms-ratelimit-remaining-subscription-reads": "11802", + "x-ms-request-id": "cde6c46f-b4bf-429e-b766-22ea3e80c7e8", + "x-ms-routing-request-id": "JAPANEAST:20230217T090105Z:209ae417-3065-4a3d-a8e3-3f354dd88976" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/3fb1bd7f-8330-43a7-a18b-02e4a0a721ed", + "name": "3fb1bd7f-8330-43a7-a18b-02e4a0a721ed", + "status": "Succeeded", + "startTime": "2023-02-17T08:51:52.0837158Z", + "endTime": "2023-02-17T09:00:57.9857282Z", + "percentComplete": 1.0, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "cfd96567-ffb2-4a73-8b93-b2b16a11639f", + "provisioningState": "Succeeded", + "OperationState": "Completed" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp7947/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace716/kustoPools/kustopool8935?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-3d5b18f4d2b08148d13c9675885b30b5-67cff917b49547d5-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "4a5a6a70db646a0feeeacc7d8613efad", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "832", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:01:05 GMT", + "ETag": "\u00222023-02-17T09:00:56.5480570Z\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "73a8583b-d7fe-4dad-ba17-71e0ad296ffa", + "x-ms-ratelimit-remaining-subscription-reads": "11801", + "x-ms-request-id": "d51dc971-7459-4032-a720-c4fb1d149fb9", + "x-ms-routing-request-id": "JAPANEAST:20230217T090106Z:73a8583b-d7fe-4dad-ba17-71e0ad296ffa" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp7947/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace716/kustoPools/kustopool8935", + "name": "synapsesdkworkspace716/kustopool8935", + "type": "Microsoft.Synapse/workspaces/kustoPools", + "etag": "\u00222023-02-17T09:00:56.5480570Z\u0022", + "location": "East US 2", + "sku": { + "name": "Storage optimized", + "size": "Medium", + "capacity": 2 + }, + "tags": {}, + "properties": { + "state": "Running", + "stateReason": null, + "uri": "https://kustopool8935.synapsesdkworkspace716.kusto.azuresynapse.net", + "dataIngestionUri": "https://ingest-kustopool8935.synapsesdkworkspace716.kusto.azuresynapse.net", + "optimizedAutoscale": null, + "enableStreamingIngest": false, + "languageExtensions": { + "value": [] + }, + "enablePurge": null, + "workspaceUID": "c01cffa2-fbc3-42f0-badd-e45f054debd6", + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp7947/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace716/kustoPools/kustopool8935/databases/kustodatabase7781?api-version=2021-06-01-preview", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "104", + "Content-Type": "application/json", + "traceparent": "00-6c787533cf64e2a9eaeb4180b2c84987-85193b18955cdf5a-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "534221a66090125f03526834424f8656", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "eastus2", + "kind": "ReadWrite", + "properties": { + "softDeletePeriod": "P4D", + "hotCachePeriod": "P2D" + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/622b84b8-12f1-4d79-b703-7ac41c236cea?api-version=2021-06-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "464", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:01:07 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3d7fa2c8-e110-4200-bdd0-a6e4ca08ac2f", + "x-ms-ratelimit-remaining-subscription-writes": "1173", + "x-ms-request-id": "e005dadc-34b0-4ab5-bb53-e1d041b0958e", + "x-ms-routing-request-id": "JAPANEAST:20230217T090107Z:3d7fa2c8-e110-4200-bdd0-a6e4ca08ac2f" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp7947/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace716/kustoPools/kustopool8935/Databases/kustodatabase7781", + "name": "synapsesdkworkspace716/kustopool8935/kustodatabase7781", + "type": "Microsoft.Synapse/workspaces/kustoPools/Databases", + "location": "eastus2", + "kind": "ReadWrite", + "properties": { + "softDeletePeriod": "P4D", + "hotCachePeriod": "P2D", + "provisioningState": "Creating" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/622b84b8-12f1-4d79-b703-7ac41c236cea?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-6c787533cf64e2a9eaeb4180b2c84987-e00d6f40931f33b7-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "7b0f8b9660d30ae0fb376189a635ab9b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "504", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:01:07 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "cc567e3a-db09-426e-89c2-b83c837ed19f", + "x-ms-ratelimit-remaining-subscription-reads": "11800", + "x-ms-request-id": "780f8d6d-a886-495d-a474-046f515e43a4", + "x-ms-routing-request-id": "JAPANEAST:20230217T090107Z:cc567e3a-db09-426e-89c2-b83c837ed19f" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/622b84b8-12f1-4d79-b703-7ac41c236cea", + "name": "622b84b8-12f1-4d79-b703-7ac41c236cea", + "status": "Running", + "startTime": "2023-02-17T09:01:07.4082858Z", + "endTime": "2023-02-17T09:01:07.4082858Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "DatabaseCreate", + "RootActivityId": "61261fa3-1ca8-4d41-bcf6-231e5a867f2c", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/622b84b8-12f1-4d79-b703-7ac41c236cea?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-6c787533cf64e2a9eaeb4180b2c84987-5d42a6ec76d6e9cd-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "25cf26455c98d14d622bd878ff41ecba", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "504", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:01:08 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "878c4c4e-b8d1-4282-bedf-204b57fd1ec6", + "x-ms-ratelimit-remaining-subscription-reads": "11799", + "x-ms-request-id": "2a1b0f67-6f6a-4636-a9ba-5b065cf05dc4", + "x-ms-routing-request-id": "JAPANEAST:20230217T090109Z:878c4c4e-b8d1-4282-bedf-204b57fd1ec6" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/622b84b8-12f1-4d79-b703-7ac41c236cea", + "name": "622b84b8-12f1-4d79-b703-7ac41c236cea", + "status": "Running", + "startTime": "2023-02-17T09:01:07.4082858Z", + "endTime": "2023-02-17T09:01:07.4082858Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "DatabaseCreate", + "RootActivityId": "61261fa3-1ca8-4d41-bcf6-231e5a867f2c", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/622b84b8-12f1-4d79-b703-7ac41c236cea?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-6c787533cf64e2a9eaeb4180b2c84987-cc193480808ba976-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "b79da6b30a4057820d4d55ba73356f44", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "504", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:01:09 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "555877a7-8d7d-4d36-9986-ba2745d4f18e", + "x-ms-ratelimit-remaining-subscription-reads": "11798", + "x-ms-request-id": "05765c18-9e3a-4817-880f-7d478922f8e3", + "x-ms-routing-request-id": "JAPANEAST:20230217T090110Z:555877a7-8d7d-4d36-9986-ba2745d4f18e" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/622b84b8-12f1-4d79-b703-7ac41c236cea", + "name": "622b84b8-12f1-4d79-b703-7ac41c236cea", + "status": "Running", + "startTime": "2023-02-17T09:01:07.4082858Z", + "endTime": "2023-02-17T09:01:07.4082858Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "DatabaseCreate", + "RootActivityId": "61261fa3-1ca8-4d41-bcf6-231e5a867f2c", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/622b84b8-12f1-4d79-b703-7ac41c236cea?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-6c787533cf64e2a9eaeb4180b2c84987-7fa39120892fbb5d-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "ffd7c56c79793a2a3e3d18a787680bb9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "504", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:01:11 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1f94ace3-dae3-445b-9131-9efed4876957", + "x-ms-ratelimit-remaining-subscription-reads": "11797", + "x-ms-request-id": "04657ad0-213b-42fb-acae-ddddd0976780", + "x-ms-routing-request-id": "JAPANEAST:20230217T090111Z:1f94ace3-dae3-445b-9131-9efed4876957" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/622b84b8-12f1-4d79-b703-7ac41c236cea", + "name": "622b84b8-12f1-4d79-b703-7ac41c236cea", + "status": "Running", + "startTime": "2023-02-17T09:01:07.4082858Z", + "endTime": "2023-02-17T09:01:07.4082858Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "DatabaseCreate", + "RootActivityId": "61261fa3-1ca8-4d41-bcf6-231e5a867f2c", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/622b84b8-12f1-4d79-b703-7ac41c236cea?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-6c787533cf64e2a9eaeb4180b2c84987-8d1e9d18b270f4fc-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "00d5a64af4973a5ba478184b06925d2d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "507", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:01:13 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "dbdcd88f-b412-4cbb-9bdb-82bf85442065", + "x-ms-ratelimit-remaining-subscription-reads": "11796", + "x-ms-request-id": "f97b2c5d-f733-42ab-b6a1-dc97ea30d63f", + "x-ms-routing-request-id": "JAPANEAST:20230217T090113Z:dbdcd88f-b412-4cbb-9bdb-82bf85442065" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/622b84b8-12f1-4d79-b703-7ac41c236cea", + "name": "622b84b8-12f1-4d79-b703-7ac41c236cea", + "status": "Succeeded", + "startTime": "2023-02-17T09:01:07.4082858Z", + "endTime": "2023-02-17T09:01:12.5443463Z", + "percentComplete": 1.0, + "properties": { + "OperationKind": "DatabaseCreate", + "RootActivityId": "61261fa3-1ca8-4d41-bcf6-231e5a867f2c", + "provisioningState": "Succeeded", + "OperationState": "Completed" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp7947/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace716/kustoPools/kustopool8935/databases/kustodatabase7781?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-6c787533cf64e2a9eaeb4180b2c84987-23109c5b8050ba43-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "3a0b93bced693a417c637802f2dacfa4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "512", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:01:13 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "17ba6840-c3d0-4814-8cf2-9d845c565aed", + "x-ms-ratelimit-remaining-subscription-reads": "11795", + "x-ms-request-id": "fdcbd6f0-7101-4eaf-86be-e5b66bc51520", + "x-ms-routing-request-id": "JAPANEAST:20230217T090114Z:17ba6840-c3d0-4814-8cf2-9d845c565aed" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp7947/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace716/kustoPools/kustopool8935/Databases/kustodatabase7781", + "name": "synapsesdkworkspace716/kustopool8935/kustodatabase7781", + "type": "Microsoft.Synapse/workspaces/kustoPools/Databases", + "location": "East US 2", + "kind": "ReadWrite", + "properties": { + "softDeletePeriod": "P4D", + "hotCachePeriod": "P2D", + "statistics": { + "size": 0.0 + }, + "isFollowed": false, + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp7947/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace716/kustoPools/kustopool8935/databases/kustodatabase7781?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-1c2861ead993300b9f270b342289bdc3-cdcc24021c9192f1-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "cd6f9b416f5f78ac699c5b0060de33ab", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "512", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:01:14 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a926272c-adc9-49cd-8c37-757a8c890c94", + "x-ms-ratelimit-remaining-subscription-reads": "11794", + "x-ms-request-id": "7aa8679d-5118-4ba1-b961-2d7e7d2c33d8", + "x-ms-routing-request-id": "JAPANEAST:20230217T090114Z:a926272c-adc9-49cd-8c37-757a8c890c94" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp7947/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace716/kustoPools/kustopool8935/Databases/kustodatabase7781", + "name": "synapsesdkworkspace716/kustopool8935/kustodatabase7781", + "type": "Microsoft.Synapse/workspaces/kustoPools/Databases", + "location": "East US 2", + "kind": "ReadWrite", + "properties": { + "softDeletePeriod": "P4D", + "hotCachePeriod": "P2D", + "statistics": { + "size": 0.0 + }, + "isFollowed": false, + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp7947/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace716/kustoPools/kustopool8935/databases/kustodatabase7781?api-version=2021-06-01-preview", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "104", + "Content-Type": "application/json", + "traceparent": "00-cd98f6e4b4c6afab5d268b35b8adf85d-95e5efc73d256c35-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "f3ebeadfd05c5d4f649b83347b5848c9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "eastus2", + "kind": "ReadWrite", + "properties": { + "softDeletePeriod": "P6D", + "hotCachePeriod": "P3D" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/94cde453-bfe8-45b6-841c-2d17c04a031a?api-version=2021-06-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "466", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:01:15 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1fdd0abf-937d-48b2-909f-2178c713a8e1", + "x-ms-ratelimit-remaining-subscription-writes": "1172", + "x-ms-request-id": "136add36-d816-4850-87a0-5613f1b32127", + "x-ms-routing-request-id": "JAPANEAST:20230217T090115Z:1fdd0abf-937d-48b2-909f-2178c713a8e1" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp7947/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace716/kustoPools/kustopool8935/Databases/kustodatabase7781", + "name": "synapsesdkworkspace716/kustopool8935/kustodatabase7781", + "type": "Microsoft.Synapse/workspaces/kustoPools/Databases", + "location": "East US 2", + "kind": "ReadWrite", + "properties": { + "softDeletePeriod": "P6D", + "hotCachePeriod": "P3D", + "provisioningState": "Accepted" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/94cde453-bfe8-45b6-841c-2d17c04a031a?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-cd98f6e4b4c6afab5d268b35b8adf85d-9be91a72d36a8b70-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "0722cd2fdcef71484c1268c4eb78fc11", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "506", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:01:15 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0dbb5c97-75bf-483a-b17f-191599bc28d0", + "x-ms-ratelimit-remaining-subscription-reads": "11793", + "x-ms-request-id": "7223ba32-38d6-433a-b8c3-4cc05bea5f1a", + "x-ms-routing-request-id": "JAPANEAST:20230217T090115Z:0dbb5c97-75bf-483a-b17f-191599bc28d0" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/94cde453-bfe8-45b6-841c-2d17c04a031a", + "name": "94cde453-bfe8-45b6-841c-2d17c04a031a", + "status": "Running", + "startTime": "2023-02-17T09:01:15.6226976Z", + "endTime": "2023-02-17T09:01:15.6226976Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "DatabaseCreate", + "RootActivityId": "241daac7-4dd2-4f26-aae3-a159b990c5a6", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/94cde453-bfe8-45b6-841c-2d17c04a031a?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-cd98f6e4b4c6afab5d268b35b8adf85d-dcc88e31665e55fa-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "ec589154c9d54f881c9f0cc90082ca23", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "506", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:01:16 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3d1016c1-8dc4-4a8d-b939-256df288b7eb", + "x-ms-ratelimit-remaining-subscription-reads": "11792", + "x-ms-request-id": "4e4800bf-6fcc-41d4-8377-0f2c6757a04a", + "x-ms-routing-request-id": "JAPANEAST:20230217T090117Z:3d1016c1-8dc4-4a8d-b939-256df288b7eb" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/94cde453-bfe8-45b6-841c-2d17c04a031a", + "name": "94cde453-bfe8-45b6-841c-2d17c04a031a", + "status": "Running", + "startTime": "2023-02-17T09:01:15.6226976Z", + "endTime": "2023-02-17T09:01:15.6226976Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "DatabaseCreate", + "RootActivityId": "241daac7-4dd2-4f26-aae3-a159b990c5a6", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/94cde453-bfe8-45b6-841c-2d17c04a031a?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-cd98f6e4b4c6afab5d268b35b8adf85d-ad7774383c17a6d4-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "ae04e6c14035ccda2b981e102709616e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "506", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:01:18 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ae05e58c-e852-41fb-a224-613ec308558d", + "x-ms-ratelimit-remaining-subscription-reads": "11791", + "x-ms-request-id": "abddcf98-6809-4302-94a5-572e4bf4ecc5", + "x-ms-routing-request-id": "JAPANEAST:20230217T090118Z:ae05e58c-e852-41fb-a224-613ec308558d" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/94cde453-bfe8-45b6-841c-2d17c04a031a", + "name": "94cde453-bfe8-45b6-841c-2d17c04a031a", + "status": "Running", + "startTime": "2023-02-17T09:01:15.6226976Z", + "endTime": "2023-02-17T09:01:15.6226976Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "DatabaseCreate", + "RootActivityId": "241daac7-4dd2-4f26-aae3-a159b990c5a6", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/94cde453-bfe8-45b6-841c-2d17c04a031a?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-cd98f6e4b4c6afab5d268b35b8adf85d-d9519263f564a115-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "0078be96ede866c744d3ea4fcf7e70c9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "506", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:01:19 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8ddc1eba-2f06-4a4b-9979-5725f590bc06", + "x-ms-ratelimit-remaining-subscription-reads": "11790", + "x-ms-request-id": "0ee6f912-dd7b-4970-835f-4a6111bc5ce1", + "x-ms-routing-request-id": "JAPANEAST:20230217T090119Z:8ddc1eba-2f06-4a4b-9979-5725f590bc06" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/94cde453-bfe8-45b6-841c-2d17c04a031a", + "name": "94cde453-bfe8-45b6-841c-2d17c04a031a", + "status": "Running", + "startTime": "2023-02-17T09:01:15.6226976Z", + "endTime": "2023-02-17T09:01:15.6226976Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "DatabaseCreate", + "RootActivityId": "241daac7-4dd2-4f26-aae3-a159b990c5a6", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/94cde453-bfe8-45b6-841c-2d17c04a031a?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-cd98f6e4b4c6afab5d268b35b8adf85d-656aaa61adb4a829-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "050245474e7414dbb78bc03daa772812", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "509", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:01:21 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d2ad2de0-9a81-41e2-95a1-03e4c7f3d81f", + "x-ms-ratelimit-remaining-subscription-reads": "11789", + "x-ms-request-id": "be42df02-5398-45dc-b96e-cf240907bfcc", + "x-ms-routing-request-id": "JAPANEAST:20230217T090122Z:d2ad2de0-9a81-41e2-95a1-03e4c7f3d81f" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/94cde453-bfe8-45b6-841c-2d17c04a031a", + "name": "94cde453-bfe8-45b6-841c-2d17c04a031a", + "status": "Succeeded", + "startTime": "2023-02-17T09:01:15.6226976Z", + "endTime": "2023-02-17T09:01:20.4512344Z", + "percentComplete": 1.0, + "properties": { + "OperationKind": "DatabaseCreate", + "RootActivityId": "241daac7-4dd2-4f26-aae3-a159b990c5a6", + "provisioningState": "Succeeded", + "OperationState": "Completed" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp7947/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace716/kustoPools/kustopool8935/databases/kustodatabase7781?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-cd98f6e4b4c6afab5d268b35b8adf85d-89403c1f9ae23b75-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "41329d3eca0ad33b1e9d6962558afcad", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "512", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:01:22 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d93f221c-76b1-4635-b5b1-1c7d34063f58", + "x-ms-ratelimit-remaining-subscription-reads": "11788", + "x-ms-request-id": "bac3abc5-d5ce-408f-93ff-e778cbd4f249", + "x-ms-routing-request-id": "JAPANEAST:20230217T090122Z:d93f221c-76b1-4635-b5b1-1c7d34063f58" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp7947/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace716/kustoPools/kustopool8935/Databases/kustodatabase7781", + "name": "synapsesdkworkspace716/kustopool8935/kustodatabase7781", + "type": "Microsoft.Synapse/workspaces/kustoPools/Databases", + "location": "East US 2", + "kind": "ReadWrite", + "properties": { + "softDeletePeriod": "P6D", + "hotCachePeriod": "P3D", + "statistics": { + "size": 0.0 + }, + "isFollowed": false, + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp7947/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace716/kustoPools/kustopool8935/databases?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-d16779f6a446cfa60db1471792100dd4-cb99a9a2903a5acd-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "e2c855275b0748fae364485c2d8abbcc", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "524", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:01:22 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "02acf568-f163-471c-bfb7-fc555e52664b", + "x-ms-ratelimit-remaining-subscription-reads": "11787", + "x-ms-request-id": "340cf24d-9de0-42ad-8b71-767bdc079e85", + "x-ms-routing-request-id": "JAPANEAST:20230217T090123Z:02acf568-f163-471c-bfb7-fc555e52664b" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp7947/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace716/kustoPools/kustopool8935/Databases/kustodatabase7781", + "name": "synapsesdkworkspace716/kustopool8935/kustodatabase7781", + "type": "Microsoft.Synapse/workspaces/kustoPools/Databases", + "location": "East US 2", + "kind": "ReadWrite", + "properties": { + "softDeletePeriod": "P6D", + "hotCachePeriod": "P3D", + "statistics": { + "size": 0.0 + }, + "isFollowed": false, + "provisioningState": "Succeeded" + } + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp7947/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace716/kustoPools/kustopool8935/databases/kustodatabase7781?api-version=2021-06-01-preview", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-714c729c090d850a16d017807ddba164-e29d6892637346b7-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "3111d7ab2e4c7dbe0a2fe6d6e579be2d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/03893710-a782-4d3b-9a33-8e0b3ca23f5e?api-version=2021-06-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Fri, 17 Feb 2023 09:01:23 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/03893710-a782-4d3b-9a33-8e0b3ca23f5e?api-version=2021-06-01-preview\u0026operationResultResponseType=Location", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "295d79fd-cd8e-47fa-beda-b78f0b3ecc13", + "x-ms-ratelimit-remaining-subscription-deletes": "14995", + "x-ms-request-id": "295d79fd-cd8e-47fa-beda-b78f0b3ecc13", + "x-ms-routing-request-id": "JAPANEAST:20230217T090123Z:295d79fd-cd8e-47fa-beda-b78f0b3ecc13" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/03893710-a782-4d3b-9a33-8e0b3ca23f5e?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-714c729c090d850a16d017807ddba164-1d8632450f012125-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "7db79ce1ca78f860964bd8d77523626a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "506", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:01:23 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4041e690-4c61-4c68-b172-e832260ed50d", + "x-ms-ratelimit-remaining-subscription-reads": "11786", + "x-ms-request-id": "9ad5db12-c8c6-4058-896c-de79bb3ce046", + "x-ms-routing-request-id": "JAPANEAST:20230217T090124Z:4041e690-4c61-4c68-b172-e832260ed50d" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/03893710-a782-4d3b-9a33-8e0b3ca23f5e", + "name": "03893710-a782-4d3b-9a33-8e0b3ca23f5e", + "status": "Running", + "startTime": "2023-02-17T09:01:23.6650852Z", + "endTime": "2023-02-17T09:01:23.6650852Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "DatabaseDelete", + "RootActivityId": "95063f46-161a-438d-a6fd-2e2214ada6d9", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/03893710-a782-4d3b-9a33-8e0b3ca23f5e?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-714c729c090d850a16d017807ddba164-432c8adb407109e4-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "1acd1ba56674651dcc2f8e62d018fb2b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "506", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:01:24 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ca694ddf-1529-4e0e-a6db-a8494690e4d7", + "x-ms-ratelimit-remaining-subscription-reads": "11785", + "x-ms-request-id": "2befcfac-05a8-4178-8eb3-2cde79973d2a", + "x-ms-routing-request-id": "JAPANEAST:20230217T090125Z:ca694ddf-1529-4e0e-a6db-a8494690e4d7" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/03893710-a782-4d3b-9a33-8e0b3ca23f5e", + "name": "03893710-a782-4d3b-9a33-8e0b3ca23f5e", + "status": "Running", + "startTime": "2023-02-17T09:01:23.6650852Z", + "endTime": "2023-02-17T09:01:23.6650852Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "DatabaseDelete", + "RootActivityId": "95063f46-161a-438d-a6fd-2e2214ada6d9", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/03893710-a782-4d3b-9a33-8e0b3ca23f5e?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-714c729c090d850a16d017807ddba164-f500412e90cfc051-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "49f4528940c1c4b4b21cbf636e336c7f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "506", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:01:26 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4c18ab96-5cff-43f5-b3d6-1a6ed92707a8", + "x-ms-ratelimit-remaining-subscription-reads": "11784", + "x-ms-request-id": "5e3bb0be-9f26-4f15-9d04-58354fac7a7d", + "x-ms-routing-request-id": "JAPANEAST:20230217T090126Z:4c18ab96-5cff-43f5-b3d6-1a6ed92707a8" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/03893710-a782-4d3b-9a33-8e0b3ca23f5e", + "name": "03893710-a782-4d3b-9a33-8e0b3ca23f5e", + "status": "Running", + "startTime": "2023-02-17T09:01:23.6650852Z", + "endTime": "2023-02-17T09:01:23.6650852Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "DatabaseDelete", + "RootActivityId": "95063f46-161a-438d-a6fd-2e2214ada6d9", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/03893710-a782-4d3b-9a33-8e0b3ca23f5e?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-714c729c090d850a16d017807ddba164-e20e4d5829011a54-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "6500f3878b117b207e52b1483cfe287d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "506", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:01:27 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0d1a80fb-9729-48b5-9053-49d79ceca5b9", + "x-ms-ratelimit-remaining-subscription-reads": "11783", + "x-ms-request-id": "069cd705-63a0-4df6-b063-86778c4d9269", + "x-ms-routing-request-id": "JAPANEAST:20230217T090127Z:0d1a80fb-9729-48b5-9053-49d79ceca5b9" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/03893710-a782-4d3b-9a33-8e0b3ca23f5e", + "name": "03893710-a782-4d3b-9a33-8e0b3ca23f5e", + "status": "Running", + "startTime": "2023-02-17T09:01:23.6650852Z", + "endTime": "2023-02-17T09:01:23.6650852Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "DatabaseDelete", + "RootActivityId": "95063f46-161a-438d-a6fd-2e2214ada6d9", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/03893710-a782-4d3b-9a33-8e0b3ca23f5e?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-714c729c090d850a16d017807ddba164-22bdec75a2b2d9f8-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "234eac4f192f65a867086757a6b9f798", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "506", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:01:29 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b7b304c9-5f95-4e89-bdb1-adcbb109e0f9", + "x-ms-ratelimit-remaining-subscription-reads": "11782", + "x-ms-request-id": "7f08f6d9-f73e-4974-bbd4-e8c5cd7770ac", + "x-ms-routing-request-id": "JAPANEAST:20230217T090130Z:b7b304c9-5f95-4e89-bdb1-adcbb109e0f9" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/03893710-a782-4d3b-9a33-8e0b3ca23f5e", + "name": "03893710-a782-4d3b-9a33-8e0b3ca23f5e", + "status": "Running", + "startTime": "2023-02-17T09:01:23.6650852Z", + "endTime": "2023-02-17T09:01:23.6650852Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "DatabaseDelete", + "RootActivityId": "95063f46-161a-438d-a6fd-2e2214ada6d9", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/03893710-a782-4d3b-9a33-8e0b3ca23f5e?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-714c729c090d850a16d017807ddba164-06f439e1b4a5083b-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "dcda0ec39617fe193179ca6f8e6b87b4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "509", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:01:33 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "93bf19c0-2959-4bc7-88f5-208ac920c6c5", + "x-ms-ratelimit-remaining-subscription-reads": "11781", + "x-ms-request-id": "4a3a0381-2ea8-4a19-bbbc-ed5da444a3db", + "x-ms-routing-request-id": "JAPANEAST:20230217T090134Z:93bf19c0-2959-4bc7-88f5-208ac920c6c5" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/03893710-a782-4d3b-9a33-8e0b3ca23f5e", + "name": "03893710-a782-4d3b-9a33-8e0b3ca23f5e", + "status": "Succeeded", + "startTime": "2023-02-17T09:01:23.6650852Z", + "endTime": "2023-02-17T09:01:30.7522175Z", + "percentComplete": 1.0, + "properties": { + "OperationKind": "DatabaseDelete", + "RootActivityId": "95063f46-161a-438d-a6fd-2e2214ada6d9", + "provisioningState": "Succeeded", + "OperationState": "Completed" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp7947/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace716/kustoPools/kustopool8935/databases?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-25a8416b0e08a44ae87176663b811210-14366e1430a64b07-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "c11441f449e56e504b9bfe0823c8d4c4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "12", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:01:34 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3f08e427-1565-42fc-ae90-af01596437e0", + "x-ms-ratelimit-remaining-subscription-reads": "11780", + "x-ms-request-id": "0b5d37b2-0ab1-41e3-b9c9-7ced8bc370cc", + "x-ms-routing-request-id": "JAPANEAST:20230217T090134Z:3f08e427-1565-42fc-ae90-af01596437e0" + }, + "ResponseBody": { + "value": [] + } + } + ], + "Variables": { + "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com/", + "RandomSeed": "2117411730", + "RESOURCE_MANAGER_URL": null, + "SUBSCRIPTION_ID": "051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3" + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/tests/SessionRecords/KustopoolOperationTests/TestKustoPoolDatabaseLifeCycleAsync.json b/sdk/synapse/Azure.ResourceManager.Synapse/tests/SessionRecords/KustopoolOperationTests/TestKustoPoolDatabaseLifeCycleAsync.json new file mode 100644 index 0000000000000..df65607dc89fb --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/tests/SessionRecords/KustopoolOperationTests/TestKustoPoolDatabaseLifeCycleAsync.json @@ -0,0 +1,2949 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3?api-version=2021-01-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-9056ea3d7c3c676944c9487b03e27999-bf45f4d88daf4d62-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "d17e64cf64ebbc7e271ea152d5e2786a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "492", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:39:19 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6ef41c45-bfb9-4bae-9afe-5fda196bc3d7", + "x-ms-ratelimit-remaining-subscription-reads": "11706", + "x-ms-request-id": "6ef41c45-bfb9-4bae-9afe-5fda196bc3d7", + "x-ms-routing-request-id": "JAPANEAST:20230217T093920Z:6ef41c45-bfb9-4bae-9afe-5fda196bc3d7" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3", + "authorizationSource": "RoleBased", + "managedByTenants": [ + { + "tenantId": "2f4a9838-26b7-47ee-be60-ccc1fdec5953" + } + ], + "tags": { + "sub_tagname_1": "sub_tagvalue_1" + }, + "subscriptionId": "051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Synapse Web Tooling", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourcegroups/synapsesdkrp9705?api-version=**", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "22", + "Content-Type": "application/json", + "traceparent": "00-fc339ee9500b6fe998d7da9b2caceaed-2a35358c3c6da770-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "96cc51b4791a74d215b770dbefef8e03", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "eastus2" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "230", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:39:22 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "193ad6ed-d67a-4634-8b61-dc20fdc1643a", + "x-ms-ratelimit-remaining-subscription-writes": "1172", + "x-ms-request-id": "193ad6ed-d67a-4634-8b61-dc20fdc1643a", + "x-ms-routing-request-id": "JAPANEAST:20230217T093922Z:193ad6ed-d67a-4634-8b61-dc20fdc1643a" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp9705", + "name": "synapsesdkrp9705", + "type": "Microsoft.Resources/resourceGroups", + "location": "eastus2", + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp9705/providers/Microsoft.Storage/storageAccounts/synapsesdkstorage3550?api-version=2022-09-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "87", + "Content-Type": "application/json", + "traceparent": "00-4d0b53bb88b68fc30512b696f292700e-46c302e6e3eb976b-00", + "User-Agent": "azsdk-net-ResourceManager.Storage/1.1.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "70a073da4789d2fa9f3fe6404e04250a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "sku": { + "name": "Standard_GRS" + }, + "kind": "StorageV2", + "location": "eastus2", + "properties": {} + }, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Content-Type": "text/plain; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:39:29 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Storage/locations/eastus2/asyncoperations/0274a299-e619-4675-afad-ea5684c91f69?monitor=true\u0026api-version=2022-09-01", + "Pragma": "no-cache", + "Retry-After": "17", + "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "70a073da4789d2fa9f3fe6404e04250a", + "x-ms-correlation-request-id": "0a87d18a-da19-4bbb-bf10-a63feb8096e9", + "x-ms-ratelimit-remaining-subscription-writes": "1171", + "x-ms-request-id": "0274a299-e619-4675-afad-ea5684c91f69", + "x-ms-routing-request-id": "JAPANEAST:20230217T093929Z:0a87d18a-da19-4bbb-bf10-a63feb8096e9" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Storage/locations/eastus2/asyncoperations/0274a299-e619-4675-afad-ea5684c91f69?monitor=true\u0026api-version=2022-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-4d0b53bb88b68fc30512b696f292700e-874ef92efad9be9f-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "cda466e912e86c2057f9f6da92922611", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Content-Type": "text/plain; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:39:29 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Storage/locations/eastus2/asyncoperations/0274a299-e619-4675-afad-ea5684c91f69?monitor=true\u0026api-version=2022-09-01", + "Pragma": "no-cache", + "Retry-After": "17", + "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "cda466e912e86c2057f9f6da92922611", + "x-ms-correlation-request-id": "90bdb45a-8161-419a-8e41-1268d2a44e9f", + "x-ms-ratelimit-remaining-subscription-reads": "11705", + "x-ms-request-id": "04596b23-c0eb-4060-bddf-281c15a6f198", + "x-ms-routing-request-id": "JAPANEAST:20230217T093929Z:90bdb45a-8161-419a-8e41-1268d2a44e9f" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Storage/locations/eastus2/asyncoperations/0274a299-e619-4675-afad-ea5684c91f69?monitor=true\u0026api-version=2022-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-4d0b53bb88b68fc30512b696f292700e-4a3733c883c6284e-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "6dcc65927cd49e51a2b6c4413593a128", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1528", + "Content-Type": "application/json", + "Date": "Fri, 17 Feb 2023 09:39:46 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "6dcc65927cd49e51a2b6c4413593a128", + "x-ms-correlation-request-id": "1b6cfe7b-4a90-4cf7-ac6d-0d1a06c4c63d", + "x-ms-ratelimit-remaining-subscription-reads": "11704", + "x-ms-request-id": "84b252ad-603b-4c62-b5c0-8f6c92ae06e0", + "x-ms-routing-request-id": "JAPANEAST:20230217T093946Z:1b6cfe7b-4a90-4cf7-ac6d-0d1a06c4c63d" + }, + "ResponseBody": { + "sku": { + "name": "Standard_GRS", + "tier": "Standard" + }, + "kind": "StorageV2", + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp9705/providers/Microsoft.Storage/storageAccounts/synapsesdkstorage3550", + "name": "synapsesdkstorage3550", + "type": "Microsoft.Storage/storageAccounts", + "location": "eastus2", + "tags": {}, + "properties": { + "keyCreationTime": { + "key1": "2023-02-17T09:39:26.9695774Z", + "key2": "2023-02-17T09:39:26.9695774Z" + }, + "privateEndpointConnections": [], + "minimumTlsVersion": "TLS1_0", + "allowBlobPublicAccess": true, + "networkAcls": { + "bypass": "AzureServices", + "virtualNetworkRules": [], + "ipRules": [], + "defaultAction": "Allow" + }, + "supportsHttpsTrafficOnly": true, + "encryption": { + "services": { + "file": { + "keyType": "Account", + "enabled": true, + "lastEnabledTime": "2023-02-17T09:39:27.9539775Z" + }, + "blob": { + "keyType": "Account", + "enabled": true, + "lastEnabledTime": "2023-02-17T09:39:27.9539775Z" + } + }, + "keySource": "Microsoft.Storage" + }, + "accessTier": "Hot", + "provisioningState": "Succeeded", + "creationTime": "2023-02-17T09:39:26.8289426Z", + "primaryEndpoints": { + "dfs": "https://synapsesdkstorage3550.dfs.core.windows.net/", + "web": "https://synapsesdkstorage3550.z20.web.core.windows.net/", + "blob": "https://synapsesdkstorage3550.blob.core.windows.net/", + "queue": "https://synapsesdkstorage3550.queue.core.windows.net/", + "table": "https://synapsesdkstorage3550.table.core.windows.net/", + "file": "https://synapsesdkstorage3550.file.core.windows.net/" + }, + "primaryLocation": "eastus2", + "statusOfPrimary": "available", + "secondaryLocation": "centralus", + "statusOfSecondary": "available" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp9705/providers/Microsoft.Storage/storageAccounts/synapsesdkstorage3550/listKeys?api-version=2022-09-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "0", + "traceparent": "00-0dfd709887507a59a4cbdb3c1359d356-a57462eb5c57ce84-00", + "User-Agent": "azsdk-net-ResourceManager.Storage/1.1.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "e756f358575ffc2260adbbb844f65719", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "380", + "Content-Type": "application/json", + "Date": "Fri, 17 Feb 2023 09:39:46 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "e756f358575ffc2260adbbb844f65719", + "x-ms-correlation-request-id": "db25f407-117b-42ae-86cb-9a012ee52cf7", + "x-ms-ratelimit-remaining-subscription-resource-requests": "11994", + "x-ms-request-id": "16454fc3-2a92-4b39-971e-4f27ee2e782c", + "x-ms-routing-request-id": "JAPANEAST:20230217T093947Z:db25f407-117b-42ae-86cb-9a012ee52cf7" + }, + "ResponseBody": { + "keys": [ + { + "creationTime": "2023-02-17T09:39:26.9695774Z", + "keyName": "key1", + "value": "uavbLBx91hCFACQyfymkq1AJcn/jin/OFGvNAIb6DMihmxt/LH/RmSy1zREJP1CQZKy\u002B27tlFbLB\u002BASt9vAU0g==", + "permissions": "FULL" + }, + { + "creationTime": "2023-02-17T09:39:26.9695774Z", + "keyName": "key2", + "value": "J885d5uCcdhK4IwQJZTZI\u002BkqDo2BVz6eL5\u002BVYoTeTy7LM\u002B6j826DOKYvimsi2J96nVeOoPgrpl9B\u002BAStyCoxUA==", + "permissions": "FULL" + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp9705/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2221?api-version=2021-06-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "300", + "Content-Type": "application/json", + "traceparent": "00-6d1a3f6b55b3cd9fe124e28065ba89e4-08911fec087d3fe3-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "abcbd5011f78156d052a314ddf37c458", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "identity": { + "type": "SystemAssigned" + }, + "tags": {}, + "location": "eastus2", + "properties": { + "defaultDataLakeStorage": { + "accountUrl": "https://synapsesdkstorage3550.dfs.core.windows.net/", + "filesystem": "synapsesdkfilesys2344" + }, + "sqlAdministratorLoginPassword": "Password1!3573", + "sqlAdministratorLogin": "sshuser29" + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp9705/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2221/operationStatuses/ab37cba5-5ee8-42be-b14d-e24abea57ac8?api-version=2021-06-01", + "Cache-Control": "no-cache", + "Content-Length": "1477", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:39:53 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "abcbd5011f78156d052a314ddf37c458", + "x-ms-correlation-request-id": "95fec1da-018b-4c25-b3a3-85d6eeaa3554", + "x-ms-ratelimit-remaining-subscription-writes": "1170", + "x-ms-request-id": "1cca3a56-33b8-4d5f-bdde-f6611798519c", + "x-ms-routing-request-id": "JAPANEAST:20230217T093954Z:95fec1da-018b-4c25-b3a3-85d6eeaa3554" + }, + "ResponseBody": { + "properties": { + "defaultDataLakeStorage": { + "createManagedPrivateEndpoint": false, + "accountUrl": "https://synapsesdkstorage3550.dfs.core.windows.net/", + "filesystem": "synapsesdkfilesys2344" + }, + "encryption": { + "doubleEncryptionEnabled": false + }, + "provisioningState": "Provisioning", + "connectivityEndpoints": { + "web": "https://web.azuresynapse.net?workspace=%2fsubscriptions%2f051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3%2fresourceGroups%2fsynapsesdkrp9705%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fsynapsesdkworkspace2221", + "dev": "https://synapsesdkworkspace2221.dev.azuresynapse.net", + "sqlOnDemand": "synapsesdkworkspace2221-ondemand.sql.azuresynapse.net", + "sql": "synapsesdkworkspace2221.sql.azuresynapse.net" + }, + "managedResourceGroupName": "synapseworkspace-managedrg-762f85db-af70-423d-b1a4-58c3b97af962", + "privateEndpointConnections": [], + "workspaceUID": "cf965fc3-9271-46a1-ac63-2cb362acce79", + "extraProperties": { + "WorkspaceType": "Normal" + }, + "publicNetworkAccess": "Enabled", + "cspWorkspaceAdminProperties": { + "initialWorkspaceAdminObjectId": "5adcf4d8-4923-420e-ab0b-f6e5fc718b42" + }, + "trustedServiceBypassEnabled": false + }, + "type": "Microsoft.Synapse/workspaces", + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp9705/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2221", + "location": "eastus2", + "name": "synapsesdkworkspace2221", + "identity": { + "type": "SystemAssigned", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "principalId": "a248d75c-398a-48d4-b2b1-12e9c6b5dfbc" + }, + "tags": {} + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp9705/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2221/operationStatuses/ab37cba5-5ee8-42be-b14d-e24abea57ac8?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-6d1a3f6b55b3cd9fe124e28065ba89e4-b4be5ba32e4ffba1-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "bd3420ab7dd5d4dfe9d1592cf0af8176", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:39:54 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "bd3420ab7dd5d4dfe9d1592cf0af8176", + "x-ms-correlation-request-id": "2047eefb-6340-4735-bfd4-70163ba42025", + "x-ms-ratelimit-remaining-subscription-reads": "11703", + "x-ms-request-id": "fc645e03-6c72-4d0e-96cf-175b29dab80f", + "x-ms-routing-request-id": "JAPANEAST:20230217T093954Z:2047eefb-6340-4735-bfd4-70163ba42025" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp9705/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2221/operationStatuses/ab37cba5-5ee8-42be-b14d-e24abea57ac8?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-6d1a3f6b55b3cd9fe124e28065ba89e4-61f4e20a033c9f28-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "747560f7deb84fe29a88db6cf8ac7dab", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:39:55 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "747560f7deb84fe29a88db6cf8ac7dab", + "x-ms-correlation-request-id": "383011b0-96cf-4db0-9555-b55665a74b93", + "x-ms-ratelimit-remaining-subscription-reads": "11702", + "x-ms-request-id": "a035e2ca-a3e8-44b7-855a-bc023bc7e118", + "x-ms-routing-request-id": "JAPANEAST:20230217T093956Z:383011b0-96cf-4db0-9555-b55665a74b93" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp9705/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2221/operationStatuses/ab37cba5-5ee8-42be-b14d-e24abea57ac8?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-6d1a3f6b55b3cd9fe124e28065ba89e4-2f9eaffec72799b1-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "bea2d37d06035182a2cb516d570d5220", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:39:57 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "bea2d37d06035182a2cb516d570d5220", + "x-ms-correlation-request-id": "5ad3586d-7101-4877-94cd-6a91d8c8d908", + "x-ms-ratelimit-remaining-subscription-reads": "11701", + "x-ms-request-id": "f522363c-2df5-4a59-8b7f-edaf9b708dbd", + "x-ms-routing-request-id": "JAPANEAST:20230217T093957Z:5ad3586d-7101-4877-94cd-6a91d8c8d908" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp9705/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2221/operationStatuses/ab37cba5-5ee8-42be-b14d-e24abea57ac8?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-6d1a3f6b55b3cd9fe124e28065ba89e4-cc29fa94edb72a79-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "37c9b08b38e4cca63ee5234da173db3c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:39:58 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "37c9b08b38e4cca63ee5234da173db3c", + "x-ms-correlation-request-id": "f055cf1a-3605-4df1-8345-4366dbf6bf60", + "x-ms-ratelimit-remaining-subscription-reads": "11700", + "x-ms-request-id": "292cc0ff-f75f-4926-83e1-069417f04be1", + "x-ms-routing-request-id": "JAPANEAST:20230217T093958Z:f055cf1a-3605-4df1-8345-4366dbf6bf60" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp9705/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2221/operationStatuses/ab37cba5-5ee8-42be-b14d-e24abea57ac8?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-6d1a3f6b55b3cd9fe124e28065ba89e4-20cc30ca9320655e-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "1dafae54c20cf173de24d1ec8c74f78c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:40:00 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "1dafae54c20cf173de24d1ec8c74f78c", + "x-ms-correlation-request-id": "3b16bdc0-d9a6-4276-b121-43243bced091", + "x-ms-ratelimit-remaining-subscription-reads": "11750", + "x-ms-request-id": "d9cd6364-1956-43d2-9db4-090553d55eb0", + "x-ms-routing-request-id": "JAPANEAST:20230217T094001Z:3b16bdc0-d9a6-4276-b121-43243bced091" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp9705/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2221/operationStatuses/ab37cba5-5ee8-42be-b14d-e24abea57ac8?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-6d1a3f6b55b3cd9fe124e28065ba89e4-2c0514f9f03f88ca-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "48e0bb3645e344c62dd6801de335af2e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:40:05 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "48e0bb3645e344c62dd6801de335af2e", + "x-ms-correlation-request-id": "42e26d29-0107-4be4-92d8-76a1535e38e3", + "x-ms-ratelimit-remaining-subscription-reads": "11749", + "x-ms-request-id": "6e650b13-8cdd-4b57-9b74-0cc80c7c8d72", + "x-ms-routing-request-id": "JAPANEAST:20230217T094005Z:42e26d29-0107-4be4-92d8-76a1535e38e3" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp9705/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2221/operationStatuses/ab37cba5-5ee8-42be-b14d-e24abea57ac8?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-6d1a3f6b55b3cd9fe124e28065ba89e4-c3977b3756721616-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "a91915ef355ec9133cd759bf66b93fc9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:40:13 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "a91915ef355ec9133cd759bf66b93fc9", + "x-ms-correlation-request-id": "fef42e62-d9b5-4367-87b7-d9afd498fc47", + "x-ms-ratelimit-remaining-subscription-reads": "11748", + "x-ms-request-id": "02c9c3c3-ab11-4c91-9caf-c3e10a2eba66", + "x-ms-routing-request-id": "JAPANEAST:20230217T094014Z:fef42e62-d9b5-4367-87b7-d9afd498fc47" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp9705/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2221/operationStatuses/ab37cba5-5ee8-42be-b14d-e24abea57ac8?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-6d1a3f6b55b3cd9fe124e28065ba89e4-b221d5248fbd26ce-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "e61696ed93930e58e76af03641550ea9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:40:29 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "e61696ed93930e58e76af03641550ea9", + "x-ms-correlation-request-id": "940fd8fb-06cf-4e8a-9842-5d8ee4ccd77c", + "x-ms-ratelimit-remaining-subscription-reads": "11747", + "x-ms-request-id": "bc0154f7-7c84-4895-9ef9-ce3ab0952ad1", + "x-ms-routing-request-id": "JAPANEAST:20230217T094030Z:940fd8fb-06cf-4e8a-9842-5d8ee4ccd77c" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp9705/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2221/operationStatuses/ab37cba5-5ee8-42be-b14d-e24abea57ac8?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-6d1a3f6b55b3cd9fe124e28065ba89e4-92ab0e77377097a8-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "77fca3754d5b012ea7170b0beb07dd73", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:41:02 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "77fca3754d5b012ea7170b0beb07dd73", + "x-ms-correlation-request-id": "6d798235-224a-4c35-bf79-2395aef6e53e", + "x-ms-ratelimit-remaining-subscription-reads": "11746", + "x-ms-request-id": "cebd0bef-9c50-46c7-a0da-c1104fcb9640", + "x-ms-routing-request-id": "JAPANEAST:20230217T094103Z:6d798235-224a-4c35-bf79-2395aef6e53e" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp9705/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2221/operationStatuses/ab37cba5-5ee8-42be-b14d-e24abea57ac8?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-6d1a3f6b55b3cd9fe124e28065ba89e4-cdde2ee23c0b7fac-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "4c30b696c81e5c9abd0ac1f345dc87e6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:41:35 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "4c30b696c81e5c9abd0ac1f345dc87e6", + "x-ms-correlation-request-id": "30f804c9-d766-436e-a207-959471b6195f", + "x-ms-ratelimit-remaining-subscription-reads": "11745", + "x-ms-request-id": "1d4623fb-53f3-4b34-b33b-5e475c9db263", + "x-ms-routing-request-id": "JAPANEAST:20230217T094135Z:30f804c9-d766-436e-a207-959471b6195f" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp9705/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2221/operationStatuses/ab37cba5-5ee8-42be-b14d-e24abea57ac8?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-6d1a3f6b55b3cd9fe124e28065ba89e4-f05010cf0a7fa111-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "c34ab0c9c8bc9f6e68153e7b874c23e0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:42:07 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "c34ab0c9c8bc9f6e68153e7b874c23e0", + "x-ms-correlation-request-id": "76fd0c22-d43a-4040-bc63-fe68e4e9c1c1", + "x-ms-ratelimit-remaining-subscription-reads": "11744", + "x-ms-request-id": "0056ca2b-29fb-4bb8-8667-afe1701d1515", + "x-ms-routing-request-id": "JAPANEAST:20230217T094207Z:76fd0c22-d43a-4040-bc63-fe68e4e9c1c1" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp9705/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2221/operationStatuses/ab37cba5-5ee8-42be-b14d-e24abea57ac8?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-6d1a3f6b55b3cd9fe124e28065ba89e4-5354be88526ffd07-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "8b9f7c8cc125ac8b08a0ba518b3abbca", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "22", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:42:39 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "8b9f7c8cc125ac8b08a0ba518b3abbca", + "x-ms-correlation-request-id": "1baa0be6-c155-4403-90be-aac14546ba8d", + "x-ms-ratelimit-remaining-subscription-reads": "11743", + "x-ms-request-id": "31f2f0b1-4e89-4565-8856-6a139c31a3ac", + "x-ms-routing-request-id": "JAPANEAST:20230217T094240Z:1baa0be6-c155-4403-90be-aac14546ba8d" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp9705/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2221?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-6d1a3f6b55b3cd9fe124e28065ba89e4-345a9e41cebe00af-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "3b4225901abcceb64890e408891ed570", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1533", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:42:40 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "3b4225901abcceb64890e408891ed570", + "x-ms-correlation-request-id": "98cc1c40-4695-4485-9697-6006a35b184f", + "x-ms-ratelimit-remaining-subscription-reads": "11742", + "x-ms-request-id": "75523858-c27f-4969-ad89-0821b32489d1", + "x-ms-routing-request-id": "JAPANEAST:20230217T094240Z:98cc1c40-4695-4485-9697-6006a35b184f" + }, + "ResponseBody": { + "properties": { + "defaultDataLakeStorage": { + "createManagedPrivateEndpoint": false, + "accountUrl": "https://synapsesdkstorage3550.dfs.core.windows.net/", + "filesystem": "synapsesdkfilesys2344" + }, + "encryption": { + "doubleEncryptionEnabled": false + }, + "provisioningState": "Succeeded", + "connectivityEndpoints": { + "web": "https://web.azuresynapse.net?workspace=%2fsubscriptions%2f051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3%2fresourceGroups%2fsynapsesdkrp9705%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fsynapsesdkworkspace2221", + "dev": "https://synapsesdkworkspace2221.dev.azuresynapse.net", + "sqlOnDemand": "synapsesdkworkspace2221-ondemand.sql.azuresynapse.net", + "sql": "synapsesdkworkspace2221.sql.azuresynapse.net" + }, + "managedResourceGroupName": "synapseworkspace-managedrg-762f85db-af70-423d-b1a4-58c3b97af962", + "sqlAdministratorLogin": "sshuser29", + "privateEndpointConnections": [], + "workspaceUID": "cf965fc3-9271-46a1-ac63-2cb362acce79", + "extraProperties": { + "WorkspaceType": "Normal", + "IsScopeEnabled": false + }, + "publicNetworkAccess": "Enabled", + "cspWorkspaceAdminProperties": { + "initialWorkspaceAdminObjectId": "5adcf4d8-4923-420e-ab0b-f6e5fc718b42" + }, + "trustedServiceBypassEnabled": false + }, + "type": "Microsoft.Synapse/workspaces", + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp9705/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2221", + "location": "eastus2", + "name": "synapsesdkworkspace2221", + "identity": { + "type": "SystemAssigned", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "principalId": "a248d75c-398a-48d4-b2b1-12e9c6b5dfbc" + }, + "tags": {} + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp9705/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2221/kustoPools/kustopool81?api-version=2021-06-01-preview", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "152", + "Content-Type": "application/json", + "traceparent": "00-27801846c52e7f6e244eaec9550e5da6-305ee3d1ad17523f-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "3cc866e1c1fb25089dba1c0d1c142d59", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "sku": { + "name": "Storage optimized", + "size": "Medium" + }, + "tags": {}, + "location": "eastus2", + "properties": { + "workspaceUID": "cf965fc3-9271-46a1-ac63-2cb362acce79" + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c6bdcfbf-30a0-4fc4-afc7-cff40921b497?api-version=2021-06-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "487", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:42:45 GMT", + "ETag": "\u0022\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e806450e-0788-4118-96c2-e98588fcd197", + "x-ms-ratelimit-remaining-subscription-writes": "1178", + "x-ms-request-id": "277c4b18-a249-4c81-ab88-2868fd0d0e49", + "x-ms-routing-request-id": "JAPANEAST:20230217T094245Z:e806450e-0788-4118-96c2-e98588fcd197" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp9705/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2221/kustoPools/kustopool81", + "name": "synapsesdkworkspace2221/kustopool81", + "type": "Microsoft.Synapse/workspaces/kustoPools", + "etag": "\u0022\u0022", + "location": "eastus2", + "sku": { + "name": "Storage optimized", + "size": "Medium" + }, + "tags": {}, + "properties": { + "state": "Creating", + "workspaceUID": "cf965fc3-9271-46a1-ac63-2cb362acce79", + "provisioningState": "Creating" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c6bdcfbf-30a0-4fc4-afc7-cff40921b497?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-27801846c52e7f6e244eaec9550e5da6-5264c1b4ffc08069-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "d3aa6a498df3639439161f5f99c02b7c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:42:45 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3cf71fdc-618f-43c3-9f8c-2c5720835d50", + "x-ms-ratelimit-remaining-subscription-reads": "11741", + "x-ms-request-id": "c0b6fc7d-e2ce-4584-8314-4e6da93b7db3", + "x-ms-routing-request-id": "JAPANEAST:20230217T094245Z:3cf71fdc-618f-43c3-9f8c-2c5720835d50" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c6bdcfbf-30a0-4fc4-afc7-cff40921b497", + "name": "c6bdcfbf-30a0-4fc4-afc7-cff40921b497", + "status": "Running", + "startTime": "2023-02-17T09:42:44.7135835Z", + "endTime": "2023-02-17T09:42:44.7135835Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "b127e70c-8d3a-4113-9b72-762d6b30f544", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c6bdcfbf-30a0-4fc4-afc7-cff40921b497?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-27801846c52e7f6e244eaec9550e5da6-5173a305559157b3-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "3315aeb76673befff4026bb92c2ba27a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:42:46 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6da19679-29fa-436b-86fb-35550e7a4ee0", + "x-ms-ratelimit-remaining-subscription-reads": "11740", + "x-ms-request-id": "d042911a-c9c5-4330-9889-3cbb42394cd5", + "x-ms-routing-request-id": "JAPANEAST:20230217T094247Z:6da19679-29fa-436b-86fb-35550e7a4ee0" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c6bdcfbf-30a0-4fc4-afc7-cff40921b497", + "name": "c6bdcfbf-30a0-4fc4-afc7-cff40921b497", + "status": "Running", + "startTime": "2023-02-17T09:42:44.7135835Z", + "endTime": "2023-02-17T09:42:44.7135835Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "b127e70c-8d3a-4113-9b72-762d6b30f544", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c6bdcfbf-30a0-4fc4-afc7-cff40921b497?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-27801846c52e7f6e244eaec9550e5da6-e48dde668a81bcc8-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "b2c452d05969e66657fed0d104122c10", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:42:48 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2a039a08-08cb-45a4-80fd-2a2e6bb52496", + "x-ms-ratelimit-remaining-subscription-reads": "11739", + "x-ms-request-id": "b670e326-67d5-49d4-8fc6-7ecf153afe85", + "x-ms-routing-request-id": "JAPANEAST:20230217T094248Z:2a039a08-08cb-45a4-80fd-2a2e6bb52496" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c6bdcfbf-30a0-4fc4-afc7-cff40921b497", + "name": "c6bdcfbf-30a0-4fc4-afc7-cff40921b497", + "status": "Running", + "startTime": "2023-02-17T09:42:44.7135835Z", + "endTime": "2023-02-17T09:42:44.7135835Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "b127e70c-8d3a-4113-9b72-762d6b30f544", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c6bdcfbf-30a0-4fc4-afc7-cff40921b497?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-27801846c52e7f6e244eaec9550e5da6-bf08332a4e154113-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "d4251916b60ce3576becdff022da370e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:42:49 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1059dd5f-57e8-415b-acf0-6ab56ed59269", + "x-ms-ratelimit-remaining-subscription-reads": "11738", + "x-ms-request-id": "5ae82699-a37c-4593-9866-92f7ebc84891", + "x-ms-routing-request-id": "JAPANEAST:20230217T094250Z:1059dd5f-57e8-415b-acf0-6ab56ed59269" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c6bdcfbf-30a0-4fc4-afc7-cff40921b497", + "name": "c6bdcfbf-30a0-4fc4-afc7-cff40921b497", + "status": "Running", + "startTime": "2023-02-17T09:42:44.7135835Z", + "endTime": "2023-02-17T09:42:44.7135835Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "b127e70c-8d3a-4113-9b72-762d6b30f544", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c6bdcfbf-30a0-4fc4-afc7-cff40921b497?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-27801846c52e7f6e244eaec9550e5da6-4ae1827ad9e25c2f-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "478fa47379fc5d12472fdc74962dbae1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:42:51 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e955387f-0cd6-4d6b-a1f6-8a3788a17707", + "x-ms-ratelimit-remaining-subscription-reads": "11737", + "x-ms-request-id": "7f9cf9a0-47e4-482d-ae7d-cedaf8c074b6", + "x-ms-routing-request-id": "JAPANEAST:20230217T094252Z:e955387f-0cd6-4d6b-a1f6-8a3788a17707" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c6bdcfbf-30a0-4fc4-afc7-cff40921b497", + "name": "c6bdcfbf-30a0-4fc4-afc7-cff40921b497", + "status": "Running", + "startTime": "2023-02-17T09:42:44.7135835Z", + "endTime": "2023-02-17T09:42:44.7135835Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "b127e70c-8d3a-4113-9b72-762d6b30f544", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c6bdcfbf-30a0-4fc4-afc7-cff40921b497?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-27801846c52e7f6e244eaec9550e5da6-727ba8443b0bf589-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "13a25ad6ce05196efae1477d7976c47c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:42:56 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "280e6849-9149-4cd3-bc01-7237c532145e", + "x-ms-ratelimit-remaining-subscription-reads": "11736", + "x-ms-request-id": "b7484174-8568-42da-859f-d73172ae4189", + "x-ms-routing-request-id": "JAPANEAST:20230217T094256Z:280e6849-9149-4cd3-bc01-7237c532145e" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c6bdcfbf-30a0-4fc4-afc7-cff40921b497", + "name": "c6bdcfbf-30a0-4fc4-afc7-cff40921b497", + "status": "Running", + "startTime": "2023-02-17T09:42:44.7135835Z", + "endTime": "2023-02-17T09:42:44.7135835Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "b127e70c-8d3a-4113-9b72-762d6b30f544", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c6bdcfbf-30a0-4fc4-afc7-cff40921b497?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-27801846c52e7f6e244eaec9550e5da6-3f62c379830b28e5-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "5f5ec1c7e4839d1406c88cdddae24d3d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:43:04 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "47afb054-9d4e-4649-b8b3-1577ce6c43c6", + "x-ms-ratelimit-remaining-subscription-reads": "11735", + "x-ms-request-id": "cef56501-3822-45e6-8e76-58f39adcc1bf", + "x-ms-routing-request-id": "JAPANEAST:20230217T094305Z:47afb054-9d4e-4649-b8b3-1577ce6c43c6" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c6bdcfbf-30a0-4fc4-afc7-cff40921b497", + "name": "c6bdcfbf-30a0-4fc4-afc7-cff40921b497", + "status": "Running", + "startTime": "2023-02-17T09:42:44.7135835Z", + "endTime": "2023-02-17T09:42:44.7135835Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "b127e70c-8d3a-4113-9b72-762d6b30f544", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c6bdcfbf-30a0-4fc4-afc7-cff40921b497?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-27801846c52e7f6e244eaec9550e5da6-a4d85af366b989f9-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "c719fe322338a50936754c1b3194e3d1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:43:20 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a880c951-90ca-4060-b62a-25ec1834b439", + "x-ms-ratelimit-remaining-subscription-reads": "11734", + "x-ms-request-id": "f9290418-ee3e-41aa-ae2f-8a190ab7d5dc", + "x-ms-routing-request-id": "JAPANEAST:20230217T094321Z:a880c951-90ca-4060-b62a-25ec1834b439" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c6bdcfbf-30a0-4fc4-afc7-cff40921b497", + "name": "c6bdcfbf-30a0-4fc4-afc7-cff40921b497", + "status": "Running", + "startTime": "2023-02-17T09:42:44.7135835Z", + "endTime": "2023-02-17T09:42:44.7135835Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "b127e70c-8d3a-4113-9b72-762d6b30f544", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c6bdcfbf-30a0-4fc4-afc7-cff40921b497?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-27801846c52e7f6e244eaec9550e5da6-828c953cefd51d67-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "d4ad5f6b5acff25e46050c3c41903f18", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:43:52 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "cfd7919c-c7af-4c8a-9454-faf8db7c9adf", + "x-ms-ratelimit-remaining-subscription-reads": "11733", + "x-ms-request-id": "718b82e6-44e7-4236-b57b-e43c1b4fde8a", + "x-ms-routing-request-id": "JAPANEAST:20230217T094353Z:cfd7919c-c7af-4c8a-9454-faf8db7c9adf" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c6bdcfbf-30a0-4fc4-afc7-cff40921b497", + "name": "c6bdcfbf-30a0-4fc4-afc7-cff40921b497", + "status": "Running", + "startTime": "2023-02-17T09:42:44.7135835Z", + "endTime": "2023-02-17T09:42:44.7135835Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "b127e70c-8d3a-4113-9b72-762d6b30f544", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c6bdcfbf-30a0-4fc4-afc7-cff40921b497?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-27801846c52e7f6e244eaec9550e5da6-5e9bf3002cc209bf-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "7b4b0a94fc5ca344b8b8290d97f96b71", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:44:25 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d1a35872-ec9c-4fe2-a8d0-e26864cc7633", + "x-ms-ratelimit-remaining-subscription-reads": "11732", + "x-ms-request-id": "aa94bb07-1988-45d0-a222-021d2ddb7f47", + "x-ms-routing-request-id": "JAPANEAST:20230217T094425Z:d1a35872-ec9c-4fe2-a8d0-e26864cc7633" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c6bdcfbf-30a0-4fc4-afc7-cff40921b497", + "name": "c6bdcfbf-30a0-4fc4-afc7-cff40921b497", + "status": "Running", + "startTime": "2023-02-17T09:42:44.7135835Z", + "endTime": "2023-02-17T09:44:21.2205634Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "b127e70c-8d3a-4113-9b72-762d6b30f544", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c6bdcfbf-30a0-4fc4-afc7-cff40921b497?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-27801846c52e7f6e244eaec9550e5da6-bf1f69ccc1d5161e-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "7a72bbe47835d76d9f27813216cc64a5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:44:57 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2386942a-b85f-4112-8bcf-fdde6bb7876b", + "x-ms-ratelimit-remaining-subscription-reads": "11731", + "x-ms-request-id": "8cb95337-c3da-4c5a-98b5-effc80b7f6af", + "x-ms-routing-request-id": "JAPANEAST:20230217T094458Z:2386942a-b85f-4112-8bcf-fdde6bb7876b" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c6bdcfbf-30a0-4fc4-afc7-cff40921b497", + "name": "c6bdcfbf-30a0-4fc4-afc7-cff40921b497", + "status": "Running", + "startTime": "2023-02-17T09:42:44.7135835Z", + "endTime": "2023-02-17T09:44:21.2205634Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "b127e70c-8d3a-4113-9b72-762d6b30f544", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c6bdcfbf-30a0-4fc4-afc7-cff40921b497?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-27801846c52e7f6e244eaec9550e5da6-6b7499f356e57150-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "2787343668496e751b091c1730515a4c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:45:29 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9de9fea0-364f-4971-9077-20ab45dd8809", + "x-ms-ratelimit-remaining-subscription-reads": "11774", + "x-ms-request-id": "8d5ef035-4253-4100-b011-28906d99b2fb", + "x-ms-routing-request-id": "JAPANEAST:20230217T094530Z:9de9fea0-364f-4971-9077-20ab45dd8809" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c6bdcfbf-30a0-4fc4-afc7-cff40921b497", + "name": "c6bdcfbf-30a0-4fc4-afc7-cff40921b497", + "status": "Running", + "startTime": "2023-02-17T09:42:44.7135835Z", + "endTime": "2023-02-17T09:44:21.2205634Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "b127e70c-8d3a-4113-9b72-762d6b30f544", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c6bdcfbf-30a0-4fc4-afc7-cff40921b497?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-27801846c52e7f6e244eaec9550e5da6-ea2dd42370cd8435-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "85589a99c41e1be39c73dc347b118ceb", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:46:02 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e1516b46-134d-4408-bac4-5302e111a6be", + "x-ms-ratelimit-remaining-subscription-reads": "11773", + "x-ms-request-id": "6ac807bc-8608-4927-aab2-ff0a21674ea0", + "x-ms-routing-request-id": "JAPANEAST:20230217T094602Z:e1516b46-134d-4408-bac4-5302e111a6be" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c6bdcfbf-30a0-4fc4-afc7-cff40921b497", + "name": "c6bdcfbf-30a0-4fc4-afc7-cff40921b497", + "status": "Running", + "startTime": "2023-02-17T09:42:44.7135835Z", + "endTime": "2023-02-17T09:44:21.2205634Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "b127e70c-8d3a-4113-9b72-762d6b30f544", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c6bdcfbf-30a0-4fc4-afc7-cff40921b497?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-27801846c52e7f6e244eaec9550e5da6-02bcfed08b643aca-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "62d7835343727c2846035f2b5c56a74e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:46:34 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "af750629-d088-4fdb-ad88-fc76ef6ee731", + "x-ms-ratelimit-remaining-subscription-reads": "11772", + "x-ms-request-id": "63bd9571-67b3-4b2e-8bd0-3d89ab17afea", + "x-ms-routing-request-id": "JAPANEAST:20230217T094634Z:af750629-d088-4fdb-ad88-fc76ef6ee731" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c6bdcfbf-30a0-4fc4-afc7-cff40921b497", + "name": "c6bdcfbf-30a0-4fc4-afc7-cff40921b497", + "status": "Running", + "startTime": "2023-02-17T09:42:44.7135835Z", + "endTime": "2023-02-17T09:44:21.2205634Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "b127e70c-8d3a-4113-9b72-762d6b30f544", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c6bdcfbf-30a0-4fc4-afc7-cff40921b497?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-27801846c52e7f6e244eaec9550e5da6-b3db57f8239701e6-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "7c9834ccdf747186516b8bd68c40f30a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:47:07 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e6d56951-1783-4574-bb0c-d49fb2953468", + "x-ms-ratelimit-remaining-subscription-reads": "11771", + "x-ms-request-id": "2f78499b-68b1-4257-ade0-2c91071ec699", + "x-ms-routing-request-id": "JAPANEAST:20230217T094707Z:e6d56951-1783-4574-bb0c-d49fb2953468" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c6bdcfbf-30a0-4fc4-afc7-cff40921b497", + "name": "c6bdcfbf-30a0-4fc4-afc7-cff40921b497", + "status": "Running", + "startTime": "2023-02-17T09:42:44.7135835Z", + "endTime": "2023-02-17T09:44:21.2205634Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "b127e70c-8d3a-4113-9b72-762d6b30f544", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c6bdcfbf-30a0-4fc4-afc7-cff40921b497?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-27801846c52e7f6e244eaec9550e5da6-44b8284e918faa0e-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "acc3307cf77956da72dc3e1b65b7be46", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:47:39 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4a8b0aa8-9aa7-48a4-b5af-2de1cd6baacc", + "x-ms-ratelimit-remaining-subscription-reads": "11770", + "x-ms-request-id": "4f7d05ad-f174-4e00-b1e0-40083e48c0f4", + "x-ms-routing-request-id": "JAPANEAST:20230217T094739Z:4a8b0aa8-9aa7-48a4-b5af-2de1cd6baacc" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c6bdcfbf-30a0-4fc4-afc7-cff40921b497", + "name": "c6bdcfbf-30a0-4fc4-afc7-cff40921b497", + "status": "Running", + "startTime": "2023-02-17T09:42:44.7135835Z", + "endTime": "2023-02-17T09:44:21.2205634Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "b127e70c-8d3a-4113-9b72-762d6b30f544", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c6bdcfbf-30a0-4fc4-afc7-cff40921b497?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-27801846c52e7f6e244eaec9550e5da6-3ce624855c6f69d1-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "46688dcc10787477fd651106b852f006", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:48:11 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "bbf31071-7551-4135-9d83-374338f616e3", + "x-ms-ratelimit-remaining-subscription-reads": "11769", + "x-ms-request-id": "69a25b74-471d-4491-97bd-161d25c817a6", + "x-ms-routing-request-id": "JAPANEAST:20230217T094811Z:bbf31071-7551-4135-9d83-374338f616e3" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c6bdcfbf-30a0-4fc4-afc7-cff40921b497", + "name": "c6bdcfbf-30a0-4fc4-afc7-cff40921b497", + "status": "Running", + "startTime": "2023-02-17T09:42:44.7135835Z", + "endTime": "2023-02-17T09:44:21.2205634Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "b127e70c-8d3a-4113-9b72-762d6b30f544", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c6bdcfbf-30a0-4fc4-afc7-cff40921b497?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-27801846c52e7f6e244eaec9550e5da6-b9f07f96cf6670ae-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "2caf550ffa93d4d45a420a98a06b0c99", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:48:43 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "17b95d79-7c75-44b2-bbfe-a063c0edd6a7", + "x-ms-ratelimit-remaining-subscription-reads": "11768", + "x-ms-request-id": "3da4974d-d516-47b3-b4bb-74374ccf3618", + "x-ms-routing-request-id": "JAPANEAST:20230217T094844Z:17b95d79-7c75-44b2-bbfe-a063c0edd6a7" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c6bdcfbf-30a0-4fc4-afc7-cff40921b497", + "name": "c6bdcfbf-30a0-4fc4-afc7-cff40921b497", + "status": "Running", + "startTime": "2023-02-17T09:42:44.7135835Z", + "endTime": "2023-02-17T09:44:21.2205634Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "b127e70c-8d3a-4113-9b72-762d6b30f544", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c6bdcfbf-30a0-4fc4-afc7-cff40921b497?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-27801846c52e7f6e244eaec9550e5da6-9e862693267a0637-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "fe0945acacd86b91b94eaf13e6d39d1f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:49:15 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ef8991cc-0b41-466f-9512-770181783114", + "x-ms-ratelimit-remaining-subscription-reads": "11767", + "x-ms-request-id": "bdd1c12b-86eb-47fa-ba01-323e3a496590", + "x-ms-routing-request-id": "JAPANEAST:20230217T094916Z:ef8991cc-0b41-466f-9512-770181783114" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c6bdcfbf-30a0-4fc4-afc7-cff40921b497", + "name": "c6bdcfbf-30a0-4fc4-afc7-cff40921b497", + "status": "Running", + "startTime": "2023-02-17T09:42:44.7135835Z", + "endTime": "2023-02-17T09:44:21.2205634Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "b127e70c-8d3a-4113-9b72-762d6b30f544", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c6bdcfbf-30a0-4fc4-afc7-cff40921b497?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-27801846c52e7f6e244eaec9550e5da6-6066a2cb50d10caa-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "100b38eb9208d2b3b893ec3606dfd491", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:49:48 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2a38c592-68f3-40db-89b6-990c466ed830", + "x-ms-ratelimit-remaining-subscription-reads": "11766", + "x-ms-request-id": "b2b39030-7e92-4842-abe8-0e6783a39a1a", + "x-ms-routing-request-id": "JAPANEAST:20230217T094948Z:2a38c592-68f3-40db-89b6-990c466ed830" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c6bdcfbf-30a0-4fc4-afc7-cff40921b497", + "name": "c6bdcfbf-30a0-4fc4-afc7-cff40921b497", + "status": "Running", + "startTime": "2023-02-17T09:42:44.7135835Z", + "endTime": "2023-02-17T09:44:21.2205634Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "b127e70c-8d3a-4113-9b72-762d6b30f544", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c6bdcfbf-30a0-4fc4-afc7-cff40921b497?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-27801846c52e7f6e244eaec9550e5da6-db897c9d19acca48-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "73597759f148622ec34372444ac0ee86", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:50:20 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "51aa8255-427c-475e-8e37-1f629f566a5b", + "x-ms-ratelimit-remaining-subscription-reads": "11807", + "x-ms-request-id": "74fcf7bb-7ee2-40ac-bad3-02eaf415f725", + "x-ms-routing-request-id": "JAPANEAST:20230217T095021Z:51aa8255-427c-475e-8e37-1f629f566a5b" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c6bdcfbf-30a0-4fc4-afc7-cff40921b497", + "name": "c6bdcfbf-30a0-4fc4-afc7-cff40921b497", + "status": "Running", + "startTime": "2023-02-17T09:42:44.7135835Z", + "endTime": "2023-02-17T09:44:21.2205634Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "b127e70c-8d3a-4113-9b72-762d6b30f544", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c6bdcfbf-30a0-4fc4-afc7-cff40921b497?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-27801846c52e7f6e244eaec9550e5da6-0a6a5c74f15e3eaa-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "67aceaa5fb5f1a9192374544c05b65d9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:50:52 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4c8c94fa-8853-4bf5-a5dd-7eb416578ee9", + "x-ms-ratelimit-remaining-subscription-reads": "11806", + "x-ms-request-id": "a060c28c-e2a7-41e1-95b4-8824a35a8bff", + "x-ms-routing-request-id": "JAPANEAST:20230217T095053Z:4c8c94fa-8853-4bf5-a5dd-7eb416578ee9" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c6bdcfbf-30a0-4fc4-afc7-cff40921b497", + "name": "c6bdcfbf-30a0-4fc4-afc7-cff40921b497", + "status": "Running", + "startTime": "2023-02-17T09:42:44.7135835Z", + "endTime": "2023-02-17T09:44:21.2205634Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "b127e70c-8d3a-4113-9b72-762d6b30f544", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c6bdcfbf-30a0-4fc4-afc7-cff40921b497?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-27801846c52e7f6e244eaec9550e5da6-f9c11c51aaf51710-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "6eba1d792a7afad60aa84cc51f6e87f8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:51:25 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3c69d2a5-4ca7-4c71-b733-2f328309a694", + "x-ms-ratelimit-remaining-subscription-reads": "11805", + "x-ms-request-id": "719694a7-9ff9-4bf8-ab8a-02c791a0f3da", + "x-ms-routing-request-id": "JAPANEAST:20230217T095125Z:3c69d2a5-4ca7-4c71-b733-2f328309a694" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c6bdcfbf-30a0-4fc4-afc7-cff40921b497", + "name": "c6bdcfbf-30a0-4fc4-afc7-cff40921b497", + "status": "Running", + "startTime": "2023-02-17T09:42:44.7135835Z", + "endTime": "2023-02-17T09:44:21.2205634Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "b127e70c-8d3a-4113-9b72-762d6b30f544", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c6bdcfbf-30a0-4fc4-afc7-cff40921b497?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-27801846c52e7f6e244eaec9550e5da6-ae0c5f655587b196-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "1b9165a56d335d31e63fe111ace9a268", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "513", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:51:57 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b88052bd-daca-4da8-8a99-cccc9af32b93", + "x-ms-ratelimit-remaining-subscription-reads": "11804", + "x-ms-request-id": "1b78c2cf-f1f4-4755-b1de-33bb80385cc1", + "x-ms-routing-request-id": "JAPANEAST:20230217T095157Z:b88052bd-daca-4da8-8a99-cccc9af32b93" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c6bdcfbf-30a0-4fc4-afc7-cff40921b497", + "name": "c6bdcfbf-30a0-4fc4-afc7-cff40921b497", + "status": "Succeeded", + "startTime": "2023-02-17T09:42:44.7135835Z", + "endTime": "2023-02-17T09:51:55.8185162Z", + "percentComplete": 1.0, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "b127e70c-8d3a-4113-9b72-762d6b30f544", + "provisioningState": "Succeeded", + "OperationState": "Completed" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp9705/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2221/kustoPools/kustopool81?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-27801846c52e7f6e244eaec9550e5da6-fd5ed62e1d08a2cb-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "2ccb99dd7f067a0c13b15cb7afcbfa23", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "828", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:51:58 GMT", + "ETag": "\u00222023-02-17T09:51:54.6621939Z\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c928a504-ddee-47aa-82a6-1f5370ce1013", + "x-ms-ratelimit-remaining-subscription-reads": "11803", + "x-ms-request-id": "123ab37c-e06d-4434-9d2a-f63e69b10cdc", + "x-ms-routing-request-id": "JAPANEAST:20230217T095158Z:c928a504-ddee-47aa-82a6-1f5370ce1013" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp9705/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2221/kustoPools/kustopool81", + "name": "synapsesdkworkspace2221/kustopool81", + "type": "Microsoft.Synapse/workspaces/kustoPools", + "etag": "\u00222023-02-17T09:51:54.6621939Z\u0022", + "location": "East US 2", + "sku": { + "name": "Storage optimized", + "size": "Medium", + "capacity": 2 + }, + "tags": {}, + "properties": { + "state": "Running", + "stateReason": null, + "uri": "https://kustopool81.synapsesdkworkspace2221.kusto.azuresynapse.net", + "dataIngestionUri": "https://ingest-kustopool81.synapsesdkworkspace2221.kusto.azuresynapse.net", + "optimizedAutoscale": null, + "enableStreamingIngest": false, + "languageExtensions": { + "value": [] + }, + "enablePurge": null, + "workspaceUID": "cf965fc3-9271-46a1-ac63-2cb362acce79", + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp9705/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2221/kustoPools/kustopool81/databases/kustodatabase6366?api-version=2021-06-01-preview", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "104", + "Content-Type": "application/json", + "traceparent": "00-afbd5c1206e143fdbd62e635fe1d5df8-ba77266f144776d6-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "ca5a9f4da649ec0c5c873a48c54e2106", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "eastus2", + "kind": "ReadWrite", + "properties": { + "softDeletePeriod": "P4D", + "hotCachePeriod": "P2D" + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/4a667528-6bf2-47c5-83ca-6744e030e594?api-version=2021-06-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "462", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:51:59 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "590be6dd-beb1-4f52-bb77-a7596a75232d", + "x-ms-ratelimit-remaining-subscription-writes": "1187", + "x-ms-request-id": "1ab66a91-31ed-43e7-af36-9529128ece02", + "x-ms-routing-request-id": "JAPANEAST:20230217T095200Z:590be6dd-beb1-4f52-bb77-a7596a75232d" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp9705/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2221/kustoPools/kustopool81/Databases/kustodatabase6366", + "name": "synapsesdkworkspace2221/kustopool81/kustodatabase6366", + "type": "Microsoft.Synapse/workspaces/kustoPools/Databases", + "location": "eastus2", + "kind": "ReadWrite", + "properties": { + "softDeletePeriod": "P4D", + "hotCachePeriod": "P2D", + "provisioningState": "Creating" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/4a667528-6bf2-47c5-83ca-6744e030e594?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-afbd5c1206e143fdbd62e635fe1d5df8-5031cddc0516d831-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "495e61bd9e47f293be40a9f8d1324e63", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "504", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:52:00 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0c9e5db6-1ca8-455f-ab1b-2881ef06edb7", + "x-ms-ratelimit-remaining-subscription-reads": "11802", + "x-ms-request-id": "6d8ed35a-3119-4ebb-9140-0fe2b83acc5c", + "x-ms-routing-request-id": "JAPANEAST:20230217T095200Z:0c9e5db6-1ca8-455f-ab1b-2881ef06edb7" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/4a667528-6bf2-47c5-83ca-6744e030e594", + "name": "4a667528-6bf2-47c5-83ca-6744e030e594", + "status": "Running", + "startTime": "2023-02-17T09:52:00.1625572Z", + "endTime": "2023-02-17T09:52:00.1625572Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "DatabaseCreate", + "RootActivityId": "8c471086-8a24-47f0-9942-26788a692fb3", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/4a667528-6bf2-47c5-83ca-6744e030e594?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-afbd5c1206e143fdbd62e635fe1d5df8-473e24ddb73f0bce-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "e3cbb03b80735b547a00b44124fb71ae", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "504", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:52:01 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d9097057-a596-4372-bb77-e846b550333f", + "x-ms-ratelimit-remaining-subscription-reads": "11801", + "x-ms-request-id": "fd5647d9-7169-4705-ba6f-dd047584f364", + "x-ms-routing-request-id": "JAPANEAST:20230217T095201Z:d9097057-a596-4372-bb77-e846b550333f" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/4a667528-6bf2-47c5-83ca-6744e030e594", + "name": "4a667528-6bf2-47c5-83ca-6744e030e594", + "status": "Running", + "startTime": "2023-02-17T09:52:00.1625572Z", + "endTime": "2023-02-17T09:52:00.1625572Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "DatabaseCreate", + "RootActivityId": "8c471086-8a24-47f0-9942-26788a692fb3", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/4a667528-6bf2-47c5-83ca-6744e030e594?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-afbd5c1206e143fdbd62e635fe1d5df8-0ced184b20db5b6c-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "638bf56cd8ef45bf5393e41a482c88e4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "504", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:52:02 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5338b81f-2541-4718-912a-e4d4bd4641c9", + "x-ms-ratelimit-remaining-subscription-reads": "11800", + "x-ms-request-id": "7c02207e-0f6c-4beb-a2f1-7e2663c2eb9a", + "x-ms-routing-request-id": "JAPANEAST:20230217T095203Z:5338b81f-2541-4718-912a-e4d4bd4641c9" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/4a667528-6bf2-47c5-83ca-6744e030e594", + "name": "4a667528-6bf2-47c5-83ca-6744e030e594", + "status": "Running", + "startTime": "2023-02-17T09:52:00.1625572Z", + "endTime": "2023-02-17T09:52:00.1625572Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "DatabaseCreate", + "RootActivityId": "8c471086-8a24-47f0-9942-26788a692fb3", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/4a667528-6bf2-47c5-83ca-6744e030e594?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-afbd5c1206e143fdbd62e635fe1d5df8-fa054f598b714713-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "c9d51eb936e33dd10d02ce46ea52cec2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "504", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:52:03 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "480ab28b-b3a6-4df6-8f0a-7cfb7b70035b", + "x-ms-ratelimit-remaining-subscription-reads": "11799", + "x-ms-request-id": "2824333e-bdba-4b68-a64a-6c1466dd1b25", + "x-ms-routing-request-id": "JAPANEAST:20230217T095204Z:480ab28b-b3a6-4df6-8f0a-7cfb7b70035b" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/4a667528-6bf2-47c5-83ca-6744e030e594", + "name": "4a667528-6bf2-47c5-83ca-6744e030e594", + "status": "Running", + "startTime": "2023-02-17T09:52:00.1625572Z", + "endTime": "2023-02-17T09:52:00.1625572Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "DatabaseCreate", + "RootActivityId": "8c471086-8a24-47f0-9942-26788a692fb3", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/4a667528-6bf2-47c5-83ca-6744e030e594?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-afbd5c1206e143fdbd62e635fe1d5df8-095e8c4123228120-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "dc8bfbceeba66373f18590e09c39134d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "506", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:52:06 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "29271d09-9cab-49e0-b9b1-62f61e7de188", + "x-ms-ratelimit-remaining-subscription-reads": "11798", + "x-ms-request-id": "b9630250-6abf-46a4-8b74-cf36277223e9", + "x-ms-routing-request-id": "JAPANEAST:20230217T095206Z:29271d09-9cab-49e0-b9b1-62f61e7de188" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/4a667528-6bf2-47c5-83ca-6744e030e594", + "name": "4a667528-6bf2-47c5-83ca-6744e030e594", + "status": "Succeeded", + "startTime": "2023-02-17T09:52:00.1625572Z", + "endTime": "2023-02-17T09:52:05.678627Z", + "percentComplete": 1.0, + "properties": { + "OperationKind": "DatabaseCreate", + "RootActivityId": "8c471086-8a24-47f0-9942-26788a692fb3", + "provisioningState": "Succeeded", + "OperationState": "Completed" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp9705/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2221/kustoPools/kustopool81/databases/kustodatabase6366?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-afbd5c1206e143fdbd62e635fe1d5df8-14e33fb6566eaa89-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "0688cf78a72636cb234d55ec09785b01", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:52:06 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3972fcd9-01d9-40d0-bae5-5a478d592d95", + "x-ms-ratelimit-remaining-subscription-reads": "11797", + "x-ms-request-id": "aaaf0ba7-080f-4a6e-94ad-4bb07e896817", + "x-ms-routing-request-id": "JAPANEAST:20230217T095207Z:3972fcd9-01d9-40d0-bae5-5a478d592d95" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp9705/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2221/kustoPools/kustopool81/Databases/kustodatabase6366", + "name": "synapsesdkworkspace2221/kustopool81/kustodatabase6366", + "type": "Microsoft.Synapse/workspaces/kustoPools/Databases", + "location": "East US 2", + "kind": "ReadWrite", + "properties": { + "softDeletePeriod": "P4D", + "hotCachePeriod": "P2D", + "statistics": { + "size": 0.0 + }, + "isFollowed": false, + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp9705/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2221/kustoPools/kustopool81/databases/kustodatabase6366?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-e3d2cd484ed9e26616aad5be0dfe8c74-e395e1d66e310cf9-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "4c4c21c5aca1cd3daa71d85da6f1a1d4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:52:07 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "fe3ab166-c890-4960-8a82-afaf6b6a61f2", + "x-ms-ratelimit-remaining-subscription-reads": "11796", + "x-ms-request-id": "98d7f05c-e2b4-4627-b09c-003ae1238838", + "x-ms-routing-request-id": "JAPANEAST:20230217T095208Z:fe3ab166-c890-4960-8a82-afaf6b6a61f2" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp9705/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2221/kustoPools/kustopool81/Databases/kustodatabase6366", + "name": "synapsesdkworkspace2221/kustopool81/kustodatabase6366", + "type": "Microsoft.Synapse/workspaces/kustoPools/Databases", + "location": "East US 2", + "kind": "ReadWrite", + "properties": { + "softDeletePeriod": "P4D", + "hotCachePeriod": "P2D", + "statistics": { + "size": 0.0 + }, + "isFollowed": false, + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp9705/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2221/kustoPools/kustopool81/databases/kustodatabase6366?api-version=2021-06-01-preview", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "104", + "Content-Type": "application/json", + "traceparent": "00-945050991875802fcd96ec83e74e68fb-cd7b922c9eadac58-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "1acd80efc7ca279c3055b85995875978", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "eastus2", + "kind": "ReadWrite", + "properties": { + "softDeletePeriod": "P6D", + "hotCachePeriod": "P3D" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/bb7b3dbb-daed-44de-af5f-316e91544190?api-version=2021-06-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "464", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:52:08 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f9d589f0-1600-4011-97a4-b69f2b1441c3", + "x-ms-ratelimit-remaining-subscription-writes": "1186", + "x-ms-request-id": "12081b50-22b6-4e26-9bb2-93d0633b78dd", + "x-ms-routing-request-id": "JAPANEAST:20230217T095208Z:f9d589f0-1600-4011-97a4-b69f2b1441c3" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp9705/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2221/kustoPools/kustopool81/Databases/kustodatabase6366", + "name": "synapsesdkworkspace2221/kustopool81/kustodatabase6366", + "type": "Microsoft.Synapse/workspaces/kustoPools/Databases", + "location": "East US 2", + "kind": "ReadWrite", + "properties": { + "softDeletePeriod": "P6D", + "hotCachePeriod": "P3D", + "provisioningState": "Accepted" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/bb7b3dbb-daed-44de-af5f-316e91544190?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-945050991875802fcd96ec83e74e68fb-aabf8f2045a7e9b0-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "88fd81ac41aafd3785251c4cf3e43822", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "506", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:52:08 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "27a39ad2-c06c-45ba-b5a3-158d99ea520d", + "x-ms-ratelimit-remaining-subscription-reads": "11795", + "x-ms-request-id": "111e7a7f-31a3-4d11-9c85-ccad3174411a", + "x-ms-routing-request-id": "JAPANEAST:20230217T095209Z:27a39ad2-c06c-45ba-b5a3-158d99ea520d" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/bb7b3dbb-daed-44de-af5f-316e91544190", + "name": "bb7b3dbb-daed-44de-af5f-316e91544190", + "status": "Running", + "startTime": "2023-02-17T09:52:08.7257839Z", + "endTime": "2023-02-17T09:52:08.7257839Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "DatabaseCreate", + "RootActivityId": "1a48e356-ad2a-42bf-8ddc-649fcc1419f1", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/bb7b3dbb-daed-44de-af5f-316e91544190?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-945050991875802fcd96ec83e74e68fb-43c88375be93adb1-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "18345f1826d628e6d400870f6ae757c3", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "506", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:52:09 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "65de6947-0fbf-4909-ae79-6486ec97d0e7", + "x-ms-ratelimit-remaining-subscription-reads": "11794", + "x-ms-request-id": "95e3eecb-f446-44d1-b777-1fe9eac4f691", + "x-ms-routing-request-id": "JAPANEAST:20230217T095210Z:65de6947-0fbf-4909-ae79-6486ec97d0e7" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/bb7b3dbb-daed-44de-af5f-316e91544190", + "name": "bb7b3dbb-daed-44de-af5f-316e91544190", + "status": "Running", + "startTime": "2023-02-17T09:52:08.7257839Z", + "endTime": "2023-02-17T09:52:08.7257839Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "DatabaseCreate", + "RootActivityId": "1a48e356-ad2a-42bf-8ddc-649fcc1419f1", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/bb7b3dbb-daed-44de-af5f-316e91544190?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-945050991875802fcd96ec83e74e68fb-68baa4f50f468bdc-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "13ac85c5d189e8cd571df4c8aa60d8ae", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "509", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:52:11 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2ff8f59b-60ac-4fe8-beaf-bb6836df7d4f", + "x-ms-ratelimit-remaining-subscription-reads": "11793", + "x-ms-request-id": "e9a57ae6-cfa6-453a-b1fb-9688fec85082", + "x-ms-routing-request-id": "JAPANEAST:20230217T095211Z:2ff8f59b-60ac-4fe8-beaf-bb6836df7d4f" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/bb7b3dbb-daed-44de-af5f-316e91544190", + "name": "bb7b3dbb-daed-44de-af5f-316e91544190", + "status": "Succeeded", + "startTime": "2023-02-17T09:52:08.7257839Z", + "endTime": "2023-02-17T09:52:11.2572353Z", + "percentComplete": 1.0, + "properties": { + "OperationKind": "DatabaseCreate", + "RootActivityId": "1a48e356-ad2a-42bf-8ddc-649fcc1419f1", + "provisioningState": "Succeeded", + "OperationState": "Completed" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp9705/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2221/kustoPools/kustopool81/databases/kustodatabase6366?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-945050991875802fcd96ec83e74e68fb-1d4a3eba7ef577c2-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "6f9c39817738855c9ad5b3a9b927939e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:52:11 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "fbb8e9a7-8377-4191-b6a1-27aa6550c138", + "x-ms-ratelimit-remaining-subscription-reads": "11792", + "x-ms-request-id": "b83e81ff-44e8-4539-bdf6-1bce32907b7d", + "x-ms-routing-request-id": "JAPANEAST:20230217T095212Z:fbb8e9a7-8377-4191-b6a1-27aa6550c138" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp9705/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2221/kustoPools/kustopool81/Databases/kustodatabase6366", + "name": "synapsesdkworkspace2221/kustopool81/kustodatabase6366", + "type": "Microsoft.Synapse/workspaces/kustoPools/Databases", + "location": "East US 2", + "kind": "ReadWrite", + "properties": { + "softDeletePeriod": "P6D", + "hotCachePeriod": "P3D", + "statistics": { + "size": 0.0 + }, + "isFollowed": false, + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp9705/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2221/kustoPools/kustopool81/databases?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "6e8659cd24374699914bc1b9321e7d74", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "522", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:52:12 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5629391f-c1fc-45a9-b187-e6b364aa89f9", + "x-ms-ratelimit-remaining-subscription-reads": "11791", + "x-ms-request-id": "48ede5df-2809-4e4b-b857-d84d3d9655da", + "x-ms-routing-request-id": "JAPANEAST:20230217T095212Z:5629391f-c1fc-45a9-b187-e6b364aa89f9" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp9705/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2221/kustoPools/kustopool81/Databases/kustodatabase6366", + "name": "synapsesdkworkspace2221/kustopool81/kustodatabase6366", + "type": "Microsoft.Synapse/workspaces/kustoPools/Databases", + "location": "East US 2", + "kind": "ReadWrite", + "properties": { + "softDeletePeriod": "P6D", + "hotCachePeriod": "P3D", + "statistics": { + "size": 0.0 + }, + "isFollowed": false, + "provisioningState": "Succeeded" + } + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp9705/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2221/kustoPools/kustopool81/databases/kustodatabase6366?api-version=2021-06-01-preview", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-0139c1776c131f2500df1c052a4a1a85-5b532c9b2c5bb2ca-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "308ed928e74a4e8a282679b41d242e2f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/fcc55b98-798b-4fb0-98c1-0a5109997264?api-version=2021-06-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Fri, 17 Feb 2023 09:52:12 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/fcc55b98-798b-4fb0-98c1-0a5109997264?api-version=2021-06-01-preview\u0026operationResultResponseType=Location", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8e55cb4a-13f5-4f01-8f52-d8417bce0a96", + "x-ms-ratelimit-remaining-subscription-deletes": "14997", + "x-ms-request-id": "8e55cb4a-13f5-4f01-8f52-d8417bce0a96", + "x-ms-routing-request-id": "JAPANEAST:20230217T095213Z:8e55cb4a-13f5-4f01-8f52-d8417bce0a96" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/fcc55b98-798b-4fb0-98c1-0a5109997264?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-0139c1776c131f2500df1c052a4a1a85-8b22f8573318ce6b-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "e0813f586299e553cf374511abe5286d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "506", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:52:12 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "fd8b684f-97f0-4750-9ff6-2da13c15f209", + "x-ms-ratelimit-remaining-subscription-reads": "11790", + "x-ms-request-id": "304b0a52-ed2e-4b28-881b-4687063b5963", + "x-ms-routing-request-id": "JAPANEAST:20230217T095213Z:fd8b684f-97f0-4750-9ff6-2da13c15f209" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/fcc55b98-798b-4fb0-98c1-0a5109997264", + "name": "fcc55b98-798b-4fb0-98c1-0a5109997264", + "status": "Running", + "startTime": "2023-02-17T09:52:13.1323533Z", + "endTime": "2023-02-17T09:52:13.1323533Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "DatabaseDelete", + "RootActivityId": "1fd65cda-149e-4d19-8f1b-4696361ee568", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/fcc55b98-798b-4fb0-98c1-0a5109997264?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-0139c1776c131f2500df1c052a4a1a85-6d7edcd47b6feba1-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "dc2f911d2b24bd9a623090f4099d9885", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "506", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:52:14 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b26a1c51-5457-4154-9322-4e4ab3647de9", + "x-ms-ratelimit-remaining-subscription-reads": "11789", + "x-ms-request-id": "69c169b0-a91e-47a0-9a6f-fe109494e21b", + "x-ms-routing-request-id": "JAPANEAST:20230217T095214Z:b26a1c51-5457-4154-9322-4e4ab3647de9" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/fcc55b98-798b-4fb0-98c1-0a5109997264", + "name": "fcc55b98-798b-4fb0-98c1-0a5109997264", + "status": "Running", + "startTime": "2023-02-17T09:52:13.1323533Z", + "endTime": "2023-02-17T09:52:13.1323533Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "DatabaseDelete", + "RootActivityId": "1fd65cda-149e-4d19-8f1b-4696361ee568", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/fcc55b98-798b-4fb0-98c1-0a5109997264?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-0139c1776c131f2500df1c052a4a1a85-00623c20f99901eb-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "de5bfdd24ea22795021582a12564b1bb", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "506", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:52:15 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "37fb14a2-f891-480d-a2c6-22893348bd61", + "x-ms-ratelimit-remaining-subscription-reads": "11788", + "x-ms-request-id": "96db7fd7-0bea-4289-b1e2-1390fd085b05", + "x-ms-routing-request-id": "JAPANEAST:20230217T095215Z:37fb14a2-f891-480d-a2c6-22893348bd61" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/fcc55b98-798b-4fb0-98c1-0a5109997264", + "name": "fcc55b98-798b-4fb0-98c1-0a5109997264", + "status": "Running", + "startTime": "2023-02-17T09:52:13.1323533Z", + "endTime": "2023-02-17T09:52:13.1323533Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "DatabaseDelete", + "RootActivityId": "1fd65cda-149e-4d19-8f1b-4696361ee568", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/fcc55b98-798b-4fb0-98c1-0a5109997264?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-0139c1776c131f2500df1c052a4a1a85-6d52874f7c02414a-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "24cf712d77742c57a4c47d68d25fdc31", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "506", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:52:16 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ae3a38ab-2377-4812-84f6-620021d50130", + "x-ms-ratelimit-remaining-subscription-reads": "11787", + "x-ms-request-id": "66f72a50-ab08-45fe-8e49-2e226b7e4e9f", + "x-ms-routing-request-id": "JAPANEAST:20230217T095217Z:ae3a38ab-2377-4812-84f6-620021d50130" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/fcc55b98-798b-4fb0-98c1-0a5109997264", + "name": "fcc55b98-798b-4fb0-98c1-0a5109997264", + "status": "Running", + "startTime": "2023-02-17T09:52:13.1323533Z", + "endTime": "2023-02-17T09:52:13.1323533Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "DatabaseDelete", + "RootActivityId": "1fd65cda-149e-4d19-8f1b-4696361ee568", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/fcc55b98-798b-4fb0-98c1-0a5109997264?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-0139c1776c131f2500df1c052a4a1a85-a6007949dea332ea-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "ae3ec09f4a89cfcbfb08d90ea9f998fd", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "506", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:52:18 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7dd2fc68-9f6c-47f3-8a3f-88bf28b930cc", + "x-ms-ratelimit-remaining-subscription-reads": "11786", + "x-ms-request-id": "46958e23-77f5-4e65-bc2f-2e318ab1cb45", + "x-ms-routing-request-id": "JAPANEAST:20230217T095219Z:7dd2fc68-9f6c-47f3-8a3f-88bf28b930cc" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/fcc55b98-798b-4fb0-98c1-0a5109997264", + "name": "fcc55b98-798b-4fb0-98c1-0a5109997264", + "status": "Running", + "startTime": "2023-02-17T09:52:13.1323533Z", + "endTime": "2023-02-17T09:52:13.1323533Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "DatabaseDelete", + "RootActivityId": "1fd65cda-149e-4d19-8f1b-4696361ee568", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/fcc55b98-798b-4fb0-98c1-0a5109997264?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-0139c1776c131f2500df1c052a4a1a85-970c40532f6e0f4e-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "98c7d47f73cd5b11a52f39ddd02d54a3", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "506", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:52:23 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "73991cfc-a7fd-4baa-bb95-c931a687b078", + "x-ms-ratelimit-remaining-subscription-reads": "11785", + "x-ms-request-id": "41fb8285-9eff-4014-b927-46b365e9dc73", + "x-ms-routing-request-id": "JAPANEAST:20230217T095223Z:73991cfc-a7fd-4baa-bb95-c931a687b078" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/fcc55b98-798b-4fb0-98c1-0a5109997264", + "name": "fcc55b98-798b-4fb0-98c1-0a5109997264", + "status": "Running", + "startTime": "2023-02-17T09:52:13.1323533Z", + "endTime": "2023-02-17T09:52:13.1323533Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "DatabaseDelete", + "RootActivityId": "1fd65cda-149e-4d19-8f1b-4696361ee568", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/fcc55b98-798b-4fb0-98c1-0a5109997264?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-0139c1776c131f2500df1c052a4a1a85-43a1bdb766e717e9-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "640250390326e231a500286c9d4883ab", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "509", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:52:31 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ef248909-4760-477f-b132-77b586925949", + "x-ms-ratelimit-remaining-subscription-reads": "11784", + "x-ms-request-id": "f780d944-7f5c-4aa6-8c87-2c4054671eaa", + "x-ms-routing-request-id": "JAPANEAST:20230217T095231Z:ef248909-4760-477f-b132-77b586925949" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/fcc55b98-798b-4fb0-98c1-0a5109997264", + "name": "fcc55b98-798b-4fb0-98c1-0a5109997264", + "status": "Succeeded", + "startTime": "2023-02-17T09:52:13.1323533Z", + "endTime": "2023-02-17T09:52:28.2897382Z", + "percentComplete": 1.0, + "properties": { + "OperationKind": "DatabaseDelete", + "RootActivityId": "1fd65cda-149e-4d19-8f1b-4696361ee568", + "provisioningState": "Succeeded", + "OperationState": "Completed" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp9705/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2221/kustoPools/kustopool81/databases?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "fde9802c44972b64afe3085a10edffce", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "12", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:52:31 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "481c779a-81b6-4f9d-804c-e236906be95f", + "x-ms-ratelimit-remaining-subscription-reads": "11783", + "x-ms-request-id": "e17f81c7-8999-4782-8867-bfc3665bc3b5", + "x-ms-routing-request-id": "JAPANEAST:20230217T095232Z:481c779a-81b6-4f9d-804c-e236906be95f" + }, + "ResponseBody": { + "value": [] + } + } + ], + "Variables": { + "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com/", + "RandomSeed": "716908140", + "RESOURCE_MANAGER_URL": null, + "SUBSCRIPTION_ID": "051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3" + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/tests/SessionRecords/KustopoolOperationTests/TestKustoPoolLifeCycle.json b/sdk/synapse/Azure.ResourceManager.Synapse/tests/SessionRecords/KustopoolOperationTests/TestKustoPoolLifeCycle.json new file mode 100644 index 0000000000000..9928057cf5f2f --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/tests/SessionRecords/KustopoolOperationTests/TestKustoPoolLifeCycle.json @@ -0,0 +1,4789 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3?api-version=2021-01-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-411d1bb70e4b879718e09f13e0d84e60-3a1e4d90fa23b080-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "d9125d9e5c56a3c911c27424c65fffa8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "492", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:01:39 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "99ecf0f1-4706-47e7-a063-16a17eeeb79c", + "x-ms-ratelimit-remaining-subscription-reads": "11779", + "x-ms-request-id": "99ecf0f1-4706-47e7-a063-16a17eeeb79c", + "x-ms-routing-request-id": "JAPANEAST:20230217T090139Z:99ecf0f1-4706-47e7-a063-16a17eeeb79c" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3", + "authorizationSource": "RoleBased", + "managedByTenants": [ + { + "tenantId": "2f4a9838-26b7-47ee-be60-ccc1fdec5953" + } + ], + "tags": { + "sub_tagname_1": "sub_tagvalue_1" + }, + "subscriptionId": "051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Synapse Web Tooling", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourcegroups/synapsesdkrp3028?api-version=**", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "22", + "Content-Type": "application/json", + "traceparent": "00-9fbf0e399b6fa227987fe83d558287ca-c69cad5adc32efc9-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "15af141cc0d3168a32122c9009503fea", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "eastus2" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "230", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:01:40 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b1872484-53a5-43fc-aa39-db6acbd11969", + "x-ms-ratelimit-remaining-subscription-writes": "1171", + "x-ms-request-id": "b1872484-53a5-43fc-aa39-db6acbd11969", + "x-ms-routing-request-id": "JAPANEAST:20230217T090141Z:b1872484-53a5-43fc-aa39-db6acbd11969" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp3028", + "name": "synapsesdkrp3028", + "type": "Microsoft.Resources/resourceGroups", + "location": "eastus2", + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp3028/providers/Microsoft.Storage/storageAccounts/synapsesdkstorage12?api-version=2022-09-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "87", + "Content-Type": "application/json", + "traceparent": "00-8525ef428f4e8a1de1a37eb0f3509b3a-127bb847097ababb-00", + "User-Agent": "azsdk-net-ResourceManager.Storage/1.1.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "f7d7fab85f8f35be30b8618442e34109", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "sku": { + "name": "Standard_GRS" + }, + "kind": "StorageV2", + "location": "eastus2", + "properties": {} + }, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Content-Type": "text/plain; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:01:45 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Storage/locations/eastus2/asyncoperations/ad0cbd03-ecc4-4d39-bdb6-859225c88f55?monitor=true\u0026api-version=2022-09-01", + "Pragma": "no-cache", + "Retry-After": "17", + "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "f7d7fab85f8f35be30b8618442e34109", + "x-ms-correlation-request-id": "131029c2-6505-4b98-8857-81183e38466e", + "x-ms-ratelimit-remaining-subscription-writes": "1170", + "x-ms-request-id": "ad0cbd03-ecc4-4d39-bdb6-859225c88f55", + "x-ms-routing-request-id": "JAPANEAST:20230217T090146Z:131029c2-6505-4b98-8857-81183e38466e" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Storage/locations/eastus2/asyncoperations/ad0cbd03-ecc4-4d39-bdb6-859225c88f55?monitor=true\u0026api-version=2022-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-8525ef428f4e8a1de1a37eb0f3509b3a-450258926aaf32f4-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "83c3bdc020babdee567ae51a5f05d34f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Content-Type": "text/plain; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:01:45 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Storage/locations/eastus2/asyncoperations/ad0cbd03-ecc4-4d39-bdb6-859225c88f55?monitor=true\u0026api-version=2022-09-01", + "Pragma": "no-cache", + "Retry-After": "17", + "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "83c3bdc020babdee567ae51a5f05d34f", + "x-ms-correlation-request-id": "eb3e74f8-5268-4a75-9b4f-a3cf6b5cf553", + "x-ms-ratelimit-remaining-subscription-reads": "11778", + "x-ms-request-id": "565943f0-63f6-455d-9037-bded05d04395", + "x-ms-routing-request-id": "JAPANEAST:20230217T090146Z:eb3e74f8-5268-4a75-9b4f-a3cf6b5cf553" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Storage/locations/eastus2/asyncoperations/ad0cbd03-ecc4-4d39-bdb6-859225c88f55?monitor=true\u0026api-version=2022-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-8525ef428f4e8a1de1a37eb0f3509b3a-38fa15936fce4526-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "0a3522d1f6cff487773cb702800eed9c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1512", + "Content-Type": "application/json", + "Date": "Fri, 17 Feb 2023 09:02:03 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "0a3522d1f6cff487773cb702800eed9c", + "x-ms-correlation-request-id": "fa5335cd-a398-4385-b5bd-4d8510914f15", + "x-ms-ratelimit-remaining-subscription-reads": "11777", + "x-ms-request-id": "8368d9a9-bad5-4cf1-80dd-9d8dd4b4d7f8", + "x-ms-routing-request-id": "JAPANEAST:20230217T090203Z:fa5335cd-a398-4385-b5bd-4d8510914f15" + }, + "ResponseBody": { + "sku": { + "name": "Standard_GRS", + "tier": "Standard" + }, + "kind": "StorageV2", + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp3028/providers/Microsoft.Storage/storageAccounts/synapsesdkstorage12", + "name": "synapsesdkstorage12", + "type": "Microsoft.Storage/storageAccounts", + "location": "eastus2", + "tags": {}, + "properties": { + "keyCreationTime": { + "key1": "2023-02-17T09:01:44.2993467Z", + "key2": "2023-02-17T09:01:44.2993467Z" + }, + "privateEndpointConnections": [], + "minimumTlsVersion": "TLS1_0", + "allowBlobPublicAccess": true, + "networkAcls": { + "bypass": "AzureServices", + "virtualNetworkRules": [], + "ipRules": [], + "defaultAction": "Allow" + }, + "supportsHttpsTrafficOnly": true, + "encryption": { + "services": { + "file": { + "keyType": "Account", + "enabled": true, + "lastEnabledTime": "2023-02-17T09:01:44.8932223Z" + }, + "blob": { + "keyType": "Account", + "enabled": true, + "lastEnabledTime": "2023-02-17T09:01:44.8932223Z" + } + }, + "keySource": "Microsoft.Storage" + }, + "accessTier": "Hot", + "provisioningState": "Succeeded", + "creationTime": "2023-02-17T09:01:44.1743441Z", + "primaryEndpoints": { + "dfs": "https://synapsesdkstorage12.dfs.core.windows.net/", + "web": "https://synapsesdkstorage12.z20.web.core.windows.net/", + "blob": "https://synapsesdkstorage12.blob.core.windows.net/", + "queue": "https://synapsesdkstorage12.queue.core.windows.net/", + "table": "https://synapsesdkstorage12.table.core.windows.net/", + "file": "https://synapsesdkstorage12.file.core.windows.net/" + }, + "primaryLocation": "eastus2", + "statusOfPrimary": "available", + "secondaryLocation": "centralus", + "statusOfSecondary": "available" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp3028/providers/Microsoft.Storage/storageAccounts/synapsesdkstorage12/listKeys?api-version=2022-09-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "0", + "traceparent": "00-0db18a62707b007b3e81c817ca7e6fb7-1b348bf579739095-00", + "User-Agent": "azsdk-net-ResourceManager.Storage/1.1.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "85c353fbbe1f394f0fc4f2e8de683b39", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "380", + "Content-Type": "application/json", + "Date": "Fri, 17 Feb 2023 09:02:03 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "85c353fbbe1f394f0fc4f2e8de683b39", + "x-ms-correlation-request-id": "28c62c0c-29f1-487a-a6ab-4211d116af1c", + "x-ms-ratelimit-remaining-subscription-resource-requests": "11994", + "x-ms-request-id": "faf4315b-8d49-4b37-95ec-f4c60a31bd7d", + "x-ms-routing-request-id": "JAPANEAST:20230217T090204Z:28c62c0c-29f1-487a-a6ab-4211d116af1c" + }, + "ResponseBody": { + "keys": [ + { + "creationTime": "2023-02-17T09:01:44.2993467Z", + "keyName": "key1", + "value": "TMUtzdGC0SbiBAIkv0xjxQXNeuZ6xHNVIaVK1GPP6UtjTa7da3r6reeJEZMqM\u002BUOtTOEKolYh93r\u002BAStQdMZuw==", + "permissions": "FULL" + }, + { + "creationTime": "2023-02-17T09:01:44.2993467Z", + "keyName": "key2", + "value": "eZNGY1xIHCxKJLsgqG2hZMICUsoYeiD7zii4mS3pYuKUyj7EX1BPjq6SodoRekHdgO/HxNTewjt2\u002BAStTem46A==", + "permissions": "FULL" + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp3028/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace6107?api-version=2021-06-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "300", + "Content-Type": "application/json", + "traceparent": "00-f2b1f3fb0296e916ded7d25d5b039f08-729e4da3a4411a44-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "5e25de8f3eb235c9ce0b7d69ec3d478d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "identity": { + "type": "SystemAssigned" + }, + "tags": {}, + "location": "eastus2", + "properties": { + "defaultDataLakeStorage": { + "accountUrl": "https://synapsesdkstorage12.dfs.core.windows.net/", + "filesystem": "synapsesdkfilesys1023" + }, + "sqlAdministratorLoginPassword": "Password1!2508", + "sqlAdministratorLogin": "sshuser9022" + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp3028/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace6107/operationStatuses/7a2b6fba-87ba-4bfd-9a83-e54bc119c657?api-version=2021-06-01", + "Cache-Control": "no-cache", + "Content-Length": "1475", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:02:11 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "5e25de8f3eb235c9ce0b7d69ec3d478d", + "x-ms-correlation-request-id": "6741f7c6-40c4-4e9a-8371-67bc2e00679e", + "x-ms-ratelimit-remaining-subscription-writes": "1169", + "x-ms-request-id": "f416871d-1936-4a6a-804d-dd6cbb052ce4", + "x-ms-routing-request-id": "JAPANEAST:20230217T090212Z:6741f7c6-40c4-4e9a-8371-67bc2e00679e" + }, + "ResponseBody": { + "properties": { + "defaultDataLakeStorage": { + "createManagedPrivateEndpoint": false, + "accountUrl": "https://synapsesdkstorage12.dfs.core.windows.net/", + "filesystem": "synapsesdkfilesys1023" + }, + "encryption": { + "doubleEncryptionEnabled": false + }, + "provisioningState": "Provisioning", + "connectivityEndpoints": { + "web": "https://web.azuresynapse.net?workspace=%2fsubscriptions%2f051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3%2fresourceGroups%2fsynapsesdkrp3028%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fsynapsesdkworkspace6107", + "dev": "https://synapsesdkworkspace6107.dev.azuresynapse.net", + "sqlOnDemand": "synapsesdkworkspace6107-ondemand.sql.azuresynapse.net", + "sql": "synapsesdkworkspace6107.sql.azuresynapse.net" + }, + "managedResourceGroupName": "synapseworkspace-managedrg-1e1f8da5-ac77-441e-bcd2-a18237eed50c", + "privateEndpointConnections": [], + "workspaceUID": "c9e6e77f-bf17-4a8c-936b-864a134ae9c9", + "extraProperties": { + "WorkspaceType": "Normal" + }, + "publicNetworkAccess": "Enabled", + "cspWorkspaceAdminProperties": { + "initialWorkspaceAdminObjectId": "5adcf4d8-4923-420e-ab0b-f6e5fc718b42" + }, + "trustedServiceBypassEnabled": false + }, + "type": "Microsoft.Synapse/workspaces", + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp3028/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace6107", + "location": "eastus2", + "name": "synapsesdkworkspace6107", + "identity": { + "type": "SystemAssigned", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "principalId": "5c777642-81ba-414e-89ab-f6fb9b980c97" + }, + "tags": {} + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp3028/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace6107/operationStatuses/7a2b6fba-87ba-4bfd-9a83-e54bc119c657?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-f2b1f3fb0296e916ded7d25d5b039f08-a0134fdc3c68152e-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "30f0487d3dc71448f94f51b2d1d02386", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:02:11 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "30f0487d3dc71448f94f51b2d1d02386", + "x-ms-correlation-request-id": "3ce27344-2d1f-48cd-a46f-1fa63a7c79c5", + "x-ms-ratelimit-remaining-subscription-reads": "11776", + "x-ms-request-id": "dd39c409-99a7-48f9-b995-1ad2e31519e8", + "x-ms-routing-request-id": "JAPANEAST:20230217T090212Z:3ce27344-2d1f-48cd-a46f-1fa63a7c79c5" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp3028/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace6107/operationStatuses/7a2b6fba-87ba-4bfd-9a83-e54bc119c657?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-f2b1f3fb0296e916ded7d25d5b039f08-32d3479503ceb5d0-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "48955baaf82e5f6bcb5162b733c596b8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:02:13 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "48955baaf82e5f6bcb5162b733c596b8", + "x-ms-correlation-request-id": "13f661c2-a8b1-480d-9d73-324d9d69c917", + "x-ms-ratelimit-remaining-subscription-reads": "11775", + "x-ms-request-id": "49bd811b-5815-4eba-ae35-66846f18a6ff", + "x-ms-routing-request-id": "JAPANEAST:20230217T090214Z:13f661c2-a8b1-480d-9d73-324d9d69c917" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp3028/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace6107/operationStatuses/7a2b6fba-87ba-4bfd-9a83-e54bc119c657?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-f2b1f3fb0296e916ded7d25d5b039f08-b194d41a9c295e59-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "a3eb7dfc164d0bc5d7f847ffde5f022b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:02:14 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "a3eb7dfc164d0bc5d7f847ffde5f022b", + "x-ms-correlation-request-id": "b9f2d2de-b0c9-4974-b9af-f18c00e55fac", + "x-ms-ratelimit-remaining-subscription-reads": "11774", + "x-ms-request-id": "9fcbaada-08ef-46bb-ba48-71df3a3d5024", + "x-ms-routing-request-id": "JAPANEAST:20230217T090215Z:b9f2d2de-b0c9-4974-b9af-f18c00e55fac" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp3028/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace6107/operationStatuses/7a2b6fba-87ba-4bfd-9a83-e54bc119c657?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-f2b1f3fb0296e916ded7d25d5b039f08-a744bfdfc0fa9fcd-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "435984d7c68085d1dd906575db90e034", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:02:16 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "435984d7c68085d1dd906575db90e034", + "x-ms-correlation-request-id": "9be8fb62-907a-4c84-b371-79c56b118629", + "x-ms-ratelimit-remaining-subscription-reads": "11773", + "x-ms-request-id": "c98d3c4b-fab9-4a59-b355-f175098276d8", + "x-ms-routing-request-id": "JAPANEAST:20230217T090216Z:9be8fb62-907a-4c84-b371-79c56b118629" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp3028/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace6107/operationStatuses/7a2b6fba-87ba-4bfd-9a83-e54bc119c657?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-f2b1f3fb0296e916ded7d25d5b039f08-57d3ce2aa48b3d09-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "53b698b87fe5933995897036b06b816b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:02:18 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "53b698b87fe5933995897036b06b816b", + "x-ms-correlation-request-id": "0ea2b287-be2e-4525-82c1-5e31b76f3d05", + "x-ms-ratelimit-remaining-subscription-reads": "11772", + "x-ms-request-id": "9b02c5b1-3a78-4630-b8da-8909d8cf7db6", + "x-ms-routing-request-id": "JAPANEAST:20230217T090219Z:0ea2b287-be2e-4525-82c1-5e31b76f3d05" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp3028/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace6107/operationStatuses/7a2b6fba-87ba-4bfd-9a83-e54bc119c657?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-f2b1f3fb0296e916ded7d25d5b039f08-c589617d8bbc3857-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "afe0364f536c3537ab65c6bcb1503047", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:02:22 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "afe0364f536c3537ab65c6bcb1503047", + "x-ms-correlation-request-id": "7a45ce19-f49e-4f3f-9733-48f554bdc6e9", + "x-ms-ratelimit-remaining-subscription-reads": "11771", + "x-ms-request-id": "419d9748-b5b9-46ec-a642-c03f5939cfa7", + "x-ms-routing-request-id": "JAPANEAST:20230217T090223Z:7a45ce19-f49e-4f3f-9733-48f554bdc6e9" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp3028/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace6107/operationStatuses/7a2b6fba-87ba-4bfd-9a83-e54bc119c657?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-f2b1f3fb0296e916ded7d25d5b039f08-2c0253811637e7dc-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "46461318aea958464ac5aef7569bd571", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:02:32 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "46461318aea958464ac5aef7569bd571", + "x-ms-correlation-request-id": "a216c488-b8c9-4dab-a02b-3bd11b327da9", + "x-ms-ratelimit-remaining-subscription-reads": "11770", + "x-ms-request-id": "97128a49-e7fd-4746-b506-3fd452a2195e", + "x-ms-routing-request-id": "JAPANEAST:20230217T090232Z:a216c488-b8c9-4dab-a02b-3bd11b327da9" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp3028/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace6107/operationStatuses/7a2b6fba-87ba-4bfd-9a83-e54bc119c657?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-f2b1f3fb0296e916ded7d25d5b039f08-0577e595973c3762-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "a426f90f31af65c76181a87fb87de145", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:02:48 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "a426f90f31af65c76181a87fb87de145", + "x-ms-correlation-request-id": "8176b01a-efd3-4edd-b64c-0168d3d1f92b", + "x-ms-ratelimit-remaining-subscription-reads": "11769", + "x-ms-request-id": "9ca5ed35-4adf-4d88-9641-c14db941f810", + "x-ms-routing-request-id": "JAPANEAST:20230217T090248Z:8176b01a-efd3-4edd-b64c-0168d3d1f92b" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp3028/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace6107/operationStatuses/7a2b6fba-87ba-4bfd-9a83-e54bc119c657?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-f2b1f3fb0296e916ded7d25d5b039f08-6271dacafdeaacec-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "9d1e29593b25a0c2f08864a6a440df10", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:03:20 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "9d1e29593b25a0c2f08864a6a440df10", + "x-ms-correlation-request-id": "e0c56715-a82f-4eb7-bdd3-2a65bd9144e2", + "x-ms-ratelimit-remaining-subscription-reads": "11768", + "x-ms-request-id": "bc2df6f9-eeb5-4328-91e2-04a071d0ecce", + "x-ms-routing-request-id": "JAPANEAST:20230217T090321Z:e0c56715-a82f-4eb7-bdd3-2a65bd9144e2" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp3028/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace6107/operationStatuses/7a2b6fba-87ba-4bfd-9a83-e54bc119c657?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-f2b1f3fb0296e916ded7d25d5b039f08-89ef2b94bf85ca6a-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "b8ad55908b29e7974be1e42706c69fcd", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:03:53 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "b8ad55908b29e7974be1e42706c69fcd", + "x-ms-correlation-request-id": "99273923-bbcb-4a32-b501-0eebaba5e18c", + "x-ms-ratelimit-remaining-subscription-reads": "11767", + "x-ms-request-id": "9537e83c-4326-4be5-88c9-a527fd9ed84e", + "x-ms-routing-request-id": "JAPANEAST:20230217T090353Z:99273923-bbcb-4a32-b501-0eebaba5e18c" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp3028/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace6107/operationStatuses/7a2b6fba-87ba-4bfd-9a83-e54bc119c657?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-f2b1f3fb0296e916ded7d25d5b039f08-75ee5c3820435497-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "2d9d69e3387dd44c3685b427cc21c021", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:04:25 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "2d9d69e3387dd44c3685b427cc21c021", + "x-ms-correlation-request-id": "979f8840-f8c1-40cc-a22b-a497a45e763b", + "x-ms-ratelimit-remaining-subscription-reads": "11766", + "x-ms-request-id": "58b0ffb3-e0b5-4907-8d6a-605daaa2cfa0", + "x-ms-routing-request-id": "JAPANEAST:20230217T090426Z:979f8840-f8c1-40cc-a22b-a497a45e763b" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp3028/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace6107/operationStatuses/7a2b6fba-87ba-4bfd-9a83-e54bc119c657?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-f2b1f3fb0296e916ded7d25d5b039f08-2e8e9d4454db3493-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "63ef97a229cfce1b91375144569b9a29", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "22", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:04:57 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "63ef97a229cfce1b91375144569b9a29", + "x-ms-correlation-request-id": "5cdbd745-4496-467f-97b4-53ab24bb8c15", + "x-ms-ratelimit-remaining-subscription-reads": "11765", + "x-ms-request-id": "304195b3-690d-4ec6-b44c-f837b34d7413", + "x-ms-routing-request-id": "JAPANEAST:20230217T090458Z:5cdbd745-4496-467f-97b4-53ab24bb8c15" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp3028/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace6107?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-f2b1f3fb0296e916ded7d25d5b039f08-669ad0e176b76d87-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "3bc297e8b2a2589308d982a4d66f1a2a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1533", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:04:58 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "3bc297e8b2a2589308d982a4d66f1a2a", + "x-ms-correlation-request-id": "caae276a-8115-4dfa-b1e7-a4317e0fb5ae", + "x-ms-ratelimit-remaining-subscription-reads": "11764", + "x-ms-request-id": "04bb0e03-47e7-48b9-8814-5639afa17090", + "x-ms-routing-request-id": "JAPANEAST:20230217T090458Z:caae276a-8115-4dfa-b1e7-a4317e0fb5ae" + }, + "ResponseBody": { + "properties": { + "defaultDataLakeStorage": { + "createManagedPrivateEndpoint": false, + "accountUrl": "https://synapsesdkstorage12.dfs.core.windows.net/", + "filesystem": "synapsesdkfilesys1023" + }, + "encryption": { + "doubleEncryptionEnabled": false + }, + "provisioningState": "Succeeded", + "connectivityEndpoints": { + "web": "https://web.azuresynapse.net?workspace=%2fsubscriptions%2f051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3%2fresourceGroups%2fsynapsesdkrp3028%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fsynapsesdkworkspace6107", + "dev": "https://synapsesdkworkspace6107.dev.azuresynapse.net", + "sqlOnDemand": "synapsesdkworkspace6107-ondemand.sql.azuresynapse.net", + "sql": "synapsesdkworkspace6107.sql.azuresynapse.net" + }, + "managedResourceGroupName": "synapseworkspace-managedrg-1e1f8da5-ac77-441e-bcd2-a18237eed50c", + "sqlAdministratorLogin": "sshuser9022", + "privateEndpointConnections": [], + "workspaceUID": "c9e6e77f-bf17-4a8c-936b-864a134ae9c9", + "extraProperties": { + "WorkspaceType": "Normal", + "IsScopeEnabled": false + }, + "publicNetworkAccess": "Enabled", + "cspWorkspaceAdminProperties": { + "initialWorkspaceAdminObjectId": "5adcf4d8-4923-420e-ab0b-f6e5fc718b42" + }, + "trustedServiceBypassEnabled": false + }, + "type": "Microsoft.Synapse/workspaces", + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp3028/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace6107", + "location": "eastus2", + "name": "synapsesdkworkspace6107", + "identity": { + "type": "SystemAssigned", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "principalId": "5c777642-81ba-414e-89ab-f6fb9b980c97" + }, + "tags": {} + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp3028/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace6107/kustoPools/kustopool1063?api-version=2021-06-01-preview", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "152", + "Content-Type": "application/json", + "traceparent": "00-0dca24a0cb69cc43dc9a8f4a577d8232-b7687b02ee71cbec-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "d76e85c3fd3b4dbace9b45e6077d9beb", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "sku": { + "name": "Storage optimized", + "size": "Medium" + }, + "tags": {}, + "location": "eastus2", + "properties": { + "workspaceUID": "c9e6e77f-bf17-4a8c-936b-864a134ae9c9" + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/39a0a576-d70c-4fbc-8e16-398a1cec3606?api-version=2021-06-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "491", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:05:03 GMT", + "ETag": "\u0022\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "18cb39df-0ce3-4632-923b-d427396f0de4", + "x-ms-ratelimit-remaining-subscription-writes": "1168", + "x-ms-request-id": "4b6b33c3-6fc2-459e-9c0c-4472778223cc", + "x-ms-routing-request-id": "JAPANEAST:20230217T090504Z:18cb39df-0ce3-4632-923b-d427396f0de4" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp3028/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace6107/kustoPools/kustopool1063", + "name": "synapsesdkworkspace6107/kustopool1063", + "type": "Microsoft.Synapse/workspaces/kustoPools", + "etag": "\u0022\u0022", + "location": "eastus2", + "sku": { + "name": "Storage optimized", + "size": "Medium" + }, + "tags": {}, + "properties": { + "state": "Creating", + "workspaceUID": "c9e6e77f-bf17-4a8c-936b-864a134ae9c9", + "provisioningState": "Creating" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/39a0a576-d70c-4fbc-8e16-398a1cec3606?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-0dca24a0cb69cc43dc9a8f4a577d8232-09c5c5b5311e167d-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "15932427512b99ad07edd4164d72015b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:05:03 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8fc1af1b-7470-4a3b-9dcb-14ed904593e8", + "x-ms-ratelimit-remaining-subscription-reads": "11769", + "x-ms-request-id": "b45cc671-615b-48ea-8413-27e98b39f1d9", + "x-ms-routing-request-id": "JAPANEAST:20230217T090504Z:8fc1af1b-7470-4a3b-9dcb-14ed904593e8" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/39a0a576-d70c-4fbc-8e16-398a1cec3606", + "name": "39a0a576-d70c-4fbc-8e16-398a1cec3606", + "status": "Running", + "startTime": "2023-02-17T09:05:03.3658551Z", + "endTime": "2023-02-17T09:05:03.3658551Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "afbd21cf-f3bc-48ae-b122-d672f5627479", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/39a0a576-d70c-4fbc-8e16-398a1cec3606?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-0dca24a0cb69cc43dc9a8f4a577d8232-fbe808ff855bee47-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "304bb9e6cbe5449a956a41e00713d7d6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:05:05 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6fb40bed-d7e7-417c-97fd-2d4b3e44b898", + "x-ms-ratelimit-remaining-subscription-reads": "11768", + "x-ms-request-id": "cd83949f-1b6c-4083-8eba-eb860ba8f79b", + "x-ms-routing-request-id": "JAPANEAST:20230217T090505Z:6fb40bed-d7e7-417c-97fd-2d4b3e44b898" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/39a0a576-d70c-4fbc-8e16-398a1cec3606", + "name": "39a0a576-d70c-4fbc-8e16-398a1cec3606", + "status": "Running", + "startTime": "2023-02-17T09:05:03.3658551Z", + "endTime": "2023-02-17T09:05:03.3658551Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "afbd21cf-f3bc-48ae-b122-d672f5627479", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/39a0a576-d70c-4fbc-8e16-398a1cec3606?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-0dca24a0cb69cc43dc9a8f4a577d8232-f9753b984fb401a0-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "e3be297985ea39bf929b5798aad9b724", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:05:06 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "70110ec9-d185-4669-b330-ccb5c81e94a4", + "x-ms-ratelimit-remaining-subscription-reads": "11767", + "x-ms-request-id": "acf8040b-c4ed-4fb6-9f4b-513247ed07f0", + "x-ms-routing-request-id": "JAPANEAST:20230217T090507Z:70110ec9-d185-4669-b330-ccb5c81e94a4" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/39a0a576-d70c-4fbc-8e16-398a1cec3606", + "name": "39a0a576-d70c-4fbc-8e16-398a1cec3606", + "status": "Running", + "startTime": "2023-02-17T09:05:03.3658551Z", + "endTime": "2023-02-17T09:05:03.3658551Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "afbd21cf-f3bc-48ae-b122-d672f5627479", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/39a0a576-d70c-4fbc-8e16-398a1cec3606?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-0dca24a0cb69cc43dc9a8f4a577d8232-ce514ed09d740465-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "bdc09b59f1ad5c36894e7fc110cc92f4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:05:07 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5a1654bd-3d70-441b-bad1-59706a762f52", + "x-ms-ratelimit-remaining-subscription-reads": "11766", + "x-ms-request-id": "b8d0041c-2020-40d1-b556-985ee1186529", + "x-ms-routing-request-id": "JAPANEAST:20230217T090508Z:5a1654bd-3d70-441b-bad1-59706a762f52" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/39a0a576-d70c-4fbc-8e16-398a1cec3606", + "name": "39a0a576-d70c-4fbc-8e16-398a1cec3606", + "status": "Running", + "startTime": "2023-02-17T09:05:03.3658551Z", + "endTime": "2023-02-17T09:05:03.3658551Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "afbd21cf-f3bc-48ae-b122-d672f5627479", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/39a0a576-d70c-4fbc-8e16-398a1cec3606?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-0dca24a0cb69cc43dc9a8f4a577d8232-a97b7090294f1ff7-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "249dfd161db36070f9119d4973029abc", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:05:10 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "93fddfa2-a87c-4d53-8225-f802c33b2c54", + "x-ms-ratelimit-remaining-subscription-reads": "11765", + "x-ms-request-id": "e84db3d0-ee27-4c99-9ccb-b58e8b6ed4e7", + "x-ms-routing-request-id": "JAPANEAST:20230217T090511Z:93fddfa2-a87c-4d53-8225-f802c33b2c54" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/39a0a576-d70c-4fbc-8e16-398a1cec3606", + "name": "39a0a576-d70c-4fbc-8e16-398a1cec3606", + "status": "Running", + "startTime": "2023-02-17T09:05:03.3658551Z", + "endTime": "2023-02-17T09:05:03.3658551Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "afbd21cf-f3bc-48ae-b122-d672f5627479", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/39a0a576-d70c-4fbc-8e16-398a1cec3606?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-0dca24a0cb69cc43dc9a8f4a577d8232-efe7ca050a047915-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "6c871cb319528729f262599b06fe28c6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:05:14 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4b210174-b28c-4a30-a518-d6a41c145762", + "x-ms-ratelimit-remaining-subscription-reads": "11764", + "x-ms-request-id": "0e25ccbe-4c63-41bf-8567-4704c8c778fa", + "x-ms-routing-request-id": "JAPANEAST:20230217T090515Z:4b210174-b28c-4a30-a518-d6a41c145762" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/39a0a576-d70c-4fbc-8e16-398a1cec3606", + "name": "39a0a576-d70c-4fbc-8e16-398a1cec3606", + "status": "Running", + "startTime": "2023-02-17T09:05:03.3658551Z", + "endTime": "2023-02-17T09:05:03.3658551Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "afbd21cf-f3bc-48ae-b122-d672f5627479", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/39a0a576-d70c-4fbc-8e16-398a1cec3606?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-0dca24a0cb69cc43dc9a8f4a577d8232-481f9d0b8bf01779-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "ac816209933b3b712a60c49b53ece887", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:05:24 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "96b26570-1bc2-46f4-ba04-6a3bc2e5cea4", + "x-ms-ratelimit-remaining-subscription-reads": "11763", + "x-ms-request-id": "aced685c-dd15-4e93-b41c-7a32d3c06e55", + "x-ms-routing-request-id": "JAPANEAST:20230217T090524Z:96b26570-1bc2-46f4-ba04-6a3bc2e5cea4" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/39a0a576-d70c-4fbc-8e16-398a1cec3606", + "name": "39a0a576-d70c-4fbc-8e16-398a1cec3606", + "status": "Running", + "startTime": "2023-02-17T09:05:03.3658551Z", + "endTime": "2023-02-17T09:05:03.3658551Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "afbd21cf-f3bc-48ae-b122-d672f5627479", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/39a0a576-d70c-4fbc-8e16-398a1cec3606?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-0dca24a0cb69cc43dc9a8f4a577d8232-1eaaa382df7fc96e-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "f40dc3b42544fca1d4163150c4d55afa", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:05:40 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "857dd175-9df1-4d3e-8268-522cf30965e2", + "x-ms-ratelimit-remaining-subscription-reads": "11762", + "x-ms-request-id": "9a63d957-7692-4660-b444-dcc7b9f4e425", + "x-ms-routing-request-id": "JAPANEAST:20230217T090540Z:857dd175-9df1-4d3e-8268-522cf30965e2" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/39a0a576-d70c-4fbc-8e16-398a1cec3606", + "name": "39a0a576-d70c-4fbc-8e16-398a1cec3606", + "status": "Running", + "startTime": "2023-02-17T09:05:03.3658551Z", + "endTime": "2023-02-17T09:05:03.3658551Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "afbd21cf-f3bc-48ae-b122-d672f5627479", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/39a0a576-d70c-4fbc-8e16-398a1cec3606?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-0dca24a0cb69cc43dc9a8f4a577d8232-949cd0fb6a822cfe-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "1040d7e8ed802081ab4b42f2558d3305", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:06:12 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6998b661-19b9-4672-9f1d-55ed1d1b7e3e", + "x-ms-ratelimit-remaining-subscription-reads": "11761", + "x-ms-request-id": "0083fcf1-810f-406d-b7d9-1259e72eb530", + "x-ms-routing-request-id": "JAPANEAST:20230217T090612Z:6998b661-19b9-4672-9f1d-55ed1d1b7e3e" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/39a0a576-d70c-4fbc-8e16-398a1cec3606", + "name": "39a0a576-d70c-4fbc-8e16-398a1cec3606", + "status": "Running", + "startTime": "2023-02-17T09:05:03.3658551Z", + "endTime": "2023-02-17T09:05:03.3658551Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "afbd21cf-f3bc-48ae-b122-d672f5627479", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/39a0a576-d70c-4fbc-8e16-398a1cec3606?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-0dca24a0cb69cc43dc9a8f4a577d8232-dbda733d7fe125bf-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "42e7d27934f0e381c185d82461207754", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "509", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:06:44 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6cd29fcf-b72f-4640-92ca-02f0c4cd3fe8", + "x-ms-ratelimit-remaining-subscription-reads": "11760", + "x-ms-request-id": "99477624-f148-4255-99d3-3658e9c792e0", + "x-ms-routing-request-id": "JAPANEAST:20230217T090644Z:6cd29fcf-b72f-4640-92ca-02f0c4cd3fe8" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/39a0a576-d70c-4fbc-8e16-398a1cec3606", + "name": "39a0a576-d70c-4fbc-8e16-398a1cec3606", + "status": "Running", + "startTime": "2023-02-17T09:05:03.3658551Z", + "endTime": "2023-02-17T09:06:31.906902Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "afbd21cf-f3bc-48ae-b122-d672f5627479", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/39a0a576-d70c-4fbc-8e16-398a1cec3606?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-0dca24a0cb69cc43dc9a8f4a577d8232-1bd66f39ee9a0193-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "7cb3c905d7acc70642ed48f9e3aea747", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "509", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:07:16 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ea93c8bd-52bb-4b4d-9333-89fe47d436da", + "x-ms-ratelimit-remaining-subscription-reads": "11759", + "x-ms-request-id": "1270559b-e764-4efb-bb6d-30914cf4ee5e", + "x-ms-routing-request-id": "JAPANEAST:20230217T090717Z:ea93c8bd-52bb-4b4d-9333-89fe47d436da" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/39a0a576-d70c-4fbc-8e16-398a1cec3606", + "name": "39a0a576-d70c-4fbc-8e16-398a1cec3606", + "status": "Running", + "startTime": "2023-02-17T09:05:03.3658551Z", + "endTime": "2023-02-17T09:06:31.906902Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "afbd21cf-f3bc-48ae-b122-d672f5627479", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/39a0a576-d70c-4fbc-8e16-398a1cec3606?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-0dca24a0cb69cc43dc9a8f4a577d8232-151e341a700fc651-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "f1d62ce317eeb309565c4ffb155cbe8a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "509", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:07:49 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "20ba7c8a-b30d-44da-abd0-c27b999ea377", + "x-ms-ratelimit-remaining-subscription-reads": "11758", + "x-ms-request-id": "9f75fa4f-7663-4ce3-9e20-7d51707d030c", + "x-ms-routing-request-id": "JAPANEAST:20230217T090749Z:20ba7c8a-b30d-44da-abd0-c27b999ea377" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/39a0a576-d70c-4fbc-8e16-398a1cec3606", + "name": "39a0a576-d70c-4fbc-8e16-398a1cec3606", + "status": "Running", + "startTime": "2023-02-17T09:05:03.3658551Z", + "endTime": "2023-02-17T09:06:31.906902Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "afbd21cf-f3bc-48ae-b122-d672f5627479", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/39a0a576-d70c-4fbc-8e16-398a1cec3606?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-0dca24a0cb69cc43dc9a8f4a577d8232-ebb32345bf8177db-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "8bededd4b7d9a259cc1f0003eb870012", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "509", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:08:21 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3cc8132f-2eea-41e7-91f2-067d4376cf25", + "x-ms-ratelimit-remaining-subscription-reads": "11757", + "x-ms-request-id": "22e09c73-8f7d-4038-978e-3c2243fbb985", + "x-ms-routing-request-id": "JAPANEAST:20230217T090821Z:3cc8132f-2eea-41e7-91f2-067d4376cf25" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/39a0a576-d70c-4fbc-8e16-398a1cec3606", + "name": "39a0a576-d70c-4fbc-8e16-398a1cec3606", + "status": "Running", + "startTime": "2023-02-17T09:05:03.3658551Z", + "endTime": "2023-02-17T09:06:31.906902Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "afbd21cf-f3bc-48ae-b122-d672f5627479", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/39a0a576-d70c-4fbc-8e16-398a1cec3606?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-0dca24a0cb69cc43dc9a8f4a577d8232-3b91a3bff5d82340-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "354190de864aed66bfff2550880ab1e5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "509", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:08:53 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ae7fcb0a-0be3-4646-bf62-88cf7cf08030", + "x-ms-ratelimit-remaining-subscription-reads": "11756", + "x-ms-request-id": "e08882ad-845d-4676-9f3f-d06598dd60cc", + "x-ms-routing-request-id": "JAPANEAST:20230217T090853Z:ae7fcb0a-0be3-4646-bf62-88cf7cf08030" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/39a0a576-d70c-4fbc-8e16-398a1cec3606", + "name": "39a0a576-d70c-4fbc-8e16-398a1cec3606", + "status": "Running", + "startTime": "2023-02-17T09:05:03.3658551Z", + "endTime": "2023-02-17T09:06:31.906902Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "afbd21cf-f3bc-48ae-b122-d672f5627479", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/39a0a576-d70c-4fbc-8e16-398a1cec3606?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-0dca24a0cb69cc43dc9a8f4a577d8232-535f9d9a64c46cc7-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "f524be2e1bc12c6dd23424ce1706c7ce", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "509", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:09:26 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2e73d2b0-ae08-4dec-807f-24e4703bed93", + "x-ms-ratelimit-remaining-subscription-reads": "11755", + "x-ms-request-id": "b1de857a-1fda-4ed9-b7e7-16da7394f178", + "x-ms-routing-request-id": "JAPANEAST:20230217T090926Z:2e73d2b0-ae08-4dec-807f-24e4703bed93" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/39a0a576-d70c-4fbc-8e16-398a1cec3606", + "name": "39a0a576-d70c-4fbc-8e16-398a1cec3606", + "status": "Running", + "startTime": "2023-02-17T09:05:03.3658551Z", + "endTime": "2023-02-17T09:06:31.906902Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "afbd21cf-f3bc-48ae-b122-d672f5627479", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/39a0a576-d70c-4fbc-8e16-398a1cec3606?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-0dca24a0cb69cc43dc9a8f4a577d8232-4894f2fd81c1afe6-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "841d3c5b891b4e4086ffccda910819c2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "509", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:09:58 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e416523a-da0d-4e5e-a108-5998478afad5", + "x-ms-ratelimit-remaining-subscription-reads": "11754", + "x-ms-request-id": "2447cd3e-4fbb-4ab6-a3a9-8b275889cf69", + "x-ms-routing-request-id": "JAPANEAST:20230217T090958Z:e416523a-da0d-4e5e-a108-5998478afad5" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/39a0a576-d70c-4fbc-8e16-398a1cec3606", + "name": "39a0a576-d70c-4fbc-8e16-398a1cec3606", + "status": "Running", + "startTime": "2023-02-17T09:05:03.3658551Z", + "endTime": "2023-02-17T09:06:31.906902Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "afbd21cf-f3bc-48ae-b122-d672f5627479", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/39a0a576-d70c-4fbc-8e16-398a1cec3606?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-0dca24a0cb69cc43dc9a8f4a577d8232-f92fd84ea3efcb63-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "2dd41a6d0a62c251221562156198d5b9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "509", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:10:30 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7ba471d4-02d4-478e-96c9-58659200ddee", + "x-ms-ratelimit-remaining-subscription-reads": "11753", + "x-ms-request-id": "d2d2e966-afe7-4d99-bce5-cd1fe820b438", + "x-ms-routing-request-id": "JAPANEAST:20230217T091030Z:7ba471d4-02d4-478e-96c9-58659200ddee" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/39a0a576-d70c-4fbc-8e16-398a1cec3606", + "name": "39a0a576-d70c-4fbc-8e16-398a1cec3606", + "status": "Running", + "startTime": "2023-02-17T09:05:03.3658551Z", + "endTime": "2023-02-17T09:06:31.906902Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "afbd21cf-f3bc-48ae-b122-d672f5627479", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/39a0a576-d70c-4fbc-8e16-398a1cec3606?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-0dca24a0cb69cc43dc9a8f4a577d8232-f9e2ad731dd02e64-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "4bf456372deda5ca7ed66fc14f939aca", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "509", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:11:02 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "56631e14-2a0d-4b16-a9e0-b28afa7afe2e", + "x-ms-ratelimit-remaining-subscription-reads": "11752", + "x-ms-request-id": "a7a984a3-78d1-44b2-95e7-e5010fbb1f33", + "x-ms-routing-request-id": "JAPANEAST:20230217T091103Z:56631e14-2a0d-4b16-a9e0-b28afa7afe2e" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/39a0a576-d70c-4fbc-8e16-398a1cec3606", + "name": "39a0a576-d70c-4fbc-8e16-398a1cec3606", + "status": "Running", + "startTime": "2023-02-17T09:05:03.3658551Z", + "endTime": "2023-02-17T09:06:31.906902Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "afbd21cf-f3bc-48ae-b122-d672f5627479", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/39a0a576-d70c-4fbc-8e16-398a1cec3606?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-0dca24a0cb69cc43dc9a8f4a577d8232-0c88db0cb8fd7921-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "fd60621a9a31516beb5a6105272aedee", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "509", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:11:35 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "82334ee8-20ca-46ce-8bfd-92ed3d21e86e", + "x-ms-ratelimit-remaining-subscription-reads": "11751", + "x-ms-request-id": "9ce4826b-a999-4f1b-8cd0-4c607460193e", + "x-ms-routing-request-id": "JAPANEAST:20230217T091135Z:82334ee8-20ca-46ce-8bfd-92ed3d21e86e" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/39a0a576-d70c-4fbc-8e16-398a1cec3606", + "name": "39a0a576-d70c-4fbc-8e16-398a1cec3606", + "status": "Running", + "startTime": "2023-02-17T09:05:03.3658551Z", + "endTime": "2023-02-17T09:06:31.906902Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "afbd21cf-f3bc-48ae-b122-d672f5627479", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/39a0a576-d70c-4fbc-8e16-398a1cec3606?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-0dca24a0cb69cc43dc9a8f4a577d8232-b9686591a06a4456-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "3ba2122ace1440d44f2fae8c9b8f738f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "509", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:12:07 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b9faad91-ba9c-44ad-a885-53c220cefaf4", + "x-ms-ratelimit-remaining-subscription-reads": "11750", + "x-ms-request-id": "54bef6e3-b14d-467b-a177-e3473182488e", + "x-ms-routing-request-id": "JAPANEAST:20230217T091208Z:b9faad91-ba9c-44ad-a885-53c220cefaf4" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/39a0a576-d70c-4fbc-8e16-398a1cec3606", + "name": "39a0a576-d70c-4fbc-8e16-398a1cec3606", + "status": "Running", + "startTime": "2023-02-17T09:05:03.3658551Z", + "endTime": "2023-02-17T09:06:31.906902Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "afbd21cf-f3bc-48ae-b122-d672f5627479", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/39a0a576-d70c-4fbc-8e16-398a1cec3606?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-0dca24a0cb69cc43dc9a8f4a577d8232-56a469e9b318a757-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "fefa987ad8379d88eaa25f92cbc47e53", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "509", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:12:39 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "69a84759-f004-443e-8973-56ff92ed077b", + "x-ms-ratelimit-remaining-subscription-reads": "11749", + "x-ms-request-id": "5691cd07-0319-4a2a-83ce-571041b9114d", + "x-ms-routing-request-id": "JAPANEAST:20230217T091240Z:69a84759-f004-443e-8973-56ff92ed077b" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/39a0a576-d70c-4fbc-8e16-398a1cec3606", + "name": "39a0a576-d70c-4fbc-8e16-398a1cec3606", + "status": "Running", + "startTime": "2023-02-17T09:05:03.3658551Z", + "endTime": "2023-02-17T09:06:31.906902Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "afbd21cf-f3bc-48ae-b122-d672f5627479", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/39a0a576-d70c-4fbc-8e16-398a1cec3606?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-0dca24a0cb69cc43dc9a8f4a577d8232-172ec1cb649d4ce1-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "3c9780e95ff04bb58d1fae01ebdfb55b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "509", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:13:12 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d5faa5d6-9d05-4b5f-b5fc-ae9b6d9f23b0", + "x-ms-ratelimit-remaining-subscription-reads": "11748", + "x-ms-request-id": "dae26baa-27ce-4325-8a11-994f3f345a95", + "x-ms-routing-request-id": "JAPANEAST:20230217T091312Z:d5faa5d6-9d05-4b5f-b5fc-ae9b6d9f23b0" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/39a0a576-d70c-4fbc-8e16-398a1cec3606", + "name": "39a0a576-d70c-4fbc-8e16-398a1cec3606", + "status": "Running", + "startTime": "2023-02-17T09:05:03.3658551Z", + "endTime": "2023-02-17T09:06:31.906902Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "afbd21cf-f3bc-48ae-b122-d672f5627479", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/39a0a576-d70c-4fbc-8e16-398a1cec3606?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-0dca24a0cb69cc43dc9a8f4a577d8232-6e019973e9dad980-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "8e8bd2e6ee2f51b7890550716f42758a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "509", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:13:43 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "64dacbec-55d1-41dc-b25e-f082cbd06dd3", + "x-ms-ratelimit-remaining-subscription-reads": "11747", + "x-ms-request-id": "4bed0293-0689-4fc5-a88f-c636680911c5", + "x-ms-routing-request-id": "JAPANEAST:20230217T091344Z:64dacbec-55d1-41dc-b25e-f082cbd06dd3" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/39a0a576-d70c-4fbc-8e16-398a1cec3606", + "name": "39a0a576-d70c-4fbc-8e16-398a1cec3606", + "status": "Running", + "startTime": "2023-02-17T09:05:03.3658551Z", + "endTime": "2023-02-17T09:06:31.906902Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "afbd21cf-f3bc-48ae-b122-d672f5627479", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/39a0a576-d70c-4fbc-8e16-398a1cec3606?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-0dca24a0cb69cc43dc9a8f4a577d8232-d0ea323d70588a28-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "1ba25bb136f81b9fe2ae70172a86b10b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "509", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:14:16 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "da015fee-534c-439b-a0b0-58e7339d1e5b", + "x-ms-ratelimit-remaining-subscription-reads": "11746", + "x-ms-request-id": "96098abe-a92b-436f-aabd-56c8f4da6d99", + "x-ms-routing-request-id": "JAPANEAST:20230217T091417Z:da015fee-534c-439b-a0b0-58e7339d1e5b" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/39a0a576-d70c-4fbc-8e16-398a1cec3606", + "name": "39a0a576-d70c-4fbc-8e16-398a1cec3606", + "status": "Running", + "startTime": "2023-02-17T09:05:03.3658551Z", + "endTime": "2023-02-17T09:06:31.906902Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "afbd21cf-f3bc-48ae-b122-d672f5627479", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/39a0a576-d70c-4fbc-8e16-398a1cec3606?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-0dca24a0cb69cc43dc9a8f4a577d8232-e72d298ddbedede4-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "f9ab03edef39fb23c945b3ea0e43dc4b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "509", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:14:48 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7e078492-59e5-4232-817b-cc08bb4569a9", + "x-ms-ratelimit-remaining-subscription-reads": "11745", + "x-ms-request-id": "2714c466-e9c8-4ee0-b1b3-6b122cd7a23c", + "x-ms-routing-request-id": "JAPANEAST:20230217T091449Z:7e078492-59e5-4232-817b-cc08bb4569a9" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/39a0a576-d70c-4fbc-8e16-398a1cec3606", + "name": "39a0a576-d70c-4fbc-8e16-398a1cec3606", + "status": "Running", + "startTime": "2023-02-17T09:05:03.3658551Z", + "endTime": "2023-02-17T09:06:31.906902Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "afbd21cf-f3bc-48ae-b122-d672f5627479", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/39a0a576-d70c-4fbc-8e16-398a1cec3606?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-0dca24a0cb69cc43dc9a8f4a577d8232-5a48fbe95b235dec-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "904f23aa9a3daf633270ab807e9f2702", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "513", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:15:21 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5a88142c-71ee-4eb5-9402-2ec329b29d4c", + "x-ms-ratelimit-remaining-subscription-reads": "11744", + "x-ms-request-id": "cb02469c-d786-4e95-a77e-7c5bcdd173bb", + "x-ms-routing-request-id": "JAPANEAST:20230217T091521Z:5a88142c-71ee-4eb5-9402-2ec329b29d4c" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/39a0a576-d70c-4fbc-8e16-398a1cec3606", + "name": "39a0a576-d70c-4fbc-8e16-398a1cec3606", + "status": "Succeeded", + "startTime": "2023-02-17T09:05:03.3658551Z", + "endTime": "2023-02-17T09:15:16.1288093Z", + "percentComplete": 1.0, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "afbd21cf-f3bc-48ae-b122-d672f5627479", + "provisioningState": "Succeeded", + "OperationState": "Completed" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp3028/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace6107/kustoPools/kustopool1063?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-0dca24a0cb69cc43dc9a8f4a577d8232-c280249f53433282-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "6b8445547c96c25037a751b283b50c9f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "836", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:15:21 GMT", + "ETag": "\u00222023-02-17T09:15:14.8787913Z\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "056d7d38-ced0-4407-9bd1-6fc36d81df61", + "x-ms-ratelimit-remaining-subscription-reads": "11743", + "x-ms-request-id": "8c2651f8-8304-425a-a065-89a6ed02f0a8", + "x-ms-routing-request-id": "JAPANEAST:20230217T091522Z:056d7d38-ced0-4407-9bd1-6fc36d81df61" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp3028/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace6107/kustoPools/kustopool1063", + "name": "synapsesdkworkspace6107/kustopool1063", + "type": "Microsoft.Synapse/workspaces/kustoPools", + "etag": "\u00222023-02-17T09:15:14.8787913Z\u0022", + "location": "East US 2", + "sku": { + "name": "Storage optimized", + "size": "Medium", + "capacity": 2 + }, + "tags": {}, + "properties": { + "state": "Running", + "stateReason": null, + "uri": "https://kustopool1063.synapsesdkworkspace6107.kusto.azuresynapse.net", + "dataIngestionUri": "https://ingest-kustopool1063.synapsesdkworkspace6107.kusto.azuresynapse.net", + "optimizedAutoscale": null, + "enableStreamingIngest": false, + "languageExtensions": { + "value": [] + }, + "enablePurge": null, + "workspaceUID": "c9e6e77f-bf17-4a8c-936b-864a134ae9c9", + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp3028/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace6107/kustoPools/kustopool1063?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-96630449f5895eb41290ecc81bb96481-8329391b027d8606-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "066d24d2213752cda0fbc6c943a27c2a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "836", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:15:22 GMT", + "ETag": "\u00222023-02-17T09:15:14.8787913Z\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8a091b82-3da9-4acc-98b7-0663890165ee", + "x-ms-ratelimit-remaining-subscription-reads": "11742", + "x-ms-request-id": "aabb5aab-ca0a-4e9f-9af6-5993ddfaf1fc", + "x-ms-routing-request-id": "JAPANEAST:20230217T091523Z:8a091b82-3da9-4acc-98b7-0663890165ee" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp3028/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace6107/kustoPools/kustopool1063", + "name": "synapsesdkworkspace6107/kustopool1063", + "type": "Microsoft.Synapse/workspaces/kustoPools", + "etag": "\u00222023-02-17T09:15:14.8787913Z\u0022", + "location": "East US 2", + "sku": { + "name": "Storage optimized", + "size": "Medium", + "capacity": 2 + }, + "tags": {}, + "properties": { + "state": "Running", + "stateReason": null, + "uri": "https://kustopool1063.synapsesdkworkspace6107.kusto.azuresynapse.net", + "dataIngestionUri": "https://ingest-kustopool1063.synapsesdkworkspace6107.kusto.azuresynapse.net", + "optimizedAutoscale": null, + "enableStreamingIngest": false, + "languageExtensions": { + "value": [] + }, + "enablePurge": null, + "workspaceUID": "c9e6e77f-bf17-4a8c-936b-864a134ae9c9", + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp3028/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace6107/kustoPools/kustopool1063?api-version=2021-06-01-preview", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "151", + "Content-Type": "application/json", + "traceparent": "00-5f65cdc96be521d090f7e36af0be7920-789d16ff737345c6-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "c996b01e71bf2db4d38d589548b12c7c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "sku": { + "name": "Storage optimized", + "size": "Large" + }, + "tags": {}, + "location": "eastus2", + "properties": { + "workspaceUID": "c9e6e77f-bf17-4a8c-936b-864a134ae9c9" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641?api-version=2021-06-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "501", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:15:24 GMT", + "ETag": "\u00222023-02-17T09:15:14.8787913Z\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c3b53c4f-3be9-4fce-a131-b309c2c38817", + "x-ms-ratelimit-remaining-subscription-writes": "1167", + "x-ms-request-id": "333510ff-19a3-4f01-bf9c-32d60df18fc0", + "x-ms-routing-request-id": "JAPANEAST:20230217T091525Z:c3b53c4f-3be9-4fce-a131-b309c2c38817" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp3028/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace6107/kustoPools/kustopool1063", + "name": "synapsesdkworkspace6107/kustopool1063", + "type": "Microsoft.Synapse/workspaces/kustoPools", + "etag": "\u00222023-02-17T09:15:14.8787913Z\u0022", + "location": "East US 2", + "sku": { + "name": "Storage optimized", + "size": "Large" + }, + "tags": {}, + "properties": { + "workspaceUID": "c9e6e77f-bf17-4a8c-936b-864a134ae9c9", + "provisioningState": "Accepted" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5f65cdc96be521d090f7e36af0be7920-c97ca6076adacc0b-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "d393272a421f60e0703f33a9c83709ef", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:15:25 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "707a8b68-ccd7-48f1-b3e4-a08255cb021a", + "x-ms-ratelimit-remaining-subscription-reads": "11741", + "x-ms-request-id": "1d2919d5-650c-42b7-a55f-7dce5119be55", + "x-ms-routing-request-id": "JAPANEAST:20230217T091525Z:707a8b68-ccd7-48f1-b3e4-a08255cb021a" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641", + "name": "163ae5b6-b560-43aa-970c-e86dbcfab641", + "status": "Running", + "startTime": "2023-02-17T09:15:23.8298671Z", + "endTime": "2023-02-17T09:15:23.8298671Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "24376b05-2387-4d00-a1bb-248e9db1e057", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5f65cdc96be521d090f7e36af0be7920-53e43f748c991812-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "376549cf23f4fdf8e463518ca61a784b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:15:26 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3d338271-13b2-4df7-a8b7-d5710710d52d", + "x-ms-ratelimit-remaining-subscription-reads": "11740", + "x-ms-request-id": "9526f4ec-1137-4798-9c7c-878599f13d2c", + "x-ms-routing-request-id": "JAPANEAST:20230217T091527Z:3d338271-13b2-4df7-a8b7-d5710710d52d" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641", + "name": "163ae5b6-b560-43aa-970c-e86dbcfab641", + "status": "Running", + "startTime": "2023-02-17T09:15:23.8298671Z", + "endTime": "2023-02-17T09:15:23.8298671Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "24376b05-2387-4d00-a1bb-248e9db1e057", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5f65cdc96be521d090f7e36af0be7920-034e129a4f90859d-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "216bc40f581d205d2c4ee9f2ed226a3f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:15:27 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "74637a16-6cef-4b5f-a6c2-93766f49671e", + "x-ms-ratelimit-remaining-subscription-reads": "11739", + "x-ms-request-id": "e31122c9-843d-4587-a0e8-a037a9fca6d6", + "x-ms-routing-request-id": "JAPANEAST:20230217T091528Z:74637a16-6cef-4b5f-a6c2-93766f49671e" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641", + "name": "163ae5b6-b560-43aa-970c-e86dbcfab641", + "status": "Running", + "startTime": "2023-02-17T09:15:23.8298671Z", + "endTime": "2023-02-17T09:15:23.8298671Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "24376b05-2387-4d00-a1bb-248e9db1e057", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5f65cdc96be521d090f7e36af0be7920-1ee0935e23caa887-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "6bcadb28462107a02f96efbcf153b956", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:15:29 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a0f4bf53-eeec-4f68-bc3b-4e989cc78f6c", + "x-ms-ratelimit-remaining-subscription-reads": "11738", + "x-ms-request-id": "07f09b2c-418b-45c5-8c98-86628534a50b", + "x-ms-routing-request-id": "JAPANEAST:20230217T091529Z:a0f4bf53-eeec-4f68-bc3b-4e989cc78f6c" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641", + "name": "163ae5b6-b560-43aa-970c-e86dbcfab641", + "status": "Running", + "startTime": "2023-02-17T09:15:23.8298671Z", + "endTime": "2023-02-17T09:15:23.8298671Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "24376b05-2387-4d00-a1bb-248e9db1e057", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5f65cdc96be521d090f7e36af0be7920-e09f834cfd53f52a-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "049ae7c7e8cc77d1ec440ba53a0610c2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:15:31 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2d65a218-4d4e-4542-b10b-ae25f853ad7e", + "x-ms-ratelimit-remaining-subscription-reads": "11737", + "x-ms-request-id": "c9c5c91a-4d35-4d9e-97b1-075299435b3d", + "x-ms-routing-request-id": "JAPANEAST:20230217T091531Z:2d65a218-4d4e-4542-b10b-ae25f853ad7e" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641", + "name": "163ae5b6-b560-43aa-970c-e86dbcfab641", + "status": "Running", + "startTime": "2023-02-17T09:15:23.8298671Z", + "endTime": "2023-02-17T09:15:23.8298671Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "24376b05-2387-4d00-a1bb-248e9db1e057", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5f65cdc96be521d090f7e36af0be7920-86834ff771e4416b-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "ca6411f80c4fc82a2463f28669a12fd8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:15:35 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f873e228-682b-4270-bc46-df1173950481", + "x-ms-ratelimit-remaining-subscription-reads": "11736", + "x-ms-request-id": "bebf45ea-c7ac-4813-837d-4cb02cff2bc4", + "x-ms-routing-request-id": "JAPANEAST:20230217T091536Z:f873e228-682b-4270-bc46-df1173950481" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641", + "name": "163ae5b6-b560-43aa-970c-e86dbcfab641", + "status": "Running", + "startTime": "2023-02-17T09:15:23.8298671Z", + "endTime": "2023-02-17T09:15:23.8298671Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "24376b05-2387-4d00-a1bb-248e9db1e057", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5f65cdc96be521d090f7e36af0be7920-3cee9c1b262fabe7-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "052a9394668840730a537fdd3bfacd29", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:15:43 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3912493c-14ab-49b9-a6ed-fd8d0aea03bd", + "x-ms-ratelimit-remaining-subscription-reads": "11735", + "x-ms-request-id": "57e66899-c7ae-49c8-801e-26ba3e243b69", + "x-ms-routing-request-id": "JAPANEAST:20230217T091544Z:3912493c-14ab-49b9-a6ed-fd8d0aea03bd" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641", + "name": "163ae5b6-b560-43aa-970c-e86dbcfab641", + "status": "Running", + "startTime": "2023-02-17T09:15:23.8298671Z", + "endTime": "2023-02-17T09:15:39.4730415Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "24376b05-2387-4d00-a1bb-248e9db1e057", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5f65cdc96be521d090f7e36af0be7920-8daff641dedc57a5-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "dfc32c86eeeebb06bdd1df68f64a0d4b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:15:59 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e764a517-1073-4ddb-ba79-c418398cb92f", + "x-ms-ratelimit-remaining-subscription-reads": "11734", + "x-ms-request-id": "81ad90c8-2f14-4494-a656-6840bfbfe819", + "x-ms-routing-request-id": "JAPANEAST:20230217T091600Z:e764a517-1073-4ddb-ba79-c418398cb92f" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641", + "name": "163ae5b6-b560-43aa-970c-e86dbcfab641", + "status": "Running", + "startTime": "2023-02-17T09:15:23.8298671Z", + "endTime": "2023-02-17T09:15:39.4730415Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "24376b05-2387-4d00-a1bb-248e9db1e057", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5f65cdc96be521d090f7e36af0be7920-4871eb78fced8f8a-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "a61032140adb91399e23c0fb8c4d8d29", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:16:32 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a2288370-5298-4ae4-b628-82010b7c5b4f", + "x-ms-ratelimit-remaining-subscription-reads": "11733", + "x-ms-request-id": "1cc11cfa-6c4d-442d-9a4b-9ddd48c16359", + "x-ms-routing-request-id": "JAPANEAST:20230217T091632Z:a2288370-5298-4ae4-b628-82010b7c5b4f" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641", + "name": "163ae5b6-b560-43aa-970c-e86dbcfab641", + "status": "Running", + "startTime": "2023-02-17T09:15:23.8298671Z", + "endTime": "2023-02-17T09:15:39.4730415Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "24376b05-2387-4d00-a1bb-248e9db1e057", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5f65cdc96be521d090f7e36af0be7920-a9334d3129ea9919-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "3c00c89650dda6e98c6e48b6860a4abf", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:17:04 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "967bbac0-34fc-45cc-930b-a7590e6c8d4c", + "x-ms-ratelimit-remaining-subscription-reads": "11732", + "x-ms-request-id": "fd8c0672-3e22-4579-a686-24d0f4ae8d80", + "x-ms-routing-request-id": "JAPANEAST:20230217T091705Z:967bbac0-34fc-45cc-930b-a7590e6c8d4c" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641", + "name": "163ae5b6-b560-43aa-970c-e86dbcfab641", + "status": "Running", + "startTime": "2023-02-17T09:15:23.8298671Z", + "endTime": "2023-02-17T09:15:39.4730415Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "24376b05-2387-4d00-a1bb-248e9db1e057", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5f65cdc96be521d090f7e36af0be7920-52d2da5ade2ff994-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "08c8344526e97b4df23140ca2e0b2e70", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:17:36 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "26768614-8bec-4f99-b2a1-c6f42be29287", + "x-ms-ratelimit-remaining-subscription-reads": "11731", + "x-ms-request-id": "b4ef13cd-db57-431e-9279-60bddd514dba", + "x-ms-routing-request-id": "JAPANEAST:20230217T091737Z:26768614-8bec-4f99-b2a1-c6f42be29287" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641", + "name": "163ae5b6-b560-43aa-970c-e86dbcfab641", + "status": "Running", + "startTime": "2023-02-17T09:15:23.8298671Z", + "endTime": "2023-02-17T09:15:39.4730415Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "24376b05-2387-4d00-a1bb-248e9db1e057", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5f65cdc96be521d090f7e36af0be7920-46a442071c6f0dd7-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "2dd2b644d149c46d486a1a6cc2830b94", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:18:09 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6d1cca98-d171-47f2-a782-6d91efc98c60", + "x-ms-ratelimit-remaining-subscription-reads": "11730", + "x-ms-request-id": "10f36c5a-c0d6-4fa0-a2dc-b0cc56d23689", + "x-ms-routing-request-id": "JAPANEAST:20230217T091810Z:6d1cca98-d171-47f2-a782-6d91efc98c60" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641", + "name": "163ae5b6-b560-43aa-970c-e86dbcfab641", + "status": "Running", + "startTime": "2023-02-17T09:15:23.8298671Z", + "endTime": "2023-02-17T09:15:39.4730415Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "24376b05-2387-4d00-a1bb-248e9db1e057", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5f65cdc96be521d090f7e36af0be7920-47e65e25baa7b354-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "58b501d984846f3f7b8549ab101e7780", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:18:41 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ecfc3c3e-fec7-4306-a138-cff1ffce19e1", + "x-ms-ratelimit-remaining-subscription-reads": "11729", + "x-ms-request-id": "f3785add-9d47-4869-94c9-ffd3746235d8", + "x-ms-routing-request-id": "JAPANEAST:20230217T091842Z:ecfc3c3e-fec7-4306-a138-cff1ffce19e1" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641", + "name": "163ae5b6-b560-43aa-970c-e86dbcfab641", + "status": "Running", + "startTime": "2023-02-17T09:15:23.8298671Z", + "endTime": "2023-02-17T09:15:39.4730415Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "24376b05-2387-4d00-a1bb-248e9db1e057", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5f65cdc96be521d090f7e36af0be7920-792328d77d06c18a-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "cf72d7401d377475c604c07f0ce0b96f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:19:14 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e256bb55-6cf6-4b74-a004-27d343d474f8", + "x-ms-ratelimit-remaining-subscription-reads": "11728", + "x-ms-request-id": "c2b353cd-3317-48b0-9bc5-d0a6e057e756", + "x-ms-routing-request-id": "JAPANEAST:20230217T091914Z:e256bb55-6cf6-4b74-a004-27d343d474f8" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641", + "name": "163ae5b6-b560-43aa-970c-e86dbcfab641", + "status": "Running", + "startTime": "2023-02-17T09:15:23.8298671Z", + "endTime": "2023-02-17T09:15:39.4730415Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "24376b05-2387-4d00-a1bb-248e9db1e057", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5f65cdc96be521d090f7e36af0be7920-e5438e9421dd1efd-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "2cf1ab26d555bfeb7762b1c487c1b329", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:19:46 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "bfa86852-9136-4397-8546-fccc2ec3075a", + "x-ms-ratelimit-remaining-subscription-reads": "11727", + "x-ms-request-id": "726d426d-f942-42a0-b3da-4d65439ee6c1", + "x-ms-routing-request-id": "JAPANEAST:20230217T091946Z:bfa86852-9136-4397-8546-fccc2ec3075a" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641", + "name": "163ae5b6-b560-43aa-970c-e86dbcfab641", + "status": "Running", + "startTime": "2023-02-17T09:15:23.8298671Z", + "endTime": "2023-02-17T09:15:39.4730415Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "24376b05-2387-4d00-a1bb-248e9db1e057", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5f65cdc96be521d090f7e36af0be7920-2388fcefd99f874b-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "ea2c99f23b10bc5d8b419180c4c0639a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:20:18 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3aa5306d-7a83-46ef-a90c-aea931933004", + "x-ms-ratelimit-remaining-subscription-reads": "11726", + "x-ms-request-id": "18db66ca-d745-40fe-8c3d-127cac40a004", + "x-ms-routing-request-id": "JAPANEAST:20230217T092019Z:3aa5306d-7a83-46ef-a90c-aea931933004" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641", + "name": "163ae5b6-b560-43aa-970c-e86dbcfab641", + "status": "Running", + "startTime": "2023-02-17T09:15:23.8298671Z", + "endTime": "2023-02-17T09:15:39.4730415Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "24376b05-2387-4d00-a1bb-248e9db1e057", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5f65cdc96be521d090f7e36af0be7920-96f2a785cb866332-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "6585d9cc4b2d6a2aebb258d46bb1ec04", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:20:51 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f2ac00df-3055-4bf4-8092-82df8147baa6", + "x-ms-ratelimit-remaining-subscription-reads": "11725", + "x-ms-request-id": "3e09b90d-7fc0-4385-a2c5-429047841485", + "x-ms-routing-request-id": "JAPANEAST:20230217T092051Z:f2ac00df-3055-4bf4-8092-82df8147baa6" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641", + "name": "163ae5b6-b560-43aa-970c-e86dbcfab641", + "status": "Running", + "startTime": "2023-02-17T09:15:23.8298671Z", + "endTime": "2023-02-17T09:15:39.4730415Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "24376b05-2387-4d00-a1bb-248e9db1e057", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5f65cdc96be521d090f7e36af0be7920-236d69940683f445-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "728c9650ceb4ea5f4e35a114436bfbb6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:21:23 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e9fc3c1e-fe0f-422a-abff-e36706030da1", + "x-ms-ratelimit-remaining-subscription-reads": "11724", + "x-ms-request-id": "b5024ee1-9f09-4dca-a0fa-9e22bc3b2773", + "x-ms-routing-request-id": "JAPANEAST:20230217T092123Z:e9fc3c1e-fe0f-422a-abff-e36706030da1" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641", + "name": "163ae5b6-b560-43aa-970c-e86dbcfab641", + "status": "Running", + "startTime": "2023-02-17T09:15:23.8298671Z", + "endTime": "2023-02-17T09:15:39.4730415Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "24376b05-2387-4d00-a1bb-248e9db1e057", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5f65cdc96be521d090f7e36af0be7920-9ce21708bb58be5f-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "adf717fe4e3ca7fc6ec1ff5de28850da", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:21:55 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "36a8ece5-128e-45e9-b1dd-0de90b93d018", + "x-ms-ratelimit-remaining-subscription-reads": "11723", + "x-ms-request-id": "09696b48-6a4a-441e-af68-8669372c292b", + "x-ms-routing-request-id": "JAPANEAST:20230217T092155Z:36a8ece5-128e-45e9-b1dd-0de90b93d018" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641", + "name": "163ae5b6-b560-43aa-970c-e86dbcfab641", + "status": "Running", + "startTime": "2023-02-17T09:15:23.8298671Z", + "endTime": "2023-02-17T09:15:39.4730415Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "24376b05-2387-4d00-a1bb-248e9db1e057", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5f65cdc96be521d090f7e36af0be7920-da15e7bd3bd0f1ca-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "2e2f8d54f134fee67a9a17f8a9162680", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:22:27 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1252adda-48bb-4bc6-ab1a-8061df31be2a", + "x-ms-ratelimit-remaining-subscription-reads": "11722", + "x-ms-request-id": "5402d4a9-9de4-4798-b197-5e43d5392222", + "x-ms-routing-request-id": "JAPANEAST:20230217T092228Z:1252adda-48bb-4bc6-ab1a-8061df31be2a" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641", + "name": "163ae5b6-b560-43aa-970c-e86dbcfab641", + "status": "Running", + "startTime": "2023-02-17T09:15:23.8298671Z", + "endTime": "2023-02-17T09:15:39.4730415Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "24376b05-2387-4d00-a1bb-248e9db1e057", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5f65cdc96be521d090f7e36af0be7920-c9e31cae7c46d42f-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "54d6a2b73fb902c899e403f2ce0108c5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:23:00 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "55a55268-13c7-4c3b-8cdf-9dcaab350acf", + "x-ms-ratelimit-remaining-subscription-reads": "11721", + "x-ms-request-id": "7e3907d9-a81a-459e-ba27-d4fcc135fa34", + "x-ms-routing-request-id": "JAPANEAST:20230217T092300Z:55a55268-13c7-4c3b-8cdf-9dcaab350acf" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641", + "name": "163ae5b6-b560-43aa-970c-e86dbcfab641", + "status": "Running", + "startTime": "2023-02-17T09:15:23.8298671Z", + "endTime": "2023-02-17T09:15:39.4730415Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "24376b05-2387-4d00-a1bb-248e9db1e057", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5f65cdc96be521d090f7e36af0be7920-d09e3e8bf23dd1a7-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "b6c0c6e4cd3b0d8230f932a13704fd58", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:23:32 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2ee8303f-f2f2-40d0-8abe-4f233fe80ae7", + "x-ms-ratelimit-remaining-subscription-reads": "11720", + "x-ms-request-id": "62782d51-2447-4f94-9c6e-ce030da9f187", + "x-ms-routing-request-id": "JAPANEAST:20230217T092332Z:2ee8303f-f2f2-40d0-8abe-4f233fe80ae7" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641", + "name": "163ae5b6-b560-43aa-970c-e86dbcfab641", + "status": "Running", + "startTime": "2023-02-17T09:15:23.8298671Z", + "endTime": "2023-02-17T09:15:39.4730415Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "24376b05-2387-4d00-a1bb-248e9db1e057", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5f65cdc96be521d090f7e36af0be7920-24b3dd0d9d8f2ad0-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "40a67e9bfcb21521c42d944fedf42f79", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:24:04 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2e796543-85bb-4b31-8979-d6e0689dc4bd", + "x-ms-ratelimit-remaining-subscription-reads": "11719", + "x-ms-request-id": "4b3a9be2-60df-4c3e-888e-6e4ec6dbbe69", + "x-ms-routing-request-id": "JAPANEAST:20230217T092405Z:2e796543-85bb-4b31-8979-d6e0689dc4bd" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641", + "name": "163ae5b6-b560-43aa-970c-e86dbcfab641", + "status": "Running", + "startTime": "2023-02-17T09:15:23.8298671Z", + "endTime": "2023-02-17T09:15:39.4730415Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "24376b05-2387-4d00-a1bb-248e9db1e057", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5f65cdc96be521d090f7e36af0be7920-39aaffca19a4efd6-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "e31451926f55ea4520c923bf0c26ca95", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:24:37 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a0d38355-1dac-4e09-b6dc-710b7e4c6fd0", + "x-ms-ratelimit-remaining-subscription-reads": "11718", + "x-ms-request-id": "36495327-491e-4852-b3d0-193a16623c2f", + "x-ms-routing-request-id": "JAPANEAST:20230217T092437Z:a0d38355-1dac-4e09-b6dc-710b7e4c6fd0" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641", + "name": "163ae5b6-b560-43aa-970c-e86dbcfab641", + "status": "Running", + "startTime": "2023-02-17T09:15:23.8298671Z", + "endTime": "2023-02-17T09:15:39.4730415Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "24376b05-2387-4d00-a1bb-248e9db1e057", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5f65cdc96be521d090f7e36af0be7920-6732e94ef088a20d-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "4f57aae6c85be713a5abf20d38321f3c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:25:09 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "935fdeda-6e35-474f-b84b-b026c1a84e59", + "x-ms-ratelimit-remaining-subscription-reads": "11717", + "x-ms-request-id": "e3f236bb-e23d-4a3f-960a-7e6aba687a98", + "x-ms-routing-request-id": "JAPANEAST:20230217T092509Z:935fdeda-6e35-474f-b84b-b026c1a84e59" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641", + "name": "163ae5b6-b560-43aa-970c-e86dbcfab641", + "status": "Running", + "startTime": "2023-02-17T09:15:23.8298671Z", + "endTime": "2023-02-17T09:15:39.4730415Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "24376b05-2387-4d00-a1bb-248e9db1e057", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5f65cdc96be521d090f7e36af0be7920-69659816be233d38-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "e60fb9ca1aef2b0339bb20e8d861089d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:25:41 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "54d8cd40-8607-4fae-b9e2-857cf7c4b1fd", + "x-ms-ratelimit-remaining-subscription-reads": "11716", + "x-ms-request-id": "abe4a067-c6bc-42d8-bf70-e06cb27b30ff", + "x-ms-routing-request-id": "JAPANEAST:20230217T092542Z:54d8cd40-8607-4fae-b9e2-857cf7c4b1fd" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641", + "name": "163ae5b6-b560-43aa-970c-e86dbcfab641", + "status": "Running", + "startTime": "2023-02-17T09:15:23.8298671Z", + "endTime": "2023-02-17T09:15:39.4730415Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "24376b05-2387-4d00-a1bb-248e9db1e057", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5f65cdc96be521d090f7e36af0be7920-8a100059281c3f6e-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "4269fe63df9cc91e3d2c3da97d37b1ed", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:26:14 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "02e87c7f-d54f-493e-885d-b64cb0f642bd", + "x-ms-ratelimit-remaining-subscription-reads": "11715", + "x-ms-request-id": "69660be6-44fd-46e6-ba93-ca02a519c6d2", + "x-ms-routing-request-id": "JAPANEAST:20230217T092614Z:02e87c7f-d54f-493e-885d-b64cb0f642bd" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641", + "name": "163ae5b6-b560-43aa-970c-e86dbcfab641", + "status": "Running", + "startTime": "2023-02-17T09:15:23.8298671Z", + "endTime": "2023-02-17T09:15:39.4730415Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "24376b05-2387-4d00-a1bb-248e9db1e057", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5f65cdc96be521d090f7e36af0be7920-1c487f63b3b550d6-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "52f5e7a9e417cba5a72b169fa82a0e44", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:26:46 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "71a5051e-7c59-4c21-b16c-db713c6c4d80", + "x-ms-ratelimit-remaining-subscription-reads": "11714", + "x-ms-request-id": "7f6ddc35-76b3-4498-80f6-317e184bb91b", + "x-ms-routing-request-id": "JAPANEAST:20230217T092646Z:71a5051e-7c59-4c21-b16c-db713c6c4d80" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641", + "name": "163ae5b6-b560-43aa-970c-e86dbcfab641", + "status": "Running", + "startTime": "2023-02-17T09:15:23.8298671Z", + "endTime": "2023-02-17T09:15:39.4730415Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "24376b05-2387-4d00-a1bb-248e9db1e057", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5f65cdc96be521d090f7e36af0be7920-2c83427308896ff6-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "3aaa54a2dcc9ea9f9b45a8c3dd59ad02", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:27:18 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d21d8ced-14c0-4d91-a659-ac07d0309c1e", + "x-ms-ratelimit-remaining-subscription-reads": "11713", + "x-ms-request-id": "48df34b2-8cdc-4914-9ce5-32325213327c", + "x-ms-routing-request-id": "JAPANEAST:20230217T092718Z:d21d8ced-14c0-4d91-a659-ac07d0309c1e" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641", + "name": "163ae5b6-b560-43aa-970c-e86dbcfab641", + "status": "Running", + "startTime": "2023-02-17T09:15:23.8298671Z", + "endTime": "2023-02-17T09:15:39.4730415Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "24376b05-2387-4d00-a1bb-248e9db1e057", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5f65cdc96be521d090f7e36af0be7920-135f2521782fa28c-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "f13f320ab56c7e86589d9b70c97e2112", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:27:50 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "fc6d152f-aa7a-454c-becb-041d8671eba2", + "x-ms-ratelimit-remaining-subscription-reads": "11712", + "x-ms-request-id": "0afded82-1cc8-49d2-9916-1ddd9de24f36", + "x-ms-routing-request-id": "JAPANEAST:20230217T092751Z:fc6d152f-aa7a-454c-becb-041d8671eba2" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641", + "name": "163ae5b6-b560-43aa-970c-e86dbcfab641", + "status": "Running", + "startTime": "2023-02-17T09:15:23.8298671Z", + "endTime": "2023-02-17T09:15:39.4730415Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "24376b05-2387-4d00-a1bb-248e9db1e057", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5f65cdc96be521d090f7e36af0be7920-ba7cfd8cd5246ed0-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "2807f91e778dcd24470ab7d13ce2ee4e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:28:23 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5280c68c-aed8-4afd-a30f-cb53e7c59567", + "x-ms-ratelimit-remaining-subscription-reads": "11711", + "x-ms-request-id": "bfd8ba5c-cc86-4079-8024-6a2911c56e22", + "x-ms-routing-request-id": "JAPANEAST:20230217T092823Z:5280c68c-aed8-4afd-a30f-cb53e7c59567" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641", + "name": "163ae5b6-b560-43aa-970c-e86dbcfab641", + "status": "Running", + "startTime": "2023-02-17T09:15:23.8298671Z", + "endTime": "2023-02-17T09:15:39.4730415Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "24376b05-2387-4d00-a1bb-248e9db1e057", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5f65cdc96be521d090f7e36af0be7920-2ab929505c26db10-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "7595137e1cebedd7cd2be22b412e211c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:28:55 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "bb3c82b1-c1c2-4446-947a-d656f5790e3b", + "x-ms-ratelimit-remaining-subscription-reads": "11710", + "x-ms-request-id": "026c08cb-8c6c-41d4-8dc5-9a5a98f179dd", + "x-ms-routing-request-id": "JAPANEAST:20230217T092855Z:bb3c82b1-c1c2-4446-947a-d656f5790e3b" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641", + "name": "163ae5b6-b560-43aa-970c-e86dbcfab641", + "status": "Running", + "startTime": "2023-02-17T09:15:23.8298671Z", + "endTime": "2023-02-17T09:15:39.4730415Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "24376b05-2387-4d00-a1bb-248e9db1e057", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5f65cdc96be521d090f7e36af0be7920-bba5355ebacc8a49-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "e3a59524855293750e72aa61fdb54275", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:29:27 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "09ac5f74-027f-4f68-b2d6-9335739477af", + "x-ms-ratelimit-remaining-subscription-reads": "11709", + "x-ms-request-id": "7c50fbc6-b8e7-4fbd-bec9-b77d2635aa9c", + "x-ms-routing-request-id": "JAPANEAST:20230217T092928Z:09ac5f74-027f-4f68-b2d6-9335739477af" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641", + "name": "163ae5b6-b560-43aa-970c-e86dbcfab641", + "status": "Running", + "startTime": "2023-02-17T09:15:23.8298671Z", + "endTime": "2023-02-17T09:15:39.4730415Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "24376b05-2387-4d00-a1bb-248e9db1e057", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5f65cdc96be521d090f7e36af0be7920-0cfef5335e4a3ff0-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "b5f24daeace90127211a5a6194f88c18", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:29:59 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "63d280a4-e578-4712-8070-f5e730f01a8e", + "x-ms-ratelimit-remaining-subscription-reads": "11708", + "x-ms-request-id": "cfd2a913-67c3-47ba-87d9-e1dc364e78f5", + "x-ms-routing-request-id": "JAPANEAST:20230217T093000Z:63d280a4-e578-4712-8070-f5e730f01a8e" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641", + "name": "163ae5b6-b560-43aa-970c-e86dbcfab641", + "status": "Running", + "startTime": "2023-02-17T09:15:23.8298671Z", + "endTime": "2023-02-17T09:15:39.4730415Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "24376b05-2387-4d00-a1bb-248e9db1e057", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5f65cdc96be521d090f7e36af0be7920-60a99bb671cc0236-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "a6ad9be90a3df8fb9e0167797276ef18", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:30:32 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e123dd9e-4f8a-4462-b8e1-b5bd144fdaa5", + "x-ms-ratelimit-remaining-subscription-reads": "11707", + "x-ms-request-id": "95e07b67-c926-4b85-b018-567d85354e70", + "x-ms-routing-request-id": "JAPANEAST:20230217T093032Z:e123dd9e-4f8a-4462-b8e1-b5bd144fdaa5" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641", + "name": "163ae5b6-b560-43aa-970c-e86dbcfab641", + "status": "Running", + "startTime": "2023-02-17T09:15:23.8298671Z", + "endTime": "2023-02-17T09:15:39.4730415Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "24376b05-2387-4d00-a1bb-248e9db1e057", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5f65cdc96be521d090f7e36af0be7920-00576dc817f8ab4b-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "f37d6ce96b3c77326da3c2382a13fe15", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "520", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:31:04 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "47e17cc4-bda8-4912-98cf-1437d49c5a7f", + "x-ms-ratelimit-remaining-subscription-reads": "11706", + "x-ms-request-id": "a907df74-851f-4756-9edc-07051a976cd6", + "x-ms-routing-request-id": "JAPANEAST:20230217T093105Z:47e17cc4-bda8-4912-98cf-1437d49c5a7f" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/163ae5b6-b560-43aa-970c-e86dbcfab641", + "name": "163ae5b6-b560-43aa-970c-e86dbcfab641", + "status": "Succeeded", + "startTime": "2023-02-17T09:15:23.8298671Z", + "endTime": "2023-02-17T09:30:43.3623678Z", + "percentComplete": 1.0, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "24376b05-2387-4d00-a1bb-248e9db1e057", + "provisioningState": "Succeeded", + "OperationState": "Completed" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp3028/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace6107/kustoPools/kustopool1063?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5f65cdc96be521d090f7e36af0be7920-cd4d687d8949156e-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "627791e69b08a33851f917e744ae8eaa", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "835", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:31:05 GMT", + "ETag": "\u00222023-02-17T09:30:42.4092469Z\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7f5b8a1e-26d5-4f4f-b861-6cfb900a8ef7", + "x-ms-ratelimit-remaining-subscription-reads": "11705", + "x-ms-request-id": "48c50ac7-12dc-4d32-99ba-2d9e9cc2617d", + "x-ms-routing-request-id": "JAPANEAST:20230217T093105Z:7f5b8a1e-26d5-4f4f-b861-6cfb900a8ef7" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp3028/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace6107/kustoPools/kustopool1063", + "name": "synapsesdkworkspace6107/kustopool1063", + "type": "Microsoft.Synapse/workspaces/kustoPools", + "etag": "\u00222023-02-17T09:30:42.4092469Z\u0022", + "location": "East US 2", + "sku": { + "name": "Storage optimized", + "size": "Large", + "capacity": 2 + }, + "tags": {}, + "properties": { + "state": "Running", + "stateReason": null, + "uri": "https://kustopool1063.synapsesdkworkspace6107.kusto.azuresynapse.net", + "dataIngestionUri": "https://ingest-kustopool1063.synapsesdkworkspace6107.kusto.azuresynapse.net", + "optimizedAutoscale": null, + "enableStreamingIngest": false, + "languageExtensions": { + "value": [] + }, + "enablePurge": null, + "workspaceUID": "c9e6e77f-bf17-4a8c-936b-864a134ae9c9", + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp3028/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace6107/kustoPools?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-d5992c46b03de29801e1b891e2a7043f-65c217d7cbc56381-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "2878422b987b7edc6935399948c3ce8b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "847", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:31:05 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "fc31c385-5115-4913-85b3-6184cde1feb7", + "x-ms-ratelimit-remaining-subscription-reads": "11704", + "x-ms-request-id": "e79a4148-6764-43d4-b0e5-2f9e5a165387", + "x-ms-routing-request-id": "JAPANEAST:20230217T093106Z:fc31c385-5115-4913-85b3-6184cde1feb7" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp3028/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace6107/kustoPools/kustopool1063", + "name": "synapsesdkworkspace6107/kustopool1063", + "type": "Microsoft.Synapse/workspaces/kustoPools", + "etag": "\u00222023-02-17T09:30:42.4092469Z\u0022", + "location": "East US 2", + "sku": { + "name": "Storage optimized", + "size": "Large", + "capacity": 2 + }, + "tags": {}, + "properties": { + "state": "Running", + "stateReason": null, + "uri": "https://kustopool1063.synapsesdkworkspace6107.kusto.azuresynapse.net", + "dataIngestionUri": "https://ingest-kustopool1063.synapsesdkworkspace6107.kusto.azuresynapse.net", + "optimizedAutoscale": null, + "enableStreamingIngest": false, + "languageExtensions": { + "value": [] + }, + "enablePurge": null, + "workspaceUID": "c9e6e77f-bf17-4a8c-936b-864a134ae9c9", + "provisioningState": "Succeeded" + } + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp3028/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace6107/kustoPools/kustopool1063?api-version=2021-06-01-preview", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-847ebefef42f07c448fc2fe68fbf8390-e3eb7e3f3e667ed2-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "e19351038cff4d1034d9a242544a33bf", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/fcd65180-82ff-465a-b486-ee782d08b115?api-version=2021-06-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Fri, 17 Feb 2023 09:31:06 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/fcd65180-82ff-465a-b486-ee782d08b115?api-version=2021-06-01-preview\u0026operationResultResponseType=Location", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "dfc582e0-eb1c-4e6c-95af-5adeb0151500", + "x-ms-ratelimit-remaining-subscription-deletes": "14994", + "x-ms-request-id": "dfc582e0-eb1c-4e6c-95af-5adeb0151500", + "x-ms-routing-request-id": "JAPANEAST:20230217T093107Z:dfc582e0-eb1c-4e6c-95af-5adeb0151500" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/fcd65180-82ff-465a-b486-ee782d08b115?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-847ebefef42f07c448fc2fe68fbf8390-8e439116baf3a5b3-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "f2e48c2aad1a9eab322af4a1f69a2a1f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "505", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:31:07 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "919bf459-9485-4e45-9bb4-9d7da1621ad3", + "x-ms-ratelimit-remaining-subscription-reads": "11703", + "x-ms-request-id": "d1f21b9c-41aa-4632-9f01-0a0b02f82653", + "x-ms-routing-request-id": "JAPANEAST:20230217T093107Z:919bf459-9485-4e45-9bb4-9d7da1621ad3" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/fcd65180-82ff-465a-b486-ee782d08b115", + "name": "fcd65180-82ff-465a-b486-ee782d08b115", + "status": "Running", + "startTime": "2023-02-17T09:31:07.0562921Z", + "endTime": "2023-02-17T09:31:07.0562921Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterDelete", + "RootActivityId": "4e8622a2-3fe3-4db6-a4ad-f69f7edbbf87", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/fcd65180-82ff-465a-b486-ee782d08b115?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-847ebefef42f07c448fc2fe68fbf8390-962877298afb814a-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "31847901e7b62ef0b7452b05943deb95", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "505", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:31:08 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0eac84e9-cb54-41e0-8c1c-ff49ffc43ed8", + "x-ms-ratelimit-remaining-subscription-reads": "11702", + "x-ms-request-id": "823fd750-77e7-4af2-aa1a-1c564fd316ba", + "x-ms-routing-request-id": "JAPANEAST:20230217T093108Z:0eac84e9-cb54-41e0-8c1c-ff49ffc43ed8" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/fcd65180-82ff-465a-b486-ee782d08b115", + "name": "fcd65180-82ff-465a-b486-ee782d08b115", + "status": "Running", + "startTime": "2023-02-17T09:31:07.0562921Z", + "endTime": "2023-02-17T09:31:07.0562921Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterDelete", + "RootActivityId": "4e8622a2-3fe3-4db6-a4ad-f69f7edbbf87", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/fcd65180-82ff-465a-b486-ee782d08b115?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-847ebefef42f07c448fc2fe68fbf8390-54a2dc20a3134f39-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "c717137e406667a46b6eb570e1f8571a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "505", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:31:09 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "37d5e0bb-a50c-44dd-a09b-f50c6c2223d3", + "x-ms-ratelimit-remaining-subscription-reads": "11701", + "x-ms-request-id": "6f148c1e-ef69-4384-9406-fd5bf9ed7cf0", + "x-ms-routing-request-id": "JAPANEAST:20230217T093110Z:37d5e0bb-a50c-44dd-a09b-f50c6c2223d3" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/fcd65180-82ff-465a-b486-ee782d08b115", + "name": "fcd65180-82ff-465a-b486-ee782d08b115", + "status": "Running", + "startTime": "2023-02-17T09:31:07.0562921Z", + "endTime": "2023-02-17T09:31:07.0562921Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterDelete", + "RootActivityId": "4e8622a2-3fe3-4db6-a4ad-f69f7edbbf87", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/fcd65180-82ff-465a-b486-ee782d08b115?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-847ebefef42f07c448fc2fe68fbf8390-609717b6af0647a7-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "e8d1d9ce291a43d79cb63bd581a50af4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "505", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:31:10 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2d608606-1551-4af4-b892-eb02fcc6dd60", + "x-ms-ratelimit-remaining-subscription-reads": "11700", + "x-ms-request-id": "c8db59b3-41d8-4575-9c28-5dc57cc5407a", + "x-ms-routing-request-id": "JAPANEAST:20230217T093111Z:2d608606-1551-4af4-b892-eb02fcc6dd60" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/fcd65180-82ff-465a-b486-ee782d08b115", + "name": "fcd65180-82ff-465a-b486-ee782d08b115", + "status": "Running", + "startTime": "2023-02-17T09:31:07.0562921Z", + "endTime": "2023-02-17T09:31:07.0562921Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterDelete", + "RootActivityId": "4e8622a2-3fe3-4db6-a4ad-f69f7edbbf87", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/fcd65180-82ff-465a-b486-ee782d08b115?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-847ebefef42f07c448fc2fe68fbf8390-0cdab1c6db410640-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "e2235f3e6282c1b9d41cc647317f4cbf", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "505", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:31:13 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e4794a98-e429-44eb-b3d9-cbe89b4a7de7", + "x-ms-ratelimit-remaining-subscription-reads": "11699", + "x-ms-request-id": "5e97ab8b-a0d3-44df-a029-accb5aa33cd9", + "x-ms-routing-request-id": "JAPANEAST:20230217T093113Z:e4794a98-e429-44eb-b3d9-cbe89b4a7de7" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/fcd65180-82ff-465a-b486-ee782d08b115", + "name": "fcd65180-82ff-465a-b486-ee782d08b115", + "status": "Running", + "startTime": "2023-02-17T09:31:07.0562921Z", + "endTime": "2023-02-17T09:31:07.0562921Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterDelete", + "RootActivityId": "4e8622a2-3fe3-4db6-a4ad-f69f7edbbf87", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/fcd65180-82ff-465a-b486-ee782d08b115?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-847ebefef42f07c448fc2fe68fbf8390-5b46a81247cbe8b4-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "ba3711ee036b557a3cd32baf05cfe6c5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "505", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:31:17 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "30aa4b44-9cf7-4534-b8f4-32df9d0da7de", + "x-ms-ratelimit-remaining-subscription-reads": "11698", + "x-ms-request-id": "7f581cd0-55d1-4942-b64c-771e3995963e", + "x-ms-routing-request-id": "JAPANEAST:20230217T093117Z:30aa4b44-9cf7-4534-b8f4-32df9d0da7de" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/fcd65180-82ff-465a-b486-ee782d08b115", + "name": "fcd65180-82ff-465a-b486-ee782d08b115", + "status": "Running", + "startTime": "2023-02-17T09:31:07.0562921Z", + "endTime": "2023-02-17T09:31:07.0562921Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterDelete", + "RootActivityId": "4e8622a2-3fe3-4db6-a4ad-f69f7edbbf87", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/fcd65180-82ff-465a-b486-ee782d08b115?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-847ebefef42f07c448fc2fe68fbf8390-1b55d6b26c77b573-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "8231c06474d46c98201013fe6390121c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "505", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:31:25 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "34a773ab-2f93-45d8-ba19-eec9bdea615d", + "x-ms-ratelimit-remaining-subscription-reads": "11697", + "x-ms-request-id": "92bf278f-33f4-43f3-9586-59bb87c8b88d", + "x-ms-routing-request-id": "JAPANEAST:20230217T093126Z:34a773ab-2f93-45d8-ba19-eec9bdea615d" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/fcd65180-82ff-465a-b486-ee782d08b115", + "name": "fcd65180-82ff-465a-b486-ee782d08b115", + "status": "Running", + "startTime": "2023-02-17T09:31:07.0562921Z", + "endTime": "2023-02-17T09:31:18.4730303Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterDelete", + "RootActivityId": "4e8622a2-3fe3-4db6-a4ad-f69f7edbbf87", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/fcd65180-82ff-465a-b486-ee782d08b115?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-847ebefef42f07c448fc2fe68fbf8390-0628e2426127a5ed-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "70e67c694f6e3b88e4cea5af3609bb05", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "505", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:31:41 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8d2f011f-da4a-4797-aff6-5aa31ab3468e", + "x-ms-ratelimit-remaining-subscription-reads": "11696", + "x-ms-request-id": "20f71910-b549-4c9f-bdc9-fd5d752451cf", + "x-ms-routing-request-id": "JAPANEAST:20230217T093142Z:8d2f011f-da4a-4797-aff6-5aa31ab3468e" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/fcd65180-82ff-465a-b486-ee782d08b115", + "name": "fcd65180-82ff-465a-b486-ee782d08b115", + "status": "Running", + "startTime": "2023-02-17T09:31:07.0562921Z", + "endTime": "2023-02-17T09:31:18.4730303Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterDelete", + "RootActivityId": "4e8622a2-3fe3-4db6-a4ad-f69f7edbbf87", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/fcd65180-82ff-465a-b486-ee782d08b115?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-847ebefef42f07c448fc2fe68fbf8390-31528a099e04eff1-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "70e20036ca4d79ea78ca9a5bef7bf2ac", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "505", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:32:14 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0f5c25a4-670b-4146-b593-7696fbc011aa", + "x-ms-ratelimit-remaining-subscription-reads": "11695", + "x-ms-request-id": "b255c5fa-8adf-454d-a13e-70eaed0daf11", + "x-ms-routing-request-id": "JAPANEAST:20230217T093214Z:0f5c25a4-670b-4146-b593-7696fbc011aa" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/fcd65180-82ff-465a-b486-ee782d08b115", + "name": "fcd65180-82ff-465a-b486-ee782d08b115", + "status": "Running", + "startTime": "2023-02-17T09:31:07.0562921Z", + "endTime": "2023-02-17T09:31:18.4730303Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterDelete", + "RootActivityId": "4e8622a2-3fe3-4db6-a4ad-f69f7edbbf87", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/fcd65180-82ff-465a-b486-ee782d08b115?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-847ebefef42f07c448fc2fe68fbf8390-c7ace1af4446cefe-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "89460ec075e8155738f69d06cee83516", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "505", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:32:46 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7f60dd9a-8ddc-431c-842d-f571ae53c090", + "x-ms-ratelimit-remaining-subscription-reads": "11694", + "x-ms-request-id": "5f0e7c6e-29db-45ec-9d5d-a8cfdfd77ce4", + "x-ms-routing-request-id": "JAPANEAST:20230217T093247Z:7f60dd9a-8ddc-431c-842d-f571ae53c090" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/fcd65180-82ff-465a-b486-ee782d08b115", + "name": "fcd65180-82ff-465a-b486-ee782d08b115", + "status": "Running", + "startTime": "2023-02-17T09:31:07.0562921Z", + "endTime": "2023-02-17T09:31:18.4730303Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterDelete", + "RootActivityId": "4e8622a2-3fe3-4db6-a4ad-f69f7edbbf87", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/fcd65180-82ff-465a-b486-ee782d08b115?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-847ebefef42f07c448fc2fe68fbf8390-b6943d2e766852ff-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "62c80d54a2ad9fcf916df7a4b52c4b68", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "505", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:33:18 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6c87cf0a-eef8-4de2-a00d-36b3353d775c", + "x-ms-ratelimit-remaining-subscription-reads": "11693", + "x-ms-request-id": "dbd8ff50-5e77-46bf-ac1e-3559c755434e", + "x-ms-routing-request-id": "JAPANEAST:20230217T093319Z:6c87cf0a-eef8-4de2-a00d-36b3353d775c" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/fcd65180-82ff-465a-b486-ee782d08b115", + "name": "fcd65180-82ff-465a-b486-ee782d08b115", + "status": "Running", + "startTime": "2023-02-17T09:31:07.0562921Z", + "endTime": "2023-02-17T09:31:18.4730303Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterDelete", + "RootActivityId": "4e8622a2-3fe3-4db6-a4ad-f69f7edbbf87", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/fcd65180-82ff-465a-b486-ee782d08b115?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-847ebefef42f07c448fc2fe68fbf8390-f3441377af36cb5c-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "28eef9db32c3c01da9cd38572ce3aa90", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "505", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:33:50 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6e9eab7b-a7c4-43ff-bdff-12309e505292", + "x-ms-ratelimit-remaining-subscription-reads": "11692", + "x-ms-request-id": "83512f66-a8bb-42cb-98ca-1bdae1b9ea20", + "x-ms-routing-request-id": "JAPANEAST:20230217T093351Z:6e9eab7b-a7c4-43ff-bdff-12309e505292" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/fcd65180-82ff-465a-b486-ee782d08b115", + "name": "fcd65180-82ff-465a-b486-ee782d08b115", + "status": "Running", + "startTime": "2023-02-17T09:31:07.0562921Z", + "endTime": "2023-02-17T09:31:18.4730303Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterDelete", + "RootActivityId": "4e8622a2-3fe3-4db6-a4ad-f69f7edbbf87", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/fcd65180-82ff-465a-b486-ee782d08b115?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-847ebefef42f07c448fc2fe68fbf8390-7ea8f2dbcd09bf09-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "e10783958fb31efe3fa7f77a7eb2600b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "505", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:34:23 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d215f680-9a38-4be2-a9e1-40f8981e4d61", + "x-ms-ratelimit-remaining-subscription-reads": "11691", + "x-ms-request-id": "3ec09861-22e4-4efd-9c28-914ab8affcb3", + "x-ms-routing-request-id": "JAPANEAST:20230217T093423Z:d215f680-9a38-4be2-a9e1-40f8981e4d61" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/fcd65180-82ff-465a-b486-ee782d08b115", + "name": "fcd65180-82ff-465a-b486-ee782d08b115", + "status": "Running", + "startTime": "2023-02-17T09:31:07.0562921Z", + "endTime": "2023-02-17T09:31:18.4730303Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterDelete", + "RootActivityId": "4e8622a2-3fe3-4db6-a4ad-f69f7edbbf87", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/fcd65180-82ff-465a-b486-ee782d08b115?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-847ebefef42f07c448fc2fe68fbf8390-2352a8694e25561b-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "d52a34aa0dfa2153f007b9e06a7772ae", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "505", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:34:55 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4109e45c-f78c-4e49-b5a7-057e001d5507", + "x-ms-ratelimit-remaining-subscription-reads": "11690", + "x-ms-request-id": "c9c6d536-03da-4936-b650-b248ca407ff2", + "x-ms-routing-request-id": "JAPANEAST:20230217T093456Z:4109e45c-f78c-4e49-b5a7-057e001d5507" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/fcd65180-82ff-465a-b486-ee782d08b115", + "name": "fcd65180-82ff-465a-b486-ee782d08b115", + "status": "Running", + "startTime": "2023-02-17T09:31:07.0562921Z", + "endTime": "2023-02-17T09:31:18.4730303Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterDelete", + "RootActivityId": "4e8622a2-3fe3-4db6-a4ad-f69f7edbbf87", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/fcd65180-82ff-465a-b486-ee782d08b115?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-847ebefef42f07c448fc2fe68fbf8390-d4de6de4e6e8c297-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "310e67c369254cb5fbd0e81b3ba242f6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "505", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:35:27 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3a434ee4-1c25-43c4-b5f0-10885f36ddd0", + "x-ms-ratelimit-remaining-subscription-reads": "11715", + "x-ms-request-id": "16d3ab96-6618-41a9-9494-2440308c4435", + "x-ms-routing-request-id": "JAPANEAST:20230217T093528Z:3a434ee4-1c25-43c4-b5f0-10885f36ddd0" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/fcd65180-82ff-465a-b486-ee782d08b115", + "name": "fcd65180-82ff-465a-b486-ee782d08b115", + "status": "Running", + "startTime": "2023-02-17T09:31:07.0562921Z", + "endTime": "2023-02-17T09:31:18.4730303Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterDelete", + "RootActivityId": "4e8622a2-3fe3-4db6-a4ad-f69f7edbbf87", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/fcd65180-82ff-465a-b486-ee782d08b115?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-847ebefef42f07c448fc2fe68fbf8390-5aaeb8339896e185-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "f8ac2d6cd5b887962fe6f1abd51eb4c7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "505", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:36:00 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1fd1b68c-ae0e-46f3-b2b3-b123049389e3", + "x-ms-ratelimit-remaining-subscription-reads": "11714", + "x-ms-request-id": "935cb718-6c98-460b-9370-90dd2a4d6482", + "x-ms-routing-request-id": "JAPANEAST:20230217T093600Z:1fd1b68c-ae0e-46f3-b2b3-b123049389e3" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/fcd65180-82ff-465a-b486-ee782d08b115", + "name": "fcd65180-82ff-465a-b486-ee782d08b115", + "status": "Running", + "startTime": "2023-02-17T09:31:07.0562921Z", + "endTime": "2023-02-17T09:31:18.4730303Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterDelete", + "RootActivityId": "4e8622a2-3fe3-4db6-a4ad-f69f7edbbf87", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/fcd65180-82ff-465a-b486-ee782d08b115?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-847ebefef42f07c448fc2fe68fbf8390-86ca9eb3627585bd-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "16b749342ea340e67fdeda292538e64e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "505", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:36:32 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "05d1f8e4-ccf0-45fc-be5d-8adb2e53ecdc", + "x-ms-ratelimit-remaining-subscription-reads": "11713", + "x-ms-request-id": "3f22c0ca-6a23-4ac2-abb9-d2ea8b3ded1e", + "x-ms-routing-request-id": "JAPANEAST:20230217T093632Z:05d1f8e4-ccf0-45fc-be5d-8adb2e53ecdc" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/fcd65180-82ff-465a-b486-ee782d08b115", + "name": "fcd65180-82ff-465a-b486-ee782d08b115", + "status": "Running", + "startTime": "2023-02-17T09:31:07.0562921Z", + "endTime": "2023-02-17T09:31:18.4730303Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterDelete", + "RootActivityId": "4e8622a2-3fe3-4db6-a4ad-f69f7edbbf87", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/fcd65180-82ff-465a-b486-ee782d08b115?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-847ebefef42f07c448fc2fe68fbf8390-0394d7bd6925eb82-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "3c73c3c57acbedf5d087023e780977dc", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "505", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:37:04 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1d61fbce-555d-46dc-8a15-498feb393f5f", + "x-ms-ratelimit-remaining-subscription-reads": "11712", + "x-ms-request-id": "9bca8f56-2fe1-49a3-bc6d-c64f51487c9b", + "x-ms-routing-request-id": "JAPANEAST:20230217T093705Z:1d61fbce-555d-46dc-8a15-498feb393f5f" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/fcd65180-82ff-465a-b486-ee782d08b115", + "name": "fcd65180-82ff-465a-b486-ee782d08b115", + "status": "Running", + "startTime": "2023-02-17T09:31:07.0562921Z", + "endTime": "2023-02-17T09:31:18.4730303Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterDelete", + "RootActivityId": "4e8622a2-3fe3-4db6-a4ad-f69f7edbbf87", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/fcd65180-82ff-465a-b486-ee782d08b115?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-847ebefef42f07c448fc2fe68fbf8390-f9627a3e8a922129-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "f2e7201c2bea3d52476c78dafa6c62f7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "505", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:37:37 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2478b1af-17f2-4e7a-a156-22fa9b2cfa62", + "x-ms-ratelimit-remaining-subscription-reads": "11711", + "x-ms-request-id": "870f2c22-37eb-4cff-82bd-a3ab5ba73119", + "x-ms-routing-request-id": "JAPANEAST:20230217T093737Z:2478b1af-17f2-4e7a-a156-22fa9b2cfa62" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/fcd65180-82ff-465a-b486-ee782d08b115", + "name": "fcd65180-82ff-465a-b486-ee782d08b115", + "status": "Running", + "startTime": "2023-02-17T09:31:07.0562921Z", + "endTime": "2023-02-17T09:31:18.4730303Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterDelete", + "RootActivityId": "4e8622a2-3fe3-4db6-a4ad-f69f7edbbf87", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/fcd65180-82ff-465a-b486-ee782d08b115?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-847ebefef42f07c448fc2fe68fbf8390-5466b4e6526482ca-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "11e6a20077aabafc53ca451c2ca7c775", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "505", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:38:09 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9c1a0279-5574-4820-b65a-c5418e81fa28", + "x-ms-ratelimit-remaining-subscription-reads": "11710", + "x-ms-request-id": "60d593c3-5439-4226-8766-3c63bf7cc35f", + "x-ms-routing-request-id": "JAPANEAST:20230217T093810Z:9c1a0279-5574-4820-b65a-c5418e81fa28" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/fcd65180-82ff-465a-b486-ee782d08b115", + "name": "fcd65180-82ff-465a-b486-ee782d08b115", + "status": "Running", + "startTime": "2023-02-17T09:31:07.0562921Z", + "endTime": "2023-02-17T09:31:18.4730303Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterDelete", + "RootActivityId": "4e8622a2-3fe3-4db6-a4ad-f69f7edbbf87", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/fcd65180-82ff-465a-b486-ee782d08b115?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-847ebefef42f07c448fc2fe68fbf8390-7a1dc6a4a709b43a-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "040dfd66f35099637136f55f011bf264", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "505", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:38:42 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "66c7fd4f-08f4-4d29-a99e-305e856646dd", + "x-ms-ratelimit-remaining-subscription-reads": "11709", + "x-ms-request-id": "4069c71c-430d-4061-b417-ef8013f6c994", + "x-ms-routing-request-id": "JAPANEAST:20230217T093842Z:66c7fd4f-08f4-4d29-a99e-305e856646dd" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/fcd65180-82ff-465a-b486-ee782d08b115", + "name": "fcd65180-82ff-465a-b486-ee782d08b115", + "status": "Running", + "startTime": "2023-02-17T09:31:07.0562921Z", + "endTime": "2023-02-17T09:31:18.4730303Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterDelete", + "RootActivityId": "4e8622a2-3fe3-4db6-a4ad-f69f7edbbf87", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/fcd65180-82ff-465a-b486-ee782d08b115?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-847ebefef42f07c448fc2fe68fbf8390-cf2fe708c3d8dffb-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "d53e0a246522a432232c9f20e535109f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "508", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:39:14 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "95231408-a842-4ab9-9a9f-b61169540194", + "x-ms-ratelimit-remaining-subscription-reads": "11708", + "x-ms-request-id": "8cd1d81c-6f79-4d47-af57-cbaab2817742", + "x-ms-routing-request-id": "JAPANEAST:20230217T093914Z:95231408-a842-4ab9-9a9f-b61169540194" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/fcd65180-82ff-465a-b486-ee782d08b115", + "name": "fcd65180-82ff-465a-b486-ee782d08b115", + "status": "Succeeded", + "startTime": "2023-02-17T09:31:07.0562921Z", + "endTime": "2023-02-17T09:38:46.9062926Z", + "percentComplete": 1.0, + "properties": { + "OperationKind": "ClusterDelete", + "RootActivityId": "4e8622a2-3fe3-4db6-a4ad-f69f7edbbf87", + "provisioningState": "Succeeded", + "OperationState": "Completed" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp3028/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace6107/kustoPools?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-523ca1f1ac4db5401483732a871c164b-f4a95347c0f4a358-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "fd7302a45d5e0ca63e4da074819db837", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "12", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:39:14 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c6eea558-0059-4aae-9496-3bc5bd83bc0c", + "x-ms-ratelimit-remaining-subscription-reads": "11707", + "x-ms-request-id": "7c4306c0-ee1c-40fc-ae90-ff51f402d5fc", + "x-ms-routing-request-id": "JAPANEAST:20230217T093915Z:c6eea558-0059-4aae-9496-3bc5bd83bc0c" + }, + "ResponseBody": { + "value": [] + } + } + ], + "Variables": { + "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com/", + "RandomSeed": "1189091460", + "RESOURCE_MANAGER_URL": null, + "SUBSCRIPTION_ID": "051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3" + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/tests/SessionRecords/KustopoolOperationTests/TestKustoPoolLifeCycleAsync.json b/sdk/synapse/Azure.ResourceManager.Synapse/tests/SessionRecords/KustopoolOperationTests/TestKustoPoolLifeCycleAsync.json new file mode 100644 index 0000000000000..9aa40dd74c0c2 --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/tests/SessionRecords/KustopoolOperationTests/TestKustoPoolLifeCycleAsync.json @@ -0,0 +1,4829 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3?api-version=2021-01-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-e446081f3c3317ea5acd609f4a92e79a-6ab964170fa52b25-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "9d831939cdd970dbfb624469bd433ada", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "492", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:52:37 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7b83d2a4-a7e9-48ed-9432-04954cfeee94", + "x-ms-ratelimit-remaining-subscription-reads": "11782", + "x-ms-request-id": "7b83d2a4-a7e9-48ed-9432-04954cfeee94", + "x-ms-routing-request-id": "JAPANEAST:20230217T095238Z:7b83d2a4-a7e9-48ed-9432-04954cfeee94" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3", + "authorizationSource": "RoleBased", + "managedByTenants": [ + { + "tenantId": "2f4a9838-26b7-47ee-be60-ccc1fdec5953" + } + ], + "tags": { + "sub_tagname_1": "sub_tagvalue_1" + }, + "subscriptionId": "051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Synapse Web Tooling", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourcegroups/synapsesdkrp6465?api-version=**", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "22", + "Content-Type": "application/json", + "traceparent": "00-3b6d3de9ce5177017645c7a0553999b4-ecbc84ad660fed09-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "ae3cbde4fd7ecb974db4c3231bc2563f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "eastus2" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "230", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:52:38 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e5859a10-9a7f-4f26-8ab8-9ce3c84a38a7", + "x-ms-ratelimit-remaining-subscription-writes": "1185", + "x-ms-request-id": "e5859a10-9a7f-4f26-8ab8-9ce3c84a38a7", + "x-ms-routing-request-id": "JAPANEAST:20230217T095239Z:e5859a10-9a7f-4f26-8ab8-9ce3c84a38a7" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6465", + "name": "synapsesdkrp6465", + "type": "Microsoft.Resources/resourceGroups", + "location": "eastus2", + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6465/providers/Microsoft.Storage/storageAccounts/synapsesdkstorage4591?api-version=2022-09-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "87", + "Content-Type": "application/json", + "traceparent": "00-c9681d9bb9116bb2538aaa9e230c129d-add92c6da519bfbf-00", + "User-Agent": "azsdk-net-ResourceManager.Storage/1.1.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "5883cb7136f5001673e8d9aaf121c66b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "sku": { + "name": "Standard_GRS" + }, + "kind": "StorageV2", + "location": "eastus2", + "properties": {} + }, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Content-Type": "text/plain; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:52:43 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Storage/locations/eastus2/asyncoperations/d6405b86-39a5-4d7a-a85e-72d67992983b?monitor=true\u0026api-version=2022-09-01", + "Pragma": "no-cache", + "Retry-After": "17", + "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "5883cb7136f5001673e8d9aaf121c66b", + "x-ms-correlation-request-id": "459baccf-5372-4834-a55d-c304845a732c", + "x-ms-ratelimit-remaining-subscription-writes": "1184", + "x-ms-request-id": "d6405b86-39a5-4d7a-a85e-72d67992983b", + "x-ms-routing-request-id": "JAPANEAST:20230217T095244Z:459baccf-5372-4834-a55d-c304845a732c" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Storage/locations/eastus2/asyncoperations/d6405b86-39a5-4d7a-a85e-72d67992983b?monitor=true\u0026api-version=2022-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-c9681d9bb9116bb2538aaa9e230c129d-852a78e621499ee7-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "77209ae33d49ae53a73b3a9524ecda2b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Content-Type": "text/plain; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:52:43 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Storage/locations/eastus2/asyncoperations/d6405b86-39a5-4d7a-a85e-72d67992983b?monitor=true\u0026api-version=2022-09-01", + "Pragma": "no-cache", + "Retry-After": "17", + "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "77209ae33d49ae53a73b3a9524ecda2b", + "x-ms-correlation-request-id": "6382d791-b348-460c-86d3-ac5a0cc12e95", + "x-ms-ratelimit-remaining-subscription-reads": "11781", + "x-ms-request-id": "3edd1747-4fea-47c4-8e7e-7356db0b4cf4", + "x-ms-routing-request-id": "JAPANEAST:20230217T095244Z:6382d791-b348-460c-86d3-ac5a0cc12e95" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Storage/locations/eastus2/asyncoperations/d6405b86-39a5-4d7a-a85e-72d67992983b?monitor=true\u0026api-version=2022-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-c9681d9bb9116bb2538aaa9e230c129d-6f3b8ed3281c5cc3-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "6cad58eefb6c82f870b3145088687f2d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1528", + "Content-Type": "application/json", + "Date": "Fri, 17 Feb 2023 09:53:01 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "6cad58eefb6c82f870b3145088687f2d", + "x-ms-correlation-request-id": "14eca5b9-8e47-4449-978f-c163a3f69e5f", + "x-ms-ratelimit-remaining-subscription-reads": "11780", + "x-ms-request-id": "1ec95077-6b56-47ee-8c60-245b8c1107a9", + "x-ms-routing-request-id": "JAPANEAST:20230217T095301Z:14eca5b9-8e47-4449-978f-c163a3f69e5f" + }, + "ResponseBody": { + "sku": { + "name": "Standard_GRS", + "tier": "Standard" + }, + "kind": "StorageV2", + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6465/providers/Microsoft.Storage/storageAccounts/synapsesdkstorage4591", + "name": "synapsesdkstorage4591", + "type": "Microsoft.Storage/storageAccounts", + "location": "eastus2", + "tags": {}, + "properties": { + "keyCreationTime": { + "key1": "2023-02-17T09:52:42.0115302Z", + "key2": "2023-02-17T09:52:42.0115302Z" + }, + "privateEndpointConnections": [], + "minimumTlsVersion": "TLS1_0", + "allowBlobPublicAccess": true, + "networkAcls": { + "bypass": "AzureServices", + "virtualNetworkRules": [], + "ipRules": [], + "defaultAction": "Allow" + }, + "supportsHttpsTrafficOnly": true, + "encryption": { + "services": { + "file": { + "keyType": "Account", + "enabled": true, + "lastEnabledTime": "2023-02-17T09:52:42.9021866Z" + }, + "blob": { + "keyType": "Account", + "enabled": true, + "lastEnabledTime": "2023-02-17T09:52:42.9021866Z" + } + }, + "keySource": "Microsoft.Storage" + }, + "accessTier": "Hot", + "provisioningState": "Succeeded", + "creationTime": "2023-02-17T09:52:41.8865588Z", + "primaryEndpoints": { + "dfs": "https://synapsesdkstorage4591.dfs.core.windows.net/", + "web": "https://synapsesdkstorage4591.z20.web.core.windows.net/", + "blob": "https://synapsesdkstorage4591.blob.core.windows.net/", + "queue": "https://synapsesdkstorage4591.queue.core.windows.net/", + "table": "https://synapsesdkstorage4591.table.core.windows.net/", + "file": "https://synapsesdkstorage4591.file.core.windows.net/" + }, + "primaryLocation": "eastus2", + "statusOfPrimary": "available", + "secondaryLocation": "centralus", + "statusOfSecondary": "available" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6465/providers/Microsoft.Storage/storageAccounts/synapsesdkstorage4591/listKeys?api-version=2022-09-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "0", + "traceparent": "00-b0dd70f617f1a77bdfe77274f1880147-fcb88571566715a9-00", + "User-Agent": "azsdk-net-ResourceManager.Storage/1.1.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "56c758464f0037225ba7b40bb4c4ab57", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "380", + "Content-Type": "application/json", + "Date": "Fri, 17 Feb 2023 09:53:02 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "56c758464f0037225ba7b40bb4c4ab57", + "x-ms-correlation-request-id": "66dde87f-215d-4204-bd05-6ec80ee61882", + "x-ms-ratelimit-remaining-subscription-resource-requests": "11997", + "x-ms-request-id": "7bef3e23-9d29-455f-9ee1-e1dacb166246", + "x-ms-routing-request-id": "JAPANEAST:20230217T095302Z:66dde87f-215d-4204-bd05-6ec80ee61882" + }, + "ResponseBody": { + "keys": [ + { + "creationTime": "2023-02-17T09:52:42.0115302Z", + "keyName": "key1", + "value": "q3DeqdNrn36iAc2xVd9WweM8V/QJqgNbJB6cMPq68by3kokkhuA6b5/gEdwsHqx9axOVINb\u002BfkZ4\u002BAStokdsrA==", + "permissions": "FULL" + }, + { + "creationTime": "2023-02-17T09:52:42.0115302Z", + "keyName": "key2", + "value": "Famhpt8QUm5j57j6TKOLA5lNc92ACtJ3wu0SkSi9LnKJt/gkHwdURUm1TkrtGs3Sa9PamR8qUPA1\u002BAStfIbB6g==", + "permissions": "FULL" + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6465/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2640?api-version=2021-06-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "300", + "Content-Type": "application/json", + "traceparent": "00-5a45d3726609bd41d9c4522d39606844-a5d8776169a1e798-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "9828bf821436a2e89e06952903253fbb", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "identity": { + "type": "SystemAssigned" + }, + "tags": {}, + "location": "eastus2", + "properties": { + "defaultDataLakeStorage": { + "accountUrl": "https://synapsesdkstorage4591.dfs.core.windows.net/", + "filesystem": "synapsesdkfilesys62" + }, + "sqlAdministratorLoginPassword": "Password1!1931", + "sqlAdministratorLogin": "sshuser4321" + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6465/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2640/operationStatuses/65425866-8161-4ac9-94d5-636057e4320c?api-version=2021-06-01", + "Cache-Control": "no-cache", + "Content-Length": "1475", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:53:09 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "9828bf821436a2e89e06952903253fbb", + "x-ms-correlation-request-id": "9f136dbe-09bd-405d-83ed-4df2ffb14fc2", + "x-ms-ratelimit-remaining-subscription-writes": "1183", + "x-ms-request-id": "e072f531-4ed7-4a6f-affd-0ec1d6541408", + "x-ms-routing-request-id": "JAPANEAST:20230217T095309Z:9f136dbe-09bd-405d-83ed-4df2ffb14fc2" + }, + "ResponseBody": { + "properties": { + "defaultDataLakeStorage": { + "createManagedPrivateEndpoint": false, + "accountUrl": "https://synapsesdkstorage4591.dfs.core.windows.net/", + "filesystem": "synapsesdkfilesys62" + }, + "encryption": { + "doubleEncryptionEnabled": false + }, + "provisioningState": "Provisioning", + "connectivityEndpoints": { + "web": "https://web.azuresynapse.net?workspace=%2fsubscriptions%2f051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3%2fresourceGroups%2fsynapsesdkrp6465%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fsynapsesdkworkspace2640", + "dev": "https://synapsesdkworkspace2640.dev.azuresynapse.net", + "sqlOnDemand": "synapsesdkworkspace2640-ondemand.sql.azuresynapse.net", + "sql": "synapsesdkworkspace2640.sql.azuresynapse.net" + }, + "managedResourceGroupName": "synapseworkspace-managedrg-2a9712b7-c77d-41fe-ae58-600ccac4611a", + "privateEndpointConnections": [], + "workspaceUID": "959bb6ab-7692-4b7c-b539-664a4dfd3fb9", + "extraProperties": { + "WorkspaceType": "Normal" + }, + "publicNetworkAccess": "Enabled", + "cspWorkspaceAdminProperties": { + "initialWorkspaceAdminObjectId": "5adcf4d8-4923-420e-ab0b-f6e5fc718b42" + }, + "trustedServiceBypassEnabled": false + }, + "type": "Microsoft.Synapse/workspaces", + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6465/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2640", + "location": "eastus2", + "name": "synapsesdkworkspace2640", + "identity": { + "type": "SystemAssigned", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "principalId": "b3e45d58-d7c7-41b8-a32f-9118e0533bde" + }, + "tags": {} + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6465/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2640/operationStatuses/65425866-8161-4ac9-94d5-636057e4320c?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5a45d3726609bd41d9c4522d39606844-eaa6bf33b29bd425-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "a80686bd95574310dfb462488c0e5781", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:53:09 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "a80686bd95574310dfb462488c0e5781", + "x-ms-correlation-request-id": "bbc3d778-a63f-4a68-88a5-14bef2dd3595", + "x-ms-ratelimit-remaining-subscription-reads": "11779", + "x-ms-request-id": "dc1a34a3-7ea8-4eab-aa8f-54b6d7837237", + "x-ms-routing-request-id": "JAPANEAST:20230217T095309Z:bbc3d778-a63f-4a68-88a5-14bef2dd3595" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6465/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2640/operationStatuses/65425866-8161-4ac9-94d5-636057e4320c?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5a45d3726609bd41d9c4522d39606844-46412e21e7723ba2-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "74a6507531df574620f221254fa0b5cf", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:53:10 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "74a6507531df574620f221254fa0b5cf", + "x-ms-correlation-request-id": "67a92255-8e15-4d15-9d31-d135766ac0d8", + "x-ms-ratelimit-remaining-subscription-reads": "11778", + "x-ms-request-id": "8f1ae941-ef3b-4c75-a601-9ae2bc0ee343", + "x-ms-routing-request-id": "JAPANEAST:20230217T095310Z:67a92255-8e15-4d15-9d31-d135766ac0d8" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6465/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2640/operationStatuses/65425866-8161-4ac9-94d5-636057e4320c?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5a45d3726609bd41d9c4522d39606844-bfe96648c5e60e34-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "7d6c8c5a961f77643f8846cfc856a967", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:53:12 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "7d6c8c5a961f77643f8846cfc856a967", + "x-ms-correlation-request-id": "b4cc255f-b10d-499d-bf02-74a88941312f", + "x-ms-ratelimit-remaining-subscription-reads": "11777", + "x-ms-request-id": "4210093a-82b9-427a-99a6-2cf5d4463893", + "x-ms-routing-request-id": "JAPANEAST:20230217T095312Z:b4cc255f-b10d-499d-bf02-74a88941312f" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6465/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2640/operationStatuses/65425866-8161-4ac9-94d5-636057e4320c?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5a45d3726609bd41d9c4522d39606844-b1cb3dc513e4dfed-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "9cd243b937278b293fae886473eaf33e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:53:13 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "9cd243b937278b293fae886473eaf33e", + "x-ms-correlation-request-id": "10763a7b-aecf-4e64-a0f1-2af3f423f142", + "x-ms-ratelimit-remaining-subscription-reads": "11776", + "x-ms-request-id": "6666a086-86d7-4e77-8fdb-c1b1132cd380", + "x-ms-routing-request-id": "JAPANEAST:20230217T095313Z:10763a7b-aecf-4e64-a0f1-2af3f423f142" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6465/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2640/operationStatuses/65425866-8161-4ac9-94d5-636057e4320c?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5a45d3726609bd41d9c4522d39606844-4c5e3d5b5016790f-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "00ee92fedaa2de62eb2f3556eb768fc9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:53:16 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "00ee92fedaa2de62eb2f3556eb768fc9", + "x-ms-correlation-request-id": "d9b2b95f-517c-4a62-bea9-1cd6d1da3701", + "x-ms-ratelimit-remaining-subscription-reads": "11775", + "x-ms-request-id": "cf482fd8-3143-49c6-a598-991cc48ae7ff", + "x-ms-routing-request-id": "JAPANEAST:20230217T095316Z:d9b2b95f-517c-4a62-bea9-1cd6d1da3701" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6465/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2640/operationStatuses/65425866-8161-4ac9-94d5-636057e4320c?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5a45d3726609bd41d9c4522d39606844-99b89f585860a66a-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "0c6cba4919ce22a863e13d700dff0454", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:53:20 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "0c6cba4919ce22a863e13d700dff0454", + "x-ms-correlation-request-id": "057de204-4584-4889-bef7-a06d0c358a7a", + "x-ms-ratelimit-remaining-subscription-reads": "11774", + "x-ms-request-id": "6522b8f4-e48d-4b88-9221-bd2cc37dfb2f", + "x-ms-routing-request-id": "JAPANEAST:20230217T095320Z:057de204-4584-4889-bef7-a06d0c358a7a" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6465/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2640/operationStatuses/65425866-8161-4ac9-94d5-636057e4320c?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5a45d3726609bd41d9c4522d39606844-1f9e9449d5fd5c87-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "35d10894a968dec5e0f3b1f802d2a0c9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:53:28 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "35d10894a968dec5e0f3b1f802d2a0c9", + "x-ms-correlation-request-id": "e460358b-fa93-48e9-92fa-0fe763f22c9f", + "x-ms-ratelimit-remaining-subscription-reads": "11773", + "x-ms-request-id": "1ee9f1eb-0616-447c-a476-31ad42892212", + "x-ms-routing-request-id": "JAPANEAST:20230217T095329Z:e460358b-fa93-48e9-92fa-0fe763f22c9f" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6465/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2640/operationStatuses/65425866-8161-4ac9-94d5-636057e4320c?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5a45d3726609bd41d9c4522d39606844-36604f0ba9efbd73-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "b91bbe1fe77ee56feacb9cc19cf2d1ec", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:53:45 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "b91bbe1fe77ee56feacb9cc19cf2d1ec", + "x-ms-correlation-request-id": "0f4f375c-a079-4ffd-b399-9d905a565e58", + "x-ms-ratelimit-remaining-subscription-reads": "11772", + "x-ms-request-id": "87f2d5f3-afab-4c6a-847f-8b8fd830ffcd", + "x-ms-routing-request-id": "JAPANEAST:20230217T095345Z:0f4f375c-a079-4ffd-b399-9d905a565e58" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6465/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2640/operationStatuses/65425866-8161-4ac9-94d5-636057e4320c?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5a45d3726609bd41d9c4522d39606844-126a3ac6bc154ea2-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "e2c2e02b59a5a061f58d2bdb68b01f90", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:54:17 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "e2c2e02b59a5a061f58d2bdb68b01f90", + "x-ms-correlation-request-id": "92de1802-14d6-4b53-abab-9cd1cba40407", + "x-ms-ratelimit-remaining-subscription-reads": "11771", + "x-ms-request-id": "4c8e3d99-0774-41c9-9565-1f39a897a457", + "x-ms-routing-request-id": "JAPANEAST:20230217T095418Z:92de1802-14d6-4b53-abab-9cd1cba40407" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6465/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2640/operationStatuses/65425866-8161-4ac9-94d5-636057e4320c?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5a45d3726609bd41d9c4522d39606844-aefdc669785cac7a-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "4f5174404ae4add699ec4b9c0c0441ee", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:54:49 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "4f5174404ae4add699ec4b9c0c0441ee", + "x-ms-correlation-request-id": "a48d6a83-1f42-4769-89f5-000f7b2c7f10", + "x-ms-ratelimit-remaining-subscription-reads": "11770", + "x-ms-request-id": "62687ef8-c22f-4d97-bd32-846e716242da", + "x-ms-routing-request-id": "JAPANEAST:20230217T095450Z:a48d6a83-1f42-4769-89f5-000f7b2c7f10" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6465/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2640/operationStatuses/65425866-8161-4ac9-94d5-636057e4320c?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5a45d3726609bd41d9c4522d39606844-1bd3cec4235b744e-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "22ccc421bd10c5235d7ac4f0bc937c39", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:55:22 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "22ccc421bd10c5235d7ac4f0bc937c39", + "x-ms-correlation-request-id": "a7135694-e263-4034-9701-30387bc3e41e", + "x-ms-ratelimit-remaining-subscription-reads": "11786", + "x-ms-request-id": "21dac680-fdb8-4d2f-882c-43c699262712", + "x-ms-routing-request-id": "JAPANEAST:20230217T095522Z:a7135694-e263-4034-9701-30387bc3e41e" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6465/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2640/operationStatuses/65425866-8161-4ac9-94d5-636057e4320c?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5a45d3726609bd41d9c4522d39606844-743436701f236d15-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "28800bac82a0e007091549b80ec494f0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "22", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:55:55 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "28800bac82a0e007091549b80ec494f0", + "x-ms-correlation-request-id": "5c2438fd-feed-4269-bc87-c8595332368f", + "x-ms-ratelimit-remaining-subscription-reads": "11785", + "x-ms-request-id": "b9728875-9ee3-4a29-86d0-d0739f824a71", + "x-ms-routing-request-id": "JAPANEAST:20230217T095555Z:5c2438fd-feed-4269-bc87-c8595332368f" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6465/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2640?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5a45d3726609bd41d9c4522d39606844-66b92e5bd26095c9-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "a3ba3c4bfde38380508bf16986e5f105", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1533", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:55:56 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "a3ba3c4bfde38380508bf16986e5f105", + "x-ms-correlation-request-id": "ea9dbfa8-65bc-4639-a759-04adfec486a5", + "x-ms-ratelimit-remaining-subscription-reads": "11784", + "x-ms-request-id": "0234f00b-a656-4b01-a03e-889ebdb68c11", + "x-ms-routing-request-id": "JAPANEAST:20230217T095556Z:ea9dbfa8-65bc-4639-a759-04adfec486a5" + }, + "ResponseBody": { + "properties": { + "defaultDataLakeStorage": { + "createManagedPrivateEndpoint": false, + "accountUrl": "https://synapsesdkstorage4591.dfs.core.windows.net/", + "filesystem": "synapsesdkfilesys62" + }, + "encryption": { + "doubleEncryptionEnabled": false + }, + "provisioningState": "Succeeded", + "connectivityEndpoints": { + "web": "https://web.azuresynapse.net?workspace=%2fsubscriptions%2f051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3%2fresourceGroups%2fsynapsesdkrp6465%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fsynapsesdkworkspace2640", + "dev": "https://synapsesdkworkspace2640.dev.azuresynapse.net", + "sqlOnDemand": "synapsesdkworkspace2640-ondemand.sql.azuresynapse.net", + "sql": "synapsesdkworkspace2640.sql.azuresynapse.net" + }, + "managedResourceGroupName": "synapseworkspace-managedrg-2a9712b7-c77d-41fe-ae58-600ccac4611a", + "sqlAdministratorLogin": "sshuser4321", + "privateEndpointConnections": [], + "workspaceUID": "959bb6ab-7692-4b7c-b539-664a4dfd3fb9", + "extraProperties": { + "WorkspaceType": "Normal", + "IsScopeEnabled": false + }, + "publicNetworkAccess": "Enabled", + "cspWorkspaceAdminProperties": { + "initialWorkspaceAdminObjectId": "5adcf4d8-4923-420e-ab0b-f6e5fc718b42" + }, + "trustedServiceBypassEnabled": false + }, + "type": "Microsoft.Synapse/workspaces", + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6465/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2640", + "location": "eastus2", + "name": "synapsesdkworkspace2640", + "identity": { + "type": "SystemAssigned", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "principalId": "b3e45d58-d7c7-41b8-a32f-9118e0533bde" + }, + "tags": {} + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6465/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2640/kustoPools/kustopool4411?api-version=2021-06-01-preview", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "152", + "Content-Type": "application/json", + "traceparent": "00-76ae6c99a9f9038ee49f8239e26bd82f-8e65fbcde58c6068-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "8300f0114d19bd9fec18fa746bb698e6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "sku": { + "name": "Storage optimized", + "size": "Medium" + }, + "tags": {}, + "location": "eastus2", + "properties": { + "workspaceUID": "959bb6ab-7692-4b7c-b539-664a4dfd3fb9" + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c74b78a1-2814-4314-91e9-c0eb2334e662?api-version=2021-06-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "491", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:56:00 GMT", + "ETag": "\u0022\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d47edb35-e504-4293-a4a7-038aed1b1630", + "x-ms-ratelimit-remaining-subscription-writes": "1183", + "x-ms-request-id": "5bf55c8e-02a4-4870-ab44-595d3a1de162", + "x-ms-routing-request-id": "JAPANEAST:20230217T095600Z:d47edb35-e504-4293-a4a7-038aed1b1630" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6465/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2640/kustoPools/kustopool4411", + "name": "synapsesdkworkspace2640/kustopool4411", + "type": "Microsoft.Synapse/workspaces/kustoPools", + "etag": "\u0022\u0022", + "location": "eastus2", + "sku": { + "name": "Storage optimized", + "size": "Medium" + }, + "tags": {}, + "properties": { + "state": "Creating", + "workspaceUID": "959bb6ab-7692-4b7c-b539-664a4dfd3fb9", + "provisioningState": "Creating" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c74b78a1-2814-4314-91e9-c0eb2334e662?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-76ae6c99a9f9038ee49f8239e26bd82f-c00484434d2defb8-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "d4fd49436c93ee321ae6f6e4850ee5d5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:56:01 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8bbb1b23-2bcd-445e-9fa1-6f36d4c1f098", + "x-ms-ratelimit-remaining-subscription-reads": "11783", + "x-ms-request-id": "fa3d4a13-49d0-41da-85bf-4d7901a6258b", + "x-ms-routing-request-id": "JAPANEAST:20230217T095601Z:8bbb1b23-2bcd-445e-9fa1-6f36d4c1f098" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c74b78a1-2814-4314-91e9-c0eb2334e662", + "name": "c74b78a1-2814-4314-91e9-c0eb2334e662", + "status": "Running", + "startTime": "2023-02-17T09:56:00.0020367Z", + "endTime": "2023-02-17T09:56:00.0020367Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "de22e943-5ba2-4671-a667-402b074d04bd", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c74b78a1-2814-4314-91e9-c0eb2334e662?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-76ae6c99a9f9038ee49f8239e26bd82f-801f917c4f31d84e-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "3fb382592c71ba9541758641380e1e93", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:56:02 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4f9b07bf-c25d-45a2-9f65-c5b741686248", + "x-ms-ratelimit-remaining-subscription-reads": "11782", + "x-ms-request-id": "862c0ac1-1e74-4c29-bc94-9c890b86d1df", + "x-ms-routing-request-id": "JAPANEAST:20230217T095602Z:4f9b07bf-c25d-45a2-9f65-c5b741686248" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c74b78a1-2814-4314-91e9-c0eb2334e662", + "name": "c74b78a1-2814-4314-91e9-c0eb2334e662", + "status": "Running", + "startTime": "2023-02-17T09:56:00.0020367Z", + "endTime": "2023-02-17T09:56:00.0020367Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "de22e943-5ba2-4671-a667-402b074d04bd", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c74b78a1-2814-4314-91e9-c0eb2334e662?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-76ae6c99a9f9038ee49f8239e26bd82f-6d4d7a9f6d6b34ba-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "2130d6f3c4b966537390bef35fc905ee", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:56:03 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b5558b6c-9dfa-4d30-9112-977361311256", + "x-ms-ratelimit-remaining-subscription-reads": "11781", + "x-ms-request-id": "2a0b79b4-039f-4ff9-92b1-b4a34d037edf", + "x-ms-routing-request-id": "JAPANEAST:20230217T095604Z:b5558b6c-9dfa-4d30-9112-977361311256" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c74b78a1-2814-4314-91e9-c0eb2334e662", + "name": "c74b78a1-2814-4314-91e9-c0eb2334e662", + "status": "Running", + "startTime": "2023-02-17T09:56:00.0020367Z", + "endTime": "2023-02-17T09:56:00.0020367Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "de22e943-5ba2-4671-a667-402b074d04bd", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c74b78a1-2814-4314-91e9-c0eb2334e662?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-76ae6c99a9f9038ee49f8239e26bd82f-5f2f69e12f239963-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "1b3740f2e4a516b2b342921de6f0b60b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:56:05 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e6cdc78e-24e2-42d9-8181-3290e12b2e49", + "x-ms-ratelimit-remaining-subscription-reads": "11780", + "x-ms-request-id": "4fefb11e-aab9-4edd-a762-7a511cf2246a", + "x-ms-routing-request-id": "JAPANEAST:20230217T095605Z:e6cdc78e-24e2-42d9-8181-3290e12b2e49" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c74b78a1-2814-4314-91e9-c0eb2334e662", + "name": "c74b78a1-2814-4314-91e9-c0eb2334e662", + "status": "Running", + "startTime": "2023-02-17T09:56:00.0020367Z", + "endTime": "2023-02-17T09:56:00.0020367Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "de22e943-5ba2-4671-a667-402b074d04bd", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c74b78a1-2814-4314-91e9-c0eb2334e662?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-76ae6c99a9f9038ee49f8239e26bd82f-40c86aed0fb06cd4-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "aff163c7c3de941b2f4dcce16da15a77", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:56:07 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "22aa5cb7-7aad-4ddb-b4e3-03e453f90676", + "x-ms-ratelimit-remaining-subscription-reads": "11779", + "x-ms-request-id": "7251e772-6d1d-4b15-93e8-c1c49c67e5d2", + "x-ms-routing-request-id": "JAPANEAST:20230217T095607Z:22aa5cb7-7aad-4ddb-b4e3-03e453f90676" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c74b78a1-2814-4314-91e9-c0eb2334e662", + "name": "c74b78a1-2814-4314-91e9-c0eb2334e662", + "status": "Running", + "startTime": "2023-02-17T09:56:00.0020367Z", + "endTime": "2023-02-17T09:56:00.0020367Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "de22e943-5ba2-4671-a667-402b074d04bd", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c74b78a1-2814-4314-91e9-c0eb2334e662?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-76ae6c99a9f9038ee49f8239e26bd82f-73c4f409bd9f6d6b-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "f84f987002d70fed231a6e7631358082", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:56:11 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "58848faf-ff4d-4541-9586-f5d672081b8e", + "x-ms-ratelimit-remaining-subscription-reads": "11778", + "x-ms-request-id": "a2e0aa33-90dc-4a57-a92d-84403374e6b8", + "x-ms-routing-request-id": "JAPANEAST:20230217T095612Z:58848faf-ff4d-4541-9586-f5d672081b8e" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c74b78a1-2814-4314-91e9-c0eb2334e662", + "name": "c74b78a1-2814-4314-91e9-c0eb2334e662", + "status": "Running", + "startTime": "2023-02-17T09:56:00.0020367Z", + "endTime": "2023-02-17T09:56:00.0020367Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "de22e943-5ba2-4671-a667-402b074d04bd", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c74b78a1-2814-4314-91e9-c0eb2334e662?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-76ae6c99a9f9038ee49f8239e26bd82f-a329f6fd7e6934c9-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "fc2cb3d955d82e1024a2ec5817d1a811", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:56:20 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "746ef3f7-8a7d-45ea-baac-98c22fe8323b", + "x-ms-ratelimit-remaining-subscription-reads": "11777", + "x-ms-request-id": "476ed19d-595e-473b-a5e3-5bbc13513823", + "x-ms-routing-request-id": "JAPANEAST:20230217T095620Z:746ef3f7-8a7d-45ea-baac-98c22fe8323b" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c74b78a1-2814-4314-91e9-c0eb2334e662", + "name": "c74b78a1-2814-4314-91e9-c0eb2334e662", + "status": "Running", + "startTime": "2023-02-17T09:56:00.0020367Z", + "endTime": "2023-02-17T09:56:00.0020367Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "de22e943-5ba2-4671-a667-402b074d04bd", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c74b78a1-2814-4314-91e9-c0eb2334e662?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-76ae6c99a9f9038ee49f8239e26bd82f-e8e6b1f4cbf1139a-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "4dad1be7bea0c43475e18bc355a563f9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:56:36 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f9a412ae-0c72-455c-a7c1-3a69ce119cf7", + "x-ms-ratelimit-remaining-subscription-reads": "11776", + "x-ms-request-id": "8f181c7d-2c00-49a1-8417-77def050fc2e", + "x-ms-routing-request-id": "JAPANEAST:20230217T095636Z:f9a412ae-0c72-455c-a7c1-3a69ce119cf7" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c74b78a1-2814-4314-91e9-c0eb2334e662", + "name": "c74b78a1-2814-4314-91e9-c0eb2334e662", + "status": "Running", + "startTime": "2023-02-17T09:56:00.0020367Z", + "endTime": "2023-02-17T09:56:00.0020367Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "de22e943-5ba2-4671-a667-402b074d04bd", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c74b78a1-2814-4314-91e9-c0eb2334e662?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-76ae6c99a9f9038ee49f8239e26bd82f-c765aa23df10dfa8-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "ba0749cd5e751a9e8820d3341695f752", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:57:08 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d4811fe8-78e6-4776-9951-7541d4f781fc", + "x-ms-ratelimit-remaining-subscription-reads": "11775", + "x-ms-request-id": "6bbaf986-8678-439f-877f-03fed47c10ed", + "x-ms-routing-request-id": "JAPANEAST:20230217T095709Z:d4811fe8-78e6-4776-9951-7541d4f781fc" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c74b78a1-2814-4314-91e9-c0eb2334e662", + "name": "c74b78a1-2814-4314-91e9-c0eb2334e662", + "status": "Running", + "startTime": "2023-02-17T09:56:00.0020367Z", + "endTime": "2023-02-17T09:56:00.0020367Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "de22e943-5ba2-4671-a667-402b074d04bd", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c74b78a1-2814-4314-91e9-c0eb2334e662?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-76ae6c99a9f9038ee49f8239e26bd82f-5b02cf3679099854-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "168e5c7132871be17f6886f6ca4cd87e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:57:40 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6d68edad-77de-4523-89d5-c22880875cb1", + "x-ms-ratelimit-remaining-subscription-reads": "11774", + "x-ms-request-id": "bd05ba89-3c5f-41db-9306-9da2d4df6898", + "x-ms-routing-request-id": "JAPANEAST:20230217T095741Z:6d68edad-77de-4523-89d5-c22880875cb1" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c74b78a1-2814-4314-91e9-c0eb2334e662", + "name": "c74b78a1-2814-4314-91e9-c0eb2334e662", + "status": "Running", + "startTime": "2023-02-17T09:56:00.0020367Z", + "endTime": "2023-02-17T09:57:25.9258168Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "de22e943-5ba2-4671-a667-402b074d04bd", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c74b78a1-2814-4314-91e9-c0eb2334e662?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-76ae6c99a9f9038ee49f8239e26bd82f-9e27afbca970b3bb-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "ce8bf23feec9899c7c92c580eaffade0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:58:13 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0f223434-6769-49fa-a761-5e7063f86129", + "x-ms-ratelimit-remaining-subscription-reads": "11773", + "x-ms-request-id": "aca4660f-7f62-4486-b55c-547d2415e537", + "x-ms-routing-request-id": "JAPANEAST:20230217T095813Z:0f223434-6769-49fa-a761-5e7063f86129" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c74b78a1-2814-4314-91e9-c0eb2334e662", + "name": "c74b78a1-2814-4314-91e9-c0eb2334e662", + "status": "Running", + "startTime": "2023-02-17T09:56:00.0020367Z", + "endTime": "2023-02-17T09:57:25.9258168Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "de22e943-5ba2-4671-a667-402b074d04bd", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c74b78a1-2814-4314-91e9-c0eb2334e662?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-76ae6c99a9f9038ee49f8239e26bd82f-0827dc065c021339-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "f95238ea4c169a7267ec3b0dd7a8503c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:58:45 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3e89a919-9f9e-43a5-8350-475a70ddf29a", + "x-ms-ratelimit-remaining-subscription-reads": "11772", + "x-ms-request-id": "e53b55ea-c6ba-4a7c-b6bc-8cc97e9c7343", + "x-ms-routing-request-id": "JAPANEAST:20230217T095845Z:3e89a919-9f9e-43a5-8350-475a70ddf29a" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c74b78a1-2814-4314-91e9-c0eb2334e662", + "name": "c74b78a1-2814-4314-91e9-c0eb2334e662", + "status": "Running", + "startTime": "2023-02-17T09:56:00.0020367Z", + "endTime": "2023-02-17T09:57:25.9258168Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "de22e943-5ba2-4671-a667-402b074d04bd", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c74b78a1-2814-4314-91e9-c0eb2334e662?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-76ae6c99a9f9038ee49f8239e26bd82f-6356d63c563f3d93-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "24f45447290a8289bf059af56d61307f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:59:17 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "749fc7f4-748c-4b96-8b0a-59c2e360c2c1", + "x-ms-ratelimit-remaining-subscription-reads": "11771", + "x-ms-request-id": "0afefaae-2b82-481f-a490-deacfb735476", + "x-ms-routing-request-id": "JAPANEAST:20230217T095918Z:749fc7f4-748c-4b96-8b0a-59c2e360c2c1" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c74b78a1-2814-4314-91e9-c0eb2334e662", + "name": "c74b78a1-2814-4314-91e9-c0eb2334e662", + "status": "Running", + "startTime": "2023-02-17T09:56:00.0020367Z", + "endTime": "2023-02-17T09:57:25.9258168Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "de22e943-5ba2-4671-a667-402b074d04bd", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c74b78a1-2814-4314-91e9-c0eb2334e662?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-76ae6c99a9f9038ee49f8239e26bd82f-d601df1b6284085b-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "910ca6badff9f26880f066ddb38fb1d4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 09:59:49 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "16b973f4-300c-4d1a-a3e9-7a36a458b3bc", + "x-ms-ratelimit-remaining-subscription-reads": "11770", + "x-ms-request-id": "1193137b-9749-43d4-8181-95c46feea43e", + "x-ms-routing-request-id": "JAPANEAST:20230217T095950Z:16b973f4-300c-4d1a-a3e9-7a36a458b3bc" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c74b78a1-2814-4314-91e9-c0eb2334e662", + "name": "c74b78a1-2814-4314-91e9-c0eb2334e662", + "status": "Running", + "startTime": "2023-02-17T09:56:00.0020367Z", + "endTime": "2023-02-17T09:57:25.9258168Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "de22e943-5ba2-4671-a667-402b074d04bd", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c74b78a1-2814-4314-91e9-c0eb2334e662?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-76ae6c99a9f9038ee49f8239e26bd82f-49233f8c2c63678c-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "95388941890ac1d6afd03911b27c2c05", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:00:21 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f784b69d-3199-4ad4-b227-561327d07860", + "x-ms-ratelimit-remaining-subscription-reads": "11778", + "x-ms-request-id": "6b9022a7-f13e-47e2-b9f4-20d4a80cd4a3", + "x-ms-routing-request-id": "JAPANEAST:20230217T100022Z:f784b69d-3199-4ad4-b227-561327d07860" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c74b78a1-2814-4314-91e9-c0eb2334e662", + "name": "c74b78a1-2814-4314-91e9-c0eb2334e662", + "status": "Running", + "startTime": "2023-02-17T09:56:00.0020367Z", + "endTime": "2023-02-17T09:57:25.9258168Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "de22e943-5ba2-4671-a667-402b074d04bd", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c74b78a1-2814-4314-91e9-c0eb2334e662?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-76ae6c99a9f9038ee49f8239e26bd82f-a13444aecf76a8d5-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "3152bbbbbf9b6842ec01a319c3accf30", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:00:54 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e16b3ab2-9527-45bf-8f3a-4bb5d9ebe265", + "x-ms-ratelimit-remaining-subscription-reads": "11777", + "x-ms-request-id": "2798b57e-6e52-4a92-9b66-6fae51380bbc", + "x-ms-routing-request-id": "JAPANEAST:20230217T100054Z:e16b3ab2-9527-45bf-8f3a-4bb5d9ebe265" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c74b78a1-2814-4314-91e9-c0eb2334e662", + "name": "c74b78a1-2814-4314-91e9-c0eb2334e662", + "status": "Running", + "startTime": "2023-02-17T09:56:00.0020367Z", + "endTime": "2023-02-17T09:57:25.9258168Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "de22e943-5ba2-4671-a667-402b074d04bd", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c74b78a1-2814-4314-91e9-c0eb2334e662?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-76ae6c99a9f9038ee49f8239e26bd82f-5b81f67f9f807343-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "e4b3c5539b293074cf4be129a6564003", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:01:26 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d703b1d2-63ed-464d-8e7d-b47b8198652c", + "x-ms-ratelimit-remaining-subscription-reads": "11776", + "x-ms-request-id": "b3ef6e76-2978-40d4-a8ac-c97d647ce993", + "x-ms-routing-request-id": "JAPANEAST:20230217T100127Z:d703b1d2-63ed-464d-8e7d-b47b8198652c" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c74b78a1-2814-4314-91e9-c0eb2334e662", + "name": "c74b78a1-2814-4314-91e9-c0eb2334e662", + "status": "Running", + "startTime": "2023-02-17T09:56:00.0020367Z", + "endTime": "2023-02-17T09:57:25.9258168Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "de22e943-5ba2-4671-a667-402b074d04bd", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c74b78a1-2814-4314-91e9-c0eb2334e662?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-76ae6c99a9f9038ee49f8239e26bd82f-688d7f887913a035-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "f72160c3803c823846cfa808e6bcfd03", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:01:59 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a3488306-b2fb-464c-87e2-05e16b8d8666", + "x-ms-ratelimit-remaining-subscription-reads": "11775", + "x-ms-request-id": "dd7c4c1f-db47-4217-90fa-9a52d411af84", + "x-ms-routing-request-id": "JAPANEAST:20230217T100159Z:a3488306-b2fb-464c-87e2-05e16b8d8666" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c74b78a1-2814-4314-91e9-c0eb2334e662", + "name": "c74b78a1-2814-4314-91e9-c0eb2334e662", + "status": "Running", + "startTime": "2023-02-17T09:56:00.0020367Z", + "endTime": "2023-02-17T09:57:25.9258168Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "de22e943-5ba2-4671-a667-402b074d04bd", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c74b78a1-2814-4314-91e9-c0eb2334e662?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-76ae6c99a9f9038ee49f8239e26bd82f-e458fe7191bf1f8f-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "ecbe080048c920db47226150dd19c296", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:02:31 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d59f03dc-dd51-4a97-929e-5c296878d232", + "x-ms-ratelimit-remaining-subscription-reads": "11774", + "x-ms-request-id": "542451ce-7d67-45f2-ba44-a812e7acbcf6", + "x-ms-routing-request-id": "JAPANEAST:20230217T100232Z:d59f03dc-dd51-4a97-929e-5c296878d232" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c74b78a1-2814-4314-91e9-c0eb2334e662", + "name": "c74b78a1-2814-4314-91e9-c0eb2334e662", + "status": "Running", + "startTime": "2023-02-17T09:56:00.0020367Z", + "endTime": "2023-02-17T09:57:25.9258168Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "de22e943-5ba2-4671-a667-402b074d04bd", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c74b78a1-2814-4314-91e9-c0eb2334e662?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-76ae6c99a9f9038ee49f8239e26bd82f-a49e64e933eafb54-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "62559fc1d88ad2f48d309d5af26b4a12", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:03:04 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "89520e1f-1f24-485c-b73c-1c1d7c01fa6f", + "x-ms-ratelimit-remaining-subscription-reads": "11773", + "x-ms-request-id": "308514ba-8e80-40ee-a0ca-34c28e61969c", + "x-ms-routing-request-id": "JAPANEAST:20230217T100304Z:89520e1f-1f24-485c-b73c-1c1d7c01fa6f" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c74b78a1-2814-4314-91e9-c0eb2334e662", + "name": "c74b78a1-2814-4314-91e9-c0eb2334e662", + "status": "Running", + "startTime": "2023-02-17T09:56:00.0020367Z", + "endTime": "2023-02-17T09:57:25.9258168Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "de22e943-5ba2-4671-a667-402b074d04bd", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c74b78a1-2814-4314-91e9-c0eb2334e662?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-76ae6c99a9f9038ee49f8239e26bd82f-d943b829e3fbdef9-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "9d28de4d53977b3a8401af191ee8a42c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:03:36 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9e1a7ef2-c4a2-4707-bd4f-2e0cd86ad5df", + "x-ms-ratelimit-remaining-subscription-reads": "11772", + "x-ms-request-id": "d75a2b33-5c73-49f0-9dd2-7771cffb4ca4", + "x-ms-routing-request-id": "JAPANEAST:20230217T100336Z:9e1a7ef2-c4a2-4707-bd4f-2e0cd86ad5df" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c74b78a1-2814-4314-91e9-c0eb2334e662", + "name": "c74b78a1-2814-4314-91e9-c0eb2334e662", + "status": "Running", + "startTime": "2023-02-17T09:56:00.0020367Z", + "endTime": "2023-02-17T09:57:25.9258168Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "de22e943-5ba2-4671-a667-402b074d04bd", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c74b78a1-2814-4314-91e9-c0eb2334e662?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-76ae6c99a9f9038ee49f8239e26bd82f-9b31fe9056aae606-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "4647120d9b67287813eb5f98aa812edb", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:04:08 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "cc5fd612-61bf-4dec-8219-73d57cb9b906", + "x-ms-ratelimit-remaining-subscription-reads": "11771", + "x-ms-request-id": "cae40990-9085-4d3f-a544-4c3b43fb732d", + "x-ms-routing-request-id": "JAPANEAST:20230217T100408Z:cc5fd612-61bf-4dec-8219-73d57cb9b906" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c74b78a1-2814-4314-91e9-c0eb2334e662", + "name": "c74b78a1-2814-4314-91e9-c0eb2334e662", + "status": "Running", + "startTime": "2023-02-17T09:56:00.0020367Z", + "endTime": "2023-02-17T09:57:25.9258168Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "de22e943-5ba2-4671-a667-402b074d04bd", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c74b78a1-2814-4314-91e9-c0eb2334e662?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-76ae6c99a9f9038ee49f8239e26bd82f-72b65172a5bbff49-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "ff034ed724f16efe65dade8928dab4a5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "510", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:04:41 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8bcdb93b-3630-4c2c-8a29-f1a2c110eb4a", + "x-ms-ratelimit-remaining-subscription-reads": "11770", + "x-ms-request-id": "5eea28e7-ce8c-4ceb-ba7b-888919ef078e", + "x-ms-routing-request-id": "JAPANEAST:20230217T100441Z:8bcdb93b-3630-4c2c-8a29-f1a2c110eb4a" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c74b78a1-2814-4314-91e9-c0eb2334e662", + "name": "c74b78a1-2814-4314-91e9-c0eb2334e662", + "status": "Running", + "startTime": "2023-02-17T09:56:00.0020367Z", + "endTime": "2023-02-17T09:57:25.9258168Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "de22e943-5ba2-4671-a667-402b074d04bd", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c74b78a1-2814-4314-91e9-c0eb2334e662?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-76ae6c99a9f9038ee49f8239e26bd82f-83da1dba17200690-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "df4c718b0424b2ab65008aacf4a2d002", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "513", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:05:13 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a845e00f-5129-4bab-9a93-f15585212c7a", + "x-ms-ratelimit-remaining-subscription-reads": "11810", + "x-ms-request-id": "73314523-564b-4756-82db-3d530030f9cd", + "x-ms-routing-request-id": "JAPANEAST:20230217T100513Z:a845e00f-5129-4bab-9a93-f15585212c7a" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/kustoPoolOperationResults/c74b78a1-2814-4314-91e9-c0eb2334e662", + "name": "c74b78a1-2814-4314-91e9-c0eb2334e662", + "status": "Succeeded", + "startTime": "2023-02-17T09:56:00.0020367Z", + "endTime": "2023-02-17T10:05:01.7916242Z", + "percentComplete": 1.0, + "properties": { + "OperationKind": "ClusterCreateSynapse", + "RootActivityId": "de22e943-5ba2-4671-a667-402b074d04bd", + "provisioningState": "Succeeded", + "OperationState": "Completed" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6465/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2640/kustoPools/kustopool4411?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-76ae6c99a9f9038ee49f8239e26bd82f-67470e8f4aba84f5-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "cf42d4d3a5e5e93b13d9e08cbcefff38", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "836", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:05:13 GMT", + "ETag": "\u00222023-02-17T10:05:00.7602485Z\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5c135ec5-1155-4320-a7a5-0b51cf54379e", + "x-ms-ratelimit-remaining-subscription-reads": "11809", + "x-ms-request-id": "894ca34d-fd63-4ac2-a31f-0455215f0880", + "x-ms-routing-request-id": "JAPANEAST:20230217T100513Z:5c135ec5-1155-4320-a7a5-0b51cf54379e" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6465/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2640/kustoPools/kustopool4411", + "name": "synapsesdkworkspace2640/kustopool4411", + "type": "Microsoft.Synapse/workspaces/kustoPools", + "etag": "\u00222023-02-17T10:05:00.7602485Z\u0022", + "location": "East US 2", + "sku": { + "name": "Storage optimized", + "size": "Medium", + "capacity": 2 + }, + "tags": {}, + "properties": { + "state": "Running", + "stateReason": null, + "uri": "https://kustopool4411.synapsesdkworkspace2640.kusto.azuresynapse.net", + "dataIngestionUri": "https://ingest-kustopool4411.synapsesdkworkspace2640.kusto.azuresynapse.net", + "optimizedAutoscale": null, + "enableStreamingIngest": false, + "languageExtensions": { + "value": [] + }, + "enablePurge": null, + "workspaceUID": "959bb6ab-7692-4b7c-b539-664a4dfd3fb9", + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6465/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2640/kustoPools/kustopool4411?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-f45209e04894a673357a012b3131e6dd-8b774304c5071f6c-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "390cba374e34d3b6a35199f0995279c2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "836", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:05:14 GMT", + "ETag": "\u00222023-02-17T10:05:00.7602485Z\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5a05609d-7f53-4b1a-bed4-13a3b2540074", + "x-ms-ratelimit-remaining-subscription-reads": "11808", + "x-ms-request-id": "d0bec07a-e358-467b-a074-5f08b96cfdee", + "x-ms-routing-request-id": "JAPANEAST:20230217T100514Z:5a05609d-7f53-4b1a-bed4-13a3b2540074" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6465/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2640/kustoPools/kustopool4411", + "name": "synapsesdkworkspace2640/kustopool4411", + "type": "Microsoft.Synapse/workspaces/kustoPools", + "etag": "\u00222023-02-17T10:05:00.7602485Z\u0022", + "location": "East US 2", + "sku": { + "name": "Storage optimized", + "size": "Medium", + "capacity": 2 + }, + "tags": {}, + "properties": { + "state": "Running", + "stateReason": null, + "uri": "https://kustopool4411.synapsesdkworkspace2640.kusto.azuresynapse.net", + "dataIngestionUri": "https://ingest-kustopool4411.synapsesdkworkspace2640.kusto.azuresynapse.net", + "optimizedAutoscale": null, + "enableStreamingIngest": false, + "languageExtensions": { + "value": [] + }, + "enablePurge": null, + "workspaceUID": "959bb6ab-7692-4b7c-b539-664a4dfd3fb9", + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6465/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2640/kustoPools/kustopool4411?api-version=2021-06-01-preview", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "151", + "Content-Type": "application/json", + "traceparent": "00-15d03e5160b3b8c473feb2de39317d69-20b91c651f73a53e-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "54b5db0ae498e6bf3563cb4b231ff575", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "sku": { + "name": "Storage optimized", + "size": "Large" + }, + "tags": {}, + "location": "eastus2", + "properties": { + "workspaceUID": "959bb6ab-7692-4b7c-b539-664a4dfd3fb9" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317?api-version=2021-06-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "501", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:05:16 GMT", + "ETag": "\u00222023-02-17T10:05:00.7602485Z\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8d940bb8-5527-4b42-9729-71fcc9b2b813", + "x-ms-ratelimit-remaining-subscription-writes": "1188", + "x-ms-request-id": "4b563170-0cb0-481a-b197-ce087ff858e5", + "x-ms-routing-request-id": "JAPANEAST:20230217T100516Z:8d940bb8-5527-4b42-9729-71fcc9b2b813" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6465/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2640/kustoPools/kustopool4411", + "name": "synapsesdkworkspace2640/kustopool4411", + "type": "Microsoft.Synapse/workspaces/kustoPools", + "etag": "\u00222023-02-17T10:05:00.7602485Z\u0022", + "location": "East US 2", + "sku": { + "name": "Storage optimized", + "size": "Large" + }, + "tags": {}, + "properties": { + "workspaceUID": "959bb6ab-7692-4b7c-b539-664a4dfd3fb9", + "provisioningState": "Accepted" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-15d03e5160b3b8c473feb2de39317d69-4db522ba0d5cb50d-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "e1811e5fab3a529ffa2603d1826aaf83", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:05:16 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7b55bda1-9d8b-4e91-933c-548618c1c783", + "x-ms-ratelimit-remaining-subscription-reads": "11807", + "x-ms-request-id": "19f47aef-769b-4c8b-ae0c-bef2e0852d25", + "x-ms-routing-request-id": "JAPANEAST:20230217T100517Z:7b55bda1-9d8b-4e91-933c-548618c1c783" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317", + "name": "8d03a21b-deca-4ee4-b3ef-d88438a06317", + "status": "Running", + "startTime": "2023-02-17T10:05:15.0835675Z", + "endTime": "2023-02-17T10:05:15.0835675Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "3df06aa4-fc9e-40cf-b1a7-1e7ed997f69e", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-15d03e5160b3b8c473feb2de39317d69-e2e24556e4b40c1d-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "48ef235b40dd742c0d303529b82bd9ea", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:05:18 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "05f29674-4f50-448f-9c46-c1f38c3fbe03", + "x-ms-ratelimit-remaining-subscription-reads": "11806", + "x-ms-request-id": "95645a36-2253-4296-92c4-73d6f369fb89", + "x-ms-routing-request-id": "JAPANEAST:20230217T100518Z:05f29674-4f50-448f-9c46-c1f38c3fbe03" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317", + "name": "8d03a21b-deca-4ee4-b3ef-d88438a06317", + "status": "Running", + "startTime": "2023-02-17T10:05:15.0835675Z", + "endTime": "2023-02-17T10:05:15.0835675Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "3df06aa4-fc9e-40cf-b1a7-1e7ed997f69e", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-15d03e5160b3b8c473feb2de39317d69-5ec86343a07ebba4-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "05ec0a13139d553bb1223f7092fc01b3", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:05:19 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "86e594bd-ce28-477a-84f5-f8a645c2c5d6", + "x-ms-ratelimit-remaining-subscription-reads": "11805", + "x-ms-request-id": "fab43b53-9b7c-4775-96b9-76f8a3fae6e9", + "x-ms-routing-request-id": "JAPANEAST:20230217T100519Z:86e594bd-ce28-477a-84f5-f8a645c2c5d6" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317", + "name": "8d03a21b-deca-4ee4-b3ef-d88438a06317", + "status": "Running", + "startTime": "2023-02-17T10:05:15.0835675Z", + "endTime": "2023-02-17T10:05:15.0835675Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "3df06aa4-fc9e-40cf-b1a7-1e7ed997f69e", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-15d03e5160b3b8c473feb2de39317d69-3c254be953fd2e3f-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "e838a9be075b1fe3f10dd40975759ace", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:05:20 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "aef1e0ac-2e1f-4883-ba34-110c2191e595", + "x-ms-ratelimit-remaining-subscription-reads": "11804", + "x-ms-request-id": "5658632c-39c8-4d30-baae-3f1f73304cd8", + "x-ms-routing-request-id": "JAPANEAST:20230217T100520Z:aef1e0ac-2e1f-4883-ba34-110c2191e595" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317", + "name": "8d03a21b-deca-4ee4-b3ef-d88438a06317", + "status": "Running", + "startTime": "2023-02-17T10:05:15.0835675Z", + "endTime": "2023-02-17T10:05:15.0835675Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "3df06aa4-fc9e-40cf-b1a7-1e7ed997f69e", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-15d03e5160b3b8c473feb2de39317d69-fed950a079c3311d-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "78bd194caa7e47e6e89996bb00bce110", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:05:22 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "88788aba-6cb5-4821-99d5-884c699ea494", + "x-ms-ratelimit-remaining-subscription-reads": "11803", + "x-ms-request-id": "33c3359e-d0ac-4d09-94df-5717cb4dd1c1", + "x-ms-routing-request-id": "JAPANEAST:20230217T100523Z:88788aba-6cb5-4821-99d5-884c699ea494" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317", + "name": "8d03a21b-deca-4ee4-b3ef-d88438a06317", + "status": "Running", + "startTime": "2023-02-17T10:05:15.0835675Z", + "endTime": "2023-02-17T10:05:15.0835675Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "3df06aa4-fc9e-40cf-b1a7-1e7ed997f69e", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-15d03e5160b3b8c473feb2de39317d69-f2f30c651d132366-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "0e6b822ff1f30c8f26cd148f3f32e03b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:05:27 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e27adeff-3390-4cd7-aa05-f2c46e79fe9e", + "x-ms-ratelimit-remaining-subscription-reads": "11802", + "x-ms-request-id": "a3fc6aac-2bdb-446e-b7cd-e42c74b6f495", + "x-ms-routing-request-id": "JAPANEAST:20230217T100527Z:e27adeff-3390-4cd7-aa05-f2c46e79fe9e" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317", + "name": "8d03a21b-deca-4ee4-b3ef-d88438a06317", + "status": "Running", + "startTime": "2023-02-17T10:05:15.0835675Z", + "endTime": "2023-02-17T10:05:15.0835675Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "3df06aa4-fc9e-40cf-b1a7-1e7ed997f69e", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-15d03e5160b3b8c473feb2de39317d69-906aa724f36531f6-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "79237087893f1434c2f000c170281e34", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:05:35 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c37bde59-1823-4187-91d3-1bc83d52fe01", + "x-ms-ratelimit-remaining-subscription-reads": "11801", + "x-ms-request-id": "ce21a8fb-61fb-4039-93e0-e36398546541", + "x-ms-routing-request-id": "JAPANEAST:20230217T100535Z:c37bde59-1823-4187-91d3-1bc83d52fe01" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317", + "name": "8d03a21b-deca-4ee4-b3ef-d88438a06317", + "status": "Running", + "startTime": "2023-02-17T10:05:15.0835675Z", + "endTime": "2023-02-17T10:05:31.2417043Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "3df06aa4-fc9e-40cf-b1a7-1e7ed997f69e", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-15d03e5160b3b8c473feb2de39317d69-887171beb5f430dc-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "f2dac32c8b0a5adb89b052b1965608b5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:05:51 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7b0f07ce-0429-4673-85f6-579575e70495", + "x-ms-ratelimit-remaining-subscription-reads": "11800", + "x-ms-request-id": "49f7ecda-c515-4181-ac0f-628e073737d1", + "x-ms-routing-request-id": "JAPANEAST:20230217T100552Z:7b0f07ce-0429-4673-85f6-579575e70495" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317", + "name": "8d03a21b-deca-4ee4-b3ef-d88438a06317", + "status": "Running", + "startTime": "2023-02-17T10:05:15.0835675Z", + "endTime": "2023-02-17T10:05:31.2417043Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "3df06aa4-fc9e-40cf-b1a7-1e7ed997f69e", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-15d03e5160b3b8c473feb2de39317d69-c019bf8cebb4ab57-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "90335ab96798a5d14d564b02f1ce9bfe", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:06:24 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "079182f7-4d27-4d1d-9b3e-80f4037797c6", + "x-ms-ratelimit-remaining-subscription-reads": "11799", + "x-ms-request-id": "03522998-fad4-4db8-90bc-067ca1ca0487", + "x-ms-routing-request-id": "JAPANEAST:20230217T100624Z:079182f7-4d27-4d1d-9b3e-80f4037797c6" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317", + "name": "8d03a21b-deca-4ee4-b3ef-d88438a06317", + "status": "Running", + "startTime": "2023-02-17T10:05:15.0835675Z", + "endTime": "2023-02-17T10:05:31.2417043Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "3df06aa4-fc9e-40cf-b1a7-1e7ed997f69e", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-15d03e5160b3b8c473feb2de39317d69-5c88074bfbc50112-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "7c63dfaeed58fc3095c9f08e37837e6c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:06:55 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "475a00c9-d1dd-4a50-aa15-f019b5325461", + "x-ms-ratelimit-remaining-subscription-reads": "11798", + "x-ms-request-id": "632b4725-790a-4c7e-92b5-2134a7c6e514", + "x-ms-routing-request-id": "JAPANEAST:20230217T100656Z:475a00c9-d1dd-4a50-aa15-f019b5325461" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317", + "name": "8d03a21b-deca-4ee4-b3ef-d88438a06317", + "status": "Running", + "startTime": "2023-02-17T10:05:15.0835675Z", + "endTime": "2023-02-17T10:05:31.2417043Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "3df06aa4-fc9e-40cf-b1a7-1e7ed997f69e", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-15d03e5160b3b8c473feb2de39317d69-ff0949a807371c40-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "15084ae88ef5c49bf234a5b43fd868bb", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:07:27 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "78a1ebe6-d873-48a8-b3da-23d23b415791", + "x-ms-ratelimit-remaining-subscription-reads": "11797", + "x-ms-request-id": "65a96812-b7dc-40a7-8bfa-1d91e3cf8c3e", + "x-ms-routing-request-id": "JAPANEAST:20230217T100728Z:78a1ebe6-d873-48a8-b3da-23d23b415791" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317", + "name": "8d03a21b-deca-4ee4-b3ef-d88438a06317", + "status": "Running", + "startTime": "2023-02-17T10:05:15.0835675Z", + "endTime": "2023-02-17T10:05:31.2417043Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "3df06aa4-fc9e-40cf-b1a7-1e7ed997f69e", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-15d03e5160b3b8c473feb2de39317d69-b9da569fe17ec4b1-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "b60254158bf3cb5d2a36fbcf77436ec9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:08:01 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "96f351c2-3bd7-4a0b-a9e8-2b0ccca8efaa", + "x-ms-ratelimit-remaining-subscription-reads": "11796", + "x-ms-request-id": "52ee0831-f12b-45cb-94c3-e4f8557aee7d", + "x-ms-routing-request-id": "JAPANEAST:20230217T100801Z:96f351c2-3bd7-4a0b-a9e8-2b0ccca8efaa" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317", + "name": "8d03a21b-deca-4ee4-b3ef-d88438a06317", + "status": "Running", + "startTime": "2023-02-17T10:05:15.0835675Z", + "endTime": "2023-02-17T10:05:31.2417043Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "3df06aa4-fc9e-40cf-b1a7-1e7ed997f69e", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-15d03e5160b3b8c473feb2de39317d69-8abbce249b1c8b88-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "a71adfd885c62008439e8a23487cbcbc", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:08:33 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "978b3951-d753-44a7-bbf9-58e2f07dc831", + "x-ms-ratelimit-remaining-subscription-reads": "11795", + "x-ms-request-id": "101957f4-d14f-48c8-b0a3-3cdbefe8fe09", + "x-ms-routing-request-id": "JAPANEAST:20230217T100833Z:978b3951-d753-44a7-bbf9-58e2f07dc831" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317", + "name": "8d03a21b-deca-4ee4-b3ef-d88438a06317", + "status": "Running", + "startTime": "2023-02-17T10:05:15.0835675Z", + "endTime": "2023-02-17T10:05:31.2417043Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "3df06aa4-fc9e-40cf-b1a7-1e7ed997f69e", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-15d03e5160b3b8c473feb2de39317d69-5f13686962464808-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "e2793460c7815c79ec3cebbe93cc4caf", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:09:05 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a3bf6c54-9b41-4554-b8fb-f6497934e3b5", + "x-ms-ratelimit-remaining-subscription-reads": "11794", + "x-ms-request-id": "21770483-33c0-4b60-86cd-704850767373", + "x-ms-routing-request-id": "JAPANEAST:20230217T100906Z:a3bf6c54-9b41-4554-b8fb-f6497934e3b5" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317", + "name": "8d03a21b-deca-4ee4-b3ef-d88438a06317", + "status": "Running", + "startTime": "2023-02-17T10:05:15.0835675Z", + "endTime": "2023-02-17T10:05:31.2417043Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "3df06aa4-fc9e-40cf-b1a7-1e7ed997f69e", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-15d03e5160b3b8c473feb2de39317d69-9284de8f1bcc08fa-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "60dcdbc5c1be8ff54be17254013983ad", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:09:38 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f7d57bec-859a-4bd1-be6b-9f9db8cf4998", + "x-ms-ratelimit-remaining-subscription-reads": "11793", + "x-ms-request-id": "43792900-e58e-4835-ab61-722ab690df10", + "x-ms-routing-request-id": "JAPANEAST:20230217T100938Z:f7d57bec-859a-4bd1-be6b-9f9db8cf4998" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317", + "name": "8d03a21b-deca-4ee4-b3ef-d88438a06317", + "status": "Running", + "startTime": "2023-02-17T10:05:15.0835675Z", + "endTime": "2023-02-17T10:05:31.2417043Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "3df06aa4-fc9e-40cf-b1a7-1e7ed997f69e", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-15d03e5160b3b8c473feb2de39317d69-ee1793a5428e1ab2-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "436e3e798bca104865bdba89994a8d77", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:10:10 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "65fa4db5-83e5-4258-b1e5-c5c15efa167c", + "x-ms-ratelimit-remaining-subscription-reads": "11808", + "x-ms-request-id": "48c2c9df-2e1a-4558-940e-44ca50004fa0", + "x-ms-routing-request-id": "JAPANEAST:20230217T101010Z:65fa4db5-83e5-4258-b1e5-c5c15efa167c" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317", + "name": "8d03a21b-deca-4ee4-b3ef-d88438a06317", + "status": "Running", + "startTime": "2023-02-17T10:05:15.0835675Z", + "endTime": "2023-02-17T10:05:31.2417043Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "3df06aa4-fc9e-40cf-b1a7-1e7ed997f69e", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-15d03e5160b3b8c473feb2de39317d69-b978447dd500d978-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "6c5edb525c9f9efe3fe9979f55255bb3", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:10:42 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5af27ece-59c0-4611-8972-3445fa805b4c", + "x-ms-ratelimit-remaining-subscription-reads": "11807", + "x-ms-request-id": "fcdebc0a-126a-4a08-80fb-848b1f6bef2e", + "x-ms-routing-request-id": "JAPANEAST:20230217T101042Z:5af27ece-59c0-4611-8972-3445fa805b4c" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317", + "name": "8d03a21b-deca-4ee4-b3ef-d88438a06317", + "status": "Running", + "startTime": "2023-02-17T10:05:15.0835675Z", + "endTime": "2023-02-17T10:05:31.2417043Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "3df06aa4-fc9e-40cf-b1a7-1e7ed997f69e", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-15d03e5160b3b8c473feb2de39317d69-f78ac3a954de9be0-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "54443eb8095d39e592cbfa00076bf500", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:11:14 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "477df603-628a-455a-ab4d-616da0fa9107", + "x-ms-ratelimit-remaining-subscription-reads": "11806", + "x-ms-request-id": "92c347c4-d814-4dcf-976c-8db44e9c9010", + "x-ms-routing-request-id": "JAPANEAST:20230217T101115Z:477df603-628a-455a-ab4d-616da0fa9107" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317", + "name": "8d03a21b-deca-4ee4-b3ef-d88438a06317", + "status": "Running", + "startTime": "2023-02-17T10:05:15.0835675Z", + "endTime": "2023-02-17T10:05:31.2417043Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "3df06aa4-fc9e-40cf-b1a7-1e7ed997f69e", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-15d03e5160b3b8c473feb2de39317d69-41ad38f9837f6caf-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "2601fb5316db1d0d3fcf03e0f4a8bb40", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:11:47 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6409c72c-1c46-43ef-8233-cfd842177a50", + "x-ms-ratelimit-remaining-subscription-reads": "11805", + "x-ms-request-id": "5bceced1-5424-4c0e-929c-39ec06eb56ad", + "x-ms-routing-request-id": "JAPANEAST:20230217T101147Z:6409c72c-1c46-43ef-8233-cfd842177a50" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317", + "name": "8d03a21b-deca-4ee4-b3ef-d88438a06317", + "status": "Running", + "startTime": "2023-02-17T10:05:15.0835675Z", + "endTime": "2023-02-17T10:05:31.2417043Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "3df06aa4-fc9e-40cf-b1a7-1e7ed997f69e", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-15d03e5160b3b8c473feb2de39317d69-37dac0df78a560b1-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "5bd1066238064819f624dad462fe97d4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:12:19 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "fa59d36a-1c55-444f-bd9e-7561e0b6be36", + "x-ms-ratelimit-remaining-subscription-reads": "11804", + "x-ms-request-id": "1332747c-d8ad-4bb0-a1ef-dfc2eb2a983a", + "x-ms-routing-request-id": "JAPANEAST:20230217T101219Z:fa59d36a-1c55-444f-bd9e-7561e0b6be36" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317", + "name": "8d03a21b-deca-4ee4-b3ef-d88438a06317", + "status": "Running", + "startTime": "2023-02-17T10:05:15.0835675Z", + "endTime": "2023-02-17T10:05:31.2417043Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "3df06aa4-fc9e-40cf-b1a7-1e7ed997f69e", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-15d03e5160b3b8c473feb2de39317d69-62725e986005050e-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "594c96f43423a1d83027148d050445ea", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:12:51 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "78345a35-4a14-49d7-8694-1f1902aea802", + "x-ms-ratelimit-remaining-subscription-reads": "11803", + "x-ms-request-id": "3fbf08a6-7bea-4861-921b-80177848be51", + "x-ms-routing-request-id": "JAPANEAST:20230217T101252Z:78345a35-4a14-49d7-8694-1f1902aea802" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317", + "name": "8d03a21b-deca-4ee4-b3ef-d88438a06317", + "status": "Running", + "startTime": "2023-02-17T10:05:15.0835675Z", + "endTime": "2023-02-17T10:05:31.2417043Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "3df06aa4-fc9e-40cf-b1a7-1e7ed997f69e", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-15d03e5160b3b8c473feb2de39317d69-58d9b8f1f4a4d817-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "009eb91099991afae1b830b63c39ba41", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:13:23 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "fa8341d9-0d07-48b7-bae9-8e1b26b663ae", + "x-ms-ratelimit-remaining-subscription-reads": "11802", + "x-ms-request-id": "9225b8f0-a9de-4823-9bef-27dd4c1e85dc", + "x-ms-routing-request-id": "JAPANEAST:20230217T101324Z:fa8341d9-0d07-48b7-bae9-8e1b26b663ae" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317", + "name": "8d03a21b-deca-4ee4-b3ef-d88438a06317", + "status": "Running", + "startTime": "2023-02-17T10:05:15.0835675Z", + "endTime": "2023-02-17T10:05:31.2417043Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "3df06aa4-fc9e-40cf-b1a7-1e7ed997f69e", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-15d03e5160b3b8c473feb2de39317d69-02c52126e94f731b-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "5dec2f38615c2d1c2e302bdf248c43f1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:13:56 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b010f0c0-0772-4d6a-b57e-81dbd78517db", + "x-ms-ratelimit-remaining-subscription-reads": "11801", + "x-ms-request-id": "4df230f7-95c8-4fca-8796-3689a24e9bee", + "x-ms-routing-request-id": "JAPANEAST:20230217T101357Z:b010f0c0-0772-4d6a-b57e-81dbd78517db" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317", + "name": "8d03a21b-deca-4ee4-b3ef-d88438a06317", + "status": "Running", + "startTime": "2023-02-17T10:05:15.0835675Z", + "endTime": "2023-02-17T10:05:31.2417043Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "3df06aa4-fc9e-40cf-b1a7-1e7ed997f69e", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-15d03e5160b3b8c473feb2de39317d69-9c3f91c5e7a46409-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "a8c3efde975f5a3a9c31786a042164f6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:14:29 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "03044408-0c0c-4b83-a0d4-7922e3ba8a46", + "x-ms-ratelimit-remaining-subscription-reads": "11800", + "x-ms-request-id": "52b15d14-2bdf-4175-ada6-5b03c47f9c07", + "x-ms-routing-request-id": "JAPANEAST:20230217T101429Z:03044408-0c0c-4b83-a0d4-7922e3ba8a46" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317", + "name": "8d03a21b-deca-4ee4-b3ef-d88438a06317", + "status": "Running", + "startTime": "2023-02-17T10:05:15.0835675Z", + "endTime": "2023-02-17T10:05:31.2417043Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "3df06aa4-fc9e-40cf-b1a7-1e7ed997f69e", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-15d03e5160b3b8c473feb2de39317d69-21e0ca53eaf5d5ac-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "d655d26ce818ae8d9c70d1696d1bf655", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:15:01 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b60decc3-27a0-45cc-a42c-96aa4423bf67", + "x-ms-ratelimit-remaining-subscription-reads": "11808", + "x-ms-request-id": "af760660-876f-4e9f-84f9-e48660582ed6", + "x-ms-routing-request-id": "JAPANEAST:20230217T101501Z:b60decc3-27a0-45cc-a42c-96aa4423bf67" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317", + "name": "8d03a21b-deca-4ee4-b3ef-d88438a06317", + "status": "Running", + "startTime": "2023-02-17T10:05:15.0835675Z", + "endTime": "2023-02-17T10:05:31.2417043Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "3df06aa4-fc9e-40cf-b1a7-1e7ed997f69e", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-15d03e5160b3b8c473feb2de39317d69-22acf49cae0ae391-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "4cd83f751275a1e1f591c12be8b2290d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:15:33 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d52a183f-ecb4-4b57-bf1f-8c850f5018f9", + "x-ms-ratelimit-remaining-subscription-reads": "11807", + "x-ms-request-id": "964f90b6-0e7f-4518-8f4f-6ff7cc11ecba", + "x-ms-routing-request-id": "JAPANEAST:20230217T101534Z:d52a183f-ecb4-4b57-bf1f-8c850f5018f9" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317", + "name": "8d03a21b-deca-4ee4-b3ef-d88438a06317", + "status": "Running", + "startTime": "2023-02-17T10:05:15.0835675Z", + "endTime": "2023-02-17T10:05:31.2417043Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "3df06aa4-fc9e-40cf-b1a7-1e7ed997f69e", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-15d03e5160b3b8c473feb2de39317d69-f8c993ecdad93a64-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "517235cb6c36f6d862150befc5d0ec81", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:16:05 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f6d58c16-bc49-4421-ad5e-b37191c3ea94", + "x-ms-ratelimit-remaining-subscription-reads": "11806", + "x-ms-request-id": "5ab236f4-4f4e-406f-bcfa-4ad3ff0812ec", + "x-ms-routing-request-id": "JAPANEAST:20230217T101606Z:f6d58c16-bc49-4421-ad5e-b37191c3ea94" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317", + "name": "8d03a21b-deca-4ee4-b3ef-d88438a06317", + "status": "Running", + "startTime": "2023-02-17T10:05:15.0835675Z", + "endTime": "2023-02-17T10:05:31.2417043Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "3df06aa4-fc9e-40cf-b1a7-1e7ed997f69e", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-15d03e5160b3b8c473feb2de39317d69-819f600ceb203b1f-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "c5f4233a17485a81f0b3e1862762c6ea", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:16:38 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ed559fc2-a868-48df-9d95-72177f0e2a47", + "x-ms-ratelimit-remaining-subscription-reads": "11805", + "x-ms-request-id": "58a6cea9-5764-4acb-a3c1-a2753c620581", + "x-ms-routing-request-id": "JAPANEAST:20230217T101638Z:ed559fc2-a868-48df-9d95-72177f0e2a47" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317", + "name": "8d03a21b-deca-4ee4-b3ef-d88438a06317", + "status": "Running", + "startTime": "2023-02-17T10:05:15.0835675Z", + "endTime": "2023-02-17T10:05:31.2417043Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "3df06aa4-fc9e-40cf-b1a7-1e7ed997f69e", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-15d03e5160b3b8c473feb2de39317d69-35fa408d0888eabc-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "389ec347a5a8081e66e1ea6006f2db24", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:17:10 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "efa2039d-e5af-4589-bb56-73f783875936", + "x-ms-ratelimit-remaining-subscription-reads": "11804", + "x-ms-request-id": "d0ac6d62-7e7e-4479-bb8f-16cba6453349", + "x-ms-routing-request-id": "JAPANEAST:20230217T101710Z:efa2039d-e5af-4589-bb56-73f783875936" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317", + "name": "8d03a21b-deca-4ee4-b3ef-d88438a06317", + "status": "Running", + "startTime": "2023-02-17T10:05:15.0835675Z", + "endTime": "2023-02-17T10:05:31.2417043Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "3df06aa4-fc9e-40cf-b1a7-1e7ed997f69e", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-15d03e5160b3b8c473feb2de39317d69-97c7290328d682df-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "c5f03fa463bdb3c5b41860828b51cfff", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:17:42 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a7b02635-cee2-41a9-bb9a-299eb662eb3e", + "x-ms-ratelimit-remaining-subscription-reads": "11803", + "x-ms-request-id": "4f465e4a-9efc-49bd-ad98-8e4a92094032", + "x-ms-routing-request-id": "JAPANEAST:20230217T101743Z:a7b02635-cee2-41a9-bb9a-299eb662eb3e" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317", + "name": "8d03a21b-deca-4ee4-b3ef-d88438a06317", + "status": "Running", + "startTime": "2023-02-17T10:05:15.0835675Z", + "endTime": "2023-02-17T10:05:31.2417043Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "3df06aa4-fc9e-40cf-b1a7-1e7ed997f69e", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-15d03e5160b3b8c473feb2de39317d69-41e158e91dbcdfd1-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "02a7204fb33295d805ec5f672d2053fe", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:18:14 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9689b2e3-b39d-4200-96f0-6749fb29666e", + "x-ms-ratelimit-remaining-subscription-reads": "11802", + "x-ms-request-id": "4ac98a4b-c463-4035-a18d-8bf0825d6ccf", + "x-ms-routing-request-id": "JAPANEAST:20230217T101815Z:9689b2e3-b39d-4200-96f0-6749fb29666e" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317", + "name": "8d03a21b-deca-4ee4-b3ef-d88438a06317", + "status": "Running", + "startTime": "2023-02-17T10:05:15.0835675Z", + "endTime": "2023-02-17T10:05:31.2417043Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "3df06aa4-fc9e-40cf-b1a7-1e7ed997f69e", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-15d03e5160b3b8c473feb2de39317d69-22ca1aa1e42e20bd-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "e7e2bcd80071e32dfeea8490459b7d14", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:18:47 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7a7597fd-bb3b-4147-8767-575f3f0a8224", + "x-ms-ratelimit-remaining-subscription-reads": "11801", + "x-ms-request-id": "a511f9ba-3197-462d-9857-9b65b14e036e", + "x-ms-routing-request-id": "JAPANEAST:20230217T101847Z:7a7597fd-bb3b-4147-8767-575f3f0a8224" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317", + "name": "8d03a21b-deca-4ee4-b3ef-d88438a06317", + "status": "Running", + "startTime": "2023-02-17T10:05:15.0835675Z", + "endTime": "2023-02-17T10:05:31.2417043Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "3df06aa4-fc9e-40cf-b1a7-1e7ed997f69e", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-15d03e5160b3b8c473feb2de39317d69-f3a71d8a386f0425-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "e511eb12d94af0f1675bbfd1045e8693", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:19:19 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e7687658-e61a-4cdb-8f31-0c8189cdc08f", + "x-ms-ratelimit-remaining-subscription-reads": "11800", + "x-ms-request-id": "c4c32498-e1bd-4733-a6d6-e657ca8dcf6c", + "x-ms-routing-request-id": "JAPANEAST:20230217T101919Z:e7687658-e61a-4cdb-8f31-0c8189cdc08f" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317", + "name": "8d03a21b-deca-4ee4-b3ef-d88438a06317", + "status": "Running", + "startTime": "2023-02-17T10:05:15.0835675Z", + "endTime": "2023-02-17T10:05:31.2417043Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "3df06aa4-fc9e-40cf-b1a7-1e7ed997f69e", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-15d03e5160b3b8c473feb2de39317d69-325bfa6f32f38703-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "ceaa62c4e86f4e8df3c304472f48506a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:19:51 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "63e519c3-8a66-4d46-a162-cf7ac6fb0183", + "x-ms-ratelimit-remaining-subscription-reads": "11799", + "x-ms-request-id": "919ed809-1cae-43bc-adb3-650fa1b05a8a", + "x-ms-routing-request-id": "JAPANEAST:20230217T101952Z:63e519c3-8a66-4d46-a162-cf7ac6fb0183" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317", + "name": "8d03a21b-deca-4ee4-b3ef-d88438a06317", + "status": "Running", + "startTime": "2023-02-17T10:05:15.0835675Z", + "endTime": "2023-02-17T10:05:31.2417043Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "3df06aa4-fc9e-40cf-b1a7-1e7ed997f69e", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-15d03e5160b3b8c473feb2de39317d69-ddf61b9416a29a1f-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "41544a6e6d0ffeb3cbf17f16415bdfa0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "517", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:20:24 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "bf789a27-4726-4c01-83e8-679c6d6a8646", + "x-ms-ratelimit-remaining-subscription-reads": "11816", + "x-ms-request-id": "9b4cc73f-e24e-40b1-9ce1-47b167de0cf2", + "x-ms-routing-request-id": "JAPANEAST:20230217T102025Z:bf789a27-4726-4c01-83e8-679c6d6a8646" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317", + "name": "8d03a21b-deca-4ee4-b3ef-d88438a06317", + "status": "Running", + "startTime": "2023-02-17T10:05:15.0835675Z", + "endTime": "2023-02-17T10:05:31.2417043Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "3df06aa4-fc9e-40cf-b1a7-1e7ed997f69e", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-15d03e5160b3b8c473feb2de39317d69-b9ac62052491d143-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "e2cbf164aef02aa45dc3f186d5aac11f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "520", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:20:56 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a51b4c70-0968-4bb2-827c-7ac268e9f878", + "x-ms-ratelimit-remaining-subscription-reads": "11815", + "x-ms-request-id": "cfd795a7-63c7-414d-9099-f2633a5484b7", + "x-ms-routing-request-id": "JAPANEAST:20230217T102057Z:a51b4c70-0968-4bb2-827c-7ac268e9f878" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/8d03a21b-deca-4ee4-b3ef-d88438a06317", + "name": "8d03a21b-deca-4ee4-b3ef-d88438a06317", + "status": "Succeeded", + "startTime": "2023-02-17T10:05:15.0835675Z", + "endTime": "2023-02-17T10:20:56.5821077Z", + "percentComplete": 1.0, + "properties": { + "OperationKind": "ServiceConfigurationAlter", + "RootActivityId": "3df06aa4-fc9e-40cf-b1a7-1e7ed997f69e", + "provisioningState": "Succeeded", + "OperationState": "Completed" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6465/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2640/kustoPools/kustopool4411?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-15d03e5160b3b8c473feb2de39317d69-81720bbc96f72bfa-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "b962550b44095683aeab037e68770c97", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "835", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:20:57 GMT", + "ETag": "\u00222023-02-17T10:20:55.7069231Z\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7e6f23e9-1b2c-4da8-a863-fec73a7f9515", + "x-ms-ratelimit-remaining-subscription-reads": "11814", + "x-ms-request-id": "ac1fa2a4-d04a-4342-af4a-39a0cd8801e6", + "x-ms-routing-request-id": "JAPANEAST:20230217T102058Z:7e6f23e9-1b2c-4da8-a863-fec73a7f9515" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6465/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2640/kustoPools/kustopool4411", + "name": "synapsesdkworkspace2640/kustopool4411", + "type": "Microsoft.Synapse/workspaces/kustoPools", + "etag": "\u00222023-02-17T10:20:55.7069231Z\u0022", + "location": "East US 2", + "sku": { + "name": "Storage optimized", + "size": "Large", + "capacity": 2 + }, + "tags": {}, + "properties": { + "state": "Running", + "stateReason": null, + "uri": "https://kustopool4411.synapsesdkworkspace2640.kusto.azuresynapse.net", + "dataIngestionUri": "https://ingest-kustopool4411.synapsesdkworkspace2640.kusto.azuresynapse.net", + "optimizedAutoscale": null, + "enableStreamingIngest": false, + "languageExtensions": { + "value": [] + }, + "enablePurge": null, + "workspaceUID": "959bb6ab-7692-4b7c-b539-664a4dfd3fb9", + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6465/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2640/kustoPools?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "3de363e46d7cc079a62ae44c7b2c2920", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "847", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:20:58 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f79a94ff-5261-4055-98da-f6d534d6ebc0", + "x-ms-ratelimit-remaining-subscription-reads": "11813", + "x-ms-request-id": "ec9e2338-95fd-4639-bc06-f45ab34ea1b4", + "x-ms-routing-request-id": "JAPANEAST:20230217T102058Z:f79a94ff-5261-4055-98da-f6d534d6ebc0" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6465/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2640/kustoPools/kustopool4411", + "name": "synapsesdkworkspace2640/kustopool4411", + "type": "Microsoft.Synapse/workspaces/kustoPools", + "etag": "\u00222023-02-17T10:20:55.7069231Z\u0022", + "location": "East US 2", + "sku": { + "name": "Storage optimized", + "size": "Large", + "capacity": 2 + }, + "tags": {}, + "properties": { + "state": "Running", + "stateReason": null, + "uri": "https://kustopool4411.synapsesdkworkspace2640.kusto.azuresynapse.net", + "dataIngestionUri": "https://ingest-kustopool4411.synapsesdkworkspace2640.kusto.azuresynapse.net", + "optimizedAutoscale": null, + "enableStreamingIngest": false, + "languageExtensions": { + "value": [] + }, + "enablePurge": null, + "workspaceUID": "959bb6ab-7692-4b7c-b539-664a4dfd3fb9", + "provisioningState": "Succeeded" + } + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6465/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2640/kustoPools/kustopool4411?api-version=2021-06-01-preview", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-d4bfa1af85212cedd571d505f0763c83-de53c380cd52fca7-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "eb0a602f25f920976d743445aa25c1e6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/140d0400-435f-4828-9581-8cd36360c653?api-version=2021-06-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Fri, 17 Feb 2023 10:20:59 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/140d0400-435f-4828-9581-8cd36360c653?api-version=2021-06-01-preview\u0026operationResultResponseType=Location", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5082dc2f-a0bf-4c5c-a694-a7feb3521466", + "x-ms-ratelimit-remaining-subscription-deletes": "14997", + "x-ms-request-id": "5082dc2f-a0bf-4c5c-a694-a7feb3521466", + "x-ms-routing-request-id": "JAPANEAST:20230217T102059Z:5082dc2f-a0bf-4c5c-a694-a7feb3521466" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/140d0400-435f-4828-9581-8cd36360c653?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-d4bfa1af85212cedd571d505f0763c83-f76952d05fad104a-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "084fe281216cbe9eccc2d00738341680", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "505", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:20:59 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "df642f3e-f5b6-46d6-b06b-8a1b47de0d21", + "x-ms-ratelimit-remaining-subscription-reads": "11812", + "x-ms-request-id": "f22675ba-fb57-4c01-a357-abe400e96b3e", + "x-ms-routing-request-id": "JAPANEAST:20230217T102059Z:df642f3e-f5b6-46d6-b06b-8a1b47de0d21" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/140d0400-435f-4828-9581-8cd36360c653", + "name": "140d0400-435f-4828-9581-8cd36360c653", + "status": "Running", + "startTime": "2023-02-17T10:20:59.4727408Z", + "endTime": "2023-02-17T10:20:59.4727408Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterDelete", + "RootActivityId": "a401b2b4-94b1-47cd-805c-37889a072128", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/140d0400-435f-4828-9581-8cd36360c653?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-d4bfa1af85212cedd571d505f0763c83-574a8e6554254ada-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "2196fd69b88aab59bc6c0f5712b8bf36", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "505", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:21:00 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a0ecc72f-815c-4217-b400-492f163c2b9f", + "x-ms-ratelimit-remaining-subscription-reads": "11811", + "x-ms-request-id": "a5463905-005d-45c4-b0dc-151fd8d4561f", + "x-ms-routing-request-id": "JAPANEAST:20230217T102101Z:a0ecc72f-815c-4217-b400-492f163c2b9f" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/140d0400-435f-4828-9581-8cd36360c653", + "name": "140d0400-435f-4828-9581-8cd36360c653", + "status": "Running", + "startTime": "2023-02-17T10:20:59.4727408Z", + "endTime": "2023-02-17T10:20:59.4727408Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterDelete", + "RootActivityId": "a401b2b4-94b1-47cd-805c-37889a072128", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/140d0400-435f-4828-9581-8cd36360c653?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-d4bfa1af85212cedd571d505f0763c83-f6e04fb9f6d9bf2b-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "c7c3b19ab8d69479bbe3a404b39b65a8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "505", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:21:01 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "46526048-28e2-44e9-9a9d-80368b7186ee", + "x-ms-ratelimit-remaining-subscription-reads": "11810", + "x-ms-request-id": "29b9fc84-b8c8-41b8-b63d-abd461faa42c", + "x-ms-routing-request-id": "JAPANEAST:20230217T102102Z:46526048-28e2-44e9-9a9d-80368b7186ee" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/140d0400-435f-4828-9581-8cd36360c653", + "name": "140d0400-435f-4828-9581-8cd36360c653", + "status": "Running", + "startTime": "2023-02-17T10:20:59.4727408Z", + "endTime": "2023-02-17T10:20:59.4727408Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterDelete", + "RootActivityId": "a401b2b4-94b1-47cd-805c-37889a072128", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/140d0400-435f-4828-9581-8cd36360c653?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-d4bfa1af85212cedd571d505f0763c83-06e5ee280024ad3a-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "6274928bb8a1c9f889a34b001247ac14", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "505", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:21:03 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c6efc184-5cf6-482f-aa59-1766b1dfddc7", + "x-ms-ratelimit-remaining-subscription-reads": "11809", + "x-ms-request-id": "d3b11319-739f-4e54-aa7e-7dad3ea198a2", + "x-ms-routing-request-id": "JAPANEAST:20230217T102103Z:c6efc184-5cf6-482f-aa59-1766b1dfddc7" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/140d0400-435f-4828-9581-8cd36360c653", + "name": "140d0400-435f-4828-9581-8cd36360c653", + "status": "Running", + "startTime": "2023-02-17T10:20:59.4727408Z", + "endTime": "2023-02-17T10:20:59.4727408Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterDelete", + "RootActivityId": "a401b2b4-94b1-47cd-805c-37889a072128", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/140d0400-435f-4828-9581-8cd36360c653?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-d4bfa1af85212cedd571d505f0763c83-662f560b46ccfddc-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "876d9a034e70b0aa830166a61355f720", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "505", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:21:05 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "42c12262-0955-4e9c-9f7b-d05a564a744b", + "x-ms-ratelimit-remaining-subscription-reads": "11808", + "x-ms-request-id": "ad592731-e32a-4b8b-acc9-3ccfe733e8db", + "x-ms-routing-request-id": "JAPANEAST:20230217T102105Z:42c12262-0955-4e9c-9f7b-d05a564a744b" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/140d0400-435f-4828-9581-8cd36360c653", + "name": "140d0400-435f-4828-9581-8cd36360c653", + "status": "Running", + "startTime": "2023-02-17T10:20:59.4727408Z", + "endTime": "2023-02-17T10:20:59.4727408Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterDelete", + "RootActivityId": "a401b2b4-94b1-47cd-805c-37889a072128", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/140d0400-435f-4828-9581-8cd36360c653?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-d4bfa1af85212cedd571d505f0763c83-7e1db4b9dcafa94d-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "80cb67065d43e194b9f93e336c798274", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "505", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:21:09 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "cee18f65-8c24-4579-9fa3-a53088da5cbd", + "x-ms-ratelimit-remaining-subscription-reads": "11807", + "x-ms-request-id": "46e81e1f-126e-4f48-bc70-ea1c8034180e", + "x-ms-routing-request-id": "JAPANEAST:20230217T102110Z:cee18f65-8c24-4579-9fa3-a53088da5cbd" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/140d0400-435f-4828-9581-8cd36360c653", + "name": "140d0400-435f-4828-9581-8cd36360c653", + "status": "Running", + "startTime": "2023-02-17T10:20:59.4727408Z", + "endTime": "2023-02-17T10:20:59.4727408Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterDelete", + "RootActivityId": "a401b2b4-94b1-47cd-805c-37889a072128", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/140d0400-435f-4828-9581-8cd36360c653?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-d4bfa1af85212cedd571d505f0763c83-262dc2526374d98a-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "19019037de2e3d37e8c4de9f5251b633", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "505", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:21:17 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a517f6b3-8e99-4d15-b294-a2f79d1e9368", + "x-ms-ratelimit-remaining-subscription-reads": "11806", + "x-ms-request-id": "8e411a68-5eb5-4cab-b620-7a8e46807e03", + "x-ms-routing-request-id": "JAPANEAST:20230217T102118Z:a517f6b3-8e99-4d15-b294-a2f79d1e9368" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/140d0400-435f-4828-9581-8cd36360c653", + "name": "140d0400-435f-4828-9581-8cd36360c653", + "status": "Running", + "startTime": "2023-02-17T10:20:59.4727408Z", + "endTime": "2023-02-17T10:21:10.8930649Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterDelete", + "RootActivityId": "a401b2b4-94b1-47cd-805c-37889a072128", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/140d0400-435f-4828-9581-8cd36360c653?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-d4bfa1af85212cedd571d505f0763c83-cc29ff071a6b0e1b-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "aaf92aab2b7ba5d0058bcd770f77430a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "505", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:21:33 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7e41f491-6bfe-4f33-9c4c-4e9d8cc2bc71", + "x-ms-ratelimit-remaining-subscription-reads": "11805", + "x-ms-request-id": "3739e2fe-c2af-4950-8cae-0c96038778c8", + "x-ms-routing-request-id": "JAPANEAST:20230217T102134Z:7e41f491-6bfe-4f33-9c4c-4e9d8cc2bc71" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/140d0400-435f-4828-9581-8cd36360c653", + "name": "140d0400-435f-4828-9581-8cd36360c653", + "status": "Running", + "startTime": "2023-02-17T10:20:59.4727408Z", + "endTime": "2023-02-17T10:21:10.8930649Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterDelete", + "RootActivityId": "a401b2b4-94b1-47cd-805c-37889a072128", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/140d0400-435f-4828-9581-8cd36360c653?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-d4bfa1af85212cedd571d505f0763c83-93f755029c131560-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "836ff27edd5427f2308e987f7ef58f67", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "505", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:22:06 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1122a93a-5f15-46dd-a827-e3ae6e30c704", + "x-ms-ratelimit-remaining-subscription-reads": "11804", + "x-ms-request-id": "dc108da0-7a3a-4ac0-8118-88bb1a6960c8", + "x-ms-routing-request-id": "JAPANEAST:20230217T102206Z:1122a93a-5f15-46dd-a827-e3ae6e30c704" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/140d0400-435f-4828-9581-8cd36360c653", + "name": "140d0400-435f-4828-9581-8cd36360c653", + "status": "Running", + "startTime": "2023-02-17T10:20:59.4727408Z", + "endTime": "2023-02-17T10:21:10.8930649Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterDelete", + "RootActivityId": "a401b2b4-94b1-47cd-805c-37889a072128", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/140d0400-435f-4828-9581-8cd36360c653?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-d4bfa1af85212cedd571d505f0763c83-5587704d06802c5e-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "41870a43d7800bf9bf5b14a311bf2e70", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "505", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:22:38 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3f24b10d-fc9a-48d5-8ef4-804e2e8b1275", + "x-ms-ratelimit-remaining-subscription-reads": "11803", + "x-ms-request-id": "de09fe8a-cb13-49aa-95ba-8713f894ec6d", + "x-ms-routing-request-id": "JAPANEAST:20230217T102239Z:3f24b10d-fc9a-48d5-8ef4-804e2e8b1275" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/140d0400-435f-4828-9581-8cd36360c653", + "name": "140d0400-435f-4828-9581-8cd36360c653", + "status": "Running", + "startTime": "2023-02-17T10:20:59.4727408Z", + "endTime": "2023-02-17T10:21:10.8930649Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterDelete", + "RootActivityId": "a401b2b4-94b1-47cd-805c-37889a072128", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/140d0400-435f-4828-9581-8cd36360c653?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-d4bfa1af85212cedd571d505f0763c83-6a49cabd6035391a-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "5f20d48032e2cddf38d17aec92512710", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "505", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:23:10 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "cc15bfe4-b048-451f-8347-6d7dcb81ce96", + "x-ms-ratelimit-remaining-subscription-reads": "11802", + "x-ms-request-id": "70e744bc-1c1b-4dca-857b-b9b9183692e4", + "x-ms-routing-request-id": "JAPANEAST:20230217T102311Z:cc15bfe4-b048-451f-8347-6d7dcb81ce96" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/140d0400-435f-4828-9581-8cd36360c653", + "name": "140d0400-435f-4828-9581-8cd36360c653", + "status": "Running", + "startTime": "2023-02-17T10:20:59.4727408Z", + "endTime": "2023-02-17T10:21:10.8930649Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterDelete", + "RootActivityId": "a401b2b4-94b1-47cd-805c-37889a072128", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/140d0400-435f-4828-9581-8cd36360c653?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-d4bfa1af85212cedd571d505f0763c83-1a3de21513f9af69-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "043365fc01efa78af963c3f8c94f1670", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "505", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:23:43 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e471deec-1ae3-4196-9a53-1818e422171b", + "x-ms-ratelimit-remaining-subscription-reads": "11801", + "x-ms-request-id": "057d79ca-2b1b-4b99-a245-6fa8094769d8", + "x-ms-routing-request-id": "JAPANEAST:20230217T102343Z:e471deec-1ae3-4196-9a53-1818e422171b" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/140d0400-435f-4828-9581-8cd36360c653", + "name": "140d0400-435f-4828-9581-8cd36360c653", + "status": "Running", + "startTime": "2023-02-17T10:20:59.4727408Z", + "endTime": "2023-02-17T10:21:10.8930649Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterDelete", + "RootActivityId": "a401b2b4-94b1-47cd-805c-37889a072128", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/140d0400-435f-4828-9581-8cd36360c653?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-d4bfa1af85212cedd571d505f0763c83-0c2b604862a7d50d-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "a9fe27602fd410852bb909ae5d0c796e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "505", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:24:15 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e89001c4-567d-44a3-bb99-01b277326bf2", + "x-ms-ratelimit-remaining-subscription-reads": "11800", + "x-ms-request-id": "00dcde14-84d2-45d8-a29b-a1c1733e427f", + "x-ms-routing-request-id": "JAPANEAST:20230217T102415Z:e89001c4-567d-44a3-bb99-01b277326bf2" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/140d0400-435f-4828-9581-8cd36360c653", + "name": "140d0400-435f-4828-9581-8cd36360c653", + "status": "Running", + "startTime": "2023-02-17T10:20:59.4727408Z", + "endTime": "2023-02-17T10:21:10.8930649Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterDelete", + "RootActivityId": "a401b2b4-94b1-47cd-805c-37889a072128", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/140d0400-435f-4828-9581-8cd36360c653?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-d4bfa1af85212cedd571d505f0763c83-e6b3db308f28300a-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "aba60434298b7e804a79667e6fe604e9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "505", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:24:47 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "92f58b3f-92a1-4e97-a9eb-d914aaa6b875", + "x-ms-ratelimit-remaining-subscription-reads": "11799", + "x-ms-request-id": "8b24d542-ab2b-4427-82c6-121743936b61", + "x-ms-routing-request-id": "JAPANEAST:20230217T102448Z:92f58b3f-92a1-4e97-a9eb-d914aaa6b875" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/140d0400-435f-4828-9581-8cd36360c653", + "name": "140d0400-435f-4828-9581-8cd36360c653", + "status": "Running", + "startTime": "2023-02-17T10:20:59.4727408Z", + "endTime": "2023-02-17T10:21:10.8930649Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterDelete", + "RootActivityId": "a401b2b4-94b1-47cd-805c-37889a072128", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/140d0400-435f-4828-9581-8cd36360c653?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-d4bfa1af85212cedd571d505f0763c83-95140891cd09da8e-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "6b8c0abb7d52cc3bdf23d936f8db49ec", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "505", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:25:19 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2b2540d8-9193-42bc-8104-9969c0c19a9b", + "x-ms-ratelimit-remaining-subscription-reads": "11807", + "x-ms-request-id": "f23b090f-4981-43fb-a0bd-ad2606066bd5", + "x-ms-routing-request-id": "JAPANEAST:20230217T102520Z:2b2540d8-9193-42bc-8104-9969c0c19a9b" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/140d0400-435f-4828-9581-8cd36360c653", + "name": "140d0400-435f-4828-9581-8cd36360c653", + "status": "Running", + "startTime": "2023-02-17T10:20:59.4727408Z", + "endTime": "2023-02-17T10:21:10.8930649Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterDelete", + "RootActivityId": "a401b2b4-94b1-47cd-805c-37889a072128", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/140d0400-435f-4828-9581-8cd36360c653?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-d4bfa1af85212cedd571d505f0763c83-56ef66bf6894037f-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "c5c454ea6ba836e4a67f5f5ac806a144", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "505", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:25:52 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "16c056e2-7e1d-486e-b9b5-6bc4bf2fac51", + "x-ms-ratelimit-remaining-subscription-reads": "11806", + "x-ms-request-id": "eb837ee4-0190-4c80-be02-a8bf82f64448", + "x-ms-routing-request-id": "JAPANEAST:20230217T102553Z:16c056e2-7e1d-486e-b9b5-6bc4bf2fac51" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/140d0400-435f-4828-9581-8cd36360c653", + "name": "140d0400-435f-4828-9581-8cd36360c653", + "status": "Running", + "startTime": "2023-02-17T10:20:59.4727408Z", + "endTime": "2023-02-17T10:21:10.8930649Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterDelete", + "RootActivityId": "a401b2b4-94b1-47cd-805c-37889a072128", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/140d0400-435f-4828-9581-8cd36360c653?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-d4bfa1af85212cedd571d505f0763c83-8507b5c69d5c2cb7-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "52f31fb40d7fb61bc8d9cb684f4a866e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "505", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:26:24 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "56fddc82-9aca-46f8-856c-3fb97296360e", + "x-ms-ratelimit-remaining-subscription-reads": "11805", + "x-ms-request-id": "f469f617-4650-4aa1-8296-ea99a18d1d3c", + "x-ms-routing-request-id": "JAPANEAST:20230217T102625Z:56fddc82-9aca-46f8-856c-3fb97296360e" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/140d0400-435f-4828-9581-8cd36360c653", + "name": "140d0400-435f-4828-9581-8cd36360c653", + "status": "Running", + "startTime": "2023-02-17T10:20:59.4727408Z", + "endTime": "2023-02-17T10:21:10.8930649Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterDelete", + "RootActivityId": "a401b2b4-94b1-47cd-805c-37889a072128", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/140d0400-435f-4828-9581-8cd36360c653?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-d4bfa1af85212cedd571d505f0763c83-532b9d506489da3c-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "1a94792f3f214f412555c4d31ee104d9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "505", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:26:57 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6b640ccd-e3c8-462e-b501-895ac3f981bd", + "x-ms-ratelimit-remaining-subscription-reads": "11804", + "x-ms-request-id": "f0d4a840-fb9a-4185-8faa-98da6491a871", + "x-ms-routing-request-id": "JAPANEAST:20230217T102657Z:6b640ccd-e3c8-462e-b501-895ac3f981bd" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/140d0400-435f-4828-9581-8cd36360c653", + "name": "140d0400-435f-4828-9581-8cd36360c653", + "status": "Running", + "startTime": "2023-02-17T10:20:59.4727408Z", + "endTime": "2023-02-17T10:21:10.8930649Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterDelete", + "RootActivityId": "a401b2b4-94b1-47cd-805c-37889a072128", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/140d0400-435f-4828-9581-8cd36360c653?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-d4bfa1af85212cedd571d505f0763c83-a353394b362048fc-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "d9829481f7e8dc6d390efcce9f7ce65c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "505", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:27:29 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f5d8cee9-2db5-4510-8a0a-c25bac462dff", + "x-ms-ratelimit-remaining-subscription-reads": "11803", + "x-ms-request-id": "043e0611-0dae-46c7-91a1-a4ff784d9305", + "x-ms-routing-request-id": "JAPANEAST:20230217T102730Z:f5d8cee9-2db5-4510-8a0a-c25bac462dff" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/140d0400-435f-4828-9581-8cd36360c653", + "name": "140d0400-435f-4828-9581-8cd36360c653", + "status": "Running", + "startTime": "2023-02-17T10:20:59.4727408Z", + "endTime": "2023-02-17T10:21:10.8930649Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterDelete", + "RootActivityId": "a401b2b4-94b1-47cd-805c-37889a072128", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/140d0400-435f-4828-9581-8cd36360c653?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-d4bfa1af85212cedd571d505f0763c83-14a39d8bd9f95c48-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "4e2af0f986717522dda32c29494898e7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "505", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:28:01 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e09d3bb9-224a-401e-b59c-3f60370e4b46", + "x-ms-ratelimit-remaining-subscription-reads": "11802", + "x-ms-request-id": "4288384f-428e-496d-a894-61bc70e2a4c1", + "x-ms-routing-request-id": "JAPANEAST:20230217T102802Z:e09d3bb9-224a-401e-b59c-3f60370e4b46" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/140d0400-435f-4828-9581-8cd36360c653", + "name": "140d0400-435f-4828-9581-8cd36360c653", + "status": "Running", + "startTime": "2023-02-17T10:20:59.4727408Z", + "endTime": "2023-02-17T10:21:10.8930649Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterDelete", + "RootActivityId": "a401b2b4-94b1-47cd-805c-37889a072128", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/140d0400-435f-4828-9581-8cd36360c653?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-d4bfa1af85212cedd571d505f0763c83-99d5e6f3613094b5-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "bbe6f2d5acc838860cb8e1134273b0a9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "505", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:28:34 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5c082798-dcca-4cc7-8155-49f7e4921478", + "x-ms-ratelimit-remaining-subscription-reads": "11801", + "x-ms-request-id": "051c4ec6-d6df-4543-9e97-bb739a4ca69c", + "x-ms-routing-request-id": "JAPANEAST:20230217T102834Z:5c082798-dcca-4cc7-8155-49f7e4921478" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/140d0400-435f-4828-9581-8cd36360c653", + "name": "140d0400-435f-4828-9581-8cd36360c653", + "status": "Running", + "startTime": "2023-02-17T10:20:59.4727408Z", + "endTime": "2023-02-17T10:21:10.8930649Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterDelete", + "RootActivityId": "a401b2b4-94b1-47cd-805c-37889a072128", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/140d0400-435f-4828-9581-8cd36360c653?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-d4bfa1af85212cedd571d505f0763c83-47773799aa6e34a4-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "2dd9686eb5b6fa67720cfb45ca4393f0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "505", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:29:06 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "107f02a9-ccac-4c4f-ac68-503f20c8c2a6", + "x-ms-ratelimit-remaining-subscription-reads": "11800", + "x-ms-request-id": "13132c97-0a2f-412c-8136-910c33ae4f7a", + "x-ms-routing-request-id": "JAPANEAST:20230217T102906Z:107f02a9-ccac-4c4f-ac68-503f20c8c2a6" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/140d0400-435f-4828-9581-8cd36360c653", + "name": "140d0400-435f-4828-9581-8cd36360c653", + "status": "Running", + "startTime": "2023-02-17T10:20:59.4727408Z", + "endTime": "2023-02-17T10:21:10.8930649Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterDelete", + "RootActivityId": "a401b2b4-94b1-47cd-805c-37889a072128", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/140d0400-435f-4828-9581-8cd36360c653?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-d4bfa1af85212cedd571d505f0763c83-f931bce096f8153c-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "acf815752b954c946af242b9a50f336a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "505", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:29:38 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "bb187a87-c97f-4058-8232-c1e45f69f6f4", + "x-ms-ratelimit-remaining-subscription-reads": "11799", + "x-ms-request-id": "69027799-9a64-4f2a-be5b-857378efb836", + "x-ms-routing-request-id": "JAPANEAST:20230217T102939Z:bb187a87-c97f-4058-8232-c1e45f69f6f4" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/140d0400-435f-4828-9581-8cd36360c653", + "name": "140d0400-435f-4828-9581-8cd36360c653", + "status": "Running", + "startTime": "2023-02-17T10:20:59.4727408Z", + "endTime": "2023-02-17T10:21:10.8930649Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterDelete", + "RootActivityId": "a401b2b4-94b1-47cd-805c-37889a072128", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/140d0400-435f-4828-9581-8cd36360c653?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-d4bfa1af85212cedd571d505f0763c83-688bb00a218f57a2-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "e1ba82f26a6e20308beb49bbb1406ec8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "505", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:30:10 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "055e763b-c2fd-47ff-991c-1935a82ed788", + "x-ms-ratelimit-remaining-subscription-reads": "11807", + "x-ms-request-id": "13a624bf-bbae-4a6a-9245-d3ae0d42d27d", + "x-ms-routing-request-id": "JAPANEAST:20230217T103011Z:055e763b-c2fd-47ff-991c-1935a82ed788" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/140d0400-435f-4828-9581-8cd36360c653", + "name": "140d0400-435f-4828-9581-8cd36360c653", + "status": "Running", + "startTime": "2023-02-17T10:20:59.4727408Z", + "endTime": "2023-02-17T10:21:10.8930649Z", + "percentComplete": 0.5, + "properties": { + "OperationKind": "ClusterDelete", + "RootActivityId": "a401b2b4-94b1-47cd-805c-37889a072128", + "provisioningState": "Running", + "OperationState": "InProgress" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East%20US%202/kustoPoolOperationResults/140d0400-435f-4828-9581-8cd36360c653?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-d4bfa1af85212cedd571d505f0763c83-4b78231fca269966-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "2c9ef025047a4214d38dc3c473ad5562", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "508", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:30:42 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5a01a3f3-2c58-44df-bc9b-c4c49d403092", + "x-ms-ratelimit-remaining-subscription-reads": "11806", + "x-ms-request-id": "1b2d3076-520f-410f-b334-6f27ae11dd82", + "x-ms-routing-request-id": "JAPANEAST:20230217T103043Z:5a01a3f3-2c58-44df-bc9b-c4c49d403092" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/East US 2/kustoPoolOperationResults/140d0400-435f-4828-9581-8cd36360c653", + "name": "140d0400-435f-4828-9581-8cd36360c653", + "status": "Succeeded", + "startTime": "2023-02-17T10:20:59.4727408Z", + "endTime": "2023-02-17T10:30:23.1646489Z", + "percentComplete": 1.0, + "properties": { + "OperationKind": "ClusterDelete", + "RootActivityId": "a401b2b4-94b1-47cd-805c-37889a072128", + "provisioningState": "Succeeded", + "OperationState": "Completed" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6465/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace2640/kustoPools?api-version=2021-06-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "475391d9b2880a81e5d820a9e2d89b29", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "12", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:30:43 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d3d8436d-dd08-46c0-984d-dcae41db3bc1", + "x-ms-ratelimit-remaining-subscription-reads": "11805", + "x-ms-request-id": "9d2d57a5-4e58-450e-b006-119ecc812c76", + "x-ms-routing-request-id": "JAPANEAST:20230217T103044Z:d3d8436d-dd08-46c0-984d-dcae41db3bc1" + }, + "ResponseBody": { + "value": [] + } + } + ], + "Variables": { + "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com/", + "RandomSeed": "2092703777", + "RESOURCE_MANAGER_URL": null, + "SUBSCRIPTION_ID": "051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3" + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/tests/SessionRecords/SqlpoolOperationTests/TestSqlPoolLifeCycle.json b/sdk/synapse/Azure.ResourceManager.Synapse/tests/SessionRecords/SqlpoolOperationTests/TestSqlPoolLifeCycle.json new file mode 100644 index 0000000000000..c427c7cdf3abe --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/tests/SessionRecords/SqlpoolOperationTests/TestSqlPoolLifeCycle.json @@ -0,0 +1,2059 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3?api-version=2021-01-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-691647e1bd2de4e3ebeab74328b76103-7912baece2122aa4-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "90ea2b8bd94046c3e9931b829fd69cde", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "492", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:30:49 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "abb90a9b-2371-4164-b780-dab43c7e2eee", + "x-ms-ratelimit-remaining-subscription-reads": "11804", + "x-ms-request-id": "abb90a9b-2371-4164-b780-dab43c7e2eee", + "x-ms-routing-request-id": "JAPANEAST:20230217T103050Z:abb90a9b-2371-4164-b780-dab43c7e2eee" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3", + "authorizationSource": "RoleBased", + "managedByTenants": [ + { + "tenantId": "2f4a9838-26b7-47ee-be60-ccc1fdec5953" + } + ], + "tags": { + "sub_tagname_1": "sub_tagvalue_1" + }, + "subscriptionId": "051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Synapse Web Tooling", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourcegroups/synapsesdkrp375?api-version=**", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "22", + "Content-Type": "application/json", + "traceparent": "00-522d211b0487b681775de3d8df7f2095-e17c02560a73434d-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "8ca11a371be5a8cf0228b45cebbf09d5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "eastus2" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "228", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:30:53 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "bd781eaf-dcff-4780-9437-d3f91ad7ec4e", + "x-ms-ratelimit-remaining-subscription-writes": "1188", + "x-ms-request-id": "bd781eaf-dcff-4780-9437-d3f91ad7ec4e", + "x-ms-routing-request-id": "JAPANEAST:20230217T103053Z:bd781eaf-dcff-4780-9437-d3f91ad7ec4e" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375", + "name": "synapsesdkrp375", + "type": "Microsoft.Resources/resourceGroups", + "location": "eastus2", + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Storage/storageAccounts/synapsesdkstorage5012?api-version=2022-09-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "87", + "Content-Type": "application/json", + "traceparent": "00-75ced92b85a663eed231b9dac7977f31-ff3fc19690e67653-00", + "User-Agent": "azsdk-net-ResourceManager.Storage/1.1.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "9973c08bf16cc095ff690b1abf7feee1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "sku": { + "name": "Standard_GRS" + }, + "kind": "StorageV2", + "location": "eastus2", + "properties": {} + }, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Content-Type": "text/plain; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:30:58 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Storage/locations/eastus2/asyncoperations/a89bd121-846d-40a5-b67f-f016029aaf43?monitor=true\u0026api-version=2022-09-01", + "Pragma": "no-cache", + "Retry-After": "17", + "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "9973c08bf16cc095ff690b1abf7feee1", + "x-ms-correlation-request-id": "e20f2ae9-2c85-4132-b047-08a91d2321b8", + "x-ms-ratelimit-remaining-subscription-writes": "1187", + "x-ms-request-id": "a89bd121-846d-40a5-b67f-f016029aaf43", + "x-ms-routing-request-id": "JAPANEAST:20230217T103059Z:e20f2ae9-2c85-4132-b047-08a91d2321b8" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Storage/locations/eastus2/asyncoperations/a89bd121-846d-40a5-b67f-f016029aaf43?monitor=true\u0026api-version=2022-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-75ced92b85a663eed231b9dac7977f31-86679e8ce8b6f8b0-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "72f309933669462785e18c7b10b4e983", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Content-Type": "text/plain; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:30:58 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Storage/locations/eastus2/asyncoperations/a89bd121-846d-40a5-b67f-f016029aaf43?monitor=true\u0026api-version=2022-09-01", + "Pragma": "no-cache", + "Retry-After": "17", + "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "72f309933669462785e18c7b10b4e983", + "x-ms-correlation-request-id": "2ca665b2-430a-4429-bf3a-ece1b6d747d0", + "x-ms-ratelimit-remaining-subscription-reads": "11803", + "x-ms-request-id": "5352d15a-f1c9-4923-8bdc-97a01ce851b9", + "x-ms-routing-request-id": "JAPANEAST:20230217T103059Z:2ca665b2-430a-4429-bf3a-ece1b6d747d0" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Storage/locations/eastus2/asyncoperations/a89bd121-846d-40a5-b67f-f016029aaf43?monitor=true\u0026api-version=2022-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-75ced92b85a663eed231b9dac7977f31-121d42801dd7abba-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "2bc0d239f86c878c66b4a6ce0a2b58d9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1527", + "Content-Type": "application/json", + "Date": "Fri, 17 Feb 2023 10:31:15 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "2bc0d239f86c878c66b4a6ce0a2b58d9", + "x-ms-correlation-request-id": "e0f008c0-375c-4a92-b653-06ea83b3b68d", + "x-ms-ratelimit-remaining-subscription-reads": "11802", + "x-ms-request-id": "b03de26e-f253-4045-af13-6dd200df70a5", + "x-ms-routing-request-id": "JAPANEAST:20230217T103116Z:e0f008c0-375c-4a92-b653-06ea83b3b68d" + }, + "ResponseBody": { + "sku": { + "name": "Standard_GRS", + "tier": "Standard" + }, + "kind": "StorageV2", + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Storage/storageAccounts/synapsesdkstorage5012", + "name": "synapsesdkstorage5012", + "type": "Microsoft.Storage/storageAccounts", + "location": "eastus2", + "tags": {}, + "properties": { + "keyCreationTime": { + "key1": "2023-02-17T10:30:57.3922851Z", + "key2": "2023-02-17T10:30:57.3922851Z" + }, + "privateEndpointConnections": [], + "minimumTlsVersion": "TLS1_0", + "allowBlobPublicAccess": true, + "networkAcls": { + "bypass": "AzureServices", + "virtualNetworkRules": [], + "ipRules": [], + "defaultAction": "Allow" + }, + "supportsHttpsTrafficOnly": true, + "encryption": { + "services": { + "file": { + "keyType": "Account", + "enabled": true, + "lastEnabledTime": "2023-02-17T10:30:57.7985181Z" + }, + "blob": { + "keyType": "Account", + "enabled": true, + "lastEnabledTime": "2023-02-17T10:30:57.7985181Z" + } + }, + "keySource": "Microsoft.Storage" + }, + "accessTier": "Hot", + "provisioningState": "Succeeded", + "creationTime": "2023-02-17T10:30:57.2672234Z", + "primaryEndpoints": { + "dfs": "https://synapsesdkstorage5012.dfs.core.windows.net/", + "web": "https://synapsesdkstorage5012.z20.web.core.windows.net/", + "blob": "https://synapsesdkstorage5012.blob.core.windows.net/", + "queue": "https://synapsesdkstorage5012.queue.core.windows.net/", + "table": "https://synapsesdkstorage5012.table.core.windows.net/", + "file": "https://synapsesdkstorage5012.file.core.windows.net/" + }, + "primaryLocation": "eastus2", + "statusOfPrimary": "available", + "secondaryLocation": "centralus", + "statusOfSecondary": "available" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Storage/storageAccounts/synapsesdkstorage5012/listKeys?api-version=2022-09-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "0", + "traceparent": "00-99b5ad3c8fc4c734d039c1b0acf5b4f0-e48000aaa9e4998c-00", + "User-Agent": "azsdk-net-ResourceManager.Storage/1.1.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "b686f4b57c8c6577990c8b6777deae3e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "380", + "Content-Type": "application/json", + "Date": "Fri, 17 Feb 2023 10:31:17 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "b686f4b57c8c6577990c8b6777deae3e", + "x-ms-correlation-request-id": "71b3f6a0-d289-4097-aca3-56b2a8c34f61", + "x-ms-ratelimit-remaining-subscription-resource-requests": "11997", + "x-ms-request-id": "4e6577c3-346c-4570-84df-f9a7c750d3a9", + "x-ms-routing-request-id": "JAPANEAST:20230217T103117Z:71b3f6a0-d289-4097-aca3-56b2a8c34f61" + }, + "ResponseBody": { + "keys": [ + { + "creationTime": "2023-02-17T10:30:57.3922851Z", + "keyName": "key1", + "value": "ik\u002B12GqRPmg0\u002BtsgvBCYThykrK5mOH243\u002BS1IJC4ku/2qR4\u002BxTK8qT6c8gl9BO0qMUBBTT456X0w\u002BAStlb0oWA==", + "permissions": "FULL" + }, + { + "creationTime": "2023-02-17T10:30:57.3922851Z", + "keyName": "key2", + "value": "BVG7ZFwi8ndpLkSs69e/6TKmW2yZVi7zKjN9QL\u002BuX\u002Bi7tnPFxDJ45a6\u002BGDnTgITH7djpyvjWfd7z\u002BAStcHdmUw==", + "permissions": "FULL" + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915?api-version=2021-06-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "301", + "Content-Type": "application/json", + "traceparent": "00-8ab5ffd6eaada5034248c203c4ee825c-5b4424673c061ec9-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "65953063aa897c9b6c0cb58f583c5a88", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "identity": { + "type": "SystemAssigned" + }, + "tags": {}, + "location": "eastus2", + "properties": { + "defaultDataLakeStorage": { + "accountUrl": "https://synapsesdkstorage5012.dfs.core.windows.net/", + "filesystem": "synapsesdkfilesys1669" + }, + "sqlAdministratorLoginPassword": "Password1!597", + "sqlAdministratorLogin": "sshuser5847" + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/operationStatuses/b89c6a1b-e629-47f7-85f8-cffc280cb3d6?api-version=2021-06-01", + "Cache-Control": "no-cache", + "Content-Length": "1475", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:31:24 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "65953063aa897c9b6c0cb58f583c5a88", + "x-ms-correlation-request-id": "b2f2b38b-3b63-4a39-b2a9-a052816cdab9", + "x-ms-ratelimit-remaining-subscription-writes": "1186", + "x-ms-request-id": "6e58d80f-4a13-4daa-add2-02222bfbe98b", + "x-ms-routing-request-id": "JAPANEAST:20230217T103124Z:b2f2b38b-3b63-4a39-b2a9-a052816cdab9" + }, + "ResponseBody": { + "properties": { + "defaultDataLakeStorage": { + "createManagedPrivateEndpoint": false, + "accountUrl": "https://synapsesdkstorage5012.dfs.core.windows.net/", + "filesystem": "synapsesdkfilesys1669" + }, + "encryption": { + "doubleEncryptionEnabled": false + }, + "provisioningState": "Provisioning", + "connectivityEndpoints": { + "web": "https://web.azuresynapse.net?workspace=%2fsubscriptions%2f051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3%2fresourceGroups%2fsynapsesdkrp375%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fsynapsesdkworkspace9915", + "dev": "https://synapsesdkworkspace9915.dev.azuresynapse.net", + "sqlOnDemand": "synapsesdkworkspace9915-ondemand.sql.azuresynapse.net", + "sql": "synapsesdkworkspace9915.sql.azuresynapse.net" + }, + "managedResourceGroupName": "synapseworkspace-managedrg-35f984a1-b826-457a-ad63-4a9f86ba1b16", + "privateEndpointConnections": [], + "workspaceUID": "98e41106-b936-47a8-a58a-ea365e24d6c3", + "extraProperties": { + "WorkspaceType": "Normal" + }, + "publicNetworkAccess": "Enabled", + "cspWorkspaceAdminProperties": { + "initialWorkspaceAdminObjectId": "5adcf4d8-4923-420e-ab0b-f6e5fc718b42" + }, + "trustedServiceBypassEnabled": false + }, + "type": "Microsoft.Synapse/workspaces", + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915", + "location": "eastus2", + "name": "synapsesdkworkspace9915", + "identity": { + "type": "SystemAssigned", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "principalId": "bbc0dbbb-60f6-45b0-b5b5-f86aaabafee1" + }, + "tags": {} + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/operationStatuses/b89c6a1b-e629-47f7-85f8-cffc280cb3d6?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-8ab5ffd6eaada5034248c203c4ee825c-7665b2f4e26a21af-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "fba61a6773c34a2ceb391f70c2d540d0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:31:24 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "fba61a6773c34a2ceb391f70c2d540d0", + "x-ms-correlation-request-id": "65f8207b-5513-467a-ba31-d03f4a705503", + "x-ms-ratelimit-remaining-subscription-reads": "11801", + "x-ms-request-id": "a2fca326-99a3-4747-a282-833279eb076c", + "x-ms-routing-request-id": "JAPANEAST:20230217T103125Z:65f8207b-5513-467a-ba31-d03f4a705503" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/operationStatuses/b89c6a1b-e629-47f7-85f8-cffc280cb3d6?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-8ab5ffd6eaada5034248c203c4ee825c-afc24c70fd2e5ef1-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "18c4de3010936c80723a0bf64a2e575c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:31:26 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "18c4de3010936c80723a0bf64a2e575c", + "x-ms-correlation-request-id": "5e73ffa8-5b2b-46cb-a8d6-e53fb655521d", + "x-ms-ratelimit-remaining-subscription-reads": "11800", + "x-ms-request-id": "6add0585-1288-455f-8285-eab5b422c192", + "x-ms-routing-request-id": "JAPANEAST:20230217T103126Z:5e73ffa8-5b2b-46cb-a8d6-e53fb655521d" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/operationStatuses/b89c6a1b-e629-47f7-85f8-cffc280cb3d6?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-8ab5ffd6eaada5034248c203c4ee825c-a015630c8f6a1c84-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "3e28ae845f953fc59ad042f9d74d9784", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:31:27 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "3e28ae845f953fc59ad042f9d74d9784", + "x-ms-correlation-request-id": "e944cd6a-58f1-4a43-9ae2-9966031def89", + "x-ms-ratelimit-remaining-subscription-reads": "11799", + "x-ms-request-id": "6bc36b6d-daab-4a16-953c-3a178493c140", + "x-ms-routing-request-id": "JAPANEAST:20230217T103127Z:e944cd6a-58f1-4a43-9ae2-9966031def89" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/operationStatuses/b89c6a1b-e629-47f7-85f8-cffc280cb3d6?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-8ab5ffd6eaada5034248c203c4ee825c-dd2f1d1fb303442c-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "453c8f516f4b577299398888683500bc", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:31:29 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "453c8f516f4b577299398888683500bc", + "x-ms-correlation-request-id": "588f58c7-c006-43a2-8515-d81cd2037908", + "x-ms-ratelimit-remaining-subscription-reads": "11798", + "x-ms-request-id": "ba6bb530-0033-4db0-86af-adcc811fda67", + "x-ms-routing-request-id": "JAPANEAST:20230217T103129Z:588f58c7-c006-43a2-8515-d81cd2037908" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/operationStatuses/b89c6a1b-e629-47f7-85f8-cffc280cb3d6?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-8ab5ffd6eaada5034248c203c4ee825c-b1dd0354bab201ef-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "14ebc2e102add13a19847ec2ce879525", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:31:31 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "14ebc2e102add13a19847ec2ce879525", + "x-ms-correlation-request-id": "e605a000-f8e8-481b-a05e-bb79d09b4f5a", + "x-ms-ratelimit-remaining-subscription-reads": "11797", + "x-ms-request-id": "56917757-7c95-4b2c-99b8-68e92c9523d6", + "x-ms-routing-request-id": "JAPANEAST:20230217T103131Z:e605a000-f8e8-481b-a05e-bb79d09b4f5a" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/operationStatuses/b89c6a1b-e629-47f7-85f8-cffc280cb3d6?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-8ab5ffd6eaada5034248c203c4ee825c-0112a1632e5deb9d-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "bba586a211f215113bd0a45bd63cd764", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:31:35 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "bba586a211f215113bd0a45bd63cd764", + "x-ms-correlation-request-id": "c94ada2d-1d5d-4759-b70d-e44771a96358", + "x-ms-ratelimit-remaining-subscription-reads": "11796", + "x-ms-request-id": "8441c442-38ac-4f02-b2d7-e277da5156cd", + "x-ms-routing-request-id": "JAPANEAST:20230217T103136Z:c94ada2d-1d5d-4759-b70d-e44771a96358" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/operationStatuses/b89c6a1b-e629-47f7-85f8-cffc280cb3d6?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-8ab5ffd6eaada5034248c203c4ee825c-f01a84ad3a4c2a03-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "141785d083624fd7546a2cc6f1b08812", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:31:44 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "141785d083624fd7546a2cc6f1b08812", + "x-ms-correlation-request-id": "82d6513f-66f5-494c-adc4-3d0848b68823", + "x-ms-ratelimit-remaining-subscription-reads": "11795", + "x-ms-request-id": "3ca80b43-b0a7-43c7-9ec5-6c9ea4b52e2d", + "x-ms-routing-request-id": "JAPANEAST:20230217T103144Z:82d6513f-66f5-494c-adc4-3d0848b68823" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/operationStatuses/b89c6a1b-e629-47f7-85f8-cffc280cb3d6?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-8ab5ffd6eaada5034248c203c4ee825c-e9d1bd694a8518ad-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "e1e563a44490d0cab1d6d8dc5edefbdc", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:32:00 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "e1e563a44490d0cab1d6d8dc5edefbdc", + "x-ms-correlation-request-id": "f905ac12-08bb-4fad-9559-69baa626d1ac", + "x-ms-ratelimit-remaining-subscription-reads": "11794", + "x-ms-request-id": "a6092af4-3e59-4304-a382-3b813dabf6b4", + "x-ms-routing-request-id": "JAPANEAST:20230217T103201Z:f905ac12-08bb-4fad-9559-69baa626d1ac" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/operationStatuses/b89c6a1b-e629-47f7-85f8-cffc280cb3d6?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-8ab5ffd6eaada5034248c203c4ee825c-e7b28d1e2ebd5205-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "48f219ad806f1fc2af566687e54a238b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:32:33 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "48f219ad806f1fc2af566687e54a238b", + "x-ms-correlation-request-id": "e53a0e10-b072-42fe-ac5e-bb032d09b5f5", + "x-ms-ratelimit-remaining-subscription-reads": "11793", + "x-ms-request-id": "9f885d54-da8c-4b69-8d47-89c30197d1be", + "x-ms-routing-request-id": "JAPANEAST:20230217T103233Z:e53a0e10-b072-42fe-ac5e-bb032d09b5f5" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/operationStatuses/b89c6a1b-e629-47f7-85f8-cffc280cb3d6?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-8ab5ffd6eaada5034248c203c4ee825c-bc16738d8d412468-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "73b79148f5568bd4ba47638babfaf175", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:33:05 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "73b79148f5568bd4ba47638babfaf175", + "x-ms-correlation-request-id": "f143abe6-1063-4980-8d26-bc26e3332144", + "x-ms-ratelimit-remaining-subscription-reads": "11792", + "x-ms-request-id": "23960e9b-18bf-4db3-9d79-cddffd352f83", + "x-ms-routing-request-id": "JAPANEAST:20230217T103305Z:f143abe6-1063-4980-8d26-bc26e3332144" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/operationStatuses/b89c6a1b-e629-47f7-85f8-cffc280cb3d6?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-8ab5ffd6eaada5034248c203c4ee825c-f61a520f56f6280e-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "d719506f40be24a2a0c63239dd42eb66", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:33:37 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "d719506f40be24a2a0c63239dd42eb66", + "x-ms-correlation-request-id": "c96aad88-394d-4fa7-9fd9-ed51a845d56f", + "x-ms-ratelimit-remaining-subscription-reads": "11791", + "x-ms-request-id": "507e64b8-f577-4138-9f41-8c86f898241b", + "x-ms-routing-request-id": "JAPANEAST:20230217T103338Z:c96aad88-394d-4fa7-9fd9-ed51a845d56f" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/operationStatuses/b89c6a1b-e629-47f7-85f8-cffc280cb3d6?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-8ab5ffd6eaada5034248c203c4ee825c-43c120961da29c32-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "cc944cb28827b78545668d281c3773b4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "22", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:34:10 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "cc944cb28827b78545668d281c3773b4", + "x-ms-correlation-request-id": "6d04faef-7991-4502-8fcc-cbd6ceaf4847", + "x-ms-ratelimit-remaining-subscription-reads": "11790", + "x-ms-request-id": "c53f335e-e361-4982-84dd-e1a8ac0b5127", + "x-ms-routing-request-id": "JAPANEAST:20230217T103410Z:6d04faef-7991-4502-8fcc-cbd6ceaf4847" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-8ab5ffd6eaada5034248c203c4ee825c-e35f033bb59001bf-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "9518f1654c3008cdee92d290c39aad77", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1533", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:34:10 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "9518f1654c3008cdee92d290c39aad77", + "x-ms-correlation-request-id": "ec4af723-8481-49c6-a8bb-9450f987e39c", + "x-ms-ratelimit-remaining-subscription-reads": "11789", + "x-ms-request-id": "64fc5ef1-b886-4ecd-a622-80ca83cced9b", + "x-ms-routing-request-id": "JAPANEAST:20230217T103411Z:ec4af723-8481-49c6-a8bb-9450f987e39c" + }, + "ResponseBody": { + "properties": { + "defaultDataLakeStorage": { + "createManagedPrivateEndpoint": false, + "accountUrl": "https://synapsesdkstorage5012.dfs.core.windows.net/", + "filesystem": "synapsesdkfilesys1669" + }, + "encryption": { + "doubleEncryptionEnabled": false + }, + "provisioningState": "Succeeded", + "connectivityEndpoints": { + "web": "https://web.azuresynapse.net?workspace=%2fsubscriptions%2f051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3%2fresourceGroups%2fsynapsesdkrp375%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fsynapsesdkworkspace9915", + "dev": "https://synapsesdkworkspace9915.dev.azuresynapse.net", + "sqlOnDemand": "synapsesdkworkspace9915-ondemand.sql.azuresynapse.net", + "sql": "synapsesdkworkspace9915.sql.azuresynapse.net" + }, + "managedResourceGroupName": "synapseworkspace-managedrg-35f984a1-b826-457a-ad63-4a9f86ba1b16", + "sqlAdministratorLogin": "sshuser5847", + "privateEndpointConnections": [], + "workspaceUID": "98e41106-b936-47a8-a58a-ea365e24d6c3", + "extraProperties": { + "WorkspaceType": "Normal", + "IsScopeEnabled": false + }, + "publicNetworkAccess": "Enabled", + "cspWorkspaceAdminProperties": { + "initialWorkspaceAdminObjectId": "5adcf4d8-4923-420e-ab0b-f6e5fc718b42" + }, + "trustedServiceBypassEnabled": false + }, + "type": "Microsoft.Synapse/workspaces", + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915", + "location": "eastus2", + "name": "synapsesdkworkspace9915", + "identity": { + "type": "SystemAssigned", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "principalId": "bbc0dbbb-60f6-45b0-b5b5-f86aaabafee1" + }, + "tags": {} + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/sqlPools/sqlpool3743?api-version=2021-06-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "72", + "Content-Type": "application/json", + "traceparent": "00-6b8bb6db637f3d758c6ff4317b64b64b-f066790533b4212c-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "655ed9fd4d24cae7629257b27a076952", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "sku": { + "name": "DW200c" + }, + "tags": {}, + "location": "eastus2", + "properties": {} + }, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Allow-Headers": [ + "Location", + "Retry-After" + ], + "Access-Control-Expose-Headers": [ + "Location", + "Retry-After" + ], + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/operationStatuses/f03df0f5-5e7a-4e97-8989-53f88383083c?api-version=2021-06-01", + "Cache-Control": "no-cache", + "Content-Length": "384", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:34:13 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/operationResults/f03df0f5-5e7a-4e97-8989-53f88383083c?api-version=2021-06-01", + "Pragma": "no-cache", + "Retry-After": "10", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "655ed9fd4d24cae7629257b27a076952", + "x-ms-correlation-request-id": "6b045c5b-fcd6-4b95-8311-8f0f3cccb6d9", + "x-ms-ratelimit-remaining-subscription-writes": "1185", + "x-ms-request-id": "3ce1527d-c38a-4e55-b2a9-cba1045590f3", + "x-ms-routing-request-id": "JAPANEAST:20230217T103413Z:6b045c5b-fcd6-4b95-8311-8f0f3cccb6d9" + }, + "ResponseBody": { + "properties": { + "maxSizeBytes": 0, + "creationDate": "0001-01-01T00:00:00", + "provisioningState": "Provisioning" + }, + "sku": { + "name": "DW200c", + "capacity": 0 + }, + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/sqlPools/sqlpool3743", + "name": "sqlpool3743", + "type": "Microsoft.Synapse/workspaces/sqlPools" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/operationStatuses/f03df0f5-5e7a-4e97-8989-53f88383083c?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-6b8bb6db637f3d758c6ff4317b64b64b-ba1bd1a5dc34a020-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "5d1fcb154e14a34030caceb97556748b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:34:13 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "5d1fcb154e14a34030caceb97556748b", + "x-ms-correlation-request-id": "128f7148-0ff6-4e92-b7e7-05945715fb30", + "x-ms-ratelimit-remaining-subscription-reads": "11788", + "x-ms-request-id": "97e60d04-3cb5-46e8-985a-75cf14d7b2be", + "x-ms-routing-request-id": "JAPANEAST:20230217T103414Z:128f7148-0ff6-4e92-b7e7-05945715fb30" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/operationStatuses/f03df0f5-5e7a-4e97-8989-53f88383083c?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-6b8bb6db637f3d758c6ff4317b64b64b-903adfb656417b73-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "c5453d684dc1c70673dfd947b931d56e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:34:15 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "c5453d684dc1c70673dfd947b931d56e", + "x-ms-correlation-request-id": "4a46f173-cf95-4aec-a7b4-c1269041b4b3", + "x-ms-ratelimit-remaining-subscription-reads": "11787", + "x-ms-request-id": "f41fe413-4fd2-45fb-9792-63a9ea146789", + "x-ms-routing-request-id": "JAPANEAST:20230217T103415Z:4a46f173-cf95-4aec-a7b4-c1269041b4b3" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/operationStatuses/f03df0f5-5e7a-4e97-8989-53f88383083c?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-6b8bb6db637f3d758c6ff4317b64b64b-ce109ea39597c71e-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "ae9c9ee80be82e3d9449f98b67ad0936", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:34:16 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "ae9c9ee80be82e3d9449f98b67ad0936", + "x-ms-correlation-request-id": "7399d411-d9a0-4387-b8de-87e07f5a44d7", + "x-ms-ratelimit-remaining-subscription-reads": "11786", + "x-ms-request-id": "68496615-1d7a-42a8-af2c-a20ccbbea742", + "x-ms-routing-request-id": "JAPANEAST:20230217T103416Z:7399d411-d9a0-4387-b8de-87e07f5a44d7" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/operationStatuses/f03df0f5-5e7a-4e97-8989-53f88383083c?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-6b8bb6db637f3d758c6ff4317b64b64b-11c259601b5969d1-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "b74c0969e4aec8f7c558ea3475f9eaff", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:34:17 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "b74c0969e4aec8f7c558ea3475f9eaff", + "x-ms-correlation-request-id": "bd3f026b-e679-48d6-a4d9-0d94dec1375a", + "x-ms-ratelimit-remaining-subscription-reads": "11785", + "x-ms-request-id": "ab761f8b-899b-4745-b9e7-becf1732b3fc", + "x-ms-routing-request-id": "JAPANEAST:20230217T103418Z:bd3f026b-e679-48d6-a4d9-0d94dec1375a" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/operationStatuses/f03df0f5-5e7a-4e97-8989-53f88383083c?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-6b8bb6db637f3d758c6ff4317b64b64b-29d57d4141bad5d8-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "d7d160f4c5b95da200173178537a60c5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:34:20 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "d7d160f4c5b95da200173178537a60c5", + "x-ms-correlation-request-id": "b395ad2f-ce23-48be-8f49-8a01afe28aa1", + "x-ms-ratelimit-remaining-subscription-reads": "11784", + "x-ms-request-id": "64568147-5af4-4066-9e80-5f28417f9a0d", + "x-ms-routing-request-id": "JAPANEAST:20230217T103420Z:b395ad2f-ce23-48be-8f49-8a01afe28aa1" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/operationStatuses/f03df0f5-5e7a-4e97-8989-53f88383083c?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-6b8bb6db637f3d758c6ff4317b64b64b-f35feb4942397014-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "afdda3d61ee403bfa6d3e98f2108b99b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:34:24 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "afdda3d61ee403bfa6d3e98f2108b99b", + "x-ms-correlation-request-id": "96d70d1c-c075-4ee2-97d3-a6391868ffc4", + "x-ms-ratelimit-remaining-subscription-reads": "11783", + "x-ms-request-id": "843d08bb-861b-4430-b1e8-d61d8ef0f8c5", + "x-ms-routing-request-id": "JAPANEAST:20230217T103425Z:96d70d1c-c075-4ee2-97d3-a6391868ffc4" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/operationStatuses/f03df0f5-5e7a-4e97-8989-53f88383083c?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-6b8bb6db637f3d758c6ff4317b64b64b-de15307da5dc4a75-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "0696fa5e31dba47c66efb796b37f754a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:34:33 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "0696fa5e31dba47c66efb796b37f754a", + "x-ms-correlation-request-id": "375b12d3-d7f4-4abb-946d-38a0ad28836a", + "x-ms-ratelimit-remaining-subscription-reads": "11782", + "x-ms-request-id": "6f8ebb48-d0e9-457d-a49e-4201b40e0583", + "x-ms-routing-request-id": "JAPANEAST:20230217T103433Z:375b12d3-d7f4-4abb-946d-38a0ad28836a" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/operationStatuses/f03df0f5-5e7a-4e97-8989-53f88383083c?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-6b8bb6db637f3d758c6ff4317b64b64b-f1cb989747b0c1d8-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "d15e24f83a1bd61aa0cd30e5db123cf7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:34:49 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "d15e24f83a1bd61aa0cd30e5db123cf7", + "x-ms-correlation-request-id": "38cb16b4-737d-416f-9ec9-e637a6033ab0", + "x-ms-ratelimit-remaining-subscription-reads": "11781", + "x-ms-request-id": "7c33ec5e-588d-4d94-88d6-49496166d604", + "x-ms-routing-request-id": "JAPANEAST:20230217T103450Z:38cb16b4-737d-416f-9ec9-e637a6033ab0" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/operationStatuses/f03df0f5-5e7a-4e97-8989-53f88383083c?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-6b8bb6db637f3d758c6ff4317b64b64b-859b35798a868cca-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "5919955e59e4a5ea273948f567294f27", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:35:22 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "5919955e59e4a5ea273948f567294f27", + "x-ms-correlation-request-id": "89f6161f-fa78-4d68-b39a-c0486af69666", + "x-ms-ratelimit-remaining-subscription-reads": "11799", + "x-ms-request-id": "e3407592-f2b2-455a-a50b-8b19599260ca", + "x-ms-routing-request-id": "JAPANEAST:20230217T103522Z:89f6161f-fa78-4d68-b39a-c0486af69666" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/operationStatuses/f03df0f5-5e7a-4e97-8989-53f88383083c?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-6b8bb6db637f3d758c6ff4317b64b64b-14fb280935368b2f-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "fc979e5ee7aa237fdfc0660e0196c854", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:35:54 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "fc979e5ee7aa237fdfc0660e0196c854", + "x-ms-correlation-request-id": "fe392075-a439-45fc-8fe2-51af80193c90", + "x-ms-ratelimit-remaining-subscription-reads": "11798", + "x-ms-request-id": "45137403-9d27-4d6b-ab09-210bf07a74b7", + "x-ms-routing-request-id": "JAPANEAST:20230217T103554Z:fe392075-a439-45fc-8fe2-51af80193c90" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/operationStatuses/f03df0f5-5e7a-4e97-8989-53f88383083c?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-6b8bb6db637f3d758c6ff4317b64b64b-631e738742c49642-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "1d38bfb31b669e663ab8aae2f2256f77", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:36:26 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "1d38bfb31b669e663ab8aae2f2256f77", + "x-ms-correlation-request-id": "411cbea8-d492-4934-a383-b1b73c18656f", + "x-ms-ratelimit-remaining-subscription-reads": "11797", + "x-ms-request-id": "9b3655c3-ecbc-4ac9-8f7d-8b6141699249", + "x-ms-routing-request-id": "JAPANEAST:20230217T103627Z:411cbea8-d492-4934-a383-b1b73c18656f" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/operationStatuses/f03df0f5-5e7a-4e97-8989-53f88383083c?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-6b8bb6db637f3d758c6ff4317b64b64b-3d4defbd9ca72615-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "3d87097e3f7b764c16f57923f3dba390", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:36:59 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "3d87097e3f7b764c16f57923f3dba390", + "x-ms-correlation-request-id": "e050729f-1ab1-438d-8f07-f4ec7266d624", + "x-ms-ratelimit-remaining-subscription-reads": "11796", + "x-ms-request-id": "acd42e84-3cbd-42a0-ad7e-31922ba1c170", + "x-ms-routing-request-id": "JAPANEAST:20230217T103659Z:e050729f-1ab1-438d-8f07-f4ec7266d624" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/operationStatuses/f03df0f5-5e7a-4e97-8989-53f88383083c?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-6b8bb6db637f3d758c6ff4317b64b64b-b1f0ef11d777191f-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "a741f47131f042c138f8c1f13d9d31b9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "22", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:37:32 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "a741f47131f042c138f8c1f13d9d31b9", + "x-ms-correlation-request-id": "7564b313-ff92-4652-bb5a-d32601269234", + "x-ms-ratelimit-remaining-subscription-reads": "11795", + "x-ms-request-id": "9534c513-40dd-4326-9f3d-93593df671e8", + "x-ms-routing-request-id": "JAPANEAST:20230217T103732Z:7564b313-ff92-4652-bb5a-d32601269234" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/sqlPools/sqlpool3743?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-6b8bb6db637f3d758c6ff4317b64b64b-e7c83f4014a8f807-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "f88fee518b0f73d873c20770a142ab5e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "519", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:37:33 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "f88fee518b0f73d873c20770a142ab5e", + "x-ms-correlation-request-id": "1adbc8ab-7701-46de-83d8-422fbda2fbef", + "x-ms-ratelimit-remaining-subscription-reads": "11794", + "x-ms-request-id": "15b9d149-56cc-4add-bb6d-4cd9fe2b680f", + "x-ms-routing-request-id": "JAPANEAST:20230217T103733Z:1adbc8ab-7701-46de-83d8-422fbda2fbef" + }, + "ResponseBody": { + "properties": { + "status": "Online", + "maxSizeBytes": 263882790666240, + "collation": "SQL_Latin1_General_CP1_CI_AS", + "creationDate": "2023-02-17T10:37:05.553Z", + "storageAccountType": "GRS", + "provisioningState": "Succeeded" + }, + "sku": { + "name": "DW200c", + "capacity": 0 + }, + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/sqlPools/sqlpool3743", + "name": "sqlpool3743", + "type": "Microsoft.Synapse/workspaces/sqlPools", + "location": "eastus2", + "tags": {} + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/sqlPools/sqlpool3743?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-dfd5dd2f51d0ef3fce511221784daf11-ab8fd30c1ef8605d-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "fe711915c7e44c87474405827e5a3879", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "519", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:37:33 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "fe711915c7e44c87474405827e5a3879", + "x-ms-correlation-request-id": "dbeca1b1-8b56-494a-b7fd-6d908969db0f", + "x-ms-ratelimit-remaining-subscription-reads": "11793", + "x-ms-request-id": "acef4082-4807-42d0-b798-3afcbbac94fc", + "x-ms-routing-request-id": "JAPANEAST:20230217T103733Z:dbeca1b1-8b56-494a-b7fd-6d908969db0f" + }, + "ResponseBody": { + "properties": { + "status": "Online", + "maxSizeBytes": 263882790666240, + "collation": "SQL_Latin1_General_CP1_CI_AS", + "creationDate": "2023-02-17T10:37:05.553Z", + "storageAccountType": "GRS", + "provisioningState": "Succeeded" + }, + "sku": { + "name": "DW200c", + "capacity": 0 + }, + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/sqlPools/sqlpool3743", + "name": "sqlpool3743", + "type": "Microsoft.Synapse/workspaces/sqlPools", + "location": "eastus2", + "tags": {} + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/sqlPools/sqlpool3743?api-version=2021-06-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "86", + "Content-Type": "application/json", + "traceparent": "00-2b46e7d8f733ac8c4a5247a09b1b3a5a-b8986ef37a5a5e66-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "04d2c0c4ab4ce6811bce342d2a50a1f5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "TestTag": "TestUpdate" + }, + "sku": { + "name": "DW200c", + "capacity": 0 + }, + "properties": {} + }, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Allow-Headers": "Location", + "Access-Control-Expose-Headers": "Location", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/sqlPools/sqlpool3743/operationStatuses/sql04ftr-402ad083-04a9-4f5b-8c7d-bc89e94c28b9?api-version=2021-06-01", + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Fri, 17 Feb 2023 10:37:34 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/sqlPools/sqlpool3743/operationResults/sql04ftr-402ad083-04a9-4f5b-8c7d-bc89e94c28b9?api-version=2021-06-01", + "Pragma": "no-cache", + "RetryAfter": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "04d2c0c4ab4ce6811bce342d2a50a1f5", + "x-ms-correlation-request-id": "07a1b2a6-fe72-428f-a9c9-e0255d2e8266", + "x-ms-ratelimit-remaining-subscription-writes": "1184", + "x-ms-request-id": "204cfee7-dad7-4adf-b7d2-16700f92a51b", + "x-ms-routing-request-id": "JAPANEAST:20230217T103735Z:07a1b2a6-fe72-428f-a9c9-e0255d2e8266" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/sqlPools/sqlpool3743/operationStatuses/sql04ftr-402ad083-04a9-4f5b-8c7d-bc89e94c28b9?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-2b46e7d8f733ac8c4a5247a09b1b3a5a-c547adb0ed4d16ab-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "e1ac8d89a76f6912988be216925921f7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "108", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:37:35 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "e1ac8d89a76f6912988be216925921f7", + "x-ms-correlation-request-id": "8ce4fbda-1f78-4bc9-ac57-54a2301fc9cf", + "x-ms-ratelimit-remaining-subscription-reads": "11792", + "x-ms-request-id": "fcbf8ae1-b97f-41da-8749-9f2f6237e20a", + "x-ms-routing-request-id": "JAPANEAST:20230217T103735Z:8ce4fbda-1f78-4bc9-ac57-54a2301fc9cf" + }, + "ResponseBody": { + "name": "402ad083-04a9-4f5b-8c7d-bc89e94c28b9", + "status": "InProgress", + "startTime": "2023-02-17T10:37:34.927Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/sqlPools/sqlpool3743/operationStatuses/sql04ftr-402ad083-04a9-4f5b-8c7d-bc89e94c28b9?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-2b46e7d8f733ac8c4a5247a09b1b3a5a-8ff1a309d2991533-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "1b350fa3157e914dea499c08fbb660c5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "107", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:37:37 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "1b350fa3157e914dea499c08fbb660c5", + "x-ms-correlation-request-id": "9b76aedc-bfa3-497c-b41a-b6ca47a46f9c", + "x-ms-ratelimit-remaining-subscription-reads": "11791", + "x-ms-request-id": "c6d4ed8d-6c0f-4ed4-a0bf-0ae2a4e99724", + "x-ms-routing-request-id": "JAPANEAST:20230217T103737Z:9b76aedc-bfa3-497c-b41a-b6ca47a46f9c" + }, + "ResponseBody": { + "name": "402ad083-04a9-4f5b-8c7d-bc89e94c28b9", + "status": "Succeeded", + "startTime": "2023-02-17T10:37:34.927Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/sqlPools/sqlpool3743?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-2b46e7d8f733ac8c4a5247a09b1b3a5a-ee3d6aa933058639-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "9ca31cd8bfa4a58550738aa050bff60d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "541", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:37:37 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "9ca31cd8bfa4a58550738aa050bff60d", + "x-ms-correlation-request-id": "031a6f9f-1fc5-4c95-a817-78daad8656e4", + "x-ms-ratelimit-remaining-subscription-reads": "11790", + "x-ms-request-id": "a7a2b9d0-db04-4d39-859f-f70e33d0498f", + "x-ms-routing-request-id": "JAPANEAST:20230217T103737Z:031a6f9f-1fc5-4c95-a817-78daad8656e4" + }, + "ResponseBody": { + "properties": { + "status": "Online", + "maxSizeBytes": 263882790666240, + "collation": "SQL_Latin1_General_CP1_CI_AS", + "creationDate": "2023-02-17T10:37:05.553Z", + "storageAccountType": "GRS", + "provisioningState": "Succeeded" + }, + "sku": { + "name": "DW200c", + "capacity": 0 + }, + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/sqlPools/sqlpool3743", + "name": "sqlpool3743", + "type": "Microsoft.Synapse/workspaces/sqlPools", + "location": "eastus2", + "tags": { + "TestTag": "TestUpdate" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/sqlPools/sqlpool3743?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-a715d15da70aac43a12524603aecbaaf-1634d74749375df2-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "7627b821d920749a401bf6260a096ee2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "541", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:37:38 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "7627b821d920749a401bf6260a096ee2", + "x-ms-correlation-request-id": "32fe3d90-5d1e-456c-92ab-29295c12641e", + "x-ms-ratelimit-remaining-subscription-reads": "11789", + "x-ms-request-id": "12ef61be-2b2e-4855-b74e-0b156567eaf5", + "x-ms-routing-request-id": "JAPANEAST:20230217T103738Z:32fe3d90-5d1e-456c-92ab-29295c12641e" + }, + "ResponseBody": { + "properties": { + "status": "Online", + "maxSizeBytes": 263882790666240, + "collation": "SQL_Latin1_General_CP1_CI_AS", + "creationDate": "2023-02-17T10:37:05.553Z", + "storageAccountType": "GRS", + "provisioningState": "Succeeded" + }, + "sku": { + "name": "DW200c", + "capacity": 0 + }, + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/sqlPools/sqlpool3743", + "name": "sqlpool3743", + "type": "Microsoft.Synapse/workspaces/sqlPools", + "location": "eastus2", + "tags": { + "TestTag": "TestUpdate" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/sqlPools?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-25319b611974561d50ccf89308da4d8d-879c7d60d5486ced-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "763d1d2b85b6e3538990cb0a8aac402b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "553", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:37:38 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "763d1d2b85b6e3538990cb0a8aac402b", + "x-ms-correlation-request-id": "8273a882-edee-461a-9c9c-4dcea0230d72", + "x-ms-ratelimit-remaining-subscription-reads": "11788", + "x-ms-request-id": "871c9b11-831b-4925-a7ef-f76807a7e6c8", + "x-ms-routing-request-id": "JAPANEAST:20230217T103738Z:8273a882-edee-461a-9c9c-4dcea0230d72" + }, + "ResponseBody": { + "value": [ + { + "properties": { + "status": "Online", + "maxSizeBytes": 263882790666240, + "collation": "SQL_Latin1_General_CP1_CI_AS", + "creationDate": "2023-02-17T10:37:05.553Z", + "storageAccountType": "GRS", + "provisioningState": "Succeeded" + }, + "sku": { + "name": "DW200c", + "capacity": 0 + }, + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/sqlPools/sqlpool3743", + "name": "sqlpool3743", + "type": "Microsoft.Synapse/workspaces/sqlPools", + "location": "eastus2", + "tags": { + "TestTag": "TestUpdate" + } + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/sqlPools/sqlpool3743?api-version=2021-06-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-d42713d8d9f3601148ffe72f78715510-c3397b205bbb52c3-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "42e78f52e98efea4822f5c89c85f9a46", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Allow-Headers": [ + "Location", + "Retry-After" + ], + "Access-Control-Expose-Headers": [ + "Location", + "Retry-After" + ], + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/operationStatuses/03ecbd43-956e-40b1-8572-38219910b510?api-version=2021-06-01", + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Fri, 17 Feb 2023 10:37:39 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/operationResults/03ecbd43-956e-40b1-8572-38219910b510?api-version=2021-06-01", + "Pragma": "no-cache", + "Retry-After": "10", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "42e78f52e98efea4822f5c89c85f9a46", + "x-ms-correlation-request-id": "63979204-42ca-4675-9666-8679dc5d7fed", + "x-ms-ratelimit-remaining-subscription-deletes": "14997", + "x-ms-request-id": "efecdad3-35c0-431f-b063-4cca76f7839a", + "x-ms-routing-request-id": "JAPANEAST:20230217T103739Z:63979204-42ca-4675-9666-8679dc5d7fed" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/operationStatuses/03ecbd43-956e-40b1-8572-38219910b510?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-d42713d8d9f3601148ffe72f78715510-33e76d6be90494f1-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "7bd3cbda2b224153783ef48629c91b2a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:37:39 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "7bd3cbda2b224153783ef48629c91b2a", + "x-ms-correlation-request-id": "ca4651ab-d532-4481-80b1-8ee731e1c8fa", + "x-ms-ratelimit-remaining-subscription-reads": "11787", + "x-ms-request-id": "1df0112a-2e5e-496b-8e97-e0dec9f42c5d", + "x-ms-routing-request-id": "JAPANEAST:20230217T103739Z:ca4651ab-d532-4481-80b1-8ee731e1c8fa" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/operationStatuses/03ecbd43-956e-40b1-8572-38219910b510?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-d42713d8d9f3601148ffe72f78715510-aae63dcc279eaa33-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "e10584f50c37d2a9374bdc4bfc13f0f2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:37:41 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "e10584f50c37d2a9374bdc4bfc13f0f2", + "x-ms-correlation-request-id": "95379fc2-699b-4239-bbca-290efc5ab97d", + "x-ms-ratelimit-remaining-subscription-reads": "11786", + "x-ms-request-id": "bc1af6f4-ceb5-4e21-b019-fce38345490f", + "x-ms-routing-request-id": "JAPANEAST:20230217T103741Z:95379fc2-699b-4239-bbca-290efc5ab97d" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/operationStatuses/03ecbd43-956e-40b1-8572-38219910b510?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-d42713d8d9f3601148ffe72f78715510-a0081f084b0d5b6a-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "fdaec8451e8bd9235533ba438bd1739c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:37:42 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "fdaec8451e8bd9235533ba438bd1739c", + "x-ms-correlation-request-id": "cd91e04f-371a-4ad2-bf1f-cfa5d46d2d78", + "x-ms-ratelimit-remaining-subscription-reads": "11785", + "x-ms-request-id": "8c193803-177f-4970-8a36-c03a28b28d38", + "x-ms-routing-request-id": "JAPANEAST:20230217T103742Z:cd91e04f-371a-4ad2-bf1f-cfa5d46d2d78" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/operationStatuses/03ecbd43-956e-40b1-8572-38219910b510?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-d42713d8d9f3601148ffe72f78715510-2d99028d5fce287b-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "899ac2280889cd5c210144d74e084464", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:37:43 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "899ac2280889cd5c210144d74e084464", + "x-ms-correlation-request-id": "d7d03536-0176-49a7-b25d-c7104e62330b", + "x-ms-ratelimit-remaining-subscription-reads": "11784", + "x-ms-request-id": "b25e31b1-1a08-4a9e-b9ea-b424dfef95ad", + "x-ms-routing-request-id": "JAPANEAST:20230217T103744Z:d7d03536-0176-49a7-b25d-c7104e62330b" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/operationStatuses/03ecbd43-956e-40b1-8572-38219910b510?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-d42713d8d9f3601148ffe72f78715510-5be1676ddfe6ffbc-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "6040014e1d1bd79e612c8c0352664666", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:37:46 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "6040014e1d1bd79e612c8c0352664666", + "x-ms-correlation-request-id": "8f093ba3-cfdc-45af-acee-9251787103b8", + "x-ms-ratelimit-remaining-subscription-reads": "11783", + "x-ms-request-id": "a49ef0ca-2fe5-44e9-9251-f47320bc3c1e", + "x-ms-routing-request-id": "JAPANEAST:20230217T103746Z:8f093ba3-cfdc-45af-acee-9251787103b8" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/operationStatuses/03ecbd43-956e-40b1-8572-38219910b510?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-d42713d8d9f3601148ffe72f78715510-79d81bc1164c11e0-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "3a2240d866793d686ce0dc8ada4c8a4c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:37:50 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "3a2240d866793d686ce0dc8ada4c8a4c", + "x-ms-correlation-request-id": "3e670021-b959-45c7-9d12-f82e2313a4fa", + "x-ms-ratelimit-remaining-subscription-reads": "11782", + "x-ms-request-id": "d7bdf2dd-dc2f-4096-9b99-bc484b7b60a6", + "x-ms-routing-request-id": "JAPANEAST:20230217T103750Z:3e670021-b959-45c7-9d12-f82e2313a4fa" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/operationStatuses/03ecbd43-956e-40b1-8572-38219910b510?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-d42713d8d9f3601148ffe72f78715510-4614b45cd97c609e-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "89f455ef12900a8023c3285d7b587bba", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:37:58 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "89f455ef12900a8023c3285d7b587bba", + "x-ms-correlation-request-id": "67e740cf-f038-4350-9d15-ef2a1e7a3272", + "x-ms-ratelimit-remaining-subscription-reads": "11781", + "x-ms-request-id": "031b87fc-4b27-4b7d-aa2f-e1e7a136c8f3", + "x-ms-routing-request-id": "JAPANEAST:20230217T103759Z:67e740cf-f038-4350-9d15-ef2a1e7a3272" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/operationStatuses/03ecbd43-956e-40b1-8572-38219910b510?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-d42713d8d9f3601148ffe72f78715510-9d3b1054c55af71e-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "0effddba09e5e8eb9903f33a4114fc15", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:38:15 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "0effddba09e5e8eb9903f33a4114fc15", + "x-ms-correlation-request-id": "ad243ca8-6eec-416c-9f34-8487d16a516b", + "x-ms-ratelimit-remaining-subscription-reads": "11780", + "x-ms-request-id": "aa581a9b-308b-46b2-8b1d-5b7e816034cd", + "x-ms-routing-request-id": "JAPANEAST:20230217T103815Z:ad243ca8-6eec-416c-9f34-8487d16a516b" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/operationStatuses/03ecbd43-956e-40b1-8572-38219910b510?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-d42713d8d9f3601148ffe72f78715510-833dc298ed250b74-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "fc1440a1bc71c5d6bf1817b53d0bc214", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "22", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:38:48 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "fc1440a1bc71c5d6bf1817b53d0bc214", + "x-ms-correlation-request-id": "77c93126-0727-45ae-ad11-eb89b459c681", + "x-ms-ratelimit-remaining-subscription-reads": "11779", + "x-ms-request-id": "e8d8c5f0-8282-454c-81ad-19e3b965c8ea", + "x-ms-routing-request-id": "JAPANEAST:20230217T103848Z:77c93126-0727-45ae-ad11-eb89b459c681" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp375/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9915/sqlPools?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-4bf81e9150513e9718bd2d56b3f5dd88-076d222f039e6319-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "fccf21647c4ce566690cf08c1f46c80e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "12", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:38:48 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "fccf21647c4ce566690cf08c1f46c80e", + "x-ms-correlation-request-id": "09718e37-8303-4e28-951a-7fabde96d6fe", + "x-ms-ratelimit-remaining-subscription-reads": "11778", + "x-ms-request-id": "2181b6ef-b081-4c28-acd2-0b0d376a8036", + "x-ms-routing-request-id": "JAPANEAST:20230217T103848Z:09718e37-8303-4e28-951a-7fabde96d6fe" + }, + "ResponseBody": { + "value": [] + } + } + ], + "Variables": { + "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com/", + "RandomSeed": "2339084", + "RESOURCE_MANAGER_URL": null, + "SUBSCRIPTION_ID": "051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3" + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/tests/SessionRecords/SqlpoolOperationTests/TestSqlPoolLifeCycleAsync.json b/sdk/synapse/Azure.ResourceManager.Synapse/tests/SessionRecords/SqlpoolOperationTests/TestSqlPoolLifeCycleAsync.json new file mode 100644 index 0000000000000..56d2de3c47d27 --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/tests/SessionRecords/SqlpoolOperationTests/TestSqlPoolLifeCycleAsync.json @@ -0,0 +1,2121 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3?api-version=2021-01-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-6f70c7402f7bcd44ac4148872d5c33f1-00da4f608ac32d1e-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "940f3e1d529af8c4b574bfc03ea3e27c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "492", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:38:54 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "33220ba7-1ba4-4959-a583-9ab73e9fa736", + "x-ms-ratelimit-remaining-subscription-reads": "11777", + "x-ms-request-id": "33220ba7-1ba4-4959-a583-9ab73e9fa736", + "x-ms-routing-request-id": "JAPANEAST:20230217T103854Z:33220ba7-1ba4-4959-a583-9ab73e9fa736" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3", + "authorizationSource": "RoleBased", + "managedByTenants": [ + { + "tenantId": "2f4a9838-26b7-47ee-be60-ccc1fdec5953" + } + ], + "tags": { + "sub_tagname_1": "sub_tagvalue_1" + }, + "subscriptionId": "051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "Synapse Web Tooling", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourcegroups/synapsesdkrp1801?api-version=**", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "22", + "Content-Type": "application/json", + "traceparent": "00-a5284bc5a3eb37c0ede06140e49f6784-7ca3105a7b22c468-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "c90d3248cd5cb5489dbfdd8fa041c5ee", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "eastus2" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "230", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:38:56 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a2754fe9-4159-4f17-af2b-1bb92ab92f61", + "x-ms-ratelimit-remaining-subscription-writes": "1183", + "x-ms-request-id": "a2754fe9-4159-4f17-af2b-1bb92ab92f61", + "x-ms-routing-request-id": "JAPANEAST:20230217T103856Z:a2754fe9-4159-4f17-af2b-1bb92ab92f61" + }, + "ResponseBody": { + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801", + "name": "synapsesdkrp1801", + "type": "Microsoft.Resources/resourceGroups", + "location": "eastus2", + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Storage/storageAccounts/synapsesdkstorage2228?api-version=2022-09-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "87", + "Content-Type": "application/json", + "traceparent": "00-d0f47db91616cf0876f6fb9692103ea9-e0264ae05a860abe-00", + "User-Agent": "azsdk-net-ResourceManager.Storage/1.1.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "75b769e69a53cf524777b5db656d84b0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "sku": { + "name": "Standard_GRS" + }, + "kind": "StorageV2", + "location": "eastus2", + "properties": {} + }, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Content-Type": "text/plain; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:39:04 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Storage/locations/eastus2/asyncoperations/95ccf1f2-be7e-454f-821c-8b934e4828cd?monitor=true\u0026api-version=2022-09-01", + "Pragma": "no-cache", + "Retry-After": "17", + "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "75b769e69a53cf524777b5db656d84b0", + "x-ms-correlation-request-id": "9e9062d5-9cfa-4b7f-89cd-bca8536b7036", + "x-ms-ratelimit-remaining-subscription-writes": "1182", + "x-ms-request-id": "95ccf1f2-be7e-454f-821c-8b934e4828cd", + "x-ms-routing-request-id": "JAPANEAST:20230217T103904Z:9e9062d5-9cfa-4b7f-89cd-bca8536b7036" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Storage/locations/eastus2/asyncoperations/95ccf1f2-be7e-454f-821c-8b934e4828cd?monitor=true\u0026api-version=2022-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-d0f47db91616cf0876f6fb9692103ea9-64048fcf8ca1e05e-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "78f78e1c9890aefce03e81e5176c502f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Content-Type": "text/plain; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:39:04 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Storage/locations/eastus2/asyncoperations/95ccf1f2-be7e-454f-821c-8b934e4828cd?monitor=true\u0026api-version=2022-09-01", + "Pragma": "no-cache", + "Retry-After": "17", + "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "78f78e1c9890aefce03e81e5176c502f", + "x-ms-correlation-request-id": "4d46f8e6-6c92-4b10-a2df-686a0bae6ca5", + "x-ms-ratelimit-remaining-subscription-reads": "11776", + "x-ms-request-id": "f334ec75-f335-4c3c-9316-bd38424ee8d2", + "x-ms-routing-request-id": "JAPANEAST:20230217T103904Z:4d46f8e6-6c92-4b10-a2df-686a0bae6ca5" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Storage/locations/eastus2/asyncoperations/95ccf1f2-be7e-454f-821c-8b934e4828cd?monitor=true\u0026api-version=2022-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-d0f47db91616cf0876f6fb9692103ea9-dc90a2356377fdf8-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "e8cf2c3ab96c1beb2c32fa10829dec17", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1528", + "Content-Type": "application/json", + "Date": "Fri, 17 Feb 2023 10:39:21 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "e8cf2c3ab96c1beb2c32fa10829dec17", + "x-ms-correlation-request-id": "0e79553a-7048-4fbc-9e06-b177d4b2ed5a", + "x-ms-ratelimit-remaining-subscription-reads": "11775", + "x-ms-request-id": "95ac86d7-66f5-46e8-994d-d00ce63282aa", + "x-ms-routing-request-id": "JAPANEAST:20230217T103921Z:0e79553a-7048-4fbc-9e06-b177d4b2ed5a" + }, + "ResponseBody": { + "sku": { + "name": "Standard_GRS", + "tier": "Standard" + }, + "kind": "StorageV2", + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Storage/storageAccounts/synapsesdkstorage2228", + "name": "synapsesdkstorage2228", + "type": "Microsoft.Storage/storageAccounts", + "location": "eastus2", + "tags": {}, + "properties": { + "keyCreationTime": { + "key1": "2023-02-17T10:38:59.3923675Z", + "key2": "2023-02-17T10:38:59.3923675Z" + }, + "privateEndpointConnections": [], + "minimumTlsVersion": "TLS1_0", + "allowBlobPublicAccess": true, + "networkAcls": { + "bypass": "AzureServices", + "virtualNetworkRules": [], + "ipRules": [], + "defaultAction": "Allow" + }, + "supportsHttpsTrafficOnly": true, + "encryption": { + "services": { + "file": { + "keyType": "Account", + "enabled": true, + "lastEnabledTime": "2023-02-17T10:39:00.1111189Z" + }, + "blob": { + "keyType": "Account", + "enabled": true, + "lastEnabledTime": "2023-02-17T10:39:00.1111189Z" + } + }, + "keySource": "Microsoft.Storage" + }, + "accessTier": "Hot", + "provisioningState": "Succeeded", + "creationTime": "2023-02-17T10:38:59.2204707Z", + "primaryEndpoints": { + "dfs": "https://synapsesdkstorage2228.dfs.core.windows.net/", + "web": "https://synapsesdkstorage2228.z20.web.core.windows.net/", + "blob": "https://synapsesdkstorage2228.blob.core.windows.net/", + "queue": "https://synapsesdkstorage2228.queue.core.windows.net/", + "table": "https://synapsesdkstorage2228.table.core.windows.net/", + "file": "https://synapsesdkstorage2228.file.core.windows.net/" + }, + "primaryLocation": "eastus2", + "statusOfPrimary": "available", + "secondaryLocation": "centralus", + "statusOfSecondary": "available" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Storage/storageAccounts/synapsesdkstorage2228/listKeys?api-version=2022-09-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "0", + "traceparent": "00-88535e835993ae67dee409f7e94aedeb-a86153d10852b9db-00", + "User-Agent": "azsdk-net-ResourceManager.Storage/1.1.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "d7bf53d80c762820bb262cc449586d0f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "380", + "Content-Type": "application/json", + "Date": "Fri, 17 Feb 2023 10:39:22 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "d7bf53d80c762820bb262cc449586d0f", + "x-ms-correlation-request-id": "3378c3f0-c491-4021-bce3-5af516de5f0d", + "x-ms-ratelimit-remaining-subscription-resource-requests": "11996", + "x-ms-request-id": "d319affb-051d-4499-89e7-e84780236e0a", + "x-ms-routing-request-id": "JAPANEAST:20230217T103922Z:3378c3f0-c491-4021-bce3-5af516de5f0d" + }, + "ResponseBody": { + "keys": [ + { + "creationTime": "2023-02-17T10:38:59.3923675Z", + "keyName": "key1", + "value": "nGw6zUHCuRyQqP4yFF6SVvovf/whV/63CAWz1ADJth9WtgZx0\u002B1vLBb/CgPQulSvFnLi1\u002BGvMre3\u002BAStwEO7NQ==", + "permissions": "FULL" + }, + { + "creationTime": "2023-02-17T10:38:59.3923675Z", + "keyName": "key2", + "value": "Jdlqwnv5EGjvhHfRfqTtAG104lSeGBfU2EaFJwFv6ilovdPlKXykiEB9tIthHzFKDwILIiy3RYge\u002BAStNQVKcg==", + "permissions": "FULL" + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415?api-version=2021-06-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "302", + "Content-Type": "application/json", + "traceparent": "00-1c4ef27e616783152a08532f059ce02f-cbf586b1a09cc471-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "61b579e8f5b6a263db4c5e9eeb2b4251", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "identity": { + "type": "SystemAssigned" + }, + "tags": {}, + "location": "eastus2", + "properties": { + "defaultDataLakeStorage": { + "accountUrl": "https://synapsesdkstorage2228.dfs.core.windows.net/", + "filesystem": "synapsesdkfilesys8555" + }, + "sqlAdministratorLoginPassword": "Password1!8196", + "sqlAdministratorLogin": "sshuser7191" + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/operationStatuses/03edf30a-bb9a-4774-acc3-1c689b6299cb?api-version=2021-06-01", + "Cache-Control": "no-cache", + "Content-Length": "1477", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:39:27 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "61b579e8f5b6a263db4c5e9eeb2b4251", + "x-ms-correlation-request-id": "0478f3a3-7a79-4e52-a96e-8e9984a4f064", + "x-ms-ratelimit-remaining-subscription-writes": "1181", + "x-ms-request-id": "91a4b94f-4210-4518-992a-f78f08065773", + "x-ms-routing-request-id": "JAPANEAST:20230217T103928Z:0478f3a3-7a79-4e52-a96e-8e9984a4f064" + }, + "ResponseBody": { + "properties": { + "defaultDataLakeStorage": { + "createManagedPrivateEndpoint": false, + "accountUrl": "https://synapsesdkstorage2228.dfs.core.windows.net/", + "filesystem": "synapsesdkfilesys8555" + }, + "encryption": { + "doubleEncryptionEnabled": false + }, + "provisioningState": "Provisioning", + "connectivityEndpoints": { + "web": "https://web.azuresynapse.net?workspace=%2fsubscriptions%2f051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3%2fresourceGroups%2fsynapsesdkrp1801%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fsynapsesdkworkspace3415", + "dev": "https://synapsesdkworkspace3415.dev.azuresynapse.net", + "sqlOnDemand": "synapsesdkworkspace3415-ondemand.sql.azuresynapse.net", + "sql": "synapsesdkworkspace3415.sql.azuresynapse.net" + }, + "managedResourceGroupName": "synapseworkspace-managedrg-127f0069-756a-4258-8eb8-a7c726161afc", + "privateEndpointConnections": [], + "workspaceUID": "d0496565-3da0-436a-8ab3-e1c91bef8a6e", + "extraProperties": { + "WorkspaceType": "Normal" + }, + "publicNetworkAccess": "Enabled", + "cspWorkspaceAdminProperties": { + "initialWorkspaceAdminObjectId": "5adcf4d8-4923-420e-ab0b-f6e5fc718b42" + }, + "trustedServiceBypassEnabled": false + }, + "type": "Microsoft.Synapse/workspaces", + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415", + "location": "eastus2", + "name": "synapsesdkworkspace3415", + "identity": { + "type": "SystemAssigned", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "principalId": "bf599367-97ca-46f6-8ee1-2885c047b9d8" + }, + "tags": {} + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/operationStatuses/03edf30a-bb9a-4774-acc3-1c689b6299cb?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-1c4ef27e616783152a08532f059ce02f-c7db5a7524b64cd0-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "249a1eeab5375d225b349abfc28ad0fa", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:39:28 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "249a1eeab5375d225b349abfc28ad0fa", + "x-ms-correlation-request-id": "06486ea2-2d7a-4338-9baf-012dbfd49258", + "x-ms-ratelimit-remaining-subscription-reads": "11774", + "x-ms-request-id": "bb726c56-421e-4d7c-9e16-25546b5c4d2e", + "x-ms-routing-request-id": "JAPANEAST:20230217T103928Z:06486ea2-2d7a-4338-9baf-012dbfd49258" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/operationStatuses/03edf30a-bb9a-4774-acc3-1c689b6299cb?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-1c4ef27e616783152a08532f059ce02f-4cd125912173035b-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "4cdf72e961a92f784aa8b989afd67b0a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:39:29 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "4cdf72e961a92f784aa8b989afd67b0a", + "x-ms-correlation-request-id": "4afcd600-f13b-482b-8241-e67b5fc39300", + "x-ms-ratelimit-remaining-subscription-reads": "11773", + "x-ms-request-id": "b91eb425-be73-4c92-8736-748bdafa344a", + "x-ms-routing-request-id": "JAPANEAST:20230217T103929Z:4afcd600-f13b-482b-8241-e67b5fc39300" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/operationStatuses/03edf30a-bb9a-4774-acc3-1c689b6299cb?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-1c4ef27e616783152a08532f059ce02f-b26d500cc9f505d7-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "ccb399781e91b419e96651441f6f4a1d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:39:30 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "ccb399781e91b419e96651441f6f4a1d", + "x-ms-correlation-request-id": "d90ba781-4ab5-4f38-8e41-ab12c060d086", + "x-ms-ratelimit-remaining-subscription-reads": "11772", + "x-ms-request-id": "9ca7633c-0ef6-4a8f-b369-3f876b3ce213", + "x-ms-routing-request-id": "JAPANEAST:20230217T103931Z:d90ba781-4ab5-4f38-8e41-ab12c060d086" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/operationStatuses/03edf30a-bb9a-4774-acc3-1c689b6299cb?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-1c4ef27e616783152a08532f059ce02f-385be7911d5be875-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "b4a34a5b87f2881ba56bd98ffc99ae84", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:39:32 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "b4a34a5b87f2881ba56bd98ffc99ae84", + "x-ms-correlation-request-id": "59a56129-9c22-4deb-a35d-4a84dcd4e9a3", + "x-ms-ratelimit-remaining-subscription-reads": "11771", + "x-ms-request-id": "5f46536c-ad94-4251-a0a1-e3c4fc769238", + "x-ms-routing-request-id": "JAPANEAST:20230217T103932Z:59a56129-9c22-4deb-a35d-4a84dcd4e9a3" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/operationStatuses/03edf30a-bb9a-4774-acc3-1c689b6299cb?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-1c4ef27e616783152a08532f059ce02f-108e6c5924ee6041-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "28468fb904d6cb69582b634310340fdb", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:39:34 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "28468fb904d6cb69582b634310340fdb", + "x-ms-correlation-request-id": "7e8cb64b-f700-40fb-ab3b-595c5deaa175", + "x-ms-ratelimit-remaining-subscription-reads": "11770", + "x-ms-request-id": "15aec091-44c6-4d05-b2dd-5d4851363bc4", + "x-ms-routing-request-id": "JAPANEAST:20230217T103935Z:7e8cb64b-f700-40fb-ab3b-595c5deaa175" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/operationStatuses/03edf30a-bb9a-4774-acc3-1c689b6299cb?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-1c4ef27e616783152a08532f059ce02f-1ab621b546c22039-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "642e9c5dc633f1187d2a2626448ab850", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:39:39 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "642e9c5dc633f1187d2a2626448ab850", + "x-ms-correlation-request-id": "5ff9f27c-9d1d-4911-a4d3-537f2ae27097", + "x-ms-ratelimit-remaining-subscription-reads": "11769", + "x-ms-request-id": "93b03dcb-fa82-4af6-9cfe-568155ddc53f", + "x-ms-routing-request-id": "JAPANEAST:20230217T103939Z:5ff9f27c-9d1d-4911-a4d3-537f2ae27097" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/operationStatuses/03edf30a-bb9a-4774-acc3-1c689b6299cb?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-1c4ef27e616783152a08532f059ce02f-9ccf415fce6f8456-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "8f8bccb721285746e1d75cc624d87871", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:39:47 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "8f8bccb721285746e1d75cc624d87871", + "x-ms-correlation-request-id": "dea48484-c936-4654-adde-c6eb029ca473", + "x-ms-ratelimit-remaining-subscription-reads": "11768", + "x-ms-request-id": "6fc05518-fb31-4719-9500-dc06906718e5", + "x-ms-routing-request-id": "JAPANEAST:20230217T103948Z:dea48484-c936-4654-adde-c6eb029ca473" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/operationStatuses/03edf30a-bb9a-4774-acc3-1c689b6299cb?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-1c4ef27e616783152a08532f059ce02f-85cd787e617e7695-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "5f31fe5b496af3517755abacdd4386cd", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:40:03 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "5f31fe5b496af3517755abacdd4386cd", + "x-ms-correlation-request-id": "faaca387-d165-4f61-98c9-0e0b003ad512", + "x-ms-ratelimit-remaining-subscription-reads": "11783", + "x-ms-request-id": "863c16a9-9a6b-4bf7-92af-b74d824cfe3f", + "x-ms-routing-request-id": "JAPANEAST:20230217T104004Z:faaca387-d165-4f61-98c9-0e0b003ad512" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/operationStatuses/03edf30a-bb9a-4774-acc3-1c689b6299cb?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-1c4ef27e616783152a08532f059ce02f-d6c592d4a1c95318-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "438b127380a83cb255d6835b6951cda4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:40:36 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "438b127380a83cb255d6835b6951cda4", + "x-ms-correlation-request-id": "37ab6dcd-9799-4fa6-83f8-a526f05dcc45", + "x-ms-ratelimit-remaining-subscription-reads": "11782", + "x-ms-request-id": "fe07765d-b4fb-475d-9e2d-55c1cbfe9f3a", + "x-ms-routing-request-id": "JAPANEAST:20230217T104036Z:37ab6dcd-9799-4fa6-83f8-a526f05dcc45" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/operationStatuses/03edf30a-bb9a-4774-acc3-1c689b6299cb?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-1c4ef27e616783152a08532f059ce02f-5aa309eeaf8e8f80-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "46cbb5b158596ee57b9817d3769a799e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:41:08 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "46cbb5b158596ee57b9817d3769a799e", + "x-ms-correlation-request-id": "37ea86b6-69c2-4571-a122-78d570c1dcfe", + "x-ms-ratelimit-remaining-subscription-reads": "11781", + "x-ms-request-id": "238c6389-16e0-4b80-ab79-31f9ade91609", + "x-ms-routing-request-id": "JAPANEAST:20230217T104109Z:37ea86b6-69c2-4571-a122-78d570c1dcfe" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/operationStatuses/03edf30a-bb9a-4774-acc3-1c689b6299cb?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-1c4ef27e616783152a08532f059ce02f-6cc36fb7730c2856-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "11538e51354ddac84bf50a93c6f68926", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:41:41 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "11538e51354ddac84bf50a93c6f68926", + "x-ms-correlation-request-id": "2b9944e9-0464-474a-8d24-75154ab1c527", + "x-ms-ratelimit-remaining-subscription-reads": "11780", + "x-ms-request-id": "45195a91-7182-499c-9118-6f1399aaba1f", + "x-ms-routing-request-id": "JAPANEAST:20230217T104141Z:2b9944e9-0464-474a-8d24-75154ab1c527" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/operationStatuses/03edf30a-bb9a-4774-acc3-1c689b6299cb?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-1c4ef27e616783152a08532f059ce02f-f932ef625456c037-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "27fa068740771b742d1cc71069dfc5bb", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "22", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:42:14 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "27fa068740771b742d1cc71069dfc5bb", + "x-ms-correlation-request-id": "2cdcce31-7ade-472d-a7c4-b74cd511a3fa", + "x-ms-ratelimit-remaining-subscription-reads": "11779", + "x-ms-request-id": "675024d0-213a-4772-afda-56114cea7886", + "x-ms-routing-request-id": "JAPANEAST:20230217T104214Z:2cdcce31-7ade-472d-a7c4-b74cd511a3fa" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-1c4ef27e616783152a08532f059ce02f-e6da735c47b04e4a-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "db0ae55cbbfe7c56ecf0fb644d51a884", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1535", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:42:14 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "db0ae55cbbfe7c56ecf0fb644d51a884", + "x-ms-correlation-request-id": "52995855-3ba5-4db2-9ad2-84a2eefc6784", + "x-ms-ratelimit-remaining-subscription-reads": "11778", + "x-ms-request-id": "76595d11-a2dc-44fe-9ebf-a2697e6a9cb2", + "x-ms-routing-request-id": "JAPANEAST:20230217T104214Z:52995855-3ba5-4db2-9ad2-84a2eefc6784" + }, + "ResponseBody": { + "properties": { + "defaultDataLakeStorage": { + "createManagedPrivateEndpoint": false, + "accountUrl": "https://synapsesdkstorage2228.dfs.core.windows.net/", + "filesystem": "synapsesdkfilesys8555" + }, + "encryption": { + "doubleEncryptionEnabled": false + }, + "provisioningState": "Succeeded", + "connectivityEndpoints": { + "web": "https://web.azuresynapse.net?workspace=%2fsubscriptions%2f051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3%2fresourceGroups%2fsynapsesdkrp1801%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fsynapsesdkworkspace3415", + "dev": "https://synapsesdkworkspace3415.dev.azuresynapse.net", + "sqlOnDemand": "synapsesdkworkspace3415-ondemand.sql.azuresynapse.net", + "sql": "synapsesdkworkspace3415.sql.azuresynapse.net" + }, + "managedResourceGroupName": "synapseworkspace-managedrg-127f0069-756a-4258-8eb8-a7c726161afc", + "sqlAdministratorLogin": "sshuser7191", + "privateEndpointConnections": [], + "workspaceUID": "d0496565-3da0-436a-8ab3-e1c91bef8a6e", + "extraProperties": { + "WorkspaceType": "Normal", + "IsScopeEnabled": false + }, + "publicNetworkAccess": "Enabled", + "cspWorkspaceAdminProperties": { + "initialWorkspaceAdminObjectId": "5adcf4d8-4923-420e-ab0b-f6e5fc718b42" + }, + "trustedServiceBypassEnabled": false + }, + "type": "Microsoft.Synapse/workspaces", + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415", + "location": "eastus2", + "name": "synapsesdkworkspace3415", + "identity": { + "type": "SystemAssigned", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "principalId": "bf599367-97ca-46f6-8ee1-2885c047b9d8" + }, + "tags": {} + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/sqlPools/sqlpool9501?api-version=2021-06-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "72", + "Content-Type": "application/json", + "traceparent": "00-12095bb14e64c86a3ec9d3667ea583a2-688255b77ee6da3c-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "a06f4bf126521a1037e4316db8706c2f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "sku": { + "name": "DW200c" + }, + "tags": {}, + "location": "eastus2", + "properties": {} + }, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Allow-Headers": [ + "Location", + "Retry-After" + ], + "Access-Control-Expose-Headers": [ + "Location", + "Retry-After" + ], + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/operationStatuses/447f6ea1-2ec1-4aee-8b74-360af1167eff?api-version=2021-06-01", + "Cache-Control": "no-cache", + "Content-Length": "385", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:42:16 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/operationResults/447f6ea1-2ec1-4aee-8b74-360af1167eff?api-version=2021-06-01", + "Pragma": "no-cache", + "Retry-After": "10", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "a06f4bf126521a1037e4316db8706c2f", + "x-ms-correlation-request-id": "b9663441-8af7-48f0-90d9-0aff90c563f2", + "x-ms-ratelimit-remaining-subscription-writes": "1183", + "x-ms-request-id": "7c0bcd4d-4c47-4616-8d10-a12181ffe3f0", + "x-ms-routing-request-id": "JAPANEAST:20230217T104217Z:b9663441-8af7-48f0-90d9-0aff90c563f2" + }, + "ResponseBody": { + "properties": { + "maxSizeBytes": 0, + "creationDate": "0001-01-01T00:00:00", + "provisioningState": "Provisioning" + }, + "sku": { + "name": "DW200c", + "capacity": 0 + }, + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/sqlPools/sqlpool9501", + "name": "sqlpool9501", + "type": "Microsoft.Synapse/workspaces/sqlPools" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/operationStatuses/447f6ea1-2ec1-4aee-8b74-360af1167eff?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-12095bb14e64c86a3ec9d3667ea583a2-f91eae746cabba0e-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "937801431b56be0af9c1c6d7250e3480", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:42:17 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "937801431b56be0af9c1c6d7250e3480", + "x-ms-correlation-request-id": "1303f3b2-bce4-4396-b8b5-226a39a5231b", + "x-ms-ratelimit-remaining-subscription-reads": "11777", + "x-ms-request-id": "925b2cb2-af8b-4776-90fc-035246f53c83", + "x-ms-routing-request-id": "JAPANEAST:20230217T104217Z:1303f3b2-bce4-4396-b8b5-226a39a5231b" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/operationStatuses/447f6ea1-2ec1-4aee-8b74-360af1167eff?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-12095bb14e64c86a3ec9d3667ea583a2-68304ac08484989a-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "1afe348e98c7c96180bf22179fcb0a6a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:42:18 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "1afe348e98c7c96180bf22179fcb0a6a", + "x-ms-correlation-request-id": "110ac39c-3044-42cd-b009-17b59827136f", + "x-ms-ratelimit-remaining-subscription-reads": "11776", + "x-ms-request-id": "b93142bd-0de1-49c9-973c-9a1e6defaa12", + "x-ms-routing-request-id": "JAPANEAST:20230217T104218Z:110ac39c-3044-42cd-b009-17b59827136f" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/operationStatuses/447f6ea1-2ec1-4aee-8b74-360af1167eff?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-12095bb14e64c86a3ec9d3667ea583a2-5aa65f683f76042c-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "b62abd08d9f834d92c22f3ec61f48a6f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:42:20 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "b62abd08d9f834d92c22f3ec61f48a6f", + "x-ms-correlation-request-id": "7c818c99-cc36-42fe-9ee5-6c080c305e10", + "x-ms-ratelimit-remaining-subscription-reads": "11775", + "x-ms-request-id": "9f4f6622-b247-4e62-9da6-b6bf4578b122", + "x-ms-routing-request-id": "JAPANEAST:20230217T104220Z:7c818c99-cc36-42fe-9ee5-6c080c305e10" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/operationStatuses/447f6ea1-2ec1-4aee-8b74-360af1167eff?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-12095bb14e64c86a3ec9d3667ea583a2-d6d25eb16b5709fa-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "dab60606c1cfabaca0af1296f8f31f2d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:42:21 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "dab60606c1cfabaca0af1296f8f31f2d", + "x-ms-correlation-request-id": "1e0785c6-95b6-4c62-863e-8bc372e62f92", + "x-ms-ratelimit-remaining-subscription-reads": "11774", + "x-ms-request-id": "029b29bf-40ea-41dd-869f-bef643bc7bed", + "x-ms-routing-request-id": "JAPANEAST:20230217T104221Z:1e0785c6-95b6-4c62-863e-8bc372e62f92" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/operationStatuses/447f6ea1-2ec1-4aee-8b74-360af1167eff?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-12095bb14e64c86a3ec9d3667ea583a2-84dd842c196775b1-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "68cf5cb77ee4b5875bcaeda4a575678c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:42:24 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "68cf5cb77ee4b5875bcaeda4a575678c", + "x-ms-correlation-request-id": "a0f3fe4b-68a4-41ff-a6ad-21f60bc2679d", + "x-ms-ratelimit-remaining-subscription-reads": "11773", + "x-ms-request-id": "3225f196-08ca-4b8a-b115-b4efdb7acd2b", + "x-ms-routing-request-id": "JAPANEAST:20230217T104224Z:a0f3fe4b-68a4-41ff-a6ad-21f60bc2679d" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/operationStatuses/447f6ea1-2ec1-4aee-8b74-360af1167eff?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-12095bb14e64c86a3ec9d3667ea583a2-a57fa501de942ee0-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "9811b2352f15479b107f1649c6423b39", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:42:28 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "9811b2352f15479b107f1649c6423b39", + "x-ms-correlation-request-id": "ba17193c-5caf-4a71-87b0-82229b782eaa", + "x-ms-ratelimit-remaining-subscription-reads": "11772", + "x-ms-request-id": "5e32a4fb-5575-4f41-b300-b6bccfa291a5", + "x-ms-routing-request-id": "JAPANEAST:20230217T104228Z:ba17193c-5caf-4a71-87b0-82229b782eaa" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/operationStatuses/447f6ea1-2ec1-4aee-8b74-360af1167eff?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-12095bb14e64c86a3ec9d3667ea583a2-f7d17417a53af9a3-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "0534c5032125878a7f007f04d307052b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:42:36 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "0534c5032125878a7f007f04d307052b", + "x-ms-correlation-request-id": "6e18f1f3-3280-44c1-a178-1d1f55603e9e", + "x-ms-ratelimit-remaining-subscription-reads": "11771", + "x-ms-request-id": "d99168b0-08f1-4835-b58f-47466fc7e6e6", + "x-ms-routing-request-id": "JAPANEAST:20230217T104237Z:6e18f1f3-3280-44c1-a178-1d1f55603e9e" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/operationStatuses/447f6ea1-2ec1-4aee-8b74-360af1167eff?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-12095bb14e64c86a3ec9d3667ea583a2-2d48d152cfa9ca27-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "4561864786e28818c0885865683def19", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:42:52 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "4561864786e28818c0885865683def19", + "x-ms-correlation-request-id": "9f66fe66-2713-437c-aa9d-5588ad0faf28", + "x-ms-ratelimit-remaining-subscription-reads": "11770", + "x-ms-request-id": "6e0c8fd5-ce57-4ba3-b3c7-01ab52877c6a", + "x-ms-routing-request-id": "JAPANEAST:20230217T104253Z:9f66fe66-2713-437c-aa9d-5588ad0faf28" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/operationStatuses/447f6ea1-2ec1-4aee-8b74-360af1167eff?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-12095bb14e64c86a3ec9d3667ea583a2-b7b4085e7b43da8f-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "e0a1b48f6240136728891814b0967308", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:43:25 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "e0a1b48f6240136728891814b0967308", + "x-ms-correlation-request-id": "ab49c59e-21ba-46da-a374-b08f813c3567", + "x-ms-ratelimit-remaining-subscription-reads": "11769", + "x-ms-request-id": "68316f49-a0bb-447c-ab50-f1f5286ba4c4", + "x-ms-routing-request-id": "JAPANEAST:20230217T104326Z:ab49c59e-21ba-46da-a374-b08f813c3567" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/operationStatuses/447f6ea1-2ec1-4aee-8b74-360af1167eff?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-12095bb14e64c86a3ec9d3667ea583a2-0d57b140c068a453-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "3f02ea79f5e07c57acac449cc9251f42", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:43:58 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "3f02ea79f5e07c57acac449cc9251f42", + "x-ms-correlation-request-id": "875a3649-8ba2-48f1-b7de-ba40d5cc344d", + "x-ms-ratelimit-remaining-subscription-reads": "11768", + "x-ms-request-id": "9d534be0-1f34-401c-b2cf-8357991254dd", + "x-ms-routing-request-id": "JAPANEAST:20230217T104359Z:875a3649-8ba2-48f1-b7de-ba40d5cc344d" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/operationStatuses/447f6ea1-2ec1-4aee-8b74-360af1167eff?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-12095bb14e64c86a3ec9d3667ea583a2-2d43f05c3cc7b545-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "1e7565112566e5ea1f4d1d586e04d72a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:44:30 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "1e7565112566e5ea1f4d1d586e04d72a", + "x-ms-correlation-request-id": "7172a432-ac0e-4d2a-aab7-4f06fa225f70", + "x-ms-ratelimit-remaining-subscription-reads": "11767", + "x-ms-request-id": "534c100c-f34f-4422-bd6b-6d895064e389", + "x-ms-routing-request-id": "JAPANEAST:20230217T104431Z:7172a432-ac0e-4d2a-aab7-4f06fa225f70" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/operationStatuses/447f6ea1-2ec1-4aee-8b74-360af1167eff?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-12095bb14e64c86a3ec9d3667ea583a2-f34a64635bdbb44d-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "7deb4f14af3b99385d2533931dca4a02", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:45:02 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "7deb4f14af3b99385d2533931dca4a02", + "x-ms-correlation-request-id": "2678a9f1-2f8e-47dd-87f5-4f809679f2d5", + "x-ms-ratelimit-remaining-subscription-reads": "11786", + "x-ms-request-id": "47f09b80-5832-4352-b9e8-3bb5d27501c4", + "x-ms-routing-request-id": "JAPANEAST:20230217T104503Z:2678a9f1-2f8e-47dd-87f5-4f809679f2d5" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/operationStatuses/447f6ea1-2ec1-4aee-8b74-360af1167eff?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-12095bb14e64c86a3ec9d3667ea583a2-98567ff557b61ff4-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "4a02d66a542153a2ff1c2093d7fe0ea7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:45:35 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "4a02d66a542153a2ff1c2093d7fe0ea7", + "x-ms-correlation-request-id": "b20af031-8584-49af-adc1-feffc0094314", + "x-ms-ratelimit-remaining-subscription-reads": "11785", + "x-ms-request-id": "ce341a9a-df94-4a8d-af2d-069208a56c8f", + "x-ms-routing-request-id": "JAPANEAST:20230217T104536Z:b20af031-8584-49af-adc1-feffc0094314" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/operationStatuses/447f6ea1-2ec1-4aee-8b74-360af1167eff?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-12095bb14e64c86a3ec9d3667ea583a2-0fc325315843885c-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "79881ad4a13a61072ddbc140f257c755", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:46:08 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "79881ad4a13a61072ddbc140f257c755", + "x-ms-correlation-request-id": "a23a2b8b-697c-4bb2-b8c5-c4cc402efd13", + "x-ms-ratelimit-remaining-subscription-reads": "11784", + "x-ms-request-id": "4b6340c1-4c0e-4241-81b6-c738b2f12a93", + "x-ms-routing-request-id": "JAPANEAST:20230217T104608Z:a23a2b8b-697c-4bb2-b8c5-c4cc402efd13" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/operationStatuses/447f6ea1-2ec1-4aee-8b74-360af1167eff?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-12095bb14e64c86a3ec9d3667ea583a2-320d7b1be8cbda2e-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "97ed1b038d01bf08ad987d1e8fa5c15e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:46:40 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "97ed1b038d01bf08ad987d1e8fa5c15e", + "x-ms-correlation-request-id": "ed90779a-a375-4c64-a94e-686195fa3cd5", + "x-ms-ratelimit-remaining-subscription-reads": "11783", + "x-ms-request-id": "e56f7afd-7440-49ba-aa37-4ae3ae6e642b", + "x-ms-routing-request-id": "JAPANEAST:20230217T104641Z:ed90779a-a375-4c64-a94e-686195fa3cd5" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/operationStatuses/447f6ea1-2ec1-4aee-8b74-360af1167eff?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-12095bb14e64c86a3ec9d3667ea583a2-6f3d0fec1a656895-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "03be8b17d041c9c8cfa01c45936161a8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "22", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:47:12 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "03be8b17d041c9c8cfa01c45936161a8", + "x-ms-correlation-request-id": "944d1e5a-5bfc-426a-a986-b0fe71f2a373", + "x-ms-ratelimit-remaining-subscription-reads": "11782", + "x-ms-request-id": "6eff2e45-a311-4481-90ff-d98b0f3e8a42", + "x-ms-routing-request-id": "JAPANEAST:20230217T104713Z:944d1e5a-5bfc-426a-a986-b0fe71f2a373" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/sqlPools/sqlpool9501?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-12095bb14e64c86a3ec9d3667ea583a2-1d95e1a4a526600d-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "bc8fca55761147a611c8cca123e8d287", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "518", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:47:14 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "bc8fca55761147a611c8cca123e8d287", + "x-ms-correlation-request-id": "2e3f9af9-3df1-4dfa-92f6-60b31fd3df3c", + "x-ms-ratelimit-remaining-subscription-reads": "11781", + "x-ms-request-id": "e680aa8e-b84e-4dcd-8832-eb7cd7eeedc1", + "x-ms-routing-request-id": "JAPANEAST:20230217T104714Z:2e3f9af9-3df1-4dfa-92f6-60b31fd3df3c" + }, + "ResponseBody": { + "properties": { + "status": "Online", + "maxSizeBytes": 263882790666240, + "collation": "SQL_Latin1_General_CP1_CI_AS", + "creationDate": "2023-02-17T10:46:29.5Z", + "storageAccountType": "GRS", + "provisioningState": "Succeeded" + }, + "sku": { + "name": "DW200c", + "capacity": 0 + }, + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/sqlPools/sqlpool9501", + "name": "sqlpool9501", + "type": "Microsoft.Synapse/workspaces/sqlPools", + "location": "eastus2", + "tags": {} + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/sqlPools/sqlpool9501?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-42615366a98d8dbf893deedab78fc12f-1474c3c35e1ac381-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "66286219c49833135324c86070c32c4b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "518", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:47:14 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "66286219c49833135324c86070c32c4b", + "x-ms-correlation-request-id": "075ebca5-b3e3-443e-9bb2-968fe01a9d5c", + "x-ms-ratelimit-remaining-subscription-reads": "11780", + "x-ms-request-id": "2dfe7a67-eb41-40db-aad5-c9da2c8bd9a6", + "x-ms-routing-request-id": "JAPANEAST:20230217T104714Z:075ebca5-b3e3-443e-9bb2-968fe01a9d5c" + }, + "ResponseBody": { + "properties": { + "status": "Online", + "maxSizeBytes": 263882790666240, + "collation": "SQL_Latin1_General_CP1_CI_AS", + "creationDate": "2023-02-17T10:46:29.5Z", + "storageAccountType": "GRS", + "provisioningState": "Succeeded" + }, + "sku": { + "name": "DW200c", + "capacity": 0 + }, + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/sqlPools/sqlpool9501", + "name": "sqlpool9501", + "type": "Microsoft.Synapse/workspaces/sqlPools", + "location": "eastus2", + "tags": {} + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/sqlPools/sqlpool9501?api-version=2021-06-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "86", + "Content-Type": "application/json", + "traceparent": "00-a1481c5787a5e5f005814aff2c7979c8-0a158a11d91d0f4e-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "c5c9d5370516a14de577f2790426a5e6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "TestTag": "TestUpdate" + }, + "sku": { + "name": "DW200c", + "capacity": 0 + }, + "properties": {} + }, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Allow-Headers": "Location", + "Access-Control-Expose-Headers": "Location", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/sqlPools/sqlpool9501/operationStatuses/sql04ftr-78429b76-4965-4e84-acff-08a5b261b31d?api-version=2021-06-01", + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Fri, 17 Feb 2023 10:47:15 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/sqlPools/sqlpool9501/operationResults/sql04ftr-78429b76-4965-4e84-acff-08a5b261b31d?api-version=2021-06-01", + "Pragma": "no-cache", + "RetryAfter": "15", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "c5c9d5370516a14de577f2790426a5e6", + "x-ms-correlation-request-id": "3f4e18cd-f190-45d6-a59f-d629678356d8", + "x-ms-ratelimit-remaining-subscription-writes": "1183", + "x-ms-request-id": "b75ecc36-dca9-453b-96aa-f06722eff2d6", + "x-ms-routing-request-id": "JAPANEAST:20230217T104715Z:3f4e18cd-f190-45d6-a59f-d629678356d8" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/sqlPools/sqlpool9501/operationStatuses/sql04ftr-78429b76-4965-4e84-acff-08a5b261b31d?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a1481c5787a5e5f005814aff2c7979c8-6f1c9b178ca4315c-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "4e6a809b0d1f147114878121d29a2e2d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "107", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:47:16 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "4e6a809b0d1f147114878121d29a2e2d", + "x-ms-correlation-request-id": "6c2b2d54-0448-4eba-b218-130923f9c207", + "x-ms-ratelimit-remaining-subscription-reads": "11779", + "x-ms-request-id": "08657c4f-16ad-47ca-9a1d-b8a85f6b1a63", + "x-ms-routing-request-id": "JAPANEAST:20230217T104716Z:6c2b2d54-0448-4eba-b218-130923f9c207" + }, + "ResponseBody": { + "name": "78429b76-4965-4e84-acff-08a5b261b31d", + "status": "InProgress", + "startTime": "2023-02-17T10:47:15.79Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/sqlPools/sqlpool9501/operationStatuses/sql04ftr-78429b76-4965-4e84-acff-08a5b261b31d?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a1481c5787a5e5f005814aff2c7979c8-4b79b6a7e1e4cabb-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "db92e27ffa983d12c5380eb99d61f39f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "106", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:47:17 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "db92e27ffa983d12c5380eb99d61f39f", + "x-ms-correlation-request-id": "dd619f87-c362-4991-9ae5-82352b5c0952", + "x-ms-ratelimit-remaining-subscription-reads": "11778", + "x-ms-request-id": "f3b04b39-0a9e-425b-8141-d42658857bc0", + "x-ms-routing-request-id": "JAPANEAST:20230217T104718Z:dd619f87-c362-4991-9ae5-82352b5c0952" + }, + "ResponseBody": { + "name": "78429b76-4965-4e84-acff-08a5b261b31d", + "status": "Succeeded", + "startTime": "2023-02-17T10:47:15.79Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/sqlPools/sqlpool9501?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a1481c5787a5e5f005814aff2c7979c8-197f71cb1f57d871-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "83dda4a056bcc1c623171db178edbe1c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "540", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:47:18 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "83dda4a056bcc1c623171db178edbe1c", + "x-ms-correlation-request-id": "c608b675-5b28-4b8a-bffd-9cbd5295c35a", + "x-ms-ratelimit-remaining-subscription-reads": "11777", + "x-ms-request-id": "bde24e18-a35a-492b-9f05-7c6f75d0cd54", + "x-ms-routing-request-id": "JAPANEAST:20230217T104718Z:c608b675-5b28-4b8a-bffd-9cbd5295c35a" + }, + "ResponseBody": { + "properties": { + "status": "Online", + "maxSizeBytes": 263882790666240, + "collation": "SQL_Latin1_General_CP1_CI_AS", + "creationDate": "2023-02-17T10:46:29.5Z", + "storageAccountType": "GRS", + "provisioningState": "Succeeded" + }, + "sku": { + "name": "DW200c", + "capacity": 0 + }, + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/sqlPools/sqlpool9501", + "name": "sqlpool9501", + "type": "Microsoft.Synapse/workspaces/sqlPools", + "location": "eastus2", + "tags": { + "TestTag": "TestUpdate" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/sqlPools/sqlpool9501?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-943fa8f19caf4bda6a216436bcfe00ef-4cb1da4d7c4c0679-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "cb6d3b2dfab3a1b56d2d88e7ffb876b2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "540", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:47:18 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "cb6d3b2dfab3a1b56d2d88e7ffb876b2", + "x-ms-correlation-request-id": "b241a998-782d-41bf-a186-1afe9aa595b2", + "x-ms-ratelimit-remaining-subscription-reads": "11776", + "x-ms-request-id": "2fe0bb8b-f3c8-4178-8aed-0bc19cea11c8", + "x-ms-routing-request-id": "JAPANEAST:20230217T104718Z:b241a998-782d-41bf-a186-1afe9aa595b2" + }, + "ResponseBody": { + "properties": { + "status": "Online", + "maxSizeBytes": 263882790666240, + "collation": "SQL_Latin1_General_CP1_CI_AS", + "creationDate": "2023-02-17T10:46:29.5Z", + "storageAccountType": "GRS", + "provisioningState": "Succeeded" + }, + "sku": { + "name": "DW200c", + "capacity": 0 + }, + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/sqlPools/sqlpool9501", + "name": "sqlpool9501", + "type": "Microsoft.Synapse/workspaces/sqlPools", + "location": "eastus2", + "tags": { + "TestTag": "TestUpdate" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/sqlPools?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "2d80e193aabc28711bd0b880dd61c4d8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "552", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:47:19 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "2d80e193aabc28711bd0b880dd61c4d8", + "x-ms-correlation-request-id": "10211968-d9fb-47a9-9ee2-1f3825f54167", + "x-ms-ratelimit-remaining-subscription-reads": "11775", + "x-ms-request-id": "71da4bca-3c62-46cf-aa51-27306edc052b", + "x-ms-routing-request-id": "JAPANEAST:20230217T104719Z:10211968-d9fb-47a9-9ee2-1f3825f54167" + }, + "ResponseBody": { + "value": [ + { + "properties": { + "status": "Online", + "maxSizeBytes": 263882790666240, + "collation": "SQL_Latin1_General_CP1_CI_AS", + "creationDate": "2023-02-17T10:46:29.5Z", + "storageAccountType": "GRS", + "provisioningState": "Succeeded" + }, + "sku": { + "name": "DW200c", + "capacity": 0 + }, + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/sqlPools/sqlpool9501", + "name": "sqlpool9501", + "type": "Microsoft.Synapse/workspaces/sqlPools", + "location": "eastus2", + "tags": { + "TestTag": "TestUpdate" + } + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/sqlPools/sqlpool9501?api-version=2021-06-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-e2117ffd04f6a7f1cd115f43013c2201-a227de0a096d1388-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "628cf17a28f3a5ecee3c168ecedfc26b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Allow-Headers": [ + "Location", + "Retry-After" + ], + "Access-Control-Expose-Headers": [ + "Location", + "Retry-After" + ], + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/operationStatuses/24be52ce-8360-4b8a-881d-bffae752a539?api-version=2021-06-01", + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Fri, 17 Feb 2023 10:47:20 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/operationResults/24be52ce-8360-4b8a-881d-bffae752a539?api-version=2021-06-01", + "Pragma": "no-cache", + "Retry-After": "10", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "628cf17a28f3a5ecee3c168ecedfc26b", + "x-ms-correlation-request-id": "628b89a4-59ce-4527-afbe-d3478c8029ca", + "x-ms-ratelimit-remaining-subscription-deletes": "14996", + "x-ms-request-id": "8128a412-a164-42e4-bb8f-c554263a98a1", + "x-ms-routing-request-id": "JAPANEAST:20230217T104720Z:628b89a4-59ce-4527-afbe-d3478c8029ca" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/operationStatuses/24be52ce-8360-4b8a-881d-bffae752a539?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-e2117ffd04f6a7f1cd115f43013c2201-0d90c11241d67924-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "0d6db069142b6bbff5da3f8094e2593c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:47:20 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "0d6db069142b6bbff5da3f8094e2593c", + "x-ms-correlation-request-id": "d8c80f3f-f7b0-43ee-b8cc-ff1213ee022e", + "x-ms-ratelimit-remaining-subscription-reads": "11774", + "x-ms-request-id": "6ae217a4-17b5-4da6-bad2-eddce3efdd1a", + "x-ms-routing-request-id": "JAPANEAST:20230217T104720Z:d8c80f3f-f7b0-43ee-b8cc-ff1213ee022e" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/operationStatuses/24be52ce-8360-4b8a-881d-bffae752a539?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-e2117ffd04f6a7f1cd115f43013c2201-5f569ff3332f0ce1-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "73e04c0e2c44e96b910898ae780963ba", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:47:21 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "73e04c0e2c44e96b910898ae780963ba", + "x-ms-correlation-request-id": "5b099078-3296-4ec8-824f-29e357f56fd0", + "x-ms-ratelimit-remaining-subscription-reads": "11773", + "x-ms-request-id": "3b6cba59-4860-43a5-adb8-142d790b8926", + "x-ms-routing-request-id": "JAPANEAST:20230217T104721Z:5b099078-3296-4ec8-824f-29e357f56fd0" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/operationStatuses/24be52ce-8360-4b8a-881d-bffae752a539?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-e2117ffd04f6a7f1cd115f43013c2201-26b922c65ddc5761-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "1d250978b4718c3fabb1a19251dfeee7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:47:23 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "1d250978b4718c3fabb1a19251dfeee7", + "x-ms-correlation-request-id": "ac4b8a18-033c-4c3c-9040-8503130e1a04", + "x-ms-ratelimit-remaining-subscription-reads": "11772", + "x-ms-request-id": "ce14b4fb-2e2f-406b-b00f-9b840911e317", + "x-ms-routing-request-id": "JAPANEAST:20230217T104723Z:ac4b8a18-033c-4c3c-9040-8503130e1a04" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/operationStatuses/24be52ce-8360-4b8a-881d-bffae752a539?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-e2117ffd04f6a7f1cd115f43013c2201-a20d8a4db5e51fcb-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "f5d472eb50543cc845837c237b10f2eb", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:47:24 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "f5d472eb50543cc845837c237b10f2eb", + "x-ms-correlation-request-id": "a23fa57d-b902-4f15-a984-41f2e9f79352", + "x-ms-ratelimit-remaining-subscription-reads": "11771", + "x-ms-request-id": "fe1575e1-5434-4892-ae79-084430bdb7a7", + "x-ms-routing-request-id": "JAPANEAST:20230217T104724Z:a23fa57d-b902-4f15-a984-41f2e9f79352" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/operationStatuses/24be52ce-8360-4b8a-881d-bffae752a539?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-e2117ffd04f6a7f1cd115f43013c2201-b1d1fd8dd4dcf15d-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "8a0784773bbc59ca0d53c8928bd998b1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:47:27 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "8a0784773bbc59ca0d53c8928bd998b1", + "x-ms-correlation-request-id": "5eb1a49d-e535-45e9-9b90-78980d92cf19", + "x-ms-ratelimit-remaining-subscription-reads": "11770", + "x-ms-request-id": "05f46afc-0710-42a5-8460-e326e4aff0a9", + "x-ms-routing-request-id": "JAPANEAST:20230217T104727Z:5eb1a49d-e535-45e9-9b90-78980d92cf19" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/operationStatuses/24be52ce-8360-4b8a-881d-bffae752a539?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-e2117ffd04f6a7f1cd115f43013c2201-92e1c07e5ee767f3-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "06c2b11a6d35286541e9d8ee371c109a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:47:31 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "06c2b11a6d35286541e9d8ee371c109a", + "x-ms-correlation-request-id": "db5953b6-fd26-467c-a75e-595ff56207fe", + "x-ms-ratelimit-remaining-subscription-reads": "11769", + "x-ms-request-id": "705243f8-92fc-4d44-9771-2ec1e997f9c6", + "x-ms-routing-request-id": "JAPANEAST:20230217T104731Z:db5953b6-fd26-467c-a75e-595ff56207fe" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/operationStatuses/24be52ce-8360-4b8a-881d-bffae752a539?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-e2117ffd04f6a7f1cd115f43013c2201-776c4ddfbeb3eb7e-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "cc1ab5bf63d8af2aa77ae7008836b16b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:47:39 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "cc1ab5bf63d8af2aa77ae7008836b16b", + "x-ms-correlation-request-id": "a4d0358f-f6a1-41e7-b7d7-9a6c531e91ab", + "x-ms-ratelimit-remaining-subscription-reads": "11768", + "x-ms-request-id": "832750a0-0f8b-40c9-8740-a10a45c98236", + "x-ms-routing-request-id": "JAPANEAST:20230217T104740Z:a4d0358f-f6a1-41e7-b7d7-9a6c531e91ab" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/operationStatuses/24be52ce-8360-4b8a-881d-bffae752a539?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-e2117ffd04f6a7f1cd115f43013c2201-6c6a6dd501494951-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "ca08caeaec4d09b61fde49d363dc21f1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "22", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:47:56 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "ca08caeaec4d09b61fde49d363dc21f1", + "x-ms-correlation-request-id": "c05a1295-f2b4-4706-a749-99194cc1a82c", + "x-ms-ratelimit-remaining-subscription-reads": "11767", + "x-ms-request-id": "9a0c0a10-bf08-4162-abbb-3985985ecb4d", + "x-ms-routing-request-id": "JAPANEAST:20230217T104756Z:c05a1295-f2b4-4706-a749-99194cc1a82c" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp1801/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3415/sqlPools?api-version=2021-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "d5d32d42ccbeb7d987135eba8564a00b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "12", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 10:47:56 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "d5d32d42ccbeb7d987135eba8564a00b", + "x-ms-correlation-request-id": "e3e26987-572d-4dd5-a0b0-47b64c53e3bc", + "x-ms-ratelimit-remaining-subscription-reads": "11766", + "x-ms-request-id": "984b4842-0f7d-43c3-ad9b-dd8b994f3489", + "x-ms-routing-request-id": "JAPANEAST:20230217T104757Z:e3e26987-572d-4dd5-a0b0-47b64c53e3bc" + }, + "ResponseBody": { + "value": [] + } + } + ], + "Variables": { + "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com/", + "RandomSeed": "939262215", + "RESOURCE_MANAGER_URL": null, + "SUBSCRIPTION_ID": "051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3" + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/tests/SessionRecords/WorkspaceOperationTests/TestWorkspaceLifeCycle.json b/sdk/synapse/Azure.ResourceManager.Synapse/tests/SessionRecords/WorkspaceOperationTests/TestWorkspaceLifeCycle.json index 0a1399c3b75b7..8e1d8b7bb1514 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/tests/SessionRecords/WorkspaceOperationTests/TestWorkspaceLifeCycle.json +++ b/sdk/synapse/Azure.ResourceManager.Synapse/tests/SessionRecords/WorkspaceOperationTests/TestWorkspaceLifeCycle.json @@ -6,10 +6,9 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "Connection": "keep-alive", - "traceparent": "00-a57c17c929ea464cad87cf2fe0e3b41c-74e94eb76e5c3846-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "523da67f284d410a92d7da30f7213b8e", + "traceparent": "00-39b0d91c26829974e42f4ad9cd512ab4-306a5c2330de3607-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "c8665eb5b30a0404684e757ef98b31c7", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -18,15 +17,15 @@ "Cache-Control": "no-cache", "Content-Length": "492", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:29:30 GMT", + "Date": "Mon, 20 Feb 2023 02:36:32 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "a8494422-c6c7-4abe-b8b7-e83e3a914878", + "x-ms-correlation-request-id": "48134e63-4dde-46a9-9055-7d83459e1849", "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "a8494422-c6c7-4abe-b8b7-e83e3a914878", - "x-ms-routing-request-id": "JAPANEAST:20230201T042930Z:a8494422-c6c7-4abe-b8b7-e83e3a914878" + "x-ms-request-id": "48134e63-4dde-46a9-9055-7d83459e1849", + "x-ms-routing-request-id": "JAPANEAST:20230220T023633Z:48134e63-4dde-46a9-9055-7d83459e1849" }, "ResponseBody": { "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3", @@ -51,16 +50,16 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourcegroups/synapsesdkrp6775?api-version=**", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourcegroups/synapsesdkrp5551?api-version=**", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "22", "Content-Type": "application/json", - "traceparent": "00-7c4d0a7ba082e24c8b7e3597d67ff756-85dc3db64a3ecf43-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "95db36425e02157678f7da891dfbba90", + "traceparent": "00-f0295ff80cc01010d74a284e283dc326-845bd0acbe112cd6-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "9994829086180dcb47985910d33fbed1", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -71,19 +70,19 @@ "Cache-Control": "no-cache", "Content-Length": "230", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:29:34 GMT", + "Date": "Mon, 20 Feb 2023 02:36:36 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "508fe845-93e5-4ebb-90c1-4e06e49e9b73", + "x-ms-correlation-request-id": "dabac2ed-3836-4dac-b7ef-c97273a8cf28", "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "508fe845-93e5-4ebb-90c1-4e06e49e9b73", - "x-ms-routing-request-id": "JAPANEAST:20230201T042934Z:508fe845-93e5-4ebb-90c1-4e06e49e9b73" + "x-ms-request-id": "dabac2ed-3836-4dac-b7ef-c97273a8cf28", + "x-ms-routing-request-id": "JAPANEAST:20230220T023636Z:dabac2ed-3836-4dac-b7ef-c97273a8cf28" }, "ResponseBody": { - "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6775", - "name": "synapsesdkrp6775", + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp5551", + "name": "synapsesdkrp5551", "type": "Microsoft.Resources/resourceGroups", "location": "eastus2", "properties": { @@ -92,16 +91,16 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6775/providers/Microsoft.Storage/storageAccounts/synapsesdkstorage1849?api-version=2022-09-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp5551/providers/Microsoft.Storage/storageAccounts/synapsesdkstorage2778?api-version=2022-09-01", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "87", "Content-Type": "application/json", - "traceparent": "00-456d1d740bd3ee44a4a632b60e47c2cb-83308d6806faf945-00", - "User-Agent": "azsdk-net-ResourceManager.Storage/1.1.0 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "46d1c812c760cdd6720aaf0839cf24f9", + "traceparent": "00-b9c6326030de6f72eb5fa7a8f6d08486-151c4957c3a7ddbf-00", + "User-Agent": "azsdk-net-ResourceManager.Storage/1.1.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "7a9ea0d0ce33af77b84ece1329d139cd", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -117,30 +116,30 @@ "Cache-Control": "no-cache", "Content-Length": "0", "Content-Type": "text/plain; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:29:40 GMT", + "Date": "Mon, 20 Feb 2023 02:36:45 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Storage/locations/eastus2/asyncoperations/0f97fde2-87e9-4d9b-a61e-7a111591f61e?monitor=true\u0026api-version=2022-09-01", + "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Storage/locations/eastus2/asyncoperations/e08d10a2-07bb-4579-8cd5-00a7f143f035?monitor=true\u0026api-version=2022-09-01", "Pragma": "no-cache", "Retry-After": "17", "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "46d1c812c760cdd6720aaf0839cf24f9", - "x-ms-correlation-request-id": "876fc777-8884-4430-925b-2873cebe9f2f", + "x-ms-client-request-id": "7a9ea0d0ce33af77b84ece1329d139cd", + "x-ms-correlation-request-id": "fff0ffb1-0d93-4bec-ae3a-93415745e61e", "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "0f97fde2-87e9-4d9b-a61e-7a111591f61e", - "x-ms-routing-request-id": "JAPANEAST:20230201T042941Z:876fc777-8884-4430-925b-2873cebe9f2f" + "x-ms-request-id": "e08d10a2-07bb-4579-8cd5-00a7f143f035", + "x-ms-routing-request-id": "JAPANEAST:20230220T023645Z:fff0ffb1-0d93-4bec-ae3a-93415745e61e" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Storage/locations/eastus2/asyncoperations/0f97fde2-87e9-4d9b-a61e-7a111591f61e?monitor=true\u0026api-version=2022-09-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Storage/locations/eastus2/asyncoperations/e08d10a2-07bb-4579-8cd5-00a7f143f035?monitor=true\u0026api-version=2022-09-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-456d1d740bd3ee44a4a632b60e47c2cb-aad851b5d7030940-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "a672fe80a48d7b1e5f0d22f8af6edba8", + "traceparent": "00-b9c6326030de6f72eb5fa7a8f6d08486-3a19dd33202fda75-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "0432f6734b4cc2fd0ae4e1c9b7b8e476", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -149,30 +148,30 @@ "Cache-Control": "no-cache", "Content-Length": "0", "Content-Type": "text/plain; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:29:41 GMT", + "Date": "Mon, 20 Feb 2023 02:36:45 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Storage/locations/eastus2/asyncoperations/0f97fde2-87e9-4d9b-a61e-7a111591f61e?monitor=true\u0026api-version=2022-09-01", + "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Storage/locations/eastus2/asyncoperations/e08d10a2-07bb-4579-8cd5-00a7f143f035?monitor=true\u0026api-version=2022-09-01", "Pragma": "no-cache", "Retry-After": "17", "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "a672fe80a48d7b1e5f0d22f8af6edba8", - "x-ms-correlation-request-id": "10989896-4e2e-4fa3-8542-a7ea6d42652d", + "x-ms-client-request-id": "0432f6734b4cc2fd0ae4e1c9b7b8e476", + "x-ms-correlation-request-id": "bb0015eb-9d4d-4551-9b39-acce93da2d68", "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "2c515825-6cd7-4d3f-8549-fec2aabe76b2", - "x-ms-routing-request-id": "JAPANEAST:20230201T042941Z:10989896-4e2e-4fa3-8542-a7ea6d42652d" + "x-ms-request-id": "e608e011-6b3b-4c81-8d1b-b690bab0251c", + "x-ms-routing-request-id": "JAPANEAST:20230220T023645Z:bb0015eb-9d4d-4551-9b39-acce93da2d68" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Storage/locations/eastus2/asyncoperations/0f97fde2-87e9-4d9b-a61e-7a111591f61e?monitor=true\u0026api-version=2022-09-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Storage/locations/eastus2/asyncoperations/e08d10a2-07bb-4579-8cd5-00a7f143f035?monitor=true\u0026api-version=2022-09-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-456d1d740bd3ee44a4a632b60e47c2cb-dc6d0b80514c9a48-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "631ce0d249be552e7e07b233adf5cdcb", + "traceparent": "00-b9c6326030de6f72eb5fa7a8f6d08486-ec1aefddf82ab0a4-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "10458b5fe21aa1feae71403badc1934a", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -181,17 +180,17 @@ "Cache-Control": "no-cache", "Content-Length": "1528", "Content-Type": "application/json", - "Date": "Wed, 01 Feb 2023 04:29:58 GMT", + "Date": "Mon, 20 Feb 2023 02:37:02 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "631ce0d249be552e7e07b233adf5cdcb", - "x-ms-correlation-request-id": "0f6890c3-77ea-49f8-8b68-a9b7ed0a35a6", + "x-ms-client-request-id": "10458b5fe21aa1feae71403badc1934a", + "x-ms-correlation-request-id": "2ef4e896-4529-47ba-8eef-f92aa2f20ff3", "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-request-id": "273e7310-b6d2-4568-ba14-60aa5427b372", - "x-ms-routing-request-id": "JAPANEAST:20230201T042958Z:0f6890c3-77ea-49f8-8b68-a9b7ed0a35a6" + "x-ms-request-id": "e352dcb2-5823-48c3-9052-6273afbd4e64", + "x-ms-routing-request-id": "JAPANEAST:20230220T023702Z:2ef4e896-4529-47ba-8eef-f92aa2f20ff3" }, "ResponseBody": { "sku": { @@ -199,15 +198,15 @@ "tier": "Standard" }, "kind": "StorageV2", - "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6775/providers/Microsoft.Storage/storageAccounts/synapsesdkstorage1849", - "name": "synapsesdkstorage1849", + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp5551/providers/Microsoft.Storage/storageAccounts/synapsesdkstorage2778", + "name": "synapsesdkstorage2778", "type": "Microsoft.Storage/storageAccounts", "location": "eastus2", "tags": {}, "properties": { "keyCreationTime": { - "key1": "2023-02-01T04:29:38.7365546Z", - "key2": "2023-02-01T04:29:38.7365546Z" + "key1": "2023-02-20T02:36:42.6128054Z", + "key2": "2023-02-20T02:36:42.6128054Z" }, "privateEndpointConnections": [], "minimumTlsVersion": "TLS1_0", @@ -224,26 +223,26 @@ "file": { "keyType": "Account", "enabled": true, - "lastEnabledTime": "2023-02-01T04:29:39.5177905Z" + "lastEnabledTime": "2023-02-20T02:36:43.9410501Z" }, "blob": { "keyType": "Account", "enabled": true, - "lastEnabledTime": "2023-02-01T04:29:39.5177905Z" + "lastEnabledTime": "2023-02-20T02:36:43.9410501Z" } }, "keySource": "Microsoft.Storage" }, "accessTier": "Hot", "provisioningState": "Succeeded", - "creationTime": "2023-02-01T04:29:38.5803192Z", + "creationTime": "2023-02-20T02:36:42.4721888Z", "primaryEndpoints": { - "dfs": "https://synapsesdkstorage1849.dfs.core.windows.net/", - "web": "https://synapsesdkstorage1849.z20.web.core.windows.net/", - "blob": "https://synapsesdkstorage1849.blob.core.windows.net/", - "queue": "https://synapsesdkstorage1849.queue.core.windows.net/", - "table": "https://synapsesdkstorage1849.table.core.windows.net/", - "file": "https://synapsesdkstorage1849.file.core.windows.net/" + "dfs": "https://synapsesdkstorage2778.dfs.core.windows.net/", + "web": "https://synapsesdkstorage2778.z20.web.core.windows.net/", + "blob": "https://synapsesdkstorage2778.blob.core.windows.net/", + "queue": "https://synapsesdkstorage2778.queue.core.windows.net/", + "table": "https://synapsesdkstorage2778.table.core.windows.net/", + "file": "https://synapsesdkstorage2778.file.core.windows.net/" }, "primaryLocation": "eastus2", "statusOfPrimary": "available", @@ -253,15 +252,15 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6775/providers/Microsoft.Storage/storageAccounts/synapsesdkstorage1849/listKeys?api-version=2022-09-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp5551/providers/Microsoft.Storage/storageAccounts/synapsesdkstorage2778/listKeys?api-version=2022-09-01", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "0", - "traceparent": "00-405f15379bd6024693694a263983df48-e68d9ddb55c4d844-00", - "User-Agent": "azsdk-net-ResourceManager.Storage/1.1.0 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "3b8789307d5cc86c9ac1105499521925", + "traceparent": "00-1b5b7c0be3f423e6c29e714ba2ab835c-64297d3e804f82df-00", + "User-Agent": "azsdk-net-ResourceManager.Storage/1.1.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "329f8228359f7f81c563d1ee4c277581", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -270,46 +269,46 @@ "Cache-Control": "no-cache", "Content-Length": "380", "Content-Type": "application/json", - "Date": "Wed, 01 Feb 2023 04:29:59 GMT", + "Date": "Mon, 20 Feb 2023 02:37:03 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "3b8789307d5cc86c9ac1105499521925", - "x-ms-correlation-request-id": "7c56f1fc-09f0-45bb-b9e4-1dfd3b4dd2ec", + "x-ms-client-request-id": "329f8228359f7f81c563d1ee4c277581", + "x-ms-correlation-request-id": "47975d51-2669-4c39-8eff-d8d34bb65239", "x-ms-ratelimit-remaining-subscription-resource-requests": "11999", - "x-ms-request-id": "c017f27c-6589-4be6-9f9b-3ae7f5e63b29", - "x-ms-routing-request-id": "JAPANEAST:20230201T042959Z:7c56f1fc-09f0-45bb-b9e4-1dfd3b4dd2ec" + "x-ms-request-id": "ad67807d-0703-4299-aedc-d50131db4a0e", + "x-ms-routing-request-id": "JAPANEAST:20230220T023703Z:47975d51-2669-4c39-8eff-d8d34bb65239" }, "ResponseBody": { "keys": [ { - "creationTime": "2023-02-01T04:29:38.7365546Z", + "creationTime": "2023-02-20T02:36:42.6128054Z", "keyName": "key1", - "value": "ofzVsTbJYuxON0FppJmN5\u002BbTyAabUKJG7bD1Rm7XA0Mm0\u002BMH3s4/b3E1dV/kfBCMskeh9Ex7iEQm\u002BAStrVZq4w==", + "value": "prcIIjTI2O\u002B2okvJWHYz7c3cFVCYcUtNtorCqec\u002BgIiJFqaqUf4CogqpAv9sRvZ3kUfZI4RNBewD\u002BAStm1HapA==", "permissions": "FULL" }, { - "creationTime": "2023-02-01T04:29:38.7365546Z", + "creationTime": "2023-02-20T02:36:42.6128054Z", "keyName": "key2", - "value": "ko2xKVwE5Gx2flvDnZjsZQbbn1hFCKEdxtyhVHzzg45ZZdJ8u\u002BLFxHfvovQrlalqC/hxRUMAbwa6\u002BASthnay\u002Bw==", + "value": "5T5FO5p0s6xE7wnPg9MspUvb4vNj\u002BO/2VbvPGQOnl120bVH2DSSj4035Esh3u1YvJmpcfmRKdtr5\u002BAStNzpLmA==", "permissions": "FULL" } ] } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6775/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace1546?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp5551/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3141?api-version=2021-06-01", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "302", "Content-Type": "application/json", - "traceparent": "00-dae90d2196827444a61e1f951fa142ab-d53446c466282f49-00", - "User-Agent": "azsdk-net-ResourceManager.Synapse/1.1.0-alpha.20230131.1 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "8b1e0d716776d0361c2785f1ebcd6a40", + "traceparent": "00-d9c4c5b49a8b9a3a1d1ffb04fbd1cfb0-cd161c4b40194b96-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "289157aa3115f7909055db0bc1144950", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -320,80 +319,80 @@ "location": "eastus2", "properties": { "defaultDataLakeStorage": { - "accountUrl": "https://synapsesdkstorage1849.dfs.core.windows.net/", - "filesystem": "synapsesdkfilesys9419" + "accountUrl": "https://synapsesdkstorage2778.dfs.core.windows.net/", + "filesystem": "synapsesdkfilesys4477" }, - "sqlAdministratorLoginPassword": "Password1!6513", - "sqlAdministratorLogin": "sshuser5822" + "sqlAdministratorLoginPassword": "Password1!8551", + "sqlAdministratorLogin": "sshuser5636" } }, "StatusCode": 201, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6775/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace1546/operationStatuses/815a10e6-6b31-4c95-9f65-d1d7dff24fd5?api-version=2021-06-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp5551/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3141/operationStatuses/67372df7-5232-4dc0-ac38-bed31f40213f?api-version=2021-06-01", "Cache-Control": "no-cache", "Content-Length": "1477", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:30:07 GMT", + "Date": "Mon, 20 Feb 2023 02:37:11 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "8b1e0d716776d0361c2785f1ebcd6a40", - "x-ms-correlation-request-id": "743d8ff7-3e3c-4cbc-9b31-89a6a40b35ef", + "x-ms-client-request-id": "289157aa3115f7909055db0bc1144950", + "x-ms-correlation-request-id": "243b51e6-ecd3-4f32-ad9a-1b79dd9c4937", "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": "3e6f0375-3f87-4fc4-bfcc-a951f33e3fbb", - "x-ms-routing-request-id": "JAPANEAST:20230201T043008Z:743d8ff7-3e3c-4cbc-9b31-89a6a40b35ef" + "x-ms-request-id": "7dbf5acb-d595-4be0-83c3-d0a8cbdc1fdd", + "x-ms-routing-request-id": "JAPANEAST:20230220T023711Z:243b51e6-ecd3-4f32-ad9a-1b79dd9c4937" }, "ResponseBody": { "properties": { "defaultDataLakeStorage": { "createManagedPrivateEndpoint": false, - "accountUrl": "https://synapsesdkstorage1849.dfs.core.windows.net/", - "filesystem": "synapsesdkfilesys9419" + "accountUrl": "https://synapsesdkstorage2778.dfs.core.windows.net/", + "filesystem": "synapsesdkfilesys4477" }, "encryption": { "doubleEncryptionEnabled": false }, "provisioningState": "Provisioning", "connectivityEndpoints": { - "web": "https://web.azuresynapse.net?workspace=%2fsubscriptions%2f051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3%2fresourceGroups%2fsynapsesdkrp6775%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fsynapsesdkworkspace1546", - "dev": "https://synapsesdkworkspace1546.dev.azuresynapse.net", - "sqlOnDemand": "synapsesdkworkspace1546-ondemand.sql.azuresynapse.net", - "sql": "synapsesdkworkspace1546.sql.azuresynapse.net" + "web": "https://web.azuresynapse.net?workspace=%2fsubscriptions%2f051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3%2fresourceGroups%2fsynapsesdkrp5551%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fsynapsesdkworkspace3141", + "dev": "https://synapsesdkworkspace3141.dev.azuresynapse.net", + "sqlOnDemand": "synapsesdkworkspace3141-ondemand.sql.azuresynapse.net", + "sql": "synapsesdkworkspace3141.sql.azuresynapse.net" }, - "managedResourceGroupName": "synapseworkspace-managedrg-18575b01-0b43-4fcb-9f4c-601c33e43120", + "managedResourceGroupName": "synapseworkspace-managedrg-e8552c12-9fbc-454f-a114-3ae5a592ee40", "privateEndpointConnections": [], - "workspaceUID": "c4c2d280-6172-408a-a92b-17c75589142c", + "workspaceUID": "7ee88080-7524-4490-aba9-8a8d97721449", "extraProperties": { "WorkspaceType": "Normal" }, "publicNetworkAccess": "Enabled", "cspWorkspaceAdminProperties": { - "initialWorkspaceAdminObjectId": "1c263ed5-a67e-400e-a599-0479e0ceb82f" + "initialWorkspaceAdminObjectId": "5adcf4d8-4923-420e-ab0b-f6e5fc718b42" }, "trustedServiceBypassEnabled": false }, "type": "Microsoft.Synapse/workspaces", - "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6775/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace1546", + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp5551/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3141", "location": "eastus2", - "name": "synapsesdkworkspace1546", + "name": "synapsesdkworkspace3141", "identity": { "type": "SystemAssigned", "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", - "principalId": "858faa2e-4ef9-4777-aa1b-7b7ab1198035" + "principalId": "054c8f09-8bf3-480c-a239-409d42562230" }, "tags": {} } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6775/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace1546/operationStatuses/815a10e6-6b31-4c95-9f65-d1d7dff24fd5?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp5551/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3141/operationStatuses/67372df7-5232-4dc0-ac38-bed31f40213f?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-dae90d2196827444a61e1f951fa142ab-ab4eca2e56f9f64e-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "e83ce28d3fae22b9516a3f56e6d7aef4", + "traceparent": "00-d9c4c5b49a8b9a3a1d1ffb04fbd1cfb0-777a91810eb2419c-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "6a0328be220251120f3b0fdfa574044e", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -402,30 +401,30 @@ "Cache-Control": "no-cache", "Content-Length": "23", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:30:08 GMT", + "Date": "Mon, 20 Feb 2023 02:37:11 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "e83ce28d3fae22b9516a3f56e6d7aef4", - "x-ms-correlation-request-id": "c07c4b8b-7193-43f9-90de-35dbdba6a1d2", + "x-ms-client-request-id": "6a0328be220251120f3b0fdfa574044e", + "x-ms-correlation-request-id": "5c213191-6987-462a-928e-2b852b649b8f", "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-request-id": "8a63e7bd-0e9a-483b-bdb8-3d83f1e68732", - "x-ms-routing-request-id": "JAPANEAST:20230201T043009Z:c07c4b8b-7193-43f9-90de-35dbdba6a1d2" + "x-ms-request-id": "413ebb7e-d826-41cb-a9c2-caa2259808e9", + "x-ms-routing-request-id": "JAPANEAST:20230220T023711Z:5c213191-6987-462a-928e-2b852b649b8f" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6775/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace1546/operationStatuses/815a10e6-6b31-4c95-9f65-d1d7dff24fd5?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp5551/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3141/operationStatuses/67372df7-5232-4dc0-ac38-bed31f40213f?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-dae90d2196827444a61e1f951fa142ab-1ced78f14a1d6640-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "8a4213a63ff326b0b8aa38ad6afdf660", + "traceparent": "00-d9c4c5b49a8b9a3a1d1ffb04fbd1cfb0-e883e43addf38fc1-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "86b69d886941d3622c8663ca7a80e73b", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -434,30 +433,30 @@ "Cache-Control": "no-cache", "Content-Length": "23", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:30:10 GMT", + "Date": "Mon, 20 Feb 2023 02:37:12 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "8a4213a63ff326b0b8aa38ad6afdf660", - "x-ms-correlation-request-id": "6e9621de-8e63-4bec-9342-559018cd7f59", + "x-ms-client-request-id": "86b69d886941d3622c8663ca7a80e73b", + "x-ms-correlation-request-id": "56a1a728-a25d-4eaa-a8e1-82b7074c9f73", "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "c405187e-dd80-41cd-a8d0-178b9a30021c", - "x-ms-routing-request-id": "JAPANEAST:20230201T043010Z:6e9621de-8e63-4bec-9342-559018cd7f59" + "x-ms-request-id": "4d4af0d9-578b-4dfe-b0f6-71e8a128bc8c", + "x-ms-routing-request-id": "JAPANEAST:20230220T023713Z:56a1a728-a25d-4eaa-a8e1-82b7074c9f73" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6775/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace1546/operationStatuses/815a10e6-6b31-4c95-9f65-d1d7dff24fd5?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp5551/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3141/operationStatuses/67372df7-5232-4dc0-ac38-bed31f40213f?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-dae90d2196827444a61e1f951fa142ab-4c97237d8359c149-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "096497fb819117910e0394350bfe8d7b", + "traceparent": "00-d9c4c5b49a8b9a3a1d1ffb04fbd1cfb0-75848826b4bad646-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "984cdfcfdf11744e8ee30976c74a6450", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -466,30 +465,30 @@ "Cache-Control": "no-cache", "Content-Length": "23", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:30:11 GMT", + "Date": "Mon, 20 Feb 2023 02:37:14 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "096497fb819117910e0394350bfe8d7b", - "x-ms-correlation-request-id": "c056c2dd-ac7c-4cb7-a24b-47e58b12be15", + "x-ms-client-request-id": "984cdfcfdf11744e8ee30976c74a6450", + "x-ms-correlation-request-id": "7a7ee10b-1b35-4186-87cd-6f105b9bfdb8", "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "8f151c5d-8af4-4409-ae14-588da2b88956", - "x-ms-routing-request-id": "JAPANEAST:20230201T043012Z:c056c2dd-ac7c-4cb7-a24b-47e58b12be15" + "x-ms-request-id": "29cee801-7d97-4cc6-b9a2-369396d55249", + "x-ms-routing-request-id": "JAPANEAST:20230220T023714Z:7a7ee10b-1b35-4186-87cd-6f105b9bfdb8" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6775/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace1546/operationStatuses/815a10e6-6b31-4c95-9f65-d1d7dff24fd5?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp5551/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3141/operationStatuses/67372df7-5232-4dc0-ac38-bed31f40213f?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-dae90d2196827444a61e1f951fa142ab-9e10131cd026ca41-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "c692081aa27a4dfa31163004070cb853", + "traceparent": "00-d9c4c5b49a8b9a3a1d1ffb04fbd1cfb0-e10991ed3ec418b5-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "72876846ff9e55bac62f3d7bbe47d78e", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -498,30 +497,30 @@ "Cache-Control": "no-cache", "Content-Length": "23", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:30:13 GMT", + "Date": "Mon, 20 Feb 2023 02:37:15 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "c692081aa27a4dfa31163004070cb853", - "x-ms-correlation-request-id": "f421a02a-76f0-4d12-bbb7-c96bf44efdfb", + "x-ms-client-request-id": "72876846ff9e55bac62f3d7bbe47d78e", + "x-ms-correlation-request-id": "63bfff52-6e93-437b-911e-ca9ddf7e41c9", "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-request-id": "04cd592a-d911-4b1c-b6ca-d51e1eae6de2", - "x-ms-routing-request-id": "JAPANEAST:20230201T043013Z:f421a02a-76f0-4d12-bbb7-c96bf44efdfb" + "x-ms-request-id": "2ca4baa1-3900-4947-8f50-a3316323d247", + "x-ms-routing-request-id": "JAPANEAST:20230220T023716Z:63bfff52-6e93-437b-911e-ca9ddf7e41c9" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6775/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace1546/operationStatuses/815a10e6-6b31-4c95-9f65-d1d7dff24fd5?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp5551/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3141/operationStatuses/67372df7-5232-4dc0-ac38-bed31f40213f?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-dae90d2196827444a61e1f951fa142ab-691947486bf7f842-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "4f5ade74a5722463822a7cefaa7b1ab9", + "traceparent": "00-d9c4c5b49a8b9a3a1d1ffb04fbd1cfb0-1d0219068746a8e2-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "c610d4536b28a93d4e41f85d60ec0be2", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -530,30 +529,30 @@ "Cache-Control": "no-cache", "Content-Length": "23", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:30:15 GMT", + "Date": "Mon, 20 Feb 2023 02:37:18 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "4f5ade74a5722463822a7cefaa7b1ab9", - "x-ms-correlation-request-id": "d5af4ceb-ca29-486f-b3fe-152113bf1e8a", + "x-ms-client-request-id": "c610d4536b28a93d4e41f85d60ec0be2", + "x-ms-correlation-request-id": "c62bc122-867f-424f-90c4-2b754d16034c", "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "7a660f6d-2718-4866-8b2d-80e364c25d3e", - "x-ms-routing-request-id": "JAPANEAST:20230201T043016Z:d5af4ceb-ca29-486f-b3fe-152113bf1e8a" + "x-ms-request-id": "7542f085-be70-49ff-ad82-ea82e5ed5e7d", + "x-ms-routing-request-id": "JAPANEAST:20230220T023718Z:c62bc122-867f-424f-90c4-2b754d16034c" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6775/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace1546/operationStatuses/815a10e6-6b31-4c95-9f65-d1d7dff24fd5?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp5551/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3141/operationStatuses/67372df7-5232-4dc0-ac38-bed31f40213f?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-dae90d2196827444a61e1f951fa142ab-380f84a6f326b547-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "6192bc1c2f6a59e69c16d77b518d0f01", + "traceparent": "00-d9c4c5b49a8b9a3a1d1ffb04fbd1cfb0-278e736d5f35e927-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "1184132275f8cf9c24f7d2e1a2d3b646", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -562,30 +561,30 @@ "Cache-Control": "no-cache", "Content-Length": "23", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:30:20 GMT", + "Date": "Mon, 20 Feb 2023 02:37:22 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "6192bc1c2f6a59e69c16d77b518d0f01", - "x-ms-correlation-request-id": "6f1a4b1e-9272-4c4a-b94c-d1419518399d", + "x-ms-client-request-id": "1184132275f8cf9c24f7d2e1a2d3b646", + "x-ms-correlation-request-id": "368d56b9-5132-42ec-9e72-7b0be406c08c", "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "f5fa7230-ad6c-436e-a587-334da9611f90", - "x-ms-routing-request-id": "JAPANEAST:20230201T043020Z:6f1a4b1e-9272-4c4a-b94c-d1419518399d" + "x-ms-request-id": "26578e51-af7b-4030-b479-a87c6b05e7a1", + "x-ms-routing-request-id": "JAPANEAST:20230220T023722Z:368d56b9-5132-42ec-9e72-7b0be406c08c" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6775/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace1546/operationStatuses/815a10e6-6b31-4c95-9f65-d1d7dff24fd5?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp5551/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3141/operationStatuses/67372df7-5232-4dc0-ac38-bed31f40213f?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-dae90d2196827444a61e1f951fa142ab-75c48f2ca840bc40-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "2cc1414b3ea47408a56e444f250ba3b6", + "traceparent": "00-d9c4c5b49a8b9a3a1d1ffb04fbd1cfb0-3afa3590aa9bc489-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "f3227a0c9d3adb272ade235d075cf4da", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -594,30 +593,30 @@ "Cache-Control": "no-cache", "Content-Length": "23", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:30:28 GMT", + "Date": "Mon, 20 Feb 2023 02:37:30 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "2cc1414b3ea47408a56e444f250ba3b6", - "x-ms-correlation-request-id": "97f8827a-e839-456f-b18f-4bbfc2409baa", + "x-ms-client-request-id": "f3227a0c9d3adb272ade235d075cf4da", + "x-ms-correlation-request-id": "a7b0fb12-76c5-4645-85f5-899179252f9c", "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "92dc9117-e031-475e-99e5-cf568fff5a9b", - "x-ms-routing-request-id": "JAPANEAST:20230201T043029Z:97f8827a-e839-456f-b18f-4bbfc2409baa" + "x-ms-request-id": "3f1f5ca4-ad31-4693-ba81-ee2d92ef5c69", + "x-ms-routing-request-id": "JAPANEAST:20230220T023731Z:a7b0fb12-76c5-4645-85f5-899179252f9c" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6775/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace1546/operationStatuses/815a10e6-6b31-4c95-9f65-d1d7dff24fd5?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp5551/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3141/operationStatuses/67372df7-5232-4dc0-ac38-bed31f40213f?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-dae90d2196827444a61e1f951fa142ab-71f7345407a95847-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "4be776fb567944e9f801b35ccee7d2f4", + "traceparent": "00-d9c4c5b49a8b9a3a1d1ffb04fbd1cfb0-1967e379079e3045-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "ab585b23c5c3de953740a231995c077b", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -626,30 +625,30 @@ "Cache-Control": "no-cache", "Content-Length": "23", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:30:44 GMT", + "Date": "Mon, 20 Feb 2023 02:37:46 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "4be776fb567944e9f801b35ccee7d2f4", - "x-ms-correlation-request-id": "cf7ebe2f-93ed-4ddb-ab8d-74f943f8f865", + "x-ms-client-request-id": "ab585b23c5c3de953740a231995c077b", + "x-ms-correlation-request-id": "999462d5-bf63-4794-9ec9-9007591b3762", "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "2a2d47ca-3d58-4f73-9f5e-dd72664507cd", - "x-ms-routing-request-id": "JAPANEAST:20230201T043045Z:cf7ebe2f-93ed-4ddb-ab8d-74f943f8f865" + "x-ms-request-id": "b26e1128-c617-4acb-96ed-563a198ed02e", + "x-ms-routing-request-id": "JAPANEAST:20230220T023747Z:999462d5-bf63-4794-9ec9-9007591b3762" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6775/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace1546/operationStatuses/815a10e6-6b31-4c95-9f65-d1d7dff24fd5?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp5551/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3141/operationStatuses/67372df7-5232-4dc0-ac38-bed31f40213f?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-dae90d2196827444a61e1f951fa142ab-53ffd80554c67144-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "69a47a1aedb9de15b31dbbfceb963391", + "traceparent": "00-d9c4c5b49a8b9a3a1d1ffb04fbd1cfb0-2573ed64395d31a9-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "e551b28a18c984a7eba9e71a513ec8c7", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -658,30 +657,30 @@ "Cache-Control": "no-cache", "Content-Length": "23", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:31:18 GMT", + "Date": "Mon, 20 Feb 2023 02:38:20 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "69a47a1aedb9de15b31dbbfceb963391", - "x-ms-correlation-request-id": "eabc95a1-7a06-41bb-b93f-0e21ab613815", + "x-ms-client-request-id": "e551b28a18c984a7eba9e71a513ec8c7", + "x-ms-correlation-request-id": "e4f435ae-d130-4dc3-9f49-402569fbbd32", "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "9b1d5945-8f11-4a4b-9008-0fee51e05da0", - "x-ms-routing-request-id": "JAPANEAST:20230201T043118Z:eabc95a1-7a06-41bb-b93f-0e21ab613815" + "x-ms-request-id": "7c34736a-bd1e-4b2d-9348-7e3806108317", + "x-ms-routing-request-id": "JAPANEAST:20230220T023820Z:e4f435ae-d130-4dc3-9f49-402569fbbd32" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6775/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace1546/operationStatuses/815a10e6-6b31-4c95-9f65-d1d7dff24fd5?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp5551/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3141/operationStatuses/67372df7-5232-4dc0-ac38-bed31f40213f?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-dae90d2196827444a61e1f951fa142ab-32c2c6e08fc28a45-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "db7f2172c4a5f487577d34a28aaca6bd", + "traceparent": "00-d9c4c5b49a8b9a3a1d1ffb04fbd1cfb0-d606e055e8431aab-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "47bdf7020a7a4682e444bbfafbf642ce", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -690,30 +689,30 @@ "Cache-Control": "no-cache", "Content-Length": "23", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:31:50 GMT", + "Date": "Mon, 20 Feb 2023 02:38:52 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "db7f2172c4a5f487577d34a28aaca6bd", - "x-ms-correlation-request-id": "027381bd-75b9-4cb1-b63a-11551bbbb492", + "x-ms-client-request-id": "47bdf7020a7a4682e444bbfafbf642ce", + "x-ms-correlation-request-id": "385f3d2f-f569-4b1f-98c2-6b5ef02677e1", "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-request-id": "cf40d611-c671-4b1f-aaef-668dc29b8908", - "x-ms-routing-request-id": "JAPANEAST:20230201T043150Z:027381bd-75b9-4cb1-b63a-11551bbbb492" + "x-ms-request-id": "f391f4e4-e9b7-46a3-a12d-618cd81c884e", + "x-ms-routing-request-id": "JAPANEAST:20230220T023852Z:385f3d2f-f569-4b1f-98c2-6b5ef02677e1" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6775/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace1546/operationStatuses/815a10e6-6b31-4c95-9f65-d1d7dff24fd5?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp5551/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3141/operationStatuses/67372df7-5232-4dc0-ac38-bed31f40213f?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-dae90d2196827444a61e1f951fa142ab-4dc36ab67a30fa41-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "ab354f9b3a660dfd6109985c9bec5861", + "traceparent": "00-d9c4c5b49a8b9a3a1d1ffb04fbd1cfb0-e57449cf77e26a09-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "55d2a8d70e0a0b11b3d4c01ade7b8cf9", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -722,30 +721,30 @@ "Cache-Control": "no-cache", "Content-Length": "23", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:32:22 GMT", + "Date": "Mon, 20 Feb 2023 02:39:24 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "ab354f9b3a660dfd6109985c9bec5861", - "x-ms-correlation-request-id": "25c43711-0cd0-4d39-a7a5-ec196655deb4", + "x-ms-client-request-id": "55d2a8d70e0a0b11b3d4c01ade7b8cf9", + "x-ms-correlation-request-id": "c8769ccf-78a8-4b0e-8d6f-3efed1e2580e", "x-ms-ratelimit-remaining-subscription-reads": "11986", - "x-ms-request-id": "a440f5d8-a6ec-4c38-aa5d-f75c7006aa8b", - "x-ms-routing-request-id": "JAPANEAST:20230201T043223Z:25c43711-0cd0-4d39-a7a5-ec196655deb4" + "x-ms-request-id": "78f3e454-bbef-4f44-a1ba-d521539c8252", + "x-ms-routing-request-id": "JAPANEAST:20230220T023925Z:c8769ccf-78a8-4b0e-8d6f-3efed1e2580e" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6775/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace1546/operationStatuses/815a10e6-6b31-4c95-9f65-d1d7dff24fd5?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp5551/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3141/operationStatuses/67372df7-5232-4dc0-ac38-bed31f40213f?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-dae90d2196827444a61e1f951fa142ab-cf8e810c26c25641-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "ade922cef768564ef2af113bb9725306", + "traceparent": "00-d9c4c5b49a8b9a3a1d1ffb04fbd1cfb0-cc09df3f0c641b2f-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "a12edb77c09f80002f0b00855cac89f4", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -754,30 +753,30 @@ "Cache-Control": "no-cache", "Content-Length": "22", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:32:54 GMT", + "Date": "Mon, 20 Feb 2023 02:39:57 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "ade922cef768564ef2af113bb9725306", - "x-ms-correlation-request-id": "54687646-09e8-4898-810f-013c285d6ded", + "x-ms-client-request-id": "a12edb77c09f80002f0b00855cac89f4", + "x-ms-correlation-request-id": "3282be71-1888-4855-9dd5-1864c9ae2da2", "x-ms-ratelimit-remaining-subscription-reads": "11985", - "x-ms-request-id": "07603a66-dc6f-4b7a-847d-d90b4aea4359", - "x-ms-routing-request-id": "JAPANEAST:20230201T043255Z:54687646-09e8-4898-810f-013c285d6ded" + "x-ms-request-id": "49b98e19-2a04-449a-8ba0-06c1a61a8274", + "x-ms-routing-request-id": "JAPANEAST:20230220T023957Z:3282be71-1888-4855-9dd5-1864c9ae2da2" }, "ResponseBody": { "status": "Succeeded" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6775/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace1546?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp5551/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3141?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-dae90d2196827444a61e1f951fa142ab-8feb6679c445494f-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "9b61fd768761382a23727a9c2b2b596a", + "traceparent": "00-d9c4c5b49a8b9a3a1d1ffb04fbd1cfb0-4dcec1a8da64d850-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "a9421866736bf3bce6b193a64a686869", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -786,72 +785,72 @@ "Cache-Control": "no-cache", "Content-Length": "1535", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:32:55 GMT", + "Date": "Mon, 20 Feb 2023 02:39:57 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "9b61fd768761382a23727a9c2b2b596a", - "x-ms-correlation-request-id": "fb4495c0-6a3d-4e15-9a3b-85776087b549", + "x-ms-client-request-id": "a9421866736bf3bce6b193a64a686869", + "x-ms-correlation-request-id": "283dee2f-5cba-441f-818b-7300073dc53e", "x-ms-ratelimit-remaining-subscription-reads": "11984", - "x-ms-request-id": "1e706331-1066-4fb9-a208-48a0adb3eb84", - "x-ms-routing-request-id": "JAPANEAST:20230201T043255Z:fb4495c0-6a3d-4e15-9a3b-85776087b549" + "x-ms-request-id": "9db5f920-8cfc-4ba5-9564-393190dedf46", + "x-ms-routing-request-id": "JAPANEAST:20230220T023958Z:283dee2f-5cba-441f-818b-7300073dc53e" }, "ResponseBody": { "properties": { "defaultDataLakeStorage": { "createManagedPrivateEndpoint": false, - "accountUrl": "https://synapsesdkstorage1849.dfs.core.windows.net/", - "filesystem": "synapsesdkfilesys9419" + "accountUrl": "https://synapsesdkstorage2778.dfs.core.windows.net/", + "filesystem": "synapsesdkfilesys4477" }, "encryption": { "doubleEncryptionEnabled": false }, "provisioningState": "Succeeded", "connectivityEndpoints": { - "web": "https://web.azuresynapse.net?workspace=%2fsubscriptions%2f051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3%2fresourceGroups%2fsynapsesdkrp6775%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fsynapsesdkworkspace1546", - "dev": "https://synapsesdkworkspace1546.dev.azuresynapse.net", - "sqlOnDemand": "synapsesdkworkspace1546-ondemand.sql.azuresynapse.net", - "sql": "synapsesdkworkspace1546.sql.azuresynapse.net" + "web": "https://web.azuresynapse.net?workspace=%2fsubscriptions%2f051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3%2fresourceGroups%2fsynapsesdkrp5551%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fsynapsesdkworkspace3141", + "dev": "https://synapsesdkworkspace3141.dev.azuresynapse.net", + "sqlOnDemand": "synapsesdkworkspace3141-ondemand.sql.azuresynapse.net", + "sql": "synapsesdkworkspace3141.sql.azuresynapse.net" }, - "managedResourceGroupName": "synapseworkspace-managedrg-18575b01-0b43-4fcb-9f4c-601c33e43120", - "sqlAdministratorLogin": "sshuser5822", + "managedResourceGroupName": "synapseworkspace-managedrg-e8552c12-9fbc-454f-a114-3ae5a592ee40", + "sqlAdministratorLogin": "sshuser5636", "privateEndpointConnections": [], - "workspaceUID": "c4c2d280-6172-408a-a92b-17c75589142c", + "workspaceUID": "7ee88080-7524-4490-aba9-8a8d97721449", "extraProperties": { "WorkspaceType": "Normal", "IsScopeEnabled": false }, "publicNetworkAccess": "Enabled", "cspWorkspaceAdminProperties": { - "initialWorkspaceAdminObjectId": "1c263ed5-a67e-400e-a599-0479e0ceb82f" + "initialWorkspaceAdminObjectId": "5adcf4d8-4923-420e-ab0b-f6e5fc718b42" }, "trustedServiceBypassEnabled": false }, "type": "Microsoft.Synapse/workspaces", - "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6775/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace1546", + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp5551/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3141", "location": "eastus2", - "name": "synapsesdkworkspace1546", + "name": "synapsesdkworkspace3141", "identity": { "type": "SystemAssigned", "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", - "principalId": "858faa2e-4ef9-4777-aa1b-7b7ab1198035" + "principalId": "054c8f09-8bf3-480c-a239-409d42562230" }, "tags": {} } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6775/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace1546?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp5551/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3141?api-version=2021-06-01", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "324", "Content-Type": "application/json", - "traceparent": "00-98b708842984b244b91a0e6391cf6ec4-e219d1140266bb45-00", - "User-Agent": "azsdk-net-ResourceManager.Synapse/1.1.0-alpha.20230131.1 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "68d4d325f9c2a35500dfb9b629c154ee", + "traceparent": "00-57264f54fd2d583f193a4a8ed1061324-56633c992a0ef64e-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "1f82c2b7a0c7172ea75225ff0d8bae07", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -864,69 +863,69 @@ "location": "eastus2", "properties": { "defaultDataLakeStorage": { - "accountUrl": "https://synapsesdkstorage1849.dfs.core.windows.net/", - "filesystem": "synapsesdkfilesys9419" + "accountUrl": "https://synapsesdkstorage2778.dfs.core.windows.net/", + "filesystem": "synapsesdkfilesys4477" }, - "sqlAdministratorLoginPassword": "Password1!6513", - "sqlAdministratorLogin": "sshuser5822" + "sqlAdministratorLoginPassword": "Password1!8551", + "sqlAdministratorLogin": "sshuser5636" } }, "StatusCode": 201, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6775/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace1546/operationStatuses/61f4688e-fe2b-4280-801f-c9990ee4f610?api-version=2021-06-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp5551/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3141/operationStatuses/f98bc309-0fc7-4a31-882e-fa5225537892?api-version=2021-06-01", "Cache-Control": "no-cache", "Content-Length": "1537", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:32:59 GMT", + "Date": "Mon, 20 Feb 2023 02:40:02 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "68d4d325f9c2a35500dfb9b629c154ee", - "x-ms-correlation-request-id": "661a9f40-8d15-447c-b92d-67164c5cc977", + "x-ms-client-request-id": "1f82c2b7a0c7172ea75225ff0d8bae07", + "x-ms-correlation-request-id": "05a1c5ad-f777-4de9-84c3-0121d582b148", "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "9f4f998f-ab17-4d71-8023-58f1608bc068", - "x-ms-routing-request-id": "JAPANEAST:20230201T043300Z:661a9f40-8d15-447c-b92d-67164c5cc977" + "x-ms-request-id": "560b3c86-563e-4225-a58b-cfb921a5521b", + "x-ms-routing-request-id": "JAPANEAST:20230220T024002Z:05a1c5ad-f777-4de9-84c3-0121d582b148" }, "ResponseBody": { "properties": { "defaultDataLakeStorage": { "createManagedPrivateEndpoint": false, - "accountUrl": "https://synapsesdkstorage1849.dfs.core.windows.net/", - "filesystem": "synapsesdkfilesys9419" + "accountUrl": "https://synapsesdkstorage2778.dfs.core.windows.net/", + "filesystem": "synapsesdkfilesys4477" }, "encryption": { "doubleEncryptionEnabled": false }, "provisioningState": "Provisioning", "connectivityEndpoints": { - "web": "https://web.azuresynapse.net?workspace=%2fsubscriptions%2f051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3%2fresourceGroups%2fsynapsesdkrp6775%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fsynapsesdkworkspace1546", - "dev": "https://synapsesdkworkspace1546.dev.azuresynapse.net", - "sqlOnDemand": "synapsesdkworkspace1546-ondemand.sql.azuresynapse.net", - "sql": "synapsesdkworkspace1546.sql.azuresynapse.net" + "web": "https://web.azuresynapse.net?workspace=%2fsubscriptions%2f051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3%2fresourceGroups%2fsynapsesdkrp5551%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fsynapsesdkworkspace3141", + "dev": "https://synapsesdkworkspace3141.dev.azuresynapse.net", + "sqlOnDemand": "synapsesdkworkspace3141-ondemand.sql.azuresynapse.net", + "sql": "synapsesdkworkspace3141.sql.azuresynapse.net" }, - "managedResourceGroupName": "synapseworkspace-managedrg-18575b01-0b43-4fcb-9f4c-601c33e43120", - "sqlAdministratorLogin": "sshuser5822", + "managedResourceGroupName": "synapseworkspace-managedrg-e8552c12-9fbc-454f-a114-3ae5a592ee40", + "sqlAdministratorLogin": "sshuser5636", "privateEndpointConnections": [], - "workspaceUID": "c4c2d280-6172-408a-a92b-17c75589142c", + "workspaceUID": "7ee88080-7524-4490-aba9-8a8d97721449", "extraProperties": { "WorkspaceType": "Normal" }, "publicNetworkAccess": "Enabled", "cspWorkspaceAdminProperties": { - "initialWorkspaceAdminObjectId": "1c263ed5-a67e-400e-a599-0479e0ceb82f" + "initialWorkspaceAdminObjectId": "5adcf4d8-4923-420e-ab0b-f6e5fc718b42" }, "trustedServiceBypassEnabled": false }, "type": "Microsoft.Synapse/workspaces", - "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6775/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace1546", + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp5551/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3141", "location": "eastus2", - "name": "synapsesdkworkspace1546", + "name": "synapsesdkworkspace3141", "identity": { "type": "SystemAssigned", "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", - "principalId": "858faa2e-4ef9-4777-aa1b-7b7ab1198035" + "principalId": "054c8f09-8bf3-480c-a239-409d42562230" }, "tags": { "TestTag": "TestUpdate" @@ -934,13 +933,13 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6775/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace1546/operationStatuses/61f4688e-fe2b-4280-801f-c9990ee4f610?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp5551/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3141/operationStatuses/f98bc309-0fc7-4a31-882e-fa5225537892?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-98b708842984b244b91a0e6391cf6ec4-ca34c4d75431a04d-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "e616a656eb9e7c43a8bd9a81cd730f62", + "traceparent": "00-57264f54fd2d583f193a4a8ed1061324-cf66a0d183afbb58-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "9acd97a36929c62cea2b02194dbce55b", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -949,30 +948,30 @@ "Cache-Control": "no-cache", "Content-Length": "23", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:33:00 GMT", + "Date": "Mon, 20 Feb 2023 02:40:02 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "e616a656eb9e7c43a8bd9a81cd730f62", - "x-ms-correlation-request-id": "4970745c-1722-4ad1-8ead-ba5a78adf472", + "x-ms-client-request-id": "9acd97a36929c62cea2b02194dbce55b", + "x-ms-correlation-request-id": "9fd8b3aa-1ead-4753-887d-c9fe90b1fbcb", "x-ms-ratelimit-remaining-subscription-reads": "11983", - "x-ms-request-id": "bd0bdfd0-5a26-4f8f-8746-92dfd4a864ca", - "x-ms-routing-request-id": "JAPANEAST:20230201T043300Z:4970745c-1722-4ad1-8ead-ba5a78adf472" + "x-ms-request-id": "f7913f72-cc43-43a5-9b4c-4104fa8dedc2", + "x-ms-routing-request-id": "JAPANEAST:20230220T024003Z:9fd8b3aa-1ead-4753-887d-c9fe90b1fbcb" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6775/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace1546/operationStatuses/61f4688e-fe2b-4280-801f-c9990ee4f610?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp5551/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3141/operationStatuses/f98bc309-0fc7-4a31-882e-fa5225537892?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-98b708842984b244b91a0e6391cf6ec4-b2b69aefcc204241-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "9ae78b1ebb4568dfd28d7011705f264f", + "traceparent": "00-57264f54fd2d583f193a4a8ed1061324-456b528089e4d5cb-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "7e5a8c02a2b4d431347e008ce640ea4c", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -981,30 +980,30 @@ "Cache-Control": "no-cache", "Content-Length": "23", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:33:01 GMT", + "Date": "Mon, 20 Feb 2023 02:40:04 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "9ae78b1ebb4568dfd28d7011705f264f", - "x-ms-correlation-request-id": "a9ee9134-6a00-4756-b29f-150aacfe92ea", + "x-ms-client-request-id": "7e5a8c02a2b4d431347e008ce640ea4c", + "x-ms-correlation-request-id": "c7f2b011-b4d2-4f9c-8531-043a055b25c4", "x-ms-ratelimit-remaining-subscription-reads": "11982", - "x-ms-request-id": "377eca18-3402-422f-869b-983d65a4f50e", - "x-ms-routing-request-id": "JAPANEAST:20230201T043302Z:a9ee9134-6a00-4756-b29f-150aacfe92ea" + "x-ms-request-id": "4a4df040-b0fa-4699-8c7b-45e545ecabfb", + "x-ms-routing-request-id": "JAPANEAST:20230220T024004Z:c7f2b011-b4d2-4f9c-8531-043a055b25c4" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6775/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace1546/operationStatuses/61f4688e-fe2b-4280-801f-c9990ee4f610?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp5551/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3141/operationStatuses/f98bc309-0fc7-4a31-882e-fa5225537892?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-98b708842984b244b91a0e6391cf6ec4-f44f6bf28f68054d-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "8260f2b56dabc94f4d68f4ce217e7884", + "traceparent": "00-57264f54fd2d583f193a4a8ed1061324-bffbe4bebe3b5e1c-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "765c5e1c14bee1dd9feddb0ce074b662", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1013,30 +1012,30 @@ "Cache-Control": "no-cache", "Content-Length": "23", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:33:03 GMT", + "Date": "Mon, 20 Feb 2023 02:40:05 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "8260f2b56dabc94f4d68f4ce217e7884", - "x-ms-correlation-request-id": "3793f13a-3f1c-45bd-a77d-45f0359489b8", + "x-ms-client-request-id": "765c5e1c14bee1dd9feddb0ce074b662", + "x-ms-correlation-request-id": "6d0ceb93-4b8c-4331-8663-a454d6159314", "x-ms-ratelimit-remaining-subscription-reads": "11981", - "x-ms-request-id": "6d0d33a1-da6e-410c-83a0-f5ba0e3564d7", - "x-ms-routing-request-id": "JAPANEAST:20230201T043303Z:3793f13a-3f1c-45bd-a77d-45f0359489b8" + "x-ms-request-id": "0f64e033-8f31-4ff1-a824-05291c5b4913", + "x-ms-routing-request-id": "JAPANEAST:20230220T024005Z:6d0ceb93-4b8c-4331-8663-a454d6159314" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6775/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace1546/operationStatuses/61f4688e-fe2b-4280-801f-c9990ee4f610?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp5551/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3141/operationStatuses/f98bc309-0fc7-4a31-882e-fa5225537892?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-98b708842984b244b91a0e6391cf6ec4-fe52dcc8853cd844-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "f1d826a190c99a81c7ae13107b320c49", + "traceparent": "00-57264f54fd2d583f193a4a8ed1061324-28230e5a68050a08-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "a0eb5f55b7ff001266f865ab68a0e0a9", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1045,30 +1044,30 @@ "Cache-Control": "no-cache", "Content-Length": "23", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:33:04 GMT", + "Date": "Mon, 20 Feb 2023 02:40:06 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "f1d826a190c99a81c7ae13107b320c49", - "x-ms-correlation-request-id": "95532737-b418-44fe-b58c-bccc14fddb07", + "x-ms-client-request-id": "a0eb5f55b7ff001266f865ab68a0e0a9", + "x-ms-correlation-request-id": "60c8e5a1-c5a9-435c-81d1-75b930449818", "x-ms-ratelimit-remaining-subscription-reads": "11980", - "x-ms-request-id": "96446ef5-6cdc-461f-aa3c-98636ef45b78", - "x-ms-routing-request-id": "JAPANEAST:20230201T043305Z:95532737-b418-44fe-b58c-bccc14fddb07" + "x-ms-request-id": "0e968081-8873-43d6-a3d2-f470ea6cc95a", + "x-ms-routing-request-id": "JAPANEAST:20230220T024007Z:60c8e5a1-c5a9-435c-81d1-75b930449818" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6775/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace1546/operationStatuses/61f4688e-fe2b-4280-801f-c9990ee4f610?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp5551/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3141/operationStatuses/f98bc309-0fc7-4a31-882e-fa5225537892?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-98b708842984b244b91a0e6391cf6ec4-035e5a43de9dc146-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "dacc4b978c13b0b73c1e4cdcc6104654", + "traceparent": "00-57264f54fd2d583f193a4a8ed1061324-b2f125b6f3286299-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "effcb6416f60ed9caf79dec7c724f4c0", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1077,30 +1076,30 @@ "Cache-Control": "no-cache", "Content-Length": "23", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:33:07 GMT", + "Date": "Mon, 20 Feb 2023 02:40:09 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "dacc4b978c13b0b73c1e4cdcc6104654", - "x-ms-correlation-request-id": "aafb12e3-2748-4386-b467-ca6736443d9b", + "x-ms-client-request-id": "effcb6416f60ed9caf79dec7c724f4c0", + "x-ms-correlation-request-id": "f886c1b3-c93d-4d4d-983f-b127f95e541b", "x-ms-ratelimit-remaining-subscription-reads": "11979", - "x-ms-request-id": "131ca299-84f0-480f-8050-d7e0454ab8df", - "x-ms-routing-request-id": "JAPANEAST:20230201T043307Z:aafb12e3-2748-4386-b467-ca6736443d9b" + "x-ms-request-id": "ea8f4de3-fe3e-42a5-a7c0-fc62251175cf", + "x-ms-routing-request-id": "JAPANEAST:20230220T024009Z:f886c1b3-c93d-4d4d-983f-b127f95e541b" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6775/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace1546/operationStatuses/61f4688e-fe2b-4280-801f-c9990ee4f610?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp5551/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3141/operationStatuses/f98bc309-0fc7-4a31-882e-fa5225537892?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-98b708842984b244b91a0e6391cf6ec4-918b21db996f694c-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "4a70eb153487258571c5bafc5a3f4e1b", + "traceparent": "00-57264f54fd2d583f193a4a8ed1061324-e180a7d02cbb85b8-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "86369ec84955644c4c5c10c5ae3278ff", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1109,30 +1108,30 @@ "Cache-Control": "no-cache", "Content-Length": "23", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:33:11 GMT", + "Date": "Mon, 20 Feb 2023 02:40:13 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "4a70eb153487258571c5bafc5a3f4e1b", - "x-ms-correlation-request-id": "239caf56-d89a-4960-85ff-4a9f5d739525", + "x-ms-client-request-id": "86369ec84955644c4c5c10c5ae3278ff", + "x-ms-correlation-request-id": "08eb8c50-c6c6-4a80-ae2e-71df3d349eee", "x-ms-ratelimit-remaining-subscription-reads": "11978", - "x-ms-request-id": "1fdf3d58-d65d-4141-9ba9-e07f66c3c7a0", - "x-ms-routing-request-id": "JAPANEAST:20230201T043311Z:239caf56-d89a-4960-85ff-4a9f5d739525" + "x-ms-request-id": "b44355ad-c889-454f-8004-5ae8d483ca60", + "x-ms-routing-request-id": "JAPANEAST:20230220T024014Z:08eb8c50-c6c6-4a80-ae2e-71df3d349eee" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6775/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace1546/operationStatuses/61f4688e-fe2b-4280-801f-c9990ee4f610?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp5551/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3141/operationStatuses/f98bc309-0fc7-4a31-882e-fa5225537892?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-98b708842984b244b91a0e6391cf6ec4-3ec404f9fc54e34f-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "d637ab5c9db214716f27b5ab43a4d4b6", + "traceparent": "00-57264f54fd2d583f193a4a8ed1061324-b759189411ee8c2e-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "29cb310dc778e602c2fdf186d94b3841", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1141,30 +1140,30 @@ "Cache-Control": "no-cache", "Content-Length": "23", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:33:19 GMT", + "Date": "Mon, 20 Feb 2023 02:40:22 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "d637ab5c9db214716f27b5ab43a4d4b6", - "x-ms-correlation-request-id": "0618ca15-d781-4893-9b89-a64be9dcca74", + "x-ms-client-request-id": "29cb310dc778e602c2fdf186d94b3841", + "x-ms-correlation-request-id": "b845ee4c-f6fb-4539-a9d2-58082d70f675", "x-ms-ratelimit-remaining-subscription-reads": "11977", - "x-ms-request-id": "be21e6ce-c5ba-4245-bf73-05767c666e93", - "x-ms-routing-request-id": "JAPANEAST:20230201T043320Z:0618ca15-d781-4893-9b89-a64be9dcca74" + "x-ms-request-id": "ff11dad7-9f01-4aca-b4a0-80d698b267b9", + "x-ms-routing-request-id": "JAPANEAST:20230220T024022Z:b845ee4c-f6fb-4539-a9d2-58082d70f675" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6775/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace1546/operationStatuses/61f4688e-fe2b-4280-801f-c9990ee4f610?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp5551/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3141/operationStatuses/f98bc309-0fc7-4a31-882e-fa5225537892?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-98b708842984b244b91a0e6391cf6ec4-d9858bf323b62c44-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "90fbbf67c2c262c1c6a7694dd1ba56fc", + "traceparent": "00-57264f54fd2d583f193a4a8ed1061324-91a0bda4220802d7-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "cae2a5045969f7536997a2035ed73f7c", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1173,30 +1172,30 @@ "Cache-Control": "no-cache", "Content-Length": "23", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:33:36 GMT", + "Date": "Mon, 20 Feb 2023 02:40:38 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "90fbbf67c2c262c1c6a7694dd1ba56fc", - "x-ms-correlation-request-id": "77d6a283-74b0-4eac-8d02-7f9338d38d0a", + "x-ms-client-request-id": "cae2a5045969f7536997a2035ed73f7c", + "x-ms-correlation-request-id": "2bb7c8f5-15bd-4595-9b0e-12bf958ad6f3", "x-ms-ratelimit-remaining-subscription-reads": "11976", - "x-ms-request-id": "ffe2115d-0812-428b-8848-dc2d55d347d3", - "x-ms-routing-request-id": "JAPANEAST:20230201T043336Z:77d6a283-74b0-4eac-8d02-7f9338d38d0a" + "x-ms-request-id": "51a93ae7-141d-4407-a5d3-bd83e1651608", + "x-ms-routing-request-id": "JAPANEAST:20230220T024039Z:2bb7c8f5-15bd-4595-9b0e-12bf958ad6f3" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6775/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace1546/operationStatuses/61f4688e-fe2b-4280-801f-c9990ee4f610?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp5551/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3141/operationStatuses/f98bc309-0fc7-4a31-882e-fa5225537892?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-98b708842984b244b91a0e6391cf6ec4-585b2f44ad79ce42-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "1a8030cf70d977a2795bda5f7fd9e1cd", + "traceparent": "00-57264f54fd2d583f193a4a8ed1061324-52d0b5736cbd2a5f-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "95b9df00ca5901479b4fc35858c58b00", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1205,30 +1204,30 @@ "Cache-Control": "no-cache", "Content-Length": "22", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:34:08 GMT", + "Date": "Mon, 20 Feb 2023 02:41:10 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "1a8030cf70d977a2795bda5f7fd9e1cd", - "x-ms-correlation-request-id": "ceac0b48-d4d0-4101-ab81-93818b955539", + "x-ms-client-request-id": "95b9df00ca5901479b4fc35858c58b00", + "x-ms-correlation-request-id": "56d600e0-a101-4d6c-bb10-dec95ed92b8b", "x-ms-ratelimit-remaining-subscription-reads": "11975", - "x-ms-request-id": "9fff19ca-65dd-4910-a5a4-eab3f855ac46", - "x-ms-routing-request-id": "JAPANEAST:20230201T043409Z:ceac0b48-d4d0-4101-ab81-93818b955539" + "x-ms-request-id": "283f09da-2f74-4b9f-acc7-3a17c01d745a", + "x-ms-routing-request-id": "JAPANEAST:20230220T024111Z:56d600e0-a101-4d6c-bb10-dec95ed92b8b" }, "ResponseBody": { "status": "Succeeded" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6775/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace1546?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp5551/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3141?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-98b708842984b244b91a0e6391cf6ec4-e9e3b0239d117543-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "9a9504f1bd449a59e9d40f0b342442b4", + "traceparent": "00-57264f54fd2d583f193a4a8ed1061324-31b09bc380f3c757-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "09c1cf24ae4fb395ded4bfe024ff88eb", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1237,57 +1236,57 @@ "Cache-Control": "no-cache", "Content-Length": "1557", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:34:08 GMT", + "Date": "Mon, 20 Feb 2023 02:41:10 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "9a9504f1bd449a59e9d40f0b342442b4", - "x-ms-correlation-request-id": "d7ef4c15-9c33-407e-8daa-e08d0203c1f1", + "x-ms-client-request-id": "09c1cf24ae4fb395ded4bfe024ff88eb", + "x-ms-correlation-request-id": "9d65d4fc-decf-4be0-bc2d-ca1a8a30814b", "x-ms-ratelimit-remaining-subscription-reads": "11974", - "x-ms-request-id": "efa03772-57ba-45f0-8038-06bd1a4090e1", - "x-ms-routing-request-id": "JAPANEAST:20230201T043409Z:d7ef4c15-9c33-407e-8daa-e08d0203c1f1" + "x-ms-request-id": "6ce88fc1-089d-402f-8b5e-0f8714d23f3f", + "x-ms-routing-request-id": "JAPANEAST:20230220T024111Z:9d65d4fc-decf-4be0-bc2d-ca1a8a30814b" }, "ResponseBody": { "properties": { "defaultDataLakeStorage": { "createManagedPrivateEndpoint": false, - "accountUrl": "https://synapsesdkstorage1849.dfs.core.windows.net/", - "filesystem": "synapsesdkfilesys9419" + "accountUrl": "https://synapsesdkstorage2778.dfs.core.windows.net/", + "filesystem": "synapsesdkfilesys4477" }, "encryption": { "doubleEncryptionEnabled": false }, "provisioningState": "Succeeded", "connectivityEndpoints": { - "web": "https://web.azuresynapse.net?workspace=%2fsubscriptions%2f051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3%2fresourceGroups%2fsynapsesdkrp6775%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fsynapsesdkworkspace1546", - "dev": "https://synapsesdkworkspace1546.dev.azuresynapse.net", - "sqlOnDemand": "synapsesdkworkspace1546-ondemand.sql.azuresynapse.net", - "sql": "synapsesdkworkspace1546.sql.azuresynapse.net" + "web": "https://web.azuresynapse.net?workspace=%2fsubscriptions%2f051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3%2fresourceGroups%2fsynapsesdkrp5551%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fsynapsesdkworkspace3141", + "dev": "https://synapsesdkworkspace3141.dev.azuresynapse.net", + "sqlOnDemand": "synapsesdkworkspace3141-ondemand.sql.azuresynapse.net", + "sql": "synapsesdkworkspace3141.sql.azuresynapse.net" }, - "managedResourceGroupName": "synapseworkspace-managedrg-18575b01-0b43-4fcb-9f4c-601c33e43120", - "sqlAdministratorLogin": "sshuser5822", + "managedResourceGroupName": "synapseworkspace-managedrg-e8552c12-9fbc-454f-a114-3ae5a592ee40", + "sqlAdministratorLogin": "sshuser5636", "privateEndpointConnections": [], - "workspaceUID": "c4c2d280-6172-408a-a92b-17c75589142c", + "workspaceUID": "7ee88080-7524-4490-aba9-8a8d97721449", "extraProperties": { "WorkspaceType": "Normal", "IsScopeEnabled": false }, "publicNetworkAccess": "Enabled", "cspWorkspaceAdminProperties": { - "initialWorkspaceAdminObjectId": "1c263ed5-a67e-400e-a599-0479e0ceb82f" + "initialWorkspaceAdminObjectId": "5adcf4d8-4923-420e-ab0b-f6e5fc718b42" }, "trustedServiceBypassEnabled": false }, "type": "Microsoft.Synapse/workspaces", - "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6775/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace1546", + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp5551/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3141", "location": "eastus2", - "name": "synapsesdkworkspace1546", + "name": "synapsesdkworkspace3141", "identity": { "type": "SystemAssigned", "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", - "principalId": "858faa2e-4ef9-4777-aa1b-7b7ab1198035" + "principalId": "054c8f09-8bf3-480c-a239-409d42562230" }, "tags": { "TestTag": "TestUpdate" @@ -1295,14 +1294,14 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6775/providers/Microsoft.Synapse/workspaces?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp5551/providers/Microsoft.Synapse/workspaces?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-98efeb3630c19747b137012640943191-cf21d4216c108844-00", - "User-Agent": "azsdk-net-ResourceManager.Synapse/1.1.0-alpha.20230131.1 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "12dcb8d1b924f6dd1d831766e762e2ed", + "traceparent": "00-5d93899843ccb3f08cf833171c4cae75-60fb62128868a75e-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "fa8674bea29139e85de12e1995fb9ea4", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1311,17 +1310,17 @@ "Cache-Control": "no-cache", "Content-Length": "1569", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:34:09 GMT", + "Date": "Mon, 20 Feb 2023 02:41:11 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "12dcb8d1b924f6dd1d831766e762e2ed", - "x-ms-correlation-request-id": "9e3da969-ad95-4663-8a23-649bb7d5e3ec", + "x-ms-client-request-id": "fa8674bea29139e85de12e1995fb9ea4", + "x-ms-correlation-request-id": "2d42023f-8917-4fbd-b6d3-1825348275f1", "x-ms-ratelimit-remaining-subscription-reads": "11973", - "x-ms-request-id": "e15a40ee-a5cd-4487-95b3-13d59cd9be6a", - "x-ms-routing-request-id": "JAPANEAST:20230201T043410Z:9e3da969-ad95-4663-8a23-649bb7d5e3ec" + "x-ms-request-id": "28ffec5f-5d75-4bb1-8b16-5814e756df00", + "x-ms-routing-request-id": "JAPANEAST:20230220T024112Z:2d42023f-8917-4fbd-b6d3-1825348275f1" }, "ResponseBody": { "value": [ @@ -1329,41 +1328,41 @@ "properties": { "defaultDataLakeStorage": { "createManagedPrivateEndpoint": false, - "accountUrl": "https://synapsesdkstorage1849.dfs.core.windows.net/", - "filesystem": "synapsesdkfilesys9419" + "accountUrl": "https://synapsesdkstorage2778.dfs.core.windows.net/", + "filesystem": "synapsesdkfilesys4477" }, "encryption": { "doubleEncryptionEnabled": false }, "provisioningState": "Succeeded", "connectivityEndpoints": { - "web": "https://web.azuresynapse.net?workspace=%2fsubscriptions%2f051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3%2fresourceGroups%2fsynapsesdkrp6775%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fsynapsesdkworkspace1546", - "dev": "https://synapsesdkworkspace1546.dev.azuresynapse.net", - "sqlOnDemand": "synapsesdkworkspace1546-ondemand.sql.azuresynapse.net", - "sql": "synapsesdkworkspace1546.sql.azuresynapse.net" + "web": "https://web.azuresynapse.net?workspace=%2fsubscriptions%2f051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3%2fresourceGroups%2fsynapsesdkrp5551%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fsynapsesdkworkspace3141", + "dev": "https://synapsesdkworkspace3141.dev.azuresynapse.net", + "sqlOnDemand": "synapsesdkworkspace3141-ondemand.sql.azuresynapse.net", + "sql": "synapsesdkworkspace3141.sql.azuresynapse.net" }, - "managedResourceGroupName": "synapseworkspace-managedrg-18575b01-0b43-4fcb-9f4c-601c33e43120", - "sqlAdministratorLogin": "sshuser5822", + "managedResourceGroupName": "synapseworkspace-managedrg-e8552c12-9fbc-454f-a114-3ae5a592ee40", + "sqlAdministratorLogin": "sshuser5636", "privateEndpointConnections": [], - "workspaceUID": "c4c2d280-6172-408a-a92b-17c75589142c", + "workspaceUID": "7ee88080-7524-4490-aba9-8a8d97721449", "extraProperties": { "WorkspaceType": "Normal", "IsScopeEnabled": false }, "publicNetworkAccess": "Enabled", "cspWorkspaceAdminProperties": { - "initialWorkspaceAdminObjectId": "1c263ed5-a67e-400e-a599-0479e0ceb82f" + "initialWorkspaceAdminObjectId": "5adcf4d8-4923-420e-ab0b-f6e5fc718b42" }, "trustedServiceBypassEnabled": false }, "type": "Microsoft.Synapse/workspaces", - "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6775/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace1546", + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp5551/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3141", "location": "eastus2", - "name": "synapsesdkworkspace1546", + "name": "synapsesdkworkspace3141", "identity": { "type": "SystemAssigned", "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", - "principalId": "858faa2e-4ef9-4777-aa1b-7b7ab1198035" + "principalId": "054c8f09-8bf3-480c-a239-409d42562230" }, "tags": { "TestTag": "TestUpdate" @@ -1373,14 +1372,14 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6775/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace1546?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp5551/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3141?api-version=2021-06-01", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-7634e8fcce8e404daa668bc6cd88574a-a37cab722f56864a-00", - "User-Agent": "azsdk-net-ResourceManager.Synapse/1.1.0-alpha.20230131.1 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "cd5c9bc5bb2411b8d7e5310461964254", + "traceparent": "00-94ae5835ddff8c81f6877d497fd6d008-561180410ff258fd-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "8fdfa10c3615512d4905b7850a67dd9c", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1388,32 +1387,32 @@ "ResponseHeaders": { "Access-Control-Allow-Headers": "Location", "Access-Control-Expose-Headers": "Location", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/operationStatuses/8a63d3d6-651e-4b40-ab42-de6709e4e562?api-version=2021-06-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/operationStatuses/bf34095c-f843-4f5b-b0f5-6ccab99c9c8e?api-version=2021-06-01", "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Wed, 01 Feb 2023 04:34:09 GMT", + "Date": "Mon, 20 Feb 2023 02:41:11 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/operationResults/8a63d3d6-651e-4b40-ab42-de6709e4e562?api-version=2021-06-01", + "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/operationResults/bf34095c-f843-4f5b-b0f5-6ccab99c9c8e?api-version=2021-06-01", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "cd5c9bc5bb2411b8d7e5310461964254", - "x-ms-correlation-request-id": "ee03abd5-e9d3-480d-9751-ece7c193206d", + "x-ms-client-request-id": "8fdfa10c3615512d4905b7850a67dd9c", + "x-ms-correlation-request-id": "ffa0cabe-38ee-4767-928a-dd38967f3c9a", "x-ms-ratelimit-remaining-subscription-deletes": "14999", - "x-ms-request-id": "ab49a011-f534-4536-857b-f37399818f44", - "x-ms-routing-request-id": "JAPANEAST:20230201T043410Z:ee03abd5-e9d3-480d-9751-ece7c193206d" + "x-ms-request-id": "a641bd22-ab35-4343-99a2-2171b2bb48b0", + "x-ms-routing-request-id": "JAPANEAST:20230220T024112Z:ffa0cabe-38ee-4767-928a-dd38967f3c9a" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/operationStatuses/8a63d3d6-651e-4b40-ab42-de6709e4e562?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/operationStatuses/bf34095c-f843-4f5b-b0f5-6ccab99c9c8e?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-7634e8fcce8e404daa668bc6cd88574a-339459fe1ee5f24e-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "994522f274c7168f00ca3b3e87d89586", + "traceparent": "00-94ae5835ddff8c81f6877d497fd6d008-22ec5b7bef121596-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "82d31b35f81f87d54734b08bea632ff6", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1422,30 +1421,30 @@ "Cache-Control": "no-cache", "Content-Length": "23", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:34:10 GMT", + "Date": "Mon, 20 Feb 2023 02:41:13 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "994522f274c7168f00ca3b3e87d89586", - "x-ms-correlation-request-id": "f1cdcab2-580c-4afc-bf88-dc3c7b626039", + "x-ms-client-request-id": "82d31b35f81f87d54734b08bea632ff6", + "x-ms-correlation-request-id": "67ffb4d2-c359-4634-9580-0aa9b5253242", "x-ms-ratelimit-remaining-subscription-reads": "11972", - "x-ms-request-id": "ef3cc4ea-b277-4b46-bf02-82482fa781ca", - "x-ms-routing-request-id": "JAPANEAST:20230201T043410Z:f1cdcab2-580c-4afc-bf88-dc3c7b626039" + "x-ms-request-id": "5b6c2ea9-8e73-4f34-9110-d19eb7f4348d", + "x-ms-routing-request-id": "JAPANEAST:20230220T024113Z:67ffb4d2-c359-4634-9580-0aa9b5253242" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/operationStatuses/8a63d3d6-651e-4b40-ab42-de6709e4e562?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/operationStatuses/bf34095c-f843-4f5b-b0f5-6ccab99c9c8e?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-7634e8fcce8e404daa668bc6cd88574a-2e5982b439e9b54d-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "c14ec2401cd4f7eff224a7863df76be5", + "traceparent": "00-94ae5835ddff8c81f6877d497fd6d008-852539fe95d2e46b-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "bd529104bb617b64325da88d8bbed2cd", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1454,30 +1453,30 @@ "Cache-Control": "no-cache", "Content-Length": "23", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:34:11 GMT", + "Date": "Mon, 20 Feb 2023 02:41:14 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "c14ec2401cd4f7eff224a7863df76be5", - "x-ms-correlation-request-id": "3b975a8f-c5ab-4a1f-991c-4a8e27a5472d", + "x-ms-client-request-id": "bd529104bb617b64325da88d8bbed2cd", + "x-ms-correlation-request-id": "38d9d153-c266-478a-be9d-4a46cecc89ee", "x-ms-ratelimit-remaining-subscription-reads": "11971", - "x-ms-request-id": "0935a74c-921c-47f4-b358-827ffc25add9", - "x-ms-routing-request-id": "JAPANEAST:20230201T043412Z:3b975a8f-c5ab-4a1f-991c-4a8e27a5472d" + "x-ms-request-id": "1969e2bb-ff1e-4865-83ac-c63a79beda4b", + "x-ms-routing-request-id": "JAPANEAST:20230220T024114Z:38d9d153-c266-478a-be9d-4a46cecc89ee" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/operationStatuses/8a63d3d6-651e-4b40-ab42-de6709e4e562?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/operationStatuses/bf34095c-f843-4f5b-b0f5-6ccab99c9c8e?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-7634e8fcce8e404daa668bc6cd88574a-2e0f7938e421c54c-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "3e12a932a951a38d9677c532936ab04d", + "traceparent": "00-94ae5835ddff8c81f6877d497fd6d008-eff4bc882410482b-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "ee4fd5e75a94ce7c02129c0be0e49783", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1486,30 +1485,30 @@ "Cache-Control": "no-cache", "Content-Length": "23", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:34:12 GMT", + "Date": "Mon, 20 Feb 2023 02:41:15 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "3e12a932a951a38d9677c532936ab04d", - "x-ms-correlation-request-id": "645d144c-1345-4ede-9fe6-d3599163858e", + "x-ms-client-request-id": "ee4fd5e75a94ce7c02129c0be0e49783", + "x-ms-correlation-request-id": "7799f29c-5947-441a-b13c-1b1b0c6eb0d2", "x-ms-ratelimit-remaining-subscription-reads": "11970", - "x-ms-request-id": "4401485d-03ab-4cc4-8147-50f2499abae4", - "x-ms-routing-request-id": "JAPANEAST:20230201T043413Z:645d144c-1345-4ede-9fe6-d3599163858e" + "x-ms-request-id": "aa49a30f-b25e-413a-b817-0a91c79d33a7", + "x-ms-routing-request-id": "JAPANEAST:20230220T024115Z:7799f29c-5947-441a-b13c-1b1b0c6eb0d2" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/operationStatuses/8a63d3d6-651e-4b40-ab42-de6709e4e562?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/operationStatuses/bf34095c-f843-4f5b-b0f5-6ccab99c9c8e?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-7634e8fcce8e404daa668bc6cd88574a-98896eda852eaf43-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "e47ff709f2a3d6b2324da6a3cd09d809", + "traceparent": "00-94ae5835ddff8c81f6877d497fd6d008-dc32a2139be71e11-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "ed6ab55861297981b6584fc24f47fc88", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1518,30 +1517,30 @@ "Cache-Control": "no-cache", "Content-Length": "23", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:34:13 GMT", + "Date": "Mon, 20 Feb 2023 02:41:16 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "e47ff709f2a3d6b2324da6a3cd09d809", - "x-ms-correlation-request-id": "d4cc4226-b4dd-4421-80d4-6ff7a06ef709", + "x-ms-client-request-id": "ed6ab55861297981b6584fc24f47fc88", + "x-ms-correlation-request-id": "80a48733-4e6b-4220-96b7-0969894e5c68", "x-ms-ratelimit-remaining-subscription-reads": "11969", - "x-ms-request-id": "f575d8b4-af7c-48f7-989b-055e97539b71", - "x-ms-routing-request-id": "JAPANEAST:20230201T043414Z:d4cc4226-b4dd-4421-80d4-6ff7a06ef709" + "x-ms-request-id": "f0fc3dd2-f23e-4955-91a4-77b3d3dd109a", + "x-ms-routing-request-id": "JAPANEAST:20230220T024116Z:80a48733-4e6b-4220-96b7-0969894e5c68" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/operationStatuses/8a63d3d6-651e-4b40-ab42-de6709e4e562?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/operationStatuses/bf34095c-f843-4f5b-b0f5-6ccab99c9c8e?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-7634e8fcce8e404daa668bc6cd88574a-4d5291d85816f242-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "de0c555f57c6963435aa2a5d56bd6388", + "traceparent": "00-94ae5835ddff8c81f6877d497fd6d008-3d5a5527126ffc40-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "15a3e3624013a9611483bb4f1f599b4e", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1550,30 +1549,30 @@ "Cache-Control": "no-cache", "Content-Length": "23", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:34:16 GMT", + "Date": "Mon, 20 Feb 2023 02:41:19 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "de0c555f57c6963435aa2a5d56bd6388", - "x-ms-correlation-request-id": "7e9f2fdc-44ad-4677-aaf8-893c3efa0c46", + "x-ms-client-request-id": "15a3e3624013a9611483bb4f1f599b4e", + "x-ms-correlation-request-id": "9ae7639f-9d14-4d80-8c76-0b9d4a5e73c5", "x-ms-ratelimit-remaining-subscription-reads": "11968", - "x-ms-request-id": "8c70ad61-6859-4f8b-a0e2-572e3f6cec58", - "x-ms-routing-request-id": "JAPANEAST:20230201T043416Z:7e9f2fdc-44ad-4677-aaf8-893c3efa0c46" + "x-ms-request-id": "24bf2665-46dd-4288-a85c-ed8026b949d9", + "x-ms-routing-request-id": "JAPANEAST:20230220T024119Z:9ae7639f-9d14-4d80-8c76-0b9d4a5e73c5" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/operationStatuses/8a63d3d6-651e-4b40-ab42-de6709e4e562?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/operationStatuses/bf34095c-f843-4f5b-b0f5-6ccab99c9c8e?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-7634e8fcce8e404daa668bc6cd88574a-81ce7093138ca74c-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "467d597386773f41f73c0b0303e9d58c", + "traceparent": "00-94ae5835ddff8c81f6877d497fd6d008-ff9ed0feac563f35-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "d53525c6e45486a353d5373c0aba7eba", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1582,30 +1581,30 @@ "Cache-Control": "no-cache", "Content-Length": "23", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:34:20 GMT", + "Date": "Mon, 20 Feb 2023 02:41:23 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "467d597386773f41f73c0b0303e9d58c", - "x-ms-correlation-request-id": "1b725cfd-af58-41d6-ac85-55bb951db95e", + "x-ms-client-request-id": "d53525c6e45486a353d5373c0aba7eba", + "x-ms-correlation-request-id": "e0de637a-ed7d-4cfe-9236-2f54df0e6f82", "x-ms-ratelimit-remaining-subscription-reads": "11967", - "x-ms-request-id": "2ccc1b3f-3428-4c1a-9a38-06dd60276de4", - "x-ms-routing-request-id": "JAPANEAST:20230201T043421Z:1b725cfd-af58-41d6-ac85-55bb951db95e" + "x-ms-request-id": "45d805f8-4b57-4af0-90b8-876e4a6c3ed4", + "x-ms-routing-request-id": "JAPANEAST:20230220T024124Z:e0de637a-ed7d-4cfe-9236-2f54df0e6f82" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/operationStatuses/8a63d3d6-651e-4b40-ab42-de6709e4e562?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/operationStatuses/bf34095c-f843-4f5b-b0f5-6ccab99c9c8e?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-7634e8fcce8e404daa668bc6cd88574a-f0ac57afdb91154e-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "3dd3bc9fd25db187c2e9aff9c7557f75", + "traceparent": "00-94ae5835ddff8c81f6877d497fd6d008-008a73a55ced7559-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "fca813158140187053c0d9a6a5325a5d", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1614,64 +1613,62 @@ "Cache-Control": "no-cache", "Content-Length": "23", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:34:28 GMT", + "Date": "Mon, 20 Feb 2023 02:41:32 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "3dd3bc9fd25db187c2e9aff9c7557f75", - "x-ms-correlation-request-id": "54ade78c-01c0-428d-81fd-71fdde049ef2", + "x-ms-client-request-id": "fca813158140187053c0d9a6a5325a5d", + "x-ms-correlation-request-id": "a079626a-b826-4073-811f-49db7febece1", "x-ms-ratelimit-remaining-subscription-reads": "11966", - "x-ms-request-id": "32a9dc4b-4dba-43b7-b0ff-24c75ad5e358", - "x-ms-routing-request-id": "JAPANEAST:20230201T043429Z:54ade78c-01c0-428d-81fd-71fdde049ef2" + "x-ms-request-id": "2d523ec7-4403-4033-ac78-9de7939ddcde", + "x-ms-routing-request-id": "JAPANEAST:20230220T024132Z:a079626a-b826-4073-811f-49db7febece1" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/operationStatuses/8a63d3d6-651e-4b40-ab42-de6709e4e562?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/operationStatuses/bf34095c-f843-4f5b-b0f5-6ccab99c9c8e?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "Connection": "close", - "traceparent": "00-7634e8fcce8e404daa668bc6cd88574a-9ef9961bf4fcb848-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "742f1eea918cd89114cce68a4b31934b", + "traceparent": "00-94ae5835ddff8c81f6877d497fd6d008-aee3fa415bd300ff-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "2afc01bc27127e33401dc13d08259e5a", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Connection": "close", "Content-Length": "23", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:34:45 GMT", + "Date": "Mon, 20 Feb 2023 02:41:48 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "742f1eea918cd89114cce68a4b31934b", - "x-ms-correlation-request-id": "68b37cc9-c644-476a-9faa-ca92af275036", + "x-ms-client-request-id": "2afc01bc27127e33401dc13d08259e5a", + "x-ms-correlation-request-id": "b9c86d6c-2670-4faa-91a0-0c739001b10b", "x-ms-ratelimit-remaining-subscription-reads": "11965", - "x-ms-request-id": "20796273-7672-4f9b-bcf7-d75e9bc2f2a7", - "x-ms-routing-request-id": "JAPANEAST:20230201T043445Z:68b37cc9-c644-476a-9faa-ca92af275036" + "x-ms-request-id": "8428467b-d605-43eb-b102-6c2b963fe0ab", + "x-ms-routing-request-id": "JAPANEAST:20230220T024148Z:b9c86d6c-2670-4faa-91a0-0c739001b10b" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/operationStatuses/8a63d3d6-651e-4b40-ab42-de6709e4e562?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/operationStatuses/bf34095c-f843-4f5b-b0f5-6ccab99c9c8e?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-7634e8fcce8e404daa668bc6cd88574a-eb2f453be1ea8140-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "99bd9dd526e9a12ad1cb848ed74878a2", + "traceparent": "00-94ae5835ddff8c81f6877d497fd6d008-816e5de3b7a0c89d-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "0b3a00049fb0440db41c82930afce021", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1680,31 +1677,31 @@ "Cache-Control": "no-cache", "Content-Length": "22", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:35:18 GMT", + "Date": "Mon, 20 Feb 2023 02:42:20 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "99bd9dd526e9a12ad1cb848ed74878a2", - "x-ms-correlation-request-id": "1b78980e-7025-41e5-bf35-efd9d4a44ea9", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "b3d0ce4a-abc7-4b1a-b5d0-592453c65efa", - "x-ms-routing-request-id": "JAPANEAST:20230201T043518Z:1b78980e-7025-41e5-bf35-efd9d4a44ea9" + "x-ms-client-request-id": "0b3a00049fb0440db41c82930afce021", + "x-ms-correlation-request-id": "61bda972-413f-48d8-b642-a1853d6998e6", + "x-ms-ratelimit-remaining-subscription-reads": "11964", + "x-ms-request-id": "1c6c7f14-df54-4e08-b0fc-79cf0b2efae8", + "x-ms-routing-request-id": "JAPANEAST:20230220T024220Z:61bda972-413f-48d8-b642-a1853d6998e6" }, "ResponseBody": { "status": "Succeeded" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp6775/providers/Microsoft.Synapse/workspaces?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp5551/providers/Microsoft.Synapse/workspaces?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-62379a867759ca41a596ed8bcf041c55-2493c9f7bb777a47-00", - "User-Agent": "azsdk-net-ResourceManager.Synapse/1.1.0-alpha.20230131.1 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "e41996bc60b90e002bfa2990ebfd6691", + "traceparent": "00-9e86669b482a99b4a517243998826043-3832a7c21c6f7b9b-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "087fda7b54beeea7df2abb22c032102d", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1713,17 +1710,17 @@ "Cache-Control": "no-cache", "Content-Length": "12", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:35:19 GMT", + "Date": "Mon, 20 Feb 2023 02:42:20 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "e41996bc60b90e002bfa2990ebfd6691", - "x-ms-correlation-request-id": "7f078731-21a7-447d-bc63-638b9e33052b", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "52db51d8-2401-425b-9631-bd9dd8bcf83a", - "x-ms-routing-request-id": "JAPANEAST:20230201T043519Z:7f078731-21a7-447d-bc63-638b9e33052b" + "x-ms-client-request-id": "087fda7b54beeea7df2abb22c032102d", + "x-ms-correlation-request-id": "1425fb51-9d0a-414b-a9d6-1dd34b6b7a9e", + "x-ms-ratelimit-remaining-subscription-reads": "11963", + "x-ms-request-id": "6b1b08af-3e08-42d9-b962-d34226377f9c", + "x-ms-routing-request-id": "JAPANEAST:20230220T024221Z:1425fb51-9d0a-414b-a9d6-1dd34b6b7a9e" }, "ResponseBody": { "value": [] @@ -1731,8 +1728,8 @@ } ], "Variables": { - "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com", - "RandomSeed": "1037156897", + "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com/", + "RandomSeed": "1314723271", "RESOURCE_MANAGER_URL": null, "SUBSCRIPTION_ID": "051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3" } diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/tests/SessionRecords/WorkspaceOperationTests/TestWorkspaceLifeCycleAsync.json b/sdk/synapse/Azure.ResourceManager.Synapse/tests/SessionRecords/WorkspaceOperationTests/TestWorkspaceLifeCycleAsync.json index 059412ebef729..d7aa5cee7bed1 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/tests/SessionRecords/WorkspaceOperationTests/TestWorkspaceLifeCycleAsync.json +++ b/sdk/synapse/Azure.ResourceManager.Synapse/tests/SessionRecords/WorkspaceOperationTests/TestWorkspaceLifeCycleAsync.json @@ -6,9 +6,9 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-01fe0942c2392c44b294583e7664b026-85339ee84e951440-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "d00944304ba5d02ad12420eaa50cc88a", + "traceparent": "00-245e9b63e1566e8379922402a538f3ee-e1f28746d5618781-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "b89dca91c5ccb90a9180d19494a30cf7", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -17,15 +17,15 @@ "Cache-Control": "no-cache", "Content-Length": "492", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:35:25 GMT", + "Date": "Mon, 20 Feb 2023 02:45:53 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "c5f4683f-4f8c-4cb5-ad01-8c8b7d293069", - "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-request-id": "c5f4683f-4f8c-4cb5-ad01-8c8b7d293069", - "x-ms-routing-request-id": "JAPANEAST:20230201T043525Z:c5f4683f-4f8c-4cb5-ad01-8c8b7d293069" + "x-ms-correlation-request-id": "e293fc9c-1f77-4495-9a38-3c02b3a67d11", + "x-ms-ratelimit-remaining-subscription-reads": "11962", + "x-ms-request-id": "e293fc9c-1f77-4495-9a38-3c02b3a67d11", + "x-ms-routing-request-id": "JAPANEAST:20230220T024554Z:e293fc9c-1f77-4495-9a38-3c02b3a67d11" }, "ResponseBody": { "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3", @@ -50,16 +50,16 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourcegroups/synapsesdkrp2756?api-version=**", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourcegroups/synapsesdkrp8989?api-version=**", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "22", "Content-Type": "application/json", - "traceparent": "00-bad988705ab53f48ba01db3c0f19c979-5b6db900a80e054d-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "005922581fa6547d98843516ef1a61ea", + "traceparent": "00-c271a89fadb92e4757fa541117cca156-b9e95a8c9e5870e7-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "b8ab49b591c21dda3a96acf7c255c244", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -70,19 +70,19 @@ "Cache-Control": "no-cache", "Content-Length": "230", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:35:29 GMT", + "Date": "Mon, 20 Feb 2023 02:45:56 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "e1665566-8cb9-4ce3-9af2-e759fcefbd9a", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "e1665566-8cb9-4ce3-9af2-e759fcefbd9a", - "x-ms-routing-request-id": "JAPANEAST:20230201T043529Z:e1665566-8cb9-4ce3-9af2-e759fcefbd9a" + "x-ms-correlation-request-id": "38feb40f-24d2-45c9-914d-f6595cc7ee96", + "x-ms-ratelimit-remaining-subscription-writes": "1195", + "x-ms-request-id": "38feb40f-24d2-45c9-914d-f6595cc7ee96", + "x-ms-routing-request-id": "JAPANEAST:20230220T024556Z:38feb40f-24d2-45c9-914d-f6595cc7ee96" }, "ResponseBody": { - "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp2756", - "name": "synapsesdkrp2756", + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp8989", + "name": "synapsesdkrp8989", "type": "Microsoft.Resources/resourceGroups", "location": "eastus2", "properties": { @@ -91,16 +91,16 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp2756/providers/Microsoft.Storage/storageAccounts/synapsesdkstorage4847?api-version=2022-09-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp8989/providers/Microsoft.Storage/storageAccounts/synapsesdkstorage7589?api-version=2022-09-01", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "87", "Content-Type": "application/json", - "traceparent": "00-dc42ae6acad33e43828e1a5977c8b8b1-fd3004ac7f405c48-00", - "User-Agent": "azsdk-net-ResourceManager.Storage/1.1.0 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "1537abf6ab5931a9ee93390bea3a9332", + "traceparent": "00-4270c2dcb5b30c3c63ea61606d7f7f23-aa354fa7005bc1ed-00", + "User-Agent": "azsdk-net-ResourceManager.Storage/1.1.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "678bdf11f39189aefa89b19963f5db65", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -116,30 +116,30 @@ "Cache-Control": "no-cache", "Content-Length": "0", "Content-Type": "text/plain; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:35:35 GMT", + "Date": "Mon, 20 Feb 2023 02:46:02 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Storage/locations/eastus2/asyncoperations/4a496b73-b7c2-4609-9c80-12abed5eedc4?monitor=true\u0026api-version=2022-09-01", + "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Storage/locations/eastus2/asyncoperations/60bfa651-16b9-415d-9af5-033136221e6f?monitor=true\u0026api-version=2022-09-01", "Pragma": "no-cache", "Retry-After": "17", "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "1537abf6ab5931a9ee93390bea3a9332", - "x-ms-correlation-request-id": "840406a6-7ff6-468c-8b2e-30d939ddeb43", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "4a496b73-b7c2-4609-9c80-12abed5eedc4", - "x-ms-routing-request-id": "JAPANEAST:20230201T043535Z:840406a6-7ff6-468c-8b2e-30d939ddeb43" + "x-ms-client-request-id": "678bdf11f39189aefa89b19963f5db65", + "x-ms-correlation-request-id": "141b7f82-4590-44db-bb3a-81d9a2812c04", + "x-ms-ratelimit-remaining-subscription-writes": "1194", + "x-ms-request-id": "60bfa651-16b9-415d-9af5-033136221e6f", + "x-ms-routing-request-id": "JAPANEAST:20230220T024603Z:141b7f82-4590-44db-bb3a-81d9a2812c04" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Storage/locations/eastus2/asyncoperations/4a496b73-b7c2-4609-9c80-12abed5eedc4?monitor=true\u0026api-version=2022-09-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Storage/locations/eastus2/asyncoperations/60bfa651-16b9-415d-9af5-033136221e6f?monitor=true\u0026api-version=2022-09-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-dc42ae6acad33e43828e1a5977c8b8b1-b41806f756013a4e-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "680a9f66a88aad4d78281113e5716a5d", + "traceparent": "00-4270c2dcb5b30c3c63ea61606d7f7f23-ee0c822442d78ea1-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "b83ab24ae6f6c2e09a22be39df41ba45", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -148,30 +148,30 @@ "Cache-Control": "no-cache", "Content-Length": "0", "Content-Type": "text/plain; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:35:35 GMT", + "Date": "Mon, 20 Feb 2023 02:46:02 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Storage/locations/eastus2/asyncoperations/4a496b73-b7c2-4609-9c80-12abed5eedc4?monitor=true\u0026api-version=2022-09-01", + "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Storage/locations/eastus2/asyncoperations/60bfa651-16b9-415d-9af5-033136221e6f?monitor=true\u0026api-version=2022-09-01", "Pragma": "no-cache", "Retry-After": "17", "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "680a9f66a88aad4d78281113e5716a5d", - "x-ms-correlation-request-id": "83b3640e-d436-499d-8f52-3e24435383ec", - "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-request-id": "052d663f-58da-4d47-9b2b-d73649c031a6", - "x-ms-routing-request-id": "JAPANEAST:20230201T043535Z:83b3640e-d436-499d-8f52-3e24435383ec" + "x-ms-client-request-id": "b83ab24ae6f6c2e09a22be39df41ba45", + "x-ms-correlation-request-id": "0a41c0dd-5752-460c-97f9-01b0ad8e11ac", + "x-ms-ratelimit-remaining-subscription-reads": "11961", + "x-ms-request-id": "3f77423f-ab87-4f7b-81ad-176ec7efab5e", + "x-ms-routing-request-id": "JAPANEAST:20230220T024603Z:0a41c0dd-5752-460c-97f9-01b0ad8e11ac" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Storage/locations/eastus2/asyncoperations/4a496b73-b7c2-4609-9c80-12abed5eedc4?monitor=true\u0026api-version=2022-09-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Storage/locations/eastus2/asyncoperations/60bfa651-16b9-415d-9af5-033136221e6f?monitor=true\u0026api-version=2022-09-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-dc42ae6acad33e43828e1a5977c8b8b1-976c107131e19340-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "125502f13e42263aad0c68dd720a451a", + "traceparent": "00-4270c2dcb5b30c3c63ea61606d7f7f23-c1847e0d7f761943-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "cfc947bb417a1253d55637f49dc5645d", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -180,17 +180,17 @@ "Cache-Control": "no-cache", "Content-Length": "1528", "Content-Type": "application/json", - "Date": "Wed, 01 Feb 2023 04:35:52 GMT", + "Date": "Mon, 20 Feb 2023 02:46:19 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "125502f13e42263aad0c68dd720a451a", - "x-ms-correlation-request-id": "e5b1afed-cb2c-4bfd-912f-4055ded7a22b", - "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "218a90fc-7e35-4a31-9758-8dc867c37b70", - "x-ms-routing-request-id": "JAPANEAST:20230201T043553Z:e5b1afed-cb2c-4bfd-912f-4055ded7a22b" + "x-ms-client-request-id": "cfc947bb417a1253d55637f49dc5645d", + "x-ms-correlation-request-id": "f7912863-7423-4275-ba8c-4d42a1a7b072", + "x-ms-ratelimit-remaining-subscription-reads": "11960", + "x-ms-request-id": "f6abb811-ea62-4fd6-8ed0-e4488c23413e", + "x-ms-routing-request-id": "JAPANEAST:20230220T024620Z:f7912863-7423-4275-ba8c-4d42a1a7b072" }, "ResponseBody": { "sku": { @@ -198,15 +198,15 @@ "tier": "Standard" }, "kind": "StorageV2", - "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp2756/providers/Microsoft.Storage/storageAccounts/synapsesdkstorage4847", - "name": "synapsesdkstorage4847", + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp8989/providers/Microsoft.Storage/storageAccounts/synapsesdkstorage7589", + "name": "synapsesdkstorage7589", "type": "Microsoft.Storage/storageAccounts", "location": "eastus2", "tags": {}, "properties": { "keyCreationTime": { - "key1": "2023-02-01T04:35:33.2859679Z", - "key2": "2023-02-01T04:35:33.2859679Z" + "key1": "2023-02-20T02:46:00.9918441Z", + "key2": "2023-02-20T02:46:00.9918441Z" }, "privateEndpointConnections": [], "minimumTlsVersion": "TLS1_0", @@ -223,26 +223,26 @@ "file": { "keyType": "Account", "enabled": true, - "lastEnabledTime": "2023-02-01T04:35:34.0672217Z" + "lastEnabledTime": "2023-02-20T02:46:01.6793994Z" }, "blob": { "keyType": "Account", "enabled": true, - "lastEnabledTime": "2023-02-01T04:35:34.0672217Z" + "lastEnabledTime": "2023-02-20T02:46:01.6793994Z" } }, "keySource": "Microsoft.Storage" }, "accessTier": "Hot", "provisioningState": "Succeeded", - "creationTime": "2023-02-01T04:35:33.1297152Z", + "creationTime": "2023-02-20T02:46:00.8514502Z", "primaryEndpoints": { - "dfs": "https://synapsesdkstorage4847.dfs.core.windows.net/", - "web": "https://synapsesdkstorage4847.z20.web.core.windows.net/", - "blob": "https://synapsesdkstorage4847.blob.core.windows.net/", - "queue": "https://synapsesdkstorage4847.queue.core.windows.net/", - "table": "https://synapsesdkstorage4847.table.core.windows.net/", - "file": "https://synapsesdkstorage4847.file.core.windows.net/" + "dfs": "https://synapsesdkstorage7589.dfs.core.windows.net/", + "web": "https://synapsesdkstorage7589.z20.web.core.windows.net/", + "blob": "https://synapsesdkstorage7589.blob.core.windows.net/", + "queue": "https://synapsesdkstorage7589.queue.core.windows.net/", + "table": "https://synapsesdkstorage7589.table.core.windows.net/", + "file": "https://synapsesdkstorage7589.file.core.windows.net/" }, "primaryLocation": "eastus2", "statusOfPrimary": "available", @@ -252,15 +252,15 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp2756/providers/Microsoft.Storage/storageAccounts/synapsesdkstorage4847/listKeys?api-version=2022-09-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp8989/providers/Microsoft.Storage/storageAccounts/synapsesdkstorage7589/listKeys?api-version=2022-09-01", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "0", - "traceparent": "00-7a15f156f0ed7d4080079e4a549f16da-10988dde1b53294e-00", - "User-Agent": "azsdk-net-ResourceManager.Storage/1.1.0 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "4aa447dc2b3018a78f2aaa87beeb453b", + "traceparent": "00-95c5b3d30b651481ffe6c215bbd5e620-774dacc952f4c68d-00", + "User-Agent": "azsdk-net-ResourceManager.Storage/1.1.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "b04e63b823bb476e1319e6ce40d154ee", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -269,46 +269,46 @@ "Cache-Control": "no-cache", "Content-Length": "380", "Content-Type": "application/json", - "Date": "Wed, 01 Feb 2023 04:35:52 GMT", + "Date": "Mon, 20 Feb 2023 02:46:20 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "4aa447dc2b3018a78f2aaa87beeb453b", - "x-ms-correlation-request-id": "fed0752a-62bf-45e0-b5a9-d55dd3af8c77", - "x-ms-ratelimit-remaining-subscription-resource-requests": "11999", - "x-ms-request-id": "d3421dda-b056-4379-ae07-7a5e36d25d81", - "x-ms-routing-request-id": "JAPANEAST:20230201T043553Z:fed0752a-62bf-45e0-b5a9-d55dd3af8c77" + "x-ms-client-request-id": "b04e63b823bb476e1319e6ce40d154ee", + "x-ms-correlation-request-id": "48e03150-c1ad-46ec-ab5e-b12433035c4d", + "x-ms-ratelimit-remaining-subscription-resource-requests": "11998", + "x-ms-request-id": "2f855687-9770-4d31-a44a-b09e90684c35", + "x-ms-routing-request-id": "JAPANEAST:20230220T024621Z:48e03150-c1ad-46ec-ab5e-b12433035c4d" }, "ResponseBody": { "keys": [ { - "creationTime": "2023-02-01T04:35:33.2859679Z", + "creationTime": "2023-02-20T02:46:00.9918441Z", "keyName": "key1", - "value": "S\u002Bsf2JcgTqdWnIsUkqh6L1Zrgzey9HVLV/dyUQttUqxoQA16EKl5IRJs9GZ3ICVE60ziuqXGoz\u002Bg\u002BAStsom\u002BlQ==", + "value": "3iGoUK1fIEuTePrE87gXY9lioaNl2lDzP4DhPg0lYorLamjxdewdAyHCRWJjeDjVJU1JM9sgHImi\u002BAStKZ3rZA==", "permissions": "FULL" }, { - "creationTime": "2023-02-01T04:35:33.2859679Z", + "creationTime": "2023-02-20T02:46:00.9918441Z", "keyName": "key2", - "value": "1Sz06qNlYjdfuBrlPqNYY\u002BrD3pbtt\u002BDeZ9G0CKBE6Jr0joTgAWTE6lQwcnfyKmdf14zAmoW17xIo\u002BASt8l5qxA==", + "value": "pBYGz4WTHvXS\u002By66cyp6iFiE8e1mvccnCV\u002BQogT7pFn9kL\u002Bk9VHFUz2W6qzxYdi5FFRI3fUKTgW5\u002BASt6PF0JQ==", "permissions": "FULL" } ] } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp2756/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9540?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp8989/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3979?api-version=2021-06-01", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "302", "Content-Type": "application/json", - "traceparent": "00-4334347a51914e4db4975264c51d9c7b-1ddd391595b7c046-00", - "User-Agent": "azsdk-net-ResourceManager.Synapse/1.1.0-alpha.20230131.1 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "7ee8aedbafa46528e4bb7e406f3a6de2", + "traceparent": "00-d2fae1b05077baab6a72777780139f09-dabaad09b2779931-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "d2dd2e11d3025e0827e29fafeb24d5bd", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -319,80 +319,80 @@ "location": "eastus2", "properties": { "defaultDataLakeStorage": { - "accountUrl": "https://synapsesdkstorage4847.dfs.core.windows.net/", - "filesystem": "synapsesdkfilesys6880" + "accountUrl": "https://synapsesdkstorage7589.dfs.core.windows.net/", + "filesystem": "synapsesdkfilesys7099" }, - "sqlAdministratorLoginPassword": "Password1!6852", - "sqlAdministratorLogin": "sshuser7629" + "sqlAdministratorLoginPassword": "Password1!2518", + "sqlAdministratorLogin": "sshuser7954" } }, "StatusCode": 201, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp2756/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9540/operationStatuses/1e808ab3-7da0-44d6-bf8d-61896e069f51?api-version=2021-06-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp8989/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3979/operationStatuses/a5ecd8ff-d5ce-48c7-9f45-ec15c83bc1cc?api-version=2021-06-01", "Cache-Control": "no-cache", "Content-Length": "1477", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:36:00 GMT", + "Date": "Mon, 20 Feb 2023 02:46:27 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "7ee8aedbafa46528e4bb7e406f3a6de2", - "x-ms-correlation-request-id": "8027b31f-7746-4ede-a918-e6f4b0c88543", - "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": "46b17849-4285-4718-815f-8378034ea135", - "x-ms-routing-request-id": "JAPANEAST:20230201T043600Z:8027b31f-7746-4ede-a918-e6f4b0c88543" + "x-ms-client-request-id": "d2dd2e11d3025e0827e29fafeb24d5bd", + "x-ms-correlation-request-id": "23fe660f-df9d-475a-93a5-0f7e5e3362fb", + "x-ms-ratelimit-remaining-subscription-writes": "1193", + "x-ms-request-id": "5be077c4-e326-42bd-8869-9c8a966e550c", + "x-ms-routing-request-id": "JAPANEAST:20230220T024628Z:23fe660f-df9d-475a-93a5-0f7e5e3362fb" }, "ResponseBody": { "properties": { "defaultDataLakeStorage": { "createManagedPrivateEndpoint": false, - "accountUrl": "https://synapsesdkstorage4847.dfs.core.windows.net/", - "filesystem": "synapsesdkfilesys6880" + "accountUrl": "https://synapsesdkstorage7589.dfs.core.windows.net/", + "filesystem": "synapsesdkfilesys7099" }, "encryption": { "doubleEncryptionEnabled": false }, "provisioningState": "Provisioning", "connectivityEndpoints": { - "web": "https://web.azuresynapse.net?workspace=%2fsubscriptions%2f051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3%2fresourceGroups%2fsynapsesdkrp2756%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fsynapsesdkworkspace9540", - "dev": "https://synapsesdkworkspace9540.dev.azuresynapse.net", - "sqlOnDemand": "synapsesdkworkspace9540-ondemand.sql.azuresynapse.net", - "sql": "synapsesdkworkspace9540.sql.azuresynapse.net" + "web": "https://web.azuresynapse.net?workspace=%2fsubscriptions%2f051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3%2fresourceGroups%2fsynapsesdkrp8989%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fsynapsesdkworkspace3979", + "dev": "https://synapsesdkworkspace3979.dev.azuresynapse.net", + "sqlOnDemand": "synapsesdkworkspace3979-ondemand.sql.azuresynapse.net", + "sql": "synapsesdkworkspace3979.sql.azuresynapse.net" }, - "managedResourceGroupName": "synapseworkspace-managedrg-93e0bf97-db8d-4846-96f3-fc7571c79dc5", + "managedResourceGroupName": "synapseworkspace-managedrg-1221e6f9-2cbe-4436-85a5-f2cb1317b371", "privateEndpointConnections": [], - "workspaceUID": "087351e3-719a-4f9b-8863-91cf1681ae72", + "workspaceUID": "7faa9284-a884-473b-a6c0-7e257feaa8cf", "extraProperties": { "WorkspaceType": "Normal" }, "publicNetworkAccess": "Enabled", "cspWorkspaceAdminProperties": { - "initialWorkspaceAdminObjectId": "1c263ed5-a67e-400e-a599-0479e0ceb82f" + "initialWorkspaceAdminObjectId": "5adcf4d8-4923-420e-ab0b-f6e5fc718b42" }, "trustedServiceBypassEnabled": false }, "type": "Microsoft.Synapse/workspaces", - "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp2756/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9540", + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp8989/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3979", "location": "eastus2", - "name": "synapsesdkworkspace9540", + "name": "synapsesdkworkspace3979", "identity": { "type": "SystemAssigned", "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", - "principalId": "fb5ebe63-e567-4ec7-9f51-6b72a217d757" + "principalId": "5cd68555-5e85-4ed0-982e-4ed6b7108f0a" }, "tags": {} } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp2756/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9540/operationStatuses/1e808ab3-7da0-44d6-bf8d-61896e069f51?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp8989/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3979/operationStatuses/a5ecd8ff-d5ce-48c7-9f45-ec15c83bc1cc?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-4334347a51914e4db4975264c51d9c7b-e0798b93bb319445-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "5c96cb2c9c5c98387ce54b6f28d720ef", + "traceparent": "00-d2fae1b05077baab6a72777780139f09-86487bf06b219800-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "968c12498a8690b546529340ce9827f4", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -401,30 +401,30 @@ "Cache-Control": "no-cache", "Content-Length": "23", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:36:00 GMT", + "Date": "Mon, 20 Feb 2023 02:46:28 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "5c96cb2c9c5c98387ce54b6f28d720ef", - "x-ms-correlation-request-id": "7b95d818-eb17-45c2-9c39-f447a13a09c6", - "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "68cb7a2e-e048-4275-b05b-244f82119652", - "x-ms-routing-request-id": "JAPANEAST:20230201T043600Z:7b95d818-eb17-45c2-9c39-f447a13a09c6" + "x-ms-client-request-id": "968c12498a8690b546529340ce9827f4", + "x-ms-correlation-request-id": "fc378897-e2e0-4c63-b2f3-c27eb0fe42c3", + "x-ms-ratelimit-remaining-subscription-reads": "11959", + "x-ms-request-id": "6079aee2-ac6f-45a2-b565-cdd366c29c4d", + "x-ms-routing-request-id": "JAPANEAST:20230220T024629Z:fc378897-e2e0-4c63-b2f3-c27eb0fe42c3" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp2756/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9540/operationStatuses/1e808ab3-7da0-44d6-bf8d-61896e069f51?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp8989/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3979/operationStatuses/a5ecd8ff-d5ce-48c7-9f45-ec15c83bc1cc?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-4334347a51914e4db4975264c51d9c7b-5bb310e07b30e948-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "b5c7a43c6ea7aef1e78d41219794b27c", + "traceparent": "00-d2fae1b05077baab6a72777780139f09-7d8e0c1a35b38a8a-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "50df1011fbd887d99505504672add955", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -433,30 +433,30 @@ "Cache-Control": "no-cache", "Content-Length": "23", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:36:01 GMT", + "Date": "Mon, 20 Feb 2023 02:46:29 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "b5c7a43c6ea7aef1e78d41219794b27c", - "x-ms-correlation-request-id": "f9b35ffb-7b97-4303-bb6e-b454ba9c0116", - "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-request-id": "6063f1d6-6ead-4e55-a6ba-63d98da2e0d8", - "x-ms-routing-request-id": "JAPANEAST:20230201T043601Z:f9b35ffb-7b97-4303-bb6e-b454ba9c0116" + "x-ms-client-request-id": "50df1011fbd887d99505504672add955", + "x-ms-correlation-request-id": "16b76c28-fcf6-4422-881a-bff49f057693", + "x-ms-ratelimit-remaining-subscription-reads": "11958", + "x-ms-request-id": "bd777c48-7381-4540-b5ec-63c281e1b31b", + "x-ms-routing-request-id": "JAPANEAST:20230220T024630Z:16b76c28-fcf6-4422-881a-bff49f057693" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp2756/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9540/operationStatuses/1e808ab3-7da0-44d6-bf8d-61896e069f51?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp8989/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3979/operationStatuses/a5ecd8ff-d5ce-48c7-9f45-ec15c83bc1cc?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-4334347a51914e4db4975264c51d9c7b-ca14b26da11f8548-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "a413b7f910a35b86fd05503ae1563265", + "traceparent": "00-d2fae1b05077baab6a72777780139f09-58cde727d31f4604-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "d9659dde3e98d537caecacb7f55809e9", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -465,30 +465,30 @@ "Cache-Control": "no-cache", "Content-Length": "23", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:36:03 GMT", + "Date": "Mon, 20 Feb 2023 02:46:31 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "a413b7f910a35b86fd05503ae1563265", - "x-ms-correlation-request-id": "0fc7d516-9a0a-4825-afed-779b991659bf", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "abadfb47-42c1-45d9-9696-4a4406e0188a", - "x-ms-routing-request-id": "JAPANEAST:20230201T043603Z:0fc7d516-9a0a-4825-afed-779b991659bf" + "x-ms-client-request-id": "d9659dde3e98d537caecacb7f55809e9", + "x-ms-correlation-request-id": "f4805181-1853-4ec2-8a25-bba1e8f9f709", + "x-ms-ratelimit-remaining-subscription-reads": "11957", + "x-ms-request-id": "006c2fd9-64b7-45a7-8d03-c47852022918", + "x-ms-routing-request-id": "JAPANEAST:20230220T024632Z:f4805181-1853-4ec2-8a25-bba1e8f9f709" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp2756/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9540/operationStatuses/1e808ab3-7da0-44d6-bf8d-61896e069f51?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp8989/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3979/operationStatuses/a5ecd8ff-d5ce-48c7-9f45-ec15c83bc1cc?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-4334347a51914e4db4975264c51d9c7b-e052a709476d9c4c-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "0d5728620c9fbd1fd9e874cf5a1601e8", + "traceparent": "00-d2fae1b05077baab6a72777780139f09-c96c9bb1b936d82f-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "74496c94b4f24e2939040081396f1d98", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -497,30 +497,30 @@ "Cache-Control": "no-cache", "Content-Length": "23", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:36:04 GMT", + "Date": "Mon, 20 Feb 2023 02:46:32 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "0d5728620c9fbd1fd9e874cf5a1601e8", - "x-ms-correlation-request-id": "5d403ca9-f473-4d25-8be8-2f2d6b44bca3", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "717c8d42-82fd-48b8-9de1-292bbe48278e", - "x-ms-routing-request-id": "JAPANEAST:20230201T043604Z:5d403ca9-f473-4d25-8be8-2f2d6b44bca3" + "x-ms-client-request-id": "74496c94b4f24e2939040081396f1d98", + "x-ms-correlation-request-id": "66c4d76a-c7e2-4553-8515-802ae09a7b39", + "x-ms-ratelimit-remaining-subscription-reads": "11956", + "x-ms-request-id": "7eed7557-6d71-479c-8cd6-66a1146f7ce4", + "x-ms-routing-request-id": "JAPANEAST:20230220T024633Z:66c4d76a-c7e2-4553-8515-802ae09a7b39" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp2756/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9540/operationStatuses/1e808ab3-7da0-44d6-bf8d-61896e069f51?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp8989/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3979/operationStatuses/a5ecd8ff-d5ce-48c7-9f45-ec15c83bc1cc?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-4334347a51914e4db4975264c51d9c7b-1ca725e425a0614e-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "7175cf327bc42c4c1e6cb7a11eb7cc91", + "traceparent": "00-d2fae1b05077baab6a72777780139f09-c5771149eccfc33e-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "31613e784d33d25cd90985ec4e21913d", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -529,30 +529,30 @@ "Cache-Control": "no-cache", "Content-Length": "23", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:36:07 GMT", + "Date": "Mon, 20 Feb 2023 02:46:35 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "7175cf327bc42c4c1e6cb7a11eb7cc91", - "x-ms-correlation-request-id": "62ae6a8c-e532-4a84-965f-150e8bf09ad9", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "b45f438a-aabe-44b1-8ac6-f567345d1528", - "x-ms-routing-request-id": "JAPANEAST:20230201T043607Z:62ae6a8c-e532-4a84-965f-150e8bf09ad9" + "x-ms-client-request-id": "31613e784d33d25cd90985ec4e21913d", + "x-ms-correlation-request-id": "90c9ec2a-ebcd-42c1-8ec2-c1327b7c1885", + "x-ms-ratelimit-remaining-subscription-reads": "11955", + "x-ms-request-id": "f54b547c-07de-4bdc-9701-0ea38be9837f", + "x-ms-routing-request-id": "JAPANEAST:20230220T024636Z:90c9ec2a-ebcd-42c1-8ec2-c1327b7c1885" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp2756/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9540/operationStatuses/1e808ab3-7da0-44d6-bf8d-61896e069f51?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp8989/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3979/operationStatuses/a5ecd8ff-d5ce-48c7-9f45-ec15c83bc1cc?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-4334347a51914e4db4975264c51d9c7b-f231b50728df4a4e-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "6fbfdb5aa43ceddd9755cbba9cb600e6", + "traceparent": "00-d2fae1b05077baab6a72777780139f09-d699b9476a65a7ab-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "06b267fc65642a637317a0933db69c5b", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -561,30 +561,30 @@ "Cache-Control": "no-cache", "Content-Length": "23", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:36:11 GMT", + "Date": "Mon, 20 Feb 2023 02:46:39 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "6fbfdb5aa43ceddd9755cbba9cb600e6", - "x-ms-correlation-request-id": "f4fd1c76-1db3-45fb-9725-9558f42a1ceb", - "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "0b432120-51a3-4bfb-84f1-768726b4bb47", - "x-ms-routing-request-id": "JAPANEAST:20230201T043611Z:f4fd1c76-1db3-45fb-9725-9558f42a1ceb" + "x-ms-client-request-id": "06b267fc65642a637317a0933db69c5b", + "x-ms-correlation-request-id": "c1e9bc5c-ad6d-49eb-81d0-2cc4a804174b", + "x-ms-ratelimit-remaining-subscription-reads": "11954", + "x-ms-request-id": "3a665ce3-6524-4529-b6c2-825b1ba5b431", + "x-ms-routing-request-id": "JAPANEAST:20230220T024640Z:c1e9bc5c-ad6d-49eb-81d0-2cc4a804174b" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp2756/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9540/operationStatuses/1e808ab3-7da0-44d6-bf8d-61896e069f51?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp8989/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3979/operationStatuses/a5ecd8ff-d5ce-48c7-9f45-ec15c83bc1cc?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-4334347a51914e4db4975264c51d9c7b-8765618304378c47-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "12076804c1e0e6a1db2aee33547e9f22", + "traceparent": "00-d2fae1b05077baab6a72777780139f09-e55f89bfdde244dc-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "b73e14ced8f646b60f779ae82f3dff17", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -593,30 +593,30 @@ "Cache-Control": "no-cache", "Content-Length": "23", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:36:19 GMT", + "Date": "Mon, 20 Feb 2023 02:46:48 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "12076804c1e0e6a1db2aee33547e9f22", - "x-ms-correlation-request-id": "200d9a45-97e5-4cf4-aeda-42a039e22644", - "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "02a4ecda-c4ad-4e33-b1e3-920079cc73ee", - "x-ms-routing-request-id": "JAPANEAST:20230201T043620Z:200d9a45-97e5-4cf4-aeda-42a039e22644" + "x-ms-client-request-id": "b73e14ced8f646b60f779ae82f3dff17", + "x-ms-correlation-request-id": "2aac23ab-22ac-48cf-942c-f0a9f4059cf5", + "x-ms-ratelimit-remaining-subscription-reads": "11953", + "x-ms-request-id": "1516e92e-6d72-4deb-a24e-5fa22371a8b1", + "x-ms-routing-request-id": "JAPANEAST:20230220T024648Z:2aac23ab-22ac-48cf-942c-f0a9f4059cf5" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp2756/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9540/operationStatuses/1e808ab3-7da0-44d6-bf8d-61896e069f51?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp8989/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3979/operationStatuses/a5ecd8ff-d5ce-48c7-9f45-ec15c83bc1cc?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-4334347a51914e4db4975264c51d9c7b-100e240c7af69a48-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "7f74e31c92578eabf188da6eaf919068", + "traceparent": "00-d2fae1b05077baab6a72777780139f09-dbcd4ad6ad6e16d2-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "d285c37216bd1333db37bd1badc89423", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -625,30 +625,30 @@ "Cache-Control": "no-cache", "Content-Length": "23", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:36:35 GMT", + "Date": "Mon, 20 Feb 2023 02:47:05 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "7f74e31c92578eabf188da6eaf919068", - "x-ms-correlation-request-id": "4ec66de7-4a95-4f59-993e-a88f0f54bb25", - "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-request-id": "c415bcdf-1026-452a-814a-34a9662f87c9", - "x-ms-routing-request-id": "JAPANEAST:20230201T043636Z:4ec66de7-4a95-4f59-993e-a88f0f54bb25" + "x-ms-client-request-id": "d285c37216bd1333db37bd1badc89423", + "x-ms-correlation-request-id": "e86e1254-b602-4e5a-8715-ad1b5afbda2b", + "x-ms-ratelimit-remaining-subscription-reads": "11952", + "x-ms-request-id": "4f70dee3-a515-42ab-87c7-5d69c4fe884d", + "x-ms-routing-request-id": "JAPANEAST:20230220T024705Z:e86e1254-b602-4e5a-8715-ad1b5afbda2b" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp2756/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9540/operationStatuses/1e808ab3-7da0-44d6-bf8d-61896e069f51?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp8989/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3979/operationStatuses/a5ecd8ff-d5ce-48c7-9f45-ec15c83bc1cc?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-4334347a51914e4db4975264c51d9c7b-7dc1bc3c8b25e343-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "b69dd06cbaaf99b13ad89311b5aa9819", + "traceparent": "00-d2fae1b05077baab6a72777780139f09-fc52b1f4df0a5822-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "391d296ddae32447b16bf6edca7afb36", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -657,30 +657,30 @@ "Cache-Control": "no-cache", "Content-Length": "23", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:37:08 GMT", + "Date": "Mon, 20 Feb 2023 02:47:37 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "b69dd06cbaaf99b13ad89311b5aa9819", - "x-ms-correlation-request-id": "a0a90c10-e042-4748-9f4a-1f8269e68a9e", - "x-ms-ratelimit-remaining-subscription-reads": "11986", - "x-ms-request-id": "991a128c-f866-4a41-8f7a-84acd0c3b1d5", - "x-ms-routing-request-id": "JAPANEAST:20230201T043708Z:a0a90c10-e042-4748-9f4a-1f8269e68a9e" + "x-ms-client-request-id": "391d296ddae32447b16bf6edca7afb36", + "x-ms-correlation-request-id": "0a8f74da-935f-4b5d-832a-5fd3790feba5", + "x-ms-ratelimit-remaining-subscription-reads": "11951", + "x-ms-request-id": "68e82adb-66f0-48b9-b60d-46710c12ed83", + "x-ms-routing-request-id": "JAPANEAST:20230220T024737Z:0a8f74da-935f-4b5d-832a-5fd3790feba5" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp2756/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9540/operationStatuses/1e808ab3-7da0-44d6-bf8d-61896e069f51?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp8989/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3979/operationStatuses/a5ecd8ff-d5ce-48c7-9f45-ec15c83bc1cc?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-4334347a51914e4db4975264c51d9c7b-62f50c4aee50554b-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "b89ea9b68041718fbc792058e633364a", + "traceparent": "00-d2fae1b05077baab6a72777780139f09-03bf0516622de081-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "7a208917c931b89ee02adcbe1a9a9847", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -689,30 +689,30 @@ "Cache-Control": "no-cache", "Content-Length": "23", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:37:40 GMT", + "Date": "Mon, 20 Feb 2023 02:48:09 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "b89ea9b68041718fbc792058e633364a", - "x-ms-correlation-request-id": "3b644117-d490-4f2d-a48a-c742248f466b", - "x-ms-ratelimit-remaining-subscription-reads": "11985", - "x-ms-request-id": "63dbf218-e4e7-4af8-b580-a551555c26c6", - "x-ms-routing-request-id": "JAPANEAST:20230201T043741Z:3b644117-d490-4f2d-a48a-c742248f466b" + "x-ms-client-request-id": "7a208917c931b89ee02adcbe1a9a9847", + "x-ms-correlation-request-id": "8cb0bcd9-5778-4f77-b48e-57d913169ead", + "x-ms-ratelimit-remaining-subscription-reads": "11950", + "x-ms-request-id": "a93a3e0d-1648-4dd8-83fe-5d2ae510fc6c", + "x-ms-routing-request-id": "JAPANEAST:20230220T024810Z:8cb0bcd9-5778-4f77-b48e-57d913169ead" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp2756/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9540/operationStatuses/1e808ab3-7da0-44d6-bf8d-61896e069f51?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp8989/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3979/operationStatuses/a5ecd8ff-d5ce-48c7-9f45-ec15c83bc1cc?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-4334347a51914e4db4975264c51d9c7b-9b6e08b9e4c24d4b-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "83c6869ae9e0617232db457efe99d947", + "traceparent": "00-d2fae1b05077baab6a72777780139f09-a744d155ada0e73b-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "057b77e2c62098337b6121511f464961", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -721,62 +721,30 @@ "Cache-Control": "no-cache", "Content-Length": "23", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:38:13 GMT", + "Date": "Mon, 20 Feb 2023 02:48:41 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "83c6869ae9e0617232db457efe99d947", - "x-ms-correlation-request-id": "fe869f8f-d243-4d1d-a3be-25adddd6edd7", - "x-ms-ratelimit-remaining-subscription-reads": "11984", - "x-ms-request-id": "b601e9f5-e31d-41cb-b041-3517ffcf2abf", - "x-ms-routing-request-id": "JAPANEAST:20230201T043813Z:fe869f8f-d243-4d1d-a3be-25adddd6edd7" + "x-ms-client-request-id": "057b77e2c62098337b6121511f464961", + "x-ms-correlation-request-id": "ce081b82-998a-44bc-b288-b3230b604a92", + "x-ms-ratelimit-remaining-subscription-reads": "11949", + "x-ms-request-id": "9d6f9d68-0470-4f82-aa9b-a1e10e24a67c", + "x-ms-routing-request-id": "JAPANEAST:20230220T024842Z:ce081b82-998a-44bc-b288-b3230b604a92" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp2756/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9540/operationStatuses/1e808ab3-7da0-44d6-bf8d-61896e069f51?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp8989/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3979/operationStatuses/a5ecd8ff-d5ce-48c7-9f45-ec15c83bc1cc?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-4334347a51914e4db4975264c51d9c7b-314ca30133329649-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "06b8c1efd7f2eb26412bf9359958b206", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "23", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:38:45 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "06b8c1efd7f2eb26412bf9359958b206", - "x-ms-correlation-request-id": "86b793b6-ef3f-42b5-93bf-6c506ac58a7f", - "x-ms-ratelimit-remaining-subscription-reads": "11983", - "x-ms-request-id": "031c0c50-d73c-49af-b24d-edf461bfe119", - "x-ms-routing-request-id": "JAPANEAST:20230201T043846Z:86b793b6-ef3f-42b5-93bf-6c506ac58a7f" - }, - "ResponseBody": { - "status": "InProgress" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp2756/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9540/operationStatuses/1e808ab3-7da0-44d6-bf8d-61896e069f51?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-4334347a51914e4db4975264c51d9c7b-011a060cadf6944a-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "2e7748a114e3cc38363d86663b107223", + "traceparent": "00-d2fae1b05077baab6a72777780139f09-8f2f81a3d274e455-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "2404873c1aa7a3f18b6558b9fe890916", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -785,30 +753,30 @@ "Cache-Control": "no-cache", "Content-Length": "22", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:39:17 GMT", + "Date": "Mon, 20 Feb 2023 02:49:14 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "2e7748a114e3cc38363d86663b107223", - "x-ms-correlation-request-id": "fe5f7d55-a30d-48b5-89c2-632416a2008e", - "x-ms-ratelimit-remaining-subscription-reads": "11982", - "x-ms-request-id": "fba2d4ef-1112-479b-9337-c488408fe354", - "x-ms-routing-request-id": "JAPANEAST:20230201T043918Z:fe5f7d55-a30d-48b5-89c2-632416a2008e" + "x-ms-client-request-id": "2404873c1aa7a3f18b6558b9fe890916", + "x-ms-correlation-request-id": "dda5c3e5-5647-4b30-a61e-a41704fc9156", + "x-ms-ratelimit-remaining-subscription-reads": "11948", + "x-ms-request-id": "b6d87c53-a526-4e66-a5f8-f19cb0bf82c0", + "x-ms-routing-request-id": "JAPANEAST:20230220T024915Z:dda5c3e5-5647-4b30-a61e-a41704fc9156" }, "ResponseBody": { "status": "Succeeded" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp2756/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9540?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp8989/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3979?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-4334347a51914e4db4975264c51d9c7b-ffaefbb264a68f43-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "2568d8a0307bc35860db42b4f03dc7d9", + "traceparent": "00-d2fae1b05077baab6a72777780139f09-b1be87dfba00efbf-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "520bafd2f5fe51155588fed0a84c989a", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -817,72 +785,72 @@ "Cache-Control": "no-cache", "Content-Length": "1535", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:39:18 GMT", + "Date": "Mon, 20 Feb 2023 02:49:15 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "2568d8a0307bc35860db42b4f03dc7d9", - "x-ms-correlation-request-id": "ebb4c5a8-401d-40f6-a177-ce042fd5dfac", - "x-ms-ratelimit-remaining-subscription-reads": "11981", - "x-ms-request-id": "d42f14ab-935f-4002-baf7-4bd8c5c329c6", - "x-ms-routing-request-id": "JAPANEAST:20230201T043919Z:ebb4c5a8-401d-40f6-a177-ce042fd5dfac" + "x-ms-client-request-id": "520bafd2f5fe51155588fed0a84c989a", + "x-ms-correlation-request-id": "e75ac452-a0a6-4759-88d6-3106008e59b2", + "x-ms-ratelimit-remaining-subscription-reads": "11947", + "x-ms-request-id": "26835af8-ac41-473c-81f8-4792462a0b54", + "x-ms-routing-request-id": "JAPANEAST:20230220T024915Z:e75ac452-a0a6-4759-88d6-3106008e59b2" }, "ResponseBody": { "properties": { "defaultDataLakeStorage": { "createManagedPrivateEndpoint": false, - "accountUrl": "https://synapsesdkstorage4847.dfs.core.windows.net/", - "filesystem": "synapsesdkfilesys6880" + "accountUrl": "https://synapsesdkstorage7589.dfs.core.windows.net/", + "filesystem": "synapsesdkfilesys7099" }, "encryption": { "doubleEncryptionEnabled": false }, "provisioningState": "Succeeded", "connectivityEndpoints": { - "web": "https://web.azuresynapse.net?workspace=%2fsubscriptions%2f051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3%2fresourceGroups%2fsynapsesdkrp2756%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fsynapsesdkworkspace9540", - "dev": "https://synapsesdkworkspace9540.dev.azuresynapse.net", - "sqlOnDemand": "synapsesdkworkspace9540-ondemand.sql.azuresynapse.net", - "sql": "synapsesdkworkspace9540.sql.azuresynapse.net" + "web": "https://web.azuresynapse.net?workspace=%2fsubscriptions%2f051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3%2fresourceGroups%2fsynapsesdkrp8989%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fsynapsesdkworkspace3979", + "dev": "https://synapsesdkworkspace3979.dev.azuresynapse.net", + "sqlOnDemand": "synapsesdkworkspace3979-ondemand.sql.azuresynapse.net", + "sql": "synapsesdkworkspace3979.sql.azuresynapse.net" }, - "managedResourceGroupName": "synapseworkspace-managedrg-93e0bf97-db8d-4846-96f3-fc7571c79dc5", - "sqlAdministratorLogin": "sshuser7629", + "managedResourceGroupName": "synapseworkspace-managedrg-1221e6f9-2cbe-4436-85a5-f2cb1317b371", + "sqlAdministratorLogin": "sshuser7954", "privateEndpointConnections": [], - "workspaceUID": "087351e3-719a-4f9b-8863-91cf1681ae72", + "workspaceUID": "7faa9284-a884-473b-a6c0-7e257feaa8cf", "extraProperties": { "WorkspaceType": "Normal", "IsScopeEnabled": false }, "publicNetworkAccess": "Enabled", "cspWorkspaceAdminProperties": { - "initialWorkspaceAdminObjectId": "1c263ed5-a67e-400e-a599-0479e0ceb82f" + "initialWorkspaceAdminObjectId": "5adcf4d8-4923-420e-ab0b-f6e5fc718b42" }, "trustedServiceBypassEnabled": false }, "type": "Microsoft.Synapse/workspaces", - "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp2756/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9540", + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp8989/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3979", "location": "eastus2", - "name": "synapsesdkworkspace9540", + "name": "synapsesdkworkspace3979", "identity": { "type": "SystemAssigned", "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", - "principalId": "fb5ebe63-e567-4ec7-9f51-6b72a217d757" + "principalId": "5cd68555-5e85-4ed0-982e-4ed6b7108f0a" }, "tags": {} } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp2756/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9540?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp8989/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3979?api-version=2021-06-01", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "324", "Content-Type": "application/json", - "traceparent": "00-c90f69a31b99274e9a7927842137eb15-a9f2c2deb6426346-00", - "User-Agent": "azsdk-net-ResourceManager.Synapse/1.1.0-alpha.20230131.1 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "b6dc3e28aa22da6488ebd0b550c0af31", + "traceparent": "00-68f4b8813350258f174ee89460f84da3-85a215fd8b661f7d-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "92817be07495c79f85d779ba6d7a9af2", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -895,69 +863,69 @@ "location": "eastus2", "properties": { "defaultDataLakeStorage": { - "accountUrl": "https://synapsesdkstorage4847.dfs.core.windows.net/", - "filesystem": "synapsesdkfilesys6880" + "accountUrl": "https://synapsesdkstorage7589.dfs.core.windows.net/", + "filesystem": "synapsesdkfilesys7099" }, - "sqlAdministratorLoginPassword": "Password1!6852", - "sqlAdministratorLogin": "sshuser7629" + "sqlAdministratorLoginPassword": "Password1!2518", + "sqlAdministratorLogin": "sshuser7954" } }, "StatusCode": 201, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp2756/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9540/operationStatuses/0dd4ed9e-0c81-47c6-85cb-87fddd259c1b?api-version=2021-06-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp8989/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3979/operationStatuses/5cdae37d-8f2e-41ce-a248-dc18549e0c34?api-version=2021-06-01", "Cache-Control": "no-cache", "Content-Length": "1537", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:39:22 GMT", + "Date": "Mon, 20 Feb 2023 02:49:19 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "b6dc3e28aa22da6488ebd0b550c0af31", - "x-ms-correlation-request-id": "08e60d02-8a5c-47fe-86a5-08f9234c4015", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "cb517234-c0ba-45c8-820a-29e8bdc98d4a", - "x-ms-routing-request-id": "JAPANEAST:20230201T043923Z:08e60d02-8a5c-47fe-86a5-08f9234c4015" + "x-ms-client-request-id": "92817be07495c79f85d779ba6d7a9af2", + "x-ms-correlation-request-id": "e27ae88d-5a5a-4235-864a-1b3ca6a986f5", + "x-ms-ratelimit-remaining-subscription-writes": "1192", + "x-ms-request-id": "8de79e05-a2de-4522-89d5-28c73f807176", + "x-ms-routing-request-id": "JAPANEAST:20230220T024919Z:e27ae88d-5a5a-4235-864a-1b3ca6a986f5" }, "ResponseBody": { "properties": { "defaultDataLakeStorage": { "createManagedPrivateEndpoint": false, - "accountUrl": "https://synapsesdkstorage4847.dfs.core.windows.net/", - "filesystem": "synapsesdkfilesys6880" + "accountUrl": "https://synapsesdkstorage7589.dfs.core.windows.net/", + "filesystem": "synapsesdkfilesys7099" }, "encryption": { "doubleEncryptionEnabled": false }, "provisioningState": "Provisioning", "connectivityEndpoints": { - "web": "https://web.azuresynapse.net?workspace=%2fsubscriptions%2f051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3%2fresourceGroups%2fsynapsesdkrp2756%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fsynapsesdkworkspace9540", - "dev": "https://synapsesdkworkspace9540.dev.azuresynapse.net", - "sqlOnDemand": "synapsesdkworkspace9540-ondemand.sql.azuresynapse.net", - "sql": "synapsesdkworkspace9540.sql.azuresynapse.net" + "web": "https://web.azuresynapse.net?workspace=%2fsubscriptions%2f051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3%2fresourceGroups%2fsynapsesdkrp8989%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fsynapsesdkworkspace3979", + "dev": "https://synapsesdkworkspace3979.dev.azuresynapse.net", + "sqlOnDemand": "synapsesdkworkspace3979-ondemand.sql.azuresynapse.net", + "sql": "synapsesdkworkspace3979.sql.azuresynapse.net" }, - "managedResourceGroupName": "synapseworkspace-managedrg-93e0bf97-db8d-4846-96f3-fc7571c79dc5", - "sqlAdministratorLogin": "sshuser7629", + "managedResourceGroupName": "synapseworkspace-managedrg-1221e6f9-2cbe-4436-85a5-f2cb1317b371", + "sqlAdministratorLogin": "sshuser7954", "privateEndpointConnections": [], - "workspaceUID": "087351e3-719a-4f9b-8863-91cf1681ae72", + "workspaceUID": "7faa9284-a884-473b-a6c0-7e257feaa8cf", "extraProperties": { "WorkspaceType": "Normal" }, "publicNetworkAccess": "Enabled", "cspWorkspaceAdminProperties": { - "initialWorkspaceAdminObjectId": "1c263ed5-a67e-400e-a599-0479e0ceb82f" + "initialWorkspaceAdminObjectId": "5adcf4d8-4923-420e-ab0b-f6e5fc718b42" }, "trustedServiceBypassEnabled": false }, "type": "Microsoft.Synapse/workspaces", - "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp2756/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9540", + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp8989/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3979", "location": "eastus2", - "name": "synapsesdkworkspace9540", + "name": "synapsesdkworkspace3979", "identity": { "type": "SystemAssigned", "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", - "principalId": "fb5ebe63-e567-4ec7-9f51-6b72a217d757" + "principalId": "5cd68555-5e85-4ed0-982e-4ed6b7108f0a" }, "tags": { "TestTag": "TestUpdate" @@ -965,13 +933,13 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp2756/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9540/operationStatuses/0dd4ed9e-0c81-47c6-85cb-87fddd259c1b?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp8989/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3979/operationStatuses/5cdae37d-8f2e-41ce-a248-dc18549e0c34?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-c90f69a31b99274e9a7927842137eb15-6236e4363f49e54a-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "fd3dad75bc34f501748d9c8f5fa373a0", + "traceparent": "00-68f4b8813350258f174ee89460f84da3-2f9008d0da791748-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "83d8becd77075e800f43cc277c5be3db", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -980,30 +948,30 @@ "Cache-Control": "no-cache", "Content-Length": "23", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:39:22 GMT", + "Date": "Mon, 20 Feb 2023 02:49:19 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "fd3dad75bc34f501748d9c8f5fa373a0", - "x-ms-correlation-request-id": "b9eb4a85-4a8d-48ee-a177-10f1a17ddbe5", - "x-ms-ratelimit-remaining-subscription-reads": "11980", - "x-ms-request-id": "04d64828-ce2f-4bca-a7f2-56506f932ebe", - "x-ms-routing-request-id": "JAPANEAST:20230201T043923Z:b9eb4a85-4a8d-48ee-a177-10f1a17ddbe5" + "x-ms-client-request-id": "83d8becd77075e800f43cc277c5be3db", + "x-ms-correlation-request-id": "102b84ea-6cff-4a32-8c03-7277bfe9e08e", + "x-ms-ratelimit-remaining-subscription-reads": "11946", + "x-ms-request-id": "cde6f16c-d1a9-4854-9c54-1ddbf536edb1", + "x-ms-routing-request-id": "JAPANEAST:20230220T024920Z:102b84ea-6cff-4a32-8c03-7277bfe9e08e" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp2756/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9540/operationStatuses/0dd4ed9e-0c81-47c6-85cb-87fddd259c1b?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp8989/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3979/operationStatuses/5cdae37d-8f2e-41ce-a248-dc18549e0c34?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-c90f69a31b99274e9a7927842137eb15-4a924d95acaaae41-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "1afb112b06a79be8b26ac56edc5b0805", + "traceparent": "00-68f4b8813350258f174ee89460f84da3-940f02aaa2b68ccd-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "9d780cee27cee95f183a20e2a580ab64", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1012,30 +980,30 @@ "Cache-Control": "no-cache", "Content-Length": "23", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:39:24 GMT", + "Date": "Mon, 20 Feb 2023 02:49:21 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "1afb112b06a79be8b26ac56edc5b0805", - "x-ms-correlation-request-id": "cfe51b62-40ab-4a80-8afa-f80083001bbf", - "x-ms-ratelimit-remaining-subscription-reads": "11979", - "x-ms-request-id": "59b053c3-d72e-4691-9379-841c5e6282ef", - "x-ms-routing-request-id": "JAPANEAST:20230201T043925Z:cfe51b62-40ab-4a80-8afa-f80083001bbf" + "x-ms-client-request-id": "9d780cee27cee95f183a20e2a580ab64", + "x-ms-correlation-request-id": "18ae47ee-62f7-44ea-9059-f7e82085c92d", + "x-ms-ratelimit-remaining-subscription-reads": "11945", + "x-ms-request-id": "4238ade9-5044-42fb-af81-4b98c9ef3e5f", + "x-ms-routing-request-id": "JAPANEAST:20230220T024921Z:18ae47ee-62f7-44ea-9059-f7e82085c92d" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp2756/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9540/operationStatuses/0dd4ed9e-0c81-47c6-85cb-87fddd259c1b?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp8989/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3979/operationStatuses/5cdae37d-8f2e-41ce-a248-dc18549e0c34?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-c90f69a31b99274e9a7927842137eb15-810089fb3b03ae46-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "a23fd70eb182fcfcd4a04c62f0fb124d", + "traceparent": "00-68f4b8813350258f174ee89460f84da3-89d291f314aebea6-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "afed3adb17a1e0ea8a2061f72b3bca16", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1044,30 +1012,30 @@ "Cache-Control": "no-cache", "Content-Length": "23", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:39:26 GMT", + "Date": "Mon, 20 Feb 2023 02:49:22 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "a23fd70eb182fcfcd4a04c62f0fb124d", - "x-ms-correlation-request-id": "af32eb1a-daca-4a9d-bb99-b8a6d680461b", - "x-ms-ratelimit-remaining-subscription-reads": "11978", - "x-ms-request-id": "9a4ad78a-d177-47e3-8dd0-f8313f590871", - "x-ms-routing-request-id": "JAPANEAST:20230201T043926Z:af32eb1a-daca-4a9d-bb99-b8a6d680461b" + "x-ms-client-request-id": "afed3adb17a1e0ea8a2061f72b3bca16", + "x-ms-correlation-request-id": "7312dc91-5a71-45fe-9dcb-def4218e74e9", + "x-ms-ratelimit-remaining-subscription-reads": "11944", + "x-ms-request-id": "f6ae3999-8adc-482c-8d50-b60f30b8a89a", + "x-ms-routing-request-id": "JAPANEAST:20230220T024923Z:7312dc91-5a71-45fe-9dcb-def4218e74e9" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp2756/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9540/operationStatuses/0dd4ed9e-0c81-47c6-85cb-87fddd259c1b?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp8989/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3979/operationStatuses/5cdae37d-8f2e-41ce-a248-dc18549e0c34?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-c90f69a31b99274e9a7927842137eb15-fdaf466926f37542-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "c1dd2e3fc2886f51c4a24bc9f7921918", + "traceparent": "00-68f4b8813350258f174ee89460f84da3-dad70abdb4114908-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "0f30f3cf5ea9a5705eef6acd569eb98e", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1076,30 +1044,30 @@ "Cache-Control": "no-cache", "Content-Length": "23", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:39:28 GMT", + "Date": "Mon, 20 Feb 2023 02:49:24 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "c1dd2e3fc2886f51c4a24bc9f7921918", - "x-ms-correlation-request-id": "87466e4a-5ff1-48dc-8f9d-49624df664aa", - "x-ms-ratelimit-remaining-subscription-reads": "11977", - "x-ms-request-id": "9b444f1a-c2e1-42e0-b80f-f535bb2e0b55", - "x-ms-routing-request-id": "JAPANEAST:20230201T043928Z:87466e4a-5ff1-48dc-8f9d-49624df664aa" + "x-ms-client-request-id": "0f30f3cf5ea9a5705eef6acd569eb98e", + "x-ms-correlation-request-id": "d4289e8a-fa19-46ec-962b-5798a1a8727f", + "x-ms-ratelimit-remaining-subscription-reads": "11943", + "x-ms-request-id": "6e062c54-cfdb-4544-8a46-4040a8d76f98", + "x-ms-routing-request-id": "JAPANEAST:20230220T024924Z:d4289e8a-fa19-46ec-962b-5798a1a8727f" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp2756/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9540/operationStatuses/0dd4ed9e-0c81-47c6-85cb-87fddd259c1b?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp8989/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3979/operationStatuses/5cdae37d-8f2e-41ce-a248-dc18549e0c34?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-c90f69a31b99274e9a7927842137eb15-5963c5d23d29fe49-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "87819785d063791d14ff4607b986aab6", + "traceparent": "00-68f4b8813350258f174ee89460f84da3-af04c4d4da681ca3-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "414b6898346dd739219813aec668bedd", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1108,30 +1076,30 @@ "Cache-Control": "no-cache", "Content-Length": "23", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:39:31 GMT", + "Date": "Mon, 20 Feb 2023 02:49:26 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "87819785d063791d14ff4607b986aab6", - "x-ms-correlation-request-id": "f71174a1-a346-402e-a94f-2fb90196014d", - "x-ms-ratelimit-remaining-subscription-reads": "11976", - "x-ms-request-id": "f8459f42-bd7c-41af-8450-5a7e0798dde8", - "x-ms-routing-request-id": "JAPANEAST:20230201T043931Z:f71174a1-a346-402e-a94f-2fb90196014d" + "x-ms-client-request-id": "414b6898346dd739219813aec668bedd", + "x-ms-correlation-request-id": "ad8af61f-62b2-4210-84a8-a5742ef95391", + "x-ms-ratelimit-remaining-subscription-reads": "11942", + "x-ms-request-id": "b1cd6515-3efd-40ea-b576-c9d091697d06", + "x-ms-routing-request-id": "JAPANEAST:20230220T024927Z:ad8af61f-62b2-4210-84a8-a5742ef95391" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp2756/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9540/operationStatuses/0dd4ed9e-0c81-47c6-85cb-87fddd259c1b?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp8989/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3979/operationStatuses/5cdae37d-8f2e-41ce-a248-dc18549e0c34?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-c90f69a31b99274e9a7927842137eb15-275e3be1b311e64e-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "ad2e7858467e4c7d85d0dddf66330541", + "traceparent": "00-68f4b8813350258f174ee89460f84da3-c4737b3d8648f962-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "b1120a6f9b4f7dbac94750b2ac1c89eb", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1140,30 +1108,30 @@ "Cache-Control": "no-cache", "Content-Length": "23", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:39:35 GMT", + "Date": "Mon, 20 Feb 2023 02:49:31 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "ad2e7858467e4c7d85d0dddf66330541", - "x-ms-correlation-request-id": "284a5a40-e6dc-4097-88eb-91c5d4ad1676", - "x-ms-ratelimit-remaining-subscription-reads": "11975", - "x-ms-request-id": "9582b517-fb9a-4e7d-aca9-94bd027ffb92", - "x-ms-routing-request-id": "JAPANEAST:20230201T043935Z:284a5a40-e6dc-4097-88eb-91c5d4ad1676" + "x-ms-client-request-id": "b1120a6f9b4f7dbac94750b2ac1c89eb", + "x-ms-correlation-request-id": "73ea7e99-2a77-4106-9421-e2d2eab768f1", + "x-ms-ratelimit-remaining-subscription-reads": "11941", + "x-ms-request-id": "fb34bb53-18f0-4588-9e21-1e5873a473c0", + "x-ms-routing-request-id": "JAPANEAST:20230220T024931Z:73ea7e99-2a77-4106-9421-e2d2eab768f1" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp2756/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9540/operationStatuses/0dd4ed9e-0c81-47c6-85cb-87fddd259c1b?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp8989/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3979/operationStatuses/5cdae37d-8f2e-41ce-a248-dc18549e0c34?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-c90f69a31b99274e9a7927842137eb15-1b22942b31d2224d-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "59dc33868a7a6fe91063ad887b4ab53e", + "traceparent": "00-68f4b8813350258f174ee89460f84da3-100bef8ff4c4442b-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "c25fd26688f09ba8ba59ed104bc2dff6", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1172,30 +1140,30 @@ "Cache-Control": "no-cache", "Content-Length": "23", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:39:43 GMT", + "Date": "Mon, 20 Feb 2023 02:49:39 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "59dc33868a7a6fe91063ad887b4ab53e", - "x-ms-correlation-request-id": "9520958f-a3b0-4e75-ac80-2ca98c596dcb", - "x-ms-ratelimit-remaining-subscription-reads": "11974", - "x-ms-request-id": "7f752b65-50cb-480b-9943-9ffde32fad5c", - "x-ms-routing-request-id": "JAPANEAST:20230201T043943Z:9520958f-a3b0-4e75-ac80-2ca98c596dcb" + "x-ms-client-request-id": "c25fd26688f09ba8ba59ed104bc2dff6", + "x-ms-correlation-request-id": "d719e92d-8606-48b4-b93e-c18afe371736", + "x-ms-ratelimit-remaining-subscription-reads": "11940", + "x-ms-request-id": "ded5d62e-cc0c-4a0d-8a0f-1c7fb881d242", + "x-ms-routing-request-id": "JAPANEAST:20230220T024939Z:d719e92d-8606-48b4-b93e-c18afe371736" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp2756/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9540/operationStatuses/0dd4ed9e-0c81-47c6-85cb-87fddd259c1b?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp8989/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3979/operationStatuses/5cdae37d-8f2e-41ce-a248-dc18549e0c34?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-c90f69a31b99274e9a7927842137eb15-335e5fdee740ef47-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "7f7194f76b633f9a19340193f23d12e0", + "traceparent": "00-68f4b8813350258f174ee89460f84da3-da3e3e807d639ce3-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "4c5d8d31078cfc3eadcd7826e4862a05", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1204,64 +1172,62 @@ "Cache-Control": "no-cache", "Content-Length": "23", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:40:00 GMT", + "Date": "Mon, 20 Feb 2023 02:49:55 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "7f7194f76b633f9a19340193f23d12e0", - "x-ms-correlation-request-id": "4dcf79e7-f66f-4117-a241-d7148fff4910", - "x-ms-ratelimit-remaining-subscription-reads": "11973", - "x-ms-request-id": "df2987bf-d7c9-4420-83de-55026c6d752f", - "x-ms-routing-request-id": "JAPANEAST:20230201T044000Z:4dcf79e7-f66f-4117-a241-d7148fff4910" + "x-ms-client-request-id": "4c5d8d31078cfc3eadcd7826e4862a05", + "x-ms-correlation-request-id": "4c94284f-dd06-424a-9f01-ab736887ddf2", + "x-ms-ratelimit-remaining-subscription-reads": "11939", + "x-ms-request-id": "6045d114-e8fa-457e-becf-3c20c6c0738a", + "x-ms-routing-request-id": "JAPANEAST:20230220T024956Z:4c94284f-dd06-424a-9f01-ab736887ddf2" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp2756/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9540/operationStatuses/0dd4ed9e-0c81-47c6-85cb-87fddd259c1b?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp8989/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3979/operationStatuses/5cdae37d-8f2e-41ce-a248-dc18549e0c34?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "Connection": "close", - "traceparent": "00-c90f69a31b99274e9a7927842137eb15-94efea3287aa024b-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "858004f950a9cd3b8ebf9d1a98f4d03b", + "traceparent": "00-68f4b8813350258f174ee89460f84da3-19586ba2422cba38-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "f447270ffb09e6ed6177f6f6aeaa3206", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Connection": "close", "Content-Length": "22", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:40:32 GMT", + "Date": "Mon, 20 Feb 2023 02:50:28 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "858004f950a9cd3b8ebf9d1a98f4d03b", - "x-ms-correlation-request-id": "a5983618-9d3f-4f70-a16d-b38c89defa36", - "x-ms-ratelimit-remaining-subscription-reads": "11972", - "x-ms-request-id": "dc573a4c-9a30-4edd-a4e7-6cece18c7b95", - "x-ms-routing-request-id": "JAPANEAST:20230201T044033Z:a5983618-9d3f-4f70-a16d-b38c89defa36" + "x-ms-client-request-id": "f447270ffb09e6ed6177f6f6aeaa3206", + "x-ms-correlation-request-id": "b5f2795f-4e63-4899-a341-662a31fc6256", + "x-ms-ratelimit-remaining-subscription-reads": "11938", + "x-ms-request-id": "142472d5-75d8-479b-8763-0e9b555708d2", + "x-ms-routing-request-id": "JAPANEAST:20230220T025028Z:b5f2795f-4e63-4899-a341-662a31fc6256" }, "ResponseBody": { "status": "Succeeded" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp2756/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9540?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp8989/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3979?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-c90f69a31b99274e9a7927842137eb15-b772c183c6929e44-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "d1e89f1a86c21ade999d3f4688557cd2", + "traceparent": "00-68f4b8813350258f174ee89460f84da3-99c0423c10e10fa1-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "1f8159683dbf5f5f936215221082b633", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1270,57 +1236,57 @@ "Cache-Control": "no-cache", "Content-Length": "1557", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:40:34 GMT", + "Date": "Mon, 20 Feb 2023 02:50:29 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "d1e89f1a86c21ade999d3f4688557cd2", - "x-ms-correlation-request-id": "d0bfa0c3-05be-41e6-8c26-9ef2a59a46aa", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "2e12854c-2873-4009-a42f-04112601972b", - "x-ms-routing-request-id": "JAPANEAST:20230201T044034Z:d0bfa0c3-05be-41e6-8c26-9ef2a59a46aa" + "x-ms-client-request-id": "1f8159683dbf5f5f936215221082b633", + "x-ms-correlation-request-id": "3a07d5d8-0a95-4e34-8633-ad02eb2b1401", + "x-ms-ratelimit-remaining-subscription-reads": "11937", + "x-ms-request-id": "96a6464b-8f8c-4649-9694-cdb0693cf323", + "x-ms-routing-request-id": "JAPANEAST:20230220T025029Z:3a07d5d8-0a95-4e34-8633-ad02eb2b1401" }, "ResponseBody": { "properties": { "defaultDataLakeStorage": { "createManagedPrivateEndpoint": false, - "accountUrl": "https://synapsesdkstorage4847.dfs.core.windows.net/", - "filesystem": "synapsesdkfilesys6880" + "accountUrl": "https://synapsesdkstorage7589.dfs.core.windows.net/", + "filesystem": "synapsesdkfilesys7099" }, "encryption": { "doubleEncryptionEnabled": false }, "provisioningState": "Succeeded", "connectivityEndpoints": { - "web": "https://web.azuresynapse.net?workspace=%2fsubscriptions%2f051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3%2fresourceGroups%2fsynapsesdkrp2756%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fsynapsesdkworkspace9540", - "dev": "https://synapsesdkworkspace9540.dev.azuresynapse.net", - "sqlOnDemand": "synapsesdkworkspace9540-ondemand.sql.azuresynapse.net", - "sql": "synapsesdkworkspace9540.sql.azuresynapse.net" + "web": "https://web.azuresynapse.net?workspace=%2fsubscriptions%2f051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3%2fresourceGroups%2fsynapsesdkrp8989%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fsynapsesdkworkspace3979", + "dev": "https://synapsesdkworkspace3979.dev.azuresynapse.net", + "sqlOnDemand": "synapsesdkworkspace3979-ondemand.sql.azuresynapse.net", + "sql": "synapsesdkworkspace3979.sql.azuresynapse.net" }, - "managedResourceGroupName": "synapseworkspace-managedrg-93e0bf97-db8d-4846-96f3-fc7571c79dc5", - "sqlAdministratorLogin": "sshuser7629", + "managedResourceGroupName": "synapseworkspace-managedrg-1221e6f9-2cbe-4436-85a5-f2cb1317b371", + "sqlAdministratorLogin": "sshuser7954", "privateEndpointConnections": [], - "workspaceUID": "087351e3-719a-4f9b-8863-91cf1681ae72", + "workspaceUID": "7faa9284-a884-473b-a6c0-7e257feaa8cf", "extraProperties": { "WorkspaceType": "Normal", "IsScopeEnabled": false }, "publicNetworkAccess": "Enabled", "cspWorkspaceAdminProperties": { - "initialWorkspaceAdminObjectId": "1c263ed5-a67e-400e-a599-0479e0ceb82f" + "initialWorkspaceAdminObjectId": "5adcf4d8-4923-420e-ab0b-f6e5fc718b42" }, "trustedServiceBypassEnabled": false }, "type": "Microsoft.Synapse/workspaces", - "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp2756/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9540", + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp8989/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3979", "location": "eastus2", - "name": "synapsesdkworkspace9540", + "name": "synapsesdkworkspace3979", "identity": { "type": "SystemAssigned", "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", - "principalId": "fb5ebe63-e567-4ec7-9f51-6b72a217d757" + "principalId": "5cd68555-5e85-4ed0-982e-4ed6b7108f0a" }, "tags": { "TestTag": "TestUpdate" @@ -1328,13 +1294,13 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp2756/providers/Microsoft.Synapse/workspaces?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp8989/providers/Microsoft.Synapse/workspaces?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "User-Agent": "azsdk-net-ResourceManager.Synapse/1.1.0-alpha.20230131.1 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "778fcd502fcaa69559a3f0a3ce7fa625", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "2300e82fea7b35eda076ea1511484d02", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1343,17 +1309,17 @@ "Cache-Control": "no-cache", "Content-Length": "1569", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:40:35 GMT", + "Date": "Mon, 20 Feb 2023 02:50:29 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "778fcd502fcaa69559a3f0a3ce7fa625", - "x-ms-correlation-request-id": "7305bf14-e614-4f06-a638-968ec70d16be", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "e339c143-e074-428d-a7c8-12df8c513c99", - "x-ms-routing-request-id": "JAPANEAST:20230201T044035Z:7305bf14-e614-4f06-a638-968ec70d16be" + "x-ms-client-request-id": "2300e82fea7b35eda076ea1511484d02", + "x-ms-correlation-request-id": "8062c5af-c8c9-418f-978b-0a2a46a0b40b", + "x-ms-ratelimit-remaining-subscription-reads": "11936", + "x-ms-request-id": "c427b5e0-b495-4e14-b1d0-dab304578b37", + "x-ms-routing-request-id": "JAPANEAST:20230220T025029Z:8062c5af-c8c9-418f-978b-0a2a46a0b40b" }, "ResponseBody": { "value": [ @@ -1361,41 +1327,41 @@ "properties": { "defaultDataLakeStorage": { "createManagedPrivateEndpoint": false, - "accountUrl": "https://synapsesdkstorage4847.dfs.core.windows.net/", - "filesystem": "synapsesdkfilesys6880" + "accountUrl": "https://synapsesdkstorage7589.dfs.core.windows.net/", + "filesystem": "synapsesdkfilesys7099" }, "encryption": { "doubleEncryptionEnabled": false }, "provisioningState": "Succeeded", "connectivityEndpoints": { - "web": "https://web.azuresynapse.net?workspace=%2fsubscriptions%2f051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3%2fresourceGroups%2fsynapsesdkrp2756%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fsynapsesdkworkspace9540", - "dev": "https://synapsesdkworkspace9540.dev.azuresynapse.net", - "sqlOnDemand": "synapsesdkworkspace9540-ondemand.sql.azuresynapse.net", - "sql": "synapsesdkworkspace9540.sql.azuresynapse.net" + "web": "https://web.azuresynapse.net?workspace=%2fsubscriptions%2f051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3%2fresourceGroups%2fsynapsesdkrp8989%2fproviders%2fMicrosoft.Synapse%2fworkspaces%2fsynapsesdkworkspace3979", + "dev": "https://synapsesdkworkspace3979.dev.azuresynapse.net", + "sqlOnDemand": "synapsesdkworkspace3979-ondemand.sql.azuresynapse.net", + "sql": "synapsesdkworkspace3979.sql.azuresynapse.net" }, - "managedResourceGroupName": "synapseworkspace-managedrg-93e0bf97-db8d-4846-96f3-fc7571c79dc5", - "sqlAdministratorLogin": "sshuser7629", + "managedResourceGroupName": "synapseworkspace-managedrg-1221e6f9-2cbe-4436-85a5-f2cb1317b371", + "sqlAdministratorLogin": "sshuser7954", "privateEndpointConnections": [], - "workspaceUID": "087351e3-719a-4f9b-8863-91cf1681ae72", + "workspaceUID": "7faa9284-a884-473b-a6c0-7e257feaa8cf", "extraProperties": { "WorkspaceType": "Normal", "IsScopeEnabled": false }, "publicNetworkAccess": "Enabled", "cspWorkspaceAdminProperties": { - "initialWorkspaceAdminObjectId": "1c263ed5-a67e-400e-a599-0479e0ceb82f" + "initialWorkspaceAdminObjectId": "5adcf4d8-4923-420e-ab0b-f6e5fc718b42" }, "trustedServiceBypassEnabled": false }, "type": "Microsoft.Synapse/workspaces", - "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp2756/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9540", + "id": "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp8989/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3979", "location": "eastus2", - "name": "synapsesdkworkspace9540", + "name": "synapsesdkworkspace3979", "identity": { "type": "SystemAssigned", "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", - "principalId": "fb5ebe63-e567-4ec7-9f51-6b72a217d757" + "principalId": "5cd68555-5e85-4ed0-982e-4ed6b7108f0a" }, "tags": { "TestTag": "TestUpdate" @@ -1405,14 +1371,14 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp2756/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace9540?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp8989/providers/Microsoft.Synapse/workspaces/synapsesdkworkspace3979?api-version=2021-06-01", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-c0988d88f20e4349a3112d580322b393-7ef99e2c438a4d46-00", - "User-Agent": "azsdk-net-ResourceManager.Synapse/1.1.0-alpha.20230131.1 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "5379c6634055731d2665ec0b10f44438", + "traceparent": "00-76d944759047cf72123da6929a06d224-cc22dc9aecffe5db-00", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "8abd719b0b05d245c7e860a6e6cbd6df", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1420,32 +1386,32 @@ "ResponseHeaders": { "Access-Control-Allow-Headers": "Location", "Access-Control-Expose-Headers": "Location", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/operationStatuses/d8e33fb3-403a-4b6c-b73c-3cf42c0b5bdd?api-version=2021-06-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/operationStatuses/868e7114-7ff5-4715-9c63-5d7979cade28?api-version=2021-06-01", "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Wed, 01 Feb 2023 04:40:36 GMT", + "Date": "Mon, 20 Feb 2023 02:50:30 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/operationResults/d8e33fb3-403a-4b6c-b73c-3cf42c0b5bdd?api-version=2021-06-01", + "Location": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/operationResults/868e7114-7ff5-4715-9c63-5d7979cade28?api-version=2021-06-01", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "5379c6634055731d2665ec0b10f44438", - "x-ms-correlation-request-id": "6b984f22-e7aa-49a8-a65c-4b0fc976e5e1", - "x-ms-ratelimit-remaining-subscription-deletes": "14999", - "x-ms-request-id": "e7717d3a-8bf6-4219-90f9-7fc3a8e02542", - "x-ms-routing-request-id": "JAPANEAST:20230201T044037Z:6b984f22-e7aa-49a8-a65c-4b0fc976e5e1" + "x-ms-client-request-id": "8abd719b0b05d245c7e860a6e6cbd6df", + "x-ms-correlation-request-id": "53a53e67-2f84-409e-a32a-37120dcccbfd", + "x-ms-ratelimit-remaining-subscription-deletes": "14998", + "x-ms-request-id": "1f10931f-0a9f-4b0f-ab79-63eaa5a6e400", + "x-ms-routing-request-id": "JAPANEAST:20230220T025030Z:53a53e67-2f84-409e-a32a-37120dcccbfd" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/operationStatuses/d8e33fb3-403a-4b6c-b73c-3cf42c0b5bdd?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/operationStatuses/868e7114-7ff5-4715-9c63-5d7979cade28?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-c0988d88f20e4349a3112d580322b393-540bd6df4484534f-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "c1e21af728dc107caf1b516443899564", + "traceparent": "00-76d944759047cf72123da6929a06d224-d0627aac6d95d476-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "9f8612142bc5242ea22e5b938a474fd5", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1454,30 +1420,30 @@ "Cache-Control": "no-cache", "Content-Length": "23", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:40:37 GMT", + "Date": "Mon, 20 Feb 2023 02:50:30 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "c1e21af728dc107caf1b516443899564", - "x-ms-correlation-request-id": "42d007d8-61a6-4d4c-9670-dae6c95782d3", - "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-request-id": "743b9e83-4f06-4e2f-9b29-572766ba38a9", - "x-ms-routing-request-id": "JAPANEAST:20230201T044037Z:42d007d8-61a6-4d4c-9670-dae6c95782d3" + "x-ms-client-request-id": "9f8612142bc5242ea22e5b938a474fd5", + "x-ms-correlation-request-id": "4f1976ad-c926-44ab-a41a-e3f3db72a009", + "x-ms-ratelimit-remaining-subscription-reads": "11935", + "x-ms-request-id": "a32ca528-82e6-479c-90ee-736b78477603", + "x-ms-routing-request-id": "JAPANEAST:20230220T025030Z:4f1976ad-c926-44ab-a41a-e3f3db72a009" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/operationStatuses/d8e33fb3-403a-4b6c-b73c-3cf42c0b5bdd?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/operationStatuses/868e7114-7ff5-4715-9c63-5d7979cade28?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-c0988d88f20e4349a3112d580322b393-20a9025c7223424e-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "0260b85edab50ac0558e4914c8feddeb", + "traceparent": "00-76d944759047cf72123da6929a06d224-6e4c750d5661df1b-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "4e540ba088828d58e63f1eba8cfd7f7d", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1486,30 +1452,30 @@ "Cache-Control": "no-cache", "Content-Length": "23", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:40:38 GMT", + "Date": "Mon, 20 Feb 2023 02:50:31 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "0260b85edab50ac0558e4914c8feddeb", - "x-ms-correlation-request-id": "febd7191-8214-4463-a844-609afbf2f15f", - "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-request-id": "d83ebdae-98e7-4a4c-9f82-ef52045e1f7b", - "x-ms-routing-request-id": "JAPANEAST:20230201T044038Z:febd7191-8214-4463-a844-609afbf2f15f" + "x-ms-client-request-id": "4e540ba088828d58e63f1eba8cfd7f7d", + "x-ms-correlation-request-id": "6acbdae4-957e-42ce-a944-159f8b48555f", + "x-ms-ratelimit-remaining-subscription-reads": "11934", + "x-ms-request-id": "050e7192-d637-4601-bbb2-54a4001f5777", + "x-ms-routing-request-id": "JAPANEAST:20230220T025031Z:6acbdae4-957e-42ce-a944-159f8b48555f" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/operationStatuses/d8e33fb3-403a-4b6c-b73c-3cf42c0b5bdd?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/operationStatuses/868e7114-7ff5-4715-9c63-5d7979cade28?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-c0988d88f20e4349a3112d580322b393-ab3b8365cabe3c45-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "f614d21882121b5b4eb91c49070ca680", + "traceparent": "00-76d944759047cf72123da6929a06d224-2211cf6262c09d24-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "d391169a3744951a94a2227ab2f7f324", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1518,30 +1484,30 @@ "Cache-Control": "no-cache", "Content-Length": "23", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:40:39 GMT", + "Date": "Mon, 20 Feb 2023 02:50:32 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "f614d21882121b5b4eb91c49070ca680", - "x-ms-correlation-request-id": "c84a3a20-d318-4c39-ae72-391c55d6ff3d", - "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "19b8379e-b6a7-438f-bc09-da756f1c9901", - "x-ms-routing-request-id": "JAPANEAST:20230201T044039Z:c84a3a20-d318-4c39-ae72-391c55d6ff3d" + "x-ms-client-request-id": "d391169a3744951a94a2227ab2f7f324", + "x-ms-correlation-request-id": "7eceb2f5-95fc-42b2-bfb1-ef0ee687f65a", + "x-ms-ratelimit-remaining-subscription-reads": "11933", + "x-ms-request-id": "c2df0e40-d034-4b6d-9ceb-e1e50feee1c8", + "x-ms-routing-request-id": "JAPANEAST:20230220T025033Z:7eceb2f5-95fc-42b2-bfb1-ef0ee687f65a" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/operationStatuses/d8e33fb3-403a-4b6c-b73c-3cf42c0b5bdd?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/operationStatuses/868e7114-7ff5-4715-9c63-5d7979cade28?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-c0988d88f20e4349a3112d580322b393-cd995fd1ab7b8947-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "ddc014ab49da1c645ad86c4ddf6848b0", + "traceparent": "00-76d944759047cf72123da6929a06d224-603e6d0c099b304c-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "47a7a9fbfff68cc8b9f8b8850c7498a5", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1550,30 +1516,30 @@ "Cache-Control": "no-cache", "Content-Length": "23", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:40:40 GMT", + "Date": "Mon, 20 Feb 2023 02:50:34 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "ddc014ab49da1c645ad86c4ddf6848b0", - "x-ms-correlation-request-id": "3d9c5e17-2905-41a4-89b3-d9a2d34e82b4", - "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "0c0452cf-930f-4548-816d-0e7075a9427e", - "x-ms-routing-request-id": "JAPANEAST:20230201T044041Z:3d9c5e17-2905-41a4-89b3-d9a2d34e82b4" + "x-ms-client-request-id": "47a7a9fbfff68cc8b9f8b8850c7498a5", + "x-ms-correlation-request-id": "00249fa9-73e8-4c45-b8fe-f5f9a3e67f4b", + "x-ms-ratelimit-remaining-subscription-reads": "11932", + "x-ms-request-id": "328f7b71-4afe-4d72-b11a-8bb8906ca39a", + "x-ms-routing-request-id": "JAPANEAST:20230220T025034Z:00249fa9-73e8-4c45-b8fe-f5f9a3e67f4b" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/operationStatuses/d8e33fb3-403a-4b6c-b73c-3cf42c0b5bdd?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/operationStatuses/868e7114-7ff5-4715-9c63-5d7979cade28?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-c0988d88f20e4349a3112d580322b393-3a547b67119bdb43-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "714b653d9f74db525c44b4fbbe760349", + "traceparent": "00-76d944759047cf72123da6929a06d224-50f6689b6efb5b7b-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "73f9deaf7cb66990f1bfb9e065dddaef", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1582,30 +1548,30 @@ "Cache-Control": "no-cache", "Content-Length": "23", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:40:43 GMT", + "Date": "Mon, 20 Feb 2023 02:50:36 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "714b653d9f74db525c44b4fbbe760349", - "x-ms-correlation-request-id": "9ed36d2b-f01a-45f5-b672-cf17ec5912bf", - "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-request-id": "f51b0daf-37a5-4187-87c3-5692109b3e0f", - "x-ms-routing-request-id": "JAPANEAST:20230201T044043Z:9ed36d2b-f01a-45f5-b672-cf17ec5912bf" + "x-ms-client-request-id": "73f9deaf7cb66990f1bfb9e065dddaef", + "x-ms-correlation-request-id": "9dce7a0f-2df9-406b-bd2a-a7f63fc1e342", + "x-ms-ratelimit-remaining-subscription-reads": "11931", + "x-ms-request-id": "087e4c02-e615-4fe8-bfe9-f132dcb5ef88", + "x-ms-routing-request-id": "JAPANEAST:20230220T025036Z:9dce7a0f-2df9-406b-bd2a-a7f63fc1e342" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/operationStatuses/d8e33fb3-403a-4b6c-b73c-3cf42c0b5bdd?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/operationStatuses/868e7114-7ff5-4715-9c63-5d7979cade28?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-c0988d88f20e4349a3112d580322b393-6466001ea4489248-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "b369c8e8003ece116df89c39160e3be6", + "traceparent": "00-76d944759047cf72123da6929a06d224-e95d43dee3088fa7-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "e2befa4b38569a874e04194b7e94881f", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1614,30 +1580,30 @@ "Cache-Control": "no-cache", "Content-Length": "23", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:40:47 GMT", + "Date": "Mon, 20 Feb 2023 02:50:40 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "b369c8e8003ece116df89c39160e3be6", - "x-ms-correlation-request-id": "8c371b7c-ad03-4869-b7fc-e1ae7e3c7ec3", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "0f1d6765-a5f7-49cc-b697-c87dfb28c3aa", - "x-ms-routing-request-id": "JAPANEAST:20230201T044047Z:8c371b7c-ad03-4869-b7fc-e1ae7e3c7ec3" + "x-ms-client-request-id": "e2befa4b38569a874e04194b7e94881f", + "x-ms-correlation-request-id": "ae208fc3-1a80-44eb-a653-3bbd3c10b753", + "x-ms-ratelimit-remaining-subscription-reads": "11930", + "x-ms-request-id": "10cd5895-31bc-4b97-a349-e3964021c398", + "x-ms-routing-request-id": "JAPANEAST:20230220T025040Z:ae208fc3-1a80-44eb-a653-3bbd3c10b753" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/operationStatuses/d8e33fb3-403a-4b6c-b73c-3cf42c0b5bdd?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/operationStatuses/868e7114-7ff5-4715-9c63-5d7979cade28?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-c0988d88f20e4349a3112d580322b393-2605dadc16533a41-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "a20b6c7135c00b0cc1e4819595685ee3", + "traceparent": "00-76d944759047cf72123da6929a06d224-9e0e3ac1afa15f86-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "d4cb7d0980fd7f6e193e563645e826db", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1646,30 +1612,30 @@ "Cache-Control": "no-cache", "Content-Length": "23", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:40:55 GMT", + "Date": "Mon, 20 Feb 2023 02:50:48 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "a20b6c7135c00b0cc1e4819595685ee3", - "x-ms-correlation-request-id": "727eb90d-2f91-4265-98a9-f5c33a35e323", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "ea889d3b-b1a7-41a0-8c99-1171a74488c7", - "x-ms-routing-request-id": "JAPANEAST:20230201T044055Z:727eb90d-2f91-4265-98a9-f5c33a35e323" + "x-ms-client-request-id": "d4cb7d0980fd7f6e193e563645e826db", + "x-ms-correlation-request-id": "736a2e2b-0150-4c9c-be85-869e75e0c39e", + "x-ms-ratelimit-remaining-subscription-reads": "11929", + "x-ms-request-id": "be1e2444-466f-4f61-ade8-547d5344dbc3", + "x-ms-routing-request-id": "JAPANEAST:20230220T025049Z:736a2e2b-0150-4c9c-be85-869e75e0c39e" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/operationStatuses/d8e33fb3-403a-4b6c-b73c-3cf42c0b5bdd?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/operationStatuses/868e7114-7ff5-4715-9c63-5d7979cade28?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-c0988d88f20e4349a3112d580322b393-0af539f2da93e348-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "176522d594fe3d71547c037c0318c54e", + "traceparent": "00-76d944759047cf72123da6929a06d224-f63d3dd31da209e5-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "1239c91eb5b6774e575f25b16244ea5c", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1678,30 +1644,30 @@ "Cache-Control": "no-cache", "Content-Length": "23", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:41:11 GMT", + "Date": "Mon, 20 Feb 2023 02:51:04 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "176522d594fe3d71547c037c0318c54e", - "x-ms-correlation-request-id": "9a7f96eb-dea7-426d-a24d-6989d61ad3e8", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "94c032a4-b7db-4810-88af-310b328575b1", - "x-ms-routing-request-id": "JAPANEAST:20230201T044112Z:9a7f96eb-dea7-426d-a24d-6989d61ad3e8" + "x-ms-client-request-id": "1239c91eb5b6774e575f25b16244ea5c", + "x-ms-correlation-request-id": "227f3ef4-124a-4eed-a07f-b23e50b7df3b", + "x-ms-ratelimit-remaining-subscription-reads": "11928", + "x-ms-request-id": "1cb89624-9811-435a-9f8f-d2cc06a6474b", + "x-ms-routing-request-id": "JAPANEAST:20230220T025105Z:227f3ef4-124a-4eed-a07f-b23e50b7df3b" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/operationStatuses/d8e33fb3-403a-4b6c-b73c-3cf42c0b5bdd?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/operationStatuses/868e7114-7ff5-4715-9c63-5d7979cade28?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-c0988d88f20e4349a3112d580322b393-153faeef04738f4a-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "5189cd09606ab388bc5df15a7f7b3904", + "traceparent": "00-76d944759047cf72123da6929a06d224-21765bea3a608c81-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "e7d69a370612cbf18b3ec917e1505466", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1710,30 +1676,30 @@ "Cache-Control": "no-cache", "Content-Length": "23", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:41:43 GMT", + "Date": "Mon, 20 Feb 2023 02:51:37 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "5189cd09606ab388bc5df15a7f7b3904", - "x-ms-correlation-request-id": "1897425a-b6a6-48b9-b6e3-b4a591d8b588", - "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "4e0c346d-1a1b-48b0-b817-c228ce566716", - "x-ms-routing-request-id": "JAPANEAST:20230201T044144Z:1897425a-b6a6-48b9-b6e3-b4a591d8b588" + "x-ms-client-request-id": "e7d69a370612cbf18b3ec917e1505466", + "x-ms-correlation-request-id": "167257f2-e99b-4035-a870-d1978da21eec", + "x-ms-ratelimit-remaining-subscription-reads": "11927", + "x-ms-request-id": "2c4e6291-5962-4196-826e-6c93d411d767", + "x-ms-routing-request-id": "JAPANEAST:20230220T025137Z:167257f2-e99b-4035-a870-d1978da21eec" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/operationStatuses/d8e33fb3-403a-4b6c-b73c-3cf42c0b5bdd?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/providers/Microsoft.Synapse/locations/eastus2/operationStatuses/868e7114-7ff5-4715-9c63-5d7979cade28?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-c0988d88f20e4349a3112d580322b393-9092f85fa6df964a-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "f364b89a24a8dde7fbce4d43318f08a9", + "traceparent": "00-76d944759047cf72123da6929a06d224-84a8e4a3efd73318-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "b52d3ddd755a54692e547c9e5bbc1cd4", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1742,30 +1708,30 @@ "Cache-Control": "no-cache", "Content-Length": "22", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:42:16 GMT", + "Date": "Mon, 20 Feb 2023 02:52:09 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "f364b89a24a8dde7fbce4d43318f08a9", - "x-ms-correlation-request-id": "57714a8f-8161-4657-b370-1cef6af7d8f7", - "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "4ceddec1-c9c6-4084-9edc-519654aa2b33", - "x-ms-routing-request-id": "JAPANEAST:20230201T044216Z:57714a8f-8161-4657-b370-1cef6af7d8f7" + "x-ms-client-request-id": "b52d3ddd755a54692e547c9e5bbc1cd4", + "x-ms-correlation-request-id": "49b5cc8c-ad8f-42c8-b98f-bf1de2446010", + "x-ms-ratelimit-remaining-subscription-reads": "11926", + "x-ms-request-id": "2b2e2a16-9ea9-47e4-9bad-87940b839309", + "x-ms-routing-request-id": "JAPANEAST:20230220T025209Z:49b5cc8c-ad8f-42c8-b98f-bf1de2446010" }, "ResponseBody": { "status": "Succeeded" } }, { - "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp2756/providers/Microsoft.Synapse/workspaces?api-version=2021-06-01", + "RequestUri": "https://management.azure.com/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/synapsesdkrp8989/providers/Microsoft.Synapse/workspaces?api-version=2021-06-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "User-Agent": "azsdk-net-ResourceManager.Synapse/1.1.0-alpha.20230131.1 (.NET Framework 4.8.9105.0; Microsoft Windows 10.0.22621 )", - "x-ms-client-request-id": "c78c321f0cde74799ab25ba1a217bed8", + "User-Agent": "azsdk-net-ResourceManager.Synapse/1.2.0-alpha.20230217.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "abfff9533f1217c9d76e8677ec379506", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1774,15 +1740,15 @@ "Cache-Control": "no-cache", "Content-Length": "12", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 01 Feb 2023 04:42:16 GMT", + "Date": "Mon, 20 Feb 2023 02:52:09 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "68749f58-55e6-49b5-9f7b-5f6706438e02", - "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-request-id": "68749f58-55e6-49b5-9f7b-5f6706438e02", - "x-ms-routing-request-id": "JAPANEAST:20230201T044216Z:68749f58-55e6-49b5-9f7b-5f6706438e02" + "x-ms-correlation-request-id": "aa91eaa4-ba23-4fd8-9942-b7402a15bb21", + "x-ms-ratelimit-remaining-subscription-reads": "11925", + "x-ms-request-id": "aa91eaa4-ba23-4fd8-9942-b7402a15bb21", + "x-ms-routing-request-id": "JAPANEAST:20230220T025210Z:aa91eaa4-ba23-4fd8-9942-b7402a15bb21" }, "ResponseBody": { "value": [] @@ -1790,8 +1756,8 @@ } ], "Variables": { - "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com", - "RandomSeed": "13092465", + "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com/", + "RandomSeed": "605095358", "RESOURCE_MANAGER_URL": null, "SUBSCRIPTION_ID": "051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3" } diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/tests/SynapseManagementTestBase.cs b/sdk/synapse/Azure.ResourceManager.Synapse/tests/SynapseManagementTestBase.cs index ec2a48e64ca11..849e0d530d38f 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/tests/SynapseManagementTestBase.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/tests/SynapseManagementTestBase.cs @@ -3,6 +3,7 @@ using Azure.Core; using Azure.Core.TestFramework; +using Azure.ResourceManager.Models; using Azure.ResourceManager.Resources; using Azure.ResourceManager.Storage; using Azure.ResourceManager.Storage.Models; @@ -12,6 +13,7 @@ using NUnit.Framework; using System; using System.Linq; +using System.Net; using System.Threading.Tasks; namespace Azure.ResourceManager.Synapse.Tests @@ -22,6 +24,7 @@ public class SynapseManagementTestBase : ManagementRecordedTestBase CreateResourceGroup(string resourceGroupName, AzureLocation location) { ArmOperation operation = await DefaultSubscription.GetResourceGroups().CreateOrUpdateAsync( @@ -80,6 +89,19 @@ protected async Task CreateStorageAccount(string resourceGroupName, stri return accessKey; } + /// + /// create Synapse workspace Resource + /// + /// + protected async Task CreateWorkspaceResource() + { + string workspaceName = Recording.GenerateAssetName("synapsesdkworkspace"); + var createWorkspaceParams = CommonData.PrepareWorkspaceCreateParams(); + SynapseWorkspaceCollection workspaceCollection = ResourceGroup.GetSynapseWorkspaces(); + var workspace = (await workspaceCollection.CreateOrUpdateAsync(WaitUntil.Completed, workspaceName, createWorkspaceParams)).Value; + return workspace; + } + /// /// Throw expception if the given condition is satisfied /// @@ -111,10 +133,10 @@ private CommonTestFixture InitializeCommonTestFixture() AutoScaleMinNodeCount = 3, AutoScaleMaxNodeCount = 6, AutoPauseDelayInMinute = 15, - StartIpAddress = "0.0.0.0", - EndIpAddress = "255.255.255.255", - UpdatedStartIpAddress = "10.0.0.0", - UpdatedEndIpAddress = "255.0.0.0", + StartIpAddress = IPAddress.Parse("0.0.0.0"), + EndIpAddress = IPAddress.Parse("255.255.255.255"), + UpdatedStartIpAddress = IPAddress.Parse("10.0.0.0"), + UpdatedEndIpAddress = IPAddress.Parse("255.0.0.0"), KustoSku = new SynapseDataSourceSku(SynapseSkuName.StorageOptimized, KustoPoolSkuSize.Medium), UpdatedKustoSku = new SynapseDataSourceSku(SynapseSkuName.StorageOptimized, KustoPoolSkuSize.Large), SoftDeletePeriod = TimeSpan.FromDays(4), From 9eaac743e941d819fe87eba5bb50da56c8fa35fe Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 20 Feb 2023 04:03:06 -0500 Subject: [PATCH 05/72] Increment package version after release of Azure.ResourceManager.AppService (#34362) --- .../Azure.ResourceManager.AppService/CHANGELOG.md | 10 ++++++++++ .../src/Azure.ResourceManager.AppService.csproj | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/sdk/websites/Azure.ResourceManager.AppService/CHANGELOG.md b/sdk/websites/Azure.ResourceManager.AppService/CHANGELOG.md index d37509b2c85af..9ad33c3de5854 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/CHANGELOG.md +++ b/sdk/websites/Azure.ResourceManager.AppService/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.1.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.0.1 (2023-02-20) ### Bugs Fixed diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Azure.ResourceManager.AppService.csproj b/sdk/websites/Azure.ResourceManager.AppService/src/Azure.ResourceManager.AppService.csproj index 017f24043745a..ce31ec1797953 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Azure.ResourceManager.AppService.csproj +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Azure.ResourceManager.AppService.csproj @@ -1,8 +1,8 @@ - 1.0.1 + 1.1.0-beta.1 - 1.0.0 + 1.0.1 Azure.ResourceManager.AppService Microsoft Azure management client SDK for Azure resource provider Microsoft.Web. azure;management;AppService From d33adf3c1b4b8817799bf56129902e3a467424bd Mon Sep 17 00:00:00 2001 From: Arthur Ma Date: Mon, 20 Feb 2023 18:50:48 +0800 Subject: [PATCH 06/72] Batch refresh Mgmt. Sdks for new core lib upgrade (#34364) --- .../CHANGELOG.md | 9 +++++---- .../src/Azure.ResourceManager.AlertsManagement.csproj | 2 +- .../Azure.ResourceManager.Authorization/CHANGELOG.md | 11 ++++------- .../src/Azure.ResourceManager.Authorization.csproj | 2 +- .../CHANGELOG.md | 11 ++++------- .../Azure.ResourceManager.CognitiveServices.csproj | 2 +- .../tests/QnAMakerKnowledgebasePreviewTests.cs | 2 +- .../tests/QnAMakerKnowledgebaseTests.cs | 4 ++-- .../tests/Luis/ImportExportTests.cs | 2 +- .../Azure.ResourceManager.DigitalTwins/CHANGELOG.md | 11 ++++------- .../src/Azure.ResourceManager.DigitalTwins.csproj | 2 +- .../CHANGELOG.md | 11 ++++------- .../Azure.ResourceManager.ExtendedLocations.csproj | 2 +- .../Azure.ResourceManager.Grafana/CHANGELOG.md | 11 ++++------- .../src/Azure.ResourceManager.Grafana.csproj | 2 +- .../CHANGELOG.md | 11 ++++------- .../Azure.ResourceManager.GuestConfiguration.csproj | 2 +- .../Azure.ResourceManager.HealthBot/CHANGELOG.md | 11 ++++------- .../src/Azure.ResourceManager.HealthBot.csproj | 2 +- .../Azure.ResourceManager.IotCentral/CHANGELOG.md | 11 ++++------- .../src/Azure.ResourceManager.IotCentral.csproj | 2 +- sdk/iothub/Azure.ResourceManager.IotHub/CHANGELOG.md | 11 ++++------- .../src/Azure.ResourceManager.IotHub.csproj | 2 +- .../Azure.ResourceManager.LabServices/CHANGELOG.md | 11 ++++------- .../src/Azure.ResourceManager.LabServices.csproj | 2 +- .../CHANGELOG.md | 11 ++++------- .../src/Azure.ResourceManager.ManagedServices.csproj | 2 +- sdk/maps/Azure.ResourceManager.Maps/CHANGELOG.md | 11 ++++------- .../src/Azure.ResourceManager.Maps.csproj | 2 +- .../Azure.ResourceManager.MixedReality/CHANGELOG.md | 11 ++++------- .../src/Azure.ResourceManager.MixedReality.csproj | 2 +- .../CHANGELOG.md | 11 ++++------- .../src/Azure.ResourceManager.NotificationHubs.csproj | 2 +- .../Azure.ResourceManager.Orbital/CHANGELOG.md | 11 ++++------- .../src/Azure.ResourceManager.Orbital.csproj | 2 +- sdk/redis/Azure.ResourceManager.Redis/CHANGELOG.md | 11 ++++------- .../src/Azure.ResourceManager.Redis.csproj | 2 +- .../CHANGELOG.md | 11 ++++------- .../src/Azure.ResourceManager.RedisEnterprise.csproj | 2 +- .../Azure.ResourceManager.ResourceMover/CHANGELOG.md | 11 ++++------- .../src/Azure.ResourceManager.ResourceMover.csproj | 2 +- sdk/search/Azure.ResourceManager.Search/CHANGELOG.md | 11 ++++------- .../src/Azure.ResourceManager.Search.csproj | 2 +- .../Azure.ResourceManager.ServiceFabric/CHANGELOG.md | 11 ++++------- .../src/Azure.ResourceManager.ServiceFabric.csproj | 2 +- .../Azure.ResourceManager.StorageCache/CHANGELOG.md | 11 ++++------- .../src/Azure.ResourceManager.StorageCache.csproj | 2 +- .../Azure.ResourceManager.StoragePool/CHANGELOG.md | 11 ++++------- .../src/Azure.ResourceManager.StoragePool.csproj | 2 +- .../CHANGELOG.md | 11 ++++------- .../src/Azure.ResourceManager.StreamAnalytics.csproj | 2 +- .../Azure.ResourceManager.Subscription/CHANGELOG.md | 11 ++++------- .../src/Azure.ResourceManager.Subscription.csproj | 2 +- .../Azure.ResourceManager.Synapse/CHANGELOG.md | 11 ++++------- .../src/Azure.ResourceManager.Synapse.csproj | 2 +- .../Azure.ResourceManager.TrafficManager/CHANGELOG.md | 11 ++++------- 56 files changed, 139 insertions(+), 216 deletions(-) diff --git a/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/CHANGELOG.md b/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/CHANGELOG.md index ecd829d43739b..1027b544c9999 100644 --- a/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/CHANGELOG.md +++ b/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/CHANGELOG.md @@ -1,15 +1,16 @@ # Release History -## 1.1.0-beta.1 (Unreleased) +## 1.0.1 (2023-02-20) ### Features Added -### Breaking Changes - -### Bugs Fixed +- Introduced property bag for the methods with more than 5 parameters. ### Other Changes +- Upgraded dependent `Azure.Core` to `1.28.0`. +- Upgraded dependent `Azure.ResourceManager` to `1.4.0`. + ## 1.0.0 (2022-09-19) This release is the first stable release of the AlertsManagement Management client library. diff --git a/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Azure.ResourceManager.AlertsManagement.csproj b/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Azure.ResourceManager.AlertsManagement.csproj index 352c70a33cb31..c602783459c92 100644 --- a/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Azure.ResourceManager.AlertsManagement.csproj +++ b/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Azure.ResourceManager.AlertsManagement.csproj @@ -1,6 +1,6 @@ - 1.1.0-beta.1 + 1.0.1 1.0.0 Azure.ResourceManager.AlertsManagement diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/CHANGELOG.md b/sdk/authorization/Azure.ResourceManager.Authorization/CHANGELOG.md index a5d912a6ca7d4..96d70f656e858 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/CHANGELOG.md +++ b/sdk/authorization/Azure.ResourceManager.Authorization/CHANGELOG.md @@ -1,15 +1,12 @@ # Release History -## 1.1.0-beta.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed +## 1.0.1 (2023-02-20) ### Other Changes +- Upgraded dependent `Azure.Core` to `1.28.0`. +- Upgraded dependent `Azure.ResourceManager` to `1.4.0`. + ## 1.0.0 (2022-09-05) This release is the first stable release of the Authorization Management client library. diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Azure.ResourceManager.Authorization.csproj b/sdk/authorization/Azure.ResourceManager.Authorization/src/Azure.ResourceManager.Authorization.csproj index 49e3fb6b2436a..c8f76cf586f49 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Azure.ResourceManager.Authorization.csproj +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Azure.ResourceManager.Authorization.csproj @@ -1,6 +1,6 @@ - 1.1.0-beta.1 + 1.0.1 1.0.0 Azure.ResourceManager.Authorization diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/CHANGELOG.md b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/CHANGELOG.md index 410461381e7ba..7638d2599da52 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/CHANGELOG.md +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/CHANGELOG.md @@ -1,15 +1,12 @@ # Release History -## 1.3.0-beta.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed +## 1.2.1 (2023-02-20) ### Other Changes +- Upgraded dependent `Azure.Core` to `1.28.0`. +- Upgraded dependent `Azure.ResourceManager` to `1.4.0`. + ## 1.2.0 (2023-01-30) ### Features Added diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Azure.ResourceManager.CognitiveServices.csproj b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Azure.ResourceManager.CognitiveServices.csproj index 7888ae54f91a2..e6acf36a2dfa9 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Azure.ResourceManager.CognitiveServices.csproj +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Azure.ResourceManager.CognitiveServices.csproj @@ -1,6 +1,6 @@ - 1.3.0-beta.1 + 1.2.1 1.2.0 Azure.ResourceManager.CognitiveServices diff --git a/sdk/cognitiveservices/Knowledge.QnAMaker/tests/QnAMakerKnowledgebasePreviewTests.cs b/sdk/cognitiveservices/Knowledge.QnAMaker/tests/QnAMakerKnowledgebasePreviewTests.cs index 651767e681feb..87a352cc9d2e0 100644 --- a/sdk/cognitiveservices/Knowledge.QnAMaker/tests/QnAMakerKnowledgebasePreviewTests.cs +++ b/sdk/cognitiveservices/Knowledge.QnAMaker/tests/QnAMakerKnowledgebasePreviewTests.cs @@ -42,7 +42,7 @@ public void QnAMakerKnowledgebasePreviewCrud() // Loop while operation is success updateOp = OperationHelper.MonitorOperation(updateOp, client); - Assert.Equal(updateOp.OperationState, OperationStateType.Succeeded); + Assert.Equal(OperationStateType.Succeeded, updateOp.OperationState); kbdata = client.Knowledgebase.DownloadAsync(kbid, EnvironmentType.Test).Result; Assert.Equal("goodbye", kbdata.QnaDocuments[1].Answer); diff --git a/sdk/cognitiveservices/Knowledge.QnAMaker/tests/QnAMakerKnowledgebaseTests.cs b/sdk/cognitiveservices/Knowledge.QnAMaker/tests/QnAMakerKnowledgebaseTests.cs index c1cc642870d1d..a54d4184e8fae 100644 --- a/sdk/cognitiveservices/Knowledge.QnAMaker/tests/QnAMakerKnowledgebaseTests.cs +++ b/sdk/cognitiveservices/Knowledge.QnAMaker/tests/QnAMakerKnowledgebaseTests.cs @@ -26,7 +26,7 @@ public void QnAMakerKnowledgebaseCrud() // Loop while operation is success createOp = OperationHelper.MonitorOperation(createOp, client); - Assert.Equal(createOp.OperationState, OperationStateType.Succeeded); + Assert.Equal(OperationStateType.Succeeded, createOp.OperationState); var kbid = createOp.ResourceLocation.Replace("/knowledgebases/", string.Empty); Assert.NotEmpty(kbid); @@ -42,7 +42,7 @@ public void QnAMakerKnowledgebaseCrud() // Loop while operation is success updateOp = OperationHelper.MonitorOperation(updateOp, client); - Assert.Equal(updateOp.OperationState, OperationStateType.Succeeded); + Assert.Equal(OperationStateType.Succeeded, updateOp.OperationState); kbdata = client.Knowledgebase.DownloadAsync(kbid, EnvironmentType.Test).Result; Assert.Equal("goodbye", kbdata.QnaDocuments[1].Answer); diff --git a/sdk/cognitiveservices/Language.LUIS.Authoring/tests/Luis/ImportExportTests.cs b/sdk/cognitiveservices/Language.LUIS.Authoring/tests/Luis/ImportExportTests.cs index 535486fa836b5..afa9b5fd4686c 100644 --- a/sdk/cognitiveservices/Language.LUIS.Authoring/tests/Luis/ImportExportTests.cs +++ b/sdk/cognitiveservices/Language.LUIS.Authoring/tests/Luis/ImportExportTests.cs @@ -112,7 +112,7 @@ public void ImportAppVersionV2() await client.Apps.DeleteAsync(testAppId); Assert.NotNull(importedVerion); - Assert.Equal(importedVerion.Version, VersionId); + Assert.Equal(VersionId, importedVerion.Version); }); } diff --git a/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/CHANGELOG.md b/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/CHANGELOG.md index 6198956dc3d93..dfce5d55abb74 100644 --- a/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/CHANGELOG.md +++ b/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/CHANGELOG.md @@ -1,15 +1,12 @@ # Release History -## 1.2.0-beta.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed +## 1.1.1 (2023-02-20) ### Other Changes +- Upgraded dependent `Azure.Core` to `1.28.0`. +- Upgraded dependent `Azure.ResourceManager` to `1.4.0`. + ## 1.1.0 (2022-12-08) ### Features Added diff --git a/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Azure.ResourceManager.DigitalTwins.csproj b/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Azure.ResourceManager.DigitalTwins.csproj index 20d4aa7848a7b..1d3e973e09c7f 100644 --- a/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Azure.ResourceManager.DigitalTwins.csproj +++ b/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Azure.ResourceManager.DigitalTwins.csproj @@ -1,6 +1,6 @@ - 1.2.0-beta.1 + 1.1.1 1.1.0 Azure.ResourceManager.DigitalTwins diff --git a/sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations/CHANGELOG.md b/sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations/CHANGELOG.md index 92af33cfb25f8..ef60b4016cea5 100644 --- a/sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations/CHANGELOG.md +++ b/sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations/CHANGELOG.md @@ -1,15 +1,12 @@ # Release History -## 1.1.0-beta.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed +## 1.0.1 (2023-02-20) ### Other Changes +- Upgraded dependent `Azure.Core` to `1.28.0`. +- Upgraded dependent `Azure.ResourceManager` to `1.4.0`. + ## 1.0.0 (2022-09-19) This release is the first stable release of the Extended Location Management client library. diff --git a/sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations/src/Azure.ResourceManager.ExtendedLocations.csproj b/sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations/src/Azure.ResourceManager.ExtendedLocations.csproj index b695ef434cf09..0011077f38619 100644 --- a/sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations/src/Azure.ResourceManager.ExtendedLocations.csproj +++ b/sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations/src/Azure.ResourceManager.ExtendedLocations.csproj @@ -1,6 +1,6 @@ - 1.1.0-beta.1 + 1.0.1 1.0.0 Azure.ResourceManager.ExtendedLocations diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/CHANGELOG.md b/sdk/grafana/Azure.ResourceManager.Grafana/CHANGELOG.md index 20e9e2eb91eb3..de4de479fcf2e 100644 --- a/sdk/grafana/Azure.ResourceManager.Grafana/CHANGELOG.md +++ b/sdk/grafana/Azure.ResourceManager.Grafana/CHANGELOG.md @@ -1,15 +1,12 @@ # Release History -## 1.1.0-beta.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed +## 1.0.1 (2023-02-20) ### Other Changes +- Upgraded dependent `Azure.Core` to `1.28.0`. +- Upgraded dependent `Azure.ResourceManager` to `1.4.0`. + ## 1.0.0 (2022-08-29) This release is the first stable release of the Grafana Management client library. diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/src/Azure.ResourceManager.Grafana.csproj b/sdk/grafana/Azure.ResourceManager.Grafana/src/Azure.ResourceManager.Grafana.csproj index 68891b6744fe0..e74c0c086abae 100644 --- a/sdk/grafana/Azure.ResourceManager.Grafana/src/Azure.ResourceManager.Grafana.csproj +++ b/sdk/grafana/Azure.ResourceManager.Grafana/src/Azure.ResourceManager.Grafana.csproj @@ -1,6 +1,6 @@ - 1.1.0-beta.1 + 1.0.1 1.0.0 Azure.ResourceManager.Grafana diff --git a/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/CHANGELOG.md b/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/CHANGELOG.md index 0aad6243f5de7..91abd0cc8c3d0 100644 --- a/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/CHANGELOG.md +++ b/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/CHANGELOG.md @@ -1,15 +1,12 @@ # Release History -## 1.1.0-beta.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed +## 1.0.1 (2023-02-20) ### Other Changes +- Upgraded dependent `Azure.Core` to `1.28.0`. +- Upgraded dependent `Azure.ResourceManager` to `1.4.0`. + ## 1.0.0 (2022-09-29) This release is the first stable release of the Guest Configuration Management library. diff --git a/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Azure.ResourceManager.GuestConfiguration.csproj b/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Azure.ResourceManager.GuestConfiguration.csproj index 9025957929926..5a12ff3fafbe5 100644 --- a/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Azure.ResourceManager.GuestConfiguration.csproj +++ b/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Azure.ResourceManager.GuestConfiguration.csproj @@ -1,6 +1,6 @@ - 1.1.0-beta.1 + 1.0.1 1.0.0 Azure.ResourceManager.GuestConfiguration diff --git a/sdk/healthbot/Azure.ResourceManager.HealthBot/CHANGELOG.md b/sdk/healthbot/Azure.ResourceManager.HealthBot/CHANGELOG.md index ef2bf159f12bf..b15d058eee27e 100644 --- a/sdk/healthbot/Azure.ResourceManager.HealthBot/CHANGELOG.md +++ b/sdk/healthbot/Azure.ResourceManager.HealthBot/CHANGELOG.md @@ -1,15 +1,12 @@ # Release History -## 1.1.0-beta.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed +## 1.0.1 (2023-02-20) ### Other Changes +- Upgraded dependent `Azure.Core` to `1.28.0`. +- Upgraded dependent `Azure.ResourceManager` to `1.4.0`. + ## 1.0.0 (2022-09-19) This release is the first stable release of the Health Bot Management library. diff --git a/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Azure.ResourceManager.HealthBot.csproj b/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Azure.ResourceManager.HealthBot.csproj index 6ffa254c9a4d2..13163a6388ac0 100644 --- a/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Azure.ResourceManager.HealthBot.csproj +++ b/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Azure.ResourceManager.HealthBot.csproj @@ -1,6 +1,6 @@ - 1.1.0-beta.1 + 1.0.1 1.0.0 Azure.ResourceManager.HealthBot diff --git a/sdk/iotcentral/Azure.ResourceManager.IotCentral/CHANGELOG.md b/sdk/iotcentral/Azure.ResourceManager.IotCentral/CHANGELOG.md index d99b40e5bf2d4..47e9347c3d561 100644 --- a/sdk/iotcentral/Azure.ResourceManager.IotCentral/CHANGELOG.md +++ b/sdk/iotcentral/Azure.ResourceManager.IotCentral/CHANGELOG.md @@ -1,15 +1,12 @@ # Release History -## 1.1.0-beta.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed +## 1.0.1 (2023-02-20) ### Other Changes +- Upgraded dependent `Azure.Core` to `1.28.0`. +- Upgraded dependent `Azure.ResourceManager` to `1.4.0`. + ## 1.0.0 (2022-08-29) This release is the first stable release of the IotCentral Management client library. diff --git a/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Azure.ResourceManager.IotCentral.csproj b/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Azure.ResourceManager.IotCentral.csproj index 6815b791e5512..f2eaed11cd420 100644 --- a/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Azure.ResourceManager.IotCentral.csproj +++ b/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Azure.ResourceManager.IotCentral.csproj @@ -1,6 +1,6 @@ - 1.1.0-beta.1 + 1.0.1 1.0.0 Azure.ResourceManager.IotCentral diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/CHANGELOG.md b/sdk/iothub/Azure.ResourceManager.IotHub/CHANGELOG.md index 611b34f9dd07f..ef8eaf10b19cf 100644 --- a/sdk/iothub/Azure.ResourceManager.IotHub/CHANGELOG.md +++ b/sdk/iothub/Azure.ResourceManager.IotHub/CHANGELOG.md @@ -1,15 +1,12 @@ # Release History -## 1.1.0-beta.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed +## 1.0.1 (2023-02-20) ### Other Changes +- Upgraded dependent `Azure.Core` to `1.28.0`. +- Upgraded dependent `Azure.ResourceManager` to `1.4.0`. + ## 1.0.0 (2022-08-29) This release is the first stable release of the IotHub Management client library. diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/Azure.ResourceManager.IotHub.csproj b/sdk/iothub/Azure.ResourceManager.IotHub/src/Azure.ResourceManager.IotHub.csproj index e5b72d1bd6bb4..5b36fcb0c7466 100644 --- a/sdk/iothub/Azure.ResourceManager.IotHub/src/Azure.ResourceManager.IotHub.csproj +++ b/sdk/iothub/Azure.ResourceManager.IotHub/src/Azure.ResourceManager.IotHub.csproj @@ -1,6 +1,6 @@ - 1.1.0-beta.1 + 1.0.1 1.0.0 Azure.ResourceManager.IotHub diff --git a/sdk/labservices/Azure.ResourceManager.LabServices/CHANGELOG.md b/sdk/labservices/Azure.ResourceManager.LabServices/CHANGELOG.md index 630b6095ccb68..5e3c4ce962fc1 100644 --- a/sdk/labservices/Azure.ResourceManager.LabServices/CHANGELOG.md +++ b/sdk/labservices/Azure.ResourceManager.LabServices/CHANGELOG.md @@ -1,15 +1,12 @@ # Release History -## 1.1.0-beta.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed +## 1.0.1 (2023-02-20) ### Other Changes +- Upgraded dependent `Azure.Core` to `1.28.0`. +- Upgraded dependent `Azure.ResourceManager` to `1.4.0`. + ## 1.0.0 (2022-09-26) This release is the first stable release of the Lab Services Management library. diff --git a/sdk/labservices/Azure.ResourceManager.LabServices/src/Azure.ResourceManager.LabServices.csproj b/sdk/labservices/Azure.ResourceManager.LabServices/src/Azure.ResourceManager.LabServices.csproj index 6dc7380b9f92c..01d12ee1ee956 100644 --- a/sdk/labservices/Azure.ResourceManager.LabServices/src/Azure.ResourceManager.LabServices.csproj +++ b/sdk/labservices/Azure.ResourceManager.LabServices/src/Azure.ResourceManager.LabServices.csproj @@ -1,6 +1,6 @@ - 1.1.0-beta.1 + 1.0.1 1.0.0 Azure.ResourceManager.LabServices diff --git a/sdk/managedservices/Azure.ResourceManager.ManagedServices/CHANGELOG.md b/sdk/managedservices/Azure.ResourceManager.ManagedServices/CHANGELOG.md index 867bb6095fbd5..18a446f39d48e 100644 --- a/sdk/managedservices/Azure.ResourceManager.ManagedServices/CHANGELOG.md +++ b/sdk/managedservices/Azure.ResourceManager.ManagedServices/CHANGELOG.md @@ -1,15 +1,12 @@ # Release History -## 1.1.0-beta.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed +## 1.0.1 (2023-02-20) ### Other Changes +- Upgraded dependent `Azure.Core` to `1.28.0`. +- Upgraded dependent `Azure.ResourceManager` to `1.4.0`. + ## 1.0.0 (2022-12-23) This release is the first stable release of the Managed Services Management library. diff --git a/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Azure.ResourceManager.ManagedServices.csproj b/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Azure.ResourceManager.ManagedServices.csproj index e5cf0a7955ac7..fcc6748d086f6 100644 --- a/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Azure.ResourceManager.ManagedServices.csproj +++ b/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Azure.ResourceManager.ManagedServices.csproj @@ -1,6 +1,6 @@ - 1.1.0-beta.1 + 1.0.1 1.0.0 Azure.ResourceManager.ManagedServices diff --git a/sdk/maps/Azure.ResourceManager.Maps/CHANGELOG.md b/sdk/maps/Azure.ResourceManager.Maps/CHANGELOG.md index 3a9ab0a2f15c4..c49c2d057409e 100644 --- a/sdk/maps/Azure.ResourceManager.Maps/CHANGELOG.md +++ b/sdk/maps/Azure.ResourceManager.Maps/CHANGELOG.md @@ -1,15 +1,12 @@ # Release History -## 1.1.0-beta.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed +## 1.0.1 (2023-02-20) ### Other Changes +- Upgraded dependent `Azure.Core` to `1.28.0`. +- Upgraded dependent `Azure.ResourceManager` to `1.4.0`. + ## 1.0.0 (2022-11-24) This package is the first stable release of the Microsoft Azure Maps management client library. diff --git a/sdk/maps/Azure.ResourceManager.Maps/src/Azure.ResourceManager.Maps.csproj b/sdk/maps/Azure.ResourceManager.Maps/src/Azure.ResourceManager.Maps.csproj index d554109328f16..f02ccc3e5069a 100644 --- a/sdk/maps/Azure.ResourceManager.Maps/src/Azure.ResourceManager.Maps.csproj +++ b/sdk/maps/Azure.ResourceManager.Maps/src/Azure.ResourceManager.Maps.csproj @@ -1,6 +1,6 @@ - 1.1.0-beta.1 + 1.0.1 1.0.0 Azure.ResourceManager.Maps diff --git a/sdk/mixedreality/Azure.ResourceManager.MixedReality/CHANGELOG.md b/sdk/mixedreality/Azure.ResourceManager.MixedReality/CHANGELOG.md index c6061071e933b..5c63d2971cfe9 100644 --- a/sdk/mixedreality/Azure.ResourceManager.MixedReality/CHANGELOG.md +++ b/sdk/mixedreality/Azure.ResourceManager.MixedReality/CHANGELOG.md @@ -1,15 +1,12 @@ # Release History -## 1.1.0-beta.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed +## 1.0.1 (2023-02-20) ### Other Changes +- Upgraded dependent `Azure.Core` to `1.28.0`. +- Upgraded dependent `Azure.ResourceManager` to `1.4.0`. + ## 1.0.0 (2022-12-26) This release is the first stable release of the Mixed Reality Management library. diff --git a/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Azure.ResourceManager.MixedReality.csproj b/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Azure.ResourceManager.MixedReality.csproj index badd82738ff53..45b31ff201a18 100644 --- a/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Azure.ResourceManager.MixedReality.csproj +++ b/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Azure.ResourceManager.MixedReality.csproj @@ -1,6 +1,6 @@ - 1.1.0-beta.1 + 1.0.1 1.0.0 Azure.ResourceManager.MixedReality diff --git a/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/CHANGELOG.md b/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/CHANGELOG.md index 6f9fa5674ad8b..f5920695e42d2 100644 --- a/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/CHANGELOG.md +++ b/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/CHANGELOG.md @@ -1,15 +1,12 @@ # Release History -## 1.1.0-beta.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed +## 1.0.1 (2023-02-20) ### Other Changes +- Upgraded dependent `Azure.Core` to `1.28.0`. +- Upgraded dependent `Azure.ResourceManager` to `1.4.0`. + ## 1.0.0 (2022-09-05) This release is the first stable release of the Notification Hubs Management client library. diff --git a/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Azure.ResourceManager.NotificationHubs.csproj b/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Azure.ResourceManager.NotificationHubs.csproj index 90bdc132f956d..29a8ad3544ce3 100644 --- a/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Azure.ResourceManager.NotificationHubs.csproj +++ b/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Azure.ResourceManager.NotificationHubs.csproj @@ -1,6 +1,6 @@ - 1.1.0-beta.1 + 1.0.1 1.0.0 Azure.ResourceManager.NotificationHubs diff --git a/sdk/orbital/Azure.ResourceManager.Orbital/CHANGELOG.md b/sdk/orbital/Azure.ResourceManager.Orbital/CHANGELOG.md index a3413e9450991..b1c8e7e30e2bb 100644 --- a/sdk/orbital/Azure.ResourceManager.Orbital/CHANGELOG.md +++ b/sdk/orbital/Azure.ResourceManager.Orbital/CHANGELOG.md @@ -1,15 +1,12 @@ # Release History -## 1.1.0-beta.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed +## 1.0.1 (2023-02-20) ### Other Changes +- Upgraded dependent `Azure.Core` to `1.28.0`. +- Upgraded dependent `Azure.ResourceManager` to `1.4.0`. + ## 1.0.0 (2022-09-29) This release is the first stable release of the Orbital Management library. diff --git a/sdk/orbital/Azure.ResourceManager.Orbital/src/Azure.ResourceManager.Orbital.csproj b/sdk/orbital/Azure.ResourceManager.Orbital/src/Azure.ResourceManager.Orbital.csproj index da6ae393dd660..d568216699670 100644 --- a/sdk/orbital/Azure.ResourceManager.Orbital/src/Azure.ResourceManager.Orbital.csproj +++ b/sdk/orbital/Azure.ResourceManager.Orbital/src/Azure.ResourceManager.Orbital.csproj @@ -1,6 +1,6 @@ - 1.1.0-beta.1 + 1.0.1 1.0.0 Azure.ResourceManager.Orbital diff --git a/sdk/redis/Azure.ResourceManager.Redis/CHANGELOG.md b/sdk/redis/Azure.ResourceManager.Redis/CHANGELOG.md index f8d2d57760303..1c3392bffd3f9 100644 --- a/sdk/redis/Azure.ResourceManager.Redis/CHANGELOG.md +++ b/sdk/redis/Azure.ResourceManager.Redis/CHANGELOG.md @@ -1,15 +1,12 @@ # Release History -## 1.2.0-beta.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed +## 1.1.1 (2023-02-20) ### Other Changes +- Upgraded dependent `Azure.Core` to `1.28.0`. +- Upgraded dependent `Azure.ResourceManager` to `1.4.0`. + ## 1.1.0 (2022-11-10) ### Features Added diff --git a/sdk/redis/Azure.ResourceManager.Redis/src/Azure.ResourceManager.Redis.csproj b/sdk/redis/Azure.ResourceManager.Redis/src/Azure.ResourceManager.Redis.csproj index 3743341ed95a2..39ba6fe399d6b 100644 --- a/sdk/redis/Azure.ResourceManager.Redis/src/Azure.ResourceManager.Redis.csproj +++ b/sdk/redis/Azure.ResourceManager.Redis/src/Azure.ResourceManager.Redis.csproj @@ -1,6 +1,6 @@ - 1.2.0-beta.1 + 1.1.1 1.1.0 Azure.ResourceManager.Redis diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/CHANGELOG.md b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/CHANGELOG.md index 4cc66203bf632..2f29fbef8b694 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/CHANGELOG.md +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/CHANGELOG.md @@ -1,15 +1,12 @@ # Release History -## 1.1.0-beta.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed +## 1.0.1 (2023-02-20) ### Other Changes +- Upgraded dependent `Azure.Core` to `1.28.0`. +- Upgraded dependent `Azure.ResourceManager` to `1.4.0`. + ## 1.0.0 (2022-09-19) This release is the first stable release of the Redis Enterprise Management client library. diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Azure.ResourceManager.RedisEnterprise.csproj b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Azure.ResourceManager.RedisEnterprise.csproj index f293fdc3b159d..c20e7f312c19c 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Azure.ResourceManager.RedisEnterprise.csproj +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Azure.ResourceManager.RedisEnterprise.csproj @@ -1,6 +1,6 @@ - 1.1.0-beta.1 + 1.0.1 1.0.0 Azure.ResourceManager.RedisEnterprise diff --git a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/CHANGELOG.md b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/CHANGELOG.md index 637faadbf26a2..34ed810e47989 100644 --- a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/CHANGELOG.md +++ b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/CHANGELOG.md @@ -1,15 +1,12 @@ # Release History -## 1.1.0-beta.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed +## 1.0.1 (2023-02-20) ### Other Changes +- Upgraded dependent `Azure.Core` to `1.28.0`. +- Upgraded dependent `Azure.ResourceManager` to `1.4.0`. + ## 1.0.0 (2022-09-19) This release is the first stable release of the Resource Mover Management client library. diff --git a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Azure.ResourceManager.ResourceMover.csproj b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Azure.ResourceManager.ResourceMover.csproj index 876c3af688611..bf8980dfe2205 100644 --- a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Azure.ResourceManager.ResourceMover.csproj +++ b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Azure.ResourceManager.ResourceMover.csproj @@ -1,6 +1,6 @@ - 1.1.0-beta.1 + 1.0.1 1.0.0 Azure.ResourceManager.ResourceMover diff --git a/sdk/search/Azure.ResourceManager.Search/CHANGELOG.md b/sdk/search/Azure.ResourceManager.Search/CHANGELOG.md index 7cc6190e97d0f..c3cbc1f55d7a4 100644 --- a/sdk/search/Azure.ResourceManager.Search/CHANGELOG.md +++ b/sdk/search/Azure.ResourceManager.Search/CHANGELOG.md @@ -1,15 +1,12 @@ # Release History -## 1.1.0-beta.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed +## 1.0.1 (2023-02-20) ### Other Changes +- Upgraded dependent `Azure.Core` to `1.28.0`. +- Upgraded dependent `Azure.ResourceManager` to `1.4.0`. + ## 1.0.0 (2022-09-28) This release is the first stable release of the Search Service Management client library. diff --git a/sdk/search/Azure.ResourceManager.Search/src/Azure.ResourceManager.Search.csproj b/sdk/search/Azure.ResourceManager.Search/src/Azure.ResourceManager.Search.csproj index 47ae1c192c190..aeb0b2493b9e9 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Azure.ResourceManager.Search.csproj +++ b/sdk/search/Azure.ResourceManager.Search/src/Azure.ResourceManager.Search.csproj @@ -1,6 +1,6 @@ - 1.1.0-beta.1 + 1.0.1 1.0.0 Azure.ResourceManager.Search diff --git a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/CHANGELOG.md b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/CHANGELOG.md index 376b0bb27f8a8..26f5b1ec0c0c6 100644 --- a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/CHANGELOG.md +++ b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/CHANGELOG.md @@ -1,15 +1,12 @@ # Release History -## 1.1.0-beta.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed +## 1.0.1 (2023-02-20) ### Other Changes +- Upgraded dependent `Azure.Core` to `1.28.0`. +- Upgraded dependent `Azure.ResourceManager` to `1.4.0`. + ## 1.0.0 (2022-09-05) This release is the first stable release of the Service Fabric Management client library. diff --git a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Azure.ResourceManager.ServiceFabric.csproj b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Azure.ResourceManager.ServiceFabric.csproj index 0354cd39b5b85..a04d9b3a9dd67 100644 --- a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Azure.ResourceManager.ServiceFabric.csproj +++ b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Azure.ResourceManager.ServiceFabric.csproj @@ -1,6 +1,6 @@ - 1.1.0-beta.1 + 1.0.1 1.0.0 Azure.ResourceManager.ServiceFabric diff --git a/sdk/storagecache/Azure.ResourceManager.StorageCache/CHANGELOG.md b/sdk/storagecache/Azure.ResourceManager.StorageCache/CHANGELOG.md index 1f4f430b34693..785cfe539009b 100644 --- a/sdk/storagecache/Azure.ResourceManager.StorageCache/CHANGELOG.md +++ b/sdk/storagecache/Azure.ResourceManager.StorageCache/CHANGELOG.md @@ -1,15 +1,12 @@ # Release History -## 1.1.0-beta.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed +## 1.0.1 (2023-02-20) ### Other Changes +- Upgraded dependent `Azure.Core` to `1.28.0`. +- Upgraded dependent `Azure.ResourceManager` to `1.4.0`. + ## 1.0.0 (2022-09-19) This release is the first stable release of the Storage Cache Management library. diff --git a/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Azure.ResourceManager.StorageCache.csproj b/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Azure.ResourceManager.StorageCache.csproj index be10def3a91c7..47df2fabb1b6f 100644 --- a/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Azure.ResourceManager.StorageCache.csproj +++ b/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Azure.ResourceManager.StorageCache.csproj @@ -1,6 +1,6 @@ - 1.1.0-beta.1 + 1.0.1 1.0.0 Azure.ResourceManager.StorageCache diff --git a/sdk/storagepool/Azure.ResourceManager.StoragePool/CHANGELOG.md b/sdk/storagepool/Azure.ResourceManager.StoragePool/CHANGELOG.md index 86fe96c1751e8..30bbaa1da3766 100644 --- a/sdk/storagepool/Azure.ResourceManager.StoragePool/CHANGELOG.md +++ b/sdk/storagepool/Azure.ResourceManager.StoragePool/CHANGELOG.md @@ -1,15 +1,12 @@ # Release History -## 1.1.0-beta.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed +## 1.0.1 (2023-02-20) ### Other Changes +- Upgraded dependent `Azure.Core` to `1.28.0`. +- Upgraded dependent `Azure.ResourceManager` to `1.4.0`. + ## 1.0.0 (2022-08-29) This release is the first stable release of the Storage Pool Management client library. diff --git a/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Azure.ResourceManager.StoragePool.csproj b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Azure.ResourceManager.StoragePool.csproj index c4051071b6810..96b8f98fba756 100644 --- a/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Azure.ResourceManager.StoragePool.csproj +++ b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Azure.ResourceManager.StoragePool.csproj @@ -1,6 +1,6 @@ - 1.1.0-beta.1 + 1.0.1 1.0.0 Azure.ResourceManager.StoragePool diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/CHANGELOG.md b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/CHANGELOG.md index 518363f713158..365edc3bddd7d 100644 --- a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/CHANGELOG.md +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/CHANGELOG.md @@ -1,15 +1,12 @@ # Release History -## 1.2.0-beta.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed +## 1.1.1 (2023-02-20) ### Other Changes +- Upgraded dependent `Azure.Core` to `1.28.0`. +- Upgraded dependent `Azure.ResourceManager` to `1.4.0`. + ## 1.1.0 (2022-09-28) ### Features Added diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Azure.ResourceManager.StreamAnalytics.csproj b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Azure.ResourceManager.StreamAnalytics.csproj index 24a03ed433394..98b77b7e9d9ea 100644 --- a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Azure.ResourceManager.StreamAnalytics.csproj +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Azure.ResourceManager.StreamAnalytics.csproj @@ -1,6 +1,6 @@ - 1.2.0-beta.1 + 1.1.1 1.1.0 Azure.ResourceManager.StreamAnalytics diff --git a/sdk/subscription/Azure.ResourceManager.Subscription/CHANGELOG.md b/sdk/subscription/Azure.ResourceManager.Subscription/CHANGELOG.md index bbf949abc59ba..cec3636f868ac 100644 --- a/sdk/subscription/Azure.ResourceManager.Subscription/CHANGELOG.md +++ b/sdk/subscription/Azure.ResourceManager.Subscription/CHANGELOG.md @@ -1,15 +1,12 @@ # Release History -## 1.1.0-beta.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed +## 1.0.1 (2023-02-20) ### Other Changes +- Upgraded dependent `Azure.Core` to `1.28.0`. +- Upgraded dependent `Azure.ResourceManager` to `1.4.0`. + ## 1.0.0 (2022-09-19) This release is the first stable release of the Subscription Management library. diff --git a/sdk/subscription/Azure.ResourceManager.Subscription/src/Azure.ResourceManager.Subscription.csproj b/sdk/subscription/Azure.ResourceManager.Subscription/src/Azure.ResourceManager.Subscription.csproj index 9d4cf9b11af54..4e3823e9d7d99 100644 --- a/sdk/subscription/Azure.ResourceManager.Subscription/src/Azure.ResourceManager.Subscription.csproj +++ b/sdk/subscription/Azure.ResourceManager.Subscription/src/Azure.ResourceManager.Subscription.csproj @@ -1,6 +1,6 @@ - 1.1.0-beta.1 + 1.0.1 1.0.0 Azure.ResourceManager.Subscription diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/CHANGELOG.md b/sdk/synapse/Azure.ResourceManager.Synapse/CHANGELOG.md index 08805f4da41ba..a043ca516eb42 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/CHANGELOG.md +++ b/sdk/synapse/Azure.ResourceManager.Synapse/CHANGELOG.md @@ -1,15 +1,12 @@ # Release History -## 1.2.0-beta.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed +## 1.1.1 (2023-02-20) ### Other Changes +- Upgraded dependent `Azure.Core` to `1.28.0`. +- Upgraded dependent `Azure.ResourceManager` to `1.4.0`. + ## 1.1.0 (2023-01-18) ### Features Added diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Azure.ResourceManager.Synapse.csproj b/sdk/synapse/Azure.ResourceManager.Synapse/src/Azure.ResourceManager.Synapse.csproj index 79afeb7fc1f7a..0472c8fcf0b5d 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Azure.ResourceManager.Synapse.csproj +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Azure.ResourceManager.Synapse.csproj @@ -1,6 +1,6 @@ - 1.2.0-beta.1 + 1.1.1 1.1.0 Azure.ResourceManager.Synapse diff --git a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/CHANGELOG.md b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/CHANGELOG.md index b6901192eea18..7b0e494575281 100644 --- a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/CHANGELOG.md +++ b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/CHANGELOG.md @@ -1,15 +1,12 @@ # Release History -## 1.1.0-beta.2 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed +## 1.1.0-beta.2 (2023-02-20) ### Other Changes +- Upgraded dependent `Azure.Core` to `1.28.0`. +- Upgraded dependent `Azure.ResourceManager` to `1.4.0`. + ## 1.1.0-beta.1 (2022-11-18) ### Other Changes From b0611eb24ac5ea237cffca3dd692eb4cc7cdd201 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 20 Feb 2023 09:43:55 -0500 Subject: [PATCH 07/72] Increment package version after release of Azure.ResourceManager.ManagedServiceIdentities (#34368) --- .../CHANGELOG.md | 10 ++++++++++ ...ure.ResourceManager.ManagedServiceIdentities.csproj | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/CHANGELOG.md b/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/CHANGELOG.md index 9a90e8247ee5a..4e5463124244c 100644 --- a/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/CHANGELOG.md +++ b/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.2.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.1.0 (2023-02-20) ### Features Added diff --git a/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Azure.ResourceManager.ManagedServiceIdentities.csproj b/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Azure.ResourceManager.ManagedServiceIdentities.csproj index e98a3f615ce2f..994d5fc8e4da6 100644 --- a/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Azure.ResourceManager.ManagedServiceIdentities.csproj +++ b/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Azure.ResourceManager.ManagedServiceIdentities.csproj @@ -1,8 +1,8 @@ - 1.1.0 + 1.2.0-beta.1 - 1.0.0 + 1.1.0 Azure.ResourceManager.ManagedServiceIdentities Microsoft Azure management client SDK for Azure resource provider Microsoft.ManagedIdentity. azure;management;arm;resource manager;managedserviceidentities;managedserviceidentity;msi;managed service identity; managed identity From 620839e3a945e9003824251e73180a5b247f8566 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 20 Feb 2023 09:44:45 -0500 Subject: [PATCH 08/72] Increment version for redis releases (#34373) Increment package version after release of Azure.ResourceManager.Redis --- sdk/redis/Azure.ResourceManager.Redis/CHANGELOG.md | 10 ++++++++++ .../src/Azure.ResourceManager.Redis.csproj | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/sdk/redis/Azure.ResourceManager.Redis/CHANGELOG.md b/sdk/redis/Azure.ResourceManager.Redis/CHANGELOG.md index 1c3392bffd3f9..9fb2525225bb2 100644 --- a/sdk/redis/Azure.ResourceManager.Redis/CHANGELOG.md +++ b/sdk/redis/Azure.ResourceManager.Redis/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.2.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.1.1 (2023-02-20) ### Other Changes diff --git a/sdk/redis/Azure.ResourceManager.Redis/src/Azure.ResourceManager.Redis.csproj b/sdk/redis/Azure.ResourceManager.Redis/src/Azure.ResourceManager.Redis.csproj index 39ba6fe399d6b..994655223a45a 100644 --- a/sdk/redis/Azure.ResourceManager.Redis/src/Azure.ResourceManager.Redis.csproj +++ b/sdk/redis/Azure.ResourceManager.Redis/src/Azure.ResourceManager.Redis.csproj @@ -1,8 +1,8 @@ - 1.1.1 + 1.2.0-beta.1 - 1.1.0 + 1.1.1 Azure.ResourceManager.Redis Microsoft Azure Resource Manager client SDK for Azure resource provider Microsoft.Cache Redis. azure;management;arm;resource manager;redis From f244b226ec09c8ffaadae0e03b797ad7d05e9746 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 20 Feb 2023 09:45:42 -0500 Subject: [PATCH 09/72] Increment package version after release of Azure.ResourceManager.RedisEnterprise (#34370) --- .../Azure.ResourceManager.RedisEnterprise/CHANGELOG.md | 10 ++++++++++ .../src/Azure.ResourceManager.RedisEnterprise.csproj | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/CHANGELOG.md b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/CHANGELOG.md index 2f29fbef8b694..c0bf766a7098e 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/CHANGELOG.md +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.1.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.0.1 (2023-02-20) ### Other Changes diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Azure.ResourceManager.RedisEnterprise.csproj b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Azure.ResourceManager.RedisEnterprise.csproj index c20e7f312c19c..d0a1ccad6d7ad 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Azure.ResourceManager.RedisEnterprise.csproj +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Azure.ResourceManager.RedisEnterprise.csproj @@ -1,8 +1,8 @@ - 1.0.1 + 1.1.0-beta.1 - 1.0.0 + 1.0.1 Azure.ResourceManager.RedisEnterprise Microsoft Azure Resource Manager client SDK for Azure resource provider Microsoft.Cache RedisEnterprise. azure;management;arm;resource manager;RedisEnterprise From 580be7ca2ab99580f7fc18b3003a95aaae30e73b Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 20 Feb 2023 09:46:39 -0500 Subject: [PATCH 10/72] Increment package version after release of Azure.ResourceManager.StoragePool (#34371) --- .../Azure.ResourceManager.StoragePool/CHANGELOG.md | 12 +++++++++++- .../src/Azure.ResourceManager.StoragePool.csproj | 4 ++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/sdk/storagepool/Azure.ResourceManager.StoragePool/CHANGELOG.md b/sdk/storagepool/Azure.ResourceManager.StoragePool/CHANGELOG.md index 30bbaa1da3766..737ec1d20845f 100644 --- a/sdk/storagepool/Azure.ResourceManager.StoragePool/CHANGELOG.md +++ b/sdk/storagepool/Azure.ResourceManager.StoragePool/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.1.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.0.1 (2023-02-20) ### Other Changes @@ -75,4 +85,4 @@ This package follows the [new Azure SDK guidelines](https://azure.github.io/azur This package is a Public Preview version, so expect incompatible changes in subsequent releases as we improve the product. To provide feedback, submit an issue in our [Azure SDK for .NET GitHub repo](https://github.com/Azure/azure-sdk-for-net/issues). -> NOTE: For more information about unified authentication, please refer to [Microsoft Azure Identity documentation for .NET](https://docs.microsoft.com//dotnet/api/overview/azure/identity-readme?view=azure-dotnet). \ No newline at end of file +> NOTE: For more information about unified authentication, please refer to [Microsoft Azure Identity documentation for .NET](https://docs.microsoft.com//dotnet/api/overview/azure/identity-readme?view=azure-dotnet). diff --git a/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Azure.ResourceManager.StoragePool.csproj b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Azure.ResourceManager.StoragePool.csproj index 96b8f98fba756..e43ea1ffc2fe7 100644 --- a/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Azure.ResourceManager.StoragePool.csproj +++ b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Azure.ResourceManager.StoragePool.csproj @@ -1,8 +1,8 @@ - 1.0.1 + 1.1.0-beta.1 - 1.0.0 + 1.0.1 Azure.ResourceManager.StoragePool Microsoft Azure Resource Manager client SDK for Azure resource provider Microsoft.StoragePool. azure;management;arm;resource manager;storagepool From 64fe42d4f31621d0e066f833bc4ae8a1be6603c0 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 20 Feb 2023 09:46:54 -0500 Subject: [PATCH 11/72] Increment version for extendedlocation releases (#34372) Increment package version after release of Azure.ResourceManager.ExtendedLocations --- .../CHANGELOG.md | 10 ++++++++++ .../src/Azure.ResourceManager.ExtendedLocations.csproj | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations/CHANGELOG.md b/sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations/CHANGELOG.md index ef60b4016cea5..9abc16b7a5bfc 100644 --- a/sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations/CHANGELOG.md +++ b/sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.1.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.0.1 (2023-02-20) ### Other Changes diff --git a/sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations/src/Azure.ResourceManager.ExtendedLocations.csproj b/sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations/src/Azure.ResourceManager.ExtendedLocations.csproj index 0011077f38619..447522868bcb4 100644 --- a/sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations/src/Azure.ResourceManager.ExtendedLocations.csproj +++ b/sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations/src/Azure.ResourceManager.ExtendedLocations.csproj @@ -1,8 +1,8 @@ - 1.0.1 + 1.1.0-beta.1 - 1.0.0 + 1.0.1 Azure.ResourceManager.ExtendedLocations Microsoft Azure Resource Manager client SDK for Azure resource provider Microsoft.ExtendedLocation. azure;management;arm;resource manager;extendedlocations From 50e05913865fc260e0640a98007725806fa9c0df Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 20 Feb 2023 09:47:36 -0500 Subject: [PATCH 12/72] Increment version for iotcentral releases (#34374) Increment package version after release of Azure.ResourceManager.IotCentral --- .../Azure.ResourceManager.IotCentral/CHANGELOG.md | 12 +++++++++++- .../src/Azure.ResourceManager.IotCentral.csproj | 4 ++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/sdk/iotcentral/Azure.ResourceManager.IotCentral/CHANGELOG.md b/sdk/iotcentral/Azure.ResourceManager.IotCentral/CHANGELOG.md index 47e9347c3d561..ebc18be53084f 100644 --- a/sdk/iotcentral/Azure.ResourceManager.IotCentral/CHANGELOG.md +++ b/sdk/iotcentral/Azure.ResourceManager.IotCentral/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.1.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.0.1 (2023-02-20) ### Other Changes @@ -54,4 +64,4 @@ This package follows the [new Azure SDK guidelines](https://azure.github.io/azur This package is a Public Preview version, so expect incompatible changes in subsequent releases as we improve the product. To provide feedback, submit an issue in our [Azure SDK for .NET GitHub repo](https://github.com/Azure/azure-sdk-for-net/issues). -> NOTE: For more information about unified authentication, refer to [Microsoft Azure Identity documentation for .NET](https://docs.microsoft.com//dotnet/api/overview/azure/identity-readme?view=azure-dotnet). \ No newline at end of file +> NOTE: For more information about unified authentication, refer to [Microsoft Azure Identity documentation for .NET](https://docs.microsoft.com//dotnet/api/overview/azure/identity-readme?view=azure-dotnet). diff --git a/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Azure.ResourceManager.IotCentral.csproj b/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Azure.ResourceManager.IotCentral.csproj index f2eaed11cd420..e8b52ab96e29e 100644 --- a/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Azure.ResourceManager.IotCentral.csproj +++ b/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Azure.ResourceManager.IotCentral.csproj @@ -1,8 +1,8 @@ - 1.0.1 + 1.1.0-beta.1 - 1.0.0 + 1.0.1 Azure.ResourceManager.IotCentral Microsoft Azure Resource Manager client SDK for Azure resource provider Microsoft.IotCentral. azure;management;arm;resource manager;iotcentral From 462320a85af102c0fde9eb3ae15aee8aa4c811ae Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 20 Feb 2023 09:47:45 -0500 Subject: [PATCH 13/72] Increment version for authorization releases (#34375) Increment package version after release of Azure.ResourceManager.Authorization --- .../Azure.ResourceManager.Authorization/CHANGELOG.md | 10 ++++++++++ .../src/Azure.ResourceManager.Authorization.csproj | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/CHANGELOG.md b/sdk/authorization/Azure.ResourceManager.Authorization/CHANGELOG.md index 96d70f656e858..c7a1998477d89 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/CHANGELOG.md +++ b/sdk/authorization/Azure.ResourceManager.Authorization/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.1.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.0.1 (2023-02-20) ### Other Changes diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/src/Azure.ResourceManager.Authorization.csproj b/sdk/authorization/Azure.ResourceManager.Authorization/src/Azure.ResourceManager.Authorization.csproj index c8f76cf586f49..cbcb5922bb3cc 100644 --- a/sdk/authorization/Azure.ResourceManager.Authorization/src/Azure.ResourceManager.Authorization.csproj +++ b/sdk/authorization/Azure.ResourceManager.Authorization/src/Azure.ResourceManager.Authorization.csproj @@ -1,8 +1,8 @@ - 1.0.1 + 1.1.0-beta.1 - 1.0.0 + 1.0.1 Azure.ResourceManager.Authorization Microsoft Azure Resource Manager client SDK for Azure resource provider Microsoft.Authorization. azure;management;arm;resource manager;authorization From 0f48822161daafb8f9440be7f13b862451bd2654 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 20 Feb 2023 09:48:15 -0500 Subject: [PATCH 14/72] Increment version for guestconfiguration releases (#34376) Increment package version after release of Azure.ResourceManager.GuestConfiguration --- .../CHANGELOG.md | 10 ++++++++++ .../Azure.ResourceManager.GuestConfiguration.csproj | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/CHANGELOG.md b/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/CHANGELOG.md index 91abd0cc8c3d0..480f86dd11f97 100644 --- a/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/CHANGELOG.md +++ b/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.1.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.0.1 (2023-02-20) ### Other Changes diff --git a/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Azure.ResourceManager.GuestConfiguration.csproj b/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Azure.ResourceManager.GuestConfiguration.csproj index 5a12ff3fafbe5..738e8db35d53c 100644 --- a/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Azure.ResourceManager.GuestConfiguration.csproj +++ b/sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/src/Azure.ResourceManager.GuestConfiguration.csproj @@ -1,8 +1,8 @@ - 1.0.1 + 1.1.0-beta.1 - 1.0.0 + 1.0.1 Azure.ResourceManager.GuestConfiguration Microsoft Azure Resource Manager client SDK for Azure resource provider Microsoft.GuestConfiguration. azure;management;arm;resource manager;guestconfiguration From ae5230ebae5745d921e0dff4b7f44134a70b7cf5 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 20 Feb 2023 09:49:19 -0500 Subject: [PATCH 15/72] Increment version for resourcemover releases (#34378) Increment package version after release of Azure.ResourceManager.ResourceMover --- .../Azure.ResourceManager.ResourceMover/CHANGELOG.md | 10 ++++++++++ .../src/Azure.ResourceManager.ResourceMover.csproj | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/CHANGELOG.md b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/CHANGELOG.md index 34ed810e47989..68522a2e4240c 100644 --- a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/CHANGELOG.md +++ b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.1.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.0.1 (2023-02-20) ### Other Changes diff --git a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Azure.ResourceManager.ResourceMover.csproj b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Azure.ResourceManager.ResourceMover.csproj index bf8980dfe2205..119debd4cecdf 100644 --- a/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Azure.ResourceManager.ResourceMover.csproj +++ b/sdk/resourcemover/Azure.ResourceManager.ResourceMover/src/Azure.ResourceManager.ResourceMover.csproj @@ -1,8 +1,8 @@ - 1.0.1 + 1.1.0-beta.1 - 1.0.0 + 1.0.1 Azure.ResourceManager.ResourceMover Microsoft Azure Resource Manager client SDK for Azure resource provider Microsoft.Migrate. azure;management;arm;resource manager;migrate From 4e59883557f18c8161483f09389fc789a444da24 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 20 Feb 2023 10:07:34 -0500 Subject: [PATCH 16/72] Increment package version after release of Azure.ResourceManager.ServiceFabric (#34380) --- .../Azure.ResourceManager.ServiceFabric/CHANGELOG.md | 10 ++++++++++ .../src/Azure.ResourceManager.ServiceFabric.csproj | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/CHANGELOG.md b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/CHANGELOG.md index 26f5b1ec0c0c6..d9c7f803eda8d 100644 --- a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/CHANGELOG.md +++ b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.1.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.0.1 (2023-02-20) ### Other Changes diff --git a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Azure.ResourceManager.ServiceFabric.csproj b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Azure.ResourceManager.ServiceFabric.csproj index a04d9b3a9dd67..e55073905ff49 100644 --- a/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Azure.ResourceManager.ServiceFabric.csproj +++ b/sdk/servicefabric/Azure.ResourceManager.ServiceFabric/src/Azure.ResourceManager.ServiceFabric.csproj @@ -1,8 +1,8 @@ - 1.0.1 + 1.1.0-beta.1 - 1.0.0 + 1.0.1 Azure.ResourceManager.ServiceFabric Microsoft Azure Resource Manager client SDK for Azure resource provider Microsoft.ServiceFabric. azure;management;arm;resource manager;servicefabric From 8f0039e67de9c41237bbcc4c9bbd1a598c536079 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 20 Feb 2023 10:07:49 -0500 Subject: [PATCH 17/72] Increment package version after release of Azure.ResourceManager.StreamAnalytics (#34379) --- .../CHANGELOG.md | 12 +++++++++++- .../src/Azure.ResourceManager.StreamAnalytics.csproj | 4 ++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/CHANGELOG.md b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/CHANGELOG.md index 365edc3bddd7d..0e19af2b9bd2f 100644 --- a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/CHANGELOG.md +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.2.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.1.1 (2023-02-20) ### Other Changes @@ -70,4 +80,4 @@ This package follows the [new Azure SDK guidelines](https://azure.github.io/azur This package is a Public Preview version, so expect incompatible changes in subsequent releases as we improve the product. To provide feedback, submit an issue in our [Azure SDK for .NET GitHub repo](https://github.com/Azure/azure-sdk-for-net/issues). -> NOTE: For more information about unified authentication, please refer to [Microsoft Azure Identity documentation for .NET](https://docs.microsoft.com//dotnet/api/overview/azure/identity-readme?view=azure-dotnet). \ No newline at end of file +> NOTE: For more information about unified authentication, please refer to [Microsoft Azure Identity documentation for .NET](https://docs.microsoft.com//dotnet/api/overview/azure/identity-readme?view=azure-dotnet). diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Azure.ResourceManager.StreamAnalytics.csproj b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Azure.ResourceManager.StreamAnalytics.csproj index 98b77b7e9d9ea..23a53ad47ae33 100644 --- a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Azure.ResourceManager.StreamAnalytics.csproj +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Azure.ResourceManager.StreamAnalytics.csproj @@ -1,8 +1,8 @@ - 1.1.1 + 1.2.0-beta.1 - 1.1.0 + 1.1.1 Azure.ResourceManager.StreamAnalytics Microsoft Azure Resource Manager client SDK for Azure resource provider Microsoft.StreamAnalytics. azure;management;arm;resource manager;streamanalytics From 86c79ed3de4d2c7771f8113063d6f9882bd708f2 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 20 Feb 2023 10:29:41 -0500 Subject: [PATCH 18/72] Increment version for orbital releases (#34385) Increment package version after release of Azure.ResourceManager.Orbital --- sdk/orbital/Azure.ResourceManager.Orbital/CHANGELOG.md | 10 ++++++++++ .../src/Azure.ResourceManager.Orbital.csproj | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/sdk/orbital/Azure.ResourceManager.Orbital/CHANGELOG.md b/sdk/orbital/Azure.ResourceManager.Orbital/CHANGELOG.md index b1c8e7e30e2bb..e572b090393e8 100644 --- a/sdk/orbital/Azure.ResourceManager.Orbital/CHANGELOG.md +++ b/sdk/orbital/Azure.ResourceManager.Orbital/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.1.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.0.1 (2023-02-20) ### Other Changes diff --git a/sdk/orbital/Azure.ResourceManager.Orbital/src/Azure.ResourceManager.Orbital.csproj b/sdk/orbital/Azure.ResourceManager.Orbital/src/Azure.ResourceManager.Orbital.csproj index d568216699670..7519374283e9c 100644 --- a/sdk/orbital/Azure.ResourceManager.Orbital/src/Azure.ResourceManager.Orbital.csproj +++ b/sdk/orbital/Azure.ResourceManager.Orbital/src/Azure.ResourceManager.Orbital.csproj @@ -1,8 +1,8 @@ - 1.0.1 + 1.1.0-beta.1 - 1.0.0 + 1.0.1 Azure.ResourceManager.Orbital Microsoft Azure Resource Manager client SDK for Azure resource provider Microsoft.Orbital. azure;management;arm;resource manager;orbital From 0128ec2aac2630d276d62b1ebdbe9e7b181f6b58 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 20 Feb 2023 10:30:11 -0500 Subject: [PATCH 19/72] Increment version for managedservices releases (#34389) Increment package version after release of Azure.ResourceManager.ManagedServices --- .../Azure.ResourceManager.ManagedServices/CHANGELOG.md | 10 ++++++++++ .../src/Azure.ResourceManager.ManagedServices.csproj | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/sdk/managedservices/Azure.ResourceManager.ManagedServices/CHANGELOG.md b/sdk/managedservices/Azure.ResourceManager.ManagedServices/CHANGELOG.md index 18a446f39d48e..b77a72e47937d 100644 --- a/sdk/managedservices/Azure.ResourceManager.ManagedServices/CHANGELOG.md +++ b/sdk/managedservices/Azure.ResourceManager.ManagedServices/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.1.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.0.1 (2023-02-20) ### Other Changes diff --git a/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Azure.ResourceManager.ManagedServices.csproj b/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Azure.ResourceManager.ManagedServices.csproj index fcc6748d086f6..b8e3d3c69ef22 100644 --- a/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Azure.ResourceManager.ManagedServices.csproj +++ b/sdk/managedservices/Azure.ResourceManager.ManagedServices/src/Azure.ResourceManager.ManagedServices.csproj @@ -1,8 +1,8 @@ - 1.0.1 + 1.1.0-beta.1 - 1.0.0 + 1.0.1 Azure.ResourceManager.ManagedServices Microsoft Azure Resource Manager client SDK for Azure resource provider Microsoft.ManagedServices. azure;management;arm;resource manager;managedservices From 08438bb91ab05d503418eea9068cadb2e5cf70a6 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 20 Feb 2023 10:31:57 -0500 Subject: [PATCH 20/72] Increment version for trafficmanager releases (#34390) Increment package version after release of Azure.ResourceManager.TrafficManager --- .../CHANGELOG.md | 12 +++++++++++- .../src/Azure.ResourceManager.TrafficManager.csproj | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/CHANGELOG.md b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/CHANGELOG.md index 7b0e494575281..061574ceae2d9 100644 --- a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/CHANGELOG.md +++ b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.1.0-beta.3 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.1.0-beta.2 (2023-02-20) ### Other Changes @@ -60,4 +70,4 @@ This package follows the [new Azure SDK guidelines](https://azure.github.io/azur This package is a Public Preview version, so expect incompatible changes in subsequent releases as we improve the product. To provide feedback, submit an issue in our [Azure SDK for .NET GitHub repo](https://github.com/Azure/azure-sdk-for-net/issues). -> NOTE: For more information about unified authentication, please refer to [Microsoft Azure Identity documentation for .NET](https://docs.microsoft.com//dotnet/api/overview/azure/identity-readme?view=azure-dotnet). \ No newline at end of file +> NOTE: For more information about unified authentication, please refer to [Microsoft Azure Identity documentation for .NET](https://docs.microsoft.com//dotnet/api/overview/azure/identity-readme?view=azure-dotnet). diff --git a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Azure.ResourceManager.TrafficManager.csproj b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Azure.ResourceManager.TrafficManager.csproj index 1be324ca9f341..87975c80dd902 100644 --- a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Azure.ResourceManager.TrafficManager.csproj +++ b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Azure.ResourceManager.TrafficManager.csproj @@ -1,6 +1,6 @@ - 1.1.0-beta.2 + 1.1.0-beta.3 1.0.0 Azure.ResourceManager.TrafficManager From a40bb20c4e1865bec18eb8003f96dae9fea6ce08 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 20 Feb 2023 10:32:20 -0500 Subject: [PATCH 21/72] Increment version for cognitiveservices releases (#34383) Increment package version after release of Azure.ResourceManager.CognitiveServices --- .../CHANGELOG.md | 10 ++++++++++ .../src/Azure.ResourceManager.CognitiveServices.csproj | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/CHANGELOG.md b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/CHANGELOG.md index 7638d2599da52..2844272daa4dd 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/CHANGELOG.md +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.3.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.2.1 (2023-02-20) ### Other Changes diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Azure.ResourceManager.CognitiveServices.csproj b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Azure.ResourceManager.CognitiveServices.csproj index e6acf36a2dfa9..64c7510dad525 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Azure.ResourceManager.CognitiveServices.csproj +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Azure.ResourceManager.CognitiveServices.csproj @@ -1,8 +1,8 @@ - 1.2.1 + 1.3.0-beta.1 - 1.2.0 + 1.2.1 Azure.ResourceManager.CognitiveServices Microsoft Azure Resource Manager client SDK for Azure resource provider Microsoft.CognitiveServices. azure;management;arm;resource manager;cognitiveservices From 5f421f46ef92ad35dc644fd5fd0dfc4fe4acd5b8 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 20 Feb 2023 10:32:31 -0500 Subject: [PATCH 22/72] Increment version for labservices releases (#34388) Increment package version after release of Azure.ResourceManager.LabServices --- .../Azure.ResourceManager.LabServices/CHANGELOG.md | 10 ++++++++++ .../src/Azure.ResourceManager.LabServices.csproj | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/sdk/labservices/Azure.ResourceManager.LabServices/CHANGELOG.md b/sdk/labservices/Azure.ResourceManager.LabServices/CHANGELOG.md index 5e3c4ce962fc1..77214fe3fd5cf 100644 --- a/sdk/labservices/Azure.ResourceManager.LabServices/CHANGELOG.md +++ b/sdk/labservices/Azure.ResourceManager.LabServices/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.1.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.0.1 (2023-02-20) ### Other Changes diff --git a/sdk/labservices/Azure.ResourceManager.LabServices/src/Azure.ResourceManager.LabServices.csproj b/sdk/labservices/Azure.ResourceManager.LabServices/src/Azure.ResourceManager.LabServices.csproj index 01d12ee1ee956..82216e455a97c 100644 --- a/sdk/labservices/Azure.ResourceManager.LabServices/src/Azure.ResourceManager.LabServices.csproj +++ b/sdk/labservices/Azure.ResourceManager.LabServices/src/Azure.ResourceManager.LabServices.csproj @@ -1,8 +1,8 @@ - 1.0.1 + 1.1.0-beta.1 - 1.0.0 + 1.0.1 Azure.ResourceManager.LabServices Microsoft Azure Resource Manager client SDK for Azure resource provider Microsoft.LabServices. azure;management;arm;resource manager;labservices From 0b06bc0d57f30559fc2f802de68bb33260f7d4d0 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 20 Feb 2023 10:32:41 -0500 Subject: [PATCH 23/72] Increment version for alertsmanagement releases (#34386) Increment package version after release of Azure.ResourceManager.AlertsManagement --- .../CHANGELOG.md | 10 ++++++++++ .../src/Azure.ResourceManager.AlertsManagement.csproj | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/CHANGELOG.md b/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/CHANGELOG.md index 1027b544c9999..b26a0edc05bbc 100644 --- a/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/CHANGELOG.md +++ b/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.1.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.0.1 (2023-02-20) ### Features Added diff --git a/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Azure.ResourceManager.AlertsManagement.csproj b/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Azure.ResourceManager.AlertsManagement.csproj index c602783459c92..a6db4a33b38aa 100644 --- a/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Azure.ResourceManager.AlertsManagement.csproj +++ b/sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/src/Azure.ResourceManager.AlertsManagement.csproj @@ -1,8 +1,8 @@ - 1.0.1 + 1.1.0-beta.1 - 1.0.0 + 1.0.1 Azure.ResourceManager.AlertsManagement Microsoft Azure Resource Manager client SDK for Azure resource provider Microsoft.AlertsManagement. azure;management;arm;resource manager;alertsmanagement From 0b992e813140141df579214e648eddf4bbf11017 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 20 Feb 2023 10:32:54 -0500 Subject: [PATCH 24/72] Increment version for grafana releases (#34381) Increment package version after release of Azure.ResourceManager.Grafana --- sdk/grafana/Azure.ResourceManager.Grafana/CHANGELOG.md | 10 ++++++++++ .../src/Azure.ResourceManager.Grafana.csproj | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/CHANGELOG.md b/sdk/grafana/Azure.ResourceManager.Grafana/CHANGELOG.md index de4de479fcf2e..e69d7806c94d3 100644 --- a/sdk/grafana/Azure.ResourceManager.Grafana/CHANGELOG.md +++ b/sdk/grafana/Azure.ResourceManager.Grafana/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.1.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.0.1 (2023-02-20) ### Other Changes diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/src/Azure.ResourceManager.Grafana.csproj b/sdk/grafana/Azure.ResourceManager.Grafana/src/Azure.ResourceManager.Grafana.csproj index e74c0c086abae..96b84a5480ab2 100644 --- a/sdk/grafana/Azure.ResourceManager.Grafana/src/Azure.ResourceManager.Grafana.csproj +++ b/sdk/grafana/Azure.ResourceManager.Grafana/src/Azure.ResourceManager.Grafana.csproj @@ -1,8 +1,8 @@ - 1.0.1 + 1.1.0-beta.1 - 1.0.0 + 1.0.1 Azure.ResourceManager.Grafana Microsoft Azure Resource Manager client SDK for Azure resource provider Microsoft.Dashboard. azure;management;arm;resource manager;Grafana From 4af1d94241759ea5ed2a583c7ca53827474aaf5a Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 20 Feb 2023 10:33:07 -0500 Subject: [PATCH 25/72] Increment version for mixedreality releases (#34392) Increment package version after release of Azure.ResourceManager.MixedReality --- .../Azure.ResourceManager.MixedReality/CHANGELOG.md | 10 ++++++++++ .../src/Azure.ResourceManager.MixedReality.csproj | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/sdk/mixedreality/Azure.ResourceManager.MixedReality/CHANGELOG.md b/sdk/mixedreality/Azure.ResourceManager.MixedReality/CHANGELOG.md index 5c63d2971cfe9..d1fdfd0d522d9 100644 --- a/sdk/mixedreality/Azure.ResourceManager.MixedReality/CHANGELOG.md +++ b/sdk/mixedreality/Azure.ResourceManager.MixedReality/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.1.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.0.1 (2023-02-20) ### Other Changes diff --git a/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Azure.ResourceManager.MixedReality.csproj b/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Azure.ResourceManager.MixedReality.csproj index 45b31ff201a18..12ba3e8b19947 100644 --- a/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Azure.ResourceManager.MixedReality.csproj +++ b/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Azure.ResourceManager.MixedReality.csproj @@ -1,8 +1,8 @@ - 1.0.1 + 1.1.0-beta.1 - 1.0.0 + 1.0.1 Azure.ResourceManager.MixedReality Microsoft Azure Resource Manager client SDK for Azure resource provider Microsoft.MixedReality. azure;management;arm;resource manager;mixedreality From 5d580dec9571bf51c9c07899a242046e6a94907f Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 20 Feb 2023 10:34:07 -0500 Subject: [PATCH 26/72] Increment version for healthbot releases (#34394) Increment package version after release of Azure.ResourceManager.HealthBot --- .../Azure.ResourceManager.HealthBot/CHANGELOG.md | 10 ++++++++++ .../src/Azure.ResourceManager.HealthBot.csproj | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/sdk/healthbot/Azure.ResourceManager.HealthBot/CHANGELOG.md b/sdk/healthbot/Azure.ResourceManager.HealthBot/CHANGELOG.md index b15d058eee27e..f8fdd254ea2ce 100644 --- a/sdk/healthbot/Azure.ResourceManager.HealthBot/CHANGELOG.md +++ b/sdk/healthbot/Azure.ResourceManager.HealthBot/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.1.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.0.1 (2023-02-20) ### Other Changes diff --git a/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Azure.ResourceManager.HealthBot.csproj b/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Azure.ResourceManager.HealthBot.csproj index 13163a6388ac0..f91cb8b812785 100644 --- a/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Azure.ResourceManager.HealthBot.csproj +++ b/sdk/healthbot/Azure.ResourceManager.HealthBot/src/Azure.ResourceManager.HealthBot.csproj @@ -1,8 +1,8 @@ - 1.0.1 + 1.1.0-beta.1 - 1.0.0 + 1.0.1 Azure.ResourceManager.HealthBot Microsoft Azure Resource Manager client SDK for Azure resource provider Microsoft.HealthBot. azure;management;arm;resource manager;healthbot From 93b19777ff41abdd60c41660754c4486cd4f2761 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 20 Feb 2023 10:34:31 -0500 Subject: [PATCH 27/72] Increment version for digitaltwins releases (#34387) Increment package version after release of Azure.ResourceManager.DigitalTwins --- .../Azure.ResourceManager.DigitalTwins/CHANGELOG.md | 10 ++++++++++ .../src/Azure.ResourceManager.DigitalTwins.csproj | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/CHANGELOG.md b/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/CHANGELOG.md index dfce5d55abb74..4194b3410be8b 100644 --- a/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/CHANGELOG.md +++ b/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.2.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.1.1 (2023-02-20) ### Other Changes diff --git a/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Azure.ResourceManager.DigitalTwins.csproj b/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Azure.ResourceManager.DigitalTwins.csproj index 1d3e973e09c7f..971356a49bcde 100644 --- a/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Azure.ResourceManager.DigitalTwins.csproj +++ b/sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/src/Azure.ResourceManager.DigitalTwins.csproj @@ -1,8 +1,8 @@ - 1.1.1 + 1.2.0-beta.1 - 1.1.0 + 1.1.1 Azure.ResourceManager.DigitalTwins Microsoft Azure Resource Manager client SDK for Azure resource provider Microsoft.DigitalTwins. azure;management;arm;resource manager;digitaltwins From 171a16e2fa615d81d87f9a88c883796b6e31a93e Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 20 Feb 2023 10:35:40 -0500 Subject: [PATCH 28/72] Increment version for maps releases (#34391) Increment package version after release of Azure.ResourceManager.Maps --- sdk/maps/Azure.ResourceManager.Maps/CHANGELOG.md | 10 ++++++++++ .../src/Azure.ResourceManager.Maps.csproj | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/sdk/maps/Azure.ResourceManager.Maps/CHANGELOG.md b/sdk/maps/Azure.ResourceManager.Maps/CHANGELOG.md index c49c2d057409e..92a08ba620046 100644 --- a/sdk/maps/Azure.ResourceManager.Maps/CHANGELOG.md +++ b/sdk/maps/Azure.ResourceManager.Maps/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.1.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.0.1 (2023-02-20) ### Other Changes diff --git a/sdk/maps/Azure.ResourceManager.Maps/src/Azure.ResourceManager.Maps.csproj b/sdk/maps/Azure.ResourceManager.Maps/src/Azure.ResourceManager.Maps.csproj index f02ccc3e5069a..38b8eeb87fc49 100644 --- a/sdk/maps/Azure.ResourceManager.Maps/src/Azure.ResourceManager.Maps.csproj +++ b/sdk/maps/Azure.ResourceManager.Maps/src/Azure.ResourceManager.Maps.csproj @@ -1,8 +1,8 @@ - 1.0.1 + 1.1.0-beta.1 - 1.0.0 + 1.0.1 Azure.ResourceManager.Maps Microsoft Azure Resource Manager client SDK for Azure resource provider Microsoft.Maps. azure;management;arm;resource manager;maps From e24cde1381733a1033cad45959a6d6c0ad6fc4fa Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 20 Feb 2023 10:38:27 -0500 Subject: [PATCH 29/72] Increment version for synapse releases (#34393) Increment package version after release of Azure.ResourceManager.Synapse --- sdk/synapse/Azure.ResourceManager.Synapse/CHANGELOG.md | 10 ++++++++++ .../src/Azure.ResourceManager.Synapse.csproj | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/CHANGELOG.md b/sdk/synapse/Azure.ResourceManager.Synapse/CHANGELOG.md index a043ca516eb42..631ffe67bff88 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/CHANGELOG.md +++ b/sdk/synapse/Azure.ResourceManager.Synapse/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.2.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.1.1 (2023-02-20) ### Other Changes diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Azure.ResourceManager.Synapse.csproj b/sdk/synapse/Azure.ResourceManager.Synapse/src/Azure.ResourceManager.Synapse.csproj index 0472c8fcf0b5d..8727adf0d485d 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Azure.ResourceManager.Synapse.csproj +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Azure.ResourceManager.Synapse.csproj @@ -1,8 +1,8 @@ - 1.1.1 + 1.2.0-beta.1 - 1.1.0 + 1.1.1 Azure.ResourceManager.Synapse Microsoft Azure Resource Manager client SDK for Azure resource provider Microsoft.Synapse. azure;management;arm;resource manager;synapse From d1b07a46888b519f4d73997b649447625d177767 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 20 Feb 2023 10:51:04 -0500 Subject: [PATCH 30/72] Increment version for subscription releases (#34396) Increment package version after release of Azure.ResourceManager.Subscription --- .../Azure.ResourceManager.Subscription/CHANGELOG.md | 12 +++++++++++- .../src/Azure.ResourceManager.Subscription.csproj | 4 ++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/sdk/subscription/Azure.ResourceManager.Subscription/CHANGELOG.md b/sdk/subscription/Azure.ResourceManager.Subscription/CHANGELOG.md index cec3636f868ac..0f4da17b717c6 100644 --- a/sdk/subscription/Azure.ResourceManager.Subscription/CHANGELOG.md +++ b/sdk/subscription/Azure.ResourceManager.Subscription/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.1.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.0.1 (2023-02-20) ### Other Changes @@ -45,4 +55,4 @@ This package follows the [new Azure SDK guidelines](https://azure.github.io/azur This package is a Public Preview version, so expect incompatible changes in subsequent releases as we improve the product. To provide feedback, submit an issue in our [Azure SDK for .NET GitHub repo](https://github.com/Azure/azure-sdk-for-net/issues). -> NOTE: For more information about unified authentication, please refer to [Microsoft Azure Identity documentation for .NET](https://docs.microsoft.com//dotnet/api/overview/azure/identity-readme?view=azure-dotnet). \ No newline at end of file +> NOTE: For more information about unified authentication, please refer to [Microsoft Azure Identity documentation for .NET](https://docs.microsoft.com//dotnet/api/overview/azure/identity-readme?view=azure-dotnet). diff --git a/sdk/subscription/Azure.ResourceManager.Subscription/src/Azure.ResourceManager.Subscription.csproj b/sdk/subscription/Azure.ResourceManager.Subscription/src/Azure.ResourceManager.Subscription.csproj index 4e3823e9d7d99..be05a7963dbd7 100644 --- a/sdk/subscription/Azure.ResourceManager.Subscription/src/Azure.ResourceManager.Subscription.csproj +++ b/sdk/subscription/Azure.ResourceManager.Subscription/src/Azure.ResourceManager.Subscription.csproj @@ -1,8 +1,8 @@ - 1.0.1 + 1.1.0-beta.1 - 1.0.0 + 1.0.1 Azure.ResourceManager.Subscription Microsoft Azure Resource Manager client SDK for Azure resource provider Microsoft.Subscription. azure;management;arm;resource manager;subscription From c8fe8df204de424660c6925c0e1dafe7c94e9144 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 20 Feb 2023 11:11:22 -0500 Subject: [PATCH 31/72] Increment version for search releases (#34395) Increment package version after release of Azure.ResourceManager.Search --- sdk/search/Azure.ResourceManager.Search/CHANGELOG.md | 10 ++++++++++ .../src/Azure.ResourceManager.Search.csproj | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/sdk/search/Azure.ResourceManager.Search/CHANGELOG.md b/sdk/search/Azure.ResourceManager.Search/CHANGELOG.md index c3cbc1f55d7a4..b04635529d929 100644 --- a/sdk/search/Azure.ResourceManager.Search/CHANGELOG.md +++ b/sdk/search/Azure.ResourceManager.Search/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.1.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.0.1 (2023-02-20) ### Other Changes diff --git a/sdk/search/Azure.ResourceManager.Search/src/Azure.ResourceManager.Search.csproj b/sdk/search/Azure.ResourceManager.Search/src/Azure.ResourceManager.Search.csproj index aeb0b2493b9e9..c25e4f75bd490 100644 --- a/sdk/search/Azure.ResourceManager.Search/src/Azure.ResourceManager.Search.csproj +++ b/sdk/search/Azure.ResourceManager.Search/src/Azure.ResourceManager.Search.csproj @@ -1,8 +1,8 @@ - 1.0.1 + 1.1.0-beta.1 - 1.0.0 + 1.0.1 Azure.ResourceManager.Search Microsoft Azure Resource Manager client SDK for Azure resource provider Microsoft.Search. azure;management;arm;resource manager;search From bc5930762b8f33ce0df7929baf0662748c96b719 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 20 Feb 2023 11:29:22 -0500 Subject: [PATCH 32/72] Increment version for iothub releases (#34397) Increment package version after release of Azure.ResourceManager.IotHub --- sdk/iothub/Azure.ResourceManager.IotHub/CHANGELOG.md | 10 ++++++++++ .../src/Azure.ResourceManager.IotHub.csproj | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/CHANGELOG.md b/sdk/iothub/Azure.ResourceManager.IotHub/CHANGELOG.md index ef8eaf10b19cf..df58f9c5189cf 100644 --- a/sdk/iothub/Azure.ResourceManager.IotHub/CHANGELOG.md +++ b/sdk/iothub/Azure.ResourceManager.IotHub/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.1.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.0.1 (2023-02-20) ### Other Changes diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/Azure.ResourceManager.IotHub.csproj b/sdk/iothub/Azure.ResourceManager.IotHub/src/Azure.ResourceManager.IotHub.csproj index 5b36fcb0c7466..eb14cb9952e20 100644 --- a/sdk/iothub/Azure.ResourceManager.IotHub/src/Azure.ResourceManager.IotHub.csproj +++ b/sdk/iothub/Azure.ResourceManager.IotHub/src/Azure.ResourceManager.IotHub.csproj @@ -1,8 +1,8 @@ - 1.0.1 + 1.1.0-beta.1 - 1.0.0 + 1.0.1 Azure.ResourceManager.IotHub Microsoft Azure Resource Manager client SDK for Azure resource provider Microsoft.Devices IotHub. azure;management;arm;resource manager;iothub From da6488a03781f71a9dbe3b46d2e5e4304ac11545 Mon Sep 17 00:00:00 2001 From: Dapeng Zhang Date: Tue, 21 Feb 2023 12:25:07 +0800 Subject: [PATCH 33/72] prepare release for monitor (#34400) --- .../Azure.ResourceManager.Monitor/CHANGELOG.md | 11 ++++------- .../src/Azure.ResourceManager.Monitor.csproj | 2 +- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/CHANGELOG.md b/sdk/monitor/Azure.ResourceManager.Monitor/CHANGELOG.md index 366bcc3f0cf5a..20a7be1c2d27c 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/CHANGELOG.md +++ b/sdk/monitor/Azure.ResourceManager.Monitor/CHANGELOG.md @@ -1,15 +1,12 @@ # Release History -## 1.1.0-beta.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed +## 1.0.1 (2023-02-21) ### Other Changes +- Upgraded dependent `Azure.Core` to `1.28.0`. +- Upgraded dependent `Azure.ResourceManager` to `1.4.0`. + ## 1.0.0 (2022-09-26) This release is the first stable release of the Monitor Management library. diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Azure.ResourceManager.Monitor.csproj b/sdk/monitor/Azure.ResourceManager.Monitor/src/Azure.ResourceManager.Monitor.csproj index 3f87758bb0bb9..5e727a7ffca42 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Azure.ResourceManager.Monitor.csproj +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Azure.ResourceManager.Monitor.csproj @@ -1,6 +1,6 @@ - 1.1.0-beta.1 + 1.0.1 1.0.0 Azure.ResourceManager.Monitor From 6561581cfc4a11448d8d23a3ebd082b431ca71c9 Mon Sep 17 00:00:00 2001 From: sebastianrex <107705086+sebastianrex@users.noreply.github.com> Date: Tue, 21 Feb 2023 05:25:14 +0000 Subject: [PATCH 34/72] Add voiceservices sdk (#33673) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 。 --- .vscode/cspell.json | 8 + sdk/resourcemanager/ci.mgmt.yml | 2 + .../Azure.ResourceManager.VoiceServices.sln | 65 + .../CHANGELOG.md | 19 + .../Directory.Build.props | 6 + .../README.md | 85 + ...rceManager.VoiceServices.netstandard2.0.cs | 326 ++++ ...sourceManager.VoiceServices.Samples.csproj | 10 + .../Sample_CommunicationsGatewayCollection.cs | 202 ++ .../Sample_CommunicationsGatewayResource.cs | 144 ++ .../Sample_SubscriptionResourceExtensions.cs | 52 + .../Samples/Sample_TestLineCollection.cs | 165 ++ .../Samples/Sample_TestLineResource.cs | 114 ++ .../samples/autorest.tests.md | 13 + ...Azure.ResourceManager.VoiceServices.csproj | 8 + .../Generated/ArmVoiceServicesModelFactory.cs | 80 + .../CommunicationsGatewayCollection.cs | 341 ++++ .../Generated/CommunicationsGatewayData.cs | 122 ++ .../CommunicationsGatewayResource.cs | 655 +++++++ .../ResourceGroupResourceExtensionClient.cs | 41 + .../SubscriptionResourceExtensionClient.cs | 158 ++ .../Extensions/VoiceServicesExtensions.cs | 226 +++ .../CommunicationsGatewayOperationSource.cs | 40 + .../TestLineOperationSource.cs | 40 + .../VoiceServicesArmOperation.cs | 70 + .../VoiceServicesArmOperationOfT.cs | 76 + .../AutoGeneratedDomainNameLabelScope.cs | 57 + ...ckNameAvailabilityContent.Serialization.cs | 31 + .../Models/CheckNameAvailabilityContent.cs | 23 + .../Models/CheckNameAvailabilityReason.cs | 51 + ...kNameAvailabilityResponse.Serialization.cs | 51 + .../Models/CheckNameAvailabilityResponse.cs | 36 + ...CommunicationsGatewayData.Serialization.cs | 339 ++++ ...icationsGatewayListResult.Serialization.cs | 48 + .../Models/CommunicationsGatewayListResult.cs | 43 + ...ommunicationsGatewayPatch.Serialization.cs | 32 + .../Models/CommunicationsGatewayPatch.cs | 25 + .../Models/CommunicationsPlatform.cs | 51 + .../src/Generated/Models/Connectivity.cs | 48 + .../src/Generated/Models/E911Type.cs | 51 + .../PrimaryRegionProperties.Serialization.cs | 126 ++ .../Models/PrimaryRegionProperties.cs | 53 + .../src/Generated/Models/ProvisioningState.cs | 54 + .../ServiceRegionProperties.Serialization.cs | 45 + .../Models/ServiceRegionProperties.cs | 34 + .../src/Generated/Models/Status.cs | 51 + .../src/Generated/Models/TeamsCodec.cs | 63 + .../Models/TestLineData.Serialization.cs | 149 ++ .../TestLineListResult.Serialization.cs | 48 + .../Generated/Models/TestLineListResult.cs | 43 + .../Models/TestLinePatch.Serialization.cs | 32 + .../src/Generated/Models/TestLinePatch.cs | 25 + .../src/Generated/Models/TestLinePurpose.cs | 51 + .../src/Generated/ProviderConstants.cs | 16 + .../CommunicationsGatewaysRestOperations.cs | 638 +++++++ .../NameAvailabilityRestOperations.cs | 119 ++ .../RestOperations/TestLinesRestOperations.cs | 537 ++++++ .../src/Generated/TestLineCollection.cs | 340 ++++ .../src/Generated/TestLineData.cs | 48 + .../src/Generated/TestLineResource.cs | 601 ++++++ .../src/Properties/AssemblyInfo.cs | 9 + .../src/autorest.md | 48 + ...ResourceManager.VoiceServices.Tests.csproj | 9 + .../CommunicationsGatewayCRUDTests/CRUD.json | 1273 +++++++++++++ .../CRUDAsync.json | 1201 ++++++++++++ ...nsGatewaysAtResourceGroupLevel()Async.json | 546 ++++++ ...onsGatewaysAtSubscriptionLevel()Async.json | 1688 +++++++++++++++++ .../SessionRecords/TestLineTests/CRUDL.json | 970 ++++++++++ .../TestLineTests/CRUDLAsync.json | 969 ++++++++++ .../Tests/CommunicationsGatewayCRUDTests.cs | 70 + .../Tests/ListCommunicationsGatewaysTests.cs | 55 + .../tests/Tests/TestLineTests.cs | 88 + .../tests/VoiceServicesManagementTestBase.cs | 78 + .../VoiceServicesManagementTestEnvironment.cs | 11 + sdk/voiceservices/ci.mgmt.yml | 22 + 75 files changed, 14064 insertions(+) create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/Azure.ResourceManager.VoiceServices.sln create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/CHANGELOG.md create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/Directory.Build.props create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/README.md create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/api/Azure.ResourceManager.VoiceServices.netstandard2.0.cs create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/samples/Azure.ResourceManager.VoiceServices.Samples.csproj create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/samples/Generated/Samples/Sample_CommunicationsGatewayCollection.cs create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/samples/Generated/Samples/Sample_CommunicationsGatewayResource.cs create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/samples/Generated/Samples/Sample_TestLineCollection.cs create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/samples/Generated/Samples/Sample_TestLineResource.cs create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/samples/autorest.tests.md create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Azure.ResourceManager.VoiceServices.csproj create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/ArmVoiceServicesModelFactory.cs create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/CommunicationsGatewayCollection.cs create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/CommunicationsGatewayData.cs create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/CommunicationsGatewayResource.cs create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Extensions/VoiceServicesExtensions.cs create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/LongRunningOperation/CommunicationsGatewayOperationSource.cs create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/LongRunningOperation/TestLineOperationSource.cs create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/LongRunningOperation/VoiceServicesArmOperation.cs create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/LongRunningOperation/VoiceServicesArmOperationOfT.cs create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/AutoGeneratedDomainNameLabelScope.cs create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/CheckNameAvailabilityContent.Serialization.cs create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/CheckNameAvailabilityContent.cs create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/CheckNameAvailabilityReason.cs create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/CheckNameAvailabilityResponse.Serialization.cs create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/CheckNameAvailabilityResponse.cs create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/CommunicationsGatewayData.Serialization.cs create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/CommunicationsGatewayListResult.Serialization.cs create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/CommunicationsGatewayListResult.cs create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/CommunicationsGatewayPatch.Serialization.cs create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/CommunicationsGatewayPatch.cs create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/CommunicationsPlatform.cs create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/Connectivity.cs create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/E911Type.cs create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/PrimaryRegionProperties.Serialization.cs create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/PrimaryRegionProperties.cs create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/ProvisioningState.cs create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/ServiceRegionProperties.Serialization.cs create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/ServiceRegionProperties.cs create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/Status.cs create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/TeamsCodec.cs create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/TestLineData.Serialization.cs create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/TestLineListResult.Serialization.cs create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/TestLineListResult.cs create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/TestLinePatch.Serialization.cs create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/TestLinePatch.cs create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/TestLinePurpose.cs create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/ProviderConstants.cs create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/RestOperations/CommunicationsGatewaysRestOperations.cs create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/RestOperations/NameAvailabilityRestOperations.cs create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/RestOperations/TestLinesRestOperations.cs create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/TestLineCollection.cs create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/TestLineData.cs create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/TestLineResource.cs create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Properties/AssemblyInfo.cs create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/autorest.md create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/tests/Azure.ResourceManager.VoiceServices.Tests.csproj create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/tests/SessionRecords/CommunicationsGatewayCRUDTests/CRUD.json create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/tests/SessionRecords/CommunicationsGatewayCRUDTests/CRUDAsync.json create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/tests/SessionRecords/ListCommunicationsGatewaysTests/TestListCommunicationsGatewaysAtResourceGroupLevel()Async.json create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/tests/SessionRecords/ListCommunicationsGatewaysTests/TestListCommunicationsGatewaysAtSubscriptionLevel()Async.json create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/tests/SessionRecords/TestLineTests/CRUDL.json create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/tests/SessionRecords/TestLineTests/CRUDLAsync.json create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/tests/Tests/CommunicationsGatewayCRUDTests.cs create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/tests/Tests/ListCommunicationsGatewaysTests.cs create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/tests/Tests/TestLineTests.cs create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/tests/VoiceServicesManagementTestBase.cs create mode 100644 sdk/voiceservices/Azure.ResourceManager.VoiceServices/tests/VoiceServicesManagementTestEnvironment.cs create mode 100644 sdk/voiceservices/ci.mgmt.yml diff --git a/.vscode/cspell.json b/.vscode/cspell.json index 6c1895aca473f..eaabd6ad56e35 100644 --- a/.vscode/cspell.json +++ b/.vscode/cspell.json @@ -980,6 +980,14 @@ "Orgs" ] }, + { + "filename": "**/sdk/voiceservices/**/*.cs", + "words": [ + "Esrp", + "Pcma", + "Pcmu" + ] + }, { "filename": "**/sdk/webpubsub/**/*.cs", "words": [ diff --git a/sdk/resourcemanager/ci.mgmt.yml b/sdk/resourcemanager/ci.mgmt.yml index bbeab47d2e8d8..6b8f772e47bc6 100644 --- a/sdk/resourcemanager/ci.mgmt.yml +++ b/sdk/resourcemanager/ci.mgmt.yml @@ -158,6 +158,7 @@ trigger: - sdk/support/Azure.ResourceManager.Support - sdk/synapse/Azure.ResourceManager.Synapse - sdk/trafficmanager/Azure.ResourceManager.TrafficManager + - sdk/voiceservices/Azure.ResourceManager.VoiceServices - sdk/webpubsub/Azure.ResourceManager.WebPubSub - sdk/websites/Azure.ResourceManager.AppService - sdk/workloadmonitor/Azure.ResourceManager.WorkloadMonitor @@ -323,6 +324,7 @@ pr: - sdk/support/Azure.ResourceManager.Support - sdk/synapse/Azure.ResourceManager.Synapse - sdk/trafficmanager/Azure.ResourceManager.TrafficManager + - sdk/voiceservices/Azure.ResourceManager.VoiceServices - sdk/webpubsub/Azure.ResourceManager.WebPubSub - sdk/websites/Azure.ResourceManager.AppService - sdk/workloadmonitor/Azure.ResourceManager.WorkloadMonitor diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/Azure.ResourceManager.VoiceServices.sln b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/Azure.ResourceManager.VoiceServices.sln new file mode 100644 index 0000000000000..f22c7ecf19163 --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/Azure.ResourceManager.VoiceServices.sln @@ -0,0 +1,65 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.4.33403.182 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.ResourceManager.VoiceServices", "src\Azure.ResourceManager.VoiceServices.csproj", "{76D7911A-B4F4-4198-B4A0-B6E0768110AB}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.ResourceManager.VoiceServices.Tests", "tests\Azure.ResourceManager.VoiceServices.Tests.csproj", "{75EEC25D-13CE-4A24-A314-D4F835EA5706}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.ResourceManager.VoiceServices.Samples", "samples\Azure.ResourceManager.VoiceServices.Samples.csproj", "{18F152D5-2ECB-43E8-ADFC-EC3EA3F68843}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|Any CPU = Release|Any CPU + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {76D7911A-B4F4-4198-B4A0-B6E0768110AB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {76D7911A-B4F4-4198-B4A0-B6E0768110AB}.Debug|Any CPU.Build.0 = Debug|Any CPU + {76D7911A-B4F4-4198-B4A0-B6E0768110AB}.Debug|x64.ActiveCfg = Debug|Any CPU + {76D7911A-B4F4-4198-B4A0-B6E0768110AB}.Debug|x64.Build.0 = Debug|Any CPU + {76D7911A-B4F4-4198-B4A0-B6E0768110AB}.Debug|x86.ActiveCfg = Debug|Any CPU + {76D7911A-B4F4-4198-B4A0-B6E0768110AB}.Debug|x86.Build.0 = Debug|Any CPU + {76D7911A-B4F4-4198-B4A0-B6E0768110AB}.Release|Any CPU.ActiveCfg = Release|Any CPU + {76D7911A-B4F4-4198-B4A0-B6E0768110AB}.Release|Any CPU.Build.0 = Release|Any CPU + {76D7911A-B4F4-4198-B4A0-B6E0768110AB}.Release|x64.ActiveCfg = Release|Any CPU + {76D7911A-B4F4-4198-B4A0-B6E0768110AB}.Release|x64.Build.0 = Release|Any CPU + {76D7911A-B4F4-4198-B4A0-B6E0768110AB}.Release|x86.ActiveCfg = Release|Any CPU + {76D7911A-B4F4-4198-B4A0-B6E0768110AB}.Release|x86.Build.0 = Release|Any CPU + {75EEC25D-13CE-4A24-A314-D4F835EA5706}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {75EEC25D-13CE-4A24-A314-D4F835EA5706}.Debug|Any CPU.Build.0 = Debug|Any CPU + {75EEC25D-13CE-4A24-A314-D4F835EA5706}.Debug|x64.ActiveCfg = Debug|Any CPU + {75EEC25D-13CE-4A24-A314-D4F835EA5706}.Debug|x64.Build.0 = Debug|Any CPU + {75EEC25D-13CE-4A24-A314-D4F835EA5706}.Debug|x86.ActiveCfg = Debug|Any CPU + {75EEC25D-13CE-4A24-A314-D4F835EA5706}.Debug|x86.Build.0 = Debug|Any CPU + {75EEC25D-13CE-4A24-A314-D4F835EA5706}.Release|Any CPU.ActiveCfg = Release|Any CPU + {75EEC25D-13CE-4A24-A314-D4F835EA5706}.Release|Any CPU.Build.0 = Release|Any CPU + {75EEC25D-13CE-4A24-A314-D4F835EA5706}.Release|x64.ActiveCfg = Release|Any CPU + {75EEC25D-13CE-4A24-A314-D4F835EA5706}.Release|x64.Build.0 = Release|Any CPU + {75EEC25D-13CE-4A24-A314-D4F835EA5706}.Release|x86.ActiveCfg = Release|Any CPU + {75EEC25D-13CE-4A24-A314-D4F835EA5706}.Release|x86.Build.0 = Release|Any CPU + {18F152D5-2ECB-43E8-ADFC-EC3EA3F68843}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {18F152D5-2ECB-43E8-ADFC-EC3EA3F68843}.Debug|Any CPU.Build.0 = Debug|Any CPU + {18F152D5-2ECB-43E8-ADFC-EC3EA3F68843}.Debug|x64.ActiveCfg = Debug|Any CPU + {18F152D5-2ECB-43E8-ADFC-EC3EA3F68843}.Debug|x64.Build.0 = Debug|Any CPU + {18F152D5-2ECB-43E8-ADFC-EC3EA3F68843}.Debug|x86.ActiveCfg = Debug|Any CPU + {18F152D5-2ECB-43E8-ADFC-EC3EA3F68843}.Debug|x86.Build.0 = Debug|Any CPU + {18F152D5-2ECB-43E8-ADFC-EC3EA3F68843}.Release|Any CPU.ActiveCfg = Release|Any CPU + {18F152D5-2ECB-43E8-ADFC-EC3EA3F68843}.Release|Any CPU.Build.0 = Release|Any CPU + {18F152D5-2ECB-43E8-ADFC-EC3EA3F68843}.Release|x64.ActiveCfg = Release|Any CPU + {18F152D5-2ECB-43E8-ADFC-EC3EA3F68843}.Release|x64.Build.0 = Release|Any CPU + {18F152D5-2ECB-43E8-ADFC-EC3EA3F68843}.Release|x86.ActiveCfg = Release|Any CPU + {18F152D5-2ECB-43E8-ADFC-EC3EA3F68843}.Release|x86.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {67C2B4D1-1DDA-4751-B224-C2B3314C93A8} + EndGlobalSection +EndGlobal diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/CHANGELOG.md b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/CHANGELOG.md new file mode 100644 index 0000000000000..ba01b18053ec2 --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/CHANGELOG.md @@ -0,0 +1,19 @@ +# Release History + +## 1.0.0-beta.1 (2023-02-20) + +### General New Features + +Initial package version. + +This package follows the [new Azure SDK guidelines](https://azure.github.io/azure-sdk/general_introduction.html), and provides many core capabilities: + + - Support MSAL.NET, Azure.Identity is out of box for supporting MSAL.NET. + - Support [OpenTelemetry](https://opentelemetry.io/) for distributed tracing. + - HTTP pipeline with custom policies. + - Better error-handling. + - Support uniform telemetry across all languages. + +This package is a Public Preview version, so expect incompatible changes in subsequent releases as we improve the product. To provide feedback, submit an issue in our [Azure SDK for .NET GitHub repo](https://github.com/Azure/azure-sdk-for-net/issues). + +> NOTE: For more information about unified authentication, please refer to [Microsoft Azure Identity documentation for .NET](https://docs.microsoft.com//dotnet/api/overview/azure/identity-readme?view=azure-dotnet). \ No newline at end of file diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/Directory.Build.props b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/Directory.Build.props new file mode 100644 index 0000000000000..1a9611bd49242 --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/Directory.Build.props @@ -0,0 +1,6 @@ + + + + diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/README.md b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/README.md new file mode 100644 index 0000000000000..174eb812c3a76 --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/README.md @@ -0,0 +1,85 @@ +# Microsoft Azure VoiceServices management client library for .NET + +The VoiceServices management client library supports managing Azure Communications Gateway resources. + +Azure Communications Gateway is a managed, cloud-based voice gateway that simplifies connecting +operator fixed and mobile voice networks to Teams Phone. It combines a Teams-certified and +mobile-standards-compliant Session Border Controller (SBC) with API mediation function—removing the +need for disruptive voice network changes and substantial IT system integration projects. + +This library follows the [new Azure SDK guidelines](https://azure.github.io/azure-sdk/general_introduction.html), and provides many core capabilities: + + - Support MSAL.NET, Azure.Identity is out of box for supporting MSAL.NET. + - Support [OpenTelemetry](https://opentelemetry.io/) for distributed tracing. + - HTTP pipeline with custom policies. + - Better error-handling. + - Support uniform telemetry across all languages. + +## Getting started + +### Install the package + +Install the Microsoft Azure VoiceServices management library for .NET with [NuGet](https://www.nuget.org/): + +```dotnetcli +dotnet add package Azure.ResourceManager.VoiceServices --prerelease +``` + +### Prerequisites + +* You must have an [Microsoft Azure subscription](https://azure.microsoft.com/free/dotnet/). + +### Authenticate the Client + +To create an authenticated client and start interacting with Microsoft Azure resources, see the [quickstart guide here](https://github.com/Azure/azure-sdk-for-net/blob/main/doc/dev/mgmt_quickstart.md). + +## Key concepts + +Key concepts of the Microsoft Azure SDK for .NET can be found [here](https://azure.github.io/azure-sdk/dotnet_introduction.html) + +## Documentation + +Documentation is available to help you learn how to use this package: + +- [Quickstart](https://github.com/Azure/azure-sdk-for-net/blob/main/doc/dev/mgmt_quickstart.md). +- [API References](https://docs.microsoft.com/dotnet/api/?view=azure-dotnet). +- [Authentication](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md). + +## Examples + +Code samples for using the management library for .NET can be found in the following locations +- [.NET Management Library Code Samples](https://aka.ms/azuresdk-net-mgmt-samples) + +## Troubleshooting + +- File an issue via [GitHub Issues](https://github.com/Azure/azure-sdk-for-net/issues). +- Check [previous questions](https://stackoverflow.com/questions/tagged/azure+.net) or ask new ones on Stack Overflow using Azure and .NET tags. + +## Next steps + +For more information about Microsoft Azure SDK, see [this website](https://azure.github.io/azure-sdk/). + +## Contributing + +For details on contributing to this repository, see the [contributing +guide][cg]. + +This project welcomes contributions and suggestions. Most contributions +require you to agree to a Contributor License Agreement (CLA) declaring +that you have the right to, and actually do, grant us the rights to use +your contribution. For details, visit . + +When you submit a pull request, a CLA-bot will automatically determine +whether you need to provide a CLA and decorate the PR appropriately +(for example, label, comment). Follow the instructions provided by the +bot. You'll only need to do this action once across all repositories +using our CLA. + +This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For +more information, see the [Code of Conduct FAQ][coc_faq] or contact + with any other questions or comments. + + +[cg]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/resourcemanager/Azure.ResourceManager/docs/CONTRIBUTING.md +[coc]: https://opensource.microsoft.com/codeofconduct/ +[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ \ No newline at end of file diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/api/Azure.ResourceManager.VoiceServices.netstandard2.0.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/api/Azure.ResourceManager.VoiceServices.netstandard2.0.cs new file mode 100644 index 0000000000000..4d4facecda7a2 --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/api/Azure.ResourceManager.VoiceServices.netstandard2.0.cs @@ -0,0 +1,326 @@ +namespace Azure.ResourceManager.VoiceServices +{ + public partial class CommunicationsGatewayCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected CommunicationsGatewayCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string communicationsGatewayName, Azure.ResourceManager.VoiceServices.CommunicationsGatewayData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string communicationsGatewayName, Azure.ResourceManager.VoiceServices.CommunicationsGatewayData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string communicationsGatewayName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string communicationsGatewayName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string communicationsGatewayName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string communicationsGatewayName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class CommunicationsGatewayData : Azure.ResourceManager.Models.TrackedResourceData + { + public CommunicationsGatewayData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } + public System.BinaryData ApiBridge { get { throw null; } set { } } + public string AutoGeneratedDomainNameLabel { get { throw null; } } + public Azure.ResourceManager.VoiceServices.Models.AutoGeneratedDomainNameLabelScope? AutoGeneratedDomainNameLabelScope { get { throw null; } set { } } + public System.Collections.Generic.IList Codecs { get { throw null; } } + public Azure.ResourceManager.VoiceServices.Models.Connectivity? Connectivity { get { throw null; } set { } } + public Azure.ResourceManager.VoiceServices.Models.E911Type? E911Type { get { throw null; } set { } } + public System.Collections.Generic.IList EmergencyDialStrings { get { throw null; } } + public bool? OnPremMcpEnabled { get { throw null; } set { } } + public System.Collections.Generic.IList Platforms { get { throw null; } } + public Azure.ResourceManager.VoiceServices.Models.ProvisioningState? ProvisioningState { get { throw null; } } + public System.Collections.Generic.IList ServiceLocations { get { throw null; } } + public Azure.ResourceManager.VoiceServices.Models.Status? Status { get { throw null; } } + public string TeamsVoicemailPilotNumber { get { throw null; } set { } } + } + public partial class CommunicationsGatewayResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected CommunicationsGatewayResource() { } + public virtual Azure.ResourceManager.VoiceServices.CommunicationsGatewayData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string communicationsGatewayName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetTestLine(string testLineName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetTestLineAsync(string testLineName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.VoiceServices.TestLineCollection GetTestLines() { throw null; } + public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Update(Azure.ResourceManager.VoiceServices.Models.CommunicationsGatewayPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.VoiceServices.Models.CommunicationsGatewayPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class TestLineCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected TestLineCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string testLineName, Azure.ResourceManager.VoiceServices.TestLineData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string testLineName, Azure.ResourceManager.VoiceServices.TestLineData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string testLineName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string testLineName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string testLineName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string testLineName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class TestLineData : Azure.ResourceManager.Models.TrackedResourceData + { + public TestLineData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } + public string PhoneNumber { get { throw null; } set { } } + public Azure.ResourceManager.VoiceServices.Models.ProvisioningState? ProvisioningState { get { throw null; } } + public Azure.ResourceManager.VoiceServices.Models.TestLinePurpose? Purpose { get { throw null; } set { } } + } + public partial class TestLineResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected TestLineResource() { } + public virtual Azure.ResourceManager.VoiceServices.TestLineData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string communicationsGatewayName, string testLineName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Update(Azure.ResourceManager.VoiceServices.Models.TestLinePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.VoiceServices.Models.TestLinePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public static partial class VoiceServicesExtensions + { + public static Azure.Response CheckLocalNameAvailability(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, Azure.ResourceManager.VoiceServices.Models.CheckNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> CheckLocalNameAvailabilityAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, Azure.ResourceManager.VoiceServices.Models.CheckNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Response GetCommunicationsGateway(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string communicationsGatewayName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetCommunicationsGatewayAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string communicationsGatewayName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.VoiceServices.CommunicationsGatewayResource GetCommunicationsGatewayResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.VoiceServices.CommunicationsGatewayCollection GetCommunicationsGateways(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } + public static Azure.Pageable GetCommunicationsGateways(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.AsyncPageable GetCommunicationsGatewaysAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.VoiceServices.TestLineResource GetTestLineResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + } +} +namespace Azure.ResourceManager.VoiceServices.Models +{ + public static partial class ArmVoiceServicesModelFactory + { + public static Azure.ResourceManager.VoiceServices.Models.CheckNameAvailabilityResponse CheckNameAvailabilityResponse(bool? nameAvailable = default(bool?), Azure.ResourceManager.VoiceServices.Models.CheckNameAvailabilityReason? reason = default(Azure.ResourceManager.VoiceServices.Models.CheckNameAvailabilityReason?), string message = null) { throw null; } + public static Azure.ResourceManager.VoiceServices.CommunicationsGatewayData CommunicationsGatewayData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.VoiceServices.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.VoiceServices.Models.ProvisioningState?), Azure.ResourceManager.VoiceServices.Models.Status? status = default(Azure.ResourceManager.VoiceServices.Models.Status?), System.Collections.Generic.IEnumerable serviceLocations = null, Azure.ResourceManager.VoiceServices.Models.Connectivity? connectivity = default(Azure.ResourceManager.VoiceServices.Models.Connectivity?), System.Collections.Generic.IEnumerable codecs = null, Azure.ResourceManager.VoiceServices.Models.E911Type? e911Type = default(Azure.ResourceManager.VoiceServices.Models.E911Type?), System.Collections.Generic.IEnumerable platforms = null, System.BinaryData apiBridge = null, Azure.ResourceManager.VoiceServices.Models.AutoGeneratedDomainNameLabelScope? autoGeneratedDomainNameLabelScope = default(Azure.ResourceManager.VoiceServices.Models.AutoGeneratedDomainNameLabelScope?), string autoGeneratedDomainNameLabel = null, string teamsVoicemailPilotNumber = null, bool? onPremMcpEnabled = default(bool?), System.Collections.Generic.IEnumerable emergencyDialStrings = null) { throw null; } + public static Azure.ResourceManager.VoiceServices.TestLineData TestLineData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.VoiceServices.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.VoiceServices.Models.ProvisioningState?), string phoneNumber = null, Azure.ResourceManager.VoiceServices.Models.TestLinePurpose? purpose = default(Azure.ResourceManager.VoiceServices.Models.TestLinePurpose?)) { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct AutoGeneratedDomainNameLabelScope : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public AutoGeneratedDomainNameLabelScope(string value) { throw null; } + public static Azure.ResourceManager.VoiceServices.Models.AutoGeneratedDomainNameLabelScope NoReuse { get { throw null; } } + public static Azure.ResourceManager.VoiceServices.Models.AutoGeneratedDomainNameLabelScope ResourceGroupReuse { get { throw null; } } + public static Azure.ResourceManager.VoiceServices.Models.AutoGeneratedDomainNameLabelScope SubscriptionReuse { get { throw null; } } + public static Azure.ResourceManager.VoiceServices.Models.AutoGeneratedDomainNameLabelScope TenantReuse { get { throw null; } } + public bool Equals(Azure.ResourceManager.VoiceServices.Models.AutoGeneratedDomainNameLabelScope other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.VoiceServices.Models.AutoGeneratedDomainNameLabelScope left, Azure.ResourceManager.VoiceServices.Models.AutoGeneratedDomainNameLabelScope right) { throw null; } + public static implicit operator Azure.ResourceManager.VoiceServices.Models.AutoGeneratedDomainNameLabelScope (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.VoiceServices.Models.AutoGeneratedDomainNameLabelScope left, Azure.ResourceManager.VoiceServices.Models.AutoGeneratedDomainNameLabelScope right) { throw null; } + public override string ToString() { throw null; } + } + public partial class CheckNameAvailabilityContent + { + public CheckNameAvailabilityContent() { } + public string Name { get { throw null; } set { } } + public string ResourceType { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct CheckNameAvailabilityReason : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public CheckNameAvailabilityReason(string value) { throw null; } + public static Azure.ResourceManager.VoiceServices.Models.CheckNameAvailabilityReason AlreadyExists { get { throw null; } } + public static Azure.ResourceManager.VoiceServices.Models.CheckNameAvailabilityReason Invalid { get { throw null; } } + public bool Equals(Azure.ResourceManager.VoiceServices.Models.CheckNameAvailabilityReason other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.VoiceServices.Models.CheckNameAvailabilityReason left, Azure.ResourceManager.VoiceServices.Models.CheckNameAvailabilityReason right) { throw null; } + public static implicit operator Azure.ResourceManager.VoiceServices.Models.CheckNameAvailabilityReason (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.VoiceServices.Models.CheckNameAvailabilityReason left, Azure.ResourceManager.VoiceServices.Models.CheckNameAvailabilityReason right) { throw null; } + public override string ToString() { throw null; } + } + public partial class CheckNameAvailabilityResponse + { + internal CheckNameAvailabilityResponse() { } + public string Message { get { throw null; } } + public bool? NameAvailable { get { throw null; } } + public Azure.ResourceManager.VoiceServices.Models.CheckNameAvailabilityReason? Reason { get { throw null; } } + } + public partial class CommunicationsGatewayPatch + { + public CommunicationsGatewayPatch() { } + public System.Collections.Generic.IDictionary Tags { get { throw null; } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct CommunicationsPlatform : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public CommunicationsPlatform(string value) { throw null; } + public static Azure.ResourceManager.VoiceServices.Models.CommunicationsPlatform OperatorConnect { get { throw null; } } + public static Azure.ResourceManager.VoiceServices.Models.CommunicationsPlatform TeamsPhoneMobile { get { throw null; } } + public bool Equals(Azure.ResourceManager.VoiceServices.Models.CommunicationsPlatform other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.VoiceServices.Models.CommunicationsPlatform left, Azure.ResourceManager.VoiceServices.Models.CommunicationsPlatform right) { throw null; } + public static implicit operator Azure.ResourceManager.VoiceServices.Models.CommunicationsPlatform (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.VoiceServices.Models.CommunicationsPlatform left, Azure.ResourceManager.VoiceServices.Models.CommunicationsPlatform right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct Connectivity : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public Connectivity(string value) { throw null; } + public static Azure.ResourceManager.VoiceServices.Models.Connectivity PublicAddress { get { throw null; } } + public bool Equals(Azure.ResourceManager.VoiceServices.Models.Connectivity other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.VoiceServices.Models.Connectivity left, Azure.ResourceManager.VoiceServices.Models.Connectivity right) { throw null; } + public static implicit operator Azure.ResourceManager.VoiceServices.Models.Connectivity (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.VoiceServices.Models.Connectivity left, Azure.ResourceManager.VoiceServices.Models.Connectivity right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct E911Type : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public E911Type(string value) { throw null; } + public static Azure.ResourceManager.VoiceServices.Models.E911Type DirectToEsrp { get { throw null; } } + public static Azure.ResourceManager.VoiceServices.Models.E911Type Standard { get { throw null; } } + public bool Equals(Azure.ResourceManager.VoiceServices.Models.E911Type other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.VoiceServices.Models.E911Type left, Azure.ResourceManager.VoiceServices.Models.E911Type right) { throw null; } + public static implicit operator Azure.ResourceManager.VoiceServices.Models.E911Type (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.VoiceServices.Models.E911Type left, Azure.ResourceManager.VoiceServices.Models.E911Type right) { throw null; } + public override string ToString() { throw null; } + } + public partial class PrimaryRegionProperties + { + public PrimaryRegionProperties(System.Collections.Generic.IEnumerable operatorAddresses) { } + public System.Collections.Generic.IList AllowedMediaSourceAddressPrefixes { get { throw null; } } + public System.Collections.Generic.IList AllowedSignalingSourceAddressPrefixes { get { throw null; } } + public System.Collections.Generic.IList EsrpAddresses { get { throw null; } } + public System.Collections.Generic.IList OperatorAddresses { get { throw null; } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ProvisioningState : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ProvisioningState(string value) { throw null; } + public static Azure.ResourceManager.VoiceServices.Models.ProvisioningState Canceled { get { throw null; } } + public static Azure.ResourceManager.VoiceServices.Models.ProvisioningState Failed { get { throw null; } } + public static Azure.ResourceManager.VoiceServices.Models.ProvisioningState Succeeded { get { throw null; } } + public bool Equals(Azure.ResourceManager.VoiceServices.Models.ProvisioningState other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.VoiceServices.Models.ProvisioningState left, Azure.ResourceManager.VoiceServices.Models.ProvisioningState right) { throw null; } + public static implicit operator Azure.ResourceManager.VoiceServices.Models.ProvisioningState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.VoiceServices.Models.ProvisioningState left, Azure.ResourceManager.VoiceServices.Models.ProvisioningState right) { throw null; } + public override string ToString() { throw null; } + } + public partial class ServiceRegionProperties + { + public ServiceRegionProperties(string name, Azure.ResourceManager.VoiceServices.Models.PrimaryRegionProperties primaryRegionProperties) { } + public string Name { get { throw null; } set { } } + public Azure.ResourceManager.VoiceServices.Models.PrimaryRegionProperties PrimaryRegionProperties { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct Status : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public Status(string value) { throw null; } + public static Azure.ResourceManager.VoiceServices.Models.Status ChangePending { get { throw null; } } + public static Azure.ResourceManager.VoiceServices.Models.Status Complete { get { throw null; } } + public bool Equals(Azure.ResourceManager.VoiceServices.Models.Status other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.VoiceServices.Models.Status left, Azure.ResourceManager.VoiceServices.Models.Status right) { throw null; } + public static implicit operator Azure.ResourceManager.VoiceServices.Models.Status (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.VoiceServices.Models.Status left, Azure.ResourceManager.VoiceServices.Models.Status right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct TeamsCodec : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public TeamsCodec(string value) { throw null; } + public static Azure.ResourceManager.VoiceServices.Models.TeamsCodec G722 { get { throw null; } } + public static Azure.ResourceManager.VoiceServices.Models.TeamsCodec G7222 { get { throw null; } } + public static Azure.ResourceManager.VoiceServices.Models.TeamsCodec Pcma { get { throw null; } } + public static Azure.ResourceManager.VoiceServices.Models.TeamsCodec Pcmu { get { throw null; } } + public static Azure.ResourceManager.VoiceServices.Models.TeamsCodec Silk16 { get { throw null; } } + public static Azure.ResourceManager.VoiceServices.Models.TeamsCodec Silk8 { get { throw null; } } + public bool Equals(Azure.ResourceManager.VoiceServices.Models.TeamsCodec other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.VoiceServices.Models.TeamsCodec left, Azure.ResourceManager.VoiceServices.Models.TeamsCodec right) { throw null; } + public static implicit operator Azure.ResourceManager.VoiceServices.Models.TeamsCodec (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.VoiceServices.Models.TeamsCodec left, Azure.ResourceManager.VoiceServices.Models.TeamsCodec right) { throw null; } + public override string ToString() { throw null; } + } + public partial class TestLinePatch + { + public TestLinePatch() { } + public System.Collections.Generic.IDictionary Tags { get { throw null; } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct TestLinePurpose : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public TestLinePurpose(string value) { throw null; } + public static Azure.ResourceManager.VoiceServices.Models.TestLinePurpose Automated { get { throw null; } } + public static Azure.ResourceManager.VoiceServices.Models.TestLinePurpose Manual { get { throw null; } } + public bool Equals(Azure.ResourceManager.VoiceServices.Models.TestLinePurpose other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.VoiceServices.Models.TestLinePurpose left, Azure.ResourceManager.VoiceServices.Models.TestLinePurpose right) { throw null; } + public static implicit operator Azure.ResourceManager.VoiceServices.Models.TestLinePurpose (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.VoiceServices.Models.TestLinePurpose left, Azure.ResourceManager.VoiceServices.Models.TestLinePurpose right) { throw null; } + public override string ToString() { throw null; } + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/samples/Azure.ResourceManager.VoiceServices.Samples.csproj b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/samples/Azure.ResourceManager.VoiceServices.Samples.csproj new file mode 100644 index 0000000000000..6f60a2b5ae3d1 --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/samples/Azure.ResourceManager.VoiceServices.Samples.csproj @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/samples/Generated/Samples/Sample_CommunicationsGatewayCollection.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/samples/Generated/Samples/Sample_CommunicationsGatewayCollection.cs new file mode 100644 index 0000000000000..cd86800f4447c --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/samples/Generated/Samples/Sample_CommunicationsGatewayCollection.cs @@ -0,0 +1,202 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.Resources; +using Azure.ResourceManager.VoiceServices; +using Azure.ResourceManager.VoiceServices.Models; + +namespace Azure.ResourceManager.VoiceServices.Samples +{ + public partial class Sample_CommunicationsGatewayCollection + { + // ListCommunicationsGatewayResource + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetAll_ListCommunicationsGatewayResource() + { + // Generated from example definition: specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-01-31/examples/CommunicationsGateways_ListByResourceGroup.json + // this example is just showing the usage of "CommunicationsGateways_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "testrg"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this CommunicationsGatewayResource + CommunicationsGatewayCollection collection = resourceGroupResource.GetCommunicationsGateways(); + + // invoke the operation and iterate over the result + await foreach (CommunicationsGatewayResource item in collection.GetAllAsync()) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + CommunicationsGatewayData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // GetCommunicationsGatewayResource + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetCommunicationsGatewayResource() + { + // Generated from example definition: specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-01-31/examples/CommunicationsGateways_Get.json + // this example is just showing the usage of "CommunicationsGateways_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "testrg"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this CommunicationsGatewayResource + CommunicationsGatewayCollection collection = resourceGroupResource.GetCommunicationsGateways(); + + // invoke the operation + string communicationsGatewayName = "myname"; + CommunicationsGatewayResource result = await collection.GetAsync(communicationsGatewayName); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + CommunicationsGatewayData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // GetCommunicationsGatewayResource + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_GetCommunicationsGatewayResource() + { + // Generated from example definition: specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-01-31/examples/CommunicationsGateways_Get.json + // this example is just showing the usage of "CommunicationsGateways_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "testrg"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this CommunicationsGatewayResource + CommunicationsGatewayCollection collection = resourceGroupResource.GetCommunicationsGateways(); + + // invoke the operation + string communicationsGatewayName = "myname"; + bool result = await collection.ExistsAsync(communicationsGatewayName); + + Console.WriteLine($"Succeeded: {result}"); + } + + // CreateCommunicationsGatewayResource + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_CreateCommunicationsGatewayResource() + { + // Generated from example definition: specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-01-31/examples/CommunicationsGateways_CreateOrUpdate.json + // this example is just showing the usage of "CommunicationsGateways_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "testrg"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this CommunicationsGatewayResource + CommunicationsGatewayCollection collection = resourceGroupResource.GetCommunicationsGateways(); + + // invoke the operation + string communicationsGatewayName = "myname"; + CommunicationsGatewayData data = new CommunicationsGatewayData(new AzureLocation("useast")) + { + ServiceLocations = +{ +new ServiceRegionProperties("useast",new PrimaryRegionProperties(new string[] +{ +"198.51.100.1" +}) +{ +AllowedSignalingSourceAddressPrefixes = +{ +"10.1.1.0/24" +}, +AllowedMediaSourceAddressPrefixes = +{ +"10.1.2.0/24" +}, +}),new ServiceRegionProperties("useast2",new PrimaryRegionProperties(new string[] +{ +"198.51.100.2" +}) +{ +AllowedSignalingSourceAddressPrefixes = +{ +"10.2.1.0/24" +}, +AllowedMediaSourceAddressPrefixes = +{ +"10.2.2.0/24" +}, +}) +}, + Connectivity = Connectivity.PublicAddress, + Codecs = +{ +TeamsCodec.Pcma +}, + E911Type = E911Type.Standard, + Platforms = +{ +CommunicationsPlatform.OperatorConnect +}, + AutoGeneratedDomainNameLabelScope = AutoGeneratedDomainNameLabelScope.NoReuse, + TeamsVoicemailPilotNumber = "1234567890", + }; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, communicationsGatewayName, data); + CommunicationsGatewayResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + CommunicationsGatewayData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/samples/Generated/Samples/Sample_CommunicationsGatewayResource.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/samples/Generated/Samples/Sample_CommunicationsGatewayResource.cs new file mode 100644 index 0000000000000..9bcf597951621 --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/samples/Generated/Samples/Sample_CommunicationsGatewayResource.cs @@ -0,0 +1,144 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.Resources; +using Azure.ResourceManager.VoiceServices; +using Azure.ResourceManager.VoiceServices.Models; + +namespace Azure.ResourceManager.VoiceServices.Samples +{ + public partial class Sample_CommunicationsGatewayResource + { + // ListCommunicationsGatewayResourceSub + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetCommunicationsGateways_ListCommunicationsGatewayResourceSub() + { + // Generated from example definition: specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-01-31/examples/CommunicationsGateways_ListBySubscription.json + // this example is just showing the usage of "CommunicationsGateways_ListBySubscription" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SubscriptionResource created on azure + // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId); + SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId); + + // invoke the operation and iterate over the result + await foreach (CommunicationsGatewayResource item in subscriptionResource.GetCommunicationsGatewaysAsync()) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + CommunicationsGatewayData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // GetCommunicationsGatewayResource + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetCommunicationsGatewayResource() + { + // Generated from example definition: specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-01-31/examples/CommunicationsGateways_Get.json + // this example is just showing the usage of "CommunicationsGateways_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this CommunicationsGatewayResource created on azure + // for more information of creating CommunicationsGatewayResource, please refer to the document of CommunicationsGatewayResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "testrg"; + string communicationsGatewayName = "myname"; + ResourceIdentifier communicationsGatewayResourceId = CommunicationsGatewayResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, communicationsGatewayName); + CommunicationsGatewayResource communicationsGateway = client.GetCommunicationsGatewayResource(communicationsGatewayResourceId); + + // invoke the operation + CommunicationsGatewayResource result = await communicationsGateway.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + CommunicationsGatewayData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // DeleteCommunicationsGatewayResource + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Delete_DeleteCommunicationsGatewayResource() + { + // Generated from example definition: specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-01-31/examples/CommunicationsGateways_Delete.json + // this example is just showing the usage of "CommunicationsGateways_Delete" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this CommunicationsGatewayResource created on azure + // for more information of creating CommunicationsGatewayResource, please refer to the document of CommunicationsGatewayResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "testrg"; + string communicationsGatewayName = "myname"; + ResourceIdentifier communicationsGatewayResourceId = CommunicationsGatewayResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, communicationsGatewayName); + CommunicationsGatewayResource communicationsGateway = client.GetCommunicationsGatewayResource(communicationsGatewayResourceId); + + // invoke the operation + await communicationsGateway.DeleteAsync(WaitUntil.Completed); + + Console.WriteLine($"Succeeded"); + } + + // UpdateCommunicationsGatewayResource + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Update_UpdateCommunicationsGatewayResource() + { + // Generated from example definition: specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-01-31/examples/CommunicationsGateways_Update.json + // this example is just showing the usage of "CommunicationsGateways_Update" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this CommunicationsGatewayResource created on azure + // for more information of creating CommunicationsGatewayResource, please refer to the document of CommunicationsGatewayResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "testrg"; + string communicationsGatewayName = "myname"; + ResourceIdentifier communicationsGatewayResourceId = CommunicationsGatewayResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, communicationsGatewayName); + CommunicationsGatewayResource communicationsGateway = client.GetCommunicationsGatewayResource(communicationsGatewayResourceId); + + // invoke the operation + CommunicationsGatewayPatch patch = new CommunicationsGatewayPatch(); + CommunicationsGatewayResource result = await communicationsGateway.UpdateAsync(patch); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + CommunicationsGatewayData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs new file mode 100644 index 0000000000000..8420cc33edf76 --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.Resources; +using Azure.ResourceManager.VoiceServices; +using Azure.ResourceManager.VoiceServices.Models; + +namespace Azure.ResourceManager.VoiceServices.Samples +{ + public partial class Sample_SubscriptionResourceExtensions + { + // CheckLocalNameAvailability + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CheckLocalNameAvailability_CheckLocalNameAvailability() + { + // Generated from example definition: specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-01-31/examples/NameAvailability_CheckLocal.json + // this example is just showing the usage of "NameAvailability_CheckLocal" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SubscriptionResource created on azure + // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId); + SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId); + + // invoke the operation + AzureLocation location = new AzureLocation("useast"); + CheckNameAvailabilityContent content = new CheckNameAvailabilityContent() + { + Name = "myname", + ResourceType = "Microsoft.VoiceServices/CommunicationsGateway", + }; + CheckNameAvailabilityResponse result = await subscriptionResource.CheckLocalNameAvailabilityAsync(location, content); + + Console.WriteLine($"Succeeded: {result}"); + } + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/samples/Generated/Samples/Sample_TestLineCollection.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/samples/Generated/Samples/Sample_TestLineCollection.cs new file mode 100644 index 0000000000000..432c563723edc --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/samples/Generated/Samples/Sample_TestLineCollection.cs @@ -0,0 +1,165 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.VoiceServices; +using Azure.ResourceManager.VoiceServices.Models; + +namespace Azure.ResourceManager.VoiceServices.Samples +{ + public partial class Sample_TestLineCollection + { + // ListTestLineResource + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetAll_ListTestLineResource() + { + // Generated from example definition: specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-01-31/examples/TestLines_ListByCommunicationsGateway.json + // this example is just showing the usage of "TestLines_ListByCommunicationsGateway" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this CommunicationsGatewayResource created on azure + // for more information of creating CommunicationsGatewayResource, please refer to the document of CommunicationsGatewayResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "testrg"; + string communicationsGatewayName = "myname"; + ResourceIdentifier communicationsGatewayResourceId = CommunicationsGatewayResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, communicationsGatewayName); + CommunicationsGatewayResource communicationsGateway = client.GetCommunicationsGatewayResource(communicationsGatewayResourceId); + + // get the collection of this TestLineResource + TestLineCollection collection = communicationsGateway.GetTestLines(); + + // invoke the operation and iterate over the result + await foreach (TestLineResource item in collection.GetAllAsync()) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + TestLineData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // GetTestLineResource + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetTestLineResource() + { + // Generated from example definition: specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-01-31/examples/TestLines_Get.json + // this example is just showing the usage of "TestLines_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this CommunicationsGatewayResource created on azure + // for more information of creating CommunicationsGatewayResource, please refer to the document of CommunicationsGatewayResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "testrg"; + string communicationsGatewayName = "myname"; + ResourceIdentifier communicationsGatewayResourceId = CommunicationsGatewayResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, communicationsGatewayName); + CommunicationsGatewayResource communicationsGateway = client.GetCommunicationsGatewayResource(communicationsGatewayResourceId); + + // get the collection of this TestLineResource + TestLineCollection collection = communicationsGateway.GetTestLines(); + + // invoke the operation + string testLineName = "myline"; + TestLineResource result = await collection.GetAsync(testLineName); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + TestLineData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // GetTestLineResource + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_GetTestLineResource() + { + // Generated from example definition: specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-01-31/examples/TestLines_Get.json + // this example is just showing the usage of "TestLines_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this CommunicationsGatewayResource created on azure + // for more information of creating CommunicationsGatewayResource, please refer to the document of CommunicationsGatewayResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "testrg"; + string communicationsGatewayName = "myname"; + ResourceIdentifier communicationsGatewayResourceId = CommunicationsGatewayResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, communicationsGatewayName); + CommunicationsGatewayResource communicationsGateway = client.GetCommunicationsGatewayResource(communicationsGatewayResourceId); + + // get the collection of this TestLineResource + TestLineCollection collection = communicationsGateway.GetTestLines(); + + // invoke the operation + string testLineName = "myline"; + bool result = await collection.ExistsAsync(testLineName); + + Console.WriteLine($"Succeeded: {result}"); + } + + // CreateTestLineResource + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_CreateTestLineResource() + { + // Generated from example definition: specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-01-31/examples/TestLines_CreateOrUpdate.json + // this example is just showing the usage of "TestLines_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this CommunicationsGatewayResource created on azure + // for more information of creating CommunicationsGatewayResource, please refer to the document of CommunicationsGatewayResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "testrg"; + string communicationsGatewayName = "myname"; + ResourceIdentifier communicationsGatewayResourceId = CommunicationsGatewayResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, communicationsGatewayName); + CommunicationsGatewayResource communicationsGateway = client.GetCommunicationsGatewayResource(communicationsGatewayResourceId); + + // get the collection of this TestLineResource + TestLineCollection collection = communicationsGateway.GetTestLines(); + + // invoke the operation + string testLineName = "myline"; + TestLineData data = new TestLineData(new AzureLocation("useast")) + { + PhoneNumber = "+1-555-1234", + Purpose = TestLinePurpose.Automated, + }; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, testLineName, data); + TestLineResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + TestLineData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/samples/Generated/Samples/Sample_TestLineResource.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/samples/Generated/Samples/Sample_TestLineResource.cs new file mode 100644 index 0000000000000..31c73dab70b89 --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/samples/Generated/Samples/Sample_TestLineResource.cs @@ -0,0 +1,114 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.VoiceServices; +using Azure.ResourceManager.VoiceServices.Models; + +namespace Azure.ResourceManager.VoiceServices.Samples +{ + public partial class Sample_TestLineResource + { + // GetTestLineResource + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetTestLineResource() + { + // Generated from example definition: specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-01-31/examples/TestLines_Get.json + // this example is just showing the usage of "TestLines_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this TestLineResource created on azure + // for more information of creating TestLineResource, please refer to the document of TestLineResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "testrg"; + string communicationsGatewayName = "myname"; + string testLineName = "myline"; + ResourceIdentifier testLineResourceId = TestLineResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, communicationsGatewayName, testLineName); + TestLineResource testLine = client.GetTestLineResource(testLineResourceId); + + // invoke the operation + TestLineResource result = await testLine.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + TestLineData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // DeleteTestLineResource + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Delete_DeleteTestLineResource() + { + // Generated from example definition: specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-01-31/examples/TestLines_Delete.json + // this example is just showing the usage of "TestLines_Delete" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this TestLineResource created on azure + // for more information of creating TestLineResource, please refer to the document of TestLineResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "testrg"; + string communicationsGatewayName = "myname"; + string testLineName = "myline"; + ResourceIdentifier testLineResourceId = TestLineResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, communicationsGatewayName, testLineName); + TestLineResource testLine = client.GetTestLineResource(testLineResourceId); + + // invoke the operation + await testLine.DeleteAsync(WaitUntil.Completed); + + Console.WriteLine($"Succeeded"); + } + + // UpdateTestLineResource + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Update_UpdateTestLineResource() + { + // Generated from example definition: specification/voiceservices/resource-manager/Microsoft.VoiceServices/stable/2023-01-31/examples/TestLines_Update.json + // this example is just showing the usage of "TestLines_Update" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this TestLineResource created on azure + // for more information of creating TestLineResource, please refer to the document of TestLineResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "testrg"; + string communicationsGatewayName = "myname"; + string testLineName = "myline"; + ResourceIdentifier testLineResourceId = TestLineResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, communicationsGatewayName, testLineName); + TestLineResource testLine = client.GetTestLineResource(testLineResourceId); + + // invoke the operation + TestLinePatch patch = new TestLinePatch(); + TestLineResource result = await testLine.UpdateAsync(patch); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + TestLineData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/samples/autorest.tests.md b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/samples/autorest.tests.md new file mode 100644 index 0000000000000..c62a0b0cbd03a --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/samples/autorest.tests.md @@ -0,0 +1,13 @@ +# Generated code configuration + +Run `dotnet build /t:GenerateTests` to generate code. + +# Azure.ResourceManager.ElasticSan.Tests + +> see https://aka.ms/autorest +``` yaml +require: ../src/autorest.md +include-x-ms-examples-original-file: true +testgen: + sample: true +``` \ No newline at end of file diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Azure.ResourceManager.VoiceServices.csproj b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Azure.ResourceManager.VoiceServices.csproj new file mode 100644 index 0000000000000..23cdcfbe14fbc --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Azure.ResourceManager.VoiceServices.csproj @@ -0,0 +1,8 @@ + + + 1.0.0-beta.1 + Azure.ResourceManager.VoiceServices + Azure Resource Manager client SDK for Azure resource provider VoiceServices. + azure;management;arm;resource manager;voiceservices + + diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/ArmVoiceServicesModelFactory.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/ArmVoiceServicesModelFactory.cs new file mode 100644 index 0000000000000..b4671ada638b7 --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/ArmVoiceServicesModelFactory.cs @@ -0,0 +1,80 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; +using Azure.Core; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.VoiceServices; + +namespace Azure.ResourceManager.VoiceServices.Models +{ + /// Model factory for models. + public static partial class ArmVoiceServicesModelFactory + { + /// Initializes a new instance of CommunicationsGatewayData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// Resource provisioning state. + /// The current status of the deployment. + /// The regions in which to deploy the resources needed for Teams Calling. + /// How to connect back to the operator network, e.g. MAPS. + /// Voice codecs to support. + /// How to handle 911 calls. + /// What platforms to support. + /// Details of API bridge functionality, if required. + /// The scope at which the auto-generated domain name can be re-used. + /// The autogenerated label used as part of the FQDNs for accessing the Communications Gateway. + /// This number is used in Teams Phone Mobile scenarios for access to the voicemail IVR from the native dialer. + /// Whether an on-premises Mobile Control Point is in use. + /// A list of dial strings used for emergency calling. + /// A new instance for mocking. + public static CommunicationsGatewayData CommunicationsGatewayData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ProvisioningState? provisioningState = null, Status? status = null, IEnumerable serviceLocations = null, Connectivity? connectivity = null, IEnumerable codecs = null, E911Type? e911Type = null, IEnumerable platforms = null, BinaryData apiBridge = null, AutoGeneratedDomainNameLabelScope? autoGeneratedDomainNameLabelScope = null, string autoGeneratedDomainNameLabel = null, string teamsVoicemailPilotNumber = null, bool? onPremMcpEnabled = null, IEnumerable emergencyDialStrings = null) + { + tags ??= new Dictionary(); + serviceLocations ??= new List(); + codecs ??= new List(); + platforms ??= new List(); + emergencyDialStrings ??= new List(); + + return new CommunicationsGatewayData(id, name, resourceType, systemData, tags, location, provisioningState, status, serviceLocations?.ToList(), connectivity, codecs?.ToList(), e911Type, platforms?.ToList(), apiBridge, autoGeneratedDomainNameLabelScope, autoGeneratedDomainNameLabel, teamsVoicemailPilotNumber, onPremMcpEnabled, emergencyDialStrings?.ToList()); + } + + /// Initializes a new instance of CheckNameAvailabilityResponse. + /// Indicates if the resource name is available. + /// The reason why the given name is not available. + /// Detailed reason why the given name is not available. + /// A new instance for mocking. + public static CheckNameAvailabilityResponse CheckNameAvailabilityResponse(bool? nameAvailable = null, CheckNameAvailabilityReason? reason = null, string message = null) + { + return new CheckNameAvailabilityResponse(nameAvailable, reason, message); + } + + /// Initializes a new instance of TestLineData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// Resource provisioning state. + /// The phone number. + /// Purpose of this test line, e.g. automated or manual testing. + /// A new instance for mocking. + public static TestLineData TestLineData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ProvisioningState? provisioningState = null, string phoneNumber = null, TestLinePurpose? purpose = null) + { + tags ??= new Dictionary(); + + return new TestLineData(id, name, resourceType, systemData, tags, location, provisioningState, phoneNumber, purpose); + } + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/CommunicationsGatewayCollection.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/CommunicationsGatewayCollection.cs new file mode 100644 index 0000000000000..8a770ae4ae790 --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/CommunicationsGatewayCollection.cs @@ -0,0 +1,341 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; +using Azure.ResourceManager.Resources; + +namespace Azure.ResourceManager.VoiceServices +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetCommunicationsGateways method from an instance of . + /// + public partial class CommunicationsGatewayCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _communicationsGatewayClientDiagnostics; + private readonly CommunicationsGatewaysRestOperations _communicationsGatewayRestClient; + + /// Initializes a new instance of the class for mocking. + protected CommunicationsGatewayCollection() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the parent resource that is the target of operations. + internal CommunicationsGatewayCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _communicationsGatewayClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.VoiceServices", CommunicationsGatewayResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(CommunicationsGatewayResource.ResourceType, out string communicationsGatewayApiVersion); + _communicationsGatewayRestClient = new CommunicationsGatewaysRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, communicationsGatewayApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceGroupResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceGroupResource.ResourceType), nameof(id)); + } + + /// + /// Create a CommunicationsGateway + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName} + /// + /// + /// Operation Id + /// CommunicationsGateways_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Unique identifier for this deployment. + /// Resource create parameters. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string communicationsGatewayName, CommunicationsGatewayData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(communicationsGatewayName, nameof(communicationsGatewayName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _communicationsGatewayClientDiagnostics.CreateScope("CommunicationsGatewayCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = await _communicationsGatewayRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, communicationsGatewayName, data, cancellationToken).ConfigureAwait(false); + var operation = new VoiceServicesArmOperation(new CommunicationsGatewayOperationSource(Client), _communicationsGatewayClientDiagnostics, Pipeline, _communicationsGatewayRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, communicationsGatewayName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create a CommunicationsGateway + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName} + /// + /// + /// Operation Id + /// CommunicationsGateways_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Unique identifier for this deployment. + /// Resource create parameters. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string communicationsGatewayName, CommunicationsGatewayData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(communicationsGatewayName, nameof(communicationsGatewayName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _communicationsGatewayClientDiagnostics.CreateScope("CommunicationsGatewayCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = _communicationsGatewayRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, communicationsGatewayName, data, cancellationToken); + var operation = new VoiceServicesArmOperation(new CommunicationsGatewayOperationSource(Client), _communicationsGatewayClientDiagnostics, Pipeline, _communicationsGatewayRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, communicationsGatewayName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get a CommunicationsGateway + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName} + /// + /// + /// Operation Id + /// CommunicationsGateways_Get + /// + /// + /// + /// Unique identifier for this deployment. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetAsync(string communicationsGatewayName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(communicationsGatewayName, nameof(communicationsGatewayName)); + + using var scope = _communicationsGatewayClientDiagnostics.CreateScope("CommunicationsGatewayCollection.Get"); + scope.Start(); + try + { + var response = await _communicationsGatewayRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, communicationsGatewayName, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new CommunicationsGatewayResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get a CommunicationsGateway + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName} + /// + /// + /// Operation Id + /// CommunicationsGateways_Get + /// + /// + /// + /// Unique identifier for this deployment. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string communicationsGatewayName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(communicationsGatewayName, nameof(communicationsGatewayName)); + + using var scope = _communicationsGatewayClientDiagnostics.CreateScope("CommunicationsGatewayCollection.Get"); + scope.Start(); + try + { + var response = _communicationsGatewayRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, communicationsGatewayName, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new CommunicationsGatewayResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// List CommunicationsGateway resources by resource group + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways + /// + /// + /// Operation Id + /// CommunicationsGateways_ListByResourceGroup + /// + /// + /// + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _communicationsGatewayRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _communicationsGatewayRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); + return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new CommunicationsGatewayResource(Client, CommunicationsGatewayData.DeserializeCommunicationsGatewayData(e)), _communicationsGatewayClientDiagnostics, Pipeline, "CommunicationsGatewayCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// List CommunicationsGateway resources by resource group + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways + /// + /// + /// Operation Id + /// CommunicationsGateways_ListByResourceGroup + /// + /// + /// + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _communicationsGatewayRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _communicationsGatewayRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); + return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new CommunicationsGatewayResource(Client, CommunicationsGatewayData.DeserializeCommunicationsGatewayData(e)), _communicationsGatewayClientDiagnostics, Pipeline, "CommunicationsGatewayCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName} + /// + /// + /// Operation Id + /// CommunicationsGateways_Get + /// + /// + /// + /// Unique identifier for this deployment. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> ExistsAsync(string communicationsGatewayName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(communicationsGatewayName, nameof(communicationsGatewayName)); + + using var scope = _communicationsGatewayClientDiagnostics.CreateScope("CommunicationsGatewayCollection.Exists"); + scope.Start(); + try + { + var response = await _communicationsGatewayRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, communicationsGatewayName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName} + /// + /// + /// Operation Id + /// CommunicationsGateways_Get + /// + /// + /// + /// Unique identifier for this deployment. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string communicationsGatewayName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(communicationsGatewayName, nameof(communicationsGatewayName)); + + using var scope = _communicationsGatewayClientDiagnostics.CreateScope("CommunicationsGatewayCollection.Exists"); + scope.Start(); + try + { + var response = _communicationsGatewayRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, communicationsGatewayName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + { + return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); + } + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/CommunicationsGatewayData.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/CommunicationsGatewayData.cs new file mode 100644 index 0000000000000..e524f009cf553 --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/CommunicationsGatewayData.cs @@ -0,0 +1,122 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.VoiceServices.Models; + +namespace Azure.ResourceManager.VoiceServices +{ + /// A class representing the CommunicationsGateway data model. + public partial class CommunicationsGatewayData : TrackedResourceData + { + /// Initializes a new instance of CommunicationsGatewayData. + /// The location. + public CommunicationsGatewayData(AzureLocation location) : base(location) + { + ServiceLocations = new ChangeTrackingList(); + Codecs = new ChangeTrackingList(); + Platforms = new ChangeTrackingList(); + EmergencyDialStrings = new ChangeTrackingList(); + } + + /// Initializes a new instance of CommunicationsGatewayData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// Resource provisioning state. + /// The current status of the deployment. + /// The regions in which to deploy the resources needed for Teams Calling. + /// How to connect back to the operator network, e.g. MAPS. + /// Voice codecs to support. + /// How to handle 911 calls. + /// What platforms to support. + /// Details of API bridge functionality, if required. + /// The scope at which the auto-generated domain name can be re-used. + /// The autogenerated label used as part of the FQDNs for accessing the Communications Gateway. + /// This number is used in Teams Phone Mobile scenarios for access to the voicemail IVR from the native dialer. + /// Whether an on-premises Mobile Control Point is in use. + /// A list of dial strings used for emergency calling. + internal CommunicationsGatewayData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ProvisioningState? provisioningState, Status? status, IList serviceLocations, Connectivity? connectivity, IList codecs, E911Type? e911Type, IList platforms, BinaryData apiBridge, AutoGeneratedDomainNameLabelScope? autoGeneratedDomainNameLabelScope, string autoGeneratedDomainNameLabel, string teamsVoicemailPilotNumber, bool? onPremMcpEnabled, IList emergencyDialStrings) : base(id, name, resourceType, systemData, tags, location) + { + ProvisioningState = provisioningState; + Status = status; + ServiceLocations = serviceLocations; + Connectivity = connectivity; + Codecs = codecs; + E911Type = e911Type; + Platforms = platforms; + ApiBridge = apiBridge; + AutoGeneratedDomainNameLabelScope = autoGeneratedDomainNameLabelScope; + AutoGeneratedDomainNameLabel = autoGeneratedDomainNameLabel; + TeamsVoicemailPilotNumber = teamsVoicemailPilotNumber; + OnPremMcpEnabled = onPremMcpEnabled; + EmergencyDialStrings = emergencyDialStrings; + } + + /// Resource provisioning state. + public ProvisioningState? ProvisioningState { get; } + /// The current status of the deployment. + public Status? Status { get; } + /// The regions in which to deploy the resources needed for Teams Calling. + public IList ServiceLocations { get; } + /// How to connect back to the operator network, e.g. MAPS. + public Connectivity? Connectivity { get; set; } + /// Voice codecs to support. + public IList Codecs { get; } + /// How to handle 911 calls. + public E911Type? E911Type { get; set; } + /// What platforms to support. + public IList Platforms { get; } + /// + /// Details of API bridge functionality, if required + /// + /// To assign an object to this property use . + /// + /// + /// To assign an already formated json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + public BinaryData ApiBridge { get; set; } + /// The scope at which the auto-generated domain name can be re-used. + public AutoGeneratedDomainNameLabelScope? AutoGeneratedDomainNameLabelScope { get; set; } + /// The autogenerated label used as part of the FQDNs for accessing the Communications Gateway. + public string AutoGeneratedDomainNameLabel { get; } + /// This number is used in Teams Phone Mobile scenarios for access to the voicemail IVR from the native dialer. + public string TeamsVoicemailPilotNumber { get; set; } + /// Whether an on-premises Mobile Control Point is in use. + public bool? OnPremMcpEnabled { get; set; } + /// A list of dial strings used for emergency calling. + public IList EmergencyDialStrings { get; } + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/CommunicationsGatewayResource.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/CommunicationsGatewayResource.cs new file mode 100644 index 0000000000000..6884779ab1545 --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/CommunicationsGatewayResource.cs @@ -0,0 +1,655 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; +using Azure.ResourceManager.Resources; +using Azure.ResourceManager.VoiceServices.Models; + +namespace Azure.ResourceManager.VoiceServices +{ + /// + /// A Class representing a CommunicationsGateway along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetCommunicationsGatewayResource method. + /// Otherwise you can get one from its parent resource using the GetCommunicationsGateway method. + /// + public partial class CommunicationsGatewayResource : ArmResource + { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string communicationsGatewayName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _communicationsGatewayClientDiagnostics; + private readonly CommunicationsGatewaysRestOperations _communicationsGatewayRestClient; + private readonly CommunicationsGatewayData _data; + + /// Initializes a new instance of the class for mocking. + protected CommunicationsGatewayResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal CommunicationsGatewayResource(ArmClient client, CommunicationsGatewayData data) : this(client, data.Id) + { + HasData = true; + _data = data; + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the resource that is the target of operations. + internal CommunicationsGatewayResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _communicationsGatewayClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.VoiceServices", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string communicationsGatewayApiVersion); + _communicationsGatewayRestClient = new CommunicationsGatewaysRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, communicationsGatewayApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.VoiceServices/communicationsGateways"; + + /// Gets whether or not the current instance has data. + public virtual bool HasData { get; } + + /// Gets the data representing this Feature. + /// Throws if there is no data loaded in the current instance. + public virtual CommunicationsGatewayData Data + { + get + { + if (!HasData) + throw new InvalidOperationException("The current instance does not have data, you must call Get first."); + return _data; + } + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); + } + + /// Gets a collection of TestLineResources in the CommunicationsGateway. + /// An object representing collection of TestLineResources and their operations over a TestLineResource. + public virtual TestLineCollection GetTestLines() + { + return GetCachedClient(Client => new TestLineCollection(Client, Id)); + } + + /// + /// Get a TestLine + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}/testLines/{testLineName} + /// + /// + /// Operation Id + /// TestLines_Get + /// + /// + /// + /// Unique identifier for this test line. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual async Task> GetTestLineAsync(string testLineName, CancellationToken cancellationToken = default) + { + return await GetTestLines().GetAsync(testLineName, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get a TestLine + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}/testLines/{testLineName} + /// + /// + /// Operation Id + /// TestLines_Get + /// + /// + /// + /// Unique identifier for this test line. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual Response GetTestLine(string testLineName, CancellationToken cancellationToken = default) + { + return GetTestLines().Get(testLineName, cancellationToken); + } + + /// + /// Get a CommunicationsGateway + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName} + /// + /// + /// Operation Id + /// CommunicationsGateways_Get + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using var scope = _communicationsGatewayClientDiagnostics.CreateScope("CommunicationsGatewayResource.Get"); + scope.Start(); + try + { + var response = await _communicationsGatewayRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new CommunicationsGatewayResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get a CommunicationsGateway + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName} + /// + /// + /// Operation Id + /// CommunicationsGateways_Get + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using var scope = _communicationsGatewayClientDiagnostics.CreateScope("CommunicationsGatewayResource.Get"); + scope.Start(); + try + { + var response = _communicationsGatewayRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new CommunicationsGatewayResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete a CommunicationsGateway + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName} + /// + /// + /// Operation Id + /// CommunicationsGateways_Delete + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _communicationsGatewayClientDiagnostics.CreateScope("CommunicationsGatewayResource.Delete"); + scope.Start(); + try + { + var response = await _communicationsGatewayRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new VoiceServicesArmOperation(_communicationsGatewayClientDiagnostics, Pipeline, _communicationsGatewayRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.AzureAsyncOperation); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete a CommunicationsGateway + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName} + /// + /// + /// Operation Id + /// CommunicationsGateways_Delete + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _communicationsGatewayClientDiagnostics.CreateScope("CommunicationsGatewayResource.Delete"); + scope.Start(); + try + { + var response = _communicationsGatewayRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + var operation = new VoiceServicesArmOperation(_communicationsGatewayClientDiagnostics, Pipeline, _communicationsGatewayRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.AzureAsyncOperation); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Update a CommunicationsGateway + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName} + /// + /// + /// Operation Id + /// CommunicationsGateways_Update + /// + /// + /// + /// The resource properties to be updated. + /// The cancellation token to use. + /// is null. + public virtual async Task> UpdateAsync(CommunicationsGatewayPatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(patch, nameof(patch)); + + using var scope = _communicationsGatewayClientDiagnostics.CreateScope("CommunicationsGatewayResource.Update"); + scope.Start(); + try + { + var response = await _communicationsGatewayRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, patch, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new CommunicationsGatewayResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Update a CommunicationsGateway + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName} + /// + /// + /// Operation Id + /// CommunicationsGateways_Update + /// + /// + /// + /// The resource properties to be updated. + /// The cancellation token to use. + /// is null. + public virtual Response Update(CommunicationsGatewayPatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(patch, nameof(patch)); + + using var scope = _communicationsGatewayClientDiagnostics.CreateScope("CommunicationsGatewayResource.Update"); + scope.Start(); + try + { + var response = _communicationsGatewayRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, patch, cancellationToken); + return Response.FromValue(new CommunicationsGatewayResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Add a tag to the current resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName} + /// + /// + /// Operation Id + /// CommunicationsGateways_Get + /// + /// + /// + /// The key for the tag. + /// The value for the tag. + /// The cancellation token to use. + /// or is null. + public virtual async Task> AddTagAsync(string key, string value, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(key, nameof(key)); + Argument.AssertNotNull(value, nameof(value)); + + using var scope = _communicationsGatewayClientDiagnostics.CreateScope("CommunicationsGatewayResource.AddTag"); + scope.Start(); + try + { + if (await CanUseTagResourceAsync(cancellationToken: cancellationToken).ConfigureAwait(false)) + { + var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); + originalTags.Value.Data.TagValues[key] = value; + await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); + var originalResponse = await _communicationsGatewayRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new CommunicationsGatewayResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; + var patch = new CommunicationsGatewayPatch(); + foreach (var tag in current.Tags) + { + patch.Tags.Add(tag); + } + patch.Tags[key] = value; + var result = await UpdateAsync(patch, cancellationToken: cancellationToken).ConfigureAwait(false); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Add a tag to the current resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName} + /// + /// + /// Operation Id + /// CommunicationsGateways_Get + /// + /// + /// + /// The key for the tag. + /// The value for the tag. + /// The cancellation token to use. + /// or is null. + public virtual Response AddTag(string key, string value, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(key, nameof(key)); + Argument.AssertNotNull(value, nameof(value)); + + using var scope = _communicationsGatewayClientDiagnostics.CreateScope("CommunicationsGatewayResource.AddTag"); + scope.Start(); + try + { + if (CanUseTagResource(cancellationToken: cancellationToken)) + { + var originalTags = GetTagResource().Get(cancellationToken); + originalTags.Value.Data.TagValues[key] = value; + GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); + var originalResponse = _communicationsGatewayRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + return Response.FromValue(new CommunicationsGatewayResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = Get(cancellationToken: cancellationToken).Value.Data; + var patch = new CommunicationsGatewayPatch(); + foreach (var tag in current.Tags) + { + patch.Tags.Add(tag); + } + patch.Tags[key] = value; + var result = Update(patch, cancellationToken: cancellationToken); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Replace the tags on the resource with the given set. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName} + /// + /// + /// Operation Id + /// CommunicationsGateways_Get + /// + /// + /// + /// The set of tags to use as replacement. + /// The cancellation token to use. + /// is null. + public virtual async Task> SetTagsAsync(IDictionary tags, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(tags, nameof(tags)); + + using var scope = _communicationsGatewayClientDiagnostics.CreateScope("CommunicationsGatewayResource.SetTags"); + scope.Start(); + try + { + if (await CanUseTagResourceAsync(cancellationToken: cancellationToken).ConfigureAwait(false)) + { + await GetTagResource().DeleteAsync(WaitUntil.Completed, cancellationToken: cancellationToken).ConfigureAwait(false); + var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); + originalTags.Value.Data.TagValues.ReplaceWith(tags); + await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); + var originalResponse = await _communicationsGatewayRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new CommunicationsGatewayResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; + var patch = new CommunicationsGatewayPatch(); + patch.Tags.ReplaceWith(tags); + var result = await UpdateAsync(patch, cancellationToken: cancellationToken).ConfigureAwait(false); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Replace the tags on the resource with the given set. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName} + /// + /// + /// Operation Id + /// CommunicationsGateways_Get + /// + /// + /// + /// The set of tags to use as replacement. + /// The cancellation token to use. + /// is null. + public virtual Response SetTags(IDictionary tags, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(tags, nameof(tags)); + + using var scope = _communicationsGatewayClientDiagnostics.CreateScope("CommunicationsGatewayResource.SetTags"); + scope.Start(); + try + { + if (CanUseTagResource(cancellationToken: cancellationToken)) + { + GetTagResource().Delete(WaitUntil.Completed, cancellationToken: cancellationToken); + var originalTags = GetTagResource().Get(cancellationToken); + originalTags.Value.Data.TagValues.ReplaceWith(tags); + GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); + var originalResponse = _communicationsGatewayRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + return Response.FromValue(new CommunicationsGatewayResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = Get(cancellationToken: cancellationToken).Value.Data; + var patch = new CommunicationsGatewayPatch(); + patch.Tags.ReplaceWith(tags); + var result = Update(patch, cancellationToken: cancellationToken); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Removes a tag by key from the resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName} + /// + /// + /// Operation Id + /// CommunicationsGateways_Get + /// + /// + /// + /// The key for the tag. + /// The cancellation token to use. + /// is null. + public virtual async Task> RemoveTagAsync(string key, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(key, nameof(key)); + + using var scope = _communicationsGatewayClientDiagnostics.CreateScope("CommunicationsGatewayResource.RemoveTag"); + scope.Start(); + try + { + if (await CanUseTagResourceAsync(cancellationToken: cancellationToken).ConfigureAwait(false)) + { + var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); + originalTags.Value.Data.TagValues.Remove(key); + await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); + var originalResponse = await _communicationsGatewayRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new CommunicationsGatewayResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; + var patch = new CommunicationsGatewayPatch(); + foreach (var tag in current.Tags) + { + patch.Tags.Add(tag); + } + patch.Tags.Remove(key); + var result = await UpdateAsync(patch, cancellationToken: cancellationToken).ConfigureAwait(false); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Removes a tag by key from the resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName} + /// + /// + /// Operation Id + /// CommunicationsGateways_Get + /// + /// + /// + /// The key for the tag. + /// The cancellation token to use. + /// is null. + public virtual Response RemoveTag(string key, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(key, nameof(key)); + + using var scope = _communicationsGatewayClientDiagnostics.CreateScope("CommunicationsGatewayResource.RemoveTag"); + scope.Start(); + try + { + if (CanUseTagResource(cancellationToken: cancellationToken)) + { + var originalTags = GetTagResource().Get(cancellationToken); + originalTags.Value.Data.TagValues.Remove(key); + GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); + var originalResponse = _communicationsGatewayRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + return Response.FromValue(new CommunicationsGatewayResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = Get(cancellationToken: cancellationToken).Value.Data; + var patch = new CommunicationsGatewayPatch(); + foreach (var tag in current.Tags) + { + patch.Tags.Add(tag); + } + patch.Tags.Remove(key); + var result = Update(patch, cancellationToken: cancellationToken); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs new file mode 100644 index 0000000000000..88c09527b494e --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using Azure.Core; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.VoiceServices +{ + /// A class to add extension methods to ResourceGroupResource. + internal partial class ResourceGroupResourceExtensionClient : ArmResource + { + /// Initializes a new instance of the class for mocking. + protected ResourceGroupResourceExtensionClient() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the resource that is the target of operations. + internal ResourceGroupResourceExtensionClient(ArmClient client, ResourceIdentifier id) : base(client, id) + { + } + + private string GetApiVersionOrNull(ResourceType resourceType) + { + TryGetApiVersion(resourceType, out string apiVersion); + return apiVersion; + } + + /// Gets a collection of CommunicationsGatewayResources in the ResourceGroupResource. + /// An object representing collection of CommunicationsGatewayResources and their operations over a CommunicationsGatewayResource. + public virtual CommunicationsGatewayCollection GetCommunicationsGateways() + { + return GetCachedClient(Client => new CommunicationsGatewayCollection(Client, Id)); + } + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs new file mode 100644 index 0000000000000..012b1822ae425 --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs @@ -0,0 +1,158 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; +using Azure.ResourceManager.VoiceServices.Models; + +namespace Azure.ResourceManager.VoiceServices +{ + /// A class to add extension methods to SubscriptionResource. + internal partial class SubscriptionResourceExtensionClient : ArmResource + { + private ClientDiagnostics _communicationsGatewayClientDiagnostics; + private CommunicationsGatewaysRestOperations _communicationsGatewayRestClient; + private ClientDiagnostics _nameAvailabilityClientDiagnostics; + private NameAvailabilityRestOperations _nameAvailabilityRestClient; + + /// Initializes a new instance of the class for mocking. + protected SubscriptionResourceExtensionClient() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the resource that is the target of operations. + internal SubscriptionResourceExtensionClient(ArmClient client, ResourceIdentifier id) : base(client, id) + { + } + + private ClientDiagnostics CommunicationsGatewayClientDiagnostics => _communicationsGatewayClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.VoiceServices", CommunicationsGatewayResource.ResourceType.Namespace, Diagnostics); + private CommunicationsGatewaysRestOperations CommunicationsGatewayRestClient => _communicationsGatewayRestClient ??= new CommunicationsGatewaysRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(CommunicationsGatewayResource.ResourceType)); + private ClientDiagnostics NameAvailabilityClientDiagnostics => _nameAvailabilityClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.VoiceServices", ProviderConstants.DefaultProviderNamespace, Diagnostics); + private NameAvailabilityRestOperations NameAvailabilityRestClient => _nameAvailabilityRestClient ??= new NameAvailabilityRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); + + private string GetApiVersionOrNull(ResourceType resourceType) + { + TryGetApiVersion(resourceType, out string apiVersion); + return apiVersion; + } + + /// + /// List CommunicationsGateway resources by subscription ID + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.VoiceServices/communicationsGateways + /// + /// + /// Operation Id + /// CommunicationsGateways_ListBySubscription + /// + /// + /// + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetCommunicationsGatewaysAsync(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => CommunicationsGatewayRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CommunicationsGatewayRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId); + return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new CommunicationsGatewayResource(Client, CommunicationsGatewayData.DeserializeCommunicationsGatewayData(e)), CommunicationsGatewayClientDiagnostics, Pipeline, "SubscriptionResourceExtensionClient.GetCommunicationsGateways", "value", "nextLink", cancellationToken); + } + + /// + /// List CommunicationsGateway resources by subscription ID + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.VoiceServices/communicationsGateways + /// + /// + /// Operation Id + /// CommunicationsGateways_ListBySubscription + /// + /// + /// + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetCommunicationsGateways(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => CommunicationsGatewayRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CommunicationsGatewayRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId); + return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new CommunicationsGatewayResource(Client, CommunicationsGatewayData.DeserializeCommunicationsGatewayData(e)), CommunicationsGatewayClientDiagnostics, Pipeline, "SubscriptionResourceExtensionClient.GetCommunicationsGateways", "value", "nextLink", cancellationToken); + } + + /// + /// Check whether the resource name is available in the given region. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.VoiceServices/locations/{location}/checkNameAvailability + /// + /// + /// Operation Id + /// NameAvailability_CheckLocal + /// + /// + /// + /// The location in which uniqueness will be verified. + /// The check availability request body. + /// The cancellation token to use. + public virtual async Task> CheckLocalNameAvailabilityAsync(AzureLocation location, CheckNameAvailabilityContent content, CancellationToken cancellationToken = default) + { + using var scope = NameAvailabilityClientDiagnostics.CreateScope("SubscriptionResourceExtensionClient.CheckLocalNameAvailability"); + scope.Start(); + try + { + var response = await NameAvailabilityRestClient.CheckLocalAsync(Id.SubscriptionId, location, content, cancellationToken).ConfigureAwait(false); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Check whether the resource name is available in the given region. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.VoiceServices/locations/{location}/checkNameAvailability + /// + /// + /// Operation Id + /// NameAvailability_CheckLocal + /// + /// + /// + /// The location in which uniqueness will be verified. + /// The check availability request body. + /// The cancellation token to use. + public virtual Response CheckLocalNameAvailability(AzureLocation location, CheckNameAvailabilityContent content, CancellationToken cancellationToken = default) + { + using var scope = NameAvailabilityClientDiagnostics.CreateScope("SubscriptionResourceExtensionClient.CheckLocalNameAvailability"); + scope.Start(); + try + { + var response = NameAvailabilityRestClient.CheckLocal(Id.SubscriptionId, location, content, cancellationToken); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Extensions/VoiceServicesExtensions.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Extensions/VoiceServicesExtensions.cs new file mode 100644 index 0000000000000..bfb1d365d8056 --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Extensions/VoiceServicesExtensions.cs @@ -0,0 +1,226 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager; +using Azure.ResourceManager.Resources; +using Azure.ResourceManager.VoiceServices.Models; + +namespace Azure.ResourceManager.VoiceServices +{ + /// A class to add extension methods to Azure.ResourceManager.VoiceServices. + public static partial class VoiceServicesExtensions + { + private static SubscriptionResourceExtensionClient GetExtensionClient(SubscriptionResource subscriptionResource) + { + return subscriptionResource.GetCachedClient((client) => + { + return new SubscriptionResourceExtensionClient(client, subscriptionResource.Id); + } + ); + } + + /// + /// List CommunicationsGateway resources by subscription ID + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.VoiceServices/communicationsGateways + /// + /// + /// Operation Id + /// CommunicationsGateways_ListBySubscription + /// + /// + /// + /// The instance the method will execute against. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public static AsyncPageable GetCommunicationsGatewaysAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + { + return GetExtensionClient(subscriptionResource).GetCommunicationsGatewaysAsync(cancellationToken); + } + + /// + /// List CommunicationsGateway resources by subscription ID + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.VoiceServices/communicationsGateways + /// + /// + /// Operation Id + /// CommunicationsGateways_ListBySubscription + /// + /// + /// + /// The instance the method will execute against. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public static Pageable GetCommunicationsGateways(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + { + return GetExtensionClient(subscriptionResource).GetCommunicationsGateways(cancellationToken); + } + + /// + /// Check whether the resource name is available in the given region. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.VoiceServices/locations/{location}/checkNameAvailability + /// + /// + /// Operation Id + /// NameAvailability_CheckLocal + /// + /// + /// + /// The instance the method will execute against. + /// The location in which uniqueness will be verified. + /// The check availability request body. + /// The cancellation token to use. + /// is null. + public static async Task> CheckLocalNameAvailabilityAsync(this SubscriptionResource subscriptionResource, AzureLocation location, CheckNameAvailabilityContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(content, nameof(content)); + + return await GetExtensionClient(subscriptionResource).CheckLocalNameAvailabilityAsync(location, content, cancellationToken).ConfigureAwait(false); + } + + /// + /// Check whether the resource name is available in the given region. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.VoiceServices/locations/{location}/checkNameAvailability + /// + /// + /// Operation Id + /// NameAvailability_CheckLocal + /// + /// + /// + /// The instance the method will execute against. + /// The location in which uniqueness will be verified. + /// The check availability request body. + /// The cancellation token to use. + /// is null. + public static Response CheckLocalNameAvailability(this SubscriptionResource subscriptionResource, AzureLocation location, CheckNameAvailabilityContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(content, nameof(content)); + + return GetExtensionClient(subscriptionResource).CheckLocalNameAvailability(location, content, cancellationToken); + } + + private static ResourceGroupResourceExtensionClient GetExtensionClient(ResourceGroupResource resourceGroupResource) + { + return resourceGroupResource.GetCachedClient((client) => + { + return new ResourceGroupResourceExtensionClient(client, resourceGroupResource.Id); + } + ); + } + + /// Gets a collection of CommunicationsGatewayResources in the ResourceGroupResource. + /// The instance the method will execute against. + /// An object representing collection of CommunicationsGatewayResources and their operations over a CommunicationsGatewayResource. + public static CommunicationsGatewayCollection GetCommunicationsGateways(this ResourceGroupResource resourceGroupResource) + { + return GetExtensionClient(resourceGroupResource).GetCommunicationsGateways(); + } + + /// + /// Get a CommunicationsGateway + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName} + /// + /// + /// Operation Id + /// CommunicationsGateways_Get + /// + /// + /// + /// The instance the method will execute against. + /// Unique identifier for this deployment. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public static async Task> GetCommunicationsGatewayAsync(this ResourceGroupResource resourceGroupResource, string communicationsGatewayName, CancellationToken cancellationToken = default) + { + return await resourceGroupResource.GetCommunicationsGateways().GetAsync(communicationsGatewayName, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get a CommunicationsGateway + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName} + /// + /// + /// Operation Id + /// CommunicationsGateways_Get + /// + /// + /// + /// The instance the method will execute against. + /// Unique identifier for this deployment. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public static Response GetCommunicationsGateway(this ResourceGroupResource resourceGroupResource, string communicationsGatewayName, CancellationToken cancellationToken = default) + { + return resourceGroupResource.GetCommunicationsGateways().Get(communicationsGatewayName, cancellationToken); + } + + #region CommunicationsGatewayResource + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// Returns a object. + public static CommunicationsGatewayResource GetCommunicationsGatewayResource(this ArmClient client, ResourceIdentifier id) + { + return client.GetResourceClient(() => + { + CommunicationsGatewayResource.ValidateResourceId(id); + return new CommunicationsGatewayResource(client, id); + } + ); + } + #endregion + + #region TestLineResource + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// Returns a object. + public static TestLineResource GetTestLineResource(this ArmClient client, ResourceIdentifier id) + { + return client.GetResourceClient(() => + { + TestLineResource.ValidateResourceId(id); + return new TestLineResource(client, id); + } + ); + } + #endregion + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/LongRunningOperation/CommunicationsGatewayOperationSource.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/LongRunningOperation/CommunicationsGatewayOperationSource.cs new file mode 100644 index 0000000000000..126a6cf2a3e58 --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/LongRunningOperation/CommunicationsGatewayOperationSource.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.VoiceServices +{ + internal class CommunicationsGatewayOperationSource : IOperationSource + { + private readonly ArmClient _client; + + internal CommunicationsGatewayOperationSource(ArmClient client) + { + _client = client; + } + + CommunicationsGatewayResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + var data = CommunicationsGatewayData.DeserializeCommunicationsGatewayData(document.RootElement); + return new CommunicationsGatewayResource(_client, data); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + var data = CommunicationsGatewayData.DeserializeCommunicationsGatewayData(document.RootElement); + return new CommunicationsGatewayResource(_client, data); + } + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/LongRunningOperation/TestLineOperationSource.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/LongRunningOperation/TestLineOperationSource.cs new file mode 100644 index 0000000000000..c13ea3cbad1e5 --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/LongRunningOperation/TestLineOperationSource.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.VoiceServices +{ + internal class TestLineOperationSource : IOperationSource + { + private readonly ArmClient _client; + + internal TestLineOperationSource(ArmClient client) + { + _client = client; + } + + TestLineResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + var data = TestLineData.DeserializeTestLineData(document.RootElement); + return new TestLineResource(_client, data); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + var data = TestLineData.DeserializeTestLineData(document.RootElement); + return new TestLineResource(_client, data); + } + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/LongRunningOperation/VoiceServicesArmOperation.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/LongRunningOperation/VoiceServicesArmOperation.cs new file mode 100644 index 0000000000000..6716cfc4fd165 --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/LongRunningOperation/VoiceServicesArmOperation.cs @@ -0,0 +1,70 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.VoiceServices +{ +#pragma warning disable SA1649 // File name should match first type name + internal class VoiceServicesArmOperation : ArmOperation +#pragma warning restore SA1649 // File name should match first type name + { + private readonly OperationInternal _operation; + + /// Initializes a new instance of VoiceServicesArmOperation for mocking. + protected VoiceServicesArmOperation() + { + } + + internal VoiceServicesArmOperation(Response response) + { + _operation = OperationInternal.Succeeded(response); + } + + internal VoiceServicesArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia) + { + var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia); + _operation = new OperationInternal(clientDiagnostics, nextLinkOperation, response, "VoiceServicesArmOperation", fallbackStrategy: new ExponentialDelayStrategy()); + } + + /// +#pragma warning disable CA1822 + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override string Id => throw new NotImplementedException(); +#pragma warning restore CA1822 + + /// + public override bool HasCompleted => _operation.HasCompleted; + + /// + public override Response GetRawResponse() => _operation.RawResponse; + + /// + public override Response UpdateStatus(CancellationToken cancellationToken = default) => _operation.UpdateStatus(cancellationToken); + + /// + public override ValueTask UpdateStatusAsync(CancellationToken cancellationToken = default) => _operation.UpdateStatusAsync(cancellationToken); + + /// + public override Response WaitForCompletionResponse(CancellationToken cancellationToken = default) => _operation.WaitForCompletionResponse(cancellationToken); + + /// + public override Response WaitForCompletionResponse(TimeSpan pollingInterval, CancellationToken cancellationToken = default) => _operation.WaitForCompletionResponse(pollingInterval, cancellationToken); + + /// + public override ValueTask WaitForCompletionResponseAsync(CancellationToken cancellationToken = default) => _operation.WaitForCompletionResponseAsync(cancellationToken); + + /// + public override ValueTask WaitForCompletionResponseAsync(TimeSpan pollingInterval, CancellationToken cancellationToken = default) => _operation.WaitForCompletionResponseAsync(pollingInterval, cancellationToken); + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/LongRunningOperation/VoiceServicesArmOperationOfT.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/LongRunningOperation/VoiceServicesArmOperationOfT.cs new file mode 100644 index 0000000000000..851b34af6beab --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/LongRunningOperation/VoiceServicesArmOperationOfT.cs @@ -0,0 +1,76 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.VoiceServices +{ +#pragma warning disable SA1649 // File name should match first type name + internal class VoiceServicesArmOperation : ArmOperation +#pragma warning restore SA1649 // File name should match first type name + { + private readonly OperationInternal _operation; + + /// Initializes a new instance of VoiceServicesArmOperation for mocking. + protected VoiceServicesArmOperation() + { + } + + internal VoiceServicesArmOperation(Response response) + { + _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value); + } + + internal VoiceServicesArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia) + { + var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia); + _operation = new OperationInternal(clientDiagnostics, nextLinkOperation, response, "VoiceServicesArmOperation", fallbackStrategy: new ExponentialDelayStrategy()); + } + + /// +#pragma warning disable CA1822 + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public override string Id => throw new NotImplementedException(); +#pragma warning restore CA1822 + + /// + public override T Value => _operation.Value; + + /// + public override bool HasValue => _operation.HasValue; + + /// + public override bool HasCompleted => _operation.HasCompleted; + + /// + public override Response GetRawResponse() => _operation.RawResponse; + + /// + public override Response UpdateStatus(CancellationToken cancellationToken = default) => _operation.UpdateStatus(cancellationToken); + + /// + public override ValueTask UpdateStatusAsync(CancellationToken cancellationToken = default) => _operation.UpdateStatusAsync(cancellationToken); + + /// + public override Response WaitForCompletion(CancellationToken cancellationToken = default) => _operation.WaitForCompletion(cancellationToken); + + /// + public override Response WaitForCompletion(TimeSpan pollingInterval, CancellationToken cancellationToken = default) => _operation.WaitForCompletion(pollingInterval, cancellationToken); + + /// + public override ValueTask> WaitForCompletionAsync(CancellationToken cancellationToken = default) => _operation.WaitForCompletionAsync(cancellationToken); + + /// + public override ValueTask> WaitForCompletionAsync(TimeSpan pollingInterval, CancellationToken cancellationToken = default) => _operation.WaitForCompletionAsync(pollingInterval, cancellationToken); + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/AutoGeneratedDomainNameLabelScope.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/AutoGeneratedDomainNameLabelScope.cs new file mode 100644 index 0000000000000..78ae1248f692b --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/AutoGeneratedDomainNameLabelScope.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.VoiceServices.Models +{ + /// Available auto-generated domain name scopes. + public readonly partial struct AutoGeneratedDomainNameLabelScope : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public AutoGeneratedDomainNameLabelScope(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string TenantReuseValue = "TenantReuse"; + private const string SubscriptionReuseValue = "SubscriptionReuse"; + private const string ResourceGroupReuseValue = "ResourceGroupReuse"; + private const string NoReuseValue = "NoReuse"; + + /// TenantReuse. + public static AutoGeneratedDomainNameLabelScope TenantReuse { get; } = new AutoGeneratedDomainNameLabelScope(TenantReuseValue); + /// SubscriptionReuse. + public static AutoGeneratedDomainNameLabelScope SubscriptionReuse { get; } = new AutoGeneratedDomainNameLabelScope(SubscriptionReuseValue); + /// ResourceGroupReuse. + public static AutoGeneratedDomainNameLabelScope ResourceGroupReuse { get; } = new AutoGeneratedDomainNameLabelScope(ResourceGroupReuseValue); + /// NoReuse. + public static AutoGeneratedDomainNameLabelScope NoReuse { get; } = new AutoGeneratedDomainNameLabelScope(NoReuseValue); + /// Determines if two values are the same. + public static bool operator ==(AutoGeneratedDomainNameLabelScope left, AutoGeneratedDomainNameLabelScope right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(AutoGeneratedDomainNameLabelScope left, AutoGeneratedDomainNameLabelScope right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator AutoGeneratedDomainNameLabelScope(string value) => new AutoGeneratedDomainNameLabelScope(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is AutoGeneratedDomainNameLabelScope other && Equals(other); + /// + public bool Equals(AutoGeneratedDomainNameLabelScope other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/CheckNameAvailabilityContent.Serialization.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/CheckNameAvailabilityContent.Serialization.cs new file mode 100644 index 0000000000000..cc91978419ffe --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/CheckNameAvailabilityContent.Serialization.cs @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.VoiceServices.Models +{ + public partial class CheckNameAvailabilityContent : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Name)) + { + writer.WritePropertyName("name"u8); + writer.WriteStringValue(Name); + } + if (Optional.IsDefined(ResourceType)) + { + writer.WritePropertyName("type"u8); + writer.WriteStringValue(ResourceType); + } + writer.WriteEndObject(); + } + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/CheckNameAvailabilityContent.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/CheckNameAvailabilityContent.cs new file mode 100644 index 0000000000000..bec875a4fe73b --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/CheckNameAvailabilityContent.cs @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.VoiceServices.Models +{ + /// The check availability request body. + public partial class CheckNameAvailabilityContent + { + /// Initializes a new instance of CheckNameAvailabilityContent. + public CheckNameAvailabilityContent() + { + } + + /// The name of the resource for which availability needs to be checked. + public string Name { get; set; } + /// The resource type. + public string ResourceType { get; set; } + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/CheckNameAvailabilityReason.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/CheckNameAvailabilityReason.cs new file mode 100644 index 0000000000000..03f399c9595b1 --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/CheckNameAvailabilityReason.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.VoiceServices.Models +{ + /// Possible reasons for a name not being available. + public readonly partial struct CheckNameAvailabilityReason : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public CheckNameAvailabilityReason(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string InvalidValue = "Invalid"; + private const string AlreadyExistsValue = "AlreadyExists"; + + /// Invalid. + public static CheckNameAvailabilityReason Invalid { get; } = new CheckNameAvailabilityReason(InvalidValue); + /// AlreadyExists. + public static CheckNameAvailabilityReason AlreadyExists { get; } = new CheckNameAvailabilityReason(AlreadyExistsValue); + /// Determines if two values are the same. + public static bool operator ==(CheckNameAvailabilityReason left, CheckNameAvailabilityReason right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(CheckNameAvailabilityReason left, CheckNameAvailabilityReason right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator CheckNameAvailabilityReason(string value) => new CheckNameAvailabilityReason(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is CheckNameAvailabilityReason other && Equals(other); + /// + public bool Equals(CheckNameAvailabilityReason other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/CheckNameAvailabilityResponse.Serialization.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/CheckNameAvailabilityResponse.Serialization.cs new file mode 100644 index 0000000000000..72ca8391e1264 --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/CheckNameAvailabilityResponse.Serialization.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.VoiceServices.Models +{ + public partial class CheckNameAvailabilityResponse + { + internal static CheckNameAvailabilityResponse DeserializeCheckNameAvailabilityResponse(JsonElement element) + { + Optional nameAvailable = default; + Optional reason = default; + Optional message = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("nameAvailable"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + nameAvailable = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("reason"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + reason = new CheckNameAvailabilityReason(property.Value.GetString()); + continue; + } + if (property.NameEquals("message"u8)) + { + message = property.Value.GetString(); + continue; + } + } + return new CheckNameAvailabilityResponse(Optional.ToNullable(nameAvailable), Optional.ToNullable(reason), message.Value); + } + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/CheckNameAvailabilityResponse.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/CheckNameAvailabilityResponse.cs new file mode 100644 index 0000000000000..3801bb5b295ae --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/CheckNameAvailabilityResponse.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.VoiceServices.Models +{ + /// The check availability result. + public partial class CheckNameAvailabilityResponse + { + /// Initializes a new instance of CheckNameAvailabilityResponse. + internal CheckNameAvailabilityResponse() + { + } + + /// Initializes a new instance of CheckNameAvailabilityResponse. + /// Indicates if the resource name is available. + /// The reason why the given name is not available. + /// Detailed reason why the given name is not available. + internal CheckNameAvailabilityResponse(bool? nameAvailable, CheckNameAvailabilityReason? reason, string message) + { + NameAvailable = nameAvailable; + Reason = reason; + Message = message; + } + + /// Indicates if the resource name is available. + public bool? NameAvailable { get; } + /// The reason why the given name is not available. + public CheckNameAvailabilityReason? Reason { get; } + /// Detailed reason why the given name is not available. + public string Message { get; } + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/CommunicationsGatewayData.Serialization.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/CommunicationsGatewayData.Serialization.cs new file mode 100644 index 0000000000000..94d5807b1ea05 --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/CommunicationsGatewayData.Serialization.cs @@ -0,0 +1,339 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.VoiceServices.Models; + +namespace Azure.ResourceManager.VoiceServices +{ + public partial class CommunicationsGatewayData : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(Tags)) + { + writer.WritePropertyName("tags"u8); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + writer.WritePropertyName("location"u8); + writer.WriteStringValue(Location); + writer.WritePropertyName("properties"u8); + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(ServiceLocations)) + { + writer.WritePropertyName("serviceLocations"u8); + writer.WriteStartArray(); + foreach (var item in ServiceLocations) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(Connectivity)) + { + writer.WritePropertyName("connectivity"u8); + writer.WriteStringValue(Connectivity.Value.ToString()); + } + if (Optional.IsCollectionDefined(Codecs)) + { + writer.WritePropertyName("codecs"u8); + writer.WriteStartArray(); + foreach (var item in Codecs) + { + writer.WriteStringValue(item.ToString()); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(E911Type)) + { + writer.WritePropertyName("e911Type"u8); + writer.WriteStringValue(E911Type.Value.ToString()); + } + if (Optional.IsCollectionDefined(Platforms)) + { + writer.WritePropertyName("platforms"u8); + writer.WriteStartArray(); + foreach (var item in Platforms) + { + writer.WriteStringValue(item.ToString()); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(ApiBridge)) + { + writer.WritePropertyName("apiBridge"u8); +#if NET6_0_OR_GREATER + writer.WriteRawValue(ApiBridge); +#else + JsonSerializer.Serialize(writer, JsonDocument.Parse(ApiBridge.ToString()).RootElement); +#endif + } + if (Optional.IsDefined(AutoGeneratedDomainNameLabelScope)) + { + writer.WritePropertyName("autoGeneratedDomainNameLabelScope"u8); + writer.WriteStringValue(AutoGeneratedDomainNameLabelScope.Value.ToString()); + } + if (Optional.IsDefined(TeamsVoicemailPilotNumber)) + { + writer.WritePropertyName("teamsVoicemailPilotNumber"u8); + writer.WriteStringValue(TeamsVoicemailPilotNumber); + } + if (Optional.IsDefined(OnPremMcpEnabled)) + { + writer.WritePropertyName("onPremMcpEnabled"u8); + writer.WriteBooleanValue(OnPremMcpEnabled.Value); + } + if (Optional.IsCollectionDefined(EmergencyDialStrings)) + { + writer.WritePropertyName("emergencyDialStrings"u8); + writer.WriteStartArray(); + foreach (var item in EmergencyDialStrings) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + writer.WriteEndObject(); + writer.WriteEndObject(); + } + + internal static CommunicationsGatewayData DeserializeCommunicationsGatewayData(JsonElement element) + { + Optional> tags = default; + AzureLocation location = default; + ResourceIdentifier id = default; + string name = default; + ResourceType type = default; + Optional systemData = default; + Optional provisioningState = default; + Optional status = default; + Optional> serviceLocations = default; + Optional connectivity = default; + Optional> codecs = default; + Optional e911Type = default; + Optional> platforms = default; + Optional apiBridge = default; + Optional autoGeneratedDomainNameLabelScope = default; + Optional autoGeneratedDomainNameLabel = default; + Optional teamsVoicemailPilotNumber = default; + Optional onPremMcpEnabled = default; + Optional> emergencyDialStrings = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("tags"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + tags = dictionary; + continue; + } + if (property.NameEquals("location"u8)) + { + location = new AzureLocation(property.Value.GetString()); + continue; + } + if (property.NameEquals("id"u8)) + { + id = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + type = new ResourceType(property.Value.GetString()); + continue; + } + if (property.NameEquals("systemData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("provisioningState"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + provisioningState = new ProvisioningState(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("status"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + status = new Status(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("serviceLocations"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(ServiceRegionProperties.DeserializeServiceRegionProperties(item)); + } + serviceLocations = array; + continue; + } + if (property0.NameEquals("connectivity"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + connectivity = new Connectivity(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("codecs"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(new TeamsCodec(item.GetString())); + } + codecs = array; + continue; + } + if (property0.NameEquals("e911Type"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + e911Type = new E911Type(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("platforms"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(new CommunicationsPlatform(item.GetString())); + } + platforms = array; + continue; + } + if (property0.NameEquals("apiBridge"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + apiBridge = BinaryData.FromString(property0.Value.GetRawText()); + continue; + } + if (property0.NameEquals("autoGeneratedDomainNameLabelScope"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + autoGeneratedDomainNameLabelScope = new AutoGeneratedDomainNameLabelScope(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("autoGeneratedDomainNameLabel"u8)) + { + autoGeneratedDomainNameLabel = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("teamsVoicemailPilotNumber"u8)) + { + teamsVoicemailPilotNumber = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("onPremMcpEnabled"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + onPremMcpEnabled = property0.Value.GetBoolean(); + continue; + } + if (property0.NameEquals("emergencyDialStrings"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + emergencyDialStrings = array; + continue; + } + } + continue; + } + } + return new CommunicationsGatewayData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, Optional.ToNullable(provisioningState), Optional.ToNullable(status), Optional.ToList(serviceLocations), Optional.ToNullable(connectivity), Optional.ToList(codecs), Optional.ToNullable(e911Type), Optional.ToList(platforms), apiBridge.Value, Optional.ToNullable(autoGeneratedDomainNameLabelScope), autoGeneratedDomainNameLabel.Value, teamsVoicemailPilotNumber.Value, Optional.ToNullable(onPremMcpEnabled), Optional.ToList(emergencyDialStrings)); + } + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/CommunicationsGatewayListResult.Serialization.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/CommunicationsGatewayListResult.Serialization.cs new file mode 100644 index 0000000000000..9b6988cf7de49 --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/CommunicationsGatewayListResult.Serialization.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.VoiceServices; + +namespace Azure.ResourceManager.VoiceServices.Models +{ + internal partial class CommunicationsGatewayListResult + { + internal static CommunicationsGatewayListResult DeserializeCommunicationsGatewayListResult(JsonElement element) + { + IReadOnlyList value = default; + Optional nextLink = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value"u8)) + { + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(CommunicationsGatewayData.DeserializeCommunicationsGatewayData(item)); + } + value = array; + continue; + } + if (property.NameEquals("nextLink"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + nextLink = null; + continue; + } + nextLink = new Uri(property.Value.GetString()); + continue; + } + } + return new CommunicationsGatewayListResult(value, nextLink.Value); + } + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/CommunicationsGatewayListResult.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/CommunicationsGatewayListResult.cs new file mode 100644 index 0000000000000..f205368b461b8 --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/CommunicationsGatewayListResult.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; +using Azure.Core; +using Azure.ResourceManager.VoiceServices; + +namespace Azure.ResourceManager.VoiceServices.Models +{ + /// The response of a CommunicationsGateway list operation. + internal partial class CommunicationsGatewayListResult + { + /// Initializes a new instance of CommunicationsGatewayListResult. + /// The CommunicationsGateway items on this page. + /// is null. + internal CommunicationsGatewayListResult(IEnumerable value) + { + Argument.AssertNotNull(value, nameof(value)); + + Value = value.ToList(); + } + + /// Initializes a new instance of CommunicationsGatewayListResult. + /// The CommunicationsGateway items on this page. + /// The link to the next page of items. + internal CommunicationsGatewayListResult(IReadOnlyList value, Uri nextLink) + { + Value = value; + NextLink = nextLink; + } + + /// The CommunicationsGateway items on this page. + public IReadOnlyList Value { get; } + /// The link to the next page of items. + public Uri NextLink { get; } + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/CommunicationsGatewayPatch.Serialization.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/CommunicationsGatewayPatch.Serialization.cs new file mode 100644 index 0000000000000..8431984f480ba --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/CommunicationsGatewayPatch.Serialization.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.VoiceServices.Models +{ + public partial class CommunicationsGatewayPatch : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(Tags)) + { + writer.WritePropertyName("tags"u8); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + writer.WriteEndObject(); + } + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/CommunicationsGatewayPatch.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/CommunicationsGatewayPatch.cs new file mode 100644 index 0000000000000..220428236d8f6 --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/CommunicationsGatewayPatch.cs @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.VoiceServices.Models +{ + /// The type used for update operations of the CommunicationsGateway. + public partial class CommunicationsGatewayPatch + { + /// Initializes a new instance of CommunicationsGatewayPatch. + public CommunicationsGatewayPatch() + { + Tags = new ChangeTrackingDictionary(); + } + + /// Resource tags. + public IDictionary Tags { get; } + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/CommunicationsPlatform.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/CommunicationsPlatform.cs new file mode 100644 index 0000000000000..44a389c1bfce1 --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/CommunicationsPlatform.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.VoiceServices.Models +{ + /// Available platform types. + public readonly partial struct CommunicationsPlatform : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public CommunicationsPlatform(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string OperatorConnectValue = "OperatorConnect"; + private const string TeamsPhoneMobileValue = "TeamsPhoneMobile"; + + /// OperatorConnect. + public static CommunicationsPlatform OperatorConnect { get; } = new CommunicationsPlatform(OperatorConnectValue); + /// TeamsPhoneMobile. + public static CommunicationsPlatform TeamsPhoneMobile { get; } = new CommunicationsPlatform(TeamsPhoneMobileValue); + /// Determines if two values are the same. + public static bool operator ==(CommunicationsPlatform left, CommunicationsPlatform right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(CommunicationsPlatform left, CommunicationsPlatform right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator CommunicationsPlatform(string value) => new CommunicationsPlatform(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is CommunicationsPlatform other && Equals(other); + /// + public bool Equals(CommunicationsPlatform other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/Connectivity.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/Connectivity.cs new file mode 100644 index 0000000000000..816b240eb9525 --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/Connectivity.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.VoiceServices.Models +{ + /// How this deployment connects back to the operator network. + public readonly partial struct Connectivity : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public Connectivity(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string PublicAddressValue = "PublicAddress"; + + /// This deployment connects to the operator network using a Public IP address, e.g. when using MAPS. + public static Connectivity PublicAddress { get; } = new Connectivity(PublicAddressValue); + /// Determines if two values are the same. + public static bool operator ==(Connectivity left, Connectivity right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(Connectivity left, Connectivity right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator Connectivity(string value) => new Connectivity(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is Connectivity other && Equals(other); + /// + public bool Equals(Connectivity other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/E911Type.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/E911Type.cs new file mode 100644 index 0000000000000..62ce9ee03235c --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/E911Type.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.VoiceServices.Models +{ + /// The method for terminating emergency calls to the PSTN. + public readonly partial struct E911Type : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public E911Type(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string StandardValue = "Standard"; + private const string DirectToEsrpValue = "DirectToEsrp"; + + /// Emergency calls are not handled different from other calls. + public static E911Type Standard { get; } = new E911Type(StandardValue); + /// Emergency calls are routed directly to the ESRP. + public static E911Type DirectToEsrp { get; } = new E911Type(DirectToEsrpValue); + /// Determines if two values are the same. + public static bool operator ==(E911Type left, E911Type right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(E911Type left, E911Type right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator E911Type(string value) => new E911Type(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is E911Type other && Equals(other); + /// + public bool Equals(E911Type other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/PrimaryRegionProperties.Serialization.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/PrimaryRegionProperties.Serialization.cs new file mode 100644 index 0000000000000..b2e15c3ceabe9 --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/PrimaryRegionProperties.Serialization.cs @@ -0,0 +1,126 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.VoiceServices.Models +{ + public partial class PrimaryRegionProperties : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("operatorAddresses"u8); + writer.WriteStartArray(); + foreach (var item in OperatorAddresses) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + if (Optional.IsCollectionDefined(EsrpAddresses)) + { + writer.WritePropertyName("esrpAddresses"u8); + writer.WriteStartArray(); + foreach (var item in EsrpAddresses) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(AllowedSignalingSourceAddressPrefixes)) + { + writer.WritePropertyName("allowedSignalingSourceAddressPrefixes"u8); + writer.WriteStartArray(); + foreach (var item in AllowedSignalingSourceAddressPrefixes) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(AllowedMediaSourceAddressPrefixes)) + { + writer.WritePropertyName("allowedMediaSourceAddressPrefixes"u8); + writer.WriteStartArray(); + foreach (var item in AllowedMediaSourceAddressPrefixes) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + writer.WriteEndObject(); + } + + internal static PrimaryRegionProperties DeserializePrimaryRegionProperties(JsonElement element) + { + IList operatorAddresses = default; + Optional> esrpAddresses = default; + Optional> allowedSignalingSourceAddressPrefixes = default; + Optional> allowedMediaSourceAddressPrefixes = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("operatorAddresses"u8)) + { + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + operatorAddresses = array; + continue; + } + if (property.NameEquals("esrpAddresses"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + esrpAddresses = array; + continue; + } + if (property.NameEquals("allowedSignalingSourceAddressPrefixes"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + allowedSignalingSourceAddressPrefixes = array; + continue; + } + if (property.NameEquals("allowedMediaSourceAddressPrefixes"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + allowedMediaSourceAddressPrefixes = array; + continue; + } + } + return new PrimaryRegionProperties(operatorAddresses, Optional.ToList(esrpAddresses), Optional.ToList(allowedSignalingSourceAddressPrefixes), Optional.ToList(allowedMediaSourceAddressPrefixes)); + } + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/PrimaryRegionProperties.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/PrimaryRegionProperties.cs new file mode 100644 index 0000000000000..b9bd4efafcbb4 --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/PrimaryRegionProperties.cs @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; +using Azure.Core; + +namespace Azure.ResourceManager.VoiceServices.Models +{ + /// The configuration used in this region as primary, and other regions as backup. + public partial class PrimaryRegionProperties + { + /// Initializes a new instance of PrimaryRegionProperties. + /// IP address to use to contact the operator network from this region. + /// is null. + public PrimaryRegionProperties(IEnumerable operatorAddresses) + { + Argument.AssertNotNull(operatorAddresses, nameof(operatorAddresses)); + + OperatorAddresses = operatorAddresses.ToList(); + EsrpAddresses = new ChangeTrackingList(); + AllowedSignalingSourceAddressPrefixes = new ChangeTrackingList(); + AllowedMediaSourceAddressPrefixes = new ChangeTrackingList(); + } + + /// Initializes a new instance of PrimaryRegionProperties. + /// IP address to use to contact the operator network from this region. + /// IP address to use to contact the ESRP from this region. + /// The allowed source IP address or CIDR ranges for signaling. + /// The allowed source IP address or CIDR ranges for media. + internal PrimaryRegionProperties(IList operatorAddresses, IList esrpAddresses, IList allowedSignalingSourceAddressPrefixes, IList allowedMediaSourceAddressPrefixes) + { + OperatorAddresses = operatorAddresses; + EsrpAddresses = esrpAddresses; + AllowedSignalingSourceAddressPrefixes = allowedSignalingSourceAddressPrefixes; + AllowedMediaSourceAddressPrefixes = allowedMediaSourceAddressPrefixes; + } + + /// IP address to use to contact the operator network from this region. + public IList OperatorAddresses { get; } + /// IP address to use to contact the ESRP from this region. + public IList EsrpAddresses { get; } + /// The allowed source IP address or CIDR ranges for signaling. + public IList AllowedSignalingSourceAddressPrefixes { get; } + /// The allowed source IP address or CIDR ranges for media. + public IList AllowedMediaSourceAddressPrefixes { get; } + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/ProvisioningState.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/ProvisioningState.cs new file mode 100644 index 0000000000000..b05e475ba8ef3 --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/ProvisioningState.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.VoiceServices.Models +{ + /// Provisioning state of the resource. + public readonly partial struct ProvisioningState : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ProvisioningState(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string SucceededValue = "Succeeded"; + private const string FailedValue = "Failed"; + private const string CanceledValue = "Canceled"; + + /// Succeeded. + public static ProvisioningState Succeeded { get; } = new ProvisioningState(SucceededValue); + /// Failed. + public static ProvisioningState Failed { get; } = new ProvisioningState(FailedValue); + /// Canceled. + public static ProvisioningState Canceled { get; } = new ProvisioningState(CanceledValue); + /// Determines if two values are the same. + public static bool operator ==(ProvisioningState left, ProvisioningState right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ProvisioningState left, ProvisioningState right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator ProvisioningState(string value) => new ProvisioningState(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ProvisioningState other && Equals(other); + /// + public bool Equals(ProvisioningState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/ServiceRegionProperties.Serialization.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/ServiceRegionProperties.Serialization.cs new file mode 100644 index 0000000000000..629b9860f60dd --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/ServiceRegionProperties.Serialization.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.VoiceServices.Models +{ + public partial class ServiceRegionProperties : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("name"u8); + writer.WriteStringValue(Name); + writer.WritePropertyName("primaryRegionProperties"u8); + writer.WriteObjectValue(PrimaryRegionProperties); + writer.WriteEndObject(); + } + + internal static ServiceRegionProperties DeserializeServiceRegionProperties(JsonElement element) + { + string name = default; + PrimaryRegionProperties primaryRegionProperties = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("primaryRegionProperties"u8)) + { + primaryRegionProperties = PrimaryRegionProperties.DeserializePrimaryRegionProperties(property.Value); + continue; + } + } + return new ServiceRegionProperties(name, primaryRegionProperties); + } + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/ServiceRegionProperties.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/ServiceRegionProperties.cs new file mode 100644 index 0000000000000..0e2b661c74c53 --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/ServiceRegionProperties.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.Core; + +namespace Azure.ResourceManager.VoiceServices.Models +{ + /// The service region configuration needed for Teams Callings. + public partial class ServiceRegionProperties + { + /// Initializes a new instance of ServiceRegionProperties. + /// The name of the region in which the resources needed for Teams Calling will be deployed. + /// The configuration used in this region as primary, and other regions as backup. + /// or is null. + public ServiceRegionProperties(string name, PrimaryRegionProperties primaryRegionProperties) + { + Argument.AssertNotNull(name, nameof(name)); + Argument.AssertNotNull(primaryRegionProperties, nameof(primaryRegionProperties)); + + Name = name; + PrimaryRegionProperties = primaryRegionProperties; + } + + /// The name of the region in which the resources needed for Teams Calling will be deployed. + public string Name { get; set; } + /// The configuration used in this region as primary, and other regions as backup. + public PrimaryRegionProperties PrimaryRegionProperties { get; set; } + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/Status.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/Status.cs new file mode 100644 index 0000000000000..214708cc2ead1 --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/Status.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.VoiceServices.Models +{ + /// The status of the current CommunicationsGateway resource. + public readonly partial struct Status : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public Status(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string ChangePendingValue = "ChangePending"; + private const string CompleteValue = "Complete"; + + /// The resource has been created or updated, but the CommunicationsGateway service has not yet been updated to reflect the changes. + public static Status ChangePending { get; } = new Status(ChangePendingValue); + /// The CommunicationsGateway service is up and running with the parameters specified in the resource. + public static Status Complete { get; } = new Status(CompleteValue); + /// Determines if two values are the same. + public static bool operator ==(Status left, Status right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(Status left, Status right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator Status(string value) => new Status(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is Status other && Equals(other); + /// + public bool Equals(Status other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/TeamsCodec.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/TeamsCodec.cs new file mode 100644 index 0000000000000..a3832a81ea0f8 --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/TeamsCodec.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.VoiceServices.Models +{ + /// The voice codecs expected for communication with Teams. + public readonly partial struct TeamsCodec : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public TeamsCodec(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string PcmaValue = "PCMA"; + private const string PcmuValue = "PCMU"; + private const string G722Value = "G722"; + private const string G7222Value = "G722_2"; + private const string Silk8Value = "SILK_8"; + private const string Silk16Value = "SILK_16"; + + /// PCMA. + public static TeamsCodec Pcma { get; } = new TeamsCodec(PcmaValue); + /// PCMU. + public static TeamsCodec Pcmu { get; } = new TeamsCodec(PcmuValue); + /// G722. + public static TeamsCodec G722 { get; } = new TeamsCodec(G722Value); + /// G722_2. + public static TeamsCodec G7222 { get; } = new TeamsCodec(G7222Value); + /// SILK_8. + public static TeamsCodec Silk8 { get; } = new TeamsCodec(Silk8Value); + /// SILK_16. + public static TeamsCodec Silk16 { get; } = new TeamsCodec(Silk16Value); + /// Determines if two values are the same. + public static bool operator ==(TeamsCodec left, TeamsCodec right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(TeamsCodec left, TeamsCodec right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator TeamsCodec(string value) => new TeamsCodec(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is TeamsCodec other && Equals(other); + /// + public bool Equals(TeamsCodec other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/TestLineData.Serialization.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/TestLineData.Serialization.cs new file mode 100644 index 0000000000000..9f9bbe47085a4 --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/TestLineData.Serialization.cs @@ -0,0 +1,149 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.VoiceServices.Models; + +namespace Azure.ResourceManager.VoiceServices +{ + public partial class TestLineData : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(Tags)) + { + writer.WritePropertyName("tags"u8); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + writer.WritePropertyName("location"u8); + writer.WriteStringValue(Location); + writer.WritePropertyName("properties"u8); + writer.WriteStartObject(); + if (Optional.IsDefined(PhoneNumber)) + { + writer.WritePropertyName("phoneNumber"u8); + writer.WriteStringValue(PhoneNumber); + } + if (Optional.IsDefined(Purpose)) + { + writer.WritePropertyName("purpose"u8); + writer.WriteStringValue(Purpose.Value.ToString()); + } + writer.WriteEndObject(); + writer.WriteEndObject(); + } + + internal static TestLineData DeserializeTestLineData(JsonElement element) + { + Optional> tags = default; + AzureLocation location = default; + ResourceIdentifier id = default; + string name = default; + ResourceType type = default; + Optional systemData = default; + Optional provisioningState = default; + Optional phoneNumber = default; + Optional purpose = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("tags"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + tags = dictionary; + continue; + } + if (property.NameEquals("location"u8)) + { + location = new AzureLocation(property.Value.GetString()); + continue; + } + if (property.NameEquals("id"u8)) + { + id = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + type = new ResourceType(property.Value.GetString()); + continue; + } + if (property.NameEquals("systemData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("provisioningState"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + provisioningState = new ProvisioningState(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("phoneNumber"u8)) + { + phoneNumber = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("purpose"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + purpose = new TestLinePurpose(property0.Value.GetString()); + continue; + } + } + continue; + } + } + return new TestLineData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, Optional.ToNullable(provisioningState), phoneNumber.Value, Optional.ToNullable(purpose)); + } + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/TestLineListResult.Serialization.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/TestLineListResult.Serialization.cs new file mode 100644 index 0000000000000..aa9f16a83d57d --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/TestLineListResult.Serialization.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.VoiceServices; + +namespace Azure.ResourceManager.VoiceServices.Models +{ + internal partial class TestLineListResult + { + internal static TestLineListResult DeserializeTestLineListResult(JsonElement element) + { + IReadOnlyList value = default; + Optional nextLink = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value"u8)) + { + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(TestLineData.DeserializeTestLineData(item)); + } + value = array; + continue; + } + if (property.NameEquals("nextLink"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + nextLink = null; + continue; + } + nextLink = new Uri(property.Value.GetString()); + continue; + } + } + return new TestLineListResult(value, nextLink.Value); + } + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/TestLineListResult.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/TestLineListResult.cs new file mode 100644 index 0000000000000..0bdab28f855b6 --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/TestLineListResult.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; +using Azure.Core; +using Azure.ResourceManager.VoiceServices; + +namespace Azure.ResourceManager.VoiceServices.Models +{ + /// The response of a TestLine list operation. + internal partial class TestLineListResult + { + /// Initializes a new instance of TestLineListResult. + /// The TestLine items on this page. + /// is null. + internal TestLineListResult(IEnumerable value) + { + Argument.AssertNotNull(value, nameof(value)); + + Value = value.ToList(); + } + + /// Initializes a new instance of TestLineListResult. + /// The TestLine items on this page. + /// The link to the next page of items. + internal TestLineListResult(IReadOnlyList value, Uri nextLink) + { + Value = value; + NextLink = nextLink; + } + + /// The TestLine items on this page. + public IReadOnlyList Value { get; } + /// The link to the next page of items. + public Uri NextLink { get; } + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/TestLinePatch.Serialization.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/TestLinePatch.Serialization.cs new file mode 100644 index 0000000000000..855a387f3031a --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/TestLinePatch.Serialization.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.VoiceServices.Models +{ + public partial class TestLinePatch : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(Tags)) + { + writer.WritePropertyName("tags"u8); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + writer.WriteEndObject(); + } + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/TestLinePatch.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/TestLinePatch.cs new file mode 100644 index 0000000000000..7ff2fd5bfabe3 --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/TestLinePatch.cs @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.VoiceServices.Models +{ + /// The type used for update operations of the TestLine. + public partial class TestLinePatch + { + /// Initializes a new instance of TestLinePatch. + public TestLinePatch() + { + Tags = new ChangeTrackingDictionary(); + } + + /// Resource tags. + public IDictionary Tags { get; } + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/TestLinePurpose.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/TestLinePurpose.cs new file mode 100644 index 0000000000000..25e166dbc26fc --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/Models/TestLinePurpose.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.VoiceServices.Models +{ + /// The purpose of the TestLine resource. + public readonly partial struct TestLinePurpose : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public TestLinePurpose(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string ManualValue = "Manual"; + private const string AutomatedValue = "Automated"; + + /// Manual. + public static TestLinePurpose Manual { get; } = new TestLinePurpose(ManualValue); + /// Automated. + public static TestLinePurpose Automated { get; } = new TestLinePurpose(AutomatedValue); + /// Determines if two values are the same. + public static bool operator ==(TestLinePurpose left, TestLinePurpose right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(TestLinePurpose left, TestLinePurpose right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator TestLinePurpose(string value) => new TestLinePurpose(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is TestLinePurpose other && Equals(other); + /// + public bool Equals(TestLinePurpose other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/ProviderConstants.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/ProviderConstants.cs new file mode 100644 index 0000000000000..b435b20991a80 --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/ProviderConstants.cs @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using Azure.Core.Pipeline; + +namespace Azure.ResourceManager.VoiceServices +{ + internal static class ProviderConstants + { + public static string DefaultProviderNamespace { get; } = ClientDiagnostics.GetResourceProviderNamespace(typeof(ProviderConstants).Assembly); + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/RestOperations/CommunicationsGatewaysRestOperations.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/RestOperations/CommunicationsGatewaysRestOperations.cs new file mode 100644 index 0000000000000..8f5c1f4e96110 --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/RestOperations/CommunicationsGatewaysRestOperations.cs @@ -0,0 +1,638 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.VoiceServices.Models; + +namespace Azure.ResourceManager.VoiceServices +{ + internal partial class CommunicationsGatewaysRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of CommunicationsGatewaysRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public CommunicationsGatewaysRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2023-01-31"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.VoiceServices/communicationsGateways", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List CommunicationsGateway resources by subscription ID. + /// The ID of the target subscription. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public async Task> ListBySubscriptionAsync(string subscriptionId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + + using var message = CreateListBySubscriptionRequest(subscriptionId); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + CommunicationsGatewayListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = CommunicationsGatewayListResult.DeserializeCommunicationsGatewayListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List CommunicationsGateway resources by subscription ID. + /// The ID of the target subscription. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public Response ListBySubscription(string subscriptionId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + + using var message = CreateListBySubscriptionRequest(subscriptionId); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + CommunicationsGatewayListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = CommunicationsGatewayListResult.DeserializeCommunicationsGatewayListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.VoiceServices/communicationsGateways", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List CommunicationsGateway resources by resource group. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The cancellation token to use. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + public async Task> ListByResourceGroupAsync(string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + + using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + CommunicationsGatewayListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = CommunicationsGatewayListResult.DeserializeCommunicationsGatewayListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List CommunicationsGateway resources by resource group. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The cancellation token to use. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + public Response ListByResourceGroup(string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + + using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + CommunicationsGatewayListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = CommunicationsGatewayListResult.DeserializeCommunicationsGatewayListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string communicationsGatewayName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.VoiceServices/communicationsGateways/", false); + uri.AppendPath(communicationsGatewayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Get a CommunicationsGateway. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Unique identifier for this deployment. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string communicationsGatewayName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(communicationsGatewayName, nameof(communicationsGatewayName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, communicationsGatewayName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + CommunicationsGatewayData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = CommunicationsGatewayData.DeserializeCommunicationsGatewayData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((CommunicationsGatewayData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Get a CommunicationsGateway. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Unique identifier for this deployment. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response Get(string subscriptionId, string resourceGroupName, string communicationsGatewayName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(communicationsGatewayName, nameof(communicationsGatewayName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, communicationsGatewayName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + CommunicationsGatewayData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = CommunicationsGatewayData.DeserializeCommunicationsGatewayData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((CommunicationsGatewayData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string communicationsGatewayName, CommunicationsGatewayData data) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.VoiceServices/communicationsGateways/", false); + uri.AppendPath(communicationsGatewayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(data); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Create a CommunicationsGateway. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Unique identifier for this deployment. + /// Resource create parameters. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string communicationsGatewayName, CommunicationsGatewayData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(communicationsGatewayName, nameof(communicationsGatewayName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, communicationsGatewayName, data); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 201: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Create a CommunicationsGateway. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Unique identifier for this deployment. + /// Resource create parameters. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string communicationsGatewayName, CommunicationsGatewayData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(communicationsGatewayName, nameof(communicationsGatewayName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, communicationsGatewayName, data); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 201: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string communicationsGatewayName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.VoiceServices/communicationsGateways/", false); + uri.AppendPath(communicationsGatewayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Delete a CommunicationsGateway. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Unique identifier for this deployment. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string communicationsGatewayName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(communicationsGatewayName, nameof(communicationsGatewayName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, communicationsGatewayName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Delete a CommunicationsGateway. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Unique identifier for this deployment. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response Delete(string subscriptionId, string resourceGroupName, string communicationsGatewayName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(communicationsGatewayName, nameof(communicationsGatewayName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, communicationsGatewayName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string communicationsGatewayName, CommunicationsGatewayPatch patch) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Patch; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.VoiceServices/communicationsGateways/", false); + uri.AppendPath(communicationsGatewayName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(patch); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Update a CommunicationsGateway. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Unique identifier for this deployment. + /// The resource properties to be updated. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string communicationsGatewayName, CommunicationsGatewayPatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(communicationsGatewayName, nameof(communicationsGatewayName)); + Argument.AssertNotNull(patch, nameof(patch)); + + using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, communicationsGatewayName, patch); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + CommunicationsGatewayData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = CommunicationsGatewayData.DeserializeCommunicationsGatewayData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Update a CommunicationsGateway. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Unique identifier for this deployment. + /// The resource properties to be updated. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response Update(string subscriptionId, string resourceGroupName, string communicationsGatewayName, CommunicationsGatewayPatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(communicationsGatewayName, nameof(communicationsGatewayName)); + Argument.AssertNotNull(patch, nameof(patch)); + + using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, communicationsGatewayName, patch); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + CommunicationsGatewayData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = CommunicationsGatewayData.DeserializeCommunicationsGatewayData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List CommunicationsGateway resources by subscription ID. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The cancellation token to use. + /// or is null. + /// is an empty string, and was expected to be non-empty. + public async Task> ListBySubscriptionNextPageAsync(string nextLink, string subscriptionId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + + using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + CommunicationsGatewayListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = CommunicationsGatewayListResult.DeserializeCommunicationsGatewayListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List CommunicationsGateway resources by subscription ID. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The cancellation token to use. + /// or is null. + /// is an empty string, and was expected to be non-empty. + public Response ListBySubscriptionNextPage(string nextLink, string subscriptionId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + + using var message = CreateListBySubscriptionNextPageRequest(nextLink, subscriptionId); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + CommunicationsGatewayListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = CommunicationsGatewayListResult.DeserializeCommunicationsGatewayListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List CommunicationsGateway resources by resource group. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The cancellation token to use. + /// , or is null. + /// or is an empty string, and was expected to be non-empty. + public async Task> ListByResourceGroupNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + + using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + CommunicationsGatewayListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = CommunicationsGatewayListResult.DeserializeCommunicationsGatewayListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List CommunicationsGateway resources by resource group. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The cancellation token to use. + /// , or is null. + /// or is an empty string, and was expected to be non-empty. + public Response ListByResourceGroupNextPage(string nextLink, string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + + using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + CommunicationsGatewayListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = CommunicationsGatewayListResult.DeserializeCommunicationsGatewayListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/RestOperations/NameAvailabilityRestOperations.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/RestOperations/NameAvailabilityRestOperations.cs new file mode 100644 index 0000000000000..580b2edd831a3 --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/RestOperations/NameAvailabilityRestOperations.cs @@ -0,0 +1,119 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.VoiceServices.Models; + +namespace Azure.ResourceManager.VoiceServices +{ + internal partial class NameAvailabilityRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of NameAvailabilityRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public NameAvailabilityRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2023-01-31"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal HttpMessage CreateCheckLocalRequest(string subscriptionId, AzureLocation location, CheckNameAvailabilityContent content) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.VoiceServices/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/checkNameAvailability", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content0 = new Utf8JsonRequestContent(); + content0.JsonWriter.WriteObjectValue(content); + request.Content = content0; + _userAgent.Apply(message); + return message; + } + + /// Check whether the resource name is available in the given region. + /// The ID of the target subscription. + /// The location in which uniqueness will be verified. + /// The check availability request body. + /// The cancellation token to use. + /// or is null. + /// is an empty string, and was expected to be non-empty. + public async Task> CheckLocalAsync(string subscriptionId, AzureLocation location, CheckNameAvailabilityContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNull(content, nameof(content)); + + using var message = CreateCheckLocalRequest(subscriptionId, location, content); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + CheckNameAvailabilityResponse value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = CheckNameAvailabilityResponse.DeserializeCheckNameAvailabilityResponse(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Check whether the resource name is available in the given region. + /// The ID of the target subscription. + /// The location in which uniqueness will be verified. + /// The check availability request body. + /// The cancellation token to use. + /// or is null. + /// is an empty string, and was expected to be non-empty. + public Response CheckLocal(string subscriptionId, AzureLocation location, CheckNameAvailabilityContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNull(content, nameof(content)); + + using var message = CreateCheckLocalRequest(subscriptionId, location, content); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + CheckNameAvailabilityResponse value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = CheckNameAvailabilityResponse.DeserializeCheckNameAvailabilityResponse(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/RestOperations/TestLinesRestOperations.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/RestOperations/TestLinesRestOperations.cs new file mode 100644 index 0000000000000..203a3205c30ff --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/RestOperations/TestLinesRestOperations.cs @@ -0,0 +1,537 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.VoiceServices.Models; + +namespace Azure.ResourceManager.VoiceServices +{ + internal partial class TestLinesRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of TestLinesRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public TestLinesRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2023-01-31"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal HttpMessage CreateListByCommunicationsGatewayRequest(string subscriptionId, string resourceGroupName, string communicationsGatewayName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.VoiceServices/communicationsGateways/", false); + uri.AppendPath(communicationsGatewayName, true); + uri.AppendPath("/testLines", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List TestLine resources by CommunicationsGateway. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Unique identifier for this deployment. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListByCommunicationsGatewayAsync(string subscriptionId, string resourceGroupName, string communicationsGatewayName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(communicationsGatewayName, nameof(communicationsGatewayName)); + + using var message = CreateListByCommunicationsGatewayRequest(subscriptionId, resourceGroupName, communicationsGatewayName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + TestLineListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = TestLineListResult.DeserializeTestLineListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List TestLine resources by CommunicationsGateway. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Unique identifier for this deployment. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response ListByCommunicationsGateway(string subscriptionId, string resourceGroupName, string communicationsGatewayName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(communicationsGatewayName, nameof(communicationsGatewayName)); + + using var message = CreateListByCommunicationsGatewayRequest(subscriptionId, resourceGroupName, communicationsGatewayName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + TestLineListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = TestLineListResult.DeserializeTestLineListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string communicationsGatewayName, string testLineName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.VoiceServices/communicationsGateways/", false); + uri.AppendPath(communicationsGatewayName, true); + uri.AppendPath("/testLines/", false); + uri.AppendPath(testLineName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Get a TestLine. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Unique identifier for this deployment. + /// Unique identifier for this test line. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string communicationsGatewayName, string testLineName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(communicationsGatewayName, nameof(communicationsGatewayName)); + Argument.AssertNotNullOrEmpty(testLineName, nameof(testLineName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, communicationsGatewayName, testLineName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + TestLineData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = TestLineData.DeserializeTestLineData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((TestLineData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Get a TestLine. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Unique identifier for this deployment. + /// Unique identifier for this test line. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Get(string subscriptionId, string resourceGroupName, string communicationsGatewayName, string testLineName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(communicationsGatewayName, nameof(communicationsGatewayName)); + Argument.AssertNotNullOrEmpty(testLineName, nameof(testLineName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, communicationsGatewayName, testLineName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + TestLineData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = TestLineData.DeserializeTestLineData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((TestLineData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string communicationsGatewayName, string testLineName, TestLineData data) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.VoiceServices/communicationsGateways/", false); + uri.AppendPath(communicationsGatewayName, true); + uri.AppendPath("/testLines/", false); + uri.AppendPath(testLineName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(data); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Create a TestLine. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Unique identifier for this deployment. + /// Unique identifier for this test line. + /// Resource create parameters. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string communicationsGatewayName, string testLineName, TestLineData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(communicationsGatewayName, nameof(communicationsGatewayName)); + Argument.AssertNotNullOrEmpty(testLineName, nameof(testLineName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, communicationsGatewayName, testLineName, data); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 201: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Create a TestLine. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Unique identifier for this deployment. + /// Unique identifier for this test line. + /// Resource create parameters. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string communicationsGatewayName, string testLineName, TestLineData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(communicationsGatewayName, nameof(communicationsGatewayName)); + Argument.AssertNotNullOrEmpty(testLineName, nameof(testLineName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, communicationsGatewayName, testLineName, data); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 201: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string communicationsGatewayName, string testLineName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.VoiceServices/communicationsGateways/", false); + uri.AppendPath(communicationsGatewayName, true); + uri.AppendPath("/testLines/", false); + uri.AppendPath(testLineName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Delete a TestLine. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Unique identifier for this deployment. + /// Unique identifier for this test line. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string communicationsGatewayName, string testLineName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(communicationsGatewayName, nameof(communicationsGatewayName)); + Argument.AssertNotNullOrEmpty(testLineName, nameof(testLineName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, communicationsGatewayName, testLineName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Delete a TestLine. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Unique identifier for this deployment. + /// Unique identifier for this test line. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Delete(string subscriptionId, string resourceGroupName, string communicationsGatewayName, string testLineName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(communicationsGatewayName, nameof(communicationsGatewayName)); + Argument.AssertNotNullOrEmpty(testLineName, nameof(testLineName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, communicationsGatewayName, testLineName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string communicationsGatewayName, string testLineName, TestLinePatch patch) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Patch; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.VoiceServices/communicationsGateways/", false); + uri.AppendPath(communicationsGatewayName, true); + uri.AppendPath("/testLines/", false); + uri.AppendPath(testLineName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(patch); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Update a TestLine. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Unique identifier for this deployment. + /// Unique identifier for this test line. + /// The resource properties to be updated. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string communicationsGatewayName, string testLineName, TestLinePatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(communicationsGatewayName, nameof(communicationsGatewayName)); + Argument.AssertNotNullOrEmpty(testLineName, nameof(testLineName)); + Argument.AssertNotNull(patch, nameof(patch)); + + using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, communicationsGatewayName, testLineName, patch); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + TestLineData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = TestLineData.DeserializeTestLineData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Update a TestLine. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Unique identifier for this deployment. + /// Unique identifier for this test line. + /// The resource properties to be updated. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Update(string subscriptionId, string resourceGroupName, string communicationsGatewayName, string testLineName, TestLinePatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(communicationsGatewayName, nameof(communicationsGatewayName)); + Argument.AssertNotNullOrEmpty(testLineName, nameof(testLineName)); + Argument.AssertNotNull(patch, nameof(patch)); + + using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, communicationsGatewayName, testLineName, patch); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + TestLineData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = TestLineData.DeserializeTestLineData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListByCommunicationsGatewayNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string communicationsGatewayName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List TestLine resources by CommunicationsGateway. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Unique identifier for this deployment. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListByCommunicationsGatewayNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string communicationsGatewayName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(communicationsGatewayName, nameof(communicationsGatewayName)); + + using var message = CreateListByCommunicationsGatewayNextPageRequest(nextLink, subscriptionId, resourceGroupName, communicationsGatewayName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + TestLineListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = TestLineListResult.DeserializeTestLineListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List TestLine resources by CommunicationsGateway. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Unique identifier for this deployment. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response ListByCommunicationsGatewayNextPage(string nextLink, string subscriptionId, string resourceGroupName, string communicationsGatewayName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(communicationsGatewayName, nameof(communicationsGatewayName)); + + using var message = CreateListByCommunicationsGatewayNextPageRequest(nextLink, subscriptionId, resourceGroupName, communicationsGatewayName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + TestLineListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = TestLineListResult.DeserializeTestLineListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/TestLineCollection.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/TestLineCollection.cs new file mode 100644 index 0000000000000..ebc8ffeed3216 --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/TestLineCollection.cs @@ -0,0 +1,340 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.VoiceServices +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetTestLines method from an instance of . + /// + public partial class TestLineCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _testLineClientDiagnostics; + private readonly TestLinesRestOperations _testLineRestClient; + + /// Initializes a new instance of the class for mocking. + protected TestLineCollection() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the parent resource that is the target of operations. + internal TestLineCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _testLineClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.VoiceServices", TestLineResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(TestLineResource.ResourceType, out string testLineApiVersion); + _testLineRestClient = new TestLinesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, testLineApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != CommunicationsGatewayResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, CommunicationsGatewayResource.ResourceType), nameof(id)); + } + + /// + /// Create a TestLine + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}/testLines/{testLineName} + /// + /// + /// Operation Id + /// TestLines_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Unique identifier for this test line. + /// Resource create parameters. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string testLineName, TestLineData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(testLineName, nameof(testLineName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _testLineClientDiagnostics.CreateScope("TestLineCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = await _testLineRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, testLineName, data, cancellationToken).ConfigureAwait(false); + var operation = new VoiceServicesArmOperation(new TestLineOperationSource(Client), _testLineClientDiagnostics, Pipeline, _testLineRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, testLineName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create a TestLine + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}/testLines/{testLineName} + /// + /// + /// Operation Id + /// TestLines_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Unique identifier for this test line. + /// Resource create parameters. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string testLineName, TestLineData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(testLineName, nameof(testLineName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _testLineClientDiagnostics.CreateScope("TestLineCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = _testLineRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, testLineName, data, cancellationToken); + var operation = new VoiceServicesArmOperation(new TestLineOperationSource(Client), _testLineClientDiagnostics, Pipeline, _testLineRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, testLineName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get a TestLine + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}/testLines/{testLineName} + /// + /// + /// Operation Id + /// TestLines_Get + /// + /// + /// + /// Unique identifier for this test line. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetAsync(string testLineName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(testLineName, nameof(testLineName)); + + using var scope = _testLineClientDiagnostics.CreateScope("TestLineCollection.Get"); + scope.Start(); + try + { + var response = await _testLineRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, testLineName, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new TestLineResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get a TestLine + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}/testLines/{testLineName} + /// + /// + /// Operation Id + /// TestLines_Get + /// + /// + /// + /// Unique identifier for this test line. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string testLineName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(testLineName, nameof(testLineName)); + + using var scope = _testLineClientDiagnostics.CreateScope("TestLineCollection.Get"); + scope.Start(); + try + { + var response = _testLineRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, testLineName, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new TestLineResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// List TestLine resources by CommunicationsGateway + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}/testLines + /// + /// + /// Operation Id + /// TestLines_ListByCommunicationsGateway + /// + /// + /// + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _testLineRestClient.CreateListByCommunicationsGatewayRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _testLineRestClient.CreateListByCommunicationsGatewayNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new TestLineResource(Client, TestLineData.DeserializeTestLineData(e)), _testLineClientDiagnostics, Pipeline, "TestLineCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// List TestLine resources by CommunicationsGateway + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}/testLines + /// + /// + /// Operation Id + /// TestLines_ListByCommunicationsGateway + /// + /// + /// + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _testLineRestClient.CreateListByCommunicationsGatewayRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _testLineRestClient.CreateListByCommunicationsGatewayNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new TestLineResource(Client, TestLineData.DeserializeTestLineData(e)), _testLineClientDiagnostics, Pipeline, "TestLineCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}/testLines/{testLineName} + /// + /// + /// Operation Id + /// TestLines_Get + /// + /// + /// + /// Unique identifier for this test line. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> ExistsAsync(string testLineName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(testLineName, nameof(testLineName)); + + using var scope = _testLineClientDiagnostics.CreateScope("TestLineCollection.Exists"); + scope.Start(); + try + { + var response = await _testLineRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, testLineName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}/testLines/{testLineName} + /// + /// + /// Operation Id + /// TestLines_Get + /// + /// + /// + /// Unique identifier for this test line. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string testLineName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(testLineName, nameof(testLineName)); + + using var scope = _testLineClientDiagnostics.CreateScope("TestLineCollection.Exists"); + scope.Start(); + try + { + var response = _testLineRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, testLineName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + { + return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); + } + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/TestLineData.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/TestLineData.cs new file mode 100644 index 0000000000000..cac4e93349846 --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/TestLineData.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.VoiceServices.Models; + +namespace Azure.ResourceManager.VoiceServices +{ + /// A class representing the TestLine data model. + public partial class TestLineData : TrackedResourceData + { + /// Initializes a new instance of TestLineData. + /// The location. + public TestLineData(AzureLocation location) : base(location) + { + } + + /// Initializes a new instance of TestLineData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// Resource provisioning state. + /// The phone number. + /// Purpose of this test line, e.g. automated or manual testing. + internal TestLineData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ProvisioningState? provisioningState, string phoneNumber, TestLinePurpose? purpose) : base(id, name, resourceType, systemData, tags, location) + { + ProvisioningState = provisioningState; + PhoneNumber = phoneNumber; + Purpose = purpose; + } + + /// Resource provisioning state. + public ProvisioningState? ProvisioningState { get; } + /// The phone number. + public string PhoneNumber { get; set; } + /// Purpose of this test line, e.g. automated or manual testing. + public TestLinePurpose? Purpose { get; set; } + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/TestLineResource.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/TestLineResource.cs new file mode 100644 index 0000000000000..5b9f152fb9d1a --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Generated/TestLineResource.cs @@ -0,0 +1,601 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; +using Azure.ResourceManager.VoiceServices.Models; + +namespace Azure.ResourceManager.VoiceServices +{ + /// + /// A Class representing a TestLine along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetTestLineResource method. + /// Otherwise you can get one from its parent resource using the GetTestLine method. + /// + public partial class TestLineResource : ArmResource + { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string communicationsGatewayName, string testLineName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}/testLines/{testLineName}"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _testLineClientDiagnostics; + private readonly TestLinesRestOperations _testLineRestClient; + private readonly TestLineData _data; + + /// Initializes a new instance of the class for mocking. + protected TestLineResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal TestLineResource(ArmClient client, TestLineData data) : this(client, data.Id) + { + HasData = true; + _data = data; + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the resource that is the target of operations. + internal TestLineResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _testLineClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.VoiceServices", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string testLineApiVersion); + _testLineRestClient = new TestLinesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, testLineApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.VoiceServices/communicationsGateways/testLines"; + + /// Gets whether or not the current instance has data. + public virtual bool HasData { get; } + + /// Gets the data representing this Feature. + /// Throws if there is no data loaded in the current instance. + public virtual TestLineData Data + { + get + { + if (!HasData) + throw new InvalidOperationException("The current instance does not have data, you must call Get first."); + return _data; + } + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); + } + + /// + /// Get a TestLine + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}/testLines/{testLineName} + /// + /// + /// Operation Id + /// TestLines_Get + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using var scope = _testLineClientDiagnostics.CreateScope("TestLineResource.Get"); + scope.Start(); + try + { + var response = await _testLineRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new TestLineResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get a TestLine + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}/testLines/{testLineName} + /// + /// + /// Operation Id + /// TestLines_Get + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using var scope = _testLineClientDiagnostics.CreateScope("TestLineResource.Get"); + scope.Start(); + try + { + var response = _testLineRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new TestLineResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete a TestLine + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}/testLines/{testLineName} + /// + /// + /// Operation Id + /// TestLines_Delete + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _testLineClientDiagnostics.CreateScope("TestLineResource.Delete"); + scope.Start(); + try + { + var response = await _testLineRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new VoiceServicesArmOperation(_testLineClientDiagnostics, Pipeline, _testLineRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.AzureAsyncOperation); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete a TestLine + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}/testLines/{testLineName} + /// + /// + /// Operation Id + /// TestLines_Delete + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _testLineClientDiagnostics.CreateScope("TestLineResource.Delete"); + scope.Start(); + try + { + var response = _testLineRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new VoiceServicesArmOperation(_testLineClientDiagnostics, Pipeline, _testLineRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.AzureAsyncOperation); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Update a TestLine + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}/testLines/{testLineName} + /// + /// + /// Operation Id + /// TestLines_Update + /// + /// + /// + /// The resource properties to be updated. + /// The cancellation token to use. + /// is null. + public virtual async Task> UpdateAsync(TestLinePatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(patch, nameof(patch)); + + using var scope = _testLineClientDiagnostics.CreateScope("TestLineResource.Update"); + scope.Start(); + try + { + var response = await _testLineRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new TestLineResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Update a TestLine + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}/testLines/{testLineName} + /// + /// + /// Operation Id + /// TestLines_Update + /// + /// + /// + /// The resource properties to be updated. + /// The cancellation token to use. + /// is null. + public virtual Response Update(TestLinePatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(patch, nameof(patch)); + + using var scope = _testLineClientDiagnostics.CreateScope("TestLineResource.Update"); + scope.Start(); + try + { + var response = _testLineRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken); + return Response.FromValue(new TestLineResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Add a tag to the current resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}/testLines/{testLineName} + /// + /// + /// Operation Id + /// TestLines_Get + /// + /// + /// + /// The key for the tag. + /// The value for the tag. + /// The cancellation token to use. + /// or is null. + public virtual async Task> AddTagAsync(string key, string value, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(key, nameof(key)); + Argument.AssertNotNull(value, nameof(value)); + + using var scope = _testLineClientDiagnostics.CreateScope("TestLineResource.AddTag"); + scope.Start(); + try + { + if (await CanUseTagResourceAsync(cancellationToken: cancellationToken).ConfigureAwait(false)) + { + var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); + originalTags.Value.Data.TagValues[key] = value; + await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); + var originalResponse = await _testLineRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new TestLineResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; + var patch = new TestLinePatch(); + foreach (var tag in current.Tags) + { + patch.Tags.Add(tag); + } + patch.Tags[key] = value; + var result = await UpdateAsync(patch, cancellationToken: cancellationToken).ConfigureAwait(false); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Add a tag to the current resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}/testLines/{testLineName} + /// + /// + /// Operation Id + /// TestLines_Get + /// + /// + /// + /// The key for the tag. + /// The value for the tag. + /// The cancellation token to use. + /// or is null. + public virtual Response AddTag(string key, string value, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(key, nameof(key)); + Argument.AssertNotNull(value, nameof(value)); + + using var scope = _testLineClientDiagnostics.CreateScope("TestLineResource.AddTag"); + scope.Start(); + try + { + if (CanUseTagResource(cancellationToken: cancellationToken)) + { + var originalTags = GetTagResource().Get(cancellationToken); + originalTags.Value.Data.TagValues[key] = value; + GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); + var originalResponse = _testLineRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + return Response.FromValue(new TestLineResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = Get(cancellationToken: cancellationToken).Value.Data; + var patch = new TestLinePatch(); + foreach (var tag in current.Tags) + { + patch.Tags.Add(tag); + } + patch.Tags[key] = value; + var result = Update(patch, cancellationToken: cancellationToken); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Replace the tags on the resource with the given set. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}/testLines/{testLineName} + /// + /// + /// Operation Id + /// TestLines_Get + /// + /// + /// + /// The set of tags to use as replacement. + /// The cancellation token to use. + /// is null. + public virtual async Task> SetTagsAsync(IDictionary tags, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(tags, nameof(tags)); + + using var scope = _testLineClientDiagnostics.CreateScope("TestLineResource.SetTags"); + scope.Start(); + try + { + if (await CanUseTagResourceAsync(cancellationToken: cancellationToken).ConfigureAwait(false)) + { + await GetTagResource().DeleteAsync(WaitUntil.Completed, cancellationToken: cancellationToken).ConfigureAwait(false); + var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); + originalTags.Value.Data.TagValues.ReplaceWith(tags); + await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); + var originalResponse = await _testLineRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new TestLineResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; + var patch = new TestLinePatch(); + patch.Tags.ReplaceWith(tags); + var result = await UpdateAsync(patch, cancellationToken: cancellationToken).ConfigureAwait(false); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Replace the tags on the resource with the given set. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}/testLines/{testLineName} + /// + /// + /// Operation Id + /// TestLines_Get + /// + /// + /// + /// The set of tags to use as replacement. + /// The cancellation token to use. + /// is null. + public virtual Response SetTags(IDictionary tags, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(tags, nameof(tags)); + + using var scope = _testLineClientDiagnostics.CreateScope("TestLineResource.SetTags"); + scope.Start(); + try + { + if (CanUseTagResource(cancellationToken: cancellationToken)) + { + GetTagResource().Delete(WaitUntil.Completed, cancellationToken: cancellationToken); + var originalTags = GetTagResource().Get(cancellationToken); + originalTags.Value.Data.TagValues.ReplaceWith(tags); + GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); + var originalResponse = _testLineRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + return Response.FromValue(new TestLineResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = Get(cancellationToken: cancellationToken).Value.Data; + var patch = new TestLinePatch(); + patch.Tags.ReplaceWith(tags); + var result = Update(patch, cancellationToken: cancellationToken); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Removes a tag by key from the resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}/testLines/{testLineName} + /// + /// + /// Operation Id + /// TestLines_Get + /// + /// + /// + /// The key for the tag. + /// The cancellation token to use. + /// is null. + public virtual async Task> RemoveTagAsync(string key, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(key, nameof(key)); + + using var scope = _testLineClientDiagnostics.CreateScope("TestLineResource.RemoveTag"); + scope.Start(); + try + { + if (await CanUseTagResourceAsync(cancellationToken: cancellationToken).ConfigureAwait(false)) + { + var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); + originalTags.Value.Data.TagValues.Remove(key); + await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); + var originalResponse = await _testLineRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new TestLineResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; + var patch = new TestLinePatch(); + foreach (var tag in current.Tags) + { + patch.Tags.Add(tag); + } + patch.Tags.Remove(key); + var result = await UpdateAsync(patch, cancellationToken: cancellationToken).ConfigureAwait(false); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Removes a tag by key from the resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}/testLines/{testLineName} + /// + /// + /// Operation Id + /// TestLines_Get + /// + /// + /// + /// The key for the tag. + /// The cancellation token to use. + /// is null. + public virtual Response RemoveTag(string key, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(key, nameof(key)); + + using var scope = _testLineClientDiagnostics.CreateScope("TestLineResource.RemoveTag"); + scope.Start(); + try + { + if (CanUseTagResource(cancellationToken: cancellationToken)) + { + var originalTags = GetTagResource().Get(cancellationToken); + originalTags.Value.Data.TagValues.Remove(key); + GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); + var originalResponse = _testLineRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + return Response.FromValue(new TestLineResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = Get(cancellationToken: cancellationToken).Value.Data; + var patch = new TestLinePatch(); + foreach (var tag in current.Tags) + { + patch.Tags.Add(tag); + } + patch.Tags.Remove(key); + var result = Update(patch, cancellationToken: cancellationToken); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Properties/AssemblyInfo.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Properties/AssemblyInfo.cs new file mode 100644 index 0000000000000..a688bf7f58842 --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Properties/AssemblyInfo.cs @@ -0,0 +1,9 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System.Runtime.CompilerServices; + +[assembly: Azure.Core.AzureResourceProviderNamespace("Microsoft.VoiceServices")] + +[assembly: InternalsVisibleTo("DynamicProxyGenAssembly2, PublicKey=0024000004800000940000000602000000240000525341310004000001000100c547cac37abd99c8db225ef2f6c8a3602f3b3606cc9891605d02baa56104f4cfc0734aa39b93bf7852f7d9266654753cc297e7d2edfe0bac1cdcf9f717241550e0a7b191195b7667bb4f64bcb8e2121380fd1d9d46ad2d92d2d15605093924cceaf74c4861eff62abf69b9291ed0a340e113be11e6a7d3113e92484cf7045cc7")] +[assembly: InternalsVisibleTo("Azure.ResourceManager.VoiceServices.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100d15ddcb29688295338af4b7686603fe614abd555e09efba8fb88ee09e1f7b1ccaeed2e8f823fa9eef3fdd60217fc012ea67d2479751a0b8c087a4185541b851bd8b16f8d91b840e51b1cb0ba6fe647997e57429265e85ef62d565db50a69ae1647d54d7bd855e4db3d8a91510e5bcbd0edfbbecaa20a7bd9ae74593daa7b11b4")] diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/autorest.md b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/autorest.md new file mode 100644 index 0000000000000..c07ad00bc50af --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/autorest.md @@ -0,0 +1,48 @@ +# Generated code configuration + +Run `dotnet build /t:GenerateCode` to generate code. + +``` yaml +azure-arm: true +csharp: true +library-name: VoiceServices +namespace: Azure.ResourceManager.VoiceServices +require: https://github.com/Azure/azure-rest-api-specs/blob/7b47689d4efc098f25f46781f05f22179c153314/specification/voiceservices/resource-manager/readme.md +output-folder: $(this-folder)/Generated +clear-output-folder: true +skip-csproj: true +modelerfour: + flatten-payloads: false + + +format-by-name-rules: + 'tenantId': 'uuid' + 'ETag': 'etag' + 'location': 'azure-location' + '*Uri': 'Uri' + '*Uris': 'Uri' + +rename-rules: + CPU: Cpu + CPUs: Cpus + Os: OS + Ip: IP + Ips: IPs|ips + ID: Id + IDs: Ids + VM: Vm + VMs: Vms + Vmos: VmOS + VMScaleSet: VmScaleSet + DNS: Dns + VPN: Vpn + NAT: Nat + WAN: Wan + Ipv4: IPv4|ipv4 + Ipv6: IPv6|ipv6 + Ipsec: IPsec|ipsec + SSO: Sso + URI: Uri + Etag: ETag|etag + +``` \ No newline at end of file diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/tests/Azure.ResourceManager.VoiceServices.Tests.csproj b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/tests/Azure.ResourceManager.VoiceServices.Tests.csproj new file mode 100644 index 0000000000000..ee5a002a6e8fe --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/tests/Azure.ResourceManager.VoiceServices.Tests.csproj @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/tests/SessionRecords/CommunicationsGatewayCRUDTests/CRUD.json b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/tests/SessionRecords/CommunicationsGatewayCRUDTests/CRUD.json new file mode 100644 index 0000000000000..ddad9b9bb400d --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/tests/SessionRecords/CommunicationsGatewayCRUDTests/CRUD.json @@ -0,0 +1,1273 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a?api-version=2021-01-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-61ac77a9ec315232150cfdbafef480ff-bcf47184df75ba5f-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "4eb4cc043f1fef2fcf56a96b03214abe", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "418", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 13:59:47 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e3f60d0f-db0d-4c5f-a448-d3da4b11d22d", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-request-id": "e3f60d0f-db0d-4c5f-a448-d3da4b11d22d", + "x-ms-routing-request-id": "UKSOUTH:20230220T135948Z:e3f60d0f-db0d-4c5f-a448-d3da4b11d22d" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "subscriptionId": "d2b80745-3b5d-4357-84cc-ede5c5886c5a", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "A4O VoiceServices RP Test Subscription", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourcegroups/SDKTest7027?api-version=**", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "28", + "Content-Type": "application/json", + "traceparent": "00-d25f3cbe6e49a144473d40307d7bf284-f0c2762a5eee0022-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "838a9122cf2ee376527a8ad2a6995da4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "centraluseuap" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "226", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 13:59:48 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "dcc140d3-29bb-4fe2-9418-34e181ee4c71", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-request-id": "dcc140d3-29bb-4fe2-9418-34e181ee4c71", + "x-ms-routing-request-id": "UKSOUTH:20230220T135949Z:dcc140d3-29bb-4fe2-9418-34e181ee4c71" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest7027", + "name": "SDKTest7027", + "type": "Microsoft.Resources/resourceGroups", + "location": "centraluseuap", + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest7027/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest7634?api-version=2023-01-31", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "333", + "Content-Type": "application/json", + "traceparent": "00-5b48f2611f18e4b5493c81bbc244893c-a96cbb9466b3e65a-00", + "User-Agent": "azsdk-net-ResourceManager.VoiceServices/1.0.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "4da212931f6582e71920bfee0beb7955", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": {}, + "location": "centraluseuap", + "properties": { + "serviceLocations": [ + { + "name": "eastus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.1" + ] + } + }, + { + "name": "westus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.2" + ] + } + } + ], + "connectivity": "PublicAddress", + "codecs": [ + "PCMA" + ], + "e911Type": "Standard", + "platforms": [ + "OperatorConnect" + ] + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/9bcf2c49-00f4-4ff2-be06-1279cf26dd42*1460767FBCDFE77AADB53C0A8CCEB213284637308EC68C9C779B8E27633A5D89?api-version=2023-01-31", + "Cache-Control": "no-cache", + "Content-Length": "874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 13:59:53 GMT", + "ETag": "\u002201000bcd-0000-3400-0000-63f37cd90000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:ee9ea8e7-bc71-4c0f-83ad-dc11c5b30732", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "4da212931f6582e71920bfee0beb7955", + "x-ms-correlation-request-id": "d6902026-38d6-44a3-87a3-b3b991cbcd7a", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-request-id": "9bcf2c49-00f4-4ff2-be06-1279cf26dd42", + "x-ms-routing-request-id": "UKSOUTH:20230220T135953Z:d6902026-38d6-44a3-87a3-b3b991cbcd7a" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest7027/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest7634", + "name": "SDKTest7634", + "type": "microsoft.voiceservices/communicationsgateways", + "location": "centraluseuap", + "tags": {}, + "systemData": { + "createdBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "createdByType": "Application", + "createdAt": "2023-02-20T13:59:51.7738167Z", + "lastModifiedBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "lastModifiedByType": "Application", + "lastModifiedAt": "2023-02-20T13:59:51.7738167Z" + }, + "properties": { + "serviceLocations": [ + { + "name": "eastus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.1" + ] + } + }, + { + "name": "westus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.2" + ] + } + } + ], + "connectivity": "PublicAddress", + "codecs": [ + "PCMA" + ], + "e911Type": "Standard", + "platforms": [ + "OperatorConnect" + ], + "provisioningState": "Accepted" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/9bcf2c49-00f4-4ff2-be06-1279cf26dd42*1460767FBCDFE77AADB53C0A8CCEB213284637308EC68C9C779B8E27633A5D89?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5b48f2611f18e4b5493c81bbc244893c-6933bfa2ceaecd64-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "388e15c76c1c71bda30115aeb7f4468e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "574", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 13:59:53 GMT", + "ETag": "\u00224100c1e0-0000-3400-0000-63f37cd90000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "388e15c76c1c71bda30115aeb7f4468e", + "x-ms-correlation-request-id": "3a87f31c-a36f-4f62-9402-83001021a2c7", + "x-ms-ratelimit-remaining-subscription-reads": "11998", + "x-ms-request-id": "2926d8dd-79fb-4c8e-8a39-f37739ab7442", + "x-ms-routing-request-id": "UKSOUTH:20230220T135954Z:3a87f31c-a36f-4f62-9402-83001021a2c7" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/9bcf2c49-00f4-4ff2-be06-1279cf26dd42*1460767FBCDFE77AADB53C0A8CCEB213284637308EC68C9C779B8E27633A5D89", + "name": "9bcf2c49-00f4-4ff2-be06-1279cf26dd42*1460767FBCDFE77AADB53C0A8CCEB213284637308EC68C9C779B8E27633A5D89", + "resourceId": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest7027/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest7634", + "status": "Accepted", + "startTime": "2023-02-20T13:59:52.870874Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/9bcf2c49-00f4-4ff2-be06-1279cf26dd42*1460767FBCDFE77AADB53C0A8CCEB213284637308EC68C9C779B8E27633A5D89?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5b48f2611f18e4b5493c81bbc244893c-23c9982174147113-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "76577d10373bbeca1464e397594165f0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "574", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 13:59:54 GMT", + "ETag": "\u00224100c1e0-0000-3400-0000-63f37cd90000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "76577d10373bbeca1464e397594165f0", + "x-ms-correlation-request-id": "73a0a2b3-9a02-4383-9f0c-57736e10b191", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-request-id": "9b9a8982-fa16-4243-a2a9-4e4ac1e706a0", + "x-ms-routing-request-id": "UKSOUTH:20230220T135955Z:73a0a2b3-9a02-4383-9f0c-57736e10b191" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/9bcf2c49-00f4-4ff2-be06-1279cf26dd42*1460767FBCDFE77AADB53C0A8CCEB213284637308EC68C9C779B8E27633A5D89", + "name": "9bcf2c49-00f4-4ff2-be06-1279cf26dd42*1460767FBCDFE77AADB53C0A8CCEB213284637308EC68C9C779B8E27633A5D89", + "resourceId": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest7027/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest7634", + "status": "Accepted", + "startTime": "2023-02-20T13:59:52.870874Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/9bcf2c49-00f4-4ff2-be06-1279cf26dd42*1460767FBCDFE77AADB53C0A8CCEB213284637308EC68C9C779B8E27633A5D89?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5b48f2611f18e4b5493c81bbc244893c-f49b1ef1c19f466a-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "f6277263415de13865afc922c04e8675", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "574", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 13:59:55 GMT", + "ETag": "\u00224100c1e0-0000-3400-0000-63f37cd90000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "f6277263415de13865afc922c04e8675", + "x-ms-correlation-request-id": "2f9483c1-0569-4495-b175-5dde5782625b", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-request-id": "e8ed5d8f-2fc1-407e-aedc-0cb98893d4ae", + "x-ms-routing-request-id": "UKSOUTH:20230220T135956Z:2f9483c1-0569-4495-b175-5dde5782625b" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/9bcf2c49-00f4-4ff2-be06-1279cf26dd42*1460767FBCDFE77AADB53C0A8CCEB213284637308EC68C9C779B8E27633A5D89", + "name": "9bcf2c49-00f4-4ff2-be06-1279cf26dd42*1460767FBCDFE77AADB53C0A8CCEB213284637308EC68C9C779B8E27633A5D89", + "resourceId": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest7027/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest7634", + "status": "Accepted", + "startTime": "2023-02-20T13:59:52.870874Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/9bcf2c49-00f4-4ff2-be06-1279cf26dd42*1460767FBCDFE77AADB53C0A8CCEB213284637308EC68C9C779B8E27633A5D89?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5b48f2611f18e4b5493c81bbc244893c-0fa2970d7f44b7cf-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "9f94368746d190104acf23b789251861", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "574", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 13:59:57 GMT", + "ETag": "\u00224100c1e0-0000-3400-0000-63f37cd90000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "9f94368746d190104acf23b789251861", + "x-ms-correlation-request-id": "911c44c1-0d48-44bc-b3b6-26528f9cd96d", + "x-ms-ratelimit-remaining-subscription-reads": "11995", + "x-ms-request-id": "0d7e9b3f-9852-45ef-ac04-afb53e8a3009", + "x-ms-routing-request-id": "UKSOUTH:20230220T135957Z:911c44c1-0d48-44bc-b3b6-26528f9cd96d" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/9bcf2c49-00f4-4ff2-be06-1279cf26dd42*1460767FBCDFE77AADB53C0A8CCEB213284637308EC68C9C779B8E27633A5D89", + "name": "9bcf2c49-00f4-4ff2-be06-1279cf26dd42*1460767FBCDFE77AADB53C0A8CCEB213284637308EC68C9C779B8E27633A5D89", + "resourceId": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest7027/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest7634", + "status": "Accepted", + "startTime": "2023-02-20T13:59:52.870874Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/9bcf2c49-00f4-4ff2-be06-1279cf26dd42*1460767FBCDFE77AADB53C0A8CCEB213284637308EC68C9C779B8E27633A5D89?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5b48f2611f18e4b5493c81bbc244893c-06599404ea6bb9c1-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "444a249c4fcdcf314475118b6da8fdc6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "574", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 13:59:59 GMT", + "ETag": "\u00224100c1e0-0000-3400-0000-63f37cd90000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "444a249c4fcdcf314475118b6da8fdc6", + "x-ms-correlation-request-id": "eb03cf7f-046f-4653-8301-aec3ed093d3a", + "x-ms-ratelimit-remaining-subscription-reads": "11994", + "x-ms-request-id": "230d8a64-1cc3-49d1-b7c6-3b1af0137533", + "x-ms-routing-request-id": "UKSOUTH:20230220T140000Z:eb03cf7f-046f-4653-8301-aec3ed093d3a" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/9bcf2c49-00f4-4ff2-be06-1279cf26dd42*1460767FBCDFE77AADB53C0A8CCEB213284637308EC68C9C779B8E27633A5D89", + "name": "9bcf2c49-00f4-4ff2-be06-1279cf26dd42*1460767FBCDFE77AADB53C0A8CCEB213284637308EC68C9C779B8E27633A5D89", + "resourceId": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest7027/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest7634", + "status": "Accepted", + "startTime": "2023-02-20T13:59:52.870874Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/9bcf2c49-00f4-4ff2-be06-1279cf26dd42*1460767FBCDFE77AADB53C0A8CCEB213284637308EC68C9C779B8E27633A5D89?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5b48f2611f18e4b5493c81bbc244893c-e9bfb95a358173d4-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "22106ddec5ac1d1f6196ac8d1d81583f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "593", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:00:03 GMT", + "ETag": "\u00224100f0e0-0000-3400-0000-63f37ce00000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "22106ddec5ac1d1f6196ac8d1d81583f", + "x-ms-correlation-request-id": "975752c4-49e3-4c7e-9f72-e2602ceda758", + "x-ms-ratelimit-remaining-subscription-reads": "11993", + "x-ms-request-id": "a82400a3-1889-47af-85b7-dedf426753ff", + "x-ms-routing-request-id": "UKSOUTH:20230220T140004Z:975752c4-49e3-4c7e-9f72-e2602ceda758" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/9bcf2c49-00f4-4ff2-be06-1279cf26dd42*1460767FBCDFE77AADB53C0A8CCEB213284637308EC68C9C779B8E27633A5D89", + "name": "9bcf2c49-00f4-4ff2-be06-1279cf26dd42*1460767FBCDFE77AADB53C0A8CCEB213284637308EC68C9C779B8E27633A5D89", + "resourceId": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest7027/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest7634", + "status": "Succeeded", + "startTime": "2023-02-20T13:59:52.870874Z", + "properties": null + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest7027/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest7634?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5b48f2611f18e4b5493c81bbc244893c-9a7a104332d7eca2-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "9b866897410337a805c55a5b348522a2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "979", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:00:03 GMT", + "ETag": "\u002201000dcd-0000-3400-0000-63f37ce00000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:ee9ea8e7-bc71-4c0f-83ad-dc11c5b30732", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "9b866897410337a805c55a5b348522a2", + "x-ms-correlation-request-id": "bf59d9b7-e657-4763-9ef9-a9accf3f5aef", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-reads": "11992", + "x-ms-request-id": "eeeffa25-09c7-453e-8c22-a34f3f4d9457", + "x-ms-routing-request-id": "UKSOUTH:20230220T140004Z:bf59d9b7-e657-4763-9ef9-a9accf3f5aef" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest7027/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest7634", + "name": "SDKTest7634", + "type": "microsoft.voiceservices/communicationsgateways", + "location": "centraluseuap", + "tags": {}, + "systemData": { + "createdBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "createdByType": "Application", + "createdAt": "2023-02-20T13:59:51.7738167Z", + "lastModifiedBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "lastModifiedByType": "Application", + "lastModifiedAt": "2023-02-20T13:59:51.7738167Z" + }, + "properties": { + "status": "ChangePending", + "apiBridge": null, + "autoGeneratedDomainNameLabel": "SDKTest7634.arcahydkh6ckbdax", + "serviceLocations": [ + { + "name": "eastus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.1" + ] + } + }, + { + "name": "westus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.2" + ] + } + } + ], + "connectivity": "PublicAddress", + "codecs": [ + "PCMA" + ], + "e911Type": "Standard", + "platforms": [ + "OperatorConnect" + ], + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest7027/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest7634?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-949a3da8146a485cb6c1408e800e87cd-92439c2422fa5bc7-00", + "User-Agent": "azsdk-net-ResourceManager.VoiceServices/1.0.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "1cd95dd2f615d6b5052de336a3a3b1c3", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "979", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:00:04 GMT", + "ETag": "\u002201000dcd-0000-3400-0000-63f37ce00000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:ee9ea8e7-bc71-4c0f-83ad-dc11c5b30732", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "1cd95dd2f615d6b5052de336a3a3b1c3", + "x-ms-correlation-request-id": "606ccbbb-96cc-4538-a778-61ada02e2e8f", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-reads": "11991", + "x-ms-request-id": "1788cead-6e85-4a6d-a867-91769c086f64", + "x-ms-routing-request-id": "UKSOUTH:20230220T140005Z:606ccbbb-96cc-4538-a778-61ada02e2e8f" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest7027/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest7634", + "name": "SDKTest7634", + "type": "microsoft.voiceservices/communicationsgateways", + "location": "centraluseuap", + "tags": {}, + "systemData": { + "createdBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "createdByType": "Application", + "createdAt": "2023-02-20T13:59:51.7738167Z", + "lastModifiedBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "lastModifiedByType": "Application", + "lastModifiedAt": "2023-02-20T13:59:51.7738167Z" + }, + "properties": { + "status": "ChangePending", + "apiBridge": null, + "autoGeneratedDomainNameLabel": "SDKTest7634.arcahydkh6ckbdax", + "serviceLocations": [ + { + "name": "eastus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.1" + ] + } + }, + { + "name": "westus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.2" + ] + } + } + ], + "connectivity": "PublicAddress", + "codecs": [ + "PCMA" + ], + "e911Type": "Standard", + "platforms": [ + "OperatorConnect" + ], + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest7027/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest7634?api-version=2023-01-31", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "340", + "Content-Type": "application/json", + "traceparent": "00-c7a4995fb6a4ad9b00ca9fdbb95d7dd2-a8dd5688b3ec076f-00", + "User-Agent": "azsdk-net-ResourceManager.VoiceServices/1.0.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "05f4d21d61219cc2c5d91ce76ac3e9dc", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": {}, + "location": "centraluseuap", + "properties": { + "serviceLocations": [ + { + "name": "eastus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.1" + ] + } + }, + { + "name": "westus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.2" + ] + } + } + ], + "connectivity": "PublicAddress", + "codecs": [ + "PCMA", + "PCMU" + ], + "e911Type": "Standard", + "platforms": [ + "OperatorConnect" + ] + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/b64b6f48-f019-4a92-8b7c-7300c4c85662*1460767FBCDFE77AADB53C0A8CCEB213284637308EC68C9C779B8E27633A5D89?api-version=2023-01-31", + "Cache-Control": "no-cache", + "Content-Length": "943", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:00:04 GMT", + "ETag": "\u002201000ecd-0000-3400-0000-63f37ce50000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:ee9ea8e7-bc71-4c0f-83ad-dc11c5b30732", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "05f4d21d61219cc2c5d91ce76ac3e9dc", + "x-ms-correlation-request-id": "1226790e-624e-4267-a715-5d0060500c79", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1197", + "x-ms-request-id": "b64b6f48-f019-4a92-8b7c-7300c4c85662", + "x-ms-routing-request-id": "UKSOUTH:20230220T140005Z:1226790e-624e-4267-a715-5d0060500c79" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest7027/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest7634", + "name": "SDKTest7634", + "type": "microsoft.voiceservices/communicationsgateways", + "location": "centraluseuap", + "tags": {}, + "systemData": { + "createdBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "createdByType": "Application", + "createdAt": "2023-02-20T13:59:51.7738167Z", + "lastModifiedBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "lastModifiedByType": "Application", + "lastModifiedAt": "2023-02-20T14:00:05.2415252Z" + }, + "properties": { + "autoGeneratedDomainNameLabel": "SDKTest7634.arcahydkh6ckbdax", + "serviceLocations": [ + { + "name": "eastus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.1" + ] + } + }, + { + "name": "westus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.2" + ] + } + } + ], + "connectivity": "PublicAddress", + "codecs": [ + "PCMA", + "PCMU" + ], + "e911Type": "Standard", + "platforms": [ + "OperatorConnect" + ], + "provisioningState": "Accepted" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/b64b6f48-f019-4a92-8b7c-7300c4c85662*1460767FBCDFE77AADB53C0A8CCEB213284637308EC68C9C779B8E27633A5D89?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-c7a4995fb6a4ad9b00ca9fdbb95d7dd2-51e82b8d953ee58d-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "623d97131c9070809b3d563bd9ce6b41", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "575", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:00:04 GMT", + "ETag": "\u00224100a0e1-0000-3400-0000-63f37ce50000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "623d97131c9070809b3d563bd9ce6b41", + "x-ms-correlation-request-id": "ec43a5e7-d7b0-4533-b81d-03b9d277b963", + "x-ms-ratelimit-remaining-subscription-reads": "11990", + "x-ms-request-id": "e9ea973c-1c51-4e03-864b-38486db83402", + "x-ms-routing-request-id": "UKSOUTH:20230220T140005Z:ec43a5e7-d7b0-4533-b81d-03b9d277b963" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/b64b6f48-f019-4a92-8b7c-7300c4c85662*1460767FBCDFE77AADB53C0A8CCEB213284637308EC68C9C779B8E27633A5D89", + "name": "b64b6f48-f019-4a92-8b7c-7300c4c85662*1460767FBCDFE77AADB53C0A8CCEB213284637308EC68C9C779B8E27633A5D89", + "resourceId": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest7027/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest7634", + "status": "Accepted", + "startTime": "2023-02-20T14:00:05.3908789Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/b64b6f48-f019-4a92-8b7c-7300c4c85662*1460767FBCDFE77AADB53C0A8CCEB213284637308EC68C9C779B8E27633A5D89?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-c7a4995fb6a4ad9b00ca9fdbb95d7dd2-8e14fbb455b8c253-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "99c20644f1e8e11ba7535271cbeb3d54", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "575", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:00:05 GMT", + "ETag": "\u00224100a0e1-0000-3400-0000-63f37ce50000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "99c20644f1e8e11ba7535271cbeb3d54", + "x-ms-correlation-request-id": "62f7be3b-aed3-47f0-8aa7-cdb08c9c24a8", + "x-ms-ratelimit-remaining-subscription-reads": "11989", + "x-ms-request-id": "eb15fa13-db3e-499a-bd08-de3a54f4d09b", + "x-ms-routing-request-id": "UKSOUTH:20230220T140006Z:62f7be3b-aed3-47f0-8aa7-cdb08c9c24a8" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/b64b6f48-f019-4a92-8b7c-7300c4c85662*1460767FBCDFE77AADB53C0A8CCEB213284637308EC68C9C779B8E27633A5D89", + "name": "b64b6f48-f019-4a92-8b7c-7300c4c85662*1460767FBCDFE77AADB53C0A8CCEB213284637308EC68C9C779B8E27633A5D89", + "resourceId": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest7027/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest7634", + "status": "Accepted", + "startTime": "2023-02-20T14:00:05.3908789Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/b64b6f48-f019-4a92-8b7c-7300c4c85662*1460767FBCDFE77AADB53C0A8CCEB213284637308EC68C9C779B8E27633A5D89?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-c7a4995fb6a4ad9b00ca9fdbb95d7dd2-3958755d0583dfc2-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "d3d3bb458685574c894b246ae5eec7e4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "575", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:00:06 GMT", + "ETag": "\u00224100a0e1-0000-3400-0000-63f37ce50000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "d3d3bb458685574c894b246ae5eec7e4", + "x-ms-correlation-request-id": "65290518-1eab-499d-a508-4a2e7757cc8f", + "x-ms-ratelimit-remaining-subscription-reads": "11988", + "x-ms-request-id": "8625b00e-5d6a-4042-bc73-4f9940346a38", + "x-ms-routing-request-id": "UKSOUTH:20230220T140007Z:65290518-1eab-499d-a508-4a2e7757cc8f" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/b64b6f48-f019-4a92-8b7c-7300c4c85662*1460767FBCDFE77AADB53C0A8CCEB213284637308EC68C9C779B8E27633A5D89", + "name": "b64b6f48-f019-4a92-8b7c-7300c4c85662*1460767FBCDFE77AADB53C0A8CCEB213284637308EC68C9C779B8E27633A5D89", + "resourceId": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest7027/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest7634", + "status": "Accepted", + "startTime": "2023-02-20T14:00:05.3908789Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/b64b6f48-f019-4a92-8b7c-7300c4c85662*1460767FBCDFE77AADB53C0A8CCEB213284637308EC68C9C779B8E27633A5D89?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-c7a4995fb6a4ad9b00ca9fdbb95d7dd2-c78edc9a1e0e4381-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "58925444faae22797b5cba3cca0fa4af", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "575", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:00:09 GMT", + "ETag": "\u00224100a0e1-0000-3400-0000-63f37ce50000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "58925444faae22797b5cba3cca0fa4af", + "x-ms-correlation-request-id": "a31a4e14-9f84-48f4-9fe2-c5296d54a200", + "x-ms-ratelimit-remaining-subscription-reads": "11987", + "x-ms-request-id": "d58003f9-b2f4-470d-87dd-7975b2f2cfef", + "x-ms-routing-request-id": "UKSOUTH:20230220T140009Z:a31a4e14-9f84-48f4-9fe2-c5296d54a200" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/b64b6f48-f019-4a92-8b7c-7300c4c85662*1460767FBCDFE77AADB53C0A8CCEB213284637308EC68C9C779B8E27633A5D89", + "name": "b64b6f48-f019-4a92-8b7c-7300c4c85662*1460767FBCDFE77AADB53C0A8CCEB213284637308EC68C9C779B8E27633A5D89", + "resourceId": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest7027/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest7634", + "status": "Accepted", + "startTime": "2023-02-20T14:00:05.3908789Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/b64b6f48-f019-4a92-8b7c-7300c4c85662*1460767FBCDFE77AADB53C0A8CCEB213284637308EC68C9C779B8E27633A5D89?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-c7a4995fb6a4ad9b00ca9fdbb95d7dd2-4e37ade8a5c4106e-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "1ef602ff98fabdbbba6b109dccb1fcb8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "575", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:00:11 GMT", + "ETag": "\u00224100a0e1-0000-3400-0000-63f37ce50000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "1ef602ff98fabdbbba6b109dccb1fcb8", + "x-ms-correlation-request-id": "74e6a4e7-3028-47c8-bc39-e1246450046d", + "x-ms-ratelimit-remaining-subscription-reads": "11986", + "x-ms-request-id": "bdba2f84-8856-428a-87d1-2c630e06e3b6", + "x-ms-routing-request-id": "UKSOUTH:20230220T140011Z:74e6a4e7-3028-47c8-bc39-e1246450046d" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/b64b6f48-f019-4a92-8b7c-7300c4c85662*1460767FBCDFE77AADB53C0A8CCEB213284637308EC68C9C779B8E27633A5D89", + "name": "b64b6f48-f019-4a92-8b7c-7300c4c85662*1460767FBCDFE77AADB53C0A8CCEB213284637308EC68C9C779B8E27633A5D89", + "resourceId": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest7027/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest7634", + "status": "Accepted", + "startTime": "2023-02-20T14:00:05.3908789Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/b64b6f48-f019-4a92-8b7c-7300c4c85662*1460767FBCDFE77AADB53C0A8CCEB213284637308EC68C9C779B8E27633A5D89?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-c7a4995fb6a4ad9b00ca9fdbb95d7dd2-e099e5fa70078f3e-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "762c6d8be5594aa541b05729cc0f8d79", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "594", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:00:15 GMT", + "ETag": "\u00224100bbe1-0000-3400-0000-63f37ceb0000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "762c6d8be5594aa541b05729cc0f8d79", + "x-ms-correlation-request-id": "ea3b760e-ca4a-4248-91b1-29ed3c932cdd", + "x-ms-ratelimit-remaining-subscription-reads": "11985", + "x-ms-request-id": "519bb7d7-545b-4843-8ab5-858edacdfd52", + "x-ms-routing-request-id": "UKSOUTH:20230220T140015Z:ea3b760e-ca4a-4248-91b1-29ed3c932cdd" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/b64b6f48-f019-4a92-8b7c-7300c4c85662*1460767FBCDFE77AADB53C0A8CCEB213284637308EC68C9C779B8E27633A5D89", + "name": "b64b6f48-f019-4a92-8b7c-7300c4c85662*1460767FBCDFE77AADB53C0A8CCEB213284637308EC68C9C779B8E27633A5D89", + "resourceId": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest7027/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest7634", + "status": "Succeeded", + "startTime": "2023-02-20T14:00:05.3908789Z", + "properties": null + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest7027/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest7634?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-c7a4995fb6a4ad9b00ca9fdbb95d7dd2-90fe78aa34ae7844-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "e26a74a6a9f8abea99d59d43eadc55ca", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "986", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:00:15 GMT", + "ETag": "\u002201000fcd-0000-3400-0000-63f37ceb0000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:ee9ea8e7-bc71-4c0f-83ad-dc11c5b30732", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "e26a74a6a9f8abea99d59d43eadc55ca", + "x-ms-correlation-request-id": "c191ffba-6dbd-48ef-a73a-b33c6a76ad71", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-reads": "11984", + "x-ms-request-id": "1cbcd466-33b5-4e0f-a5b8-871db85786ff", + "x-ms-routing-request-id": "UKSOUTH:20230220T140015Z:c191ffba-6dbd-48ef-a73a-b33c6a76ad71" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest7027/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest7634", + "name": "SDKTest7634", + "type": "microsoft.voiceservices/communicationsgateways", + "location": "centraluseuap", + "tags": {}, + "systemData": { + "createdBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "createdByType": "Application", + "createdAt": "2023-02-20T13:59:51.7738167Z", + "lastModifiedBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "lastModifiedByType": "Application", + "lastModifiedAt": "2023-02-20T14:00:05.2415252Z" + }, + "properties": { + "status": "ChangePending", + "apiBridge": null, + "autoGeneratedDomainNameLabel": "SDKTest7634.arcahydkh6ckbdax", + "serviceLocations": [ + { + "name": "eastus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.1" + ] + } + }, + { + "name": "westus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.2" + ] + } + } + ], + "connectivity": "PublicAddress", + "codecs": [ + "PCMA", + "PCMU" + ], + "e911Type": "Standard", + "platforms": [ + "OperatorConnect" + ], + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest7027/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest7634?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-d437d45afac31f30d22819b1aa7fb6fe-191f2dfb46da94f2-00", + "User-Agent": "azsdk-net-ResourceManager.VoiceServices/1.0.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "5cb001602de31a565dabdc494192f0ab", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "986", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:00:15 GMT", + "ETag": "\u002201000fcd-0000-3400-0000-63f37ceb0000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:ee9ea8e7-bc71-4c0f-83ad-dc11c5b30732", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "5cb001602de31a565dabdc494192f0ab", + "x-ms-correlation-request-id": "f92e08ea-b71b-40b8-bb18-0f34539ae64c", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-reads": "11983", + "x-ms-request-id": "b1e2ab6c-e1bc-48f7-9f8a-cd0591100e4f", + "x-ms-routing-request-id": "UKSOUTH:20230220T140015Z:f92e08ea-b71b-40b8-bb18-0f34539ae64c" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest7027/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest7634", + "name": "SDKTest7634", + "type": "microsoft.voiceservices/communicationsgateways", + "location": "centraluseuap", + "tags": {}, + "systemData": { + "createdBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "createdByType": "Application", + "createdAt": "2023-02-20T13:59:51.7738167Z", + "lastModifiedBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "lastModifiedByType": "Application", + "lastModifiedAt": "2023-02-20T14:00:05.2415252Z" + }, + "properties": { + "status": "ChangePending", + "apiBridge": null, + "autoGeneratedDomainNameLabel": "SDKTest7634.arcahydkh6ckbdax", + "serviceLocations": [ + { + "name": "eastus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.1" + ] + } + }, + { + "name": "westus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.2" + ] + } + } + ], + "connectivity": "PublicAddress", + "codecs": [ + "PCMA", + "PCMU" + ], + "e911Type": "Standard", + "platforms": [ + "OperatorConnect" + ], + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest7027/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest7634?api-version=2023-01-31", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "30", + "Content-Type": "application/json", + "traceparent": "00-1ddbeafcae906faed8678a3ddd100dad-c0cfce79ae5e76fe-00", + "User-Agent": "azsdk-net-ResourceManager.VoiceServices/1.0.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "57f797dd1947e2c08380dd8347626065", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "tagKey": "tagValue" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "988", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:00:17 GMT", + "ETag": "\u0022010010cd-0000-3400-0000-63f37cf00000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "57f797dd1947e2c08380dd8347626065", + "x-ms-correlation-request-id": "2e50a58d-b25e-4339-bfcf-fae7a27448b3", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1196", + "x-ms-request-id": "9a8c8809-47d4-4603-87c0-018f3aab89be", + "x-ms-routing-request-id": "UKSOUTH:20230220T140017Z:2e50a58d-b25e-4339-bfcf-fae7a27448b3" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest7027/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest7634", + "name": "SDKTest7634", + "type": "microsoft.voiceservices/communicationsgateways", + "location": "centraluseuap", + "tags": { + "tagKey": "tagValue" + }, + "systemData": { + "createdBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "createdByType": "Application", + "createdAt": "2023-02-20T13:59:51.7738167Z", + "lastModifiedBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "lastModifiedByType": "Application", + "lastModifiedAt": "2023-02-20T14:00:16.0836733Z" + }, + "properties": { + "status": "ChangePending", + "autoGeneratedDomainNameLabel": "SDKTest7634.arcahydkh6ckbdax", + "serviceLocations": [ + { + "name": "eastus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.1" + ] + } + }, + { + "name": "westus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.2" + ] + } + } + ], + "connectivity": "PublicAddress", + "codecs": [ + "PCMA", + "PCMU" + ], + "e911Type": "Standard", + "platforms": [ + "OperatorConnect" + ], + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest7027/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest7634?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-e1edf1892565f0c706e7fda7de4d1a55-2f0501a4ba31f62f-00", + "User-Agent": "azsdk-net-ResourceManager.VoiceServices/1.0.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "cac98d5b305e78951e4f854ccda06a07", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1005", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:00:17 GMT", + "ETag": "\u0022010010cd-0000-3400-0000-63f37cf00000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:ee9ea8e7-bc71-4c0f-83ad-dc11c5b30732", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "cac98d5b305e78951e4f854ccda06a07", + "x-ms-correlation-request-id": "9c9b58d7-2c77-4057-b53e-c7ca56d3d09e", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-reads": "11982", + "x-ms-request-id": "0b8de901-5810-41d7-82ab-b52fceb81f2b", + "x-ms-routing-request-id": "UKSOUTH:20230220T140017Z:9c9b58d7-2c77-4057-b53e-c7ca56d3d09e" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest7027/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest7634", + "name": "SDKTest7634", + "type": "microsoft.voiceservices/communicationsgateways", + "location": "centraluseuap", + "tags": { + "tagKey": "tagValue" + }, + "systemData": { + "createdBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "createdByType": "Application", + "createdAt": "2023-02-20T13:59:51.7738167Z", + "lastModifiedBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "lastModifiedByType": "Application", + "lastModifiedAt": "2023-02-20T14:00:16.0836733Z" + }, + "properties": { + "status": "ChangePending", + "apiBridge": null, + "autoGeneratedDomainNameLabel": "SDKTest7634.arcahydkh6ckbdax", + "serviceLocations": [ + { + "name": "eastus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.1" + ] + } + }, + { + "name": "westus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.2" + ] + } + } + ], + "connectivity": "PublicAddress", + "codecs": [ + "PCMA", + "PCMU" + ], + "e911Type": "Standard", + "platforms": [ + "OperatorConnect" + ], + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest7027/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest7634?api-version=2023-01-31", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-4943ffee24a6504ccb815b68fc2ff611-afa3f27254a5940f-00", + "User-Agent": "azsdk-net-ResourceManager.VoiceServices/1.0.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "5365f2e4fde4468241ced86250d3d3fb", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 20 Feb 2023 14:00:19 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:ee9ea8e7-bc71-4c0f-83ad-dc11c5b30732", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "5365f2e4fde4468241ced86250d3d3fb", + "x-ms-correlation-request-id": "ce662cc1-70b5-4461-8da3-ec71754b05bf", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-deletes": "14999", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "x-ms-routing-request-id": "UKSOUTH:20230220T140019Z:ce662cc1-70b5-4461-8da3-ec71754b05bf" + }, + "ResponseBody": null + } + ], + "Variables": { + "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com/", + "RandomSeed": "26289405", + "RESOURCE_MANAGER_URL": "https://management.azure.com/", + "SUBSCRIPTION_ID": "d2b80745-3b5d-4357-84cc-ede5c5886c5a" + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/tests/SessionRecords/CommunicationsGatewayCRUDTests/CRUDAsync.json b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/tests/SessionRecords/CommunicationsGatewayCRUDTests/CRUDAsync.json new file mode 100644 index 0000000000000..c23ac025a8411 --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/tests/SessionRecords/CommunicationsGatewayCRUDTests/CRUDAsync.json @@ -0,0 +1,1201 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a?api-version=2021-01-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-1a68515a4efd86d55d5da08d4d106f33-9345c5f243d83df5-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "fec97f942c07e4a55ad0415ec757bd97", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "418", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:00:22 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e6fe5494-7c0b-43dd-a45c-53313568805c", + "x-ms-ratelimit-remaining-subscription-reads": "11981", + "x-ms-request-id": "e6fe5494-7c0b-43dd-a45c-53313568805c", + "x-ms-routing-request-id": "UKSOUTH:20230220T140022Z:e6fe5494-7c0b-43dd-a45c-53313568805c" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "subscriptionId": "d2b80745-3b5d-4357-84cc-ede5c5886c5a", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "A4O VoiceServices RP Test Subscription", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourcegroups/SDKTest4176?api-version=**", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "28", + "Content-Type": "application/json", + "traceparent": "00-895daff0f28586fd21d00901558e18e3-99af19bd474a6955-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "2ec7a33ebae67ba647981f1fd720bea8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "centraluseuap" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "226", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:00:23 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "bee6d707-f561-4eb1-8554-2fb5295b7a6d", + "x-ms-ratelimit-remaining-subscription-writes": "1195", + "x-ms-request-id": "bee6d707-f561-4eb1-8554-2fb5295b7a6d", + "x-ms-routing-request-id": "UKSOUTH:20230220T140023Z:bee6d707-f561-4eb1-8554-2fb5295b7a6d" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest4176", + "name": "SDKTest4176", + "type": "Microsoft.Resources/resourceGroups", + "location": "centraluseuap", + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest4176/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest2785?api-version=2023-01-31", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "333", + "Content-Type": "application/json", + "traceparent": "00-bd06e1b54f17bf586e83e3ff9eaa4746-67f0ef04adfc6963-00", + "User-Agent": "azsdk-net-ResourceManager.VoiceServices/1.0.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "f3b50695eafbfeeefb2f8bc1c3fc615c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": {}, + "location": "centraluseuap", + "properties": { + "serviceLocations": [ + { + "name": "eastus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.1" + ] + } + }, + { + "name": "westus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.2" + ] + } + } + ], + "connectivity": "PublicAddress", + "codecs": [ + "PCMA" + ], + "e911Type": "Standard", + "platforms": [ + "OperatorConnect" + ] + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/60b2ba65-e739-42ba-8c92-5920bdf3278e*1D7D675F580F7F0F1CB9B4DDAAFE083AF9A90947A8F206B86F42B8464895BBCB?api-version=2023-01-31", + "Cache-Control": "no-cache", + "Content-Length": "874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:00:25 GMT", + "ETag": "\u0022010012cd-0000-3400-0000-63f37cf80000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:ee9ea8e7-bc71-4c0f-83ad-dc11c5b30732", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "f3b50695eafbfeeefb2f8bc1c3fc615c", + "x-ms-correlation-request-id": "fba486ed-6248-4560-8a47-08e6d47503af", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1194", + "x-ms-request-id": "60b2ba65-e739-42ba-8c92-5920bdf3278e", + "x-ms-routing-request-id": "UKSOUTH:20230220T140025Z:fba486ed-6248-4560-8a47-08e6d47503af" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest4176/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest2785", + "name": "SDKTest2785", + "type": "microsoft.voiceservices/communicationsgateways", + "location": "centraluseuap", + "tags": {}, + "systemData": { + "createdBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "createdByType": "Application", + "createdAt": "2023-02-20T14:00:24.7152386Z", + "lastModifiedBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "lastModifiedByType": "Application", + "lastModifiedAt": "2023-02-20T14:00:24.7152386Z" + }, + "properties": { + "serviceLocations": [ + { + "name": "eastus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.1" + ] + } + }, + { + "name": "westus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.2" + ] + } + } + ], + "connectivity": "PublicAddress", + "codecs": [ + "PCMA" + ], + "e911Type": "Standard", + "platforms": [ + "OperatorConnect" + ], + "provisioningState": "Accepted" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/60b2ba65-e739-42ba-8c92-5920bdf3278e*1D7D675F580F7F0F1CB9B4DDAAFE083AF9A90947A8F206B86F42B8464895BBCB?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-bd06e1b54f17bf586e83e3ff9eaa4746-886b698398b844f1-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "b7c1d5b678e2b942d82feb8a1bb9839b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "575", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:00:25 GMT", + "ETag": "\u002241004be2-0000-3400-0000-63f37cf80000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "b7c1d5b678e2b942d82feb8a1bb9839b", + "x-ms-correlation-request-id": "57bfbc85-e4c7-4278-8dd9-1c95fc956361", + "x-ms-ratelimit-remaining-subscription-reads": "11980", + "x-ms-request-id": "d3ec0c99-9330-4495-82a6-a68c4275d09c", + "x-ms-routing-request-id": "UKSOUTH:20230220T140025Z:57bfbc85-e4c7-4278-8dd9-1c95fc956361" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/60b2ba65-e739-42ba-8c92-5920bdf3278e*1D7D675F580F7F0F1CB9B4DDAAFE083AF9A90947A8F206B86F42B8464895BBCB", + "name": "60b2ba65-e739-42ba-8c92-5920bdf3278e*1D7D675F580F7F0F1CB9B4DDAAFE083AF9A90947A8F206B86F42B8464895BBCB", + "resourceId": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest4176/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest2785", + "status": "Accepted", + "startTime": "2023-02-20T14:00:24.8448339Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/60b2ba65-e739-42ba-8c92-5920bdf3278e*1D7D675F580F7F0F1CB9B4DDAAFE083AF9A90947A8F206B86F42B8464895BBCB?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-bd06e1b54f17bf586e83e3ff9eaa4746-92fc5b56089892ae-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "8c87c3bd2005e88a4192703b55683977", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "575", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:00:26 GMT", + "ETag": "\u002241004be2-0000-3400-0000-63f37cf80000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "8c87c3bd2005e88a4192703b55683977", + "x-ms-correlation-request-id": "05d753fc-f04d-475e-bca3-3c2e71827092", + "x-ms-ratelimit-remaining-subscription-reads": "11979", + "x-ms-request-id": "52bc9da4-4cc6-4ac0-bf41-6e2caef56cae", + "x-ms-routing-request-id": "UKSOUTH:20230220T140026Z:05d753fc-f04d-475e-bca3-3c2e71827092" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/60b2ba65-e739-42ba-8c92-5920bdf3278e*1D7D675F580F7F0F1CB9B4DDAAFE083AF9A90947A8F206B86F42B8464895BBCB", + "name": "60b2ba65-e739-42ba-8c92-5920bdf3278e*1D7D675F580F7F0F1CB9B4DDAAFE083AF9A90947A8F206B86F42B8464895BBCB", + "resourceId": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest4176/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest2785", + "status": "Accepted", + "startTime": "2023-02-20T14:00:24.8448339Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/60b2ba65-e739-42ba-8c92-5920bdf3278e*1D7D675F580F7F0F1CB9B4DDAAFE083AF9A90947A8F206B86F42B8464895BBCB?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-bd06e1b54f17bf586e83e3ff9eaa4746-b8586f8ed47336c3-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "ee0b0880aa3bd77a5100af37c23a07c8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "575", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:00:27 GMT", + "ETag": "\u002241004be2-0000-3400-0000-63f37cf80000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "ee0b0880aa3bd77a5100af37c23a07c8", + "x-ms-correlation-request-id": "4e9c01b0-6731-4761-b0d9-96891f8614d3", + "x-ms-ratelimit-remaining-subscription-reads": "11978", + "x-ms-request-id": "d820043b-b0aa-4f65-81b8-561f8fbea50b", + "x-ms-routing-request-id": "UKSOUTH:20230220T140028Z:4e9c01b0-6731-4761-b0d9-96891f8614d3" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/60b2ba65-e739-42ba-8c92-5920bdf3278e*1D7D675F580F7F0F1CB9B4DDAAFE083AF9A90947A8F206B86F42B8464895BBCB", + "name": "60b2ba65-e739-42ba-8c92-5920bdf3278e*1D7D675F580F7F0F1CB9B4DDAAFE083AF9A90947A8F206B86F42B8464895BBCB", + "resourceId": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest4176/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest2785", + "status": "Accepted", + "startTime": "2023-02-20T14:00:24.8448339Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/60b2ba65-e739-42ba-8c92-5920bdf3278e*1D7D675F580F7F0F1CB9B4DDAAFE083AF9A90947A8F206B86F42B8464895BBCB?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-bd06e1b54f17bf586e83e3ff9eaa4746-daad362c7b1b70c7-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "02c8f93b22fb957d4bd9755007076470", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "575", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:00:29 GMT", + "ETag": "\u002241004be2-0000-3400-0000-63f37cf80000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "02c8f93b22fb957d4bd9755007076470", + "x-ms-correlation-request-id": "4126ea83-8a7f-4eab-8d64-642ee78c10b6", + "x-ms-ratelimit-remaining-subscription-reads": "11977", + "x-ms-request-id": "64a332fa-6d2a-4fe7-9a0b-07d83e17c7d6", + "x-ms-routing-request-id": "UKSOUTH:20230220T140029Z:4126ea83-8a7f-4eab-8d64-642ee78c10b6" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/60b2ba65-e739-42ba-8c92-5920bdf3278e*1D7D675F580F7F0F1CB9B4DDAAFE083AF9A90947A8F206B86F42B8464895BBCB", + "name": "60b2ba65-e739-42ba-8c92-5920bdf3278e*1D7D675F580F7F0F1CB9B4DDAAFE083AF9A90947A8F206B86F42B8464895BBCB", + "resourceId": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest4176/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest2785", + "status": "Accepted", + "startTime": "2023-02-20T14:00:24.8448339Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/60b2ba65-e739-42ba-8c92-5920bdf3278e*1D7D675F580F7F0F1CB9B4DDAAFE083AF9A90947A8F206B86F42B8464895BBCB?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-bd06e1b54f17bf586e83e3ff9eaa4746-c1f03a2dc55bc13f-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "120973f595ae125f49b03b0571532506", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "594", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:00:31 GMT", + "ETag": "\u0022410070e2-0000-3400-0000-63f37cfe0000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "120973f595ae125f49b03b0571532506", + "x-ms-correlation-request-id": "4cfa6958-5e60-4010-8f38-49f2735e9857", + "x-ms-ratelimit-remaining-subscription-reads": "11976", + "x-ms-request-id": "e35a3eb2-4ee3-41c3-8f85-aaf1e9521b57", + "x-ms-routing-request-id": "UKSOUTH:20230220T140031Z:4cfa6958-5e60-4010-8f38-49f2735e9857" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/60b2ba65-e739-42ba-8c92-5920bdf3278e*1D7D675F580F7F0F1CB9B4DDAAFE083AF9A90947A8F206B86F42B8464895BBCB", + "name": "60b2ba65-e739-42ba-8c92-5920bdf3278e*1D7D675F580F7F0F1CB9B4DDAAFE083AF9A90947A8F206B86F42B8464895BBCB", + "resourceId": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest4176/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest2785", + "status": "Succeeded", + "startTime": "2023-02-20T14:00:24.8448339Z", + "properties": null + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest4176/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest2785?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-bd06e1b54f17bf586e83e3ff9eaa4746-a0ce0fb48e039c71-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "5b00a78a379f5e7b8b75a2623429cf4a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "979", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:00:31 GMT", + "ETag": "\u0022010013cd-0000-3400-0000-63f37cfe0000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:ee9ea8e7-bc71-4c0f-83ad-dc11c5b30732", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "5b00a78a379f5e7b8b75a2623429cf4a", + "x-ms-correlation-request-id": "3d78a659-abab-486b-8415-1f8e29ccae3e", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-reads": "11975", + "x-ms-request-id": "9975d5e7-29f0-4db4-af3f-4fd5c661a77b", + "x-ms-routing-request-id": "UKSOUTH:20230220T140031Z:3d78a659-abab-486b-8415-1f8e29ccae3e" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest4176/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest2785", + "name": "SDKTest2785", + "type": "microsoft.voiceservices/communicationsgateways", + "location": "centraluseuap", + "tags": {}, + "systemData": { + "createdBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "createdByType": "Application", + "createdAt": "2023-02-20T14:00:24.7152386Z", + "lastModifiedBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "lastModifiedByType": "Application", + "lastModifiedAt": "2023-02-20T14:00:24.7152386Z" + }, + "properties": { + "status": "ChangePending", + "apiBridge": null, + "autoGeneratedDomainNameLabel": "SDKTest2785.f6hxd3g3fvfkavfg", + "serviceLocations": [ + { + "name": "eastus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.1" + ] + } + }, + { + "name": "westus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.2" + ] + } + } + ], + "connectivity": "PublicAddress", + "codecs": [ + "PCMA" + ], + "e911Type": "Standard", + "platforms": [ + "OperatorConnect" + ], + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest4176/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest2785?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-fd7cf1c8282797b1e6dac191b395c395-72ce257b4d7a612e-00", + "User-Agent": "azsdk-net-ResourceManager.VoiceServices/1.0.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "4f413e9bf531a51a99b5b84be67724f7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "979", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:00:31 GMT", + "ETag": "\u0022010013cd-0000-3400-0000-63f37cfe0000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:ee9ea8e7-bc71-4c0f-83ad-dc11c5b30732", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "4f413e9bf531a51a99b5b84be67724f7", + "x-ms-correlation-request-id": "7f0c8bcd-46d3-4df8-9293-481142341630", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-reads": "11974", + "x-ms-request-id": "d8db0f79-db2b-4aa4-b31a-2fca3a2915ae", + "x-ms-routing-request-id": "UKSOUTH:20230220T140032Z:7f0c8bcd-46d3-4df8-9293-481142341630" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest4176/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest2785", + "name": "SDKTest2785", + "type": "microsoft.voiceservices/communicationsgateways", + "location": "centraluseuap", + "tags": {}, + "systemData": { + "createdBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "createdByType": "Application", + "createdAt": "2023-02-20T14:00:24.7152386Z", + "lastModifiedBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "lastModifiedByType": "Application", + "lastModifiedAt": "2023-02-20T14:00:24.7152386Z" + }, + "properties": { + "status": "ChangePending", + "apiBridge": null, + "autoGeneratedDomainNameLabel": "SDKTest2785.f6hxd3g3fvfkavfg", + "serviceLocations": [ + { + "name": "eastus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.1" + ] + } + }, + { + "name": "westus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.2" + ] + } + } + ], + "connectivity": "PublicAddress", + "codecs": [ + "PCMA" + ], + "e911Type": "Standard", + "platforms": [ + "OperatorConnect" + ], + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest4176/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest2785?api-version=2023-01-31", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "340", + "Content-Type": "application/json", + "traceparent": "00-d6645177ad5ded6af856e521196df4bf-8a2d9d87f68ec4c6-00", + "User-Agent": "azsdk-net-ResourceManager.VoiceServices/1.0.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "5fc56fb30806bed0f7ab8639f2fdde1f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": {}, + "location": "centraluseuap", + "properties": { + "serviceLocations": [ + { + "name": "eastus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.1" + ] + } + }, + { + "name": "westus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.2" + ] + } + } + ], + "connectivity": "PublicAddress", + "codecs": [ + "PCMA", + "PCMU" + ], + "e911Type": "Standard", + "platforms": [ + "OperatorConnect" + ] + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/14385fc2-3a6f-4b56-93ba-af5b8041ed8b*1D7D675F580F7F0F1CB9B4DDAAFE083AF9A90947A8F206B86F42B8464895BBCB?api-version=2023-01-31", + "Cache-Control": "no-cache", + "Content-Length": "943", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:00:32 GMT", + "ETag": "\u0022010014cd-0000-3400-0000-63f37d000000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:ee9ea8e7-bc71-4c0f-83ad-dc11c5b30732", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "5fc56fb30806bed0f7ab8639f2fdde1f", + "x-ms-correlation-request-id": "bf71fa8a-1ce2-4b27-bc72-1dfc6c74cd61", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1193", + "x-ms-request-id": "14385fc2-3a6f-4b56-93ba-af5b8041ed8b", + "x-ms-routing-request-id": "UKSOUTH:20230220T140032Z:bf71fa8a-1ce2-4b27-bc72-1dfc6c74cd61" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest4176/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest2785", + "name": "SDKTest2785", + "type": "microsoft.voiceservices/communicationsgateways", + "location": "centraluseuap", + "tags": {}, + "systemData": { + "createdBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "createdByType": "Application", + "createdAt": "2023-02-20T14:00:24.7152386Z", + "lastModifiedBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "lastModifiedByType": "Application", + "lastModifiedAt": "2023-02-20T14:00:32.1721059Z" + }, + "properties": { + "autoGeneratedDomainNameLabel": "SDKTest2785.f6hxd3g3fvfkavfg", + "serviceLocations": [ + { + "name": "eastus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.1" + ] + } + }, + { + "name": "westus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.2" + ] + } + } + ], + "connectivity": "PublicAddress", + "codecs": [ + "PCMA", + "PCMU" + ], + "e911Type": "Standard", + "platforms": [ + "OperatorConnect" + ], + "provisioningState": "Accepted" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/14385fc2-3a6f-4b56-93ba-af5b8041ed8b*1D7D675F580F7F0F1CB9B4DDAAFE083AF9A90947A8F206B86F42B8464895BBCB?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-d6645177ad5ded6af856e521196df4bf-374049669c43539a-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "c5afaa50706493436d8357856fe1b29c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "575", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:00:32 GMT", + "ETag": "\u0022410079e2-0000-3400-0000-63f37d000000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "c5afaa50706493436d8357856fe1b29c", + "x-ms-correlation-request-id": "c55939e2-4cfb-4bd0-8778-be547f5aaacf", + "x-ms-ratelimit-remaining-subscription-reads": "11973", + "x-ms-request-id": "02c04345-40cc-4598-b38b-7dbf97ba4f52", + "x-ms-routing-request-id": "UKSOUTH:20230220T140032Z:c55939e2-4cfb-4bd0-8778-be547f5aaacf" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/14385fc2-3a6f-4b56-93ba-af5b8041ed8b*1D7D675F580F7F0F1CB9B4DDAAFE083AF9A90947A8F206B86F42B8464895BBCB", + "name": "14385fc2-3a6f-4b56-93ba-af5b8041ed8b*1D7D675F580F7F0F1CB9B4DDAAFE083AF9A90947A8F206B86F42B8464895BBCB", + "resourceId": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest4176/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest2785", + "status": "Accepted", + "startTime": "2023-02-20T14:00:32.3109518Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/14385fc2-3a6f-4b56-93ba-af5b8041ed8b*1D7D675F580F7F0F1CB9B4DDAAFE083AF9A90947A8F206B86F42B8464895BBCB?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-d6645177ad5ded6af856e521196df4bf-2ca80c113b2cbc11-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "f46b99d7f20edce69a31d2ac47e63fc6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "575", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:00:33 GMT", + "ETag": "\u0022410079e2-0000-3400-0000-63f37d000000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "f46b99d7f20edce69a31d2ac47e63fc6", + "x-ms-correlation-request-id": "25354e7d-0be1-4824-b8d9-d36821fa78c2", + "x-ms-ratelimit-remaining-subscription-reads": "11972", + "x-ms-request-id": "9a2edcc0-16a8-4862-bb8b-7796c10e05ed", + "x-ms-routing-request-id": "UKSOUTH:20230220T140033Z:25354e7d-0be1-4824-b8d9-d36821fa78c2" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/14385fc2-3a6f-4b56-93ba-af5b8041ed8b*1D7D675F580F7F0F1CB9B4DDAAFE083AF9A90947A8F206B86F42B8464895BBCB", + "name": "14385fc2-3a6f-4b56-93ba-af5b8041ed8b*1D7D675F580F7F0F1CB9B4DDAAFE083AF9A90947A8F206B86F42B8464895BBCB", + "resourceId": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest4176/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest2785", + "status": "Accepted", + "startTime": "2023-02-20T14:00:32.3109518Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/14385fc2-3a6f-4b56-93ba-af5b8041ed8b*1D7D675F580F7F0F1CB9B4DDAAFE083AF9A90947A8F206B86F42B8464895BBCB?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-d6645177ad5ded6af856e521196df4bf-c685a16e123f4599-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "48e87234184d70bbaed6c48d7e5025ac", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "575", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:00:34 GMT", + "ETag": "\u0022410079e2-0000-3400-0000-63f37d000000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "48e87234184d70bbaed6c48d7e5025ac", + "x-ms-correlation-request-id": "a46150e9-75ac-4136-9268-62a188991ba1", + "x-ms-ratelimit-remaining-subscription-reads": "11971", + "x-ms-request-id": "e80ffab1-b5a7-479e-a9cc-95ba890ef1ee", + "x-ms-routing-request-id": "UKSOUTH:20230220T140034Z:a46150e9-75ac-4136-9268-62a188991ba1" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/14385fc2-3a6f-4b56-93ba-af5b8041ed8b*1D7D675F580F7F0F1CB9B4DDAAFE083AF9A90947A8F206B86F42B8464895BBCB", + "name": "14385fc2-3a6f-4b56-93ba-af5b8041ed8b*1D7D675F580F7F0F1CB9B4DDAAFE083AF9A90947A8F206B86F42B8464895BBCB", + "resourceId": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest4176/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest2785", + "status": "Accepted", + "startTime": "2023-02-20T14:00:32.3109518Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/14385fc2-3a6f-4b56-93ba-af5b8041ed8b*1D7D675F580F7F0F1CB9B4DDAAFE083AF9A90947A8F206B86F42B8464895BBCB?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-d6645177ad5ded6af856e521196df4bf-91c4cfdf5af094a3-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "e41224a782c55d05c4d32b339e964c87", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "575", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:00:35 GMT", + "ETag": "\u0022410079e2-0000-3400-0000-63f37d000000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "e41224a782c55d05c4d32b339e964c87", + "x-ms-correlation-request-id": "d8dc549c-0c6b-44cd-acc2-68369e3c7efb", + "x-ms-ratelimit-remaining-subscription-reads": "11970", + "x-ms-request-id": "a422833c-b786-4100-bdf4-5d85f77f5354", + "x-ms-routing-request-id": "UKSOUTH:20230220T140035Z:d8dc549c-0c6b-44cd-acc2-68369e3c7efb" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/14385fc2-3a6f-4b56-93ba-af5b8041ed8b*1D7D675F580F7F0F1CB9B4DDAAFE083AF9A90947A8F206B86F42B8464895BBCB", + "name": "14385fc2-3a6f-4b56-93ba-af5b8041ed8b*1D7D675F580F7F0F1CB9B4DDAAFE083AF9A90947A8F206B86F42B8464895BBCB", + "resourceId": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest4176/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest2785", + "status": "Accepted", + "startTime": "2023-02-20T14:00:32.3109518Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/14385fc2-3a6f-4b56-93ba-af5b8041ed8b*1D7D675F580F7F0F1CB9B4DDAAFE083AF9A90947A8F206B86F42B8464895BBCB?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-d6645177ad5ded6af856e521196df4bf-8855db6acbd25835-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "fc5191446af8be4edefa46372e595d49", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "594", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:00:37 GMT", + "ETag": "\u00224100b2e2-0000-3400-0000-63f37d050000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "fc5191446af8be4edefa46372e595d49", + "x-ms-correlation-request-id": "56f7c865-8a50-4f75-a4c3-d73d9db3b755", + "x-ms-ratelimit-remaining-subscription-reads": "11969", + "x-ms-request-id": "86c28cba-15d2-4501-98d7-6de1f75d5e0f", + "x-ms-routing-request-id": "UKSOUTH:20230220T140038Z:56f7c865-8a50-4f75-a4c3-d73d9db3b755" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/14385fc2-3a6f-4b56-93ba-af5b8041ed8b*1D7D675F580F7F0F1CB9B4DDAAFE083AF9A90947A8F206B86F42B8464895BBCB", + "name": "14385fc2-3a6f-4b56-93ba-af5b8041ed8b*1D7D675F580F7F0F1CB9B4DDAAFE083AF9A90947A8F206B86F42B8464895BBCB", + "resourceId": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest4176/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest2785", + "status": "Succeeded", + "startTime": "2023-02-20T14:00:32.3109518Z", + "properties": null + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest4176/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest2785?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-d6645177ad5ded6af856e521196df4bf-24805d1d1101c5c7-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "2205260b5ad4b1016c8b847aed87d118", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "986", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:00:38 GMT", + "ETag": "\u0022010015cd-0000-3400-0000-63f37d050000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:ee9ea8e7-bc71-4c0f-83ad-dc11c5b30732", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "2205260b5ad4b1016c8b847aed87d118", + "x-ms-correlation-request-id": "77d2c3fe-5775-4f80-aedc-5c01d023ea2d", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-reads": "11968", + "x-ms-request-id": "4ac73ba2-d26f-4865-bdfe-d69b7068acc3", + "x-ms-routing-request-id": "UKSOUTH:20230220T140038Z:77d2c3fe-5775-4f80-aedc-5c01d023ea2d" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest4176/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest2785", + "name": "SDKTest2785", + "type": "microsoft.voiceservices/communicationsgateways", + "location": "centraluseuap", + "tags": {}, + "systemData": { + "createdBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "createdByType": "Application", + "createdAt": "2023-02-20T14:00:24.7152386Z", + "lastModifiedBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "lastModifiedByType": "Application", + "lastModifiedAt": "2023-02-20T14:00:32.1721059Z" + }, + "properties": { + "status": "ChangePending", + "apiBridge": null, + "autoGeneratedDomainNameLabel": "SDKTest2785.f6hxd3g3fvfkavfg", + "serviceLocations": [ + { + "name": "eastus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.1" + ] + } + }, + { + "name": "westus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.2" + ] + } + } + ], + "connectivity": "PublicAddress", + "codecs": [ + "PCMA", + "PCMU" + ], + "e911Type": "Standard", + "platforms": [ + "OperatorConnect" + ], + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest4176/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest2785?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-c57d171a13a519b5fce829d80f51d615-46b224c45c4334fa-00", + "User-Agent": "azsdk-net-ResourceManager.VoiceServices/1.0.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "ed493d8a29fe3cb3d65306ca3cce2f6b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "986", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:00:38 GMT", + "ETag": "\u0022010015cd-0000-3400-0000-63f37d050000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:ee9ea8e7-bc71-4c0f-83ad-dc11c5b30732", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "ed493d8a29fe3cb3d65306ca3cce2f6b", + "x-ms-correlation-request-id": "3c08ce5b-8138-434d-b87d-c1cf799bc9d9", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-reads": "11967", + "x-ms-request-id": "06fdc447-74a5-4e36-a193-b00034e05a4b", + "x-ms-routing-request-id": "UKSOUTH:20230220T140038Z:3c08ce5b-8138-434d-b87d-c1cf799bc9d9" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest4176/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest2785", + "name": "SDKTest2785", + "type": "microsoft.voiceservices/communicationsgateways", + "location": "centraluseuap", + "tags": {}, + "systemData": { + "createdBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "createdByType": "Application", + "createdAt": "2023-02-20T14:00:24.7152386Z", + "lastModifiedBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "lastModifiedByType": "Application", + "lastModifiedAt": "2023-02-20T14:00:32.1721059Z" + }, + "properties": { + "status": "ChangePending", + "apiBridge": null, + "autoGeneratedDomainNameLabel": "SDKTest2785.f6hxd3g3fvfkavfg", + "serviceLocations": [ + { + "name": "eastus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.1" + ] + } + }, + { + "name": "westus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.2" + ] + } + } + ], + "connectivity": "PublicAddress", + "codecs": [ + "PCMA", + "PCMU" + ], + "e911Type": "Standard", + "platforms": [ + "OperatorConnect" + ], + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest4176/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest2785?api-version=2023-01-31", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "30", + "Content-Type": "application/json", + "traceparent": "00-32225a0fcc0bed3aecb95aa09f92bbc3-eecbac6aa8e6db94-00", + "User-Agent": "azsdk-net-ResourceManager.VoiceServices/1.0.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "7827e1752990e9b28f9f906de6d3d156", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "tagKey": "tagValue" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "988", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:00:39 GMT", + "ETag": "\u0022010016cd-0000-3400-0000-63f37d060000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "7827e1752990e9b28f9f906de6d3d156", + "x-ms-correlation-request-id": "0be462e1-7622-4977-8824-19bab5a445f7", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1192", + "x-ms-request-id": "54d25ace-2ba1-4225-b34a-54fa135807a4", + "x-ms-routing-request-id": "UKSOUTH:20230220T140039Z:0be462e1-7622-4977-8824-19bab5a445f7" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest4176/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest2785", + "name": "SDKTest2785", + "type": "microsoft.voiceservices/communicationsgateways", + "location": "centraluseuap", + "tags": { + "tagKey": "tagValue" + }, + "systemData": { + "createdBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "createdByType": "Application", + "createdAt": "2023-02-20T14:00:24.7152386Z", + "lastModifiedBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "lastModifiedByType": "Application", + "lastModifiedAt": "2023-02-20T14:00:38.8013595Z" + }, + "properties": { + "status": "ChangePending", + "autoGeneratedDomainNameLabel": "SDKTest2785.f6hxd3g3fvfkavfg", + "serviceLocations": [ + { + "name": "eastus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.1" + ] + } + }, + { + "name": "westus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.2" + ] + } + } + ], + "connectivity": "PublicAddress", + "codecs": [ + "PCMA", + "PCMU" + ], + "e911Type": "Standard", + "platforms": [ + "OperatorConnect" + ], + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest4176/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest2785?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-d92012d450469454198b4679ac8f28a9-f6d165490ec7556d-00", + "User-Agent": "azsdk-net-ResourceManager.VoiceServices/1.0.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "f1ad2e296f0fe24b72c94b805436759e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1005", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:00:39 GMT", + "ETag": "\u0022010016cd-0000-3400-0000-63f37d060000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:ee9ea8e7-bc71-4c0f-83ad-dc11c5b30732", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "f1ad2e296f0fe24b72c94b805436759e", + "x-ms-correlation-request-id": "b86511ac-f9f7-4e16-9740-5a66c09084f8", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-reads": "11966", + "x-ms-request-id": "23049f5e-837f-4933-8509-fcf7acca36d1", + "x-ms-routing-request-id": "UKSOUTH:20230220T140039Z:b86511ac-f9f7-4e16-9740-5a66c09084f8" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest4176/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest2785", + "name": "SDKTest2785", + "type": "microsoft.voiceservices/communicationsgateways", + "location": "centraluseuap", + "tags": { + "tagKey": "tagValue" + }, + "systemData": { + "createdBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "createdByType": "Application", + "createdAt": "2023-02-20T14:00:24.7152386Z", + "lastModifiedBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "lastModifiedByType": "Application", + "lastModifiedAt": "2023-02-20T14:00:38.8013595Z" + }, + "properties": { + "status": "ChangePending", + "apiBridge": null, + "autoGeneratedDomainNameLabel": "SDKTest2785.f6hxd3g3fvfkavfg", + "serviceLocations": [ + { + "name": "eastus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.1" + ] + } + }, + { + "name": "westus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.2" + ] + } + } + ], + "connectivity": "PublicAddress", + "codecs": [ + "PCMA", + "PCMU" + ], + "e911Type": "Standard", + "platforms": [ + "OperatorConnect" + ], + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest4176/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest2785?api-version=2023-01-31", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-62fafe937f0097dc52070ae366b8de05-a554c591d3f11c9b-00", + "User-Agent": "azsdk-net-ResourceManager.VoiceServices/1.0.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "0b05185b596060878a5f5d5e98465502", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 20 Feb 2023 14:00:41 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:ee9ea8e7-bc71-4c0f-83ad-dc11c5b30732", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "0b05185b596060878a5f5d5e98465502", + "x-ms-correlation-request-id": "1c1ac130-2ff8-486c-8ae5-4872c1e4dbaf", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-deletes": "14998", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "x-ms-routing-request-id": "UKSOUTH:20230220T140041Z:1c1ac130-2ff8-486c-8ae5-4872c1e4dbaf" + }, + "ResponseBody": null + } + ], + "Variables": { + "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com/", + "RandomSeed": "1918800794", + "RESOURCE_MANAGER_URL": "https://management.azure.com/", + "SUBSCRIPTION_ID": "d2b80745-3b5d-4357-84cc-ede5c5886c5a" + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/tests/SessionRecords/ListCommunicationsGatewaysTests/TestListCommunicationsGatewaysAtResourceGroupLevel()Async.json b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/tests/SessionRecords/ListCommunicationsGatewaysTests/TestListCommunicationsGatewaysAtResourceGroupLevel()Async.json new file mode 100644 index 0000000000000..89b1011dbc084 --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/tests/SessionRecords/ListCommunicationsGatewaysTests/TestListCommunicationsGatewaysAtResourceGroupLevel()Async.json @@ -0,0 +1,546 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a?api-version=2021-01-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-8e15acdfaf0ede510945457b82cb8d7c-c0305b574b0db6b3-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "0ffe3a917bd4eef94378909c7895e3f7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "418", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:02:38 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f8843e35-0a87-4774-947a-68cdea0ea094", + "x-ms-ratelimit-remaining-subscription-reads": "11991", + "x-ms-request-id": "f8843e35-0a87-4774-947a-68cdea0ea094", + "x-ms-routing-request-id": "UKSOUTH:20230220T140239Z:f8843e35-0a87-4774-947a-68cdea0ea094" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "subscriptionId": "d2b80745-3b5d-4357-84cc-ede5c5886c5a", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "A4O VoiceServices RP Test Subscription", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourcegroups/SDKTest4737?api-version=**", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "28", + "Content-Type": "application/json", + "traceparent": "00-e2cece92810e1aa2afe24d6482c51054-9e6da80cc9d0ffbf-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "0c60a684b57d7e31e546d730424bdba7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "centraluseuap" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "226", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:02:39 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d3edc6b3-9182-4afc-9c08-048be00e529e", + "x-ms-ratelimit-remaining-subscription-writes": "1197", + "x-ms-request-id": "d3edc6b3-9182-4afc-9c08-048be00e529e", + "x-ms-routing-request-id": "UKSOUTH:20230220T140240Z:d3edc6b3-9182-4afc-9c08-048be00e529e" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest4737", + "name": "SDKTest4737", + "type": "Microsoft.Resources/resourceGroups", + "location": "centraluseuap", + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest4737/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest3308?api-version=2023-01-31", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "333", + "Content-Type": "application/json", + "traceparent": "00-45a741a26ec99f63051217ddf10309ed-8d9bd8a602324532-00", + "User-Agent": "azsdk-net-ResourceManager.VoiceServices/1.0.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "c9704d24bee9e0171e4d5150e1a701c7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": {}, + "location": "centraluseuap", + "properties": { + "serviceLocations": [ + { + "name": "eastus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.1" + ] + } + }, + { + "name": "westus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.2" + ] + } + } + ], + "connectivity": "PublicAddress", + "codecs": [ + "PCMA" + ], + "e911Type": "Standard", + "platforms": [ + "OperatorConnect" + ] + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/4ad3ad8d-c700-490a-a535-cd05bf194a3f*F5DC16BDBE244E62A99A91CE4B7A5A3DC9082FDC0CCE327F8E4692B4D1AF4E9E?api-version=2023-01-31", + "Cache-Control": "no-cache", + "Content-Length": "874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:02:41 GMT", + "ETag": "\u0022010022cd-0000-3400-0000-63f37d810000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:ee9ea8e7-bc71-4c0f-83ad-dc11c5b30732", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "c9704d24bee9e0171e4d5150e1a701c7", + "x-ms-correlation-request-id": "8359321f-b08a-4839-aec5-bb7208e618d4", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1196", + "x-ms-request-id": "4ad3ad8d-c700-490a-a535-cd05bf194a3f", + "x-ms-routing-request-id": "UKSOUTH:20230220T140242Z:8359321f-b08a-4839-aec5-bb7208e618d4" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest4737/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest3308", + "name": "SDKTest3308", + "type": "microsoft.voiceservices/communicationsgateways", + "location": "centraluseuap", + "tags": {}, + "systemData": { + "createdBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "createdByType": "Application", + "createdAt": "2023-02-20T14:02:41.3920205Z", + "lastModifiedBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "lastModifiedByType": "Application", + "lastModifiedAt": "2023-02-20T14:02:41.3920205Z" + }, + "properties": { + "serviceLocations": [ + { + "name": "eastus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.1" + ] + } + }, + { + "name": "westus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.2" + ] + } + } + ], + "connectivity": "PublicAddress", + "codecs": [ + "PCMA" + ], + "e911Type": "Standard", + "platforms": [ + "OperatorConnect" + ], + "provisioningState": "Accepted" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/4ad3ad8d-c700-490a-a535-cd05bf194a3f*F5DC16BDBE244E62A99A91CE4B7A5A3DC9082FDC0CCE327F8E4692B4D1AF4E9E?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-45a741a26ec99f63051217ddf10309ed-51938451febe86a6-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "9570b1f47a86e89b492c5e68e02e049f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "575", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:02:41 GMT", + "ETag": "\u0022410006e7-0000-3400-0000-63f37d810000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "9570b1f47a86e89b492c5e68e02e049f", + "x-ms-correlation-request-id": "b71532fa-fc14-45b3-98f7-4f9f7ed23ec6", + "x-ms-ratelimit-remaining-subscription-reads": "11990", + "x-ms-request-id": "042d80d9-855d-41eb-9362-cb62d3fd660a", + "x-ms-routing-request-id": "UKSOUTH:20230220T140242Z:b71532fa-fc14-45b3-98f7-4f9f7ed23ec6" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/4ad3ad8d-c700-490a-a535-cd05bf194a3f*F5DC16BDBE244E62A99A91CE4B7A5A3DC9082FDC0CCE327F8E4692B4D1AF4E9E", + "name": "4ad3ad8d-c700-490a-a535-cd05bf194a3f*F5DC16BDBE244E62A99A91CE4B7A5A3DC9082FDC0CCE327F8E4692B4D1AF4E9E", + "resourceId": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest4737/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest3308", + "status": "Accepted", + "startTime": "2023-02-20T14:02:41.5155477Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/4ad3ad8d-c700-490a-a535-cd05bf194a3f*F5DC16BDBE244E62A99A91CE4B7A5A3DC9082FDC0CCE327F8E4692B4D1AF4E9E?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-45a741a26ec99f63051217ddf10309ed-af822e209bfcfd91-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "f51568d5404610b2c8a339fa89f6211d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "575", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:02:42 GMT", + "ETag": "\u0022410006e7-0000-3400-0000-63f37d810000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "f51568d5404610b2c8a339fa89f6211d", + "x-ms-correlation-request-id": "10e04414-95f5-49eb-b4fd-9ee264205364", + "x-ms-ratelimit-remaining-subscription-reads": "11989", + "x-ms-request-id": "244e87fa-bb9b-4cc7-9be1-b37dce40e026", + "x-ms-routing-request-id": "UKSOUTH:20230220T140243Z:10e04414-95f5-49eb-b4fd-9ee264205364" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/4ad3ad8d-c700-490a-a535-cd05bf194a3f*F5DC16BDBE244E62A99A91CE4B7A5A3DC9082FDC0CCE327F8E4692B4D1AF4E9E", + "name": "4ad3ad8d-c700-490a-a535-cd05bf194a3f*F5DC16BDBE244E62A99A91CE4B7A5A3DC9082FDC0CCE327F8E4692B4D1AF4E9E", + "resourceId": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest4737/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest3308", + "status": "Accepted", + "startTime": "2023-02-20T14:02:41.5155477Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/4ad3ad8d-c700-490a-a535-cd05bf194a3f*F5DC16BDBE244E62A99A91CE4B7A5A3DC9082FDC0CCE327F8E4692B4D1AF4E9E?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-45a741a26ec99f63051217ddf10309ed-5529d4d482df0721-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "2f5b9c1f6c36b241b9ad1ee7b61cec62", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "575", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:02:43 GMT", + "ETag": "\u0022410006e7-0000-3400-0000-63f37d810000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "2f5b9c1f6c36b241b9ad1ee7b61cec62", + "x-ms-correlation-request-id": "6bbb8d38-8552-4cb9-bd88-9c16bdfd853d", + "x-ms-ratelimit-remaining-subscription-reads": "11988", + "x-ms-request-id": "22d3ca70-ace8-471f-b947-7f35052f1c6b", + "x-ms-routing-request-id": "UKSOUTH:20230220T140244Z:6bbb8d38-8552-4cb9-bd88-9c16bdfd853d" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/4ad3ad8d-c700-490a-a535-cd05bf194a3f*F5DC16BDBE244E62A99A91CE4B7A5A3DC9082FDC0CCE327F8E4692B4D1AF4E9E", + "name": "4ad3ad8d-c700-490a-a535-cd05bf194a3f*F5DC16BDBE244E62A99A91CE4B7A5A3DC9082FDC0CCE327F8E4692B4D1AF4E9E", + "resourceId": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest4737/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest3308", + "status": "Accepted", + "startTime": "2023-02-20T14:02:41.5155477Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/4ad3ad8d-c700-490a-a535-cd05bf194a3f*F5DC16BDBE244E62A99A91CE4B7A5A3DC9082FDC0CCE327F8E4692B4D1AF4E9E?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-45a741a26ec99f63051217ddf10309ed-01c1fec7c0be8b71-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "564b95ea37ebb46eff60cce241a15e52", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "575", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:02:45 GMT", + "ETag": "\u0022410006e7-0000-3400-0000-63f37d810000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "564b95ea37ebb46eff60cce241a15e52", + "x-ms-correlation-request-id": "0b7fc8fd-87e3-44ee-978e-e46ff857e473", + "x-ms-ratelimit-remaining-subscription-reads": "11987", + "x-ms-request-id": "0fb88235-6eba-4864-b2e5-cc633a07a476", + "x-ms-routing-request-id": "UKSOUTH:20230220T140245Z:0b7fc8fd-87e3-44ee-978e-e46ff857e473" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/4ad3ad8d-c700-490a-a535-cd05bf194a3f*F5DC16BDBE244E62A99A91CE4B7A5A3DC9082FDC0CCE327F8E4692B4D1AF4E9E", + "name": "4ad3ad8d-c700-490a-a535-cd05bf194a3f*F5DC16BDBE244E62A99A91CE4B7A5A3DC9082FDC0CCE327F8E4692B4D1AF4E9E", + "resourceId": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest4737/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest3308", + "status": "Accepted", + "startTime": "2023-02-20T14:02:41.5155477Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/4ad3ad8d-c700-490a-a535-cd05bf194a3f*F5DC16BDBE244E62A99A91CE4B7A5A3DC9082FDC0CCE327F8E4692B4D1AF4E9E?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-45a741a26ec99f63051217ddf10309ed-3920b7e2f450fb40-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "4348400ad5d2696826623c9821cb59ac", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "594", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:02:48 GMT", + "ETag": "\u0022410033e7-0000-3400-0000-63f37d870000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "4348400ad5d2696826623c9821cb59ac", + "x-ms-correlation-request-id": "ffc02fca-49a9-4015-9021-0080a78a8bb1", + "x-ms-ratelimit-remaining-subscription-reads": "11986", + "x-ms-request-id": "e0a2eb16-7238-47e1-9206-d02a22847766", + "x-ms-routing-request-id": "UKSOUTH:20230220T140248Z:ffc02fca-49a9-4015-9021-0080a78a8bb1" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/4ad3ad8d-c700-490a-a535-cd05bf194a3f*F5DC16BDBE244E62A99A91CE4B7A5A3DC9082FDC0CCE327F8E4692B4D1AF4E9E", + "name": "4ad3ad8d-c700-490a-a535-cd05bf194a3f*F5DC16BDBE244E62A99A91CE4B7A5A3DC9082FDC0CCE327F8E4692B4D1AF4E9E", + "resourceId": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest4737/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest3308", + "status": "Succeeded", + "startTime": "2023-02-20T14:02:41.5155477Z", + "properties": null + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest4737/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest3308?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-45a741a26ec99f63051217ddf10309ed-36725fe381f4e476-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "f310d7b6cbaae8312da730d69f5e7118", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "979", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:02:48 GMT", + "ETag": "\u0022010023cd-0000-3400-0000-63f37d870000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:ee9ea8e7-bc71-4c0f-83ad-dc11c5b30732", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "f310d7b6cbaae8312da730d69f5e7118", + "x-ms-correlation-request-id": "989b75c5-e42d-4cdd-b9dc-e0e0f303e6d1", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-reads": "11985", + "x-ms-request-id": "701a1162-1200-43ef-8137-57fe0b4c56bf", + "x-ms-routing-request-id": "UKSOUTH:20230220T140248Z:989b75c5-e42d-4cdd-b9dc-e0e0f303e6d1" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest4737/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest3308", + "name": "SDKTest3308", + "type": "microsoft.voiceservices/communicationsgateways", + "location": "centraluseuap", + "tags": {}, + "systemData": { + "createdBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "createdByType": "Application", + "createdAt": "2023-02-20T14:02:41.3920205Z", + "lastModifiedBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "lastModifiedByType": "Application", + "lastModifiedAt": "2023-02-20T14:02:41.3920205Z" + }, + "properties": { + "status": "ChangePending", + "apiBridge": null, + "autoGeneratedDomainNameLabel": "SDKTest3308.f4g9a6amg2hzf4fq", + "serviceLocations": [ + { + "name": "eastus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.1" + ] + } + }, + { + "name": "westus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.2" + ] + } + } + ], + "connectivity": "PublicAddress", + "codecs": [ + "PCMA" + ], + "e911Type": "Standard", + "platforms": [ + "OperatorConnect" + ], + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest4737/providers/Microsoft.VoiceServices/communicationsGateways?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.VoiceServices/1.0.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "76dccb4ea9d3148f2de22f89fbd69333", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "966", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:02:48 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b566034c-7f11-4d16-8e92-39abda313ca7", + "x-ms-original-request-ids": [ + "1f02b602-9c12-4b65-a7f1-7e5e594a265d", + "dff6f5ec-3b2e-4692-a1b1-ba7503d6d4ed", + "846c1fdd-235c-458b-99fc-e6f1ada9d63b" + ], + "x-ms-ratelimit-remaining-subscription-reads": "11984", + "x-ms-request-id": "b566034c-7f11-4d16-8e92-39abda313ca7", + "x-ms-routing-request-id": "UKSOUTH:20230220T140248Z:b566034c-7f11-4d16-8e92-39abda313ca7" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest4737/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest3308", + "name": "SDKTest3308", + "type": "microsoft.voiceservices/communicationsgateways", + "location": "centraluseuap", + "tags": {}, + "systemData": { + "createdBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "createdByType": "Application", + "createdAt": "2023-02-20T14:02:41.3920205Z", + "lastModifiedBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "lastModifiedByType": "Application", + "lastModifiedAt": "2023-02-20T14:02:41.3920205Z" + }, + "properties": { + "apiBridge": null, + "autoGeneratedDomainNameLabel": "SDKTest3308.f4g9a6amg2hzf4fq", + "serviceLocations": [ + { + "name": "eastus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.1" + ] + } + }, + { + "name": "westus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.2" + ] + } + } + ], + "connectivity": "PublicAddress", + "codecs": [ + "PCMA" + ], + "e911Type": "Standard", + "platforms": [ + "OperatorConnect" + ], + "provisioningState": "Succeeded" + } + } + ] + } + } + ], + "Variables": { + "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com/", + "RandomSeed": "139065841", + "RESOURCE_MANAGER_URL": "https://management.azure.com/", + "SUBSCRIPTION_ID": "d2b80745-3b5d-4357-84cc-ede5c5886c5a" + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/tests/SessionRecords/ListCommunicationsGatewaysTests/TestListCommunicationsGatewaysAtSubscriptionLevel()Async.json b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/tests/SessionRecords/ListCommunicationsGatewaysTests/TestListCommunicationsGatewaysAtSubscriptionLevel()Async.json new file mode 100644 index 0000000000000..67d74a1bae400 --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/tests/SessionRecords/ListCommunicationsGatewaysTests/TestListCommunicationsGatewaysAtSubscriptionLevel()Async.json @@ -0,0 +1,1688 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a?api-version=2021-01-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-27ac4f5cf298755d283df1fbf908964a-a5ff1aa585e7d601-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "43d7306f933e945db75cb43650c8934f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "418", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:02:20 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f1f2ced0-84a7-4dad-903a-748bb7cd1d29", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-request-id": "f1f2ced0-84a7-4dad-903a-748bb7cd1d29", + "x-ms-routing-request-id": "UKSOUTH:20230220T140221Z:f1f2ced0-84a7-4dad-903a-748bb7cd1d29" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "subscriptionId": "d2b80745-3b5d-4357-84cc-ede5c5886c5a", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "A4O VoiceServices RP Test Subscription", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourcegroups/SDKTest8062?api-version=**", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "28", + "Content-Type": "application/json", + "traceparent": "00-b2565c1cbfb830c59f0a0ed6b80a646d-e8b711bd65027dfe-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "4afe3c19e2cc0b1be094d4a364ab59d0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "centraluseuap" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "226", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:02:22 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7ea8a0a0-0dd6-4016-add7-d8d4ae59aafc", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-request-id": "7ea8a0a0-0dd6-4016-add7-d8d4ae59aafc", + "x-ms-routing-request-id": "UKSOUTH:20230220T140223Z:7ea8a0a0-0dd6-4016-add7-d8d4ae59aafc" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest8062", + "name": "SDKTest8062", + "type": "Microsoft.Resources/resourceGroups", + "location": "centraluseuap", + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest8062/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest2257?api-version=2023-01-31", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "333", + "Content-Type": "application/json", + "traceparent": "00-2b77a695d6f3534afa0855e8c10af9ce-9f80604c8dd1bb54-00", + "User-Agent": "azsdk-net-ResourceManager.VoiceServices/1.0.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "68f836f3abb99b6d516e521196f3851c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": {}, + "location": "centraluseuap", + "properties": { + "serviceLocations": [ + { + "name": "eastus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.1" + ] + } + }, + { + "name": "westus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.2" + ] + } + } + ], + "connectivity": "PublicAddress", + "codecs": [ + "PCMA" + ], + "e911Type": "Standard", + "platforms": [ + "OperatorConnect" + ] + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/27bc3d40-d6f6-4aab-9ec0-3d51be8d5e65*DAC882E5E8E1546F89248CEF039B4229C2E73DEE48B413504D0A57F70D09C034?api-version=2023-01-31", + "Cache-Control": "no-cache", + "Content-Length": "874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:02:27 GMT", + "ETag": "\u0022010020cd-0000-3400-0000-63f37d730000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:ee9ea8e7-bc71-4c0f-83ad-dc11c5b30732", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "68f836f3abb99b6d516e521196f3851c", + "x-ms-correlation-request-id": "12874d12-f159-4298-81bd-35a7b38425de", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-request-id": "27bc3d40-d6f6-4aab-9ec0-3d51be8d5e65", + "x-ms-routing-request-id": "UKSOUTH:20230220T140227Z:12874d12-f159-4298-81bd-35a7b38425de" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest8062/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest2257", + "name": "SDKTest2257", + "type": "microsoft.voiceservices/communicationsgateways", + "location": "centraluseuap", + "tags": {}, + "systemData": { + "createdBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "createdByType": "Application", + "createdAt": "2023-02-20T14:02:26.4700907Z", + "lastModifiedBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "lastModifiedByType": "Application", + "lastModifiedAt": "2023-02-20T14:02:26.4700907Z" + }, + "properties": { + "serviceLocations": [ + { + "name": "eastus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.1" + ] + } + }, + { + "name": "westus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.2" + ] + } + } + ], + "connectivity": "PublicAddress", + "codecs": [ + "PCMA" + ], + "e911Type": "Standard", + "platforms": [ + "OperatorConnect" + ], + "provisioningState": "Accepted" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/27bc3d40-d6f6-4aab-9ec0-3d51be8d5e65*DAC882E5E8E1546F89248CEF039B4229C2E73DEE48B413504D0A57F70D09C034?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-2b77a695d6f3534afa0855e8c10af9ce-69e419d6a8494c69-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "5cd43765c457906090ae7a74c8f949a1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "575", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:02:27 GMT", + "ETag": "\u0022410080e6-0000-3400-0000-63f37d730000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "5cd43765c457906090ae7a74c8f949a1", + "x-ms-correlation-request-id": "65cbf552-aa68-4034-9df3-656055036d1a", + "x-ms-ratelimit-remaining-subscription-reads": "11998", + "x-ms-request-id": "c6de82b5-392f-4f48-a19f-0b5a43a57108", + "x-ms-routing-request-id": "UKSOUTH:20230220T140228Z:65cbf552-aa68-4034-9df3-656055036d1a" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/27bc3d40-d6f6-4aab-9ec0-3d51be8d5e65*DAC882E5E8E1546F89248CEF039B4229C2E73DEE48B413504D0A57F70D09C034", + "name": "27bc3d40-d6f6-4aab-9ec0-3d51be8d5e65*DAC882E5E8E1546F89248CEF039B4229C2E73DEE48B413504D0A57F70D09C034", + "resourceId": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest8062/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest2257", + "status": "Accepted", + "startTime": "2023-02-20T14:02:27.0091454Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/27bc3d40-d6f6-4aab-9ec0-3d51be8d5e65*DAC882E5E8E1546F89248CEF039B4229C2E73DEE48B413504D0A57F70D09C034?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-2b77a695d6f3534afa0855e8c10af9ce-62e5adfcb4b080de-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "c06d864fdff24fbde93c305aace4aafe", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "575", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:02:28 GMT", + "ETag": "\u0022410080e6-0000-3400-0000-63f37d730000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "c06d864fdff24fbde93c305aace4aafe", + "x-ms-correlation-request-id": "45401529-54fc-45dc-8c38-ae479b911970", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-request-id": "dd06a982-5b84-45ec-bc61-9a00c1fdbb3a", + "x-ms-routing-request-id": "UKSOUTH:20230220T140229Z:45401529-54fc-45dc-8c38-ae479b911970" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/27bc3d40-d6f6-4aab-9ec0-3d51be8d5e65*DAC882E5E8E1546F89248CEF039B4229C2E73DEE48B413504D0A57F70D09C034", + "name": "27bc3d40-d6f6-4aab-9ec0-3d51be8d5e65*DAC882E5E8E1546F89248CEF039B4229C2E73DEE48B413504D0A57F70D09C034", + "resourceId": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest8062/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest2257", + "status": "Accepted", + "startTime": "2023-02-20T14:02:27.0091454Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/27bc3d40-d6f6-4aab-9ec0-3d51be8d5e65*DAC882E5E8E1546F89248CEF039B4229C2E73DEE48B413504D0A57F70D09C034?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-2b77a695d6f3534afa0855e8c10af9ce-77372f090a10e400-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "5eacf7bd281e32c58ad55fad28d8f23e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "575", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:02:29 GMT", + "ETag": "\u0022410080e6-0000-3400-0000-63f37d730000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "5eacf7bd281e32c58ad55fad28d8f23e", + "x-ms-correlation-request-id": "7d1631fd-96bf-48f6-a879-bd965296ec6c", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-request-id": "fc1e0620-9873-4b32-aed7-6b89384a6e08", + "x-ms-routing-request-id": "UKSOUTH:20230220T140230Z:7d1631fd-96bf-48f6-a879-bd965296ec6c" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/27bc3d40-d6f6-4aab-9ec0-3d51be8d5e65*DAC882E5E8E1546F89248CEF039B4229C2E73DEE48B413504D0A57F70D09C034", + "name": "27bc3d40-d6f6-4aab-9ec0-3d51be8d5e65*DAC882E5E8E1546F89248CEF039B4229C2E73DEE48B413504D0A57F70D09C034", + "resourceId": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest8062/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest2257", + "status": "Accepted", + "startTime": "2023-02-20T14:02:27.0091454Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/27bc3d40-d6f6-4aab-9ec0-3d51be8d5e65*DAC882E5E8E1546F89248CEF039B4229C2E73DEE48B413504D0A57F70D09C034?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-2b77a695d6f3534afa0855e8c10af9ce-5749baadd1884dcc-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "6a395c14f0e485677a84731b9405e3ac", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "575", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:02:30 GMT", + "ETag": "\u0022410080e6-0000-3400-0000-63f37d730000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "6a395c14f0e485677a84731b9405e3ac", + "x-ms-correlation-request-id": "e1a2ea47-87b8-476a-b241-509c8c2f4162", + "x-ms-ratelimit-remaining-subscription-reads": "11995", + "x-ms-request-id": "2c088b31-9668-4b54-9773-87c9901b605b", + "x-ms-routing-request-id": "UKSOUTH:20230220T140231Z:e1a2ea47-87b8-476a-b241-509c8c2f4162" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/27bc3d40-d6f6-4aab-9ec0-3d51be8d5e65*DAC882E5E8E1546F89248CEF039B4229C2E73DEE48B413504D0A57F70D09C034", + "name": "27bc3d40-d6f6-4aab-9ec0-3d51be8d5e65*DAC882E5E8E1546F89248CEF039B4229C2E73DEE48B413504D0A57F70D09C034", + "resourceId": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest8062/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest2257", + "status": "Accepted", + "startTime": "2023-02-20T14:02:27.0091454Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/27bc3d40-d6f6-4aab-9ec0-3d51be8d5e65*DAC882E5E8E1546F89248CEF039B4229C2E73DEE48B413504D0A57F70D09C034?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-2b77a695d6f3534afa0855e8c10af9ce-e9453860db381a9f-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "d1b77c03eb4d2783c13b351d800f2610", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "594", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:02:32 GMT", + "ETag": "\u00224100a4e6-0000-3400-0000-63f37d780000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "d1b77c03eb4d2783c13b351d800f2610", + "x-ms-correlation-request-id": "73cbaf5e-7086-4eca-878f-b953062a04ea", + "x-ms-ratelimit-remaining-subscription-reads": "11994", + "x-ms-request-id": "312e372f-971d-4e6e-9878-a17f002e84b6", + "x-ms-routing-request-id": "UKSOUTH:20230220T140233Z:73cbaf5e-7086-4eca-878f-b953062a04ea" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/27bc3d40-d6f6-4aab-9ec0-3d51be8d5e65*DAC882E5E8E1546F89248CEF039B4229C2E73DEE48B413504D0A57F70D09C034", + "name": "27bc3d40-d6f6-4aab-9ec0-3d51be8d5e65*DAC882E5E8E1546F89248CEF039B4229C2E73DEE48B413504D0A57F70D09C034", + "resourceId": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest8062/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest2257", + "status": "Succeeded", + "startTime": "2023-02-20T14:02:27.0091454Z", + "properties": null + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest8062/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest2257?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-2b77a695d6f3534afa0855e8c10af9ce-7c36e38d38dca7a9-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "4f46f1493faacc1a8f26e499b4aa9d84", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "979", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:02:33 GMT", + "ETag": "\u0022010021cd-0000-3400-0000-63f37d780000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:ee9ea8e7-bc71-4c0f-83ad-dc11c5b30732", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "4f46f1493faacc1a8f26e499b4aa9d84", + "x-ms-correlation-request-id": "d573b2b7-130d-452e-9f9b-96da0a30e84d", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-reads": "11993", + "x-ms-request-id": "909290a2-9e88-4c53-9579-b1c8fc40b727", + "x-ms-routing-request-id": "UKSOUTH:20230220T140233Z:d573b2b7-130d-452e-9f9b-96da0a30e84d" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest8062/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest2257", + "name": "SDKTest2257", + "type": "microsoft.voiceservices/communicationsgateways", + "location": "centraluseuap", + "tags": {}, + "systemData": { + "createdBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "createdByType": "Application", + "createdAt": "2023-02-20T14:02:26.4700907Z", + "lastModifiedBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "lastModifiedByType": "Application", + "lastModifiedAt": "2023-02-20T14:02:26.4700907Z" + }, + "properties": { + "status": "ChangePending", + "apiBridge": null, + "autoGeneratedDomainNameLabel": "SDKTest2257.hvanawbtd0f8e7ay", + "serviceLocations": [ + { + "name": "eastus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.1" + ] + } + }, + { + "name": "westus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.2" + ] + } + } + ], + "connectivity": "PublicAddress", + "codecs": [ + "PCMA" + ], + "e911Type": "Standard", + "platforms": [ + "OperatorConnect" + ], + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/communicationsGateways?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.VoiceServices/1.0.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "acaab3f1212129f0d912a9a8bb4a056a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "23859", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:02:34 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "02ae99a1-cc64-47fb-98ea-52a4d0e723af", + "x-ms-original-request-ids": [ + "de930e1e-3576-4540-82df-dbdc327fc5cb", + "d2c71632-46f9-4aa2-a451-3070251d6048", + "bc0f7882-1329-4e75-8691-50b0341ec7b2" + ], + "x-ms-ratelimit-remaining-subscription-reads": "11992", + "x-ms-request-id": "02ae99a1-cc64-47fb-98ea-52a4d0e723af", + "x-ms-routing-request-id": "UKSOUTH:20230220T140235Z:02ae99a1-cc64-47fb-98ea-52a4d0e723af" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/demo/providers/Microsoft.VoiceServices/CommunicationsGateways/DemoGateway2", + "name": "DemoGateway2", + "type": "microsoft.voiceservices/communicationsgateways", + "location": "westcentralus", + "tags": {}, + "systemData": { + "createdBy": "nickslack@microsoft.com", + "createdByType": "User", + "createdAt": "2023-02-02T13:54:36.3065371Z", + "lastModifiedBy": "nickslack@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-02-02T13:54:36.3065371Z" + }, + "properties": { + "apiBridge": null, + "autoGeneratedDomainNameLabelScope": "TenantReuse", + "autoGeneratedDomainNameLabel": "DemoGateway2.hbakcwb7bya2ded0", + "connectivity": "PublicAddress", + "codecs": [ + "PCMA", + "PCMU", + "G722", + "G722_2", + "SILK_8", + "SILK_16" + ], + "platforms": [ + "OperatorConnect", + "TeamsPhoneMobile" + ], + "e911Type": "Standard", + "serviceLocations": [ + { + "name": "eastus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.2.3.4" + ], + "esrpAddresses": [], + "allowedSignalingSourceAddressPrefixes": [ + "2.3.4.5" + ], + "allowedMediaSourceAddressPrefixes": [ + "2.3.4.6" + ] + } + }, + { + "name": "centralus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.2.3.6" + ], + "esrpAddresses": [], + "allowedSignalingSourceAddressPrefixes": [ + "2.3.4.6" + ], + "allowedMediaSourceAddressPrefixes": [ + "2.3.4.7" + ] + } + } + ], + "teamsVoicemailPilotNumber": null, + "emergencyDialStrings": [ + "911", + "933" + ], + "onPremMcpEnabled": false, + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/azcog-move-test/providers/Microsoft.VoiceServices/CommunicationsGateways/ItWorksInCanary", + "name": "ItWorksInCanary", + "type": "microsoft.voiceservices/communicationsgateways", + "location": "centraluseuap", + "systemData": { + "createdBy": "robday@microsoft.com", + "createdByType": "User", + "createdAt": "2022-11-09T10:01:05.3419696Z", + "lastModifiedBy": "robday@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-11-09T10:01:05.3419696Z" + }, + "properties": { + "apiBridge": null, + "serviceLocations": [ + { + "name": "useast", + "primaryRegionProperties": { + "operatorAddresses": [ + "198.51.100.1" + ] + } + }, + { + "name": "useast2", + "primaryRegionProperties": { + "operatorAddresses": [ + "198.51.100.2" + ] + } + } + ], + "connectivity": "PublicAddress", + "codecs": [ + "PCMA" + ], + "platforms": [ + "OperatorConnect" + ], + "e911Type": "Standard", + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/azcog-move-test/providers/Microsoft.VoiceServices/CommunicationsGateways/RKD2", + "name": "RKD2", + "type": "microsoft.voiceservices/communicationsgateways", + "location": "centraluseuap", + "systemData": { + "lastModifiedBy": "robday@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-11-09T14:23:13.763381Z" + }, + "properties": { + "apiBridge": null, + "connectivity": "PublicAddress", + "codecs": [ + "PCMA" + ], + "platforms": [ + "OperatorConnect" + ], + "e911Type": "Standard", + "serviceLocations": [ + { + "name": "eastus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.1" + ], + "esrpAddresses": [] + } + }, + { + "name": "westus", + "primaryRegionProperties": { + "operatorAddresses": [ + "2.2.2.2" + ], + "esrpAddresses": [] + } + } + ], + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/azcog-rp-test-rg/providers/Microsoft.VoiceServices/CommunicationsGateways/PortalUITest", + "name": "PortalUITest", + "type": "microsoft.voiceservices/communicationsgateways", + "location": "centraluseuap", + "tags": { + "foo": "bar" + }, + "systemData": { + "createdBy": "robday@microsoft.com", + "createdByType": "User", + "createdAt": "2022-11-15T10:16:07.5828506Z", + "lastModifiedBy": "robday@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-11-15T10:16:07.5828506Z" + }, + "properties": { + "apiBridge": null, + "connectivity": "PublicAddress", + "codecs": [ + "PCMA" + ], + "platforms": [ + "OperatorConnect", + "TeamsPhoneMobile" + ], + "e911Type": "Standard", + "serviceLocations": [ + { + "name": "eastus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.1" + ], + "esrpAddresses": [] + } + }, + { + "name": "southcentralus", + "primaryRegionProperties": { + "operatorAddresses": [ + "2.2.2.2" + ], + "esrpAddresses": [] + } + } + ], + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/azcog-riftbreaker-billing-test/providers/Microsoft.VoiceServices/CommunicationsGateways/CanaryAzCoGMSFT", + "name": "CanaryAzCoGMSFT", + "type": "microsoft.voiceservices/communicationsgateways", + "location": "centraluseuap", + "tags": {}, + "systemData": { + "createdBy": "stegrant@microsoft.com", + "createdByType": "User", + "createdAt": "2022-11-17T18:07:01.4915968Z", + "lastModifiedBy": "stegrant@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-11-17T18:07:01.4915968Z" + }, + "properties": { + "apiBridge": null, + "connectivity": "PublicAddress", + "codecs": [ + "PCMA" + ], + "platforms": [ + "OperatorConnect" + ], + "e911Type": "Standard", + "serviceLocations": [ + { + "name": "centraluseuap", + "primaryRegionProperties": { + "operatorAddresses": [ + "198.51.100.1" + ], + "esrpAddresses": [] + } + }, + { + "name": "eastus", + "primaryRegionProperties": { + "operatorAddresses": [ + "198.51.100.2" + ], + "esrpAddresses": [] + } + } + ], + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/azcog-rp-test-rg/providers/Microsoft.VoiceServices/CommunicationsGateways/RKDQuickTestBeforePubPr", + "name": "RKDQuickTestBeforePubPr", + "type": "microsoft.voiceservices/communicationsgateways", + "location": "centraluseuap", + "tags": { + "nnm,m m,": "nm,b n nnbnn" + }, + "systemData": { + "createdBy": "robday@microsoft.com", + "createdByType": "User", + "createdAt": "2022-12-01T16:24:00.0655496Z", + "lastModifiedBy": "robday@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-12-01T16:24:00.0655496Z" + }, + "properties": { + "apiBridge": null, + "connectivity": "PublicAddress", + "codecs": [ + "PCMA", + "SILK_8", + "G722_2" + ], + "platforms": [ + "OperatorConnect", + "TeamsPhoneMobile" + ], + "e911Type": "DirectToEsrp", + "serviceLocations": [ + { + "name": "southcentralus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.1" + ], + "esrpAddresses": [ + "3.3.3.3" + ] + } + }, + { + "name": "southcentralusstage", + "primaryRegionProperties": { + "operatorAddresses": [ + "2.2.2.2" + ], + "esrpAddresses": [ + "4.4.4.4" + ] + } + } + ], + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/azcog-rp-test-rg/providers/Microsoft.VoiceServices/CommunicationsGateways/ExampleForUxReview", + "name": "ExampleForUxReview", + "type": "microsoft.voiceservices/communicationsgateways", + "location": "centraluseuap", + "tags": { + "tag1": "value1" + }, + "systemData": { + "createdBy": "robday@microsoft.com", + "createdByType": "User", + "createdAt": "2022-12-08T09:40:42.4356725Z", + "lastModifiedBy": "robday@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-12-08T09:40:42.4356725Z" + }, + "properties": { + "apiBridge": null, + "connectivity": "PublicAddress", + "codecs": [ + "PCMA", + "G722_2" + ], + "platforms": [ + "OperatorConnect", + "TeamsPhoneMobile" + ], + "e911Type": "DirectToEsrp", + "serviceLocations": [ + { + "name": "southcentralus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.1" + ], + "esrpAddresses": [ + "3.3.3.3" + ] + } + }, + { + "name": "northcentralusstage", + "primaryRegionProperties": { + "operatorAddresses": [ + "2.2.2.2" + ], + "esrpAddresses": [ + "4.4.4.4" + ] + } + } + ], + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/azcog-rp-test-rg/providers/Microsoft.VoiceServices/CommunicationsGateways/ContosoAzCoG1", + "name": "ContosoAzCoG1", + "type": "microsoft.voiceservices/communicationsgateways", + "location": "centraluseuap", + "tags": {}, + "systemData": { + "createdBy": "khanatiq@microsoft.com", + "createdByType": "User", + "createdAt": "2022-12-12T18:51:55.6930803Z", + "lastModifiedBy": "khanatiq@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-12-12T18:51:55.6930803Z" + }, + "properties": { + "apiBridge": null, + "connectivity": "PublicAddress", + "codecs": [ + "PCMA" + ], + "platforms": [ + "OperatorConnect" + ], + "e911Type": "Standard", + "serviceLocations": [ + { + "name": "centraluseuap", + "primaryRegionProperties": { + "operatorAddresses": [ + "198.51.100.1" + ], + "esrpAddresses": [] + } + }, + { + "name": "eastus", + "primaryRegionProperties": { + "operatorAddresses": [ + "198.51.100.2" + ], + "esrpAddresses": [] + } + } + ], + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/azcog-rp-test-rg/providers/Microsoft.VoiceServices/CommunicationsGateways/sebtest1", + "name": "sebtest1", + "type": "microsoft.voiceservices/communicationsgateways", + "location": "centraluseuap", + "tags": {}, + "systemData": { + "createdBy": "sebastianrex@microsoft.com", + "createdByType": "User", + "createdAt": "2023-01-12T12:18:14.8427839Z", + "lastModifiedBy": "sebastianrex@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-01-12T12:18:14.8427839Z" + }, + "properties": { + "apiBridge": null, + "autoGeneratedDomainNameLabel": "sebtest1.c4fmf4akb0hfdcep", + "connectivity": "PublicAddress", + "codecs": [ + "PCMA" + ], + "platforms": [ + "OperatorConnect" + ], + "e911Type": "Standard", + "serviceLocations": [ + { + "name": "eastus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.2.3.4" + ], + "esrpAddresses": [] + } + }, + { + "name": "eastus2", + "primaryRegionProperties": { + "operatorAddresses": [ + "2.3.4.5" + ], + "esrpAddresses": [] + } + } + ], + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/acctest6012/providers/microsoft.voiceservices/communicationsgateways/acctest4032", + "name": "acctest4032", + "type": "microsoft.voiceservices/communicationsgateways", + "location": "centraluseuap", + "systemData": { + "createdBy": "sebastianrex@microsoft.com", + "createdByType": "User", + "createdAt": "2023-01-18T13:54:36.2400065Z", + "lastModifiedBy": "sebastianrex@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-01-18T13:54:36.2400065Z" + }, + "properties": { + "apiBridge": null, + "autoGeneratedDomainNameLabelScope": "NoReuse", + "autoGeneratedDomainNameLabel": "acctest4032.cxfag6had4fbd0am", + "codecs": [ + "PCMA" + ], + "connectivity": "PublicAddress", + "e911Type": "Standard", + "platforms": [ + "OperatorConnect" + ], + "serviceLocations": [ + { + "name": "useast", + "primaryRegionProperties": { + "allowedMediaSourceAddressPrefixes": [ + "10.1.2.0/24" + ], + "allowedSignalingSourceAddressPrefixes": [ + "10.1.1.0/24" + ], + "operatorAddresses": [ + "198.51.100.1" + ] + } + }, + { + "name": "useast2", + "primaryRegionProperties": { + "allowedMediaSourceAddressPrefixes": [ + "10.2.2.0/24" + ], + "allowedSignalingSourceAddressPrefixes": [ + "10.2.1.0/24" + ], + "operatorAddresses": [ + "198.51.100.2" + ] + } + } + ], + "teamsVoicemailPilotNumber": "1234567890", + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/azcog-rp-test-rg/providers/Microsoft.VoiceServices/CommunicationsGateways/CarlosTest", + "name": "CarlosTest", + "type": "microsoft.voiceservices/communicationsgateways", + "location": "centraluseuap", + "tags": {}, + "systemData": { + "createdBy": "sebastianrex@microsoft.com", + "createdByType": "User", + "createdAt": "2023-01-26T12:42:47.8935474Z", + "lastModifiedBy": "sebastianrex@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-01-26T12:42:47.8935474Z" + }, + "properties": { + "apiBridge": null, + "autoGeneratedDomainNameLabelScope": "TenantReuse", + "autoGeneratedDomainNameLabel": "CarlosTest.ejgma6ghfkadgaha", + "connectivity": "PublicAddress", + "codecs": [ + "PCMU" + ], + "platforms": [ + "OperatorConnect" + ], + "e911Type": "Standard", + "serviceLocations": [ + { + "name": "eastus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.1" + ], + "esrpAddresses": [], + "allowedSignalingSourceAddressPrefixes": [ + "1.1.1.0/24" + ], + "allowedMediaSourceAddressPrefixes": [ + "1.1.1.0/24" + ] + } + }, + { + "name": "centralus", + "primaryRegionProperties": { + "operatorAddresses": [ + "2.2.2.2" + ], + "esrpAddresses": [], + "allowedSignalingSourceAddressPrefixes": [ + "2.2.2.0/24" + ], + "allowedMediaSourceAddressPrefixes": [ + "2.2.2.0/24" + ] + } + } + ], + "teamsVoicemailPilotNumber": "123456789", + "emergencyDialStrings": [ + "" + ], + "onPremMcpEnabled": false, + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/demo/providers/Microsoft.VoiceServices/CommunicationsGateways/DemoGateway", + "name": "DemoGateway", + "type": "microsoft.voiceservices/communicationsgateways", + "location": "centraluseuap", + "tags": {}, + "systemData": { + "createdBy": "sebastianrex@microsoft.com", + "createdByType": "User", + "createdAt": "2023-01-30T17:22:28.3628256Z", + "lastModifiedBy": "sebastianrex@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-01-30T17:22:28.3628256Z" + }, + "properties": { + "apiBridge": null, + "autoGeneratedDomainNameLabelScope": "TenantReuse", + "autoGeneratedDomainNameLabel": "DemoGateway.d5hzfpdqdfcuhxhe", + "connectivity": "PublicAddress", + "codecs": [ + "PCMA", + "G722", + "G722_2", + "SILK_8", + "SILK_16" + ], + "platforms": [ + "OperatorConnect", + "TeamsPhoneMobile" + ], + "e911Type": "Standard", + "serviceLocations": [ + { + "name": "eastus", + "primaryRegionProperties": { + "operatorAddresses": [ + "10.1.1.1" + ], + "esrpAddresses": [], + "allowedSignalingSourceAddressPrefixes": [ + "10.1.2.0/25" + ], + "allowedMediaSourceAddressPrefixes": [ + "10.1.2.128/25" + ] + } + }, + { + "name": "centralus", + "primaryRegionProperties": { + "operatorAddresses": [ + "10.2.1.1" + ], + "esrpAddresses": [], + "allowedSignalingSourceAddressPrefixes": [ + "10.2.2.0/25" + ], + "allowedMediaSourceAddressPrefixes": [ + "10.2.2.128/25" + ] + } + } + ], + "teamsVoicemailPilotNumber": "1234567890", + "emergencyDialStrings": [ + "911", + "933" + ], + "onPremMcpEnabled": false, + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest8062/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest2257", + "name": "SDKTest2257", + "type": "microsoft.voiceservices/communicationsgateways", + "location": "centraluseuap", + "tags": {}, + "systemData": { + "createdBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "createdByType": "Application", + "createdAt": "2023-02-20T14:02:26.4700907Z", + "lastModifiedBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "lastModifiedByType": "Application", + "lastModifiedAt": "2023-02-20T14:02:26.4700907Z" + }, + "properties": { + "apiBridge": null, + "autoGeneratedDomainNameLabel": "SDKTest2257.hvanawbtd0f8e7ay", + "serviceLocations": [ + { + "name": "eastus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.1" + ] + } + }, + { + "name": "westus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.2" + ] + } + } + ], + "connectivity": "PublicAddress", + "codecs": [ + "PCMA" + ], + "e911Type": "Standard", + "platforms": [ + "OperatorConnect" + ], + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/azcog-rp-test-rg/providers/Microsoft.VoiceServices/CommunicationsGateways/SebTestEast23", + "name": "SebTestEast23", + "type": "microsoft.voiceservices/communicationsgateways", + "location": "eastus2euap", + "systemData": { + "createdBy": "sebastianrex@microsoft.com", + "createdByType": "User", + "createdAt": "2023-02-03T12:05:37.1425032Z", + "lastModifiedBy": "sebastianrex@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-02-03T12:05:37.1425032Z" + }, + "properties": { + "apiBridge": null, + "autoGeneratedDomainNameLabelScope": "ResourceGroupReuse", + "autoGeneratedDomainNameLabel": "SebTestEast23.caddcfdyc0gfh7c0", + "serviceLocations": [ + { + "name": "useast", + "primaryRegionProperties": { + "operatorAddresses": [ + "198.51.100.1" + ], + "allowedSignalingSourceAddressPrefixes": [ + "1.2.3.0/24" + ], + "allowedMediaSourceAddressPrefixes": [ + "2.3.4.0/24" + ] + } + }, + { + "name": "uswest", + "primaryRegionProperties": { + "operatorAddresses": [ + "198.51.100.2" + ], + "allowedSignalingSourceAddressPrefixes": [ + "1.2.3.0/24" + ], + "allowedMediaSourceAddressPrefixes": [ + "9.3.4.0/24" + ] + } + } + ], + "connectivity": "PublicAddress", + "codecs": [ + "PCMU" + ], + "platforms": [ + "OperatorConnect" + ], + "e911Type": "Standard", + "teamsVoicemailPilotNumber": "123", + "emergencyDialStrings": [ + "123" + ], + "onPremMcpEnabled": true, + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/azcog-synthetics/providers/Microsoft.VoiceServices/CommunicationsGateways/SyntheticsTest1398013932", + "name": "SyntheticsTest1398013932", + "type": "microsoft.voiceservices/communicationsgateways", + "location": "eastus2euap", + "systemData": { + "createdBy": "51f65810-6a6c-4cae-987a-d7fd48ed1b2b", + "createdByType": "Application", + "createdAt": "2023-02-08T15:37:17.6895983Z", + "lastModifiedBy": "51f65810-6a6c-4cae-987a-d7fd48ed1b2b", + "lastModifiedByType": "Application", + "lastModifiedAt": "2023-02-08T15:37:17.6895983Z" + }, + "properties": { + "apiBridge": null, + "autoGeneratedDomainNameLabelScope": "NoReuse", + "autoGeneratedDomainNameLabel": "SyntheticsTest1398013932.cgb3e0bygafrg3hy", + "serviceLocations": [ + { + "name": "useast", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.2.3.4" + ], + "allowedSignalingSourceAddressPrefixes": [ + "1.2.3.0/24" + ], + "allowedMediaSourceAddressPrefixes": [ + "1.2.3.0/24" + ] + } + }, + { + "name": "useast2", + "primaryRegionProperties": { + "operatorAddresses": [ + "5.6.7.8" + ], + "allowedSignalingSourceAddressPrefixes": [ + "5.6.7.0/24" + ], + "allowedMediaSourceAddressPrefixes": [ + "5.6.7.0/24" + ] + } + } + ], + "connectivity": "PublicAddress", + "codecs": [ + "PCMA" + ], + "e911Type": "Standard", + "platforms": [ + "OperatorConnect" + ], + "teamsVoicemailPilotNumber": "1234567890", + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/azcog-synthetics/providers/Microsoft.VoiceServices/CommunicationsGateways/SyntheticsTest1747062790", + "name": "SyntheticsTest1747062790", + "type": "microsoft.voiceservices/communicationsgateways", + "location": "eastus2euap", + "systemData": { + "createdBy": "51f65810-6a6c-4cae-987a-d7fd48ed1b2b", + "createdByType": "Application", + "createdAt": "2023-02-08T16:06:58.9835795Z", + "lastModifiedBy": "51f65810-6a6c-4cae-987a-d7fd48ed1b2b", + "lastModifiedByType": "Application", + "lastModifiedAt": "2023-02-08T16:06:58.9835795Z" + }, + "properties": { + "apiBridge": null, + "autoGeneratedDomainNameLabelScope": "NoReuse", + "autoGeneratedDomainNameLabel": "SyntheticsTest1747062790.a4gkb8e0fpdpfhhc", + "serviceLocations": [ + { + "name": "useast", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.2.3.4" + ], + "allowedSignalingSourceAddressPrefixes": [ + "1.2.3.0/24" + ], + "allowedMediaSourceAddressPrefixes": [ + "1.2.3.0/24" + ] + } + }, + { + "name": "useast2", + "primaryRegionProperties": { + "operatorAddresses": [ + "5.6.7.8" + ], + "allowedSignalingSourceAddressPrefixes": [ + "5.6.7.0/24" + ], + "allowedMediaSourceAddressPrefixes": [ + "5.6.7.0/24" + ] + } + } + ], + "connectivity": "PublicAddress", + "codecs": [ + "PCMA" + ], + "e911Type": "Standard", + "platforms": [ + "OperatorConnect" + ], + "teamsVoicemailPilotNumber": "1234567890", + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/azcog-synthetics/providers/Microsoft.VoiceServices/CommunicationsGateways/SyntheticsTest1867681110", + "name": "SyntheticsTest1867681110", + "type": "microsoft.voiceservices/communicationsgateways", + "location": "eastus2euap", + "systemData": { + "lastModifiedBy": "51f65810-6a6c-4cae-987a-d7fd48ed1b2b", + "lastModifiedByType": "Application", + "lastModifiedAt": "2023-02-08T16:28:02.9840521Z" + }, + "properties": { + "apiBridge": null, + "autoGeneratedDomainNameLabelScope": "NoReuse", + "autoGeneratedDomainNameLabel": "SyntheticsTest1867681110.b4fjb2ggdxasbce9", + "serviceLocations": [ + { + "name": "useast", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.2.3.4" + ], + "allowedSignalingSourceAddressPrefixes": [ + "1.2.3.0/24" + ], + "allowedMediaSourceAddressPrefixes": [ + "1.2.3.0/24" + ] + } + }, + { + "name": "useast2", + "primaryRegionProperties": { + "operatorAddresses": [ + "5.6.7.8" + ], + "allowedSignalingSourceAddressPrefixes": [ + "5.6.7.0/24" + ], + "allowedMediaSourceAddressPrefixes": [ + "5.6.7.0/24" + ] + } + } + ], + "connectivity": "PublicAddress", + "codecs": [ + "PCMA" + ], + "e911Type": "Standard", + "platforms": [ + "OperatorConnect" + ], + "teamsVoicemailPilotNumber": "1234567890", + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/azcog-synthetics/providers/Microsoft.VoiceServices/CommunicationsGateways/SyntheticsTest146427992", + "name": "SyntheticsTest146427992", + "type": "microsoft.voiceservices/communicationsgateways", + "location": "eastus2euap", + "systemData": { + "createdBy": "51f65810-6a6c-4cae-987a-d7fd48ed1b2b", + "createdByType": "Application", + "createdAt": "2023-02-08T16:36:40.4814473Z", + "lastModifiedBy": "51f65810-6a6c-4cae-987a-d7fd48ed1b2b", + "lastModifiedByType": "Application", + "lastModifiedAt": "2023-02-08T16:36:40.4814473Z" + }, + "properties": { + "apiBridge": null, + "autoGeneratedDomainNameLabelScope": "NoReuse", + "autoGeneratedDomainNameLabel": "SyntheticsTest146427992.d8ffbrhyahaeepey", + "serviceLocations": [ + { + "name": "useast", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.2.3.4" + ], + "allowedSignalingSourceAddressPrefixes": [ + "1.2.3.0/24" + ], + "allowedMediaSourceAddressPrefixes": [ + "1.2.3.0/24" + ] + } + }, + { + "name": "useast2", + "primaryRegionProperties": { + "operatorAddresses": [ + "5.6.7.8" + ], + "allowedSignalingSourceAddressPrefixes": [ + "5.6.7.0/24" + ], + "allowedMediaSourceAddressPrefixes": [ + "5.6.7.0/24" + ] + } + } + ], + "connectivity": "PublicAddress", + "codecs": [ + "PCMA" + ], + "e911Type": "Standard", + "platforms": [ + "OperatorConnect" + ], + "teamsVoicemailPilotNumber": "1234567890", + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/azcog-synthetics-moved/providers/Microsoft.VoiceServices/CommunicationsGateways/SyntheticsTest397864946", + "name": "SyntheticsTest397864946", + "type": "microsoft.voiceservices/communicationsgateways", + "location": "eastus2euap", + "tags": { + "foo": "bar" + }, + "systemData": { + "createdBy": "51f65810-6a6c-4cae-987a-d7fd48ed1b2b", + "createdByType": "Application", + "createdAt": "2023-02-08T17:06:40.551241Z", + "lastModifiedBy": "51f65810-6a6c-4cae-987a-d7fd48ed1b2b", + "lastModifiedByType": "Application", + "lastModifiedAt": "2023-02-08T17:11:31.9430897Z" + }, + "properties": { + "apiBridge": null, + "autoGeneratedDomainNameLabelScope": "NoReuse", + "autoGeneratedDomainNameLabel": "SyntheticsTest397864946.ejcmdya4d3cmf9ff", + "serviceLocations": [ + { + "name": "useast", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.2.3.4" + ], + "allowedSignalingSourceAddressPrefixes": [ + "1.2.3.0/24" + ], + "allowedMediaSourceAddressPrefixes": [ + "1.2.3.0/24" + ] + } + }, + { + "name": "useast2", + "primaryRegionProperties": { + "operatorAddresses": [ + "5.6.7.8" + ], + "allowedSignalingSourceAddressPrefixes": [ + "5.6.7.0/24" + ], + "allowedMediaSourceAddressPrefixes": [ + "5.6.7.0/24" + ] + } + } + ], + "connectivity": "PublicAddress", + "codecs": [ + "PCMA" + ], + "e911Type": "Standard", + "platforms": [ + "OperatorConnect" + ], + "teamsVoicemailPilotNumber": "1234567890", + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/azcog-synthetics-moved/providers/Microsoft.VoiceServices/CommunicationsGateways/SyntheticsTest1203437628", + "name": "SyntheticsTest1203437628", + "type": "microsoft.voiceservices/communicationsgateways", + "location": "eastus2euap", + "tags": { + "foo": "bar" + }, + "systemData": { + "createdBy": "51f65810-6a6c-4cae-987a-d7fd48ed1b2b", + "createdByType": "Application", + "createdAt": "2023-02-08T17:36:57.6849905Z", + "lastModifiedBy": "51f65810-6a6c-4cae-987a-d7fd48ed1b2b", + "lastModifiedByType": "Application", + "lastModifiedAt": "2023-02-08T17:39:43.7440713Z" + }, + "properties": { + "apiBridge": null, + "autoGeneratedDomainNameLabelScope": "NoReuse", + "autoGeneratedDomainNameLabel": "SyntheticsTest1203437628.g2g7fmg0e5gqhrb6", + "serviceLocations": [ + { + "name": "useast", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.2.3.4" + ], + "allowedSignalingSourceAddressPrefixes": [ + "1.2.3.0/24" + ], + "allowedMediaSourceAddressPrefixes": [ + "1.2.3.0/24" + ] + } + }, + { + "name": "useast2", + "primaryRegionProperties": { + "operatorAddresses": [ + "5.6.7.8" + ], + "allowedSignalingSourceAddressPrefixes": [ + "5.6.7.0/24" + ], + "allowedMediaSourceAddressPrefixes": [ + "5.6.7.0/24" + ] + } + } + ], + "connectivity": "PublicAddress", + "codecs": [ + "PCMA" + ], + "e911Type": "Standard", + "platforms": [ + "OperatorConnect" + ], + "teamsVoicemailPilotNumber": "1234567890", + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/azcog-synthetics/providers/Microsoft.VoiceServices/CommunicationsGateways/SyntheticsTest2119597013", + "name": "SyntheticsTest2119597013", + "type": "microsoft.voiceservices/communicationsgateways", + "location": "eastus2euap", + "tags": { + "foo": "bar" + }, + "systemData": { + "createdBy": "51f65810-6a6c-4cae-987a-d7fd48ed1b2b", + "createdByType": "Application", + "createdAt": "2023-02-08T14:38:00.8603088Z", + "lastModifiedBy": "51f65810-6a6c-4cae-987a-d7fd48ed1b2b", + "lastModifiedByType": "Application", + "lastModifiedAt": "2023-02-08T14:41:22.6165572Z" + }, + "properties": { + "apiBridge": null, + "autoGeneratedDomainNameLabelScope": "NoReuse", + "autoGeneratedDomainNameLabel": "SyntheticsTest2119597013.g3ctecagfjabaxd6", + "serviceLocations": [ + { + "name": "useast", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.2.3.4" + ], + "allowedSignalingSourceAddressPrefixes": [ + "1.2.3.0/24" + ], + "allowedMediaSourceAddressPrefixes": [ + "1.2.3.0/24" + ] + } + }, + { + "name": "useast2", + "primaryRegionProperties": { + "operatorAddresses": [ + "5.6.7.8" + ], + "allowedSignalingSourceAddressPrefixes": [ + "5.6.7.0/24" + ], + "allowedMediaSourceAddressPrefixes": [ + "5.6.7.0/24" + ] + } + } + ], + "connectivity": "PublicAddress", + "codecs": [ + "PCMA" + ], + "e911Type": "Standard", + "platforms": [ + "OperatorConnect" + ], + "teamsVoicemailPilotNumber": "1234567890", + "provisioningState": "Succeeded" + } + } + ] + } + } + ], + "Variables": { + "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com/", + "RandomSeed": "538782541", + "RESOURCE_MANAGER_URL": "https://management.azure.com/", + "SUBSCRIPTION_ID": "d2b80745-3b5d-4357-84cc-ede5c5886c5a" + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/tests/SessionRecords/TestLineTests/CRUDL.json b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/tests/SessionRecords/TestLineTests/CRUDL.json new file mode 100644 index 0000000000000..583607189de49 --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/tests/SessionRecords/TestLineTests/CRUDL.json @@ -0,0 +1,970 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a?api-version=2021-01-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-c63e0e2ef68f8097075b4b6a86a973f7-e7c765c1acb0130f-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "6db2be20cd87175e93b96fbfb4b6d8a5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "418", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:00:42 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "bb6c923e-8875-40a7-a7ef-b6ab4ad35749", + "x-ms-ratelimit-remaining-subscription-reads": "11965", + "x-ms-request-id": "bb6c923e-8875-40a7-a7ef-b6ab4ad35749", + "x-ms-routing-request-id": "UKSOUTH:20230220T140042Z:bb6c923e-8875-40a7-a7ef-b6ab4ad35749" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "subscriptionId": "d2b80745-3b5d-4357-84cc-ede5c5886c5a", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "A4O VoiceServices RP Test Subscription", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourcegroups/SDKTest3476?api-version=**", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "28", + "Content-Type": "application/json", + "traceparent": "00-94ea32aee618f5e1924830a43b687419-31ba1d345fd81ca5-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "073a13c11a6808000b96001ccdcc2aef", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "centraluseuap" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "226", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:00:42 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f60ef57b-742d-4d53-be12-82122fdfb424", + "x-ms-ratelimit-remaining-subscription-writes": "1191", + "x-ms-request-id": "f60ef57b-742d-4d53-be12-82122fdfb424", + "x-ms-routing-request-id": "UKSOUTH:20230220T140043Z:f60ef57b-742d-4d53-be12-82122fdfb424" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest3476", + "name": "SDKTest3476", + "type": "Microsoft.Resources/resourceGroups", + "location": "centraluseuap", + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest3476/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest6906?api-version=2023-01-31", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "333", + "Content-Type": "application/json", + "traceparent": "00-9473f2bb2778658c351ac857e828f053-070c8b9282e915c7-00", + "User-Agent": "azsdk-net-ResourceManager.VoiceServices/1.0.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "68b36eb4332b76e302f7b9c361a92c09", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": {}, + "location": "centraluseuap", + "properties": { + "serviceLocations": [ + { + "name": "eastus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.1" + ] + } + }, + { + "name": "westus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.2" + ] + } + } + ], + "connectivity": "PublicAddress", + "codecs": [ + "PCMA" + ], + "e911Type": "Standard", + "platforms": [ + "OperatorConnect" + ] + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/8b9a18d3-4764-4f76-99ca-edf17d80bdac*5821AB4302B5B4F9629FDEBA18DE8E5B14C67EF28356A8208BBA20B8A3AB538B?api-version=2023-01-31", + "Cache-Control": "no-cache", + "Content-Length": "874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:00:44 GMT", + "ETag": "\u0022010018cd-0000-3400-0000-63f37d0c0000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:ee9ea8e7-bc71-4c0f-83ad-dc11c5b30732", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "68b36eb4332b76e302f7b9c361a92c09", + "x-ms-correlation-request-id": "4e419df7-e466-4a0f-b5d0-b1962c7f6ded", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1190", + "x-ms-request-id": "8b9a18d3-4764-4f76-99ca-edf17d80bdac", + "x-ms-routing-request-id": "UKSOUTH:20230220T140045Z:4e419df7-e466-4a0f-b5d0-b1962c7f6ded" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest3476/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest6906", + "name": "SDKTest6906", + "type": "microsoft.voiceservices/communicationsgateways", + "location": "centraluseuap", + "tags": {}, + "systemData": { + "createdBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "createdByType": "Application", + "createdAt": "2023-02-20T14:00:44.1158969Z", + "lastModifiedBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "lastModifiedByType": "Application", + "lastModifiedAt": "2023-02-20T14:00:44.1158969Z" + }, + "properties": { + "serviceLocations": [ + { + "name": "eastus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.1" + ] + } + }, + { + "name": "westus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.2" + ] + } + } + ], + "connectivity": "PublicAddress", + "codecs": [ + "PCMA" + ], + "e911Type": "Standard", + "platforms": [ + "OperatorConnect" + ], + "provisioningState": "Accepted" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/8b9a18d3-4764-4f76-99ca-edf17d80bdac*5821AB4302B5B4F9629FDEBA18DE8E5B14C67EF28356A8208BBA20B8A3AB538B?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-9473f2bb2778658c351ac857e828f053-456dd1d6db8c73ac-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "6a0199cf4af1e096579166234744a9ed", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "575", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:00:44 GMT", + "ETag": "\u00224100cde2-0000-3400-0000-63f37d0c0000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "6a0199cf4af1e096579166234744a9ed", + "x-ms-correlation-request-id": "947513aa-e685-4db4-86fe-4ab50e984ed6", + "x-ms-ratelimit-remaining-subscription-reads": "11964", + "x-ms-request-id": "8c605288-6cf0-404a-8f79-2dae66effd2e", + "x-ms-routing-request-id": "UKSOUTH:20230220T140045Z:947513aa-e685-4db4-86fe-4ab50e984ed6" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/8b9a18d3-4764-4f76-99ca-edf17d80bdac*5821AB4302B5B4F9629FDEBA18DE8E5B14C67EF28356A8208BBA20B8A3AB538B", + "name": "8b9a18d3-4764-4f76-99ca-edf17d80bdac*5821AB4302B5B4F9629FDEBA18DE8E5B14C67EF28356A8208BBA20B8A3AB538B", + "resourceId": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest3476/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest6906", + "status": "Accepted", + "startTime": "2023-02-20T14:00:44.2358776Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/8b9a18d3-4764-4f76-99ca-edf17d80bdac*5821AB4302B5B4F9629FDEBA18DE8E5B14C67EF28356A8208BBA20B8A3AB538B?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-9473f2bb2778658c351ac857e828f053-8b9407a063a91d8a-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "a4a412d45c11fd58ca0102affb867b3c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "575", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:00:45 GMT", + "ETag": "\u00224100cde2-0000-3400-0000-63f37d0c0000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "a4a412d45c11fd58ca0102affb867b3c", + "x-ms-correlation-request-id": "2e540e8b-2f1b-46d3-bd77-af5d1753adcb", + "x-ms-ratelimit-remaining-subscription-reads": "11963", + "x-ms-request-id": "9267ab3d-3dcb-44d2-b687-d57bfa441708", + "x-ms-routing-request-id": "UKSOUTH:20230220T140046Z:2e540e8b-2f1b-46d3-bd77-af5d1753adcb" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/8b9a18d3-4764-4f76-99ca-edf17d80bdac*5821AB4302B5B4F9629FDEBA18DE8E5B14C67EF28356A8208BBA20B8A3AB538B", + "name": "8b9a18d3-4764-4f76-99ca-edf17d80bdac*5821AB4302B5B4F9629FDEBA18DE8E5B14C67EF28356A8208BBA20B8A3AB538B", + "resourceId": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest3476/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest6906", + "status": "Accepted", + "startTime": "2023-02-20T14:00:44.2358776Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/8b9a18d3-4764-4f76-99ca-edf17d80bdac*5821AB4302B5B4F9629FDEBA18DE8E5B14C67EF28356A8208BBA20B8A3AB538B?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-9473f2bb2778658c351ac857e828f053-41e78f94626ed009-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "c7f4740ac1a7df1791393c3151806a20", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "575", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:00:47 GMT", + "ETag": "\u00224100cde2-0000-3400-0000-63f37d0c0000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "c7f4740ac1a7df1791393c3151806a20", + "x-ms-correlation-request-id": "b107e223-1997-489f-a0df-85506ead1029", + "x-ms-ratelimit-remaining-subscription-reads": "11962", + "x-ms-request-id": "68e86032-2ef6-4588-927d-ddaedea9430e", + "x-ms-routing-request-id": "UKSOUTH:20230220T140047Z:b107e223-1997-489f-a0df-85506ead1029" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/8b9a18d3-4764-4f76-99ca-edf17d80bdac*5821AB4302B5B4F9629FDEBA18DE8E5B14C67EF28356A8208BBA20B8A3AB538B", + "name": "8b9a18d3-4764-4f76-99ca-edf17d80bdac*5821AB4302B5B4F9629FDEBA18DE8E5B14C67EF28356A8208BBA20B8A3AB538B", + "resourceId": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest3476/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest6906", + "status": "Accepted", + "startTime": "2023-02-20T14:00:44.2358776Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/8b9a18d3-4764-4f76-99ca-edf17d80bdac*5821AB4302B5B4F9629FDEBA18DE8E5B14C67EF28356A8208BBA20B8A3AB538B?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-9473f2bb2778658c351ac857e828f053-1b631b3bc7cb4ada-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "e8884ad2482173334104a0ef47e6e4d1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "575", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:00:48 GMT", + "ETag": "\u00224100cde2-0000-3400-0000-63f37d0c0000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "e8884ad2482173334104a0ef47e6e4d1", + "x-ms-correlation-request-id": "9a666086-ef43-4947-8236-10b1dbfddd08", + "x-ms-ratelimit-remaining-subscription-reads": "11961", + "x-ms-request-id": "e3d30a3b-6e32-4dd4-83b2-4fc8f8c41459", + "x-ms-routing-request-id": "UKSOUTH:20230220T140048Z:9a666086-ef43-4947-8236-10b1dbfddd08" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/8b9a18d3-4764-4f76-99ca-edf17d80bdac*5821AB4302B5B4F9629FDEBA18DE8E5B14C67EF28356A8208BBA20B8A3AB538B", + "name": "8b9a18d3-4764-4f76-99ca-edf17d80bdac*5821AB4302B5B4F9629FDEBA18DE8E5B14C67EF28356A8208BBA20B8A3AB538B", + "resourceId": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest3476/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest6906", + "status": "Accepted", + "startTime": "2023-02-20T14:00:44.2358776Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/8b9a18d3-4764-4f76-99ca-edf17d80bdac*5821AB4302B5B4F9629FDEBA18DE8E5B14C67EF28356A8208BBA20B8A3AB538B?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-9473f2bb2778658c351ac857e828f053-c76688f6f0bea218-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "d2192916e2501345fbc413d82026ab49", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "575", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:00:50 GMT", + "ETag": "\u00224100cde2-0000-3400-0000-63f37d0c0000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "d2192916e2501345fbc413d82026ab49", + "x-ms-correlation-request-id": "dc18142a-d158-473f-bacf-ed41d4f182fc", + "x-ms-ratelimit-remaining-subscription-reads": "11960", + "x-ms-request-id": "29bbf4ec-9480-42b8-a8f4-976cdc5a3a88", + "x-ms-routing-request-id": "UKSOUTH:20230220T140050Z:dc18142a-d158-473f-bacf-ed41d4f182fc" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/8b9a18d3-4764-4f76-99ca-edf17d80bdac*5821AB4302B5B4F9629FDEBA18DE8E5B14C67EF28356A8208BBA20B8A3AB538B", + "name": "8b9a18d3-4764-4f76-99ca-edf17d80bdac*5821AB4302B5B4F9629FDEBA18DE8E5B14C67EF28356A8208BBA20B8A3AB538B", + "resourceId": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest3476/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest6906", + "status": "Accepted", + "startTime": "2023-02-20T14:00:44.2358776Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/8b9a18d3-4764-4f76-99ca-edf17d80bdac*5821AB4302B5B4F9629FDEBA18DE8E5B14C67EF28356A8208BBA20B8A3AB538B?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-9473f2bb2778658c351ac857e828f053-cf5779a77f130218-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "b1dde29793fdc21b408185a2202798ab", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "594", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:00:54 GMT", + "ETag": "\u00224100f8e2-0000-3400-0000-63f37d130000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "b1dde29793fdc21b408185a2202798ab", + "x-ms-correlation-request-id": "c5e79a01-69b5-4783-a48e-b64eb9983b83", + "x-ms-ratelimit-remaining-subscription-reads": "11959", + "x-ms-request-id": "6d4e2fbe-ecbe-436e-9d35-af812139d56b", + "x-ms-routing-request-id": "UKSOUTH:20230220T140054Z:c5e79a01-69b5-4783-a48e-b64eb9983b83" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/8b9a18d3-4764-4f76-99ca-edf17d80bdac*5821AB4302B5B4F9629FDEBA18DE8E5B14C67EF28356A8208BBA20B8A3AB538B", + "name": "8b9a18d3-4764-4f76-99ca-edf17d80bdac*5821AB4302B5B4F9629FDEBA18DE8E5B14C67EF28356A8208BBA20B8A3AB538B", + "resourceId": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest3476/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest6906", + "status": "Succeeded", + "startTime": "2023-02-20T14:00:44.2358776Z", + "properties": null + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest3476/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest6906?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-9473f2bb2778658c351ac857e828f053-08c9aff5d470bf6e-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "281b6a549767efd00475ed5d345b521b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "979", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:00:54 GMT", + "ETag": "\u0022010019cd-0000-3400-0000-63f37d120000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:ee9ea8e7-bc71-4c0f-83ad-dc11c5b30732", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "281b6a549767efd00475ed5d345b521b", + "x-ms-correlation-request-id": "a55c7373-e6e3-434a-871d-2f3634ec3803", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-reads": "11958", + "x-ms-request-id": "e7d42d1d-1793-4c76-84d4-43a1d12584b9", + "x-ms-routing-request-id": "UKSOUTH:20230220T140055Z:a55c7373-e6e3-434a-871d-2f3634ec3803" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest3476/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest6906", + "name": "SDKTest6906", + "type": "microsoft.voiceservices/communicationsgateways", + "location": "centraluseuap", + "tags": {}, + "systemData": { + "createdBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "createdByType": "Application", + "createdAt": "2023-02-20T14:00:44.1158969Z", + "lastModifiedBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "lastModifiedByType": "Application", + "lastModifiedAt": "2023-02-20T14:00:44.1158969Z" + }, + "properties": { + "status": "ChangePending", + "apiBridge": null, + "autoGeneratedDomainNameLabel": "SDKTest6906.efajgkc4aeajemeb", + "serviceLocations": [ + { + "name": "eastus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.1" + ] + } + }, + { + "name": "westus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.2" + ] + } + } + ], + "connectivity": "PublicAddress", + "codecs": [ + "PCMA" + ], + "e911Type": "Standard", + "platforms": [ + "OperatorConnect" + ], + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourcegroups/SDKTest9585?api-version=**", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "28", + "Content-Type": "application/json", + "traceparent": "00-55cfcee812b11e63573577fb124d191e-7baac2b924e9a4df-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "08655857d3320e835792cf5ca3f2d32c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "centraluseuap" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "226", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:00:55 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "eb8998ae-d6fb-44ab-b359-f2412e1bc34c", + "x-ms-ratelimit-remaining-subscription-writes": "1189", + "x-ms-request-id": "eb8998ae-d6fb-44ab-b359-f2412e1bc34c", + "x-ms-routing-request-id": "UKSOUTH:20230220T140055Z:eb8998ae-d6fb-44ab-b359-f2412e1bc34c" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest9585", + "name": "SDKTest9585", + "type": "Microsoft.Resources/resourceGroups", + "location": "centraluseuap", + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest3476/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest6906/testLines/SDKTest496?api-version=2023-01-31", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "101", + "Content-Type": "application/json", + "traceparent": "00-21bc817a1aa5275d3a4ddae85aed9c12-bc738f87e28f8db7-00", + "User-Agent": "azsdk-net-ResourceManager.VoiceServices/1.0.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "830bb58300e2ed12ad87a5bd8de42e6a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": {}, + "location": "centraluseuap", + "properties": { + "phoneNumber": "123456789", + "purpose": "Automated" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "673", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:00:57 GMT", + "ETag": "\u002209007d3b-0000-3400-0000-63f37d180000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:ee9ea8e7-bc71-4c0f-83ad-dc11c5b30732", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "830bb58300e2ed12ad87a5bd8de42e6a", + "x-ms-correlation-request-id": "dd481380-a160-4ac8-b08e-361da5f1dd6c", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1188", + "x-ms-request-id": "5638099e-082b-419d-a69e-9a2e8af7b625", + "x-ms-routing-request-id": "UKSOUTH:20230220T140057Z:dd481380-a160-4ac8-b08e-361da5f1dd6c" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest3476/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest6906/testLines/SDKTest496", + "name": "SDKTest496", + "type": "microsoft.voiceservices/communicationsgateways/testlines", + "location": "centraluseuap", + "tags": {}, + "systemData": { + "createdBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "createdByType": "Application", + "createdAt": "2023-02-20T14:00:56.4538519Z", + "lastModifiedBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "lastModifiedByType": "Application", + "lastModifiedAt": "2023-02-20T14:00:56.4538519Z" + }, + "properties": { + "phoneNumber": "123456789", + "purpose": "Automated", + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest3476/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest6906/testLines/SDKTest496?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-00b7088457fdfff6207ad97892b07851-a45642a9b329d5ff-00", + "User-Agent": "azsdk-net-ResourceManager.VoiceServices/1.0.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "9dd8cc30d50f5875521a854bdd50caad", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "673", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:00:57 GMT", + "ETag": "\u002209007d3b-0000-3400-0000-63f37d180000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "9dd8cc30d50f5875521a854bdd50caad", + "x-ms-correlation-request-id": "393a23b3-57a1-406d-bd85-5931ab5e393a", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-reads": "11957", + "x-ms-request-id": "c487332e-8dbc-40a4-8795-1d17d2793b5e", + "x-ms-routing-request-id": "UKSOUTH:20230220T140057Z:393a23b3-57a1-406d-bd85-5931ab5e393a" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest3476/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest6906/testLines/SDKTest496", + "name": "SDKTest496", + "type": "microsoft.voiceservices/communicationsgateways/testlines", + "location": "centraluseuap", + "tags": {}, + "systemData": { + "createdBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "createdByType": "Application", + "createdAt": "2023-02-20T14:00:56.4538519Z", + "lastModifiedBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "lastModifiedByType": "Application", + "lastModifiedAt": "2023-02-20T14:00:56.4538519Z" + }, + "properties": { + "phoneNumber": "123456789", + "purpose": "Automated", + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest3476/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest6906/testLines/SDKTest496?api-version=2023-01-31", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "95", + "Content-Type": "application/json", + "traceparent": "00-935bae89f6566683d529b9e73280819e-5fceea6ed20eecdb-00", + "User-Agent": "azsdk-net-ResourceManager.VoiceServices/1.0.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "2859f1a0f90360c51e7369d1fb115a4c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": {}, + "location": "centraluseuap", + "properties": { + "phoneNumber": "123", + "purpose": "Automated" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "667", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:00:57 GMT", + "ETag": "\u002209007e3b-0000-3400-0000-63f37d190000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:ee9ea8e7-bc71-4c0f-83ad-dc11c5b30732", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "2859f1a0f90360c51e7369d1fb115a4c", + "x-ms-correlation-request-id": "5fd9d79b-1bab-47e7-a2a3-53b3656bcea0", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1187", + "x-ms-request-id": "2bc0aeaa-e3a5-4307-a2c8-985ece677f9e", + "x-ms-routing-request-id": "UKSOUTH:20230220T140058Z:5fd9d79b-1bab-47e7-a2a3-53b3656bcea0" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest3476/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest6906/testLines/SDKTest496", + "name": "SDKTest496", + "type": "microsoft.voiceservices/communicationsgateways/testlines", + "location": "centraluseuap", + "tags": {}, + "systemData": { + "createdBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "createdByType": "Application", + "createdAt": "2023-02-20T14:00:56.4538519Z", + "lastModifiedBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "lastModifiedByType": "Application", + "lastModifiedAt": "2023-02-20T14:00:57.8302379Z" + }, + "properties": { + "phoneNumber": "123", + "purpose": "Automated", + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest3476/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest6906/testLines/SDKTest496?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-040909c61fc06f25572971b8b62ade71-94c7faa73a6f14c5-00", + "User-Agent": "azsdk-net-ResourceManager.VoiceServices/1.0.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "a26057465a07371607777e9b6ca35d41", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "667", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:00:57 GMT", + "ETag": "\u002209007e3b-0000-3400-0000-63f37d190000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "a26057465a07371607777e9b6ca35d41", + "x-ms-correlation-request-id": "64486e0f-3560-49c3-944b-30e4373abf48", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-reads": "11956", + "x-ms-request-id": "a9a8e0f3-450c-4218-bfa1-ad18adfdfb9d", + "x-ms-routing-request-id": "UKSOUTH:20230220T140058Z:64486e0f-3560-49c3-944b-30e4373abf48" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest3476/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest6906/testLines/SDKTest496", + "name": "SDKTest496", + "type": "microsoft.voiceservices/communicationsgateways/testlines", + "location": "centraluseuap", + "tags": {}, + "systemData": { + "createdBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "createdByType": "Application", + "createdAt": "2023-02-20T14:00:56.4538519Z", + "lastModifiedBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "lastModifiedByType": "Application", + "lastModifiedAt": "2023-02-20T14:00:57.8302379Z" + }, + "properties": { + "phoneNumber": "123", + "purpose": "Automated", + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest3476/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest6906/testLines/SDKTest496?api-version=2023-01-31", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "30", + "Content-Type": "application/json", + "traceparent": "00-0a0173ec83921e970927fd3044b782fb-e8e711694a50599f-00", + "User-Agent": "azsdk-net-ResourceManager.VoiceServices/1.0.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "514738c009c20fa195e5d48c193cc3d2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "tagKey": "tagValue" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "686", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:00:58 GMT", + "ETag": "\u002209007f3b-0000-3400-0000-63f37d1a0000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "514738c009c20fa195e5d48c193cc3d2", + "x-ms-correlation-request-id": "ecd691da-a056-4294-bb9f-1a64b27059b2", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1186", + "x-ms-request-id": "2c9c61a3-9066-4fff-8714-e413785e5d83", + "x-ms-routing-request-id": "UKSOUTH:20230220T140059Z:ecd691da-a056-4294-bb9f-1a64b27059b2" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest3476/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest6906/testLines/SDKTest496", + "name": "SDKTest496", + "type": "microsoft.voiceservices/communicationsgateways/testlines", + "location": "centraluseuap", + "tags": { + "tagKey": "tagValue" + }, + "systemData": { + "createdBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "createdByType": "Application", + "createdAt": "2023-02-20T14:00:56.4538519Z", + "lastModifiedBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "lastModifiedByType": "Application", + "lastModifiedAt": "2023-02-20T14:00:58.5020916Z" + }, + "properties": { + "phoneNumber": "123", + "purpose": "Automated", + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest3476/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest6906/testLines/SDKTest496?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-b162613ca1b1ccb3e7bbd646ca839155-fe5010f1a6dbc5a7-00", + "User-Agent": "azsdk-net-ResourceManager.VoiceServices/1.0.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "a38b9fb9b7b0aa447656b89412c008b0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "686", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:00:59 GMT", + "ETag": "\u002209007f3b-0000-3400-0000-63f37d1a0000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "a38b9fb9b7b0aa447656b89412c008b0", + "x-ms-correlation-request-id": "c4e15191-d261-43ea-83e0-493d979a91ea", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-reads": "11955", + "x-ms-request-id": "88bbbfc6-9dbd-4835-8491-6c8c086fccbc", + "x-ms-routing-request-id": "UKSOUTH:20230220T140059Z:c4e15191-d261-43ea-83e0-493d979a91ea" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest3476/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest6906/testLines/SDKTest496", + "name": "SDKTest496", + "type": "microsoft.voiceservices/communicationsgateways/testlines", + "location": "centraluseuap", + "tags": { + "tagKey": "tagValue" + }, + "systemData": { + "createdBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "createdByType": "Application", + "createdAt": "2023-02-20T14:00:56.4538519Z", + "lastModifiedBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "lastModifiedByType": "Application", + "lastModifiedAt": "2023-02-20T14:00:58.5020916Z" + }, + "properties": { + "phoneNumber": "123", + "purpose": "Automated", + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest3476/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest6906/testLines?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-dfce9d32364a301e46f96b2dd2ff2237-d0768fafceb60343-00", + "User-Agent": "azsdk-net-ResourceManager.VoiceServices/1.0.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "64c79e1a69043c06b6500c2285891dca", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "698", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:00:59 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c64cb7ea-637d-4214-997f-e088ba294ffb", + "x-ms-original-request-ids": [ + "502d25ec-5df6-4910-81f1-0370a4e8526c", + "5c731be4-3c55-46c5-a704-4806d47563ca", + "1ed28b69-cd6c-41a6-8d49-d459d9a1b8e8" + ], + "x-ms-ratelimit-remaining-subscription-reads": "11954", + "x-ms-request-id": "c64cb7ea-637d-4214-997f-e088ba294ffb", + "x-ms-routing-request-id": "UKSOUTH:20230220T140100Z:c64cb7ea-637d-4214-997f-e088ba294ffb" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest3476/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest6906/testLines/SDKTest496", + "name": "SDKTest496", + "type": "microsoft.voiceservices/communicationsgateways/testlines", + "location": "centraluseuap", + "tags": { + "tagKey": "tagValue" + }, + "systemData": { + "createdBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "createdByType": "Application", + "createdAt": "2023-02-20T14:00:56.4538519Z", + "lastModifiedBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "lastModifiedByType": "Application", + "lastModifiedAt": "2023-02-20T14:00:58.5020916Z" + }, + "properties": { + "phoneNumber": "123", + "purpose": "Automated", + "provisioningState": "Succeeded" + } + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest3476/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest6906/testLines/SDKTest496?api-version=2023-01-31", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-f3f1678dcd5279c621235e71bbbfa004-eea724c7d7032932-00", + "User-Agent": "azsdk-net-ResourceManager.VoiceServices/1.0.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "cce2acb4b9180990f49cdb6c510cfcd5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 20 Feb 2023 14:01:01 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:ee9ea8e7-bc71-4c0f-83ad-dc11c5b30732", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "cce2acb4b9180990f49cdb6c510cfcd5", + "x-ms-correlation-request-id": "55d05df9-b287-455e-bb85-3597a7791d80", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-deletes": "14997", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "x-ms-routing-request-id": "UKSOUTH:20230220T140101Z:55d05df9-b287-455e-bb85-3597a7791d80" + }, + "ResponseBody": null + } + ], + "Variables": { + "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com/", + "RandomSeed": "1568019387", + "RESOURCE_MANAGER_URL": "https://management.azure.com/", + "SUBSCRIPTION_ID": "d2b80745-3b5d-4357-84cc-ede5c5886c5a" + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/tests/SessionRecords/TestLineTests/CRUDLAsync.json b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/tests/SessionRecords/TestLineTests/CRUDLAsync.json new file mode 100644 index 0000000000000..38c9ff8738762 --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/tests/SessionRecords/TestLineTests/CRUDLAsync.json @@ -0,0 +1,969 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a?api-version=2021-01-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-737fc26646ed2efa707223a605ace20a-d1fb61d7610dcf97-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "832192bac8e88ef187edfc8b82def52b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "418", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:01:04 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "640b4a7e-85ec-432c-84eb-ca78058cf701", + "x-ms-ratelimit-remaining-subscription-reads": "11953", + "x-ms-request-id": "640b4a7e-85ec-432c-84eb-ca78058cf701", + "x-ms-routing-request-id": "UKSOUTH:20230220T140105Z:640b4a7e-85ec-432c-84eb-ca78058cf701" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "subscriptionId": "d2b80745-3b5d-4357-84cc-ede5c5886c5a", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": "A4O VoiceServices RP Test Subscription", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourcegroups/SDKTest8474?api-version=**", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "28", + "Content-Type": "application/json", + "traceparent": "00-ccc36c359d68619e83b9ccf614c585c6-6f452bc4a6e5a954-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "b738b395a4bec8d6e80c8208b5d5a97b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "centraluseuap" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "226", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:01:04 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "03ef84ef-522e-4070-9366-51683cfa1cf3", + "x-ms-ratelimit-remaining-subscription-writes": "1185", + "x-ms-request-id": "03ef84ef-522e-4070-9366-51683cfa1cf3", + "x-ms-routing-request-id": "UKSOUTH:20230220T140105Z:03ef84ef-522e-4070-9366-51683cfa1cf3" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest8474", + "name": "SDKTest8474", + "type": "Microsoft.Resources/resourceGroups", + "location": "centraluseuap", + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest8474/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest9782?api-version=2023-01-31", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "333", + "Content-Type": "application/json", + "traceparent": "00-2777ba0cd42ead29bd827b7d522db52e-0a62e2b688d4cfa0-00", + "User-Agent": "azsdk-net-ResourceManager.VoiceServices/1.0.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "5f4b1052839c42047d8751af89ac8d4e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": {}, + "location": "centraluseuap", + "properties": { + "serviceLocations": [ + { + "name": "eastus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.1" + ] + } + }, + { + "name": "westus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.2" + ] + } + } + ], + "connectivity": "PublicAddress", + "codecs": [ + "PCMA" + ], + "e911Type": "Standard", + "platforms": [ + "OperatorConnect" + ] + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/e622691e-07ce-4cbf-bb3a-7ef6f834278c*5531BB7CA5174934C2E356BFF7CDDC3C280B9899C50A8FE2E1F387709E99925B?api-version=2023-01-31", + "Cache-Control": "no-cache", + "Content-Length": "872", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:01:06 GMT", + "ETag": "\u002201001acd-0000-3400-0000-63f37d220000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:ee9ea8e7-bc71-4c0f-83ad-dc11c5b30732", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "5f4b1052839c42047d8751af89ac8d4e", + "x-ms-correlation-request-id": "9fb14fac-d6c0-40ad-b38b-43b11508afcf", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1184", + "x-ms-request-id": "e622691e-07ce-4cbf-bb3a-7ef6f834278c", + "x-ms-routing-request-id": "UKSOUTH:20230220T140107Z:9fb14fac-d6c0-40ad-b38b-43b11508afcf" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest8474/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest9782", + "name": "SDKTest9782", + "type": "microsoft.voiceservices/communicationsgateways", + "location": "centraluseuap", + "tags": {}, + "systemData": { + "createdBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "createdByType": "Application", + "createdAt": "2023-02-20T14:01:06.305352Z", + "lastModifiedBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "lastModifiedByType": "Application", + "lastModifiedAt": "2023-02-20T14:01:06.305352Z" + }, + "properties": { + "serviceLocations": [ + { + "name": "eastus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.1" + ] + } + }, + { + "name": "westus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.2" + ] + } + } + ], + "connectivity": "PublicAddress", + "codecs": [ + "PCMA" + ], + "e911Type": "Standard", + "platforms": [ + "OperatorConnect" + ], + "provisioningState": "Accepted" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/e622691e-07ce-4cbf-bb3a-7ef6f834278c*5531BB7CA5174934C2E356BFF7CDDC3C280B9899C50A8FE2E1F387709E99925B?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-2777ba0cd42ead29bd827b7d522db52e-5480a1910b3fa7b6-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "e48cb510b7df30f83474411d85185f5f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "575", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:01:06 GMT", + "ETag": "\u002241009ce3-0000-3400-0000-63f37d220000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "e48cb510b7df30f83474411d85185f5f", + "x-ms-correlation-request-id": "bf2cd723-fb33-45a1-8e25-4464ec911809", + "x-ms-ratelimit-remaining-subscription-reads": "11952", + "x-ms-request-id": "4835c1d3-008b-4019-b760-5a0cf6ce49de", + "x-ms-routing-request-id": "UKSOUTH:20230220T140107Z:bf2cd723-fb33-45a1-8e25-4464ec911809" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/e622691e-07ce-4cbf-bb3a-7ef6f834278c*5531BB7CA5174934C2E356BFF7CDDC3C280B9899C50A8FE2E1F387709E99925B", + "name": "e622691e-07ce-4cbf-bb3a-7ef6f834278c*5531BB7CA5174934C2E356BFF7CDDC3C280B9899C50A8FE2E1F387709E99925B", + "resourceId": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest8474/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest9782", + "status": "Accepted", + "startTime": "2023-02-20T14:01:06.4376541Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/e622691e-07ce-4cbf-bb3a-7ef6f834278c*5531BB7CA5174934C2E356BFF7CDDC3C280B9899C50A8FE2E1F387709E99925B?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-2777ba0cd42ead29bd827b7d522db52e-11fde758528461c6-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "8449b9f4b1a656e02301a49cc795bcaa", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "575", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:01:07 GMT", + "ETag": "\u002241009ce3-0000-3400-0000-63f37d220000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "8449b9f4b1a656e02301a49cc795bcaa", + "x-ms-correlation-request-id": "da11d911-bd40-45a8-a185-cdb96a8beba7", + "x-ms-ratelimit-remaining-subscription-reads": "11951", + "x-ms-request-id": "7e8f566d-1a7b-4bae-bac8-ebf4ae8c2fe8", + "x-ms-routing-request-id": "UKSOUTH:20230220T140108Z:da11d911-bd40-45a8-a185-cdb96a8beba7" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/e622691e-07ce-4cbf-bb3a-7ef6f834278c*5531BB7CA5174934C2E356BFF7CDDC3C280B9899C50A8FE2E1F387709E99925B", + "name": "e622691e-07ce-4cbf-bb3a-7ef6f834278c*5531BB7CA5174934C2E356BFF7CDDC3C280B9899C50A8FE2E1F387709E99925B", + "resourceId": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest8474/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest9782", + "status": "Accepted", + "startTime": "2023-02-20T14:01:06.4376541Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/e622691e-07ce-4cbf-bb3a-7ef6f834278c*5531BB7CA5174934C2E356BFF7CDDC3C280B9899C50A8FE2E1F387709E99925B?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-2777ba0cd42ead29bd827b7d522db52e-298c9dfe28e748aa-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "d39ffe6fa920b46e59d29677bad0c4a2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "575", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:01:08 GMT", + "ETag": "\u002241009ce3-0000-3400-0000-63f37d220000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "d39ffe6fa920b46e59d29677bad0c4a2", + "x-ms-correlation-request-id": "8d7f0972-50f8-4217-a596-9b5b0bb9f40f", + "x-ms-ratelimit-remaining-subscription-reads": "11950", + "x-ms-request-id": "fab3639a-191e-49ef-b1a8-1b7a113bfb43", + "x-ms-routing-request-id": "UKSOUTH:20230220T140109Z:8d7f0972-50f8-4217-a596-9b5b0bb9f40f" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/e622691e-07ce-4cbf-bb3a-7ef6f834278c*5531BB7CA5174934C2E356BFF7CDDC3C280B9899C50A8FE2E1F387709E99925B", + "name": "e622691e-07ce-4cbf-bb3a-7ef6f834278c*5531BB7CA5174934C2E356BFF7CDDC3C280B9899C50A8FE2E1F387709E99925B", + "resourceId": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest8474/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest9782", + "status": "Accepted", + "startTime": "2023-02-20T14:01:06.4376541Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/e622691e-07ce-4cbf-bb3a-7ef6f834278c*5531BB7CA5174934C2E356BFF7CDDC3C280B9899C50A8FE2E1F387709E99925B?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-2777ba0cd42ead29bd827b7d522db52e-b2ee742773fe5e45-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "cc795ca193895facd536c1de125c699e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "575", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:01:10 GMT", + "ETag": "\u002241009ce3-0000-3400-0000-63f37d220000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "cc795ca193895facd536c1de125c699e", + "x-ms-correlation-request-id": "aa27432d-6689-4acf-ba4b-5949af24663e", + "x-ms-ratelimit-remaining-subscription-reads": "11949", + "x-ms-request-id": "8505f294-dbc9-4f6d-8cb1-052839df31f9", + "x-ms-routing-request-id": "UKSOUTH:20230220T140110Z:aa27432d-6689-4acf-ba4b-5949af24663e" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/e622691e-07ce-4cbf-bb3a-7ef6f834278c*5531BB7CA5174934C2E356BFF7CDDC3C280B9899C50A8FE2E1F387709E99925B", + "name": "e622691e-07ce-4cbf-bb3a-7ef6f834278c*5531BB7CA5174934C2E356BFF7CDDC3C280B9899C50A8FE2E1F387709E99925B", + "resourceId": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest8474/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest9782", + "status": "Accepted", + "startTime": "2023-02-20T14:01:06.4376541Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/e622691e-07ce-4cbf-bb3a-7ef6f834278c*5531BB7CA5174934C2E356BFF7CDDC3C280B9899C50A8FE2E1F387709E99925B?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-2777ba0cd42ead29bd827b7d522db52e-5c3edcd2a5a2b3aa-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "86ad96b78b794b3e4a942ad31b699b53", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "575", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:01:12 GMT", + "ETag": "\u002241009ce3-0000-3400-0000-63f37d220000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "86ad96b78b794b3e4a942ad31b699b53", + "x-ms-correlation-request-id": "6a478cae-3f3d-41cb-b531-f3626e239a42", + "x-ms-ratelimit-remaining-subscription-reads": "11948", + "x-ms-request-id": "f783cd5f-9919-40d2-ad80-c283d5b8ec3c", + "x-ms-routing-request-id": "UKSOUTH:20230220T140112Z:6a478cae-3f3d-41cb-b531-f3626e239a42" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/e622691e-07ce-4cbf-bb3a-7ef6f834278c*5531BB7CA5174934C2E356BFF7CDDC3C280B9899C50A8FE2E1F387709E99925B", + "name": "e622691e-07ce-4cbf-bb3a-7ef6f834278c*5531BB7CA5174934C2E356BFF7CDDC3C280B9899C50A8FE2E1F387709E99925B", + "resourceId": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest8474/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest9782", + "status": "Accepted", + "startTime": "2023-02-20T14:01:06.4376541Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/e622691e-07ce-4cbf-bb3a-7ef6f834278c*5531BB7CA5174934C2E356BFF7CDDC3C280B9899C50A8FE2E1F387709E99925B?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-2777ba0cd42ead29bd827b7d522db52e-ab86a76d23b3560b-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "6afb013cf01bdb215240fde9e790a1fd", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "594", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:01:16 GMT", + "ETag": "\u00224100b3e3-0000-3400-0000-63f37d290000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "6afb013cf01bdb215240fde9e790a1fd", + "x-ms-correlation-request-id": "455a4777-33ef-4f6c-b120-46d69962cfa7", + "x-ms-ratelimit-remaining-subscription-reads": "11947", + "x-ms-request-id": "840cbe26-9b47-4c4a-a82e-7a992691d19d", + "x-ms-routing-request-id": "UKSOUTH:20230220T140117Z:455a4777-33ef-4f6c-b120-46d69962cfa7" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/providers/Microsoft.VoiceServices/locations/CENTRALUSEUAP/operationStatuses/e622691e-07ce-4cbf-bb3a-7ef6f834278c*5531BB7CA5174934C2E356BFF7CDDC3C280B9899C50A8FE2E1F387709E99925B", + "name": "e622691e-07ce-4cbf-bb3a-7ef6f834278c*5531BB7CA5174934C2E356BFF7CDDC3C280B9899C50A8FE2E1F387709E99925B", + "resourceId": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest8474/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest9782", + "status": "Succeeded", + "startTime": "2023-02-20T14:01:06.4376541Z", + "properties": null + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest8474/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest9782?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-2777ba0cd42ead29bd827b7d522db52e-4aed5996dda2d750-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "24bff7693e2215281d2d81f468d8446b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "977", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:01:16 GMT", + "ETag": "\u002201001ccd-0000-3400-0000-63f37d280000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:ee9ea8e7-bc71-4c0f-83ad-dc11c5b30732", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "24bff7693e2215281d2d81f468d8446b", + "x-ms-correlation-request-id": "c983692e-2b87-4002-9c9c-5c5548f454ca", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-reads": "11946", + "x-ms-request-id": "2207275a-aa6c-4a3f-ad75-ee8fb48b25d1", + "x-ms-routing-request-id": "UKSOUTH:20230220T140117Z:c983692e-2b87-4002-9c9c-5c5548f454ca" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest8474/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest9782", + "name": "SDKTest9782", + "type": "microsoft.voiceservices/communicationsgateways", + "location": "centraluseuap", + "tags": {}, + "systemData": { + "createdBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "createdByType": "Application", + "createdAt": "2023-02-20T14:01:06.305352Z", + "lastModifiedBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "lastModifiedByType": "Application", + "lastModifiedAt": "2023-02-20T14:01:06.305352Z" + }, + "properties": { + "status": "ChangePending", + "apiBridge": null, + "autoGeneratedDomainNameLabel": "SDKTest9782.hbakhmcjbsc6ezf5", + "serviceLocations": [ + { + "name": "eastus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.1" + ] + } + }, + { + "name": "westus", + "primaryRegionProperties": { + "operatorAddresses": [ + "1.1.1.2" + ] + } + } + ], + "connectivity": "PublicAddress", + "codecs": [ + "PCMA" + ], + "e911Type": "Standard", + "platforms": [ + "OperatorConnect" + ], + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourcegroups/SDKTest4862?api-version=**", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "28", + "Content-Type": "application/json", + "traceparent": "00-b1383da1644e301660c1663260af1bcf-2e4710f8294d7eaf-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "6010a26d83ff75c7d133398e5564baf2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "centraluseuap" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "226", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:01:17 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d82be0f7-5840-429a-b7e0-988a2bff08e1", + "x-ms-ratelimit-remaining-subscription-writes": "1183", + "x-ms-request-id": "d82be0f7-5840-429a-b7e0-988a2bff08e1", + "x-ms-routing-request-id": "UKSOUTH:20230220T140117Z:d82be0f7-5840-429a-b7e0-988a2bff08e1" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest4862", + "name": "SDKTest4862", + "type": "Microsoft.Resources/resourceGroups", + "location": "centraluseuap", + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest8474/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest9782/testLines/SDKTest5907?api-version=2023-01-31", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "101", + "Content-Type": "application/json", + "traceparent": "00-6cccca83ea186f1eeed56979bbc478ed-65d88ebccc95bf71-00", + "User-Agent": "azsdk-net-ResourceManager.VoiceServices/1.0.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "76a9236afd31e6d94ced6f2c737afc92", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": {}, + "location": "centraluseuap", + "properties": { + "phoneNumber": "123456789", + "purpose": "Automated" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "675", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:01:18 GMT", + "ETag": "\u00220900863b-0000-3400-0000-63f37d2e0000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:ee9ea8e7-bc71-4c0f-83ad-dc11c5b30732", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "76a9236afd31e6d94ced6f2c737afc92", + "x-ms-correlation-request-id": "200e6405-3f08-4cc2-9748-ec626472a10e", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1182", + "x-ms-request-id": "3f7c378d-4b9c-4405-9f54-04e703addf90", + "x-ms-routing-request-id": "UKSOUTH:20230220T140119Z:200e6405-3f08-4cc2-9748-ec626472a10e" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest8474/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest9782/testLines/SDKTest5907", + "name": "SDKTest5907", + "type": "microsoft.voiceservices/communicationsgateways/testlines", + "location": "centraluseuap", + "tags": {}, + "systemData": { + "createdBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "createdByType": "Application", + "createdAt": "2023-02-20T14:01:18.7504354Z", + "lastModifiedBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "lastModifiedByType": "Application", + "lastModifiedAt": "2023-02-20T14:01:18.7504354Z" + }, + "properties": { + "phoneNumber": "123456789", + "purpose": "Automated", + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest8474/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest9782/testLines/SDKTest5907?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-7dc291e7f6dcdedd75fe0b87f83c1c57-a7c72176bd167e7e-00", + "User-Agent": "azsdk-net-ResourceManager.VoiceServices/1.0.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "206e3b0124c2a43c3779b29557485eb9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "675", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:01:19 GMT", + "ETag": "\u00220900863b-0000-3400-0000-63f37d2e0000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "206e3b0124c2a43c3779b29557485eb9", + "x-ms-correlation-request-id": "b3c519a5-70d2-4cea-99f9-c391b9246b25", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-reads": "11945", + "x-ms-request-id": "e97ba389-b8d7-4c4a-b82b-0c09b1c946b1", + "x-ms-routing-request-id": "UKSOUTH:20230220T140119Z:b3c519a5-70d2-4cea-99f9-c391b9246b25" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest8474/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest9782/testLines/SDKTest5907", + "name": "SDKTest5907", + "type": "microsoft.voiceservices/communicationsgateways/testlines", + "location": "centraluseuap", + "tags": {}, + "systemData": { + "createdBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "createdByType": "Application", + "createdAt": "2023-02-20T14:01:18.7504354Z", + "lastModifiedBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "lastModifiedByType": "Application", + "lastModifiedAt": "2023-02-20T14:01:18.7504354Z" + }, + "properties": { + "phoneNumber": "123456789", + "purpose": "Automated", + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest8474/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest9782/testLines/SDKTest5907?api-version=2023-01-31", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "95", + "Content-Type": "application/json", + "traceparent": "00-2352e6522e24fbc65c79c023cb55c75e-4cb9a37d6d669d5a-00", + "User-Agent": "azsdk-net-ResourceManager.VoiceServices/1.0.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "e907fb3d61cc0090afb0c7e0f3e95f83", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": {}, + "location": "centraluseuap", + "properties": { + "phoneNumber": "123", + "purpose": "Automated" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "669", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:01:19 GMT", + "ETag": "\u00220900873b-0000-3400-0000-63f37d300000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:ee9ea8e7-bc71-4c0f-83ad-dc11c5b30732", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "e907fb3d61cc0090afb0c7e0f3e95f83", + "x-ms-correlation-request-id": "97559c5b-04fc-4422-b4c2-392cd5a168e7", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1181", + "x-ms-request-id": "5b8759b4-03fc-4235-a1c1-fc3f7734770f", + "x-ms-routing-request-id": "UKSOUTH:20230220T140120Z:97559c5b-04fc-4422-b4c2-392cd5a168e7" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest8474/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest9782/testLines/SDKTest5907", + "name": "SDKTest5907", + "type": "microsoft.voiceservices/communicationsgateways/testlines", + "location": "centraluseuap", + "tags": {}, + "systemData": { + "createdBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "createdByType": "Application", + "createdAt": "2023-02-20T14:01:18.7504354Z", + "lastModifiedBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "lastModifiedByType": "Application", + "lastModifiedAt": "2023-02-20T14:01:19.9223226Z" + }, + "properties": { + "phoneNumber": "123", + "purpose": "Automated", + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest8474/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest9782/testLines/SDKTest5907?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-c39a1e67d88d672f302ddaa88b48a0c9-b1d1d5750740987e-00", + "User-Agent": "azsdk-net-ResourceManager.VoiceServices/1.0.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "8bb151f1dfc19ffaaa6d70115d5bb14e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "669", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:01:19 GMT", + "ETag": "\u00220900873b-0000-3400-0000-63f37d300000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "8bb151f1dfc19ffaaa6d70115d5bb14e", + "x-ms-correlation-request-id": "5207a1c9-e6ff-4fa4-87b7-7e010c39cb25", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-reads": "11944", + "x-ms-request-id": "8d45dcec-b134-4e14-8fb8-a39286f2ca77", + "x-ms-routing-request-id": "UKSOUTH:20230220T140120Z:5207a1c9-e6ff-4fa4-87b7-7e010c39cb25" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest8474/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest9782/testLines/SDKTest5907", + "name": "SDKTest5907", + "type": "microsoft.voiceservices/communicationsgateways/testlines", + "location": "centraluseuap", + "tags": {}, + "systemData": { + "createdBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "createdByType": "Application", + "createdAt": "2023-02-20T14:01:18.7504354Z", + "lastModifiedBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "lastModifiedByType": "Application", + "lastModifiedAt": "2023-02-20T14:01:19.9223226Z" + }, + "properties": { + "phoneNumber": "123", + "purpose": "Automated", + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest8474/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest9782/testLines/SDKTest5907?api-version=2023-01-31", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "30", + "Content-Type": "application/json", + "traceparent": "00-8ec56403862f5ec0fb92f6568d85e2c5-a230b7badf86b1cf-00", + "User-Agent": "azsdk-net-ResourceManager.VoiceServices/1.0.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "af712e1a261d61ad2bdeac83086d48d0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": { + "tagKey": "tagValue" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "688", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:01:20 GMT", + "ETag": "\u00220900883b-0000-3400-0000-63f37d300000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "af712e1a261d61ad2bdeac83086d48d0", + "x-ms-correlation-request-id": "e34cc740-970b-4f96-8b86-06acd05c93ee", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1180", + "x-ms-request-id": "4dc44537-e4fc-489e-8fe7-39717b004270", + "x-ms-routing-request-id": "UKSOUTH:20230220T140121Z:e34cc740-970b-4f96-8b86-06acd05c93ee" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest8474/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest9782/testLines/SDKTest5907", + "name": "SDKTest5907", + "type": "microsoft.voiceservices/communicationsgateways/testlines", + "location": "centraluseuap", + "tags": { + "tagKey": "tagValue" + }, + "systemData": { + "createdBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "createdByType": "Application", + "createdAt": "2023-02-20T14:01:18.7504354Z", + "lastModifiedBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "lastModifiedByType": "Application", + "lastModifiedAt": "2023-02-20T14:01:20.5317059Z" + }, + "properties": { + "phoneNumber": "123", + "purpose": "Automated", + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest8474/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest9782/testLines/SDKTest5907?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-e07cd29ea33f109d205f24e0babf0926-4a4e9d15da58402e-00", + "User-Agent": "azsdk-net-ResourceManager.VoiceServices/1.0.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "a2ef600fd43744c2ad8b8d9e6bbecce1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "688", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:01:20 GMT", + "ETag": "\u00220900883b-0000-3400-0000-63f37d300000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "a2ef600fd43744c2ad8b8d9e6bbecce1", + "x-ms-correlation-request-id": "c3740d3a-7d74-4d17-832d-c0e840e05686", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-reads": "11943", + "x-ms-request-id": "f12aefe5-4286-446c-9c91-62c3c64e531b", + "x-ms-routing-request-id": "UKSOUTH:20230220T140121Z:c3740d3a-7d74-4d17-832d-c0e840e05686" + }, + "ResponseBody": { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest8474/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest9782/testLines/SDKTest5907", + "name": "SDKTest5907", + "type": "microsoft.voiceservices/communicationsgateways/testlines", + "location": "centraluseuap", + "tags": { + "tagKey": "tagValue" + }, + "systemData": { + "createdBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "createdByType": "Application", + "createdAt": "2023-02-20T14:01:18.7504354Z", + "lastModifiedBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "lastModifiedByType": "Application", + "lastModifiedAt": "2023-02-20T14:01:20.5317059Z" + }, + "properties": { + "phoneNumber": "123", + "purpose": "Automated", + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest8474/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest9782/testLines?api-version=2023-01-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.VoiceServices/1.0.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "88080a97f16dca49a3505fe23376973c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "700", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 20 Feb 2023 14:01:21 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "faa3b289-9f17-41ea-a837-0fd3eb64c28c", + "x-ms-original-request-ids": [ + "698cd3e0-5850-4eba-b29e-b4955373cbb1", + "65c23635-e301-41e5-8c2c-6cddb436e19b", + "4eb09bb5-141b-427a-82d2-84c1e37ecd30" + ], + "x-ms-ratelimit-remaining-subscription-reads": "11942", + "x-ms-request-id": "faa3b289-9f17-41ea-a837-0fd3eb64c28c", + "x-ms-routing-request-id": "UKSOUTH:20230220T140121Z:faa3b289-9f17-41ea-a837-0fd3eb64c28c" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest8474/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest9782/testLines/SDKTest5907", + "name": "SDKTest5907", + "type": "microsoft.voiceservices/communicationsgateways/testlines", + "location": "centraluseuap", + "tags": { + "tagKey": "tagValue" + }, + "systemData": { + "createdBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "createdByType": "Application", + "createdAt": "2023-02-20T14:01:18.7504354Z", + "lastModifiedBy": "b3fd61be-0e34-4d9e-90c3-0a5abd40a26a", + "lastModifiedByType": "Application", + "lastModifiedAt": "2023-02-20T14:01:20.5317059Z" + }, + "properties": { + "phoneNumber": "123", + "purpose": "Automated", + "provisioningState": "Succeeded" + } + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/d2b80745-3b5d-4357-84cc-ede5c5886c5a/resourceGroups/SDKTest8474/providers/Microsoft.VoiceServices/communicationsGateways/SDKTest9782/testLines/SDKTest5907?api-version=2023-01-31", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-7f65c60f686e2835323d9edab790787d-f204fcb1103ace50-00", + "User-Agent": "azsdk-net-ResourceManager.VoiceServices/1.0.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "fc01a0250f6c46166b2d0192990ef66d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 20 Feb 2023 14:01:22 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:ee9ea8e7-bc71-4c0f-83ad-dc11c5b30732", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "fc01a0250f6c46166b2d0192990ef66d", + "x-ms-correlation-request-id": "dea1e8e0-134e-4ffa-ae0b-10f0f1815160", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-deletes": "14996", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "x-ms-routing-request-id": "UKSOUTH:20230220T140123Z:dea1e8e0-134e-4ffa-ae0b-10f0f1815160" + }, + "ResponseBody": null + } + ], + "Variables": { + "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com/", + "RandomSeed": "538644521", + "RESOURCE_MANAGER_URL": "https://management.azure.com/", + "SUBSCRIPTION_ID": "d2b80745-3b5d-4357-84cc-ede5c5886c5a" + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/tests/Tests/CommunicationsGatewayCRUDTests.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/tests/Tests/CommunicationsGatewayCRUDTests.cs new file mode 100644 index 0000000000000..e57829d4033c1 --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/tests/Tests/CommunicationsGatewayCRUDTests.cs @@ -0,0 +1,70 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System.Collections.Generic; +using System.Threading.Tasks; +using Azure.Core.TestFramework; +using Azure.ResourceManager.VoiceServices.Models; +using NUnit.Framework; + +namespace Azure.ResourceManager.VoiceServices.Tests +{ + public class CommunicationsGatewayCRUDTests : VoiceServicesManagementTestBase + { + public CommunicationsGatewayCRUDTests(bool isAsync) + : base(isAsync)//, RecordedTestMode.Record) + { + } + + [RecordedTest] + public async Task CRUD() + { + var rg = await CreateResourceGroup(); + var resourceName = Recording.GenerateAssetName("SDKTest"); + + // PUT - Create + var createOperation = await rg.GetCommunicationsGateways().CreateOrUpdateAsync(WaitUntil.Completed, resourceName, GetDefaultCommunicationsGatewayData()); + Assert.IsTrue(createOperation.HasCompleted); + Assert.IsTrue(createOperation.HasValue); + + // GET - check it exists + var getResponse = await rg.GetCommunicationsGatewayAsync(resourceName); + var communicationsGateway = getResponse.Value; + Assert.IsNotNull(communicationsGateway); + + // PUT - Update + + // First, assert that we have only a single codec + CollectionAssert.AreEquivalent(new List { TeamsCodec.Pcma }, communicationsGateway.Data.Codecs); + + var updatedCommunicationsGatewayData = GetDefaultCommunicationsGatewayData(); + updatedCommunicationsGatewayData.Codecs.Add(TeamsCodec.Pcmu); + var putOperation = await rg.GetCommunicationsGateways().CreateOrUpdateAsync(WaitUntil.Completed, resourceName, updatedCommunicationsGatewayData); + Assert.IsTrue(putOperation.HasCompleted); + Assert.IsTrue(putOperation.HasValue); + + // GET - check the updated Codecs + getResponse = await rg.GetCommunicationsGatewayAsync(resourceName); + communicationsGateway = getResponse.Value; + Assert.IsNotNull(communicationsGateway); + CollectionAssert.AreEquivalent(new List { TeamsCodec.Pcma, TeamsCodec.Pcmu }, communicationsGateway.Data.Codecs); + + // PATCH + var patch = new CommunicationsGatewayPatch(); + patch.Tags.Add("tagKey", "tagValue"); + var patchOperation = await communicationsGateway.UpdateAsync(patch); + Assert.IsNotNull(patchOperation.Value); + + // GET - check the updated tags + getResponse = await rg.GetCommunicationsGatewayAsync(resourceName); + communicationsGateway = getResponse.Value; + Assert.IsNotNull(communicationsGateway); + Assert.AreEqual("tagValue", communicationsGateway.Data.Tags["tagKey"]); + + // Delete + var deleteOperation = await communicationsGateway.DeleteAsync(WaitUntil.Completed); + await deleteOperation.WaitForCompletionResponseAsync(); + Assert.IsTrue(deleteOperation.HasCompleted); + } + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/tests/Tests/ListCommunicationsGatewaysTests.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/tests/Tests/ListCommunicationsGatewaysTests.cs new file mode 100644 index 0000000000000..0d2535ee218e4 --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/tests/Tests/ListCommunicationsGatewaysTests.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System.Linq; +using System.Threading.Tasks; +using Azure.Core.TestFramework; +using Azure.ResourceManager.Resources; +using NUnit.Framework; + +namespace Azure.ResourceManager.VoiceServices.Tests.Tests +{ + [TestFixture] + public class ListCommunicationsGatewaysTests : VoiceServicesManagementTestBase + { + private ResourceGroupResource _rg; + + public ListCommunicationsGatewaysTests() : base(true/*, RecordedTestMode.Record*/) + { + } + + [SetUp] + public async Task CreateCommunicationsGateway() + { + _rg = await CreateResourceGroup(); + var resourceName = Recording.GenerateAssetName("SDKTest"); + var createOperation = await _rg.GetCommunicationsGateways().CreateOrUpdateAsync(WaitUntil.Completed, resourceName, GetDefaultCommunicationsGatewayData()); + await createOperation.WaitForCompletionAsync(); + } + + [TestCase, Order(1)] + public async Task TestListCommunicationsGatewaysAtSubscriptionLevel() + { + var communicationsGateways = Subscription.GetCommunicationsGatewaysAsync(); + var comminicationsGatewaysResult = await communicationsGateways.ToEnumerableAsync(); + + Assert.NotNull(comminicationsGatewaysResult); + Assert.IsTrue(comminicationsGatewaysResult.Count >= 1); + } + + [TestCase, Order(2)] + public async Task TestListCommunicationsGatewaysAtResourceGroupLevel() + { + var communicationsGateways = _rg.GetCommunicationsGateways().GetAllAsync(); + var communicationsGatewaysResult = await communicationsGateways.ToEnumerableAsync(); + + Assert.NotNull(communicationsGatewaysResult); + + // Filter the result for entries in our resource group + var filteredCommunicationsGateways = communicationsGatewaysResult.Where(cg => cg.Id.ResourceGroupName == _rg.Id.ResourceGroupName); + + // Check that we have at least one (we should at a minimum have the one we added in SetUp) + Assert.IsTrue(filteredCommunicationsGateways.Count() >= 1); + } + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/tests/Tests/TestLineTests.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/tests/Tests/TestLineTests.cs new file mode 100644 index 0000000000000..b0f8b9d962f65 --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/tests/Tests/TestLineTests.cs @@ -0,0 +1,88 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System.Threading.Tasks; +using Azure.Core.TestFramework; +using Azure.ResourceManager.VoiceServices.Models; +using NUnit.Framework; + +namespace Azure.ResourceManager.VoiceServices.Tests +{ + public class TestLineTests : VoiceServicesManagementTestBase + { + private CommunicationsGatewayResource _communicationsGateway; + + public TestLineTests(bool isAsync) + : base(isAsync)//, RecordedTestMode.Record) + { + } + + [SetUp] + public async Task Setup() + { + _communicationsGateway = await CreateDefaultCommunicationsGateway(); + } + + private static TestLineData DefaultTestLineData() + { + return new TestLineData(Location) + { + PhoneNumber = "123456789", + Purpose = TestLinePurpose.Automated + }; + } + + [RecordedTest] + public async Task CRUDL() + { + var rg = await CreateResourceGroup(); + var resourceName = Recording.GenerateAssetName("SDKTest"); + + // PUT - Create + var createOperation = await _communicationsGateway.GetTestLines().CreateOrUpdateAsync(WaitUntil.Completed, resourceName, DefaultTestLineData()); + Assert.IsTrue(createOperation.HasCompleted); + Assert.IsTrue(createOperation.HasValue); + + // GET - check it exists + var getResponse = await _communicationsGateway.GetTestLineAsync(resourceName); + var testLine = getResponse.Value; + Assert.IsNotNull(testLine); + + // PUT - Update + var updatedTestLineData = DefaultTestLineData(); + updatedTestLineData.PhoneNumber = "123"; + var putOperation = await _communicationsGateway.GetTestLines().CreateOrUpdateAsync(WaitUntil.Completed, resourceName, updatedTestLineData); + Assert.IsTrue(putOperation.HasCompleted); + Assert.IsTrue(putOperation.HasValue); + + // GET - check the updated testLine name + getResponse = await _communicationsGateway.GetTestLineAsync(resourceName); + testLine = getResponse.Value; + Assert.IsNotNull(testLine); + Assert.AreEqual("123", testLine.Data.PhoneNumber); + + // PATCH + var patch = new TestLinePatch(); + patch.Tags.Add("tagKey", "tagValue"); + var patchOperation = await testLine.UpdateAsync(patch); + Assert.IsNotNull(patchOperation.Value); + + // GET - check the updated tags + getResponse = await _communicationsGateway.GetTestLineAsync(resourceName); + testLine = getResponse.Value; + Assert.IsNotNull(testLine); + Assert.AreEqual("tagValue", testLine.Data.Tags["tagKey"]); + + // List TestLines by CommunicationsGateway + var testLines = _communicationsGateway.GetTestLines().GetAllAsync(); + var testLinesResult = await testLines.ToEnumerableAsync(); + Assert.NotNull(testLinesResult); + Assert.IsTrue(testLinesResult.Count >= 1); + + // Delete + var deleteOperation = await testLine.DeleteAsync(WaitUntil.Completed); + await deleteOperation.WaitForCompletionResponseAsync(); + Assert.IsTrue(deleteOperation.HasCompleted); + } + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/tests/VoiceServicesManagementTestBase.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/tests/VoiceServicesManagementTestBase.cs new file mode 100644 index 0000000000000..fd29519bac374 --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/tests/VoiceServicesManagementTestBase.cs @@ -0,0 +1,78 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System.Collections.Generic; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.TestFramework; +using Azure.ResourceManager.Resources; +using Azure.ResourceManager.TestFramework; +using Azure.ResourceManager.VoiceServices.Models; +using NUnit.Framework; + +namespace Azure.ResourceManager.VoiceServices.Tests +{ + public class VoiceServicesManagementTestBase : ManagementRecordedTestBase + { + public string SubscriptionId { get; set; } + public ArmClient ArmClient { get; private set; } + public ResourceGroupCollection ResourceGroupsOperations { get; set; } + public SubscriptionResource Subscription { get; set; } + + protected static AzureLocation Location = new AzureLocation("centraluseuap", "CentralUSEUAP"); + + protected VoiceServicesManagementTestBase(bool isAsync, RecordedTestMode mode) + : base(isAsync, mode) + { + } + + protected VoiceServicesManagementTestBase(bool isAsync) + : base(isAsync) + { + } + + [SetUp] + protected async Task InitializeClients() + { + ArmClient = GetArmClient(); + Subscription = await ArmClient.GetDefaultSubscriptionAsync(); + ResourceGroupsOperations = Subscription.GetResourceGroups(); + } + + [OneTimeTearDown] + public void Cleanup() + { + CleanupResourceGroups(); + } + + protected async Task CreateResourceGroup() + { + string rgName = Recording.GenerateAssetName("SDKTest"); + ResourceGroupData data = new ResourceGroupData(Location); + var lro = await Subscription.GetResourceGroups().CreateOrUpdateAsync(WaitUntil.Completed, rgName, data); + return lro.Value; + } + + protected static CommunicationsGatewayData GetDefaultCommunicationsGatewayData() + { + var gateway = new CommunicationsGatewayData(Location) + { + Connectivity = Connectivity.PublicAddress, + E911Type = E911Type.Standard, + }; + gateway.ServiceLocations.Add(new ServiceRegionProperties("eastus", new PrimaryRegionProperties(new List { "1.1.1.1" }))); + gateway.ServiceLocations.Add(new ServiceRegionProperties("westus", new PrimaryRegionProperties(new List { "1.1.1.2" }))); + gateway.Codecs.Add(TeamsCodec.Pcma); + gateway.Platforms.Add(CommunicationsPlatform.OperatorConnect); + return gateway; + } + + protected async Task CreateDefaultCommunicationsGateway() + { + var rg = await CreateResourceGroup(); + var resourceName = Recording.GenerateAssetName("SDKTest"); + var createOp = await rg.GetCommunicationsGateways().CreateOrUpdateAsync(WaitUntil.Completed, resourceName, GetDefaultCommunicationsGatewayData()); + return createOp.Value; + } + } +} diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/tests/VoiceServicesManagementTestEnvironment.cs b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/tests/VoiceServicesManagementTestEnvironment.cs new file mode 100644 index 0000000000000..90f594c2216ef --- /dev/null +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/tests/VoiceServicesManagementTestEnvironment.cs @@ -0,0 +1,11 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using Azure.Core.TestFramework; + +namespace Azure.ResourceManager.VoiceServices.Tests +{ + public class VoiceServicesManagementTestEnvironment : TestEnvironment + { + } +} diff --git a/sdk/voiceservices/ci.mgmt.yml b/sdk/voiceservices/ci.mgmt.yml new file mode 100644 index 0000000000000..59f3c6f32c79e --- /dev/null +++ b/sdk/voiceservices/ci.mgmt.yml @@ -0,0 +1,22 @@ +# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. + +trigger: none +pr: + branches: + include: + - main + - hotfix/* + - release/* + paths: + include: + - sdk/voiceservices/ci.mgmt.yml + - sdk/voiceservices/Azure.ResourceManager.VoiceServices/ + +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-client.yml + parameters: + ServiceDirectory: voiceservices + LimitForPullRequest: true + Artifacts: + - name: Azure.ResourceManager.VoiceServices + safeName: AzureResourceManagerVoiceServices From e05cf85acaf0a7f5967be771e5d92fb261df6a8d Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Tue, 21 Feb 2023 00:46:03 -0500 Subject: [PATCH 35/72] Increment version for notificationhubs releases (#34382) Increment package version after release of Azure.ResourceManager.NotificationHubs --- .../CHANGELOG.md | 12 +++++++++++- .../Azure.ResourceManager.NotificationHubs.csproj | 4 ++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/CHANGELOG.md b/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/CHANGELOG.md index f5920695e42d2..e9c4569eeb6b1 100644 --- a/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/CHANGELOG.md +++ b/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.1.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.0.1 (2023-02-20) ### Other Changes @@ -57,4 +67,4 @@ This package follows the [new Azure SDK guidelines](https://azure.github.io/azur This package is a Public Preview version, so expect incompatible changes in subsequent releases as we improve the product. To provide feedback, submit an issue in our [Azure SDK for .NET GitHub repo](https://github.com/Azure/azure-sdk-for-net/issues). -> NOTE: For more information about unified authentication, please refer to [Microsoft Azure Identity documentation for .NET](https://docs.microsoft.com//dotnet/api/overview/azure/identity-readme?view=azure-dotnet). \ No newline at end of file +> NOTE: For more information about unified authentication, please refer to [Microsoft Azure Identity documentation for .NET](https://docs.microsoft.com//dotnet/api/overview/azure/identity-readme?view=azure-dotnet). diff --git a/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Azure.ResourceManager.NotificationHubs.csproj b/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Azure.ResourceManager.NotificationHubs.csproj index 29a8ad3544ce3..9e5a136d32451 100644 --- a/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Azure.ResourceManager.NotificationHubs.csproj +++ b/sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/src/Azure.ResourceManager.NotificationHubs.csproj @@ -1,8 +1,8 @@ - 1.0.1 + 1.1.0-beta.1 - 1.0.0 + 1.0.1 Azure.ResourceManager.NotificationHubs Microsoft Azure Resource Manager client SDK for Azure resource provider Microsoft.NotificationHubs. azure;management;arm;resource manager;notificationhubs From 63d646e48a44ad9527122e20bd96454e440f340a Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Tue, 21 Feb 2023 01:35:50 -0500 Subject: [PATCH 36/72] Increment version for voiceservices releases (#34402) Increment package version after release of Azure.ResourceManager.VoiceServices --- .../Azure.ResourceManager.VoiceServices/CHANGELOG.md | 12 +++++++++++- .../src/Azure.ResourceManager.VoiceServices.csproj | 4 ++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/CHANGELOG.md b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/CHANGELOG.md index ba01b18053ec2..fba2f10ed0a5e 100644 --- a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/CHANGELOG.md +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.0.0-beta.2 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.0.0-beta.1 (2023-02-20) ### General New Features @@ -16,4 +26,4 @@ This package follows the [new Azure SDK guidelines](https://azure.github.io/azur This package is a Public Preview version, so expect incompatible changes in subsequent releases as we improve the product. To provide feedback, submit an issue in our [Azure SDK for .NET GitHub repo](https://github.com/Azure/azure-sdk-for-net/issues). -> NOTE: For more information about unified authentication, please refer to [Microsoft Azure Identity documentation for .NET](https://docs.microsoft.com//dotnet/api/overview/azure/identity-readme?view=azure-dotnet). \ No newline at end of file +> NOTE: For more information about unified authentication, please refer to [Microsoft Azure Identity documentation for .NET](https://docs.microsoft.com//dotnet/api/overview/azure/identity-readme?view=azure-dotnet). diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Azure.ResourceManager.VoiceServices.csproj b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Azure.ResourceManager.VoiceServices.csproj index 23cdcfbe14fbc..642ad882c3477 100644 --- a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Azure.ResourceManager.VoiceServices.csproj +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/src/Azure.ResourceManager.VoiceServices.csproj @@ -1,6 +1,6 @@ - + - 1.0.0-beta.1 + 1.0.0-beta.2 Azure.ResourceManager.VoiceServices Azure Resource Manager client SDK for Azure resource provider VoiceServices. azure;management;arm;resource manager;voiceservices From eaba27338d5735d8b5933f3926974c91c0f80320 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Tue, 21 Feb 2023 01:41:26 -0500 Subject: [PATCH 37/72] Increment version for storagecache releases (#34384) Increment package version after release of Azure.ResourceManager.StorageCache --- .../Azure.ResourceManager.StorageCache/CHANGELOG.md | 12 +++++++++++- .../src/Azure.ResourceManager.StorageCache.csproj | 4 ++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/sdk/storagecache/Azure.ResourceManager.StorageCache/CHANGELOG.md b/sdk/storagecache/Azure.ResourceManager.StorageCache/CHANGELOG.md index 785cfe539009b..ec3afe446e5b2 100644 --- a/sdk/storagecache/Azure.ResourceManager.StorageCache/CHANGELOG.md +++ b/sdk/storagecache/Azure.ResourceManager.StorageCache/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.1.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.0.1 (2023-02-20) ### Other Changes @@ -45,4 +55,4 @@ This package follows the [new Azure SDK guidelines](https://azure.github.io/azur This package is a Public Preview version, so expect incompatible changes in subsequent releases as we improve the product. To provide feedback, submit an issue in our [Azure SDK for .NET GitHub repo](https://github.com/Azure/azure-sdk-for-net/issues). -> NOTE: For more information about unified authentication, please refer to [Microsoft Azure Identity documentation for .NET](https://docs.microsoft.com//dotnet/api/overview/azure/identity-readme?view=azure-dotnet). \ No newline at end of file +> NOTE: For more information about unified authentication, please refer to [Microsoft Azure Identity documentation for .NET](https://docs.microsoft.com//dotnet/api/overview/azure/identity-readme?view=azure-dotnet). diff --git a/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Azure.ResourceManager.StorageCache.csproj b/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Azure.ResourceManager.StorageCache.csproj index 47df2fabb1b6f..6e2f79c09edfb 100644 --- a/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Azure.ResourceManager.StorageCache.csproj +++ b/sdk/storagecache/Azure.ResourceManager.StorageCache/src/Azure.ResourceManager.StorageCache.csproj @@ -1,8 +1,8 @@ - 1.0.1 + 1.1.0-beta.1 - 1.0.0 + 1.0.1 Azure.ResourceManager.StorageCache Microsoft Azure Resource Manager client SDK for Azure resource provider Microsoft.StorageCache. azure;management;arm;resource manager;storagecache From b451754182e762f481de5f59480d955296de7ef8 Mon Sep 17 00:00:00 2001 From: Yao Kou Date: Tue, 21 Feb 2023 17:09:17 +0800 Subject: [PATCH 38/72] [Automanage] Update code and prepare for the stable release (#34403) * polish automanage api * update api file * update changelog and fix some issues in the code * resolve comment * still update... * update readme * fix tests --- .../CHANGELOG.md | 17 +- .../README.md | 4 +- ...sourceManager.Automanage.netstandard2.0.cs | 298 +++++++++--------- ...ample_AutomanageBestPracticeCollection.cs} | 22 +- ... Sample_AutomanageBestPracticeResource.cs} | 14 +- ...tomanageConfigurationProfileCollection.cs} | 34 +- ...AutomanageConfigurationProfileResource.cs} | 44 +-- ...eConfigurationProfileVersionCollection.cs} | 66 ++-- ...ageConfigurationProfileVersionResource.cs} | 40 +-- ...onfigurationProfileAssignmentCollection.cs | 4 +- ...rConfigurationProfileAssignmentResource.cs | 4 +- ...onfigurationProfileAssignmentCollection.cs | 4 +- ...pConfigurationProfileAssignmentResource.cs | 4 +- ...onfigurationProfileAssignmentCollection.cs | 4 +- ...mConfigurationProfileAssignmentResource.cs | 4 +- .../Sample_ServicePrincipalResource.cs | 48 --- .../Sample_SubscriptionResourceExtensions.cs | 74 +++++ .../Azure.ResourceManager.Automanage.csproj | 2 +- ...cs => AutomanageBestPracticeCollection.cs} | 70 ++-- ...eData.cs => AutomanageBestPracticeData.cs} | 12 +- ...e.cs => AutomanageBestPracticeResource.cs} | 54 ++-- ...anageConfigurationProfileAssignmentData.cs | 4 +- ...onfigurationProfileAssignmentReportData.cs | 30 +- ...tomanageConfigurationProfileCollection.cs} | 86 ++--- ... => AutomanageConfigurationProfileData.cs} | 12 +- ...AutomanageConfigurationProfileResource.cs} | 154 ++++----- ...eConfigurationProfileVersionCollection.cs} | 90 +++--- ...ageConfigurationProfileVersionResource.cs} | 126 ++++---- .../Extensions/AutomanageExtensions.cs | 194 ++++++++---- .../ResourceGroupResourceExtensionClient.cs | 8 +- .../SubscriptionResourceExtensionClient.cs | 140 ++++++-- .../TenantResourceExtensionClient.cs | 8 +- ...tomanageBestPracticeData.Serialization.cs} | 6 +- ...tionProfileAssignmentData.Serialization.cs | 4 +- ...fileAssignmentProperties.Serialization.cs} | 24 +- ...nfigurationProfileAssignmentProperties.cs} | 16 +- ...ofileAssignmentReportData.Serialization.cs | 43 ++- ...ConfigurationProfileData.Serialization.cs} | 6 +- ...onfigurationProfilePatch.Serialization.cs} | 2 +- ...=> AutomanageConfigurationProfilePatch.cs} | 6 +- ...ageResourceUpdateDetails.Serialization.cs} | 2 +- ....cs => AutomanageResourceUpdateDetails.cs} | 6 +- ...nageServicePrincipalData.Serialization.cs} | 8 +- .../Models/AutomanageServicePrincipalData.cs | 39 +++ .../Models/BestPracticeList.Serialization.cs | 6 +- .../src/Generated/Models/BestPracticeList.cs | 6 +- ...entReportResourceDetails.Serialization.cs} | 6 +- ...ProfileAssignmentReportResourceDetails.cs} | 10 +- .../ConfigurationProfileList.Serialization.cs | 6 +- .../Models/ConfigurationProfileList.cs | 6 +- ...ervicePrincipalListResult.Serialization.cs | 7 +- .../Models/ServicePrincipalListResult.cs | 7 +- .../BestPracticesRestOperations.cs | 16 +- .../ConfigurationProfilesRestOperations.cs | 44 +-- ...igurationProfilesVersionsRestOperations.cs | 30 +- .../ServicePrincipalsRestOperations.cs | 16 +- .../src/Generated/ServicePrincipalData.cs | 39 --- .../src/Generated/ServicePrincipalResource.cs | 154 --------- .../src/autorest.md | 19 ++ .../tests/AutomanageTestBase.cs | 6 +- .../tests/Scenario/BestPracticeTestBase.cs | 2 +- .../tests/Scenario/BestPracticeTests.cs | 6 +- .../ConfigurationProfileAssignmentTests.cs | 2 +- .../Scenario/ConfigurationProfileTests.cs | 8 +- .../ConfigurationProfileVersionTestBase.cs | 6 +- .../ConfigurationProfileVersionTests.cs | 22 +- .../tests/Scenario/ReportTests.cs | 2 +- .../tests/Scenario/ServicePrincipalTests.cs | 24 +- .../CanGetServicePrincipal().json | 87 ++++- .../CanGetServicePrincipal()Async.json | 87 ++++- .../CanListServicePrincipal().json | 99 ++++++ .../CanListServicePrincipal()Async.json | 98 ++++++ 72 files changed, 1525 insertions(+), 1133 deletions(-) rename sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/{Sample_BestPracticeCollection.cs => Sample_AutomanageBestPracticeCollection.cs} (84%) rename sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/{Sample_BestPracticeResource.cs => Sample_AutomanageBestPracticeResource.cs} (68%) rename sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/{Sample_ConfigurationProfileCollection.cs => Sample_AutomanageConfigurationProfileCollection.cs} (83%) rename sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/{Sample_ConfigurationProfileResource.cs => Sample_AutomanageConfigurationProfileResource.cs} (71%) rename sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/{Sample_ConfigurationProfileVersionCollection.cs => Sample_AutomanageConfigurationProfileVersionCollection.cs} (62%) rename sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/{Sample_ConfigurationProfileVersionResource.cs => Sample_AutomanageConfigurationProfileVersionResource.cs} (64%) delete mode 100644 sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_ServicePrincipalResource.cs create mode 100644 sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs rename sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/{BestPracticeCollection.cs => AutomanageBestPracticeCollection.cs} (63%) rename sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/{BestPracticeData.cs => AutomanageBestPracticeData.cs} (77%) rename sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/{BestPracticeResource.cs => AutomanageBestPracticeResource.cs} (63%) rename sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/{ConfigurationProfileCollection.cs => AutomanageConfigurationProfileCollection.cs} (64%) rename sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/{ConfigurationProfileData.cs => AutomanageConfigurationProfileData.cs} (77%) rename sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/{ConfigurationProfileResource.cs => AutomanageConfigurationProfileResource.cs} (69%) rename sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/{ConfigurationProfileVersionCollection.cs => AutomanageConfigurationProfileVersionCollection.cs} (62%) rename sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/{ConfigurationProfileVersionResource.cs => AutomanageConfigurationProfileVersionResource.cs} (70%) rename sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/{BestPracticeData.Serialization.cs => AutomanageBestPracticeData.Serialization.cs} (90%) rename sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/{ConfigurationProfileAssignmentProperties.Serialization.cs => AutomanageConfigurationProfileAssignmentProperties.Serialization.cs} (51%) rename sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/{ConfigurationProfileAssignmentProperties.cs => AutomanageConfigurationProfileAssignmentProperties.cs} (60%) rename sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/{ConfigurationProfileData.Serialization.cs => AutomanageConfigurationProfileData.Serialization.cs} (91%) rename sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/{ConfigurationProfilePatch.Serialization.cs => AutomanageConfigurationProfilePatch.Serialization.cs} (92%) rename sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/{ConfigurationProfilePatch.cs => AutomanageConfigurationProfilePatch.cs} (89%) rename sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/{UpdateResource.Serialization.cs => AutomanageResourceUpdateDetails.Serialization.cs} (90%) rename sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/{UpdateResource.cs => AutomanageResourceUpdateDetails.cs} (72%) rename sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/{ServicePrincipalData.Serialization.cs => AutomanageServicePrincipalData.Serialization.cs} (88%) create mode 100644 sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageServicePrincipalData.cs rename sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/{ReportResource.Serialization.cs => ConfigurationProfileAssignmentReportResourceDetails.Serialization.cs} (85%) rename sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/{ReportResource.cs => ConfigurationProfileAssignmentReportResourceDetails.cs} (63%) delete mode 100644 sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/ServicePrincipalData.cs delete mode 100644 sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/ServicePrincipalResource.cs create mode 100644 sdk/automanage/Azure.ResourceManager.Automanage/tests/SessionRecords/ServicePrincipalTests/CanListServicePrincipal().json create mode 100644 sdk/automanage/Azure.ResourceManager.Automanage/tests/SessionRecords/ServicePrincipalTests/CanListServicePrincipal()Async.json diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/CHANGELOG.md b/sdk/automanage/Azure.ResourceManager.Automanage/CHANGELOG.md index cdc0ef36686d8..43541f1dd9035 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/CHANGELOG.md +++ b/sdk/automanage/Azure.ResourceManager.Automanage/CHANGELOG.md @@ -1,17 +1,28 @@ # Release History -## 1.0.0-beta.2 (Unreleased) +## 1.0.0 (2023-02-21) + +This is the first stable release of the Azure Automanage management library. ### Features Added +- Added the methods `GetServicePrincipals` and `GetServicePrincipal`. +- Added a new resource `AutomanageConfigurationProfileVersionResource`. + ### Breaking Changes - Temporarily removed two operations `ConfigurationProfileAssignments_List` and `ConfigurationProfileAssignments_ListBySubscription` - -### Bugs Fixed +- Polishing since last public beta release: +>1. Prepended `Automanage` prefix to all single / simple model names. +>2. Corrected the format of all `ResourceIdentifier` type properties / parameters. +>3. Corrected the suffix of `DateTimeOffset` properties / parameters. +>4. Optimized the name of some models and functions. ### Other Changes +- Upgraded dependent `Azure.Core` to `1.28.0`. +- Upgraded dependent `Azure.ResourceManager` to `1.4.0`. + ## 1.0.0-beta.1 (2022-09-14) ### Breaking Changes diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/README.md b/sdk/automanage/Azure.ResourceManager.Automanage/README.md index 9a6185ed74ce8..54f8df01b60e7 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/README.md +++ b/sdk/automanage/Azure.ResourceManager.Automanage/README.md @@ -19,7 +19,7 @@ This library follows the [new Azure SDK guidelines](https://azure.github.io/azur Install the Microsoft Azure Automanage management library for .NET with [NuGet](https://www.nuget.org/): ```dotnetcli -dotnet add package Azure.ResourceManager.Automanage --prerelease +dotnet add package Azure.ResourceManager.Automanage ``` ### Prerequisites @@ -83,4 +83,4 @@ more information see the [Code of Conduct FAQ][coc_faq] or contact [cg]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/resourcemanager/Azure.ResourceManager/docs/CONTRIBUTING.md [coc]: https://opensource.microsoft.com/codeofconduct/ -[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ \ No newline at end of file +[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/api/Azure.ResourceManager.Automanage.netstandard2.0.cs b/sdk/automanage/Azure.ResourceManager.Automanage/api/Azure.ResourceManager.Automanage.netstandard2.0.cs index eed9c97acba41..e033876dbc890 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/api/Azure.ResourceManager.Automanage.netstandard2.0.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/api/Azure.ResourceManager.Automanage.netstandard2.0.cs @@ -1,27 +1,144 @@ namespace Azure.ResourceManager.Automanage { + public partial class AutomanageBestPracticeCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected AutomanageBestPracticeCollection() { } + public virtual Azure.Response Exists(string bestPracticeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string bestPracticeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string bestPracticeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string bestPracticeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class AutomanageBestPracticeData : Azure.ResourceManager.Models.ResourceData + { + internal AutomanageBestPracticeData() { } + public System.BinaryData Configuration { get { throw null; } } + } + public partial class AutomanageBestPracticeResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected AutomanageBestPracticeResource() { } + public virtual Azure.ResourceManager.Automanage.AutomanageBestPracticeData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string bestPracticeName) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } public partial class AutomanageConfigurationProfileAssignmentData : Azure.ResourceManager.Models.ResourceData { public AutomanageConfigurationProfileAssignmentData() { } public string ManagedBy { get { throw null; } } - public Azure.ResourceManager.Automanage.Models.ConfigurationProfileAssignmentProperties Properties { get { throw null; } set { } } + public Azure.ResourceManager.Automanage.Models.AutomanageConfigurationProfileAssignmentProperties Properties { get { throw null; } set { } } } public partial class AutomanageConfigurationProfileAssignmentReportData : Azure.ResourceManager.Models.ResourceData { public AutomanageConfigurationProfileAssignmentReportData() { } public string ConfigurationProfile { get { throw null; } } + public string ConfigurationProfileAssignmentProcessingType { get { throw null; } } public System.TimeSpan? Duration { get { throw null; } } - public string EndTime { get { throw null; } set { } } + public System.DateTimeOffset? EndOn { get { throw null; } set { } } public Azure.ResponseError Error { get { throw null; } } - public string LastModifiedTime { get { throw null; } } + public System.DateTimeOffset? LastModifiedOn { get { throw null; } } public string ReportFormatVersion { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Resources { get { throw null; } } - public string StartTime { get { throw null; } set { } } + public System.Collections.Generic.IReadOnlyList Resources { get { throw null; } } + public System.DateTimeOffset? StartOn { get { throw null; } set { } } public string Status { get { throw null; } } - public string TypePropertiesType { get { throw null; } } + } + public partial class AutomanageConfigurationProfileCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected AutomanageConfigurationProfileCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string configurationProfileName, Azure.ResourceManager.Automanage.AutomanageConfigurationProfileData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string configurationProfileName, Azure.ResourceManager.Automanage.AutomanageConfigurationProfileData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string configurationProfileName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string configurationProfileName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string configurationProfileName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string configurationProfileName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class AutomanageConfigurationProfileData : Azure.ResourceManager.Models.TrackedResourceData + { + public AutomanageConfigurationProfileData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } + public System.BinaryData Configuration { get { throw null; } set { } } + } + public partial class AutomanageConfigurationProfileResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected AutomanageConfigurationProfileResource() { } + public virtual Azure.ResourceManager.Automanage.AutomanageConfigurationProfileData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string configurationProfileName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetAutomanageConfigurationProfileVersion(string versionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAutomanageConfigurationProfileVersionAsync(string versionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.Automanage.AutomanageConfigurationProfileVersionCollection GetAutomanageConfigurationProfileVersions() { throw null; } + public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Update(Azure.ResourceManager.Automanage.Models.AutomanageConfigurationProfilePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.Automanage.Models.AutomanageConfigurationProfilePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class AutomanageConfigurationProfileVersionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected AutomanageConfigurationProfileVersionCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string versionName, Azure.ResourceManager.Automanage.AutomanageConfigurationProfileData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string versionName, Azure.ResourceManager.Automanage.AutomanageConfigurationProfileData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string versionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string versionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string versionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string versionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class AutomanageConfigurationProfileVersionResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected AutomanageConfigurationProfileVersionResource() { } + public virtual Azure.ResourceManager.Automanage.AutomanageConfigurationProfileData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string configurationProfileName, string versionName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Automanage.AutomanageConfigurationProfileData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Automanage.AutomanageConfigurationProfileData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } public static partial class AutomanageExtensions { + public static Azure.Response GetAutomanageBestPractice(this Azure.ResourceManager.Resources.TenantResource tenantResource, string bestPracticeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetAutomanageBestPracticeAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, string bestPracticeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.Automanage.AutomanageBestPracticeResource GetAutomanageBestPracticeResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.Automanage.AutomanageBestPracticeCollection GetAutomanageBestPractices(this Azure.ResourceManager.Resources.TenantResource tenantResource) { throw null; } + public static Azure.Response GetAutomanageConfigurationProfile(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string configurationProfileName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetAutomanageConfigurationProfileAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string configurationProfileName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.Automanage.AutomanageConfigurationProfileResource GetAutomanageConfigurationProfileResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.Automanage.AutomanageConfigurationProfileCollection GetAutomanageConfigurationProfiles(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } + public static Azure.Pageable GetAutomanageConfigurationProfiles(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.AsyncPageable GetAutomanageConfigurationProfilesAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.Automanage.AutomanageConfigurationProfileVersionResource GetAutomanageConfigurationProfileVersionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.Response GetAutomanageHciClusterConfigurationProfileAssignment(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, string configurationProfileAssignmentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static System.Threading.Tasks.Task> GetAutomanageHciClusterConfigurationProfileAssignmentAsync(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, string configurationProfileAssignmentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.ResourceManager.Automanage.AutomanageHciClusterConfigurationProfileAssignmentReportResource GetAutomanageHciClusterConfigurationProfileAssignmentReportResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } @@ -37,19 +154,10 @@ public static partial class AutomanageExtensions public static Azure.ResourceManager.Automanage.AutomanageVmConfigurationProfileAssignmentReportResource GetAutomanageVmConfigurationProfileAssignmentReportResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.Automanage.AutomanageVmConfigurationProfileAssignmentResource GetAutomanageVmConfigurationProfileAssignmentResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.Automanage.AutomanageVmConfigurationProfileAssignmentCollection GetAutomanageVmConfigurationProfileAssignments(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope) { throw null; } - public static Azure.Response GetBestPractice(this Azure.ResourceManager.Resources.TenantResource tenantResource, string bestPracticeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GetBestPracticeAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, string bestPracticeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.Automanage.BestPracticeResource GetBestPracticeResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.Automanage.BestPracticeCollection GetBestPractices(this Azure.ResourceManager.Resources.TenantResource tenantResource) { throw null; } - public static Azure.Response GetConfigurationProfile(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string configurationProfileName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GetConfigurationProfileAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string configurationProfileName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.Automanage.ConfigurationProfileResource GetConfigurationProfileResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.Automanage.ConfigurationProfileCollection GetConfigurationProfiles(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } - public static Azure.Pageable GetConfigurationProfiles(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.AsyncPageable GetConfigurationProfilesAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.Automanage.ConfigurationProfileVersionResource GetConfigurationProfileVersionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.Automanage.ServicePrincipalResource GetServicePrincipal(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource) { throw null; } - public static Azure.ResourceManager.Automanage.ServicePrincipalResource GetServicePrincipalResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.Response GetServicePrincipal(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetServicePrincipalAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Pageable GetServicePrincipals(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.AsyncPageable GetServicePrincipalsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } public partial class AutomanageHciClusterConfigurationProfileAssignmentCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { @@ -216,152 +324,36 @@ protected AutomanageVmConfigurationProfileAssignmentResource() { } public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Automanage.AutomanageConfigurationProfileAssignmentData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Automanage.AutomanageConfigurationProfileAssignmentData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } - public partial class BestPracticeCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected BestPracticeCollection() { } - public virtual Azure.Response Exists(string bestPracticeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string bestPracticeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string bestPracticeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string bestPracticeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - public partial class BestPracticeData : Azure.ResourceManager.Models.ResourceData - { - internal BestPracticeData() { } - public System.BinaryData Configuration { get { throw null; } } - } - public partial class BestPracticeResource : Azure.ResourceManager.ArmResource - { - public static readonly Azure.Core.ResourceType ResourceType; - protected BestPracticeResource() { } - public virtual Azure.ResourceManager.Automanage.BestPracticeData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string bestPracticeName) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class ConfigurationProfileCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable +} +namespace Azure.ResourceManager.Automanage.Models +{ + public partial class AutomanageConfigurationProfileAssignmentProperties { - protected ConfigurationProfileCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string configurationProfileName, Azure.ResourceManager.Automanage.ConfigurationProfileData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string configurationProfileName, Azure.ResourceManager.Automanage.ConfigurationProfileData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string configurationProfileName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string configurationProfileName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string configurationProfileName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string configurationProfileName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + public AutomanageConfigurationProfileAssignmentProperties() { } + public Azure.Core.ResourceIdentifier ConfigurationProfile { get { throw null; } set { } } + public string Status { get { throw null; } } + public Azure.Core.ResourceIdentifier TargetId { get { throw null; } } } - public partial class ConfigurationProfileData : Azure.ResourceManager.Models.TrackedResourceData + public partial class AutomanageConfigurationProfilePatch : Azure.ResourceManager.Automanage.Models.AutomanageResourceUpdateDetails { - public ConfigurationProfileData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } + public AutomanageConfigurationProfilePatch() { } public System.BinaryData Configuration { get { throw null; } set { } } } - public partial class ConfigurationProfileResource : Azure.ResourceManager.ArmResource - { - public static readonly Azure.Core.ResourceType ResourceType; - protected ConfigurationProfileResource() { } - public virtual Azure.ResourceManager.Automanage.ConfigurationProfileData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string configurationProfileName) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetConfigurationProfileVersion(string versionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetConfigurationProfileVersionAsync(string versionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.Automanage.ConfigurationProfileVersionCollection GetConfigurationProfileVersions() { throw null; } - public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Update(Azure.ResourceManager.Automanage.Models.ConfigurationProfilePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.Automanage.Models.ConfigurationProfilePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class ConfigurationProfileVersionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + public partial class AutomanageResourceUpdateDetails { - protected ConfigurationProfileVersionCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string versionName, Azure.ResourceManager.Automanage.ConfigurationProfileData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string versionName, Azure.ResourceManager.Automanage.ConfigurationProfileData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string versionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string versionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string versionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string versionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - public partial class ConfigurationProfileVersionResource : Azure.ResourceManager.ArmResource - { - public static readonly Azure.Core.ResourceType ResourceType; - protected ConfigurationProfileVersionResource() { } - public virtual Azure.ResourceManager.Automanage.ConfigurationProfileData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string configurationProfileName, string versionName) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Automanage.ConfigurationProfileData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Automanage.ConfigurationProfileData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public AutomanageResourceUpdateDetails() { } + public System.Collections.Generic.IDictionary Tags { get { throw null; } } } - public partial class ServicePrincipalData : Azure.ResourceManager.Models.ResourceData + public partial class AutomanageServicePrincipalData : Azure.ResourceManager.Models.ResourceData { - public ServicePrincipalData() { } - public bool? AuthorizationSet { get { throw null; } } + public AutomanageServicePrincipalData() { } + public bool? IsAuthorizationSet { get { throw null; } } public string ServicePrincipalId { get { throw null; } } } - public partial class ServicePrincipalResource : Azure.ResourceManager.ArmResource + public partial class ConfigurationProfileAssignmentReportResourceDetails : Azure.ResourceManager.Models.ResourceData { - public static readonly Azure.Core.ResourceType ResourceType; - protected ServicePrincipalResource() { } - public virtual Azure.ResourceManager.Automanage.ServicePrincipalData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } -} -namespace Azure.ResourceManager.Automanage.Models -{ - public partial class ConfigurationProfileAssignmentProperties - { - public ConfigurationProfileAssignmentProperties() { } - public string ConfigurationProfile { get { throw null; } set { } } - public string Status { get { throw null; } } - public string TargetId { get { throw null; } } - } - public partial class ConfigurationProfilePatch : Azure.ResourceManager.Automanage.Models.UpdateResource - { - public ConfigurationProfilePatch() { } - public System.BinaryData Configuration { get { throw null; } set { } } - } - public partial class ReportResource : Azure.ResourceManager.Models.ResourceData - { - internal ReportResource() { } + internal ConfigurationProfileAssignmentReportResourceDetails() { } public Azure.ResponseError Error { get { throw null; } } public string Status { get { throw null; } } } - public partial class UpdateResource - { - public UpdateResource() { } - public System.Collections.Generic.IDictionary Tags { get { throw null; } } - } } diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_BestPracticeCollection.cs b/sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_AutomanageBestPracticeCollection.cs similarity index 84% rename from sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_BestPracticeCollection.cs rename to sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_AutomanageBestPracticeCollection.cs index d6c23245e259c..76d72f401e509 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_BestPracticeCollection.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_AutomanageBestPracticeCollection.cs @@ -14,7 +14,7 @@ namespace Azure.ResourceManager.Automanage.Samples { - public partial class Sample_BestPracticeCollection + public partial class Sample_AutomanageBestPracticeCollection { // Get an Automanage best practice [NUnit.Framework.Test] @@ -33,16 +33,16 @@ public async Task Get_GetAnAutomanageBestPractice() // for more information of creating TenantResource, please refer to the document of TenantResource var tenantResource = client.GetTenants().GetAllAsync().GetAsyncEnumerator().Current; - // get the collection of this BestPracticeResource - BestPracticeCollection collection = tenantResource.GetBestPractices(); + // get the collection of this AutomanageBestPracticeResource + AutomanageBestPracticeCollection collection = tenantResource.GetAutomanageBestPractices(); // invoke the operation string bestPracticeName = "azureBestPracticesProduction"; - BestPracticeResource result = await collection.GetAsync(bestPracticeName); + AutomanageBestPracticeResource result = await collection.GetAsync(bestPracticeName); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - BestPracticeData resourceData = result.Data; + AutomanageBestPracticeData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -64,8 +64,8 @@ public async Task Exists_GetAnAutomanageBestPractice() // for more information of creating TenantResource, please refer to the document of TenantResource var tenantResource = client.GetTenants().GetAllAsync().GetAsyncEnumerator().Current; - // get the collection of this BestPracticeResource - BestPracticeCollection collection = tenantResource.GetBestPractices(); + // get the collection of this AutomanageBestPracticeResource + AutomanageBestPracticeCollection collection = tenantResource.GetAutomanageBestPractices(); // invoke the operation string bestPracticeName = "azureBestPracticesProduction"; @@ -91,15 +91,15 @@ public async Task GetAll_ListAutomanageBestPractices() // for more information of creating TenantResource, please refer to the document of TenantResource var tenantResource = client.GetTenants().GetAllAsync().GetAsyncEnumerator().Current; - // get the collection of this BestPracticeResource - BestPracticeCollection collection = tenantResource.GetBestPractices(); + // get the collection of this AutomanageBestPracticeResource + AutomanageBestPracticeCollection collection = tenantResource.GetAutomanageBestPractices(); // invoke the operation and iterate over the result - await foreach (BestPracticeResource item in collection.GetAllAsync()) + await foreach (AutomanageBestPracticeResource item in collection.GetAllAsync()) { // the variable item is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - BestPracticeData resourceData = item.Data; + AutomanageBestPracticeData resourceData = item.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_BestPracticeResource.cs b/sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_AutomanageBestPracticeResource.cs similarity index 68% rename from sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_BestPracticeResource.cs rename to sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_AutomanageBestPracticeResource.cs index 8f0010bd35550..a7cde87aa07e4 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_BestPracticeResource.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_AutomanageBestPracticeResource.cs @@ -14,7 +14,7 @@ namespace Azure.ResourceManager.Automanage.Samples { - public partial class Sample_BestPracticeResource + public partial class Sample_AutomanageBestPracticeResource { // Get an Automanage best practice [NUnit.Framework.Test] @@ -29,18 +29,18 @@ public async Task Get_GetAnAutomanageBestPractice() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this BestPracticeResource created on azure - // for more information of creating BestPracticeResource, please refer to the document of BestPracticeResource + // this example assumes you already have this AutomanageBestPracticeResource created on azure + // for more information of creating AutomanageBestPracticeResource, please refer to the document of AutomanageBestPracticeResource string bestPracticeName = "azureBestPracticesProduction"; - ResourceIdentifier bestPracticeResourceId = BestPracticeResource.CreateResourceIdentifier(bestPracticeName); - BestPracticeResource bestPractice = client.GetBestPracticeResource(bestPracticeResourceId); + ResourceIdentifier automanageBestPracticeResourceId = AutomanageBestPracticeResource.CreateResourceIdentifier(bestPracticeName); + AutomanageBestPracticeResource automanageBestPractice = client.GetAutomanageBestPracticeResource(automanageBestPracticeResourceId); // invoke the operation - BestPracticeResource result = await bestPractice.GetAsync(); + AutomanageBestPracticeResource result = await automanageBestPractice.GetAsync(); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - BestPracticeData resourceData = result.Data; + AutomanageBestPracticeData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_ConfigurationProfileCollection.cs b/sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_AutomanageConfigurationProfileCollection.cs similarity index 83% rename from sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_ConfigurationProfileCollection.cs rename to sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_AutomanageConfigurationProfileCollection.cs index 501c10ccb34ed..616b58afe6250 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_ConfigurationProfileCollection.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_AutomanageConfigurationProfileCollection.cs @@ -17,7 +17,7 @@ namespace Azure.ResourceManager.Automanage.Samples { - public partial class Sample_ConfigurationProfileCollection + public partial class Sample_AutomanageConfigurationProfileCollection { // Create or update configuration profile [NUnit.Framework.Test] @@ -39,12 +39,12 @@ public async Task CreateOrUpdate_CreateOrUpdateConfigurationProfile() ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - // get the collection of this ConfigurationProfileResource - ConfigurationProfileCollection collection = resourceGroupResource.GetConfigurationProfiles(); + // get the collection of this AutomanageConfigurationProfileResource + AutomanageConfigurationProfileCollection collection = resourceGroupResource.GetAutomanageConfigurationProfiles(); // invoke the operation string configurationProfileName = "customConfigurationProfile"; - ConfigurationProfileData data = new ConfigurationProfileData(new AzureLocation("East US")) + AutomanageConfigurationProfileData data = new AutomanageConfigurationProfileData(new AzureLocation("East US")) { Configuration = BinaryData.FromObjectAsJson(new Dictionary() { @@ -63,12 +63,12 @@ public async Task CreateOrUpdate_CreateOrUpdateConfigurationProfile() ["Organization"] = "Administration", }, }; - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, configurationProfileName, data); - ConfigurationProfileResource result = lro.Value; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, configurationProfileName, data); + AutomanageConfigurationProfileResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - ConfigurationProfileData resourceData = result.Data; + AutomanageConfigurationProfileData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -93,16 +93,16 @@ public async Task Get_GetAConfigurationProfile() ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - // get the collection of this ConfigurationProfileResource - ConfigurationProfileCollection collection = resourceGroupResource.GetConfigurationProfiles(); + // get the collection of this AutomanageConfigurationProfileResource + AutomanageConfigurationProfileCollection collection = resourceGroupResource.GetAutomanageConfigurationProfiles(); // invoke the operation string configurationProfileName = "customConfigurationProfile"; - ConfigurationProfileResource result = await collection.GetAsync(configurationProfileName); + AutomanageConfigurationProfileResource result = await collection.GetAsync(configurationProfileName); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - ConfigurationProfileData resourceData = result.Data; + AutomanageConfigurationProfileData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -127,8 +127,8 @@ public async Task Exists_GetAConfigurationProfile() ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - // get the collection of this ConfigurationProfileResource - ConfigurationProfileCollection collection = resourceGroupResource.GetConfigurationProfiles(); + // get the collection of this AutomanageConfigurationProfileResource + AutomanageConfigurationProfileCollection collection = resourceGroupResource.GetAutomanageConfigurationProfiles(); // invoke the operation string configurationProfileName = "customConfigurationProfile"; @@ -157,15 +157,15 @@ public async Task GetAll_ListConfigurationProfilesByResourceGroup() ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - // get the collection of this ConfigurationProfileResource - ConfigurationProfileCollection collection = resourceGroupResource.GetConfigurationProfiles(); + // get the collection of this AutomanageConfigurationProfileResource + AutomanageConfigurationProfileCollection collection = resourceGroupResource.GetAutomanageConfigurationProfiles(); // invoke the operation and iterate over the result - await foreach (ConfigurationProfileResource item in collection.GetAllAsync()) + await foreach (AutomanageConfigurationProfileResource item in collection.GetAllAsync()) { // the variable item is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - ConfigurationProfileData resourceData = item.Data; + AutomanageConfigurationProfileData resourceData = item.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_ConfigurationProfileResource.cs b/sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_AutomanageConfigurationProfileResource.cs similarity index 71% rename from sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_ConfigurationProfileResource.cs rename to sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_AutomanageConfigurationProfileResource.cs index 104fdf1e2fb2c..85a53f664087d 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_ConfigurationProfileResource.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_AutomanageConfigurationProfileResource.cs @@ -18,7 +18,7 @@ namespace Azure.ResourceManager.Automanage.Samples { - public partial class Sample_ConfigurationProfileResource + public partial class Sample_AutomanageConfigurationProfileResource { // Get a configuration profile [NUnit.Framework.Test] @@ -33,20 +33,20 @@ public async Task Get_GetAConfigurationProfile() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this ConfigurationProfileResource created on azure - // for more information of creating ConfigurationProfileResource, please refer to the document of ConfigurationProfileResource + // this example assumes you already have this AutomanageConfigurationProfileResource created on azure + // for more information of creating AutomanageConfigurationProfileResource, please refer to the document of AutomanageConfigurationProfileResource string subscriptionId = "mySubscriptionId"; string resourceGroupName = "myResourceGroupName"; string configurationProfileName = "customConfigurationProfile"; - ResourceIdentifier configurationProfileResourceId = ConfigurationProfileResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, configurationProfileName); - ConfigurationProfileResource configurationProfile = client.GetConfigurationProfileResource(configurationProfileResourceId); + ResourceIdentifier automanageConfigurationProfileResourceId = AutomanageConfigurationProfileResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, configurationProfileName); + AutomanageConfigurationProfileResource automanageConfigurationProfile = client.GetAutomanageConfigurationProfileResource(automanageConfigurationProfileResourceId); // invoke the operation - ConfigurationProfileResource result = await configurationProfile.GetAsync(); + AutomanageConfigurationProfileResource result = await automanageConfigurationProfile.GetAsync(); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - ConfigurationProfileData resourceData = result.Data; + AutomanageConfigurationProfileData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -64,16 +64,16 @@ public async Task Delete_DeleteAConfigurationProfile() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this ConfigurationProfileResource created on azure - // for more information of creating ConfigurationProfileResource, please refer to the document of ConfigurationProfileResource + // this example assumes you already have this AutomanageConfigurationProfileResource created on azure + // for more information of creating AutomanageConfigurationProfileResource, please refer to the document of AutomanageConfigurationProfileResource string subscriptionId = "subid"; string resourceGroupName = "rg"; string configurationProfileName = "customConfigurationProfile"; - ResourceIdentifier configurationProfileResourceId = ConfigurationProfileResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, configurationProfileName); - ConfigurationProfileResource configurationProfile = client.GetConfigurationProfileResource(configurationProfileResourceId); + ResourceIdentifier automanageConfigurationProfileResourceId = AutomanageConfigurationProfileResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, configurationProfileName); + AutomanageConfigurationProfileResource automanageConfigurationProfile = client.GetAutomanageConfigurationProfileResource(automanageConfigurationProfileResourceId); // invoke the operation - await configurationProfile.DeleteAsync(WaitUntil.Completed); + await automanageConfigurationProfile.DeleteAsync(WaitUntil.Completed); Console.WriteLine($"Succeeded"); } @@ -91,16 +91,16 @@ public async Task Update_UpdateConfigurationProfile() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this ConfigurationProfileResource created on azure - // for more information of creating ConfigurationProfileResource, please refer to the document of ConfigurationProfileResource + // this example assumes you already have this AutomanageConfigurationProfileResource created on azure + // for more information of creating AutomanageConfigurationProfileResource, please refer to the document of AutomanageConfigurationProfileResource string subscriptionId = "mySubscriptionId"; string resourceGroupName = "myResourceGroupName"; string configurationProfileName = "customConfigurationProfile"; - ResourceIdentifier configurationProfileResourceId = ConfigurationProfileResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, configurationProfileName); - ConfigurationProfileResource configurationProfile = client.GetConfigurationProfileResource(configurationProfileResourceId); + ResourceIdentifier automanageConfigurationProfileResourceId = AutomanageConfigurationProfileResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, configurationProfileName); + AutomanageConfigurationProfileResource automanageConfigurationProfile = client.GetAutomanageConfigurationProfileResource(automanageConfigurationProfileResourceId); // invoke the operation - ConfigurationProfilePatch patch = new ConfigurationProfilePatch() + AutomanageConfigurationProfilePatch patch = new AutomanageConfigurationProfilePatch() { Configuration = BinaryData.FromObjectAsJson(new Dictionary() { @@ -119,11 +119,11 @@ public async Task Update_UpdateConfigurationProfile() ["Organization"] = "Administration", }, }; - ConfigurationProfileResource result = await configurationProfile.UpdateAsync(patch); + AutomanageConfigurationProfileResource result = await automanageConfigurationProfile.UpdateAsync(patch); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - ConfigurationProfileData resourceData = result.Data; + AutomanageConfigurationProfileData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -131,7 +131,7 @@ public async Task Update_UpdateConfigurationProfile() // List configuration profiles by subscription [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetConfigurationProfiles_ListConfigurationProfilesBySubscription() + public async Task GetAutomanageConfigurationProfiles_ListConfigurationProfilesBySubscription() { // Generated from example definition: specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listConfigurationProfilesBySubscription.json // this example is just showing the usage of "ConfigurationProfiles_ListBySubscription" operation, for the dependent resources, they will have to be created separately. @@ -148,11 +148,11 @@ public async Task GetConfigurationProfiles_ListConfigurationProfilesBySubscripti SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId); // invoke the operation and iterate over the result - await foreach (ConfigurationProfileResource item in subscriptionResource.GetConfigurationProfilesAsync()) + await foreach (AutomanageConfigurationProfileResource item in subscriptionResource.GetAutomanageConfigurationProfilesAsync()) { // the variable item is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - ConfigurationProfileData resourceData = item.Data; + AutomanageConfigurationProfileData resourceData = item.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_ConfigurationProfileVersionCollection.cs b/sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_AutomanageConfigurationProfileVersionCollection.cs similarity index 62% rename from sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_ConfigurationProfileVersionCollection.cs rename to sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_AutomanageConfigurationProfileVersionCollection.cs index b5b79de98ddd2..2ec869be8ccc0 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_ConfigurationProfileVersionCollection.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_AutomanageConfigurationProfileVersionCollection.cs @@ -16,7 +16,7 @@ namespace Azure.ResourceManager.Automanage.Samples { - public partial class Sample_ConfigurationProfileVersionCollection + public partial class Sample_AutomanageConfigurationProfileVersionCollection { // Create or update configuration profile version [NUnit.Framework.Test] @@ -31,20 +31,20 @@ public async Task CreateOrUpdate_CreateOrUpdateConfigurationProfileVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this ConfigurationProfileResource created on azure - // for more information of creating ConfigurationProfileResource, please refer to the document of ConfigurationProfileResource + // this example assumes you already have this AutomanageConfigurationProfileResource created on azure + // for more information of creating AutomanageConfigurationProfileResource, please refer to the document of AutomanageConfigurationProfileResource string subscriptionId = "mySubscriptionId"; string resourceGroupName = "myResourceGroupName"; string configurationProfileName = "customConfigurationProfile"; - ResourceIdentifier configurationProfileResourceId = ConfigurationProfileResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, configurationProfileName); - ConfigurationProfileResource configurationProfile = client.GetConfigurationProfileResource(configurationProfileResourceId); + ResourceIdentifier automanageConfigurationProfileResourceId = AutomanageConfigurationProfileResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, configurationProfileName); + AutomanageConfigurationProfileResource automanageConfigurationProfile = client.GetAutomanageConfigurationProfileResource(automanageConfigurationProfileResourceId); - // get the collection of this ConfigurationProfileVersionResource - ConfigurationProfileVersionCollection collection = configurationProfile.GetConfigurationProfileVersions(); + // get the collection of this AutomanageConfigurationProfileVersionResource + AutomanageConfigurationProfileVersionCollection collection = automanageConfigurationProfile.GetAutomanageConfigurationProfileVersions(); // invoke the operation string versionName = "version1"; - ConfigurationProfileData data = new ConfigurationProfileData(new AzureLocation("East US")) + AutomanageConfigurationProfileData data = new AutomanageConfigurationProfileData(new AzureLocation("East US")) { Configuration = BinaryData.FromObjectAsJson(new Dictionary() { @@ -63,12 +63,12 @@ public async Task CreateOrUpdate_CreateOrUpdateConfigurationProfileVersion() ["Organization"] = "Administration", }, }; - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, versionName, data); - ConfigurationProfileVersionResource result = lro.Value; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, versionName, data); + AutomanageConfigurationProfileVersionResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - ConfigurationProfileData resourceData = result.Data; + AutomanageConfigurationProfileData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -86,24 +86,24 @@ public async Task Get_GetAConfigurationProfileVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this ConfigurationProfileResource created on azure - // for more information of creating ConfigurationProfileResource, please refer to the document of ConfigurationProfileResource + // this example assumes you already have this AutomanageConfigurationProfileResource created on azure + // for more information of creating AutomanageConfigurationProfileResource, please refer to the document of AutomanageConfigurationProfileResource string subscriptionId = "mySubscriptionId"; string resourceGroupName = "myResourceGroupName"; string configurationProfileName = "customConfigurationProfile"; - ResourceIdentifier configurationProfileResourceId = ConfigurationProfileResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, configurationProfileName); - ConfigurationProfileResource configurationProfile = client.GetConfigurationProfileResource(configurationProfileResourceId); + ResourceIdentifier automanageConfigurationProfileResourceId = AutomanageConfigurationProfileResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, configurationProfileName); + AutomanageConfigurationProfileResource automanageConfigurationProfile = client.GetAutomanageConfigurationProfileResource(automanageConfigurationProfileResourceId); - // get the collection of this ConfigurationProfileVersionResource - ConfigurationProfileVersionCollection collection = configurationProfile.GetConfigurationProfileVersions(); + // get the collection of this AutomanageConfigurationProfileVersionResource + AutomanageConfigurationProfileVersionCollection collection = automanageConfigurationProfile.GetAutomanageConfigurationProfileVersions(); // invoke the operation string versionName = "version1"; - ConfigurationProfileVersionResource result = await collection.GetAsync(versionName); + AutomanageConfigurationProfileVersionResource result = await collection.GetAsync(versionName); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - ConfigurationProfileData resourceData = result.Data; + AutomanageConfigurationProfileData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -121,16 +121,16 @@ public async Task Exists_GetAConfigurationProfileVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this ConfigurationProfileResource created on azure - // for more information of creating ConfigurationProfileResource, please refer to the document of ConfigurationProfileResource + // this example assumes you already have this AutomanageConfigurationProfileResource created on azure + // for more information of creating AutomanageConfigurationProfileResource, please refer to the document of AutomanageConfigurationProfileResource string subscriptionId = "mySubscriptionId"; string resourceGroupName = "myResourceGroupName"; string configurationProfileName = "customConfigurationProfile"; - ResourceIdentifier configurationProfileResourceId = ConfigurationProfileResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, configurationProfileName); - ConfigurationProfileResource configurationProfile = client.GetConfigurationProfileResource(configurationProfileResourceId); + ResourceIdentifier automanageConfigurationProfileResourceId = AutomanageConfigurationProfileResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, configurationProfileName); + AutomanageConfigurationProfileResource automanageConfigurationProfile = client.GetAutomanageConfigurationProfileResource(automanageConfigurationProfileResourceId); - // get the collection of this ConfigurationProfileVersionResource - ConfigurationProfileVersionCollection collection = configurationProfile.GetConfigurationProfileVersions(); + // get the collection of this AutomanageConfigurationProfileVersionResource + AutomanageConfigurationProfileVersionCollection collection = automanageConfigurationProfile.GetAutomanageConfigurationProfileVersions(); // invoke the operation string versionName = "version1"; @@ -152,23 +152,23 @@ public async Task GetAll_ListConfigurationProfileVersionsByConfigurationProfile( // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this ConfigurationProfileResource created on azure - // for more information of creating ConfigurationProfileResource, please refer to the document of ConfigurationProfileResource + // this example assumes you already have this AutomanageConfigurationProfileResource created on azure + // for more information of creating AutomanageConfigurationProfileResource, please refer to the document of AutomanageConfigurationProfileResource string subscriptionId = "mySubscriptionId"; string resourceGroupName = "myResourceGroupName"; string configurationProfileName = "customConfigurationProfile"; - ResourceIdentifier configurationProfileResourceId = ConfigurationProfileResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, configurationProfileName); - ConfigurationProfileResource configurationProfile = client.GetConfigurationProfileResource(configurationProfileResourceId); + ResourceIdentifier automanageConfigurationProfileResourceId = AutomanageConfigurationProfileResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, configurationProfileName); + AutomanageConfigurationProfileResource automanageConfigurationProfile = client.GetAutomanageConfigurationProfileResource(automanageConfigurationProfileResourceId); - // get the collection of this ConfigurationProfileVersionResource - ConfigurationProfileVersionCollection collection = configurationProfile.GetConfigurationProfileVersions(); + // get the collection of this AutomanageConfigurationProfileVersionResource + AutomanageConfigurationProfileVersionCollection collection = automanageConfigurationProfile.GetAutomanageConfigurationProfileVersions(); // invoke the operation and iterate over the result - await foreach (ConfigurationProfileVersionResource item in collection.GetAllAsync()) + await foreach (AutomanageConfigurationProfileVersionResource item in collection.GetAllAsync()) { // the variable item is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - ConfigurationProfileData resourceData = item.Data; + AutomanageConfigurationProfileData resourceData = item.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_ConfigurationProfileVersionResource.cs b/sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_AutomanageConfigurationProfileVersionResource.cs similarity index 64% rename from sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_ConfigurationProfileVersionResource.cs rename to sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_AutomanageConfigurationProfileVersionResource.cs index 87cc1d76dd025..3f2c325ba4508 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_ConfigurationProfileVersionResource.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_AutomanageConfigurationProfileVersionResource.cs @@ -16,7 +16,7 @@ namespace Azure.ResourceManager.Automanage.Samples { - public partial class Sample_ConfigurationProfileVersionResource + public partial class Sample_AutomanageConfigurationProfileVersionResource { // Create or update configuration profile version [NUnit.Framework.Test] @@ -31,17 +31,17 @@ public async Task Update_CreateOrUpdateConfigurationProfileVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this ConfigurationProfileVersionResource created on azure - // for more information of creating ConfigurationProfileVersionResource, please refer to the document of ConfigurationProfileVersionResource + // this example assumes you already have this AutomanageConfigurationProfileVersionResource created on azure + // for more information of creating AutomanageConfigurationProfileVersionResource, please refer to the document of AutomanageConfigurationProfileVersionResource string subscriptionId = "mySubscriptionId"; string resourceGroupName = "myResourceGroupName"; string configurationProfileName = "customConfigurationProfile"; string versionName = "version1"; - ResourceIdentifier configurationProfileVersionResourceId = ConfigurationProfileVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, configurationProfileName, versionName); - ConfigurationProfileVersionResource configurationProfileVersion = client.GetConfigurationProfileVersionResource(configurationProfileVersionResourceId); + ResourceIdentifier automanageConfigurationProfileVersionResourceId = AutomanageConfigurationProfileVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, configurationProfileName, versionName); + AutomanageConfigurationProfileVersionResource automanageConfigurationProfileVersion = client.GetAutomanageConfigurationProfileVersionResource(automanageConfigurationProfileVersionResourceId); // invoke the operation - ConfigurationProfileData data = new ConfigurationProfileData(new AzureLocation("East US")) + AutomanageConfigurationProfileData data = new AutomanageConfigurationProfileData(new AzureLocation("East US")) { Configuration = BinaryData.FromObjectAsJson(new Dictionary() { @@ -60,12 +60,12 @@ public async Task Update_CreateOrUpdateConfigurationProfileVersion() ["Organization"] = "Administration", }, }; - ArmOperation lro = await configurationProfileVersion.UpdateAsync(WaitUntil.Completed, data); - ConfigurationProfileVersionResource result = lro.Value; + ArmOperation lro = await automanageConfigurationProfileVersion.UpdateAsync(WaitUntil.Completed, data); + AutomanageConfigurationProfileVersionResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - ConfigurationProfileData resourceData = result.Data; + AutomanageConfigurationProfileData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -83,21 +83,21 @@ public async Task Get_GetAConfigurationProfileVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this ConfigurationProfileVersionResource created on azure - // for more information of creating ConfigurationProfileVersionResource, please refer to the document of ConfigurationProfileVersionResource + // this example assumes you already have this AutomanageConfigurationProfileVersionResource created on azure + // for more information of creating AutomanageConfigurationProfileVersionResource, please refer to the document of AutomanageConfigurationProfileVersionResource string subscriptionId = "mySubscriptionId"; string resourceGroupName = "myResourceGroupName"; string configurationProfileName = "customConfigurationProfile"; string versionName = "version1"; - ResourceIdentifier configurationProfileVersionResourceId = ConfigurationProfileVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, configurationProfileName, versionName); - ConfigurationProfileVersionResource configurationProfileVersion = client.GetConfigurationProfileVersionResource(configurationProfileVersionResourceId); + ResourceIdentifier automanageConfigurationProfileVersionResourceId = AutomanageConfigurationProfileVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, configurationProfileName, versionName); + AutomanageConfigurationProfileVersionResource automanageConfigurationProfileVersion = client.GetAutomanageConfigurationProfileVersionResource(automanageConfigurationProfileVersionResourceId); // invoke the operation - ConfigurationProfileVersionResource result = await configurationProfileVersion.GetAsync(); + AutomanageConfigurationProfileVersionResource result = await automanageConfigurationProfileVersion.GetAsync(); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - ConfigurationProfileData resourceData = result.Data; + AutomanageConfigurationProfileData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -115,17 +115,17 @@ public async Task Delete_DeleteAConfigurationProfileVersion() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this ConfigurationProfileVersionResource created on azure - // for more information of creating ConfigurationProfileVersionResource, please refer to the document of ConfigurationProfileVersionResource + // this example assumes you already have this AutomanageConfigurationProfileVersionResource created on azure + // for more information of creating AutomanageConfigurationProfileVersionResource, please refer to the document of AutomanageConfigurationProfileVersionResource string subscriptionId = "subid"; string resourceGroupName = "rg"; string configurationProfileName = "customConfigurationProfile"; string versionName = "version1"; - ResourceIdentifier configurationProfileVersionResourceId = ConfigurationProfileVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, configurationProfileName, versionName); - ConfigurationProfileVersionResource configurationProfileVersion = client.GetConfigurationProfileVersionResource(configurationProfileVersionResourceId); + ResourceIdentifier automanageConfigurationProfileVersionResourceId = AutomanageConfigurationProfileVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, configurationProfileName, versionName); + AutomanageConfigurationProfileVersionResource automanageConfigurationProfileVersion = client.GetAutomanageConfigurationProfileVersionResource(automanageConfigurationProfileVersionResourceId); // invoke the operation - await configurationProfileVersion.DeleteAsync(WaitUntil.Completed); + await automanageConfigurationProfileVersion.DeleteAsync(WaitUntil.Completed); Console.WriteLine($"Succeeded"); } diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_AutomanageHciClusterConfigurationProfileAssignmentCollection.cs b/sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_AutomanageHciClusterConfigurationProfileAssignmentCollection.cs index 74ab3b8e88a46..05533afe66e7d 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_AutomanageHciClusterConfigurationProfileAssignmentCollection.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_AutomanageHciClusterConfigurationProfileAssignmentCollection.cs @@ -81,9 +81,9 @@ public async Task CreateOrUpdate_CreateOrUpdateAHCIConfigurationProfileAssignmen string configurationProfileAssignmentName = "default"; AutomanageConfigurationProfileAssignmentData data = new AutomanageConfigurationProfileAssignmentData() { - Properties = new ConfigurationProfileAssignmentProperties() + Properties = new AutomanageConfigurationProfileAssignmentProperties() { - ConfigurationProfile = "/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesProduction", + ConfigurationProfile = new ResourceIdentifier("/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesProduction"), }, }; ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, configurationProfileAssignmentName, data); diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_AutomanageHciClusterConfigurationProfileAssignmentResource.cs b/sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_AutomanageHciClusterConfigurationProfileAssignmentResource.cs index 3ba8d059b13e2..a9828af2ea07e 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_AutomanageHciClusterConfigurationProfileAssignmentResource.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_AutomanageHciClusterConfigurationProfileAssignmentResource.cs @@ -43,9 +43,9 @@ public async Task Update_CreateOrUpdateAHCIConfigurationProfileAssignment() // invoke the operation AutomanageConfigurationProfileAssignmentData data = new AutomanageConfigurationProfileAssignmentData() { - Properties = new ConfigurationProfileAssignmentProperties() + Properties = new AutomanageConfigurationProfileAssignmentProperties() { - ConfigurationProfile = "/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesProduction", + ConfigurationProfile = new ResourceIdentifier("/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesProduction"), }, }; ArmOperation lro = await automanageHciClusterConfigurationProfileAssignment.UpdateAsync(WaitUntil.Completed, data); diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_AutomanageHcrpConfigurationProfileAssignmentCollection.cs b/sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_AutomanageHcrpConfigurationProfileAssignmentCollection.cs index 583e4556e3aaa..20dd7a3b6caf9 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_AutomanageHcrpConfigurationProfileAssignmentCollection.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_AutomanageHcrpConfigurationProfileAssignmentCollection.cs @@ -81,9 +81,9 @@ public async Task CreateOrUpdate_CreateOrUpdateHCRPConfigurationProfileAssignmen string configurationProfileAssignmentName = "default"; AutomanageConfigurationProfileAssignmentData data = new AutomanageConfigurationProfileAssignmentData() { - Properties = new ConfigurationProfileAssignmentProperties() + Properties = new AutomanageConfigurationProfileAssignmentProperties() { - ConfigurationProfile = "/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesProduction", + ConfigurationProfile = new ResourceIdentifier("/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesProduction"), }, }; ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, configurationProfileAssignmentName, data); diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_AutomanageHcrpConfigurationProfileAssignmentResource.cs b/sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_AutomanageHcrpConfigurationProfileAssignmentResource.cs index 35448574e5b39..43ca477f1ffaf 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_AutomanageHcrpConfigurationProfileAssignmentResource.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_AutomanageHcrpConfigurationProfileAssignmentResource.cs @@ -43,9 +43,9 @@ public async Task Update_CreateOrUpdateHCRPConfigurationProfileAssignment() // invoke the operation AutomanageConfigurationProfileAssignmentData data = new AutomanageConfigurationProfileAssignmentData() { - Properties = new ConfigurationProfileAssignmentProperties() + Properties = new AutomanageConfigurationProfileAssignmentProperties() { - ConfigurationProfile = "/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesProduction", + ConfigurationProfile = new ResourceIdentifier("/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesProduction"), }, }; ArmOperation lro = await automanageHcrpConfigurationProfileAssignment.UpdateAsync(WaitUntil.Completed, data); diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_AutomanageVmConfigurationProfileAssignmentCollection.cs b/sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_AutomanageVmConfigurationProfileAssignmentCollection.cs index ee61b18027889..769eff5b439a5 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_AutomanageVmConfigurationProfileAssignmentCollection.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_AutomanageVmConfigurationProfileAssignmentCollection.cs @@ -45,9 +45,9 @@ public async Task CreateOrUpdate_CreateOrUpdateConfigurationProfileAssignment() string configurationProfileAssignmentName = "default"; AutomanageConfigurationProfileAssignmentData data = new AutomanageConfigurationProfileAssignmentData() { - Properties = new ConfigurationProfileAssignmentProperties() + Properties = new AutomanageConfigurationProfileAssignmentProperties() { - ConfigurationProfile = "/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesProduction", + ConfigurationProfile = new ResourceIdentifier("/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesProduction"), }, }; ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, configurationProfileAssignmentName, data); diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_AutomanageVmConfigurationProfileAssignmentResource.cs b/sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_AutomanageVmConfigurationProfileAssignmentResource.cs index 6966012e596cb..ec95add0cdb8d 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_AutomanageVmConfigurationProfileAssignmentResource.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_AutomanageVmConfigurationProfileAssignmentResource.cs @@ -43,9 +43,9 @@ public async Task Update_CreateOrUpdateConfigurationProfileAssignment() // invoke the operation AutomanageConfigurationProfileAssignmentData data = new AutomanageConfigurationProfileAssignmentData() { - Properties = new ConfigurationProfileAssignmentProperties() + Properties = new AutomanageConfigurationProfileAssignmentProperties() { - ConfigurationProfile = "/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesProduction", + ConfigurationProfile = new ResourceIdentifier("/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesProduction"), }, }; ArmOperation lro = await automanageVmConfigurationProfileAssignment.UpdateAsync(WaitUntil.Completed, data); diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_ServicePrincipalResource.cs b/sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_ServicePrincipalResource.cs deleted file mode 100644 index 3424bf451f4ac..0000000000000 --- a/sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_ServicePrincipalResource.cs +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading.Tasks; -using Azure.Core; -using Azure.Identity; -using Azure.ResourceManager; -using Azure.ResourceManager.Automanage; - -namespace Azure.ResourceManager.Automanage.Samples -{ - public partial class Sample_ServicePrincipalResource - { - // Get service principal - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetServicePrincipal() - { - // Generated from example definition: specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/getServicePrincipal.json - // this example is just showing the usage of "ServicePrincipals_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ServicePrincipalResource created on azure - // for more information of creating ServicePrincipalResource, please refer to the document of ServicePrincipalResource - string subscriptionId = "mySubscriptionId"; - ResourceIdentifier servicePrincipalResourceId = ServicePrincipalResource.CreateResourceIdentifier(subscriptionId); - ServicePrincipalResource servicePrincipal = client.GetServicePrincipalResource(servicePrincipalResourceId); - - // invoke the operation - ServicePrincipalResource result = await servicePrincipal.GetAsync(); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - ServicePrincipalData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - } -} diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs b/sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs new file mode 100644 index 0000000000000..29bd499b1cb27 --- /dev/null +++ b/sdk/automanage/Azure.ResourceManager.Automanage/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs @@ -0,0 +1,74 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.Automanage; +using Azure.ResourceManager.Automanage.Models; +using Azure.ResourceManager.Resources; + +namespace Azure.ResourceManager.Automanage.Samples +{ + public partial class Sample_SubscriptionResourceExtensions + { + // List service principal by subscription + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetServicePrincipals_ListServicePrincipalBySubscription() + { + // Generated from example definition: specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listServicePrincipalBySubscription.json + // this example is just showing the usage of "ServicePrincipals_ListBySubscription" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SubscriptionResource created on azure + // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource + string subscriptionId = "mySubscriptionId"; + ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId); + SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId); + + // invoke the operation and iterate over the result + await foreach (AutomanageServicePrincipalData item in subscriptionResource.GetServicePrincipalsAsync()) + { + Console.WriteLine($"Succeeded: {item}"); + } + + Console.WriteLine($"Succeeded"); + } + + // Get service principal + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetServicePrincipal_GetServicePrincipal() + { + // Generated from example definition: specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/getServicePrincipal.json + // this example is just showing the usage of "ServicePrincipals_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SubscriptionResource created on azure + // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource + string subscriptionId = "mySubscriptionId"; + ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId); + SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId); + + // invoke the operation + AutomanageServicePrincipalData result = await subscriptionResource.GetServicePrincipalAsync(); + + Console.WriteLine($"Succeeded: {result}"); + } + } +} diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Azure.ResourceManager.Automanage.csproj b/sdk/automanage/Azure.ResourceManager.Automanage/src/Azure.ResourceManager.Automanage.csproj index f04384bab9659..3d69a38eeef4f 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Azure.ResourceManager.Automanage.csproj +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Azure.ResourceManager.Automanage.csproj @@ -1,6 +1,6 @@ - 1.0.0-beta.2 + 1.0.0 Azure.ResourceManager.Automanage Microsoft Azure Resource Manager client SDK for Azure resource provider Microsoft.Automanage. azure;management;arm;resource manager;automanage diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/BestPracticeCollection.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageBestPracticeCollection.cs similarity index 63% rename from sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/BestPracticeCollection.cs rename to sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageBestPracticeCollection.cs index e7e89741ec02a..bac9b89056a40 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/BestPracticeCollection.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageBestPracticeCollection.cs @@ -20,28 +20,28 @@ namespace Azure.ResourceManager.Automanage { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetBestPractices method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get an instance call the GetAutomanageBestPractices method from an instance of . /// - public partial class BestPracticeCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class AutomanageBestPracticeCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _bestPracticeClientDiagnostics; - private readonly BestPracticesRestOperations _bestPracticeRestClient; + private readonly ClientDiagnostics _automanageBestPracticeBestPracticesClientDiagnostics; + private readonly BestPracticesRestOperations _automanageBestPracticeBestPracticesRestClient; - /// Initializes a new instance of the class for mocking. - protected BestPracticeCollection() + /// Initializes a new instance of the class for mocking. + protected AutomanageBestPracticeCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal BestPracticeCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal AutomanageBestPracticeCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _bestPracticeClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automanage", BestPracticeResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(BestPracticeResource.ResourceType, out string bestPracticeApiVersion); - _bestPracticeRestClient = new BestPracticesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, bestPracticeApiVersion); + _automanageBestPracticeBestPracticesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automanage", AutomanageBestPracticeResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(AutomanageBestPracticeResource.ResourceType, out string automanageBestPracticeBestPracticesApiVersion); + _automanageBestPracticeBestPracticesRestClient = new BestPracticesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, automanageBestPracticeBestPracticesApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -70,18 +70,18 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string bestPracticeName, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string bestPracticeName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(bestPracticeName, nameof(bestPracticeName)); - using var scope = _bestPracticeClientDiagnostics.CreateScope("BestPracticeCollection.Get"); + using var scope = _automanageBestPracticeBestPracticesClientDiagnostics.CreateScope("AutomanageBestPracticeCollection.Get"); scope.Start(); try { - var response = await _bestPracticeRestClient.GetAsync(bestPracticeName, cancellationToken).ConfigureAwait(false); + var response = await _automanageBestPracticeBestPracticesRestClient.GetAsync(bestPracticeName, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new BestPracticeResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomanageBestPracticeResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -107,18 +107,18 @@ public virtual async Task> GetAsync(string bestPr /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string bestPracticeName, CancellationToken cancellationToken = default) + public virtual Response Get(string bestPracticeName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(bestPracticeName, nameof(bestPracticeName)); - using var scope = _bestPracticeClientDiagnostics.CreateScope("BestPracticeCollection.Get"); + using var scope = _automanageBestPracticeBestPracticesClientDiagnostics.CreateScope("AutomanageBestPracticeCollection.Get"); scope.Start(); try { - var response = _bestPracticeRestClient.Get(bestPracticeName, cancellationToken); + var response = _automanageBestPracticeBestPracticesRestClient.Get(bestPracticeName, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new BestPracticeResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomanageBestPracticeResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -141,11 +141,11 @@ public virtual Response Get(string bestPracticeName, Cance /// /// /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _bestPracticeRestClient.CreateListByTenantRequest(); - return PageableHelpers.CreateAsyncPageable(FirstPageRequest, null, e => new BestPracticeResource(Client, BestPracticeData.DeserializeBestPracticeData(e)), _bestPracticeClientDiagnostics, Pipeline, "BestPracticeCollection.GetAll", "value", null, cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _automanageBestPracticeBestPracticesRestClient.CreateListByTenantRequest(); + return PageableHelpers.CreateAsyncPageable(FirstPageRequest, null, e => new AutomanageBestPracticeResource(Client, AutomanageBestPracticeData.DeserializeAutomanageBestPracticeData(e)), _automanageBestPracticeBestPracticesClientDiagnostics, Pipeline, "AutomanageBestPracticeCollection.GetAll", "value", null, cancellationToken); } /// @@ -162,11 +162,11 @@ public virtual AsyncPageable GetAllAsync(CancellationToken /// /// /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _bestPracticeRestClient.CreateListByTenantRequest(); - return PageableHelpers.CreatePageable(FirstPageRequest, null, e => new BestPracticeResource(Client, BestPracticeData.DeserializeBestPracticeData(e)), _bestPracticeClientDiagnostics, Pipeline, "BestPracticeCollection.GetAll", "value", null, cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _automanageBestPracticeBestPracticesRestClient.CreateListByTenantRequest(); + return PageableHelpers.CreatePageable(FirstPageRequest, null, e => new AutomanageBestPracticeResource(Client, AutomanageBestPracticeData.DeserializeAutomanageBestPracticeData(e)), _automanageBestPracticeBestPracticesClientDiagnostics, Pipeline, "AutomanageBestPracticeCollection.GetAll", "value", null, cancellationToken); } /// @@ -190,11 +190,11 @@ public virtual async Task> ExistsAsync(string bestPracticeName, C { Argument.AssertNotNullOrEmpty(bestPracticeName, nameof(bestPracticeName)); - using var scope = _bestPracticeClientDiagnostics.CreateScope("BestPracticeCollection.Exists"); + using var scope = _automanageBestPracticeBestPracticesClientDiagnostics.CreateScope("AutomanageBestPracticeCollection.Exists"); scope.Start(); try { - var response = await _bestPracticeRestClient.GetAsync(bestPracticeName, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _automanageBestPracticeBestPracticesRestClient.GetAsync(bestPracticeName, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -225,11 +225,11 @@ public virtual Response Exists(string bestPracticeName, CancellationToken { Argument.AssertNotNullOrEmpty(bestPracticeName, nameof(bestPracticeName)); - using var scope = _bestPracticeClientDiagnostics.CreateScope("BestPracticeCollection.Exists"); + using var scope = _automanageBestPracticeBestPracticesClientDiagnostics.CreateScope("AutomanageBestPracticeCollection.Exists"); scope.Start(); try { - var response = _bestPracticeRestClient.Get(bestPracticeName, cancellationToken: cancellationToken); + var response = _automanageBestPracticeBestPracticesRestClient.Get(bestPracticeName, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -239,7 +239,7 @@ public virtual Response Exists(string bestPracticeName, CancellationToken } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -249,7 +249,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/BestPracticeData.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageBestPracticeData.cs similarity index 77% rename from sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/BestPracticeData.cs rename to sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageBestPracticeData.cs index e41d47b09e723..ad0b074fd2bfc 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/BestPracticeData.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageBestPracticeData.cs @@ -11,21 +11,21 @@ namespace Azure.ResourceManager.Automanage { - /// A class representing the BestPractice data model. - public partial class BestPracticeData : ResourceData + /// A class representing the AutomanageBestPractice data model. + public partial class AutomanageBestPracticeData : ResourceData { - /// Initializes a new instance of BestPracticeData. - internal BestPracticeData() + /// Initializes a new instance of AutomanageBestPracticeData. + internal AutomanageBestPracticeData() { } - /// Initializes a new instance of BestPracticeData. + /// Initializes a new instance of AutomanageBestPracticeData. /// The id. /// The name. /// The resourceType. /// The systemData. /// configuration dictionary of the configuration profile. - internal BestPracticeData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, BinaryData configuration) : base(id, name, resourceType, systemData) + internal AutomanageBestPracticeData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, BinaryData configuration) : base(id, name, resourceType, systemData) { Configuration = configuration; } diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/BestPracticeResource.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageBestPracticeResource.cs similarity index 63% rename from sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/BestPracticeResource.cs rename to sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageBestPracticeResource.cs index 78e7a00b959bc..08d56029ac460 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/BestPracticeResource.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageBestPracticeResource.cs @@ -18,46 +18,46 @@ namespace Azure.ResourceManager.Automanage { /// - /// A Class representing a BestPractice along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetBestPracticeResource method. - /// Otherwise you can get one from its parent resource using the GetBestPractice method. + /// A Class representing an AutomanageBestPractice along with the instance operations that can be performed on it. + /// If you have a you can construct an + /// from an instance of using the GetAutomanageBestPracticeResource method. + /// Otherwise you can get one from its parent resource using the GetAutomanageBestPractice method. /// - public partial class BestPracticeResource : ArmResource + public partial class AutomanageBestPracticeResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string bestPracticeName) { var resourceId = $"/providers/Microsoft.Automanage/bestPractices/{bestPracticeName}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _bestPracticeClientDiagnostics; - private readonly BestPracticesRestOperations _bestPracticeRestClient; - private readonly BestPracticeData _data; + private readonly ClientDiagnostics _automanageBestPracticeBestPracticesClientDiagnostics; + private readonly BestPracticesRestOperations _automanageBestPracticeBestPracticesRestClient; + private readonly AutomanageBestPracticeData _data; - /// Initializes a new instance of the class for mocking. - protected BestPracticeResource() + /// Initializes a new instance of the class for mocking. + protected AutomanageBestPracticeResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal BestPracticeResource(ArmClient client, BestPracticeData data) : this(client, data.Id) + internal AutomanageBestPracticeResource(ArmClient client, AutomanageBestPracticeData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal BestPracticeResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal AutomanageBestPracticeResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _bestPracticeClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automanage", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string bestPracticeApiVersion); - _bestPracticeRestClient = new BestPracticesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, bestPracticeApiVersion); + _automanageBestPracticeBestPracticesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automanage", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string automanageBestPracticeBestPracticesApiVersion); + _automanageBestPracticeBestPracticesRestClient = new BestPracticesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, automanageBestPracticeBestPracticesApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -71,7 +71,7 @@ internal BestPracticeResource(ArmClient client, ResourceIdentifier id) : base(cl /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual BestPracticeData Data + public virtual AutomanageBestPracticeData Data { get { @@ -101,16 +101,16 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _bestPracticeClientDiagnostics.CreateScope("BestPracticeResource.Get"); + using var scope = _automanageBestPracticeBestPracticesClientDiagnostics.CreateScope("AutomanageBestPracticeResource.Get"); scope.Start(); try { - var response = await _bestPracticeRestClient.GetAsync(Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _automanageBestPracticeBestPracticesRestClient.GetAsync(Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new BestPracticeResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomanageBestPracticeResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -133,16 +133,16 @@ public virtual async Task> GetAsync(CancellationT /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _bestPracticeClientDiagnostics.CreateScope("BestPracticeResource.Get"); + using var scope = _automanageBestPracticeBestPracticesClientDiagnostics.CreateScope("AutomanageBestPracticeResource.Get"); scope.Start(); try { - var response = _bestPracticeRestClient.Get(Id.Name, cancellationToken); + var response = _automanageBestPracticeBestPracticesRestClient.Get(Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new BestPracticeResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomanageBestPracticeResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageConfigurationProfileAssignmentData.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageConfigurationProfileAssignmentData.cs index 7af9529d5bd85..62a063b25752a 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageConfigurationProfileAssignmentData.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageConfigurationProfileAssignmentData.cs @@ -26,14 +26,14 @@ public AutomanageConfigurationProfileAssignmentData() /// The systemData. /// Properties of the configuration profile assignment. /// Azure resource id. Indicates if this resource is managed by another Azure resource. - internal AutomanageConfigurationProfileAssignmentData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ConfigurationProfileAssignmentProperties properties, string managedBy) : base(id, name, resourceType, systemData) + internal AutomanageConfigurationProfileAssignmentData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, AutomanageConfigurationProfileAssignmentProperties properties, string managedBy) : base(id, name, resourceType, systemData) { Properties = properties; ManagedBy = managedBy; } /// Properties of the configuration profile assignment. - public ConfigurationProfileAssignmentProperties Properties { get; set; } + public AutomanageConfigurationProfileAssignmentProperties Properties { get; set; } /// Azure resource id. Indicates if this resource is managed by another Azure resource. public string ManagedBy { get; } } diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageConfigurationProfileAssignmentReportData.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageConfigurationProfileAssignmentReportData.cs index abded0d74aa88..f9f140cd99c69 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageConfigurationProfileAssignmentReportData.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageConfigurationProfileAssignmentReportData.cs @@ -20,7 +20,7 @@ public partial class AutomanageConfigurationProfileAssignmentReportData : Resour /// Initializes a new instance of AutomanageConfigurationProfileAssignmentReportData. public AutomanageConfigurationProfileAssignmentReportData() { - Resources = new ChangeTrackingList(); + Resources = new ChangeTrackingList(); } /// Initializes a new instance of AutomanageConfigurationProfileAssignmentReportData. @@ -28,23 +28,23 @@ public AutomanageConfigurationProfileAssignmentReportData() /// The name. /// The resourceType. /// The systemData. - /// Start time of the configuration profile assignment processing. - /// End time of the configuration profile assignment processing. - /// Last modified time of the configuration profile assignment processing. + /// Start time of the configuration profile assignment processing. + /// End time of the configuration profile assignment processing. + /// Last modified time of the configuration profile assignment processing. /// Duration of the configuration profile assignment processing. - /// Type of the configuration profile assignment processing (Initial/Consistency). + /// Type of the configuration profile assignment processing (Initial/Consistency). /// The status of the configuration profile assignment. /// The configurationProfile linked to the assignment. /// List of resources processed by the configuration profile assignment. /// Error message, if any, returned by the configuration profile assignment processing. /// Version of the report format. - internal AutomanageConfigurationProfileAssignmentReportData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string startTime, string endTime, string lastModifiedTime, TimeSpan? duration, string typePropertiesType, string status, string configurationProfile, IReadOnlyList resources, ResponseError error, string reportFormatVersion) : base(id, name, resourceType, systemData) + internal AutomanageConfigurationProfileAssignmentReportData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, DateTimeOffset? startOn, DateTimeOffset? endOn, DateTimeOffset? lastModifiedOn, TimeSpan? duration, string configurationProfileAssignmentProcessingType, string status, string configurationProfile, IReadOnlyList resources, ResponseError error, string reportFormatVersion) : base(id, name, resourceType, systemData) { - StartTime = startTime; - EndTime = endTime; - LastModifiedTime = lastModifiedTime; + StartOn = startOn; + EndOn = endOn; + LastModifiedOn = lastModifiedOn; Duration = duration; - TypePropertiesType = typePropertiesType; + ConfigurationProfileAssignmentProcessingType = configurationProfileAssignmentProcessingType; Status = status; ConfigurationProfile = configurationProfile; Resources = resources; @@ -53,21 +53,21 @@ internal AutomanageConfigurationProfileAssignmentReportData(ResourceIdentifier i } /// Start time of the configuration profile assignment processing. - public string StartTime { get; set; } + public DateTimeOffset? StartOn { get; set; } /// End time of the configuration profile assignment processing. - public string EndTime { get; set; } + public DateTimeOffset? EndOn { get; set; } /// Last modified time of the configuration profile assignment processing. - public string LastModifiedTime { get; } + public DateTimeOffset? LastModifiedOn { get; } /// Duration of the configuration profile assignment processing. public TimeSpan? Duration { get; } /// Type of the configuration profile assignment processing (Initial/Consistency). - public string TypePropertiesType { get; } + public string ConfigurationProfileAssignmentProcessingType { get; } /// The status of the configuration profile assignment. public string Status { get; } /// The configurationProfile linked to the assignment. public string ConfigurationProfile { get; } /// List of resources processed by the configuration profile assignment. - public IReadOnlyList Resources { get; } + public IReadOnlyList Resources { get; } /// Error message, if any, returned by the configuration profile assignment processing. public ResponseError Error { get; } /// Version of the report format. diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/ConfigurationProfileCollection.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageConfigurationProfileCollection.cs similarity index 64% rename from sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/ConfigurationProfileCollection.cs rename to sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageConfigurationProfileCollection.cs index a2504a63bda47..b0200994b5971 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/ConfigurationProfileCollection.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageConfigurationProfileCollection.cs @@ -20,28 +20,28 @@ namespace Azure.ResourceManager.Automanage { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetConfigurationProfiles method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get an instance call the GetAutomanageConfigurationProfiles method from an instance of . /// - public partial class ConfigurationProfileCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class AutomanageConfigurationProfileCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _configurationProfileClientDiagnostics; - private readonly ConfigurationProfilesRestOperations _configurationProfileRestClient; + private readonly ClientDiagnostics _automanageConfigurationProfileConfigurationProfilesClientDiagnostics; + private readonly ConfigurationProfilesRestOperations _automanageConfigurationProfileConfigurationProfilesRestClient; - /// Initializes a new instance of the class for mocking. - protected ConfigurationProfileCollection() + /// Initializes a new instance of the class for mocking. + protected AutomanageConfigurationProfileCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal ConfigurationProfileCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal AutomanageConfigurationProfileCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _configurationProfileClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automanage", ConfigurationProfileResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ConfigurationProfileResource.ResourceType, out string configurationProfileApiVersion); - _configurationProfileRestClient = new ConfigurationProfilesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, configurationProfileApiVersion); + _automanageConfigurationProfileConfigurationProfilesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automanage", AutomanageConfigurationProfileResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(AutomanageConfigurationProfileResource.ResourceType, out string automanageConfigurationProfileConfigurationProfilesApiVersion); + _automanageConfigurationProfileConfigurationProfilesRestClient = new ConfigurationProfilesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, automanageConfigurationProfileConfigurationProfilesApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -72,17 +72,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string configurationProfileName, ConfigurationProfileData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string configurationProfileName, AutomanageConfigurationProfileData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(configurationProfileName, nameof(configurationProfileName)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _configurationProfileClientDiagnostics.CreateScope("ConfigurationProfileCollection.CreateOrUpdate"); + using var scope = _automanageConfigurationProfileConfigurationProfilesClientDiagnostics.CreateScope("AutomanageConfigurationProfileCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _configurationProfileRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, configurationProfileName, data, cancellationToken).ConfigureAwait(false); - var operation = new AutomanageArmOperation(Response.FromValue(new ConfigurationProfileResource(Client, response), response.GetRawResponse())); + var response = await _automanageConfigurationProfileConfigurationProfilesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, configurationProfileName, data, cancellationToken).ConfigureAwait(false); + var operation = new AutomanageArmOperation(Response.FromValue(new AutomanageConfigurationProfileResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -113,17 +113,17 @@ public virtual async Task> CreateOrUp /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string configurationProfileName, ConfigurationProfileData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string configurationProfileName, AutomanageConfigurationProfileData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(configurationProfileName, nameof(configurationProfileName)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _configurationProfileClientDiagnostics.CreateScope("ConfigurationProfileCollection.CreateOrUpdate"); + using var scope = _automanageConfigurationProfileConfigurationProfilesClientDiagnostics.CreateScope("AutomanageConfigurationProfileCollection.CreateOrUpdate"); scope.Start(); try { - var response = _configurationProfileRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, configurationProfileName, data, cancellationToken); - var operation = new AutomanageArmOperation(Response.FromValue(new ConfigurationProfileResource(Client, response), response.GetRawResponse())); + var response = _automanageConfigurationProfileConfigurationProfilesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, configurationProfileName, data, cancellationToken); + var operation = new AutomanageArmOperation(Response.FromValue(new AutomanageConfigurationProfileResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -152,18 +152,18 @@ public virtual ArmOperation CreateOrUpdate(WaitUnt /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string configurationProfileName, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string configurationProfileName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(configurationProfileName, nameof(configurationProfileName)); - using var scope = _configurationProfileClientDiagnostics.CreateScope("ConfigurationProfileCollection.Get"); + using var scope = _automanageConfigurationProfileConfigurationProfilesClientDiagnostics.CreateScope("AutomanageConfigurationProfileCollection.Get"); scope.Start(); try { - var response = await _configurationProfileRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, configurationProfileName, cancellationToken).ConfigureAwait(false); + var response = await _automanageConfigurationProfileConfigurationProfilesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, configurationProfileName, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new ConfigurationProfileResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomanageConfigurationProfileResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -189,18 +189,18 @@ public virtual async Task> GetAsync(strin /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string configurationProfileName, CancellationToken cancellationToken = default) + public virtual Response Get(string configurationProfileName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(configurationProfileName, nameof(configurationProfileName)); - using var scope = _configurationProfileClientDiagnostics.CreateScope("ConfigurationProfileCollection.Get"); + using var scope = _automanageConfigurationProfileConfigurationProfilesClientDiagnostics.CreateScope("AutomanageConfigurationProfileCollection.Get"); scope.Start(); try { - var response = _configurationProfileRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, configurationProfileName, cancellationToken); + var response = _automanageConfigurationProfileConfigurationProfilesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, configurationProfileName, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new ConfigurationProfileResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomanageConfigurationProfileResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -223,11 +223,11 @@ public virtual Response Get(string configurationPr /// /// /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _configurationProfileRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); - return PageableHelpers.CreateAsyncPageable(FirstPageRequest, null, e => new ConfigurationProfileResource(Client, ConfigurationProfileData.DeserializeConfigurationProfileData(e)), _configurationProfileClientDiagnostics, Pipeline, "ConfigurationProfileCollection.GetAll", "value", null, cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _automanageConfigurationProfileConfigurationProfilesRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); + return PageableHelpers.CreateAsyncPageable(FirstPageRequest, null, e => new AutomanageConfigurationProfileResource(Client, AutomanageConfigurationProfileData.DeserializeAutomanageConfigurationProfileData(e)), _automanageConfigurationProfileConfigurationProfilesClientDiagnostics, Pipeline, "AutomanageConfigurationProfileCollection.GetAll", "value", null, cancellationToken); } /// @@ -244,11 +244,11 @@ public virtual AsyncPageable GetAllAsync(Cancellat /// /// /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _configurationProfileRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); - return PageableHelpers.CreatePageable(FirstPageRequest, null, e => new ConfigurationProfileResource(Client, ConfigurationProfileData.DeserializeConfigurationProfileData(e)), _configurationProfileClientDiagnostics, Pipeline, "ConfigurationProfileCollection.GetAll", "value", null, cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _automanageConfigurationProfileConfigurationProfilesRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); + return PageableHelpers.CreatePageable(FirstPageRequest, null, e => new AutomanageConfigurationProfileResource(Client, AutomanageConfigurationProfileData.DeserializeAutomanageConfigurationProfileData(e)), _automanageConfigurationProfileConfigurationProfilesClientDiagnostics, Pipeline, "AutomanageConfigurationProfileCollection.GetAll", "value", null, cancellationToken); } /// @@ -272,11 +272,11 @@ public virtual async Task> ExistsAsync(string configurationProfil { Argument.AssertNotNullOrEmpty(configurationProfileName, nameof(configurationProfileName)); - using var scope = _configurationProfileClientDiagnostics.CreateScope("ConfigurationProfileCollection.Exists"); + using var scope = _automanageConfigurationProfileConfigurationProfilesClientDiagnostics.CreateScope("AutomanageConfigurationProfileCollection.Exists"); scope.Start(); try { - var response = await _configurationProfileRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, configurationProfileName, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _automanageConfigurationProfileConfigurationProfilesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, configurationProfileName, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -307,11 +307,11 @@ public virtual Response Exists(string configurationProfileName, Cancellati { Argument.AssertNotNullOrEmpty(configurationProfileName, nameof(configurationProfileName)); - using var scope = _configurationProfileClientDiagnostics.CreateScope("ConfigurationProfileCollection.Exists"); + using var scope = _automanageConfigurationProfileConfigurationProfilesClientDiagnostics.CreateScope("AutomanageConfigurationProfileCollection.Exists"); scope.Start(); try { - var response = _configurationProfileRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, configurationProfileName, cancellationToken: cancellationToken); + var response = _automanageConfigurationProfileConfigurationProfilesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, configurationProfileName, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -321,7 +321,7 @@ public virtual Response Exists(string configurationProfileName, Cancellati } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -331,7 +331,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/ConfigurationProfileData.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageConfigurationProfileData.cs similarity index 77% rename from sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/ConfigurationProfileData.cs rename to sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageConfigurationProfileData.cs index 26972d4374519..0ff3f1c86fa73 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/ConfigurationProfileData.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageConfigurationProfileData.cs @@ -13,16 +13,16 @@ namespace Azure.ResourceManager.Automanage { - /// A class representing the ConfigurationProfile data model. - public partial class ConfigurationProfileData : TrackedResourceData + /// A class representing the AutomanageConfigurationProfile data model. + public partial class AutomanageConfigurationProfileData : TrackedResourceData { - /// Initializes a new instance of ConfigurationProfileData. + /// Initializes a new instance of AutomanageConfigurationProfileData. /// The location. - public ConfigurationProfileData(AzureLocation location) : base(location) + public AutomanageConfigurationProfileData(AzureLocation location) : base(location) { } - /// Initializes a new instance of ConfigurationProfileData. + /// Initializes a new instance of AutomanageConfigurationProfileData. /// The id. /// The name. /// The resourceType. @@ -30,7 +30,7 @@ public ConfigurationProfileData(AzureLocation location) : base(location) /// The tags. /// The location. /// Properties of the configuration profile. - internal ConfigurationProfileData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ConfigurationProfileProperties properties) : base(id, name, resourceType, systemData, tags, location) + internal AutomanageConfigurationProfileData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ConfigurationProfileProperties properties) : base(id, name, resourceType, systemData, tags, location) { Properties = properties; } diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/ConfigurationProfileResource.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageConfigurationProfileResource.cs similarity index 69% rename from sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/ConfigurationProfileResource.cs rename to sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageConfigurationProfileResource.cs index 08da007e979ba..9066d58d1d95c 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/ConfigurationProfileResource.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageConfigurationProfileResource.cs @@ -20,46 +20,46 @@ namespace Azure.ResourceManager.Automanage { /// - /// A Class representing a ConfigurationProfile along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetConfigurationProfileResource method. - /// Otherwise you can get one from its parent resource using the GetConfigurationProfile method. + /// A Class representing an AutomanageConfigurationProfile along with the instance operations that can be performed on it. + /// If you have a you can construct an + /// from an instance of using the GetAutomanageConfigurationProfileResource method. + /// Otherwise you can get one from its parent resource using the GetAutomanageConfigurationProfile method. /// - public partial class ConfigurationProfileResource : ArmResource + public partial class AutomanageConfigurationProfileResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string configurationProfileName) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automanage/configurationProfiles/{configurationProfileName}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _configurationProfileClientDiagnostics; - private readonly ConfigurationProfilesRestOperations _configurationProfileRestClient; - private readonly ConfigurationProfileData _data; + private readonly ClientDiagnostics _automanageConfigurationProfileConfigurationProfilesClientDiagnostics; + private readonly ConfigurationProfilesRestOperations _automanageConfigurationProfileConfigurationProfilesRestClient; + private readonly AutomanageConfigurationProfileData _data; - /// Initializes a new instance of the class for mocking. - protected ConfigurationProfileResource() + /// Initializes a new instance of the class for mocking. + protected AutomanageConfigurationProfileResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal ConfigurationProfileResource(ArmClient client, ConfigurationProfileData data) : this(client, data.Id) + internal AutomanageConfigurationProfileResource(ArmClient client, AutomanageConfigurationProfileData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal ConfigurationProfileResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal AutomanageConfigurationProfileResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _configurationProfileClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automanage", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string configurationProfileApiVersion); - _configurationProfileRestClient = new ConfigurationProfilesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, configurationProfileApiVersion); + _automanageConfigurationProfileConfigurationProfilesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automanage", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string automanageConfigurationProfileConfigurationProfilesApiVersion); + _automanageConfigurationProfileConfigurationProfilesRestClient = new ConfigurationProfilesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, automanageConfigurationProfileConfigurationProfilesApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -73,7 +73,7 @@ internal ConfigurationProfileResource(ArmClient client, ResourceIdentifier id) : /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual ConfigurationProfileData Data + public virtual AutomanageConfigurationProfileData Data { get { @@ -89,11 +89,11 @@ internal static void ValidateResourceId(ResourceIdentifier id) throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); } - /// Gets a collection of ConfigurationProfileVersionResources in the ConfigurationProfile. - /// An object representing collection of ConfigurationProfileVersionResources and their operations over a ConfigurationProfileVersionResource. - public virtual ConfigurationProfileVersionCollection GetConfigurationProfileVersions() + /// Gets a collection of AutomanageConfigurationProfileVersionResources in the AutomanageConfigurationProfile. + /// An object representing collection of AutomanageConfigurationProfileVersionResources and their operations over a AutomanageConfigurationProfileVersionResource. + public virtual AutomanageConfigurationProfileVersionCollection GetAutomanageConfigurationProfileVersions() { - return GetCachedClient(Client => new ConfigurationProfileVersionCollection(Client, Id)); + return GetCachedClient(Client => new AutomanageConfigurationProfileVersionCollection(Client, Id)); } /// @@ -114,9 +114,9 @@ public virtual ConfigurationProfileVersionCollection GetConfigurationProfileVers /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual async Task> GetConfigurationProfileVersionAsync(string versionName, CancellationToken cancellationToken = default) + public virtual async Task> GetAutomanageConfigurationProfileVersionAsync(string versionName, CancellationToken cancellationToken = default) { - return await GetConfigurationProfileVersions().GetAsync(versionName, cancellationToken).ConfigureAwait(false); + return await GetAutomanageConfigurationProfileVersions().GetAsync(versionName, cancellationToken).ConfigureAwait(false); } /// @@ -137,9 +137,9 @@ public virtual async Task> GetConf /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual Response GetConfigurationProfileVersion(string versionName, CancellationToken cancellationToken = default) + public virtual Response GetAutomanageConfigurationProfileVersion(string versionName, CancellationToken cancellationToken = default) { - return GetConfigurationProfileVersions().Get(versionName, cancellationToken); + return GetAutomanageConfigurationProfileVersions().Get(versionName, cancellationToken); } /// @@ -156,16 +156,16 @@ public virtual Response GetConfigurationPro /// /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _configurationProfileClientDiagnostics.CreateScope("ConfigurationProfileResource.Get"); + using var scope = _automanageConfigurationProfileConfigurationProfilesClientDiagnostics.CreateScope("AutomanageConfigurationProfileResource.Get"); scope.Start(); try { - var response = await _configurationProfileRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _automanageConfigurationProfileConfigurationProfilesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new ConfigurationProfileResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomanageConfigurationProfileResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -188,16 +188,16 @@ public virtual async Task> GetAsync(Cance /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _configurationProfileClientDiagnostics.CreateScope("ConfigurationProfileResource.Get"); + using var scope = _automanageConfigurationProfileConfigurationProfilesClientDiagnostics.CreateScope("AutomanageConfigurationProfileResource.Get"); scope.Start(); try { - var response = _configurationProfileRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + var response = _automanageConfigurationProfileConfigurationProfilesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new ConfigurationProfileResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomanageConfigurationProfileResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -223,11 +223,11 @@ public virtual Response Get(CancellationToken canc /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _configurationProfileClientDiagnostics.CreateScope("ConfigurationProfileResource.Delete"); + using var scope = _automanageConfigurationProfileConfigurationProfilesClientDiagnostics.CreateScope("AutomanageConfigurationProfileResource.Delete"); scope.Start(); try { - var response = await _configurationProfileRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _automanageConfigurationProfileConfigurationProfilesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); var operation = new AutomanageArmOperation(response); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); @@ -257,11 +257,11 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _configurationProfileClientDiagnostics.CreateScope("ConfigurationProfileResource.Delete"); + using var scope = _automanageConfigurationProfileConfigurationProfilesClientDiagnostics.CreateScope("AutomanageConfigurationProfileResource.Delete"); scope.Start(); try { - var response = _configurationProfileRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + var response = _automanageConfigurationProfileConfigurationProfilesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); var operation = new AutomanageArmOperation(response); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); @@ -290,16 +290,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// Parameters supplied to update configuration profile. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(ConfigurationProfilePatch patch, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(AutomanageConfigurationProfilePatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNull(patch, nameof(patch)); - using var scope = _configurationProfileClientDiagnostics.CreateScope("ConfigurationProfileResource.Update"); + using var scope = _automanageConfigurationProfileConfigurationProfilesClientDiagnostics.CreateScope("AutomanageConfigurationProfileResource.Update"); scope.Start(); try { - var response = await _configurationProfileRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, patch, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new ConfigurationProfileResource(Client, response.Value), response.GetRawResponse()); + var response = await _automanageConfigurationProfileConfigurationProfilesRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, patch, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new AutomanageConfigurationProfileResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -324,16 +324,16 @@ public virtual async Task> UpdateAsync(Co /// Parameters supplied to update configuration profile. /// The cancellation token to use. /// is null. - public virtual Response Update(ConfigurationProfilePatch patch, CancellationToken cancellationToken = default) + public virtual Response Update(AutomanageConfigurationProfilePatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNull(patch, nameof(patch)); - using var scope = _configurationProfileClientDiagnostics.CreateScope("ConfigurationProfileResource.Update"); + using var scope = _automanageConfigurationProfileConfigurationProfilesClientDiagnostics.CreateScope("AutomanageConfigurationProfileResource.Update"); scope.Start(); try { - var response = _configurationProfileRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, patch, cancellationToken); - return Response.FromValue(new ConfigurationProfileResource(Client, response.Value), response.GetRawResponse()); + var response = _automanageConfigurationProfileConfigurationProfilesRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, patch, cancellationToken); + return Response.FromValue(new AutomanageConfigurationProfileResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -359,12 +359,12 @@ public virtual Response Update(ConfigurationProfil /// The value for the tag. /// The cancellation token to use. /// or is null. - public virtual async Task> AddTagAsync(string key, string value, CancellationToken cancellationToken = default) + public virtual async Task> AddTagAsync(string key, string value, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); Argument.AssertNotNull(value, nameof(value)); - using var scope = _configurationProfileClientDiagnostics.CreateScope("ConfigurationProfileResource.AddTag"); + using var scope = _automanageConfigurationProfileConfigurationProfilesClientDiagnostics.CreateScope("AutomanageConfigurationProfileResource.AddTag"); scope.Start(); try { @@ -373,13 +373,13 @@ public virtual async Task> AddTagAsync(st var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); originalTags.Value.Data.TagValues[key] = value; await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); - var originalResponse = await _configurationProfileRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new ConfigurationProfileResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = await _automanageConfigurationProfileConfigurationProfilesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new AutomanageConfigurationProfileResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; - var patch = new ConfigurationProfilePatch(); + var patch = new AutomanageConfigurationProfilePatch(); foreach (var tag in current.Tags) { patch.Tags.Add(tag); @@ -413,12 +413,12 @@ public virtual async Task> AddTagAsync(st /// The value for the tag. /// The cancellation token to use. /// or is null. - public virtual Response AddTag(string key, string value, CancellationToken cancellationToken = default) + public virtual Response AddTag(string key, string value, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); Argument.AssertNotNull(value, nameof(value)); - using var scope = _configurationProfileClientDiagnostics.CreateScope("ConfigurationProfileResource.AddTag"); + using var scope = _automanageConfigurationProfileConfigurationProfilesClientDiagnostics.CreateScope("AutomanageConfigurationProfileResource.AddTag"); scope.Start(); try { @@ -427,13 +427,13 @@ public virtual Response AddTag(string key, string var originalTags = GetTagResource().Get(cancellationToken); originalTags.Value.Data.TagValues[key] = value; GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); - var originalResponse = _configurationProfileRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - return Response.FromValue(new ConfigurationProfileResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = _automanageConfigurationProfileConfigurationProfilesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + return Response.FromValue(new AutomanageConfigurationProfileResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { var current = Get(cancellationToken: cancellationToken).Value.Data; - var patch = new ConfigurationProfilePatch(); + var patch = new AutomanageConfigurationProfilePatch(); foreach (var tag in current.Tags) { patch.Tags.Add(tag); @@ -466,11 +466,11 @@ public virtual Response AddTag(string key, string /// The set of tags to use as replacement. /// The cancellation token to use. /// is null. - public virtual async Task> SetTagsAsync(IDictionary tags, CancellationToken cancellationToken = default) + public virtual async Task> SetTagsAsync(IDictionary tags, CancellationToken cancellationToken = default) { Argument.AssertNotNull(tags, nameof(tags)); - using var scope = _configurationProfileClientDiagnostics.CreateScope("ConfigurationProfileResource.SetTags"); + using var scope = _automanageConfigurationProfileConfigurationProfilesClientDiagnostics.CreateScope("AutomanageConfigurationProfileResource.SetTags"); scope.Start(); try { @@ -480,13 +480,13 @@ public virtual async Task> SetTagsAsync(I var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); originalTags.Value.Data.TagValues.ReplaceWith(tags); await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); - var originalResponse = await _configurationProfileRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new ConfigurationProfileResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = await _automanageConfigurationProfileConfigurationProfilesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new AutomanageConfigurationProfileResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; - var patch = new ConfigurationProfilePatch(); + var patch = new AutomanageConfigurationProfilePatch(); patch.Tags.ReplaceWith(tags); var result = await UpdateAsync(patch, cancellationToken: cancellationToken).ConfigureAwait(false); return result; @@ -515,11 +515,11 @@ public virtual async Task> SetTagsAsync(I /// The set of tags to use as replacement. /// The cancellation token to use. /// is null. - public virtual Response SetTags(IDictionary tags, CancellationToken cancellationToken = default) + public virtual Response SetTags(IDictionary tags, CancellationToken cancellationToken = default) { Argument.AssertNotNull(tags, nameof(tags)); - using var scope = _configurationProfileClientDiagnostics.CreateScope("ConfigurationProfileResource.SetTags"); + using var scope = _automanageConfigurationProfileConfigurationProfilesClientDiagnostics.CreateScope("AutomanageConfigurationProfileResource.SetTags"); scope.Start(); try { @@ -529,13 +529,13 @@ public virtual Response SetTags(IDictionary SetTags(IDictionary The key for the tag. /// The cancellation token to use. /// is null. - public virtual async Task> RemoveTagAsync(string key, CancellationToken cancellationToken = default) + public virtual async Task> RemoveTagAsync(string key, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); - using var scope = _configurationProfileClientDiagnostics.CreateScope("ConfigurationProfileResource.RemoveTag"); + using var scope = _automanageConfigurationProfileConfigurationProfilesClientDiagnostics.CreateScope("AutomanageConfigurationProfileResource.RemoveTag"); scope.Start(); try { @@ -577,13 +577,13 @@ public virtual async Task> RemoveTagAsync var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); originalTags.Value.Data.TagValues.Remove(key); await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); - var originalResponse = await _configurationProfileRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new ConfigurationProfileResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = await _automanageConfigurationProfileConfigurationProfilesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new AutomanageConfigurationProfileResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; - var patch = new ConfigurationProfilePatch(); + var patch = new AutomanageConfigurationProfilePatch(); foreach (var tag in current.Tags) { patch.Tags.Add(tag); @@ -616,11 +616,11 @@ public virtual async Task> RemoveTagAsync /// The key for the tag. /// The cancellation token to use. /// is null. - public virtual Response RemoveTag(string key, CancellationToken cancellationToken = default) + public virtual Response RemoveTag(string key, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); - using var scope = _configurationProfileClientDiagnostics.CreateScope("ConfigurationProfileResource.RemoveTag"); + using var scope = _automanageConfigurationProfileConfigurationProfilesClientDiagnostics.CreateScope("AutomanageConfigurationProfileResource.RemoveTag"); scope.Start(); try { @@ -629,13 +629,13 @@ public virtual Response RemoveTag(string key, Canc var originalTags = GetTagResource().Get(cancellationToken); originalTags.Value.Data.TagValues.Remove(key); GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); - var originalResponse = _configurationProfileRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - return Response.FromValue(new ConfigurationProfileResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = _automanageConfigurationProfileConfigurationProfilesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + return Response.FromValue(new AutomanageConfigurationProfileResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { var current = Get(cancellationToken: cancellationToken).Value.Data; - var patch = new ConfigurationProfilePatch(); + var patch = new AutomanageConfigurationProfilePatch(); foreach (var tag in current.Tags) { patch.Tags.Add(tag); diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/ConfigurationProfileVersionCollection.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageConfigurationProfileVersionCollection.cs similarity index 62% rename from sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/ConfigurationProfileVersionCollection.cs rename to sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageConfigurationProfileVersionCollection.cs index 2446ea8d1b8a7..b05df886e6e94 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/ConfigurationProfileVersionCollection.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageConfigurationProfileVersionCollection.cs @@ -19,28 +19,28 @@ namespace Azure.ResourceManager.Automanage { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetConfigurationProfileVersions method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get an instance call the GetAutomanageConfigurationProfileVersions method from an instance of . /// - public partial class ConfigurationProfileVersionCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class AutomanageConfigurationProfileVersionCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _configurationProfileVersionConfigurationProfilesVersionsClientDiagnostics; - private readonly ConfigurationProfilesVersionsRestOperations _configurationProfileVersionConfigurationProfilesVersionsRestClient; + private readonly ClientDiagnostics _automanageConfigurationProfileVersionConfigurationProfilesVersionsClientDiagnostics; + private readonly ConfigurationProfilesVersionsRestOperations _automanageConfigurationProfileVersionConfigurationProfilesVersionsRestClient; - /// Initializes a new instance of the class for mocking. - protected ConfigurationProfileVersionCollection() + /// Initializes a new instance of the class for mocking. + protected AutomanageConfigurationProfileVersionCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal ConfigurationProfileVersionCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal AutomanageConfigurationProfileVersionCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _configurationProfileVersionConfigurationProfilesVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automanage", ConfigurationProfileVersionResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ConfigurationProfileVersionResource.ResourceType, out string configurationProfileVersionConfigurationProfilesVersionsApiVersion); - _configurationProfileVersionConfigurationProfilesVersionsRestClient = new ConfigurationProfilesVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, configurationProfileVersionConfigurationProfilesVersionsApiVersion); + _automanageConfigurationProfileVersionConfigurationProfilesVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automanage", AutomanageConfigurationProfileVersionResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(AutomanageConfigurationProfileVersionResource.ResourceType, out string automanageConfigurationProfileVersionConfigurationProfilesVersionsApiVersion); + _automanageConfigurationProfileVersionConfigurationProfilesVersionsRestClient = new ConfigurationProfilesVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, automanageConfigurationProfileVersionConfigurationProfilesVersionsApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -48,8 +48,8 @@ internal ConfigurationProfileVersionCollection(ArmClient client, ResourceIdentif internal static void ValidateResourceId(ResourceIdentifier id) { - if (id.ResourceType != ConfigurationProfileResource.ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ConfigurationProfileResource.ResourceType), nameof(id)); + if (id.ResourceType != AutomanageConfigurationProfileResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, AutomanageConfigurationProfileResource.ResourceType), nameof(id)); } /// @@ -71,17 +71,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string versionName, ConfigurationProfileData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string versionName, AutomanageConfigurationProfileData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(versionName, nameof(versionName)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _configurationProfileVersionConfigurationProfilesVersionsClientDiagnostics.CreateScope("ConfigurationProfileVersionCollection.CreateOrUpdate"); + using var scope = _automanageConfigurationProfileVersionConfigurationProfilesVersionsClientDiagnostics.CreateScope("AutomanageConfigurationProfileVersionCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _configurationProfileVersionConfigurationProfilesVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, versionName, data, cancellationToken).ConfigureAwait(false); - var operation = new AutomanageArmOperation(Response.FromValue(new ConfigurationProfileVersionResource(Client, response), response.GetRawResponse())); + var response = await _automanageConfigurationProfileVersionConfigurationProfilesVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, versionName, data, cancellationToken).ConfigureAwait(false); + var operation = new AutomanageArmOperation(Response.FromValue(new AutomanageConfigurationProfileVersionResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -112,17 +112,17 @@ public virtual async Task> Cre /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string versionName, ConfigurationProfileData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string versionName, AutomanageConfigurationProfileData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(versionName, nameof(versionName)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _configurationProfileVersionConfigurationProfilesVersionsClientDiagnostics.CreateScope("ConfigurationProfileVersionCollection.CreateOrUpdate"); + using var scope = _automanageConfigurationProfileVersionConfigurationProfilesVersionsClientDiagnostics.CreateScope("AutomanageConfigurationProfileVersionCollection.CreateOrUpdate"); scope.Start(); try { - var response = _configurationProfileVersionConfigurationProfilesVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, versionName, data, cancellationToken); - var operation = new AutomanageArmOperation(Response.FromValue(new ConfigurationProfileVersionResource(Client, response), response.GetRawResponse())); + var response = _automanageConfigurationProfileVersionConfigurationProfilesVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, versionName, data, cancellationToken); + var operation = new AutomanageArmOperation(Response.FromValue(new AutomanageConfigurationProfileVersionResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -151,18 +151,18 @@ public virtual ArmOperation CreateOrUpdate( /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string versionName, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string versionName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(versionName, nameof(versionName)); - using var scope = _configurationProfileVersionConfigurationProfilesVersionsClientDiagnostics.CreateScope("ConfigurationProfileVersionCollection.Get"); + using var scope = _automanageConfigurationProfileVersionConfigurationProfilesVersionsClientDiagnostics.CreateScope("AutomanageConfigurationProfileVersionCollection.Get"); scope.Start(); try { - var response = await _configurationProfileVersionConfigurationProfilesVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, versionName, cancellationToken).ConfigureAwait(false); + var response = await _automanageConfigurationProfileVersionConfigurationProfilesVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, versionName, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new ConfigurationProfileVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomanageConfigurationProfileVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -188,18 +188,18 @@ public virtual async Task> GetAsyn /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string versionName, CancellationToken cancellationToken = default) + public virtual Response Get(string versionName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(versionName, nameof(versionName)); - using var scope = _configurationProfileVersionConfigurationProfilesVersionsClientDiagnostics.CreateScope("ConfigurationProfileVersionCollection.Get"); + using var scope = _automanageConfigurationProfileVersionConfigurationProfilesVersionsClientDiagnostics.CreateScope("AutomanageConfigurationProfileVersionCollection.Get"); scope.Start(); try { - var response = _configurationProfileVersionConfigurationProfilesVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, versionName, cancellationToken); + var response = _automanageConfigurationProfileVersionConfigurationProfilesVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, versionName, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new ConfigurationProfileVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomanageConfigurationProfileVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -222,11 +222,11 @@ public virtual Response Get(string versionN /// /// /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _configurationProfileVersionConfigurationProfilesVersionsRestClient.CreateListChildResourcesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - return PageableHelpers.CreateAsyncPageable(FirstPageRequest, null, e => new ConfigurationProfileVersionResource(Client, ConfigurationProfileData.DeserializeConfigurationProfileData(e)), _configurationProfileVersionConfigurationProfilesVersionsClientDiagnostics, Pipeline, "ConfigurationProfileVersionCollection.GetAll", "value", null, cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _automanageConfigurationProfileVersionConfigurationProfilesVersionsRestClient.CreateListChildResourcesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return PageableHelpers.CreateAsyncPageable(FirstPageRequest, null, e => new AutomanageConfigurationProfileVersionResource(Client, AutomanageConfigurationProfileData.DeserializeAutomanageConfigurationProfileData(e)), _automanageConfigurationProfileVersionConfigurationProfilesVersionsClientDiagnostics, Pipeline, "AutomanageConfigurationProfileVersionCollection.GetAll", "value", null, cancellationToken); } /// @@ -243,11 +243,11 @@ public virtual AsyncPageable GetAllAsync(Ca /// /// /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _configurationProfileVersionConfigurationProfilesVersionsRestClient.CreateListChildResourcesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - return PageableHelpers.CreatePageable(FirstPageRequest, null, e => new ConfigurationProfileVersionResource(Client, ConfigurationProfileData.DeserializeConfigurationProfileData(e)), _configurationProfileVersionConfigurationProfilesVersionsClientDiagnostics, Pipeline, "ConfigurationProfileVersionCollection.GetAll", "value", null, cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _automanageConfigurationProfileVersionConfigurationProfilesVersionsRestClient.CreateListChildResourcesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return PageableHelpers.CreatePageable(FirstPageRequest, null, e => new AutomanageConfigurationProfileVersionResource(Client, AutomanageConfigurationProfileData.DeserializeAutomanageConfigurationProfileData(e)), _automanageConfigurationProfileVersionConfigurationProfilesVersionsClientDiagnostics, Pipeline, "AutomanageConfigurationProfileVersionCollection.GetAll", "value", null, cancellationToken); } /// @@ -271,11 +271,11 @@ public virtual async Task> ExistsAsync(string versionName, Cancel { Argument.AssertNotNullOrEmpty(versionName, nameof(versionName)); - using var scope = _configurationProfileVersionConfigurationProfilesVersionsClientDiagnostics.CreateScope("ConfigurationProfileVersionCollection.Exists"); + using var scope = _automanageConfigurationProfileVersionConfigurationProfilesVersionsClientDiagnostics.CreateScope("AutomanageConfigurationProfileVersionCollection.Exists"); scope.Start(); try { - var response = await _configurationProfileVersionConfigurationProfilesVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, versionName, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _automanageConfigurationProfileVersionConfigurationProfilesVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, versionName, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -306,11 +306,11 @@ public virtual Response Exists(string versionName, CancellationToken cance { Argument.AssertNotNullOrEmpty(versionName, nameof(versionName)); - using var scope = _configurationProfileVersionConfigurationProfilesVersionsClientDiagnostics.CreateScope("ConfigurationProfileVersionCollection.Exists"); + using var scope = _automanageConfigurationProfileVersionConfigurationProfilesVersionsClientDiagnostics.CreateScope("AutomanageConfigurationProfileVersionCollection.Exists"); scope.Start(); try { - var response = _configurationProfileVersionConfigurationProfilesVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, versionName, cancellationToken: cancellationToken); + var response = _automanageConfigurationProfileVersionConfigurationProfilesVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, versionName, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -320,7 +320,7 @@ public virtual Response Exists(string versionName, CancellationToken cance } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -330,7 +330,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/ConfigurationProfileVersionResource.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageConfigurationProfileVersionResource.cs similarity index 70% rename from sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/ConfigurationProfileVersionResource.cs rename to sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageConfigurationProfileVersionResource.cs index 1f543e6f31315..82fbc5a8060f7 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/ConfigurationProfileVersionResource.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/AutomanageConfigurationProfileVersionResource.cs @@ -18,46 +18,46 @@ namespace Azure.ResourceManager.Automanage { /// - /// A Class representing a ConfigurationProfileVersion along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetConfigurationProfileVersionResource method. - /// Otherwise you can get one from its parent resource using the GetConfigurationProfileVersion method. + /// A Class representing an AutomanageConfigurationProfileVersion along with the instance operations that can be performed on it. + /// If you have a you can construct an + /// from an instance of using the GetAutomanageConfigurationProfileVersionResource method. + /// Otherwise you can get one from its parent resource using the GetAutomanageConfigurationProfileVersion method. /// - public partial class ConfigurationProfileVersionResource : ArmResource + public partial class AutomanageConfigurationProfileVersionResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string configurationProfileName, string versionName) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automanage/configurationProfiles/{configurationProfileName}/versions/{versionName}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _configurationProfileVersionConfigurationProfilesVersionsClientDiagnostics; - private readonly ConfigurationProfilesVersionsRestOperations _configurationProfileVersionConfigurationProfilesVersionsRestClient; - private readonly ConfigurationProfileData _data; + private readonly ClientDiagnostics _automanageConfigurationProfileVersionConfigurationProfilesVersionsClientDiagnostics; + private readonly ConfigurationProfilesVersionsRestOperations _automanageConfigurationProfileVersionConfigurationProfilesVersionsRestClient; + private readonly AutomanageConfigurationProfileData _data; - /// Initializes a new instance of the class for mocking. - protected ConfigurationProfileVersionResource() + /// Initializes a new instance of the class for mocking. + protected AutomanageConfigurationProfileVersionResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal ConfigurationProfileVersionResource(ArmClient client, ConfigurationProfileData data) : this(client, data.Id) + internal AutomanageConfigurationProfileVersionResource(ArmClient client, AutomanageConfigurationProfileData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal ConfigurationProfileVersionResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal AutomanageConfigurationProfileVersionResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _configurationProfileVersionConfigurationProfilesVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automanage", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string configurationProfileVersionConfigurationProfilesVersionsApiVersion); - _configurationProfileVersionConfigurationProfilesVersionsRestClient = new ConfigurationProfilesVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, configurationProfileVersionConfigurationProfilesVersionsApiVersion); + _automanageConfigurationProfileVersionConfigurationProfilesVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automanage", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string automanageConfigurationProfileVersionConfigurationProfilesVersionsApiVersion); + _automanageConfigurationProfileVersionConfigurationProfilesVersionsRestClient = new ConfigurationProfilesVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, automanageConfigurationProfileVersionConfigurationProfilesVersionsApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -71,7 +71,7 @@ internal ConfigurationProfileVersionResource(ArmClient client, ResourceIdentifie /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual ConfigurationProfileData Data + public virtual AutomanageConfigurationProfileData Data { get { @@ -101,16 +101,16 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _configurationProfileVersionConfigurationProfilesVersionsClientDiagnostics.CreateScope("ConfigurationProfileVersionResource.Get"); + using var scope = _automanageConfigurationProfileVersionConfigurationProfilesVersionsClientDiagnostics.CreateScope("AutomanageConfigurationProfileVersionResource.Get"); scope.Start(); try { - var response = await _configurationProfileVersionConfigurationProfilesVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _automanageConfigurationProfileVersionConfigurationProfilesVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new ConfigurationProfileVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomanageConfigurationProfileVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -133,16 +133,16 @@ public virtual async Task> GetAsyn /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _configurationProfileVersionConfigurationProfilesVersionsClientDiagnostics.CreateScope("ConfigurationProfileVersionResource.Get"); + using var scope = _automanageConfigurationProfileVersionConfigurationProfilesVersionsClientDiagnostics.CreateScope("AutomanageConfigurationProfileVersionResource.Get"); scope.Start(); try { - var response = _configurationProfileVersionConfigurationProfilesVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _automanageConfigurationProfileVersionConfigurationProfilesVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new ConfigurationProfileVersionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomanageConfigurationProfileVersionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -168,11 +168,11 @@ public virtual Response Get(CancellationTok /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _configurationProfileVersionConfigurationProfilesVersionsClientDiagnostics.CreateScope("ConfigurationProfileVersionResource.Delete"); + using var scope = _automanageConfigurationProfileVersionConfigurationProfilesVersionsClientDiagnostics.CreateScope("AutomanageConfigurationProfileVersionResource.Delete"); scope.Start(); try { - var response = await _configurationProfileVersionConfigurationProfilesVersionsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _automanageConfigurationProfileVersionConfigurationProfilesVersionsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); var operation = new AutomanageArmOperation(response); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); @@ -202,11 +202,11 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _configurationProfileVersionConfigurationProfilesVersionsClientDiagnostics.CreateScope("ConfigurationProfileVersionResource.Delete"); + using var scope = _automanageConfigurationProfileVersionConfigurationProfilesVersionsClientDiagnostics.CreateScope("AutomanageConfigurationProfileVersionResource.Delete"); scope.Start(); try { - var response = _configurationProfileVersionConfigurationProfilesVersionsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _automanageConfigurationProfileVersionConfigurationProfilesVersionsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); var operation = new AutomanageArmOperation(response); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); @@ -236,16 +236,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// Parameters supplied to create or update configuration profile. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, ConfigurationProfileData data, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(WaitUntil waitUntil, AutomanageConfigurationProfileData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _configurationProfileVersionConfigurationProfilesVersionsClientDiagnostics.CreateScope("ConfigurationProfileVersionResource.Update"); + using var scope = _automanageConfigurationProfileVersionConfigurationProfilesVersionsClientDiagnostics.CreateScope("AutomanageConfigurationProfileVersionResource.Update"); scope.Start(); try { - var response = await _configurationProfileVersionConfigurationProfilesVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new AutomanageArmOperation(Response.FromValue(new ConfigurationProfileVersionResource(Client, response), response.GetRawResponse())); + var response = await _automanageConfigurationProfileVersionConfigurationProfilesVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new AutomanageArmOperation(Response.FromValue(new AutomanageConfigurationProfileVersionResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -274,16 +274,16 @@ public virtual async Task> Upd /// Parameters supplied to create or update configuration profile. /// The cancellation token to use. /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, ConfigurationProfileData data, CancellationToken cancellationToken = default) + public virtual ArmOperation Update(WaitUntil waitUntil, AutomanageConfigurationProfileData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _configurationProfileVersionConfigurationProfilesVersionsClientDiagnostics.CreateScope("ConfigurationProfileVersionResource.Update"); + using var scope = _automanageConfigurationProfileVersionConfigurationProfilesVersionsClientDiagnostics.CreateScope("AutomanageConfigurationProfileVersionResource.Update"); scope.Start(); try { - var response = _configurationProfileVersionConfigurationProfilesVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new AutomanageArmOperation(Response.FromValue(new ConfigurationProfileVersionResource(Client, response), response.GetRawResponse())); + var response = _automanageConfigurationProfileVersionConfigurationProfilesVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new AutomanageArmOperation(Response.FromValue(new AutomanageConfigurationProfileVersionResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -312,12 +312,12 @@ public virtual ArmOperation Update(WaitUnti /// The value for the tag. /// The cancellation token to use. /// or is null. - public virtual async Task> AddTagAsync(string key, string value, CancellationToken cancellationToken = default) + public virtual async Task> AddTagAsync(string key, string value, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); Argument.AssertNotNull(value, nameof(value)); - using var scope = _configurationProfileVersionConfigurationProfilesVersionsClientDiagnostics.CreateScope("ConfigurationProfileVersionResource.AddTag"); + using var scope = _automanageConfigurationProfileVersionConfigurationProfilesVersionsClientDiagnostics.CreateScope("AutomanageConfigurationProfileVersionResource.AddTag"); scope.Start(); try { @@ -326,8 +326,8 @@ public virtual async Task> AddTagA var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); originalTags.Value.Data.TagValues[key] = value; await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); - var originalResponse = await _configurationProfileVersionConfigurationProfilesVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new ConfigurationProfileVersionResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = await _automanageConfigurationProfileVersionConfigurationProfilesVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new AutomanageConfigurationProfileVersionResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { @@ -361,12 +361,12 @@ public virtual async Task> AddTagA /// The value for the tag. /// The cancellation token to use. /// or is null. - public virtual Response AddTag(string key, string value, CancellationToken cancellationToken = default) + public virtual Response AddTag(string key, string value, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); Argument.AssertNotNull(value, nameof(value)); - using var scope = _configurationProfileVersionConfigurationProfilesVersionsClientDiagnostics.CreateScope("ConfigurationProfileVersionResource.AddTag"); + using var scope = _automanageConfigurationProfileVersionConfigurationProfilesVersionsClientDiagnostics.CreateScope("AutomanageConfigurationProfileVersionResource.AddTag"); scope.Start(); try { @@ -375,8 +375,8 @@ public virtual Response AddTag(string key, var originalTags = GetTagResource().Get(cancellationToken); originalTags.Value.Data.TagValues[key] = value; GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); - var originalResponse = _configurationProfileVersionConfigurationProfilesVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - return Response.FromValue(new ConfigurationProfileVersionResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = _automanageConfigurationProfileVersionConfigurationProfilesVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + return Response.FromValue(new AutomanageConfigurationProfileVersionResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { @@ -409,11 +409,11 @@ public virtual Response AddTag(string key, /// The set of tags to use as replacement. /// The cancellation token to use. /// is null. - public virtual async Task> SetTagsAsync(IDictionary tags, CancellationToken cancellationToken = default) + public virtual async Task> SetTagsAsync(IDictionary tags, CancellationToken cancellationToken = default) { Argument.AssertNotNull(tags, nameof(tags)); - using var scope = _configurationProfileVersionConfigurationProfilesVersionsClientDiagnostics.CreateScope("ConfigurationProfileVersionResource.SetTags"); + using var scope = _automanageConfigurationProfileVersionConfigurationProfilesVersionsClientDiagnostics.CreateScope("AutomanageConfigurationProfileVersionResource.SetTags"); scope.Start(); try { @@ -423,8 +423,8 @@ public virtual async Task> SetTags var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); originalTags.Value.Data.TagValues.ReplaceWith(tags); await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); - var originalResponse = await _configurationProfileVersionConfigurationProfilesVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new ConfigurationProfileVersionResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = await _automanageConfigurationProfileVersionConfigurationProfilesVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new AutomanageConfigurationProfileVersionResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { @@ -457,11 +457,11 @@ public virtual async Task> SetTags /// The set of tags to use as replacement. /// The cancellation token to use. /// is null. - public virtual Response SetTags(IDictionary tags, CancellationToken cancellationToken = default) + public virtual Response SetTags(IDictionary tags, CancellationToken cancellationToken = default) { Argument.AssertNotNull(tags, nameof(tags)); - using var scope = _configurationProfileVersionConfigurationProfilesVersionsClientDiagnostics.CreateScope("ConfigurationProfileVersionResource.SetTags"); + using var scope = _automanageConfigurationProfileVersionConfigurationProfilesVersionsClientDiagnostics.CreateScope("AutomanageConfigurationProfileVersionResource.SetTags"); scope.Start(); try { @@ -471,8 +471,8 @@ public virtual Response SetTags(IDictionary var originalTags = GetTagResource().Get(cancellationToken); originalTags.Value.Data.TagValues.ReplaceWith(tags); GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); - var originalResponse = _configurationProfileVersionConfigurationProfilesVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - return Response.FromValue(new ConfigurationProfileVersionResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = _automanageConfigurationProfileVersionConfigurationProfilesVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + return Response.FromValue(new AutomanageConfigurationProfileVersionResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { @@ -505,11 +505,11 @@ public virtual Response SetTags(IDictionary /// The key for the tag. /// The cancellation token to use. /// is null. - public virtual async Task> RemoveTagAsync(string key, CancellationToken cancellationToken = default) + public virtual async Task> RemoveTagAsync(string key, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); - using var scope = _configurationProfileVersionConfigurationProfilesVersionsClientDiagnostics.CreateScope("ConfigurationProfileVersionResource.RemoveTag"); + using var scope = _automanageConfigurationProfileVersionConfigurationProfilesVersionsClientDiagnostics.CreateScope("AutomanageConfigurationProfileVersionResource.RemoveTag"); scope.Start(); try { @@ -518,8 +518,8 @@ public virtual async Task> RemoveT var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); originalTags.Value.Data.TagValues.Remove(key); await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); - var originalResponse = await _configurationProfileVersionConfigurationProfilesVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new ConfigurationProfileVersionResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = await _automanageConfigurationProfileVersionConfigurationProfilesVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new AutomanageConfigurationProfileVersionResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { @@ -552,11 +552,11 @@ public virtual async Task> RemoveT /// The key for the tag. /// The cancellation token to use. /// is null. - public virtual Response RemoveTag(string key, CancellationToken cancellationToken = default) + public virtual Response RemoveTag(string key, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); - using var scope = _configurationProfileVersionConfigurationProfilesVersionsClientDiagnostics.CreateScope("ConfigurationProfileVersionResource.RemoveTag"); + using var scope = _automanageConfigurationProfileVersionConfigurationProfilesVersionsClientDiagnostics.CreateScope("AutomanageConfigurationProfileVersionResource.RemoveTag"); scope.Start(); try { @@ -565,8 +565,8 @@ public virtual Response RemoveTag(string ke var originalTags = GetTagResource().Get(cancellationToken); originalTags.Value.Data.TagValues.Remove(key); GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); - var originalResponse = _configurationProfileVersionConfigurationProfilesVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - return Response.FromValue(new ConfigurationProfileVersionResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = _automanageConfigurationProfileVersionConfigurationProfilesVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + return Response.FromValue(new AutomanageConfigurationProfileVersionResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Extensions/AutomanageExtensions.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Extensions/AutomanageExtensions.cs index 0a1713ca52d92..21c7b1ca55aed 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Extensions/AutomanageExtensions.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Extensions/AutomanageExtensions.cs @@ -11,6 +11,7 @@ using Azure; using Azure.Core; using Azure.ResourceManager; +using Azure.ResourceManager.Automanage.Models; using Azure.ResourceManager.Resources; namespace Azure.ResourceManager.Automanage @@ -27,12 +28,12 @@ private static TenantResourceExtensionClient GetExtensionClient(TenantResource t ); } - /// Gets a collection of BestPracticeResources in the TenantResource. + /// Gets a collection of AutomanageBestPracticeResources in the TenantResource. /// The instance the method will execute against. - /// An object representing collection of BestPracticeResources and their operations over a BestPracticeResource. - public static BestPracticeCollection GetBestPractices(this TenantResource tenantResource) + /// An object representing collection of AutomanageBestPracticeResources and their operations over a AutomanageBestPracticeResource. + public static AutomanageBestPracticeCollection GetAutomanageBestPractices(this TenantResource tenantResource) { - return GetExtensionClient(tenantResource).GetBestPractices(); + return GetExtensionClient(tenantResource).GetAutomanageBestPractices(); } /// @@ -54,9 +55,9 @@ public static BestPracticeCollection GetBestPractices(this TenantResource tenant /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public static async Task> GetBestPracticeAsync(this TenantResource tenantResource, string bestPracticeName, CancellationToken cancellationToken = default) + public static async Task> GetAutomanageBestPracticeAsync(this TenantResource tenantResource, string bestPracticeName, CancellationToken cancellationToken = default) { - return await tenantResource.GetBestPractices().GetAsync(bestPracticeName, cancellationToken).ConfigureAwait(false); + return await tenantResource.GetAutomanageBestPractices().GetAsync(bestPracticeName, cancellationToken).ConfigureAwait(false); } /// @@ -78,9 +79,9 @@ public static async Task> GetBestPracticeAsync(th /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public static Response GetBestPractice(this TenantResource tenantResource, string bestPracticeName, CancellationToken cancellationToken = default) + public static Response GetAutomanageBestPractice(this TenantResource tenantResource, string bestPracticeName, CancellationToken cancellationToken = default) { - return tenantResource.GetBestPractices().Get(bestPracticeName, cancellationToken); + return tenantResource.GetAutomanageBestPractices().Get(bestPracticeName, cancellationToken); } private static SubscriptionResourceExtensionClient GetExtensionClient(SubscriptionResource subscriptionResource) @@ -92,12 +93,25 @@ private static SubscriptionResourceExtensionClient GetExtensionClient(Subscripti ); } - /// Gets an object representing a ServicePrincipalResource along with the instance operations that can be performed on it in the SubscriptionResource. + /// + /// Retrieve a list of configuration profile within a subscription + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.Automanage/configurationProfiles + /// + /// + /// Operation Id + /// ConfigurationProfiles_ListBySubscription + /// + /// + /// /// The instance the method will execute against. - /// Returns a object. - public static ServicePrincipalResource GetServicePrincipal(this SubscriptionResource subscriptionResource) + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public static AsyncPageable GetAutomanageConfigurationProfilesAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) { - return GetExtensionClient(subscriptionResource).GetServicePrincipal(); + return GetExtensionClient(subscriptionResource).GetAutomanageConfigurationProfilesAsync(cancellationToken); } /// @@ -115,31 +129,92 @@ public static ServicePrincipalResource GetServicePrincipal(this SubscriptionReso /// /// The instance the method will execute against. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public static AsyncPageable GetConfigurationProfilesAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public static Pageable GetAutomanageConfigurationProfiles(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) { - return GetExtensionClient(subscriptionResource).GetConfigurationProfilesAsync(cancellationToken); + return GetExtensionClient(subscriptionResource).GetAutomanageConfigurationProfiles(cancellationToken); } /// - /// Retrieve a list of configuration profile within a subscription + /// Get the Automanage AAD first party Application Service Principal details for the subscription id. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.Automanage/configurationProfiles + /// /subscriptions/{subscriptionId}/providers/Microsoft.Automanage/servicePrincipals /// /// /// Operation Id - /// ConfigurationProfiles_ListBySubscription + /// ServicePrincipals_ListBySubscription + /// + /// + /// + /// The instance the method will execute against. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public static AsyncPageable GetServicePrincipalsAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + { + return GetExtensionClient(subscriptionResource).GetServicePrincipalsAsync(cancellationToken); + } + + /// + /// Get the Automanage AAD first party Application Service Principal details for the subscription id. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.Automanage/servicePrincipals + /// + /// + /// Operation Id + /// ServicePrincipals_ListBySubscription + /// + /// + /// + /// The instance the method will execute against. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public static Pageable GetServicePrincipals(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + { + return GetExtensionClient(subscriptionResource).GetServicePrincipals(cancellationToken); + } + + /// + /// Get the Automanage AAD first party Application Service Principal details for the subscription id. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.Automanage/servicePrincipals/default + /// + /// + /// Operation Id + /// ServicePrincipals_Get /// /// /// /// The instance the method will execute against. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public static Pageable GetConfigurationProfiles(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + public static async Task> GetServicePrincipalAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) { - return GetExtensionClient(subscriptionResource).GetConfigurationProfiles(cancellationToken); + return await GetExtensionClient(subscriptionResource).GetServicePrincipalAsync(cancellationToken).ConfigureAwait(false); + } + + /// + /// Get the Automanage AAD first party Application Service Principal details for the subscription id. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.Automanage/servicePrincipals/default + /// + /// + /// Operation Id + /// ServicePrincipals_Get + /// + /// + /// + /// The instance the method will execute against. + /// The cancellation token to use. + public static Response GetServicePrincipal(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + { + return GetExtensionClient(subscriptionResource).GetServicePrincipal(cancellationToken); } private static ResourceGroupResourceExtensionClient GetExtensionClient(ResourceGroupResource resourceGroupResource) @@ -151,12 +226,12 @@ private static ResourceGroupResourceExtensionClient GetExtensionClient(ResourceG ); } - /// Gets a collection of ConfigurationProfileResources in the ResourceGroupResource. + /// Gets a collection of AutomanageConfigurationProfileResources in the ResourceGroupResource. /// The instance the method will execute against. - /// An object representing collection of ConfigurationProfileResources and their operations over a ConfigurationProfileResource. - public static ConfigurationProfileCollection GetConfigurationProfiles(this ResourceGroupResource resourceGroupResource) + /// An object representing collection of AutomanageConfigurationProfileResources and their operations over a AutomanageConfigurationProfileResource. + public static AutomanageConfigurationProfileCollection GetAutomanageConfigurationProfiles(this ResourceGroupResource resourceGroupResource) { - return GetExtensionClient(resourceGroupResource).GetConfigurationProfiles(); + return GetExtensionClient(resourceGroupResource).GetAutomanageConfigurationProfiles(); } /// @@ -178,9 +253,9 @@ public static ConfigurationProfileCollection GetConfigurationProfiles(this Resou /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public static async Task> GetConfigurationProfileAsync(this ResourceGroupResource resourceGroupResource, string configurationProfileName, CancellationToken cancellationToken = default) + public static async Task> GetAutomanageConfigurationProfileAsync(this ResourceGroupResource resourceGroupResource, string configurationProfileName, CancellationToken cancellationToken = default) { - return await resourceGroupResource.GetConfigurationProfiles().GetAsync(configurationProfileName, cancellationToken).ConfigureAwait(false); + return await resourceGroupResource.GetAutomanageConfigurationProfiles().GetAsync(configurationProfileName, cancellationToken).ConfigureAwait(false); } /// @@ -202,9 +277,9 @@ public static async Task> GetConfiguratio /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public static Response GetConfigurationProfile(this ResourceGroupResource resourceGroupResource, string configurationProfileName, CancellationToken cancellationToken = default) + public static Response GetAutomanageConfigurationProfile(this ResourceGroupResource resourceGroupResource, string configurationProfileName, CancellationToken cancellationToken = default) { - return resourceGroupResource.GetConfigurationProfiles().Get(configurationProfileName, cancellationToken); + return resourceGroupResource.GetAutomanageConfigurationProfiles().Get(configurationProfileName, cancellationToken); } private static ArmResourceExtensionClient GetExtensionClient(ArmClient client, ResourceIdentifier scope) @@ -438,58 +513,58 @@ public static Response - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static BestPracticeResource GetBestPracticeResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static AutomanageBestPracticeResource GetAutomanageBestPracticeResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - BestPracticeResource.ValidateResourceId(id); - return new BestPracticeResource(client, id); + AutomanageBestPracticeResource.ValidateResourceId(id); + return new AutomanageBestPracticeResource(client, id); } ); } #endregion - #region ConfigurationProfileResource + #region AutomanageConfigurationProfileResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static ConfigurationProfileResource GetConfigurationProfileResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static AutomanageConfigurationProfileResource GetAutomanageConfigurationProfileResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - ConfigurationProfileResource.ValidateResourceId(id); - return new ConfigurationProfileResource(client, id); + AutomanageConfigurationProfileResource.ValidateResourceId(id); + return new AutomanageConfigurationProfileResource(client, id); } ); } #endregion - #region ConfigurationProfileVersionResource + #region AutomanageConfigurationProfileVersionResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static ConfigurationProfileVersionResource GetConfigurationProfileVersionResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static AutomanageConfigurationProfileVersionResource GetAutomanageConfigurationProfileVersionResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - ConfigurationProfileVersionResource.ValidateResourceId(id); - return new ConfigurationProfileVersionResource(client, id); + AutomanageConfigurationProfileVersionResource.ValidateResourceId(id); + return new AutomanageConfigurationProfileVersionResource(client, id); } ); } @@ -608,24 +683,5 @@ public static AutomanageHciClusterConfigurationProfileAssignmentReportResource G ); } #endregion - - #region ServicePrincipalResource - /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. - /// - /// The instance the method will execute against. - /// The resource ID of the resource to get. - /// Returns a object. - public static ServicePrincipalResource GetServicePrincipalResource(this ArmClient client, ResourceIdentifier id) - { - return client.GetResourceClient(() => - { - ServicePrincipalResource.ValidateResourceId(id); - return new ServicePrincipalResource(client, id); - } - ); - } - #endregion } } diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs index 8de9ddc030659..80056435c5029 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs @@ -31,11 +31,11 @@ private string GetApiVersionOrNull(ResourceType resourceType) return apiVersion; } - /// Gets a collection of ConfigurationProfileResources in the ResourceGroupResource. - /// An object representing collection of ConfigurationProfileResources and their operations over a ConfigurationProfileResource. - public virtual ConfigurationProfileCollection GetConfigurationProfiles() + /// Gets a collection of AutomanageConfigurationProfileResources in the ResourceGroupResource. + /// An object representing collection of AutomanageConfigurationProfileResources and their operations over a AutomanageConfigurationProfileResource. + public virtual AutomanageConfigurationProfileCollection GetAutomanageConfigurationProfiles() { - return GetCachedClient(Client => new ConfigurationProfileCollection(Client, Id)); + return GetCachedClient(Client => new AutomanageConfigurationProfileCollection(Client, Id)); } } } diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs index 4900d56637f0b..5c3a879165f5c 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs @@ -5,19 +5,24 @@ #nullable disable +using System; using System.Threading; +using System.Threading.Tasks; using Azure; using Azure.Core; using Azure.Core.Pipeline; using Azure.ResourceManager; +using Azure.ResourceManager.Automanage.Models; namespace Azure.ResourceManager.Automanage { /// A class to add extension methods to SubscriptionResource. internal partial class SubscriptionResourceExtensionClient : ArmResource { - private ClientDiagnostics _configurationProfileClientDiagnostics; - private ConfigurationProfilesRestOperations _configurationProfileRestClient; + private ClientDiagnostics _automanageConfigurationProfileConfigurationProfilesClientDiagnostics; + private ConfigurationProfilesRestOperations _automanageConfigurationProfileConfigurationProfilesRestClient; + private ClientDiagnostics _servicePrincipalsClientDiagnostics; + private ServicePrincipalsRestOperations _servicePrincipalsRestClient; /// Initializes a new instance of the class for mocking. protected SubscriptionResourceExtensionClient() @@ -31,8 +36,10 @@ internal SubscriptionResourceExtensionClient(ArmClient client, ResourceIdentifie { } - private ClientDiagnostics ConfigurationProfileClientDiagnostics => _configurationProfileClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.Automanage", ConfigurationProfileResource.ResourceType.Namespace, Diagnostics); - private ConfigurationProfilesRestOperations ConfigurationProfileRestClient => _configurationProfileRestClient ??= new ConfigurationProfilesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(ConfigurationProfileResource.ResourceType)); + private ClientDiagnostics AutomanageConfigurationProfileConfigurationProfilesClientDiagnostics => _automanageConfigurationProfileConfigurationProfilesClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.Automanage", AutomanageConfigurationProfileResource.ResourceType.Namespace, Diagnostics); + private ConfigurationProfilesRestOperations AutomanageConfigurationProfileConfigurationProfilesRestClient => _automanageConfigurationProfileConfigurationProfilesRestClient ??= new ConfigurationProfilesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(AutomanageConfigurationProfileResource.ResourceType)); + private ClientDiagnostics ServicePrincipalsClientDiagnostics => _servicePrincipalsClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.Automanage", ProviderConstants.DefaultProviderNamespace, Diagnostics); + private ServicePrincipalsRestOperations ServicePrincipalsRestClient => _servicePrincipalsRestClient ??= new ServicePrincipalsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); private string GetApiVersionOrNull(ResourceType resourceType) { @@ -40,13 +47,6 @@ private string GetApiVersionOrNull(ResourceType resourceType) return apiVersion; } - /// Gets an object representing a ServicePrincipalResource along with the instance operations that can be performed on it in the SubscriptionResource. - /// Returns a object. - public virtual ServicePrincipalResource GetServicePrincipal() - { - return new ServicePrincipalResource(Client, new ResourceIdentifier(Id.ToString() + "/providers/Microsoft.Automanage/servicePrincipals/default")); - } - /// /// Retrieve a list of configuration profile within a subscription /// @@ -61,11 +61,11 @@ public virtual ServicePrincipalResource GetServicePrincipal() /// /// /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetConfigurationProfilesAsync(CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAutomanageConfigurationProfilesAsync(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => ConfigurationProfileRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); - return PageableHelpers.CreateAsyncPageable(FirstPageRequest, null, e => new ConfigurationProfileResource(Client, ConfigurationProfileData.DeserializeConfigurationProfileData(e)), ConfigurationProfileClientDiagnostics, Pipeline, "SubscriptionResourceExtensionClient.GetConfigurationProfiles", "value", null, cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => AutomanageConfigurationProfileConfigurationProfilesRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); + return PageableHelpers.CreateAsyncPageable(FirstPageRequest, null, e => new AutomanageConfigurationProfileResource(Client, AutomanageConfigurationProfileData.DeserializeAutomanageConfigurationProfileData(e)), AutomanageConfigurationProfileConfigurationProfilesClientDiagnostics, Pipeline, "SubscriptionResourceExtensionClient.GetAutomanageConfigurationProfiles", "value", null, cancellationToken); } /// @@ -82,11 +82,113 @@ public virtual AsyncPageable GetConfigurationProfi /// /// /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetConfigurationProfiles(CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAutomanageConfigurationProfiles(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => AutomanageConfigurationProfileConfigurationProfilesRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); + return PageableHelpers.CreatePageable(FirstPageRequest, null, e => new AutomanageConfigurationProfileResource(Client, AutomanageConfigurationProfileData.DeserializeAutomanageConfigurationProfileData(e)), AutomanageConfigurationProfileConfigurationProfilesClientDiagnostics, Pipeline, "SubscriptionResourceExtensionClient.GetAutomanageConfigurationProfiles", "value", null, cancellationToken); + } + + /// + /// Get the Automanage AAD first party Application Service Principal details for the subscription id. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.Automanage/servicePrincipals + /// + /// + /// Operation Id + /// ServicePrincipals_ListBySubscription + /// + /// + /// + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetServicePrincipalsAsync(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => ServicePrincipalsRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); + return PageableHelpers.CreateAsyncPageable(FirstPageRequest, null, AutomanageServicePrincipalData.DeserializeAutomanageServicePrincipalData, ServicePrincipalsClientDiagnostics, Pipeline, "SubscriptionResourceExtensionClient.GetServicePrincipals", "value", null, cancellationToken); + } + + /// + /// Get the Automanage AAD first party Application Service Principal details for the subscription id. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.Automanage/servicePrincipals + /// + /// + /// Operation Id + /// ServicePrincipals_ListBySubscription + /// + /// + /// + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetServicePrincipals(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => ServicePrincipalsRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); + return PageableHelpers.CreatePageable(FirstPageRequest, null, AutomanageServicePrincipalData.DeserializeAutomanageServicePrincipalData, ServicePrincipalsClientDiagnostics, Pipeline, "SubscriptionResourceExtensionClient.GetServicePrincipals", "value", null, cancellationToken); + } + + /// + /// Get the Automanage AAD first party Application Service Principal details for the subscription id. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.Automanage/servicePrincipals/default + /// + /// + /// Operation Id + /// ServicePrincipals_Get + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetServicePrincipalAsync(CancellationToken cancellationToken = default) + { + using var scope = ServicePrincipalsClientDiagnostics.CreateScope("SubscriptionResourceExtensionClient.GetServicePrincipal"); + scope.Start(); + try + { + var response = await ServicePrincipalsRestClient.GetAsync(Id.SubscriptionId, cancellationToken).ConfigureAwait(false); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get the Automanage AAD first party Application Service Principal details for the subscription id. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.Automanage/servicePrincipals/default + /// + /// + /// Operation Id + /// ServicePrincipals_Get + /// + /// + /// + /// The cancellation token to use. + public virtual Response GetServicePrincipal(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => ConfigurationProfileRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); - return PageableHelpers.CreatePageable(FirstPageRequest, null, e => new ConfigurationProfileResource(Client, ConfigurationProfileData.DeserializeConfigurationProfileData(e)), ConfigurationProfileClientDiagnostics, Pipeline, "SubscriptionResourceExtensionClient.GetConfigurationProfiles", "value", null, cancellationToken); + using var scope = ServicePrincipalsClientDiagnostics.CreateScope("SubscriptionResourceExtensionClient.GetServicePrincipal"); + scope.Start(); + try + { + var response = ServicePrincipalsRestClient.Get(Id.SubscriptionId, cancellationToken); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } } } } diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Extensions/TenantResourceExtensionClient.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Extensions/TenantResourceExtensionClient.cs index 2a9dd0caca200..a7a4d95ff0488 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Extensions/TenantResourceExtensionClient.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Extensions/TenantResourceExtensionClient.cs @@ -31,11 +31,11 @@ private string GetApiVersionOrNull(ResourceType resourceType) return apiVersion; } - /// Gets a collection of BestPracticeResources in the TenantResource. - /// An object representing collection of BestPracticeResources and their operations over a BestPracticeResource. - public virtual BestPracticeCollection GetBestPractices() + /// Gets a collection of AutomanageBestPracticeResources in the TenantResource. + /// An object representing collection of AutomanageBestPracticeResources and their operations over a AutomanageBestPracticeResource. + public virtual AutomanageBestPracticeCollection GetAutomanageBestPractices() { - return GetCachedClient(Client => new BestPracticeCollection(Client, Id)); + return GetCachedClient(Client => new AutomanageBestPracticeCollection(Client, Id)); } } } diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/BestPracticeData.Serialization.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageBestPracticeData.Serialization.cs similarity index 90% rename from sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/BestPracticeData.Serialization.cs rename to sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageBestPracticeData.Serialization.cs index 0cdd93ea4924b..b295432dc8ff8 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/BestPracticeData.Serialization.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageBestPracticeData.Serialization.cs @@ -12,9 +12,9 @@ namespace Azure.ResourceManager.Automanage { - public partial class BestPracticeData + public partial class AutomanageBestPracticeData { - internal static BestPracticeData DeserializeBestPracticeData(JsonElement element) + internal static AutomanageBestPracticeData DeserializeAutomanageBestPracticeData(JsonElement element) { ResourceIdentifier id = default; string name = default; @@ -71,7 +71,7 @@ internal static BestPracticeData DeserializeBestPracticeData(JsonElement element continue; } } - return new BestPracticeData(id, name, type, systemData.Value, configuration.Value); + return new AutomanageBestPracticeData(id, name, type, systemData.Value, configuration.Value); } } } diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageConfigurationProfileAssignmentData.Serialization.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageConfigurationProfileAssignmentData.Serialization.cs index 7ce1c6da64f34..acdf6142fe6f3 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageConfigurationProfileAssignmentData.Serialization.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageConfigurationProfileAssignmentData.Serialization.cs @@ -27,7 +27,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) internal static AutomanageConfigurationProfileAssignmentData DeserializeAutomanageConfigurationProfileAssignmentData(JsonElement element) { - Optional properties = default; + Optional properties = default; Optional managedBy = default; ResourceIdentifier id = default; string name = default; @@ -42,7 +42,7 @@ internal static AutomanageConfigurationProfileAssignmentData DeserializeAutomana property.ThrowNonNullablePropertyIsNull(); continue; } - properties = ConfigurationProfileAssignmentProperties.DeserializeConfigurationProfileAssignmentProperties(property.Value); + properties = AutomanageConfigurationProfileAssignmentProperties.DeserializeAutomanageConfigurationProfileAssignmentProperties(property.Value); continue; } if (property.NameEquals("managedBy"u8)) diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ConfigurationProfileAssignmentProperties.Serialization.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageConfigurationProfileAssignmentProperties.Serialization.cs similarity index 51% rename from sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ConfigurationProfileAssignmentProperties.Serialization.cs rename to sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageConfigurationProfileAssignmentProperties.Serialization.cs index 9e79e45541381..fa2027fd610ae 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ConfigurationProfileAssignmentProperties.Serialization.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageConfigurationProfileAssignmentProperties.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Automanage.Models { - public partial class ConfigurationProfileAssignmentProperties : IUtf8JsonSerializable + public partial class AutomanageConfigurationProfileAssignmentProperties : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -23,21 +23,31 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static ConfigurationProfileAssignmentProperties DeserializeConfigurationProfileAssignmentProperties(JsonElement element) + internal static AutomanageConfigurationProfileAssignmentProperties DeserializeAutomanageConfigurationProfileAssignmentProperties(JsonElement element) { - Optional configurationProfile = default; - Optional targetId = default; + Optional configurationProfile = default; + Optional targetId = default; Optional status = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("configurationProfile"u8)) { - configurationProfile = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + configurationProfile = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("targetId"u8)) { - targetId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + targetId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("status"u8)) @@ -46,7 +56,7 @@ internal static ConfigurationProfileAssignmentProperties DeserializeConfiguratio continue; } } - return new ConfigurationProfileAssignmentProperties(configurationProfile.Value, targetId.Value, status.Value); + return new AutomanageConfigurationProfileAssignmentProperties(configurationProfile.Value, targetId.Value, status.Value); } } } diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ConfigurationProfileAssignmentProperties.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageConfigurationProfileAssignmentProperties.cs similarity index 60% rename from sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ConfigurationProfileAssignmentProperties.cs rename to sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageConfigurationProfileAssignmentProperties.cs index 088f50b4823f4..2b3a32f7ac071 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ConfigurationProfileAssignmentProperties.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageConfigurationProfileAssignmentProperties.cs @@ -5,21 +5,23 @@ #nullable disable +using Azure.Core; + namespace Azure.ResourceManager.Automanage.Models { /// Automanage configuration profile assignment properties. - public partial class ConfigurationProfileAssignmentProperties + public partial class AutomanageConfigurationProfileAssignmentProperties { - /// Initializes a new instance of ConfigurationProfileAssignmentProperties. - public ConfigurationProfileAssignmentProperties() + /// Initializes a new instance of AutomanageConfigurationProfileAssignmentProperties. + public AutomanageConfigurationProfileAssignmentProperties() { } - /// Initializes a new instance of ConfigurationProfileAssignmentProperties. + /// Initializes a new instance of AutomanageConfigurationProfileAssignmentProperties. /// The Automanage configurationProfile ARM Resource URI. /// The target VM resource URI. /// The status of onboarding, which only appears in the response. - internal ConfigurationProfileAssignmentProperties(string configurationProfile, string targetId, string status) + internal AutomanageConfigurationProfileAssignmentProperties(ResourceIdentifier configurationProfile, ResourceIdentifier targetId, string status) { ConfigurationProfile = configurationProfile; TargetId = targetId; @@ -27,9 +29,9 @@ internal ConfigurationProfileAssignmentProperties(string configurationProfile, s } /// The Automanage configurationProfile ARM Resource URI. - public string ConfigurationProfile { get; set; } + public ResourceIdentifier ConfigurationProfile { get; set; } /// The target VM resource URI. - public string TargetId { get; } + public ResourceIdentifier TargetId { get; } /// The status of onboarding, which only appears in the response. public string Status { get; } } diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageConfigurationProfileAssignmentReportData.Serialization.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageConfigurationProfileAssignmentReportData.Serialization.cs index 52fc406c27c10..8230d0cc32a3c 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageConfigurationProfileAssignmentReportData.Serialization.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageConfigurationProfileAssignmentReportData.Serialization.cs @@ -22,15 +22,15 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStartObject(); writer.WritePropertyName("properties"u8); writer.WriteStartObject(); - if (Optional.IsDefined(StartTime)) + if (Optional.IsDefined(StartOn)) { writer.WritePropertyName("startTime"u8); - writer.WriteStringValue(StartTime); + writer.WriteStringValue(StartOn.Value, "O"); } - if (Optional.IsDefined(EndTime)) + if (Optional.IsDefined(EndOn)) { writer.WritePropertyName("endTime"u8); - writer.WriteStringValue(EndTime); + writer.WriteStringValue(EndOn.Value, "O"); } writer.WriteEndObject(); writer.WriteEndObject(); @@ -42,14 +42,14 @@ internal static AutomanageConfigurationProfileAssignmentReportData DeserializeAu string name = default; ResourceType type = default; Optional systemData = default; - Optional startTime = default; - Optional endTime = default; - Optional lastModifiedTime = default; + Optional startTime = default; + Optional endTime = default; + Optional lastModifiedTime = default; Optional duration = default; Optional type0 = default; Optional status = default; Optional configurationProfile = default; - Optional> resources = default; + Optional> resources = default; Optional error = default; Optional reportFormatVersion = default; foreach (var property in element.EnumerateObject()) @@ -90,17 +90,32 @@ internal static AutomanageConfigurationProfileAssignmentReportData DeserializeAu { if (property0.NameEquals("startTime"u8)) { - startTime = property0.Value.GetString(); + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + startTime = property0.Value.GetDateTimeOffset("O"); continue; } if (property0.NameEquals("endTime"u8)) { - endTime = property0.Value.GetString(); + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + endTime = property0.Value.GetDateTimeOffset("O"); continue; } if (property0.NameEquals("lastModifiedTime"u8)) { - lastModifiedTime = property0.Value.GetString(); + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + lastModifiedTime = property0.Value.GetDateTimeOffset("O"); continue; } if (property0.NameEquals("duration"u8)) @@ -135,10 +150,10 @@ internal static AutomanageConfigurationProfileAssignmentReportData DeserializeAu property0.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property0.Value.EnumerateArray()) { - array.Add(ReportResource.DeserializeReportResource(item)); + array.Add(ConfigurationProfileAssignmentReportResourceDetails.DeserializeConfigurationProfileAssignmentReportResourceDetails(item)); } resources = array; continue; @@ -162,7 +177,7 @@ internal static AutomanageConfigurationProfileAssignmentReportData DeserializeAu continue; } } - return new AutomanageConfigurationProfileAssignmentReportData(id, name, type, systemData.Value, startTime.Value, endTime.Value, lastModifiedTime.Value, Optional.ToNullable(duration), type0.Value, status.Value, configurationProfile.Value, Optional.ToList(resources), error.Value, reportFormatVersion.Value); + return new AutomanageConfigurationProfileAssignmentReportData(id, name, type, systemData.Value, Optional.ToNullable(startTime), Optional.ToNullable(endTime), Optional.ToNullable(lastModifiedTime), Optional.ToNullable(duration), type0.Value, status.Value, configurationProfile.Value, Optional.ToList(resources), error.Value, reportFormatVersion.Value); } } } diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ConfigurationProfileData.Serialization.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageConfigurationProfileData.Serialization.cs similarity index 91% rename from sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ConfigurationProfileData.Serialization.cs rename to sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageConfigurationProfileData.Serialization.cs index becbda34458af..c24b754bf3646 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ConfigurationProfileData.Serialization.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageConfigurationProfileData.Serialization.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.Automanage { - public partial class ConfigurationProfileData : IUtf8JsonSerializable + public partial class AutomanageConfigurationProfileData : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -39,7 +39,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static ConfigurationProfileData DeserializeConfigurationProfileData(JsonElement element) + internal static AutomanageConfigurationProfileData DeserializeAutomanageConfigurationProfileData(JsonElement element) { Optional properties = default; Optional> tags = default; @@ -106,7 +106,7 @@ internal static ConfigurationProfileData DeserializeConfigurationProfileData(Jso continue; } } - return new ConfigurationProfileData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, properties.Value); + return new AutomanageConfigurationProfileData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, properties.Value); } } } diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ConfigurationProfilePatch.Serialization.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageConfigurationProfilePatch.Serialization.cs similarity index 92% rename from sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ConfigurationProfilePatch.Serialization.cs rename to sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageConfigurationProfilePatch.Serialization.cs index 582ffa19cf992..7d93c846b24e4 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ConfigurationProfilePatch.Serialization.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageConfigurationProfilePatch.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Automanage.Models { - public partial class ConfigurationProfilePatch : IUtf8JsonSerializable + public partial class AutomanageConfigurationProfilePatch : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ConfigurationProfilePatch.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageConfigurationProfilePatch.cs similarity index 89% rename from sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ConfigurationProfilePatch.cs rename to sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageConfigurationProfilePatch.cs index e32f33473f822..4a14d72ba35d3 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ConfigurationProfilePatch.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageConfigurationProfilePatch.cs @@ -10,10 +10,10 @@ namespace Azure.ResourceManager.Automanage.Models { /// Definition of the configuration profile. - public partial class ConfigurationProfilePatch : UpdateResource + public partial class AutomanageConfigurationProfilePatch : AutomanageResourceUpdateDetails { - /// Initializes a new instance of ConfigurationProfilePatch. - public ConfigurationProfilePatch() + /// Initializes a new instance of AutomanageConfigurationProfilePatch. + public AutomanageConfigurationProfilePatch() { } diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/UpdateResource.Serialization.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageResourceUpdateDetails.Serialization.cs similarity index 90% rename from sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/UpdateResource.Serialization.cs rename to sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageResourceUpdateDetails.Serialization.cs index 8db269e460706..c3f67ffb9e3bf 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/UpdateResource.Serialization.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageResourceUpdateDetails.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Automanage.Models { - public partial class UpdateResource : IUtf8JsonSerializable + public partial class AutomanageResourceUpdateDetails : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/UpdateResource.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageResourceUpdateDetails.cs similarity index 72% rename from sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/UpdateResource.cs rename to sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageResourceUpdateDetails.cs index 3b4f6e0f65816..43d45f80390c6 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/UpdateResource.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageResourceUpdateDetails.cs @@ -11,10 +11,10 @@ namespace Azure.ResourceManager.Automanage.Models { /// Represents an update resource. - public partial class UpdateResource + public partial class AutomanageResourceUpdateDetails { - /// Initializes a new instance of UpdateResource. - public UpdateResource() + /// Initializes a new instance of AutomanageResourceUpdateDetails. + public AutomanageResourceUpdateDetails() { Tags = new ChangeTrackingDictionary(); } diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ServicePrincipalData.Serialization.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageServicePrincipalData.Serialization.cs similarity index 88% rename from sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ServicePrincipalData.Serialization.cs rename to sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageServicePrincipalData.Serialization.cs index b4b70b1ee5d7e..fae5970c07c0b 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ServicePrincipalData.Serialization.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageServicePrincipalData.Serialization.cs @@ -9,9 +9,9 @@ using Azure.Core; using Azure.ResourceManager.Models; -namespace Azure.ResourceManager.Automanage +namespace Azure.ResourceManager.Automanage.Models { - public partial class ServicePrincipalData : IUtf8JsonSerializable + public partial class AutomanageServicePrincipalData : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -22,7 +22,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static ServicePrincipalData DeserializeServicePrincipalData(JsonElement element) + internal static AutomanageServicePrincipalData DeserializeAutomanageServicePrincipalData(JsonElement element) { ResourceIdentifier id = default; string name = default; @@ -85,7 +85,7 @@ internal static ServicePrincipalData DeserializeServicePrincipalData(JsonElement continue; } } - return new ServicePrincipalData(id, name, type, systemData.Value, servicePrincipalId.Value, Optional.ToNullable(authorizationSet)); + return new AutomanageServicePrincipalData(id, name, type, systemData.Value, servicePrincipalId.Value, Optional.ToNullable(authorizationSet)); } } } diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageServicePrincipalData.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageServicePrincipalData.cs new file mode 100644 index 0000000000000..89195681acf6c --- /dev/null +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/AutomanageServicePrincipalData.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using Azure.Core; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.Automanage.Models +{ + /// The Service Principal Id for the subscription. + public partial class AutomanageServicePrincipalData : ResourceData + { + /// Initializes a new instance of AutomanageServicePrincipalData. + public AutomanageServicePrincipalData() + { + } + + /// Initializes a new instance of AutomanageServicePrincipalData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The Service Principal Id for the subscription. + /// Returns the contributor RBAC Role exist or not for the Service Principal Id. + internal AutomanageServicePrincipalData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string servicePrincipalId, bool? isAuthorizationSet) : base(id, name, resourceType, systemData) + { + ServicePrincipalId = servicePrincipalId; + IsAuthorizationSet = isAuthorizationSet; + } + + /// The Service Principal Id for the subscription. + public string ServicePrincipalId { get; } + /// Returns the contributor RBAC Role exist or not for the Service Principal Id. + public bool? IsAuthorizationSet { get; } + } +} diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/BestPracticeList.Serialization.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/BestPracticeList.Serialization.cs index 4b75586f2691e..a15ea3ec4be10 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/BestPracticeList.Serialization.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/BestPracticeList.Serialization.cs @@ -16,7 +16,7 @@ internal partial class BestPracticeList { internal static BestPracticeList DeserializeBestPracticeList(JsonElement element) { - Optional> value = default; + Optional> value = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) @@ -26,10 +26,10 @@ internal static BestPracticeList DeserializeBestPracticeList(JsonElement element property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(BestPracticeData.DeserializeBestPracticeData(item)); + array.Add(AutomanageBestPracticeData.DeserializeAutomanageBestPracticeData(item)); } value = array; continue; diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/BestPracticeList.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/BestPracticeList.cs index 9d161e9ddcff1..229cef1a08f05 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/BestPracticeList.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/BestPracticeList.cs @@ -17,17 +17,17 @@ internal partial class BestPracticeList /// Initializes a new instance of BestPracticeList. internal BestPracticeList() { - Value = new ChangeTrackingList(); + Value = new ChangeTrackingList(); } /// Initializes a new instance of BestPracticeList. /// Result of the list best practice operation. - internal BestPracticeList(IReadOnlyList value) + internal BestPracticeList(IReadOnlyList value) { Value = value; } /// Result of the list best practice operation. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } } } diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ReportResource.Serialization.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ConfigurationProfileAssignmentReportResourceDetails.Serialization.cs similarity index 85% rename from sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ReportResource.Serialization.cs rename to sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ConfigurationProfileAssignmentReportResourceDetails.Serialization.cs index 708c7129f70cb..9d5f772b35669 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ReportResource.Serialization.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ConfigurationProfileAssignmentReportResourceDetails.Serialization.cs @@ -12,9 +12,9 @@ namespace Azure.ResourceManager.Automanage.Models { - public partial class ReportResource + public partial class ConfigurationProfileAssignmentReportResourceDetails { - internal static ReportResource DeserializeReportResource(JsonElement element) + internal static ConfigurationProfileAssignmentReportResourceDetails DeserializeConfigurationProfileAssignmentReportResourceDetails(JsonElement element) { Optional status = default; Optional error = default; @@ -65,7 +65,7 @@ internal static ReportResource DeserializeReportResource(JsonElement element) continue; } } - return new ReportResource(id, name, type, systemData.Value, status.Value, error.Value); + return new ConfigurationProfileAssignmentReportResourceDetails(id, name, type, systemData.Value, status.Value, error.Value); } } } diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ReportResource.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ConfigurationProfileAssignmentReportResourceDetails.cs similarity index 63% rename from sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ReportResource.cs rename to sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ConfigurationProfileAssignmentReportResourceDetails.cs index 8046891266405..6054af9ed48ce 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ReportResource.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ConfigurationProfileAssignmentReportResourceDetails.cs @@ -12,21 +12,21 @@ namespace Azure.ResourceManager.Automanage.Models { /// Details about the resource processed by the configuration profile assignment. - public partial class ReportResource : ResourceData + public partial class ConfigurationProfileAssignmentReportResourceDetails : ResourceData { - /// Initializes a new instance of ReportResource. - internal ReportResource() + /// Initializes a new instance of ConfigurationProfileAssignmentReportResourceDetails. + internal ConfigurationProfileAssignmentReportResourceDetails() { } - /// Initializes a new instance of ReportResource. + /// Initializes a new instance of ConfigurationProfileAssignmentReportResourceDetails. /// The id. /// The name. /// The resourceType. /// The systemData. /// Status of the resource. /// Error message, if any, returned when deploying the resource. - internal ReportResource(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string status, ResponseError error) : base(id, name, resourceType, systemData) + internal ConfigurationProfileAssignmentReportResourceDetails(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string status, ResponseError error) : base(id, name, resourceType, systemData) { Status = status; Error = error; diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ConfigurationProfileList.Serialization.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ConfigurationProfileList.Serialization.cs index 40bbad89535b3..8c4362b951f13 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ConfigurationProfileList.Serialization.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ConfigurationProfileList.Serialization.cs @@ -16,7 +16,7 @@ internal partial class ConfigurationProfileList { internal static ConfigurationProfileList DeserializeConfigurationProfileList(JsonElement element) { - Optional> value = default; + Optional> value = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) @@ -26,10 +26,10 @@ internal static ConfigurationProfileList DeserializeConfigurationProfileList(Jso property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ConfigurationProfileData.DeserializeConfigurationProfileData(item)); + array.Add(AutomanageConfigurationProfileData.DeserializeAutomanageConfigurationProfileData(item)); } value = array; continue; diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ConfigurationProfileList.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ConfigurationProfileList.cs index 626502e34dd9f..755f74691dccf 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ConfigurationProfileList.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ConfigurationProfileList.cs @@ -17,17 +17,17 @@ internal partial class ConfigurationProfileList /// Initializes a new instance of ConfigurationProfileList. internal ConfigurationProfileList() { - Value = new ChangeTrackingList(); + Value = new ChangeTrackingList(); } /// Initializes a new instance of ConfigurationProfileList. /// Result of the list ConfigurationProfile operation. - internal ConfigurationProfileList(IReadOnlyList value) + internal ConfigurationProfileList(IReadOnlyList value) { Value = value; } /// Result of the list ConfigurationProfile operation. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } } } diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ServicePrincipalListResult.Serialization.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ServicePrincipalListResult.Serialization.cs index 1381b56e6c386..6b6d786036b0c 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ServicePrincipalListResult.Serialization.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ServicePrincipalListResult.Serialization.cs @@ -8,7 +8,6 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; -using Azure.ResourceManager.Automanage; namespace Azure.ResourceManager.Automanage.Models { @@ -16,7 +15,7 @@ internal partial class ServicePrincipalListResult { internal static ServicePrincipalListResult DeserializeServicePrincipalListResult(JsonElement element) { - Optional> value = default; + Optional> value = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) @@ -26,10 +25,10 @@ internal static ServicePrincipalListResult DeserializeServicePrincipalListResult property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ServicePrincipalData.DeserializeServicePrincipalData(item)); + array.Add(AutomanageServicePrincipalData.DeserializeAutomanageServicePrincipalData(item)); } value = array; continue; diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ServicePrincipalListResult.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ServicePrincipalListResult.cs index fd4fb697aa01a..e3ebba7de1a33 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ServicePrincipalListResult.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/Models/ServicePrincipalListResult.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using Azure.Core; -using Azure.ResourceManager.Automanage; namespace Azure.ResourceManager.Automanage.Models { @@ -17,17 +16,17 @@ internal partial class ServicePrincipalListResult /// Initializes a new instance of ServicePrincipalListResult. internal ServicePrincipalListResult() { - Value = new ChangeTrackingList(); + Value = new ChangeTrackingList(); } /// Initializes a new instance of ServicePrincipalListResult. /// The list of servicePrincipals. - internal ServicePrincipalListResult(IReadOnlyList value) + internal ServicePrincipalListResult(IReadOnlyList value) { Value = value; } /// The list of servicePrincipals. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } } } diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/RestOperations/BestPracticesRestOperations.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/RestOperations/BestPracticesRestOperations.cs index b9c2d8eee14bd..ba58fa4f1276f 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/RestOperations/BestPracticesRestOperations.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/RestOperations/BestPracticesRestOperations.cs @@ -58,7 +58,7 @@ internal HttpMessage CreateGetRequest(string bestPracticeName) /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string bestPracticeName, CancellationToken cancellationToken = default) + public async Task> GetAsync(string bestPracticeName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(bestPracticeName, nameof(bestPracticeName)); @@ -68,13 +68,13 @@ public async Task> GetAsync(string bestPracticeName, { case 200: { - BestPracticeData value = default; + AutomanageBestPracticeData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = BestPracticeData.DeserializeBestPracticeData(document.RootElement); + value = AutomanageBestPracticeData.DeserializeAutomanageBestPracticeData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((BestPracticeData)null, message.Response); + return Response.FromValue((AutomanageBestPracticeData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -85,7 +85,7 @@ public async Task> GetAsync(string bestPracticeName, /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. - public Response Get(string bestPracticeName, CancellationToken cancellationToken = default) + public Response Get(string bestPracticeName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(bestPracticeName, nameof(bestPracticeName)); @@ -95,13 +95,13 @@ public Response Get(string bestPracticeName, CancellationToken { case 200: { - BestPracticeData value = default; + AutomanageBestPracticeData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = BestPracticeData.DeserializeBestPracticeData(document.RootElement); + value = AutomanageBestPracticeData.DeserializeAutomanageBestPracticeData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((BestPracticeData)null, message.Response); + return Response.FromValue((AutomanageBestPracticeData)null, message.Response); default: throw new RequestFailedException(message.Response); } diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/RestOperations/ConfigurationProfilesRestOperations.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/RestOperations/ConfigurationProfilesRestOperations.cs index 674ac4157e589..d710393a58804 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/RestOperations/ConfigurationProfilesRestOperations.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/RestOperations/ConfigurationProfilesRestOperations.cs @@ -37,7 +37,7 @@ public ConfigurationProfilesRestOperations(HttpPipeline pipeline, string applica _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string configurationProfileName, ConfigurationProfileData data) + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string configurationProfileName, AutomanageConfigurationProfileData data) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -69,7 +69,7 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string configurationProfileName, ConfigurationProfileData data, CancellationToken cancellationToken = default) + public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string configurationProfileName, AutomanageConfigurationProfileData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -83,9 +83,9 @@ public async Task> CreateOrUpdateAsync(string case 200: case 201: { - ConfigurationProfileData value = default; + AutomanageConfigurationProfileData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ConfigurationProfileData.DeserializeConfigurationProfileData(document.RootElement); + value = AutomanageConfigurationProfileData.DeserializeAutomanageConfigurationProfileData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -101,7 +101,7 @@ public async Task> CreateOrUpdateAsync(string /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string configurationProfileName, ConfigurationProfileData data, CancellationToken cancellationToken = default) + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string configurationProfileName, AutomanageConfigurationProfileData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -115,9 +115,9 @@ public Response CreateOrUpdate(string subscriptionId, case 200: case 201: { - ConfigurationProfileData value = default; + AutomanageConfigurationProfileData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ConfigurationProfileData.DeserializeConfigurationProfileData(document.RootElement); + value = AutomanageConfigurationProfileData.DeserializeAutomanageConfigurationProfileData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -152,7 +152,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string configurationProfileName, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string configurationProfileName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -164,13 +164,13 @@ public async Task> GetAsync(string subscripti { case 200: { - ConfigurationProfileData value = default; + AutomanageConfigurationProfileData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ConfigurationProfileData.DeserializeConfigurationProfileData(document.RootElement); + value = AutomanageConfigurationProfileData.DeserializeAutomanageConfigurationProfileData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((ConfigurationProfileData)null, message.Response); + return Response.FromValue((AutomanageConfigurationProfileData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -183,7 +183,7 @@ public async Task> GetAsync(string subscripti /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string configurationProfileName, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string configurationProfileName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -195,13 +195,13 @@ public Response Get(string subscriptionId, string reso { case 200: { - ConfigurationProfileData value = default; + AutomanageConfigurationProfileData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ConfigurationProfileData.DeserializeConfigurationProfileData(document.RootElement); + value = AutomanageConfigurationProfileData.DeserializeAutomanageConfigurationProfileData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((ConfigurationProfileData)null, message.Response); + return Response.FromValue((AutomanageConfigurationProfileData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -277,7 +277,7 @@ public Response Delete(string subscriptionId, string resourceGroupName, string c } } - internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string configurationProfileName, ConfigurationProfilePatch patch) + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string configurationProfileName, AutomanageConfigurationProfilePatch patch) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -309,7 +309,7 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string configurationProfileName, ConfigurationProfilePatch patch, CancellationToken cancellationToken = default) + public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string configurationProfileName, AutomanageConfigurationProfilePatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -322,9 +322,9 @@ public async Task> UpdateAsync(string subscri { case 200: { - ConfigurationProfileData value = default; + AutomanageConfigurationProfileData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ConfigurationProfileData.DeserializeConfigurationProfileData(document.RootElement); + value = AutomanageConfigurationProfileData.DeserializeAutomanageConfigurationProfileData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -340,7 +340,7 @@ public async Task> UpdateAsync(string subscri /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response Update(string subscriptionId, string resourceGroupName, string configurationProfileName, ConfigurationProfilePatch patch, CancellationToken cancellationToken = default) + public Response Update(string subscriptionId, string resourceGroupName, string configurationProfileName, AutomanageConfigurationProfilePatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -353,9 +353,9 @@ public Response Update(string subscriptionId, string r { case 200: { - ConfigurationProfileData value = default; + AutomanageConfigurationProfileData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ConfigurationProfileData.DeserializeConfigurationProfileData(document.RootElement); + value = AutomanageConfigurationProfileData.DeserializeAutomanageConfigurationProfileData(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/RestOperations/ConfigurationProfilesVersionsRestOperations.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/RestOperations/ConfigurationProfilesVersionsRestOperations.cs index 4f7945cc333e7..7de5fa37b66d3 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/RestOperations/ConfigurationProfilesVersionsRestOperations.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/RestOperations/ConfigurationProfilesVersionsRestOperations.cs @@ -37,7 +37,7 @@ public ConfigurationProfilesVersionsRestOperations(HttpPipeline pipeline, string _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string configurationProfileName, string versionName, ConfigurationProfileData data) + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string configurationProfileName, string versionName, AutomanageConfigurationProfileData data) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -72,7 +72,7 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string configurationProfileName, string versionName, ConfigurationProfileData data, CancellationToken cancellationToken = default) + public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string configurationProfileName, string versionName, AutomanageConfigurationProfileData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -87,9 +87,9 @@ public async Task> CreateOrUpdateAsync(string case 200: case 201: { - ConfigurationProfileData value = default; + AutomanageConfigurationProfileData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ConfigurationProfileData.DeserializeConfigurationProfileData(document.RootElement); + value = AutomanageConfigurationProfileData.DeserializeAutomanageConfigurationProfileData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -106,7 +106,7 @@ public async Task> CreateOrUpdateAsync(string /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string configurationProfileName, string versionName, ConfigurationProfileData data, CancellationToken cancellationToken = default) + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string configurationProfileName, string versionName, AutomanageConfigurationProfileData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -121,9 +121,9 @@ public Response CreateOrUpdate(string subscriptionId, case 200: case 201: { - ConfigurationProfileData value = default; + AutomanageConfigurationProfileData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ConfigurationProfileData.DeserializeConfigurationProfileData(document.RootElement); + value = AutomanageConfigurationProfileData.DeserializeAutomanageConfigurationProfileData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -161,7 +161,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string configurationProfileName, string versionName, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string configurationProfileName, string versionName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -174,13 +174,13 @@ public async Task> GetAsync(string subscripti { case 200: { - ConfigurationProfileData value = default; + AutomanageConfigurationProfileData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ConfigurationProfileData.DeserializeConfigurationProfileData(document.RootElement); + value = AutomanageConfigurationProfileData.DeserializeAutomanageConfigurationProfileData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((ConfigurationProfileData)null, message.Response); + return Response.FromValue((AutomanageConfigurationProfileData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -194,7 +194,7 @@ public async Task> GetAsync(string subscripti /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string configurationProfileName, string versionName, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string configurationProfileName, string versionName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -207,13 +207,13 @@ public Response Get(string subscriptionId, string reso { case 200: { - ConfigurationProfileData value = default; + AutomanageConfigurationProfileData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ConfigurationProfileData.DeserializeConfigurationProfileData(document.RootElement); + value = AutomanageConfigurationProfileData.DeserializeAutomanageConfigurationProfileData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((ConfigurationProfileData)null, message.Response); + return Response.FromValue((AutomanageConfigurationProfileData)null, message.Response); default: throw new RequestFailedException(message.Response); } diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/RestOperations/ServicePrincipalsRestOperations.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/RestOperations/ServicePrincipalsRestOperations.cs index 482c9923e37b5..f1bf4635fe8ce 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/RestOperations/ServicePrincipalsRestOperations.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/RestOperations/ServicePrincipalsRestOperations.cs @@ -126,7 +126,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId) /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -136,13 +136,11 @@ public async Task> GetAsync(string subscriptionId { case 200: { - ServicePrincipalData value = default; + AutomanageServicePrincipalData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ServicePrincipalData.DeserializeServicePrincipalData(document.RootElement); + value = AutomanageServicePrincipalData.DeserializeAutomanageServicePrincipalData(document.RootElement); return Response.FromValue(value, message.Response); } - case 404: - return Response.FromValue((ServicePrincipalData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -153,7 +151,7 @@ public async Task> GetAsync(string subscriptionId /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -163,13 +161,11 @@ public Response Get(string subscriptionId, CancellationTok { case 200: { - ServicePrincipalData value = default; + AutomanageServicePrincipalData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ServicePrincipalData.DeserializeServicePrincipalData(document.RootElement); + value = AutomanageServicePrincipalData.DeserializeAutomanageServicePrincipalData(document.RootElement); return Response.FromValue(value, message.Response); } - case 404: - return Response.FromValue((ServicePrincipalData)null, message.Response); default: throw new RequestFailedException(message.Response); } diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/ServicePrincipalData.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/ServicePrincipalData.cs deleted file mode 100644 index 9ec69dde9e6bd..0000000000000 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/ServicePrincipalData.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using Azure.Core; -using Azure.ResourceManager.Models; - -namespace Azure.ResourceManager.Automanage -{ - /// A class representing the ServicePrincipal data model. - public partial class ServicePrincipalData : ResourceData - { - /// Initializes a new instance of ServicePrincipalData. - public ServicePrincipalData() - { - } - - /// Initializes a new instance of ServicePrincipalData. - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// The Service Principal Id for the subscription. - /// Returns the contributor RBAC Role exist or not for the Service Principal Id. - internal ServicePrincipalData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string servicePrincipalId, bool? authorizationSet) : base(id, name, resourceType, systemData) - { - ServicePrincipalId = servicePrincipalId; - AuthorizationSet = authorizationSet; - } - - /// The Service Principal Id for the subscription. - public string ServicePrincipalId { get; } - /// Returns the contributor RBAC Role exist or not for the Service Principal Id. - public bool? AuthorizationSet { get; } - } -} diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/ServicePrincipalResource.cs b/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/ServicePrincipalResource.cs deleted file mode 100644 index 9de622a1b05de..0000000000000 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Generated/ServicePrincipalResource.cs +++ /dev/null @@ -1,154 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Globalization; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager; -using Azure.ResourceManager.Resources; - -namespace Azure.ResourceManager.Automanage -{ - /// - /// A Class representing a ServicePrincipal along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetServicePrincipalResource method. - /// Otherwise you can get one from its parent resource using the GetServicePrincipal method. - /// - public partial class ServicePrincipalResource : ArmResource - { - /// Generate the resource identifier of a instance. - public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId) - { - var resourceId = $"/subscriptions/{subscriptionId}/providers/Microsoft.Automanage/servicePrincipals/default"; - return new ResourceIdentifier(resourceId); - } - - private readonly ClientDiagnostics _servicePrincipalClientDiagnostics; - private readonly ServicePrincipalsRestOperations _servicePrincipalRestClient; - private readonly ServicePrincipalData _data; - - /// Initializes a new instance of the class for mocking. - protected ServicePrincipalResource() - { - } - - /// Initializes a new instance of the class. - /// The client parameters to use in these operations. - /// The resource that is the target of operations. - internal ServicePrincipalResource(ArmClient client, ServicePrincipalData data) : this(client, data.Id) - { - HasData = true; - _data = data; - } - - /// Initializes a new instance of the class. - /// The client parameters to use in these operations. - /// The identifier of the resource that is the target of operations. - internal ServicePrincipalResource(ArmClient client, ResourceIdentifier id) : base(client, id) - { - _servicePrincipalClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automanage", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string servicePrincipalApiVersion); - _servicePrincipalRestClient = new ServicePrincipalsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, servicePrincipalApiVersion); -#if DEBUG - ValidateResourceId(Id); -#endif - } - - /// Gets the resource type for the operations. - public static readonly ResourceType ResourceType = "Microsoft.Automanage/servicePrincipals"; - - /// Gets whether or not the current instance has data. - public virtual bool HasData { get; } - - /// Gets the data representing this Feature. - /// Throws if there is no data loaded in the current instance. - public virtual ServicePrincipalData Data - { - get - { - if (!HasData) - throw new InvalidOperationException("The current instance does not have data, you must call Get first."); - return _data; - } - } - - internal static void ValidateResourceId(ResourceIdentifier id) - { - if (id.ResourceType != ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); - } - - /// - /// Get the Automanage AAD first party Application Service Principal details for the subscription id. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.Automanage/servicePrincipals/default - /// - /// - /// Operation Id - /// ServicePrincipals_Get - /// - /// - /// - /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) - { - using var scope = _servicePrincipalClientDiagnostics.CreateScope("ServicePrincipalResource.Get"); - scope.Start(); - try - { - var response = await _servicePrincipalRestClient.GetAsync(Id.SubscriptionId, cancellationToken).ConfigureAwait(false); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new ServicePrincipalResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Get the Automanage AAD first party Application Service Principal details for the subscription id. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.Automanage/servicePrincipals/default - /// - /// - /// Operation Id - /// ServicePrincipals_Get - /// - /// - /// - /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) - { - using var scope = _servicePrincipalClientDiagnostics.CreateScope("ServicePrincipalResource.Get"); - scope.Start(); - try - { - var response = _servicePrincipalRestClient.Get(Id.SubscriptionId, cancellationToken); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new ServicePrincipalResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - } -} diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/autorest.md b/sdk/automanage/Azure.ResourceManager.Automanage/src/autorest.md index 8954e5f84341c..c8c052fdb879f 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/autorest.md +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/autorest.md @@ -14,6 +14,7 @@ modelerfour: flatten-payloads: false request-path-is-non-resource: - /{scope}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}/reports/{reportName} + - /subscriptions/{subscriptionId}/providers/Microsoft.Automanage/servicePrincipals/default parameterized-scopes: - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName} @@ -27,6 +28,11 @@ request-path-to-resource-name: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}/reports/{reportName}: AutomanageVmConfigurationProfileAssignmentReport /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}/reports/{reportName}: AutomanageHcrpConfigurationProfileAssignmentReport /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHci/clusters/{clusterName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}/reports/{reportName}: AutomanageHciClusterConfigurationProfileAssignmentReport + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automanage/configurationProfiles/{configurationProfileName}: AutomanageConfigurationProfile + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automanage/configurationProfiles/{configurationProfileName}/versions/{versionName}: AutomanageConfigurationProfileVersion + +override-operation-name: + ServicePrincipals_ListBySubscription: GetServicePrincipals format-by-name-rules: 'tenantId': 'uuid' @@ -58,8 +64,21 @@ rename-rules: Etag: ETag|etag rename-mapping: + ConfigurationProfile: AutomanageConfigurationProfile ConfigurationProfileAssignment: AutomanageConfigurationProfileAssignment + ConfigurationProfileAssignmentProperties: AutomanageConfigurationProfileAssignmentProperties + ConfigurationProfileAssignmentProperties.configurationProfile: -|arm-id + ConfigurationProfileAssignmentProperties.targetId: -|arm-id Report: AutomanageConfigurationProfileAssignmentReport + Report.properties.startTime: StartOn|date-time + Report.properties.endTime: EndOn|date-time + Report.properties.lastModifiedTime: LastModifiedOn|date-time + Report.properties.type: ConfigurationProfileAssignmentProcessingType + ReportResource: ConfigurationProfileAssignmentReportResourceDetails + BestPractice: AutomanageBestPractice + ServicePrincipal: AutomanageServicePrincipalData + ServicePrincipal.properties.authorizationSet: IsAuthorizationSet + UpdateResource: AutomanageResourceUpdateDetails directive: # these operations will be supported in the future diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/tests/AutomanageTestBase.cs b/sdk/automanage/Azure.ResourceManager.Automanage/tests/AutomanageTestBase.cs index f8c0788b2f87a..91793367162aa 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/tests/AutomanageTestBase.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/tests/AutomanageTestBase.cs @@ -69,7 +69,7 @@ protected async Task CreateResourceGroup(string rgNamePre /// Configruation profile collection to perform actions against /// Desired configuration profile name /// ConfigurationProfileResource - protected async Task CreateConfigurationProfile(ConfigurationProfileCollection collection, string profileName) + protected async Task CreateConfigurationProfile(AutomanageConfigurationProfileCollection collection, string profileName) { string configuration = "{" + "\"Antimalware/Enable\":true," + @@ -87,7 +87,7 @@ protected async Task CreateConfigurationProfile(Co "\"BootDiagnostics/Enable\":true" + "}"; - ConfigurationProfileData data = new ConfigurationProfileData(DefaultLocation) + AutomanageConfigurationProfileData data = new AutomanageConfigurationProfileData(DefaultLocation) { Configuration = new BinaryData(configuration) }; @@ -106,7 +106,7 @@ protected async Task CreateA { var data = new AutomanageConfigurationProfileAssignmentData() { - Properties = new ConfigurationProfileAssignmentProperties() { ConfigurationProfile = profileId } + Properties = new AutomanageConfigurationProfileAssignmentProperties() { ConfigurationProfile = new ResourceIdentifier(profileId) } }; // fetch assignments collection diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/tests/Scenario/BestPracticeTestBase.cs b/sdk/automanage/Azure.ResourceManager.Automanage/tests/Scenario/BestPracticeTestBase.cs index 67f8b1ed8d836..11bea3cfb2b6b 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/tests/Scenario/BestPracticeTestBase.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/tests/Scenario/BestPracticeTestBase.cs @@ -28,7 +28,7 @@ protected async Task GetTenant() /// /// BestPracticeResource to assert /// BestPracticeResource name to verify - protected void AssertValues(BestPracticeResource profile, string profileName) + protected void AssertValues(AutomanageBestPracticeResource profile, string profileName) { Assert.NotNull(profile); Assert.True(profile.HasData); diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/tests/Scenario/BestPracticeTests.cs b/sdk/automanage/Azure.ResourceManager.Automanage/tests/Scenario/BestPracticeTests.cs index 571beab0e5bb9..bbf1d0a1c2dca 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/tests/Scenario/BestPracticeTests.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/tests/Scenario/BestPracticeTests.cs @@ -16,7 +16,7 @@ public async Task CanGetBestPracticesProductionProfile() string profileName = "AzureBestPracticesProduction"; // fetch tenant collection - var collection = Tenant.GetBestPractices(); + var collection = Tenant.GetAutomanageBestPractices(); var profile = await collection.GetAsync(profileName); // assert @@ -29,7 +29,7 @@ public async Task CanGetBestPracticesDevTestProfile() string profileName = "AzureBestPracticesDevTest"; // fetch tenant collection - var collection = Tenant.GetBestPractices(); + var collection = Tenant.GetAutomanageBestPractices(); var profile = await collection.GetAsync(profileName); // assert @@ -40,7 +40,7 @@ public async Task CanGetBestPracticesDevTestProfile() public async Task CanGetAllBestPracticesProfiles() { // fetch tenant collection - var collection = Tenant.GetBestPractices(); + var collection = Tenant.GetAutomanageBestPractices(); var profiles = collection.GetAllAsync(); int count = 0; diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/tests/Scenario/ConfigurationProfileAssignmentTests.cs b/sdk/automanage/Azure.ResourceManager.Automanage/tests/Scenario/ConfigurationProfileAssignmentTests.cs index 97ec44b4d6c78..5252b32dfa6cc 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/tests/Scenario/ConfigurationProfileAssignmentTests.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/tests/Scenario/ConfigurationProfileAssignmentTests.cs @@ -66,7 +66,7 @@ public async Task CanCreateCustomProfileAssignment() var rg = await CreateResourceGroup("SDKAutomanage-", DefaultLocation); // fetch configuration profile collection - var profileCollection = rg.GetConfigurationProfiles(); + var profileCollection = rg.GetAutomanageConfigurationProfiles(); // create configuration profile var profile = await CreateConfigurationProfile(profileCollection, profileName); diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/tests/Scenario/ConfigurationProfileTests.cs b/sdk/automanage/Azure.ResourceManager.Automanage/tests/Scenario/ConfigurationProfileTests.cs index 7e313c71fe06d..25059dfa52d41 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/tests/Scenario/ConfigurationProfileTests.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/tests/Scenario/ConfigurationProfileTests.cs @@ -19,7 +19,7 @@ public async Task CanGetConfigurationProfile() var rg = await CreateResourceGroup("SDKAutomanage-", DefaultLocation); // fetch configuration profile collection - var collection = rg.GetConfigurationProfiles(); + var collection = rg.GetAutomanageConfigurationProfiles(); // create configuration profile await CreateConfigurationProfile(collection, profileName); @@ -44,7 +44,7 @@ public async Task CanGetAllConfigurationProfilesInResourceGroup() var rg = await CreateResourceGroup("SDKAutomanage-", DefaultLocation); // fetch configuration profile collection - var collection = rg.GetConfigurationProfiles(); + var collection = rg.GetAutomanageConfigurationProfiles(); // create configuration profile for (int i = 0; i < 4; i++) @@ -70,7 +70,7 @@ public async Task CanCreateConfigurationProfile() var rg = await CreateResourceGroup("SDKAutomanage-", DefaultLocation); // fetch configuration profile collection - var collection = rg.GetConfigurationProfiles(); + var collection = rg.GetAutomanageConfigurationProfiles(); // create configuration profile await CreateConfigurationProfile(collection, profileName); @@ -95,7 +95,7 @@ public async Task CanDeleteConfigurationProfile() var rg = await CreateResourceGroup("SDKAutomanage-", DefaultLocation); // fetch configuration profile collection - var collection = rg.GetConfigurationProfiles(); + var collection = rg.GetAutomanageConfigurationProfiles(); // create configuration profile await CreateConfigurationProfile(collection, profileName); diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/tests/Scenario/ConfigurationProfileVersionTestBase.cs b/sdk/automanage/Azure.ResourceManager.Automanage/tests/Scenario/ConfigurationProfileVersionTestBase.cs index 5501066448f88..905eebbf11620 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/tests/Scenario/ConfigurationProfileVersionTestBase.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/tests/Scenario/ConfigurationProfileVersionTestBase.cs @@ -17,7 +17,7 @@ public ConfigurationProfileVersionTestBase(bool async) : base(async) { } /// Configruation profile version collection to perform actions against /// Desired configuration profile version name /// ConfigurationProfileVersionResource - protected async Task CreateConfigurationProfileVersion(ConfigurationProfileVersionCollection collection, string versionName) + protected async Task CreateConfigurationProfileVersion(AutomanageConfigurationProfileVersionCollection collection, string versionName) { string configuration = "{" + "\"Antimalware/Enable\":true," + @@ -35,7 +35,7 @@ protected async Task CreateConfigurationPro "\"BootDiagnostics/Enable\":true" + "}"; - ConfigurationProfileData data = new ConfigurationProfileData(DefaultLocation) + AutomanageConfigurationProfileData data = new AutomanageConfigurationProfileData(DefaultLocation) { Configuration = new BinaryData(configuration) }; @@ -49,7 +49,7 @@ protected async Task CreateConfigurationPro /// /// ConfigurationProfileVersionResource to assert /// ConfigurationProfileVersionResource name to verify - protected void AssertValues(ConfigurationProfileVersionResource version, string versionName) + protected void AssertValues(AutomanageConfigurationProfileVersionResource version, string versionName) { Assert.NotNull(version); Assert.True(version.HasData); diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/tests/Scenario/ConfigurationProfileVersionTests.cs b/sdk/automanage/Azure.ResourceManager.Automanage/tests/Scenario/ConfigurationProfileVersionTests.cs index 62e5be035d807..c187a87bedafe 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/tests/Scenario/ConfigurationProfileVersionTests.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/tests/Scenario/ConfigurationProfileVersionTests.cs @@ -21,12 +21,12 @@ public async Task CanCreateTwoConfigurationProfileVersions() var rg = await CreateResourceGroup("SDKAutomanage-", DefaultLocation); // create configuration profile - var profileCollection = rg.GetConfigurationProfiles(); + var profileCollection = rg.GetAutomanageConfigurationProfiles(); var profile = await CreateConfigurationProfile(profileCollection, profileName); // create configuration profile versions - var versionCollection = profile.GetConfigurationProfileVersions(); - var versions = new List(); + var versionCollection = profile.GetAutomanageConfigurationProfileVersions(); + var versions = new List(); for (int i = 1; i <= 2; i++) { var newVersion = await CreateConfigurationProfileVersion(versionCollection, i.ToString()); @@ -48,11 +48,11 @@ public async Task CanGetAllConfigurationProfileVersions() var rg = await CreateResourceGroup("SDKAutomanage-", DefaultLocation); // create configuration profile - var profileCollection = rg.GetConfigurationProfiles(); + var profileCollection = rg.GetAutomanageConfigurationProfiles(); var profile = await CreateConfigurationProfile(profileCollection, profileName); // create configuration profile version - var versionCollection = profile.GetConfigurationProfileVersions(); + var versionCollection = profile.GetAutomanageConfigurationProfileVersions(); for (int i = 1; i <= 3; i++) await CreateConfigurationProfileVersion(versionCollection, i.ToString()); @@ -75,11 +75,11 @@ public async Task CanGetConfigurationProfileVersion() var rg = await CreateResourceGroup("SDKAutomanage-", DefaultLocation); // create configuration profile - var profileCollection = rg.GetConfigurationProfiles(); + var profileCollection = rg.GetAutomanageConfigurationProfiles(); var profile = await CreateConfigurationProfile(profileCollection, profileName); // create configuration profile version - var versionCollection = profile.GetConfigurationProfileVersions(); + var versionCollection = profile.GetAutomanageConfigurationProfileVersions(); await CreateConfigurationProfileVersion(versionCollection, "1"); var version = await versionCollection.GetAsync("1"); @@ -98,11 +98,11 @@ public async Task CanMakeAssignmentWithConfigurationProfileVersion() var rg = await CreateResourceGroup("SDKAutomanage-", DefaultLocation); // create configuration profile - var profileCollection = rg.GetConfigurationProfiles(); + var profileCollection = rg.GetAutomanageConfigurationProfiles(); var profile = await CreateConfigurationProfile(profileCollection, profileName); // create configuration profile version - var versionCollection = profile.GetConfigurationProfileVersions(); + var versionCollection = profile.GetAutomanageConfigurationProfileVersions(); await CreateConfigurationProfileVersion(versionCollection, "1"); var version = await versionCollection.GetAsync("1"); @@ -127,11 +127,11 @@ public async Task CanDeleteConfigurationProfileVersion() var rg = await CreateResourceGroup("SDKAutomanage-", DefaultLocation); // create configuration profile - var profileCollection = rg.GetConfigurationProfiles(); + var profileCollection = rg.GetAutomanageConfigurationProfiles(); var profile = await CreateConfigurationProfile(profileCollection, profileName); // create configuration profile version - var versionCollection = profile.GetConfigurationProfileVersions(); + var versionCollection = profile.GetAutomanageConfigurationProfileVersions(); var version = await CreateConfigurationProfileVersion(versionCollection, "1"); // delete version diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/tests/Scenario/ReportTests.cs b/sdk/automanage/Azure.ResourceManager.Automanage/tests/Scenario/ReportTests.cs index a25b48f214fc3..7de4d21687e1a 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/tests/Scenario/ReportTests.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/tests/Scenario/ReportTests.cs @@ -22,7 +22,7 @@ public async Task CanGetAssignmentReports() var rg = await CreateResourceGroup("SDKAutomanage-", DefaultLocation); // create configuration profile - var profileCollection = rg.GetConfigurationProfiles(); + var profileCollection = rg.GetAutomanageConfigurationProfiles(); var profile = await CreateConfigurationProfile(profileCollection, profileName); // create VM from existing ARM template diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/tests/Scenario/ServicePrincipalTests.cs b/sdk/automanage/Azure.ResourceManager.Automanage/tests/Scenario/ServicePrincipalTests.cs index 356691f4e8481..ebca7fec71499 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/tests/Scenario/ServicePrincipalTests.cs +++ b/sdk/automanage/Azure.ResourceManager.Automanage/tests/Scenario/ServicePrincipalTests.cs @@ -1,20 +1,36 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +using System.Threading.Tasks; using NUnit.Framework; namespace Azure.ResourceManager.Automanage.Tests.Scenario { internal class ServicePrincipalTests : AutomanageTestBase { - public ServicePrincipalTests(bool async) : base(async) { } + public ServicePrincipalTests(bool async) : base(async) + { + JsonPathSanitizers.Add("$..servicePrincipalId"); + } [TestCase] - public void CanGetServicePrincipal() + public async Task CanGetServicePrincipal() { - var resourceId = ServicePrincipalResource.CreateResourceIdentifier(Subscription.Id.Name); - var servicePrincipal = ArmClient.GetServicePrincipalResource(resourceId); + var subscription = await ArmClient.GetDefaultSubscriptionAsync(); + var servicePrincipal = await subscription.GetServicePrincipalAsync(); Assert.IsNotNull(servicePrincipal); } + + [TestCase] + public async Task CanListServicePrincipal() + { + var subscription = await ArmClient.GetDefaultSubscriptionAsync(); + int cnt = 0; + await foreach (var servicePrincipal in subscription.GetServicePrincipalsAsync()) + { + ++cnt; + } + Assert.GreaterOrEqual(cnt, 0); + } } } diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/tests/SessionRecords/ServicePrincipalTests/CanGetServicePrincipal().json b/sdk/automanage/Azure.ResourceManager.Automanage/tests/SessionRecords/ServicePrincipalTests/CanGetServicePrincipal().json index 073e9491ab22c..03e41952d78f4 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/tests/SessionRecords/ServicePrincipalTests/CanGetServicePrincipal().json +++ b/sdk/automanage/Azure.ResourceManager.Automanage/tests/SessionRecords/ServicePrincipalTests/CanGetServicePrincipal().json @@ -1,39 +1,52 @@ { "Entries": [ { - "RequestUri": "https://management.azure.com/subscriptions/d0efb362-cb15-4021-9b3b-8c107b937d4c?api-version=2021-01-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2021-01-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-d1228a63f818ac418ee41038325c7b17-173bd6da247bc540-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.1 (.NET Core 3.1.31; Microsoft Windows 10.0.22621)", - "x-ms-client-request-id": "4ed27d3d762803a61ea8bf8d35d9fd42", + "traceparent": "00-b2b08411f3eff1dbe2557bfd610d42b5-63b830ecd146d678-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "d60e8e0cdbd4d565e6fc6a31cee72925", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "395", + "Content-Length": "748", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 16 Nov 2022 00:10:38 GMT", + "Date": "Tue, 21 Feb 2023 06:30:13 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "cd465279-ed93-412d-ae17-874c0142db91", - "x-ms-ratelimit-remaining-subscription-reads": "11912", - "x-ms-request-id": "cd465279-ed93-412d-ae17-874c0142db91", - "x-ms-routing-request-id": "CENTRALUS:20221116T001038Z:cd465279-ed93-412d-ae17-874c0142db91" + "x-ms-correlation-request-id": "0d769179-40a0-42cf-97b2-bdbe9011a5c6", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-request-id": "0d769179-40a0-42cf-97b2-bdbe9011a5c6", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230221T063013Z:0d769179-40a0-42cf-97b2-bdbe9011a5c6" }, "ResponseBody": { - "id": "/subscriptions/d0efb362-cb15-4021-9b3b-8c107b937d4c", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", "authorizationSource": "RoleBased", "managedByTenants": [], - "subscriptionId": "d0efb362-cb15-4021-9b3b-8c107b937d4c", + "tags": { + "TagKey-9823": "TagValue-1254", + "TagKey-3481": "TagValue-320", + "TagKey-4926": "TagValue-1187", + "TagKey-751": "TagValue-3921", + "TagKey-1866": "TagValue-8559", + "TagKey-3094": "TagValue-9190", + "TagKey-2449": "TagValue-9", + "TagKey-8379": "TagValue-164", + "TagKey-7470": "TagValue-2205", + "TagKey-4236": "TagValue-3698", + "TagKey-5316": "TagValue-2725" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", - "displayName": "AMVM-SubLib-019", + "displayName": ".NET Mgmt SDK Test with TTL = 1 Day", "state": "Enabled", "subscriptionPolicies": { "locationPlacementId": "Internal_2014-09-01", @@ -41,12 +54,52 @@ "spendingLimit": "Off" } } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.Automanage/servicePrincipals/default?api-version=2022-05-04", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-776cad07ef6e7de006ee2ecbb14a8f3c-ea57709a212bab27-00", + "User-Agent": "azsdk-net-ResourceManager.Automanage/1.0.0-alpha.20230221.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "493b489a845001e2d537677afa14e6f1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "255", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 21 Feb 2023 06:30:14 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "493b489a845001e2d537677afa14e6f1", + "x-ms-correlation-request-id": "ba02cc25-18c1-4caf-9a3f-21b9f23533ec", + "x-ms-ratelimit-remaining-subscription-reads": "11998", + "x-ms-request-id": "ba02cc25-18c1-4caf-9a3f-21b9f23533ec", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230221T063014Z:ba02cc25-18c1-4caf-9a3f-21b9f23533ec" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.Automanage/servicePrincipals/default", + "name": "default", + "type": "Microsoft.Automanage/servicePrincipals", + "properties": { + "authorizationSet": false, + "servicePrincipalId": "Sanitized" + } + } } ], "Variables": { - "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com/", - "RandomSeed": "2093992817", - "RESOURCE_MANAGER_URL": "https://management.azure.com/", - "SUBSCRIPTION_ID": "d0efb362-cb15-4021-9b3b-8c107b937d4c" + "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com", + "RandomSeed": "1936013114", + "RESOURCE_MANAGER_URL": null, + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" } } diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/tests/SessionRecords/ServicePrincipalTests/CanGetServicePrincipal()Async.json b/sdk/automanage/Azure.ResourceManager.Automanage/tests/SessionRecords/ServicePrincipalTests/CanGetServicePrincipal()Async.json index f37940e790468..a600d717be6ee 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/tests/SessionRecords/ServicePrincipalTests/CanGetServicePrincipal()Async.json +++ b/sdk/automanage/Azure.ResourceManager.Automanage/tests/SessionRecords/ServicePrincipalTests/CanGetServicePrincipal()Async.json @@ -1,39 +1,52 @@ { "Entries": [ { - "RequestUri": "https://management.azure.com/subscriptions/d0efb362-cb15-4021-9b3b-8c107b937d4c?api-version=2021-01-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2021-01-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-6f89ee9ca4d92a47baf3d38b3ddcea61-cef4e5888c48584f-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.1 (.NET Core 3.1.31; Microsoft Windows 10.0.22621)", - "x-ms-client-request-id": "3e39311aa1a4c4d5c6abcc83a5c9d2fe", + "traceparent": "00-676c6f4d8a6b8bdf05820ce379367796-558bc3971a926132-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "b12c4c769daf0092864a3b3e073144b6", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "395", + "Content-Length": "748", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 16 Nov 2022 00:10:38 GMT", + "Date": "Tue, 21 Feb 2023 06:30:15 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "4fa79665-29b2-4d9c-9c77-56e6227e3513", - "x-ms-ratelimit-remaining-subscription-reads": "11911", - "x-ms-request-id": "4fa79665-29b2-4d9c-9c77-56e6227e3513", - "x-ms-routing-request-id": "CENTRALUS:20221116T001039Z:4fa79665-29b2-4d9c-9c77-56e6227e3513" + "x-ms-correlation-request-id": "d874cea1-d02f-4c6f-81dd-29ea5a22cc37", + "x-ms-ratelimit-remaining-subscription-reads": "11995", + "x-ms-request-id": "d874cea1-d02f-4c6f-81dd-29ea5a22cc37", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230221T063015Z:d874cea1-d02f-4c6f-81dd-29ea5a22cc37" }, "ResponseBody": { - "id": "/subscriptions/d0efb362-cb15-4021-9b3b-8c107b937d4c", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", "authorizationSource": "RoleBased", "managedByTenants": [], - "subscriptionId": "d0efb362-cb15-4021-9b3b-8c107b937d4c", + "tags": { + "TagKey-9823": "TagValue-1254", + "TagKey-3481": "TagValue-320", + "TagKey-4926": "TagValue-1187", + "TagKey-751": "TagValue-3921", + "TagKey-1866": "TagValue-8559", + "TagKey-3094": "TagValue-9190", + "TagKey-2449": "TagValue-9", + "TagKey-8379": "TagValue-164", + "TagKey-7470": "TagValue-2205", + "TagKey-4236": "TagValue-3698", + "TagKey-5316": "TagValue-2725" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", - "displayName": "AMVM-SubLib-019", + "displayName": ".NET Mgmt SDK Test with TTL = 1 Day", "state": "Enabled", "subscriptionPolicies": { "locationPlacementId": "Internal_2014-09-01", @@ -41,12 +54,52 @@ "spendingLimit": "Off" } } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.Automanage/servicePrincipals/default?api-version=2022-05-04", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-d579ee5e477732518a1f4cf886d5ef85-a2428564b92079fa-00", + "User-Agent": "azsdk-net-ResourceManager.Automanage/1.0.0-alpha.20230221.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "494830233d7da696d40cd30c704237b4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "255", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 21 Feb 2023 06:30:15 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "494830233d7da696d40cd30c704237b4", + "x-ms-correlation-request-id": "f56d0380-78b7-466e-8f9b-2fd6daa33921", + "x-ms-ratelimit-remaining-subscription-reads": "11994", + "x-ms-request-id": "f56d0380-78b7-466e-8f9b-2fd6daa33921", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230221T063016Z:f56d0380-78b7-466e-8f9b-2fd6daa33921" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.Automanage/servicePrincipals/default", + "name": "default", + "type": "Microsoft.Automanage/servicePrincipals", + "properties": { + "authorizationSet": false, + "servicePrincipalId": "Sanitized" + } + } } ], "Variables": { - "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com/", - "RandomSeed": "1223484305", - "RESOURCE_MANAGER_URL": "https://management.azure.com/", - "SUBSCRIPTION_ID": "d0efb362-cb15-4021-9b3b-8c107b937d4c" + "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com", + "RandomSeed": "1068244829", + "RESOURCE_MANAGER_URL": null, + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" } } diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/tests/SessionRecords/ServicePrincipalTests/CanListServicePrincipal().json b/sdk/automanage/Azure.ResourceManager.Automanage/tests/SessionRecords/ServicePrincipalTests/CanListServicePrincipal().json new file mode 100644 index 0000000000000..5214a2d62463a --- /dev/null +++ b/sdk/automanage/Azure.ResourceManager.Automanage/tests/SessionRecords/ServicePrincipalTests/CanListServicePrincipal().json @@ -0,0 +1,99 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2021-01-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-9fa8ad2fc168fe837493d39ae8d14034-afc0900c3a35e9c6-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "a8eb9d13077971965d91346626b60b64", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "748", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 21 Feb 2023 06:30:14 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b5f75bf1-c35f-4a54-8da9-db6ef9c4c333", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-request-id": "b5f75bf1-c35f-4a54-8da9-db6ef9c4c333", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230221T063015Z:b5f75bf1-c35f-4a54-8da9-db6ef9c4c333" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "TagKey-9823": "TagValue-1254", + "TagKey-3481": "TagValue-320", + "TagKey-4926": "TagValue-1187", + "TagKey-751": "TagValue-3921", + "TagKey-1866": "TagValue-8559", + "TagKey-3094": "TagValue-9190", + "TagKey-2449": "TagValue-9", + "TagKey-8379": "TagValue-164", + "TagKey-7470": "TagValue-2205", + "TagKey-4236": "TagValue-3698", + "TagKey-5316": "TagValue-2725" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": ".NET Mgmt SDK Test with TTL = 1 Day", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.Automanage/servicePrincipals?api-version=2022-05-04", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-09f9803cc3b19a4f3a04eecebc4bf3d8-fb2f0dbff7b9477f-00", + "User-Agent": "azsdk-net-ResourceManager.Automanage/1.0.0-alpha.20230221.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "4d98669edfa9e2e3ddf56f150d43ca58", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "12", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 21 Feb 2023 06:30:14 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "4d98669edfa9e2e3ddf56f150d43ca58", + "x-ms-correlation-request-id": "73501e42-e7a4-49c0-b462-dc09252ea6b4", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-request-id": "73501e42-e7a4-49c0-b462-dc09252ea6b4", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230221T063015Z:73501e42-e7a4-49c0-b462-dc09252ea6b4" + }, + "ResponseBody": { + "value": [] + } + } + ], + "Variables": { + "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com", + "RandomSeed": "791793933", + "RESOURCE_MANAGER_URL": null, + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/tests/SessionRecords/ServicePrincipalTests/CanListServicePrincipal()Async.json b/sdk/automanage/Azure.ResourceManager.Automanage/tests/SessionRecords/ServicePrincipalTests/CanListServicePrincipal()Async.json new file mode 100644 index 0000000000000..7889281202953 --- /dev/null +++ b/sdk/automanage/Azure.ResourceManager.Automanage/tests/SessionRecords/ServicePrincipalTests/CanListServicePrincipal()Async.json @@ -0,0 +1,98 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2021-01-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-d6137318654b826b9cedd34acc5ad77b-5a57bee19952cc62-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "150c939826aacf1fcfbdc43815b8caaf", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "748", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 21 Feb 2023 06:30:15 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3e56e72a-3e4c-41c0-970a-f06e5f0b4036", + "x-ms-ratelimit-remaining-subscription-reads": "11993", + "x-ms-request-id": "3e56e72a-3e4c-41c0-970a-f06e5f0b4036", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230221T063016Z:3e56e72a-3e4c-41c0-970a-f06e5f0b4036" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "TagKey-9823": "TagValue-1254", + "TagKey-3481": "TagValue-320", + "TagKey-4926": "TagValue-1187", + "TagKey-751": "TagValue-3921", + "TagKey-1866": "TagValue-8559", + "TagKey-3094": "TagValue-9190", + "TagKey-2449": "TagValue-9", + "TagKey-8379": "TagValue-164", + "TagKey-7470": "TagValue-2205", + "TagKey-4236": "TagValue-3698", + "TagKey-5316": "TagValue-2725" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": ".NET Mgmt SDK Test with TTL = 1 Day", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.Automanage/servicePrincipals?api-version=2022-05-04", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-ResourceManager.Automanage/1.0.0-alpha.20230221.1 (.NET 6.0.14; Microsoft Windows 10.0.19045)", + "x-ms-client-request-id": "aeef5284e3fa260c2674700603e170cd", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "12", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 21 Feb 2023 06:30:15 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:a4d240dc-d543-4b4e-a019-0a571290b85d", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-client-request-id": "aeef5284e3fa260c2674700603e170cd", + "x-ms-correlation-request-id": "67a2737e-5171-4031-933a-127f81ed2b59", + "x-ms-ratelimit-remaining-subscription-reads": "11992", + "x-ms-request-id": "67a2737e-5171-4031-933a-127f81ed2b59", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230221T063016Z:67a2737e-5171-4031-933a-127f81ed2b59" + }, + "ResponseBody": { + "value": [] + } + } + ], + "Variables": { + "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com", + "RandomSeed": "483362701", + "RESOURCE_MANAGER_URL": null, + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" + } +} From 8dc6301cc02a478b65a2edd5d212dddec845dd0f Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Tue, 21 Feb 2023 04:23:59 -0500 Subject: [PATCH 39/72] Update AutoRest C# version to 3.0.0-beta.20230220.2 (#34407) --- eng/Packages.Data.props | 2 +- eng/emitter-package.json | 2 +- .../Samples/Sample_BackupEngineCollection.cs | 123 ++ .../Samples/Sample_BackupEngineResource.cs | 51 + .../Samples/Sample_BackupJobCollection.cs | 199 +++ .../Samples/Sample_BackupJobResource.cs | 79 ++ ...ckupPrivateEndpointConnectionCollection.cs | 137 ++ ...BackupPrivateEndpointConnectionResource.cs | 127 ++ .../Sample_BackupProtectedItemCollection.cs | 253 ++++ .../Sample_BackupProtectedItemResource.cs | 284 ++++ ...ple_BackupProtectionContainerCollection.cs | 137 ++ ...ample_BackupProtectionContainerResource.cs | 218 +++ ...Sample_BackupProtectionIntentCollection.cs | 135 ++ .../Sample_BackupProtectionIntentResource.cs | 159 +++ ...Sample_BackupProtectionPolicyCollection.cs | 1178 +++++++++++++++++ .../Sample_BackupProtectionPolicyResource.cs | 1002 ++++++++++++++ .../Sample_BackupRecoveryPointCollection.cs | 131 ++ .../Sample_BackupRecoveryPointResource.cs | 500 +++++++ .../Sample_BackupResourceConfigCollection.cs | 129 ++ .../Sample_BackupResourceConfigResource.cs | 147 ++ ...ourceEncryptionConfigExtendedCollection.cs | 126 ++ ...esourceEncryptionConfigExtendedResource.cs | 89 ++ ...ple_BackupResourceVaultConfigCollection.cs | 129 ++ ...ample_BackupResourceVaultConfigResource.cs | 89 ++ .../Sample_ResourceGroupResourceExtensions.cs | 339 +++++ .../Sample_ResourceGuardProxyCollection.cs | 168 +++ .../Sample_ResourceGuardProxyResource.cs | 157 +++ .../Sample_SubscriptionResourceExtensions.cs | 83 ++ 28 files changed, 6171 insertions(+), 2 deletions(-) create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupEngineCollection.cs create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupEngineResource.cs create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupJobCollection.cs create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupJobResource.cs create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupPrivateEndpointConnectionCollection.cs create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupPrivateEndpointConnectionResource.cs create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectedItemCollection.cs create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectedItemResource.cs create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectionContainerCollection.cs create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectionContainerResource.cs create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectionIntentCollection.cs create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectionIntentResource.cs create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectionPolicyCollection.cs create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectionPolicyResource.cs create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupRecoveryPointCollection.cs create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupRecoveryPointResource.cs create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceConfigCollection.cs create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceConfigResource.cs create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceEncryptionConfigExtendedCollection.cs create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceEncryptionConfigExtendedResource.cs create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceVaultConfigCollection.cs create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceVaultConfigResource.cs create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ResourceGroupResourceExtensions.cs create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ResourceGuardProxyCollection.cs create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ResourceGuardProxyResource.cs create mode 100644 sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props index 6b986d89a7273..f01c28bbccc3e 100644 --- a/eng/Packages.Data.props +++ b/eng/Packages.Data.props @@ -160,7 +160,7 @@ All should have PrivateAssets="All" set so they don't become package dependencies --> - + diff --git a/eng/emitter-package.json b/eng/emitter-package.json index 503be31021b45..d751875492821 100644 --- a/eng/emitter-package.json +++ b/eng/emitter-package.json @@ -1,6 +1,6 @@ { "main": "dist/src/index.js", "dependencies": { - "@azure-tools/cadl-csharp": "0.1.11-beta.20230216.5" + "@azure-tools/cadl-csharp": "0.1.11-beta.20230220.2" } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupEngineCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupEngineCollection.cs new file mode 100644 index 0000000000000..c9c1b26cf1897 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupEngineCollection.cs @@ -0,0 +1,123 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.RecoveryServicesBackup; +using Azure.ResourceManager.Resources; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Samples +{ + public partial class Sample_BackupEngineCollection + { + // List Dpm/AzureBackupServer/Lajolla Backup Engines + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetAll_ListDpmAzureBackupServerLajollaBackupEngines() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Dpm/BackupEngines_List.json + // this example is just showing the usage of "BackupEngines_List" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "testRG"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this BackupEngineResource + string vaultName = "testVault"; + BackupEngineCollection collection = resourceGroupResource.GetBackupEngines(vaultName); + + // invoke the operation and iterate over the result + await foreach (BackupEngineResource item in collection.GetAllAsync()) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupEngineData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // Get Dpm/AzureBackupServer/Lajolla Backup Engine Details + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetDpmAzureBackupServerLajollaBackupEngineDetails() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Dpm/BackupEngines_Get.json + // this example is just showing the usage of "BackupEngines_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "testRG"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this BackupEngineResource + string vaultName = "testVault"; + BackupEngineCollection collection = resourceGroupResource.GetBackupEngines(vaultName); + + // invoke the operation + string backupEngineName = "testServer"; + BackupEngineResource result = await collection.GetAsync(backupEngineName); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupEngineData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Get Dpm/AzureBackupServer/Lajolla Backup Engine Details + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_GetDpmAzureBackupServerLajollaBackupEngineDetails() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Dpm/BackupEngines_Get.json + // this example is just showing the usage of "BackupEngines_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "testRG"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this BackupEngineResource + string vaultName = "testVault"; + BackupEngineCollection collection = resourceGroupResource.GetBackupEngines(vaultName); + + // invoke the operation + string backupEngineName = "testServer"; + bool result = await collection.ExistsAsync(backupEngineName); + + Console.WriteLine($"Succeeded: {result}"); + } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupEngineResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupEngineResource.cs new file mode 100644 index 0000000000000..5cebce5454a0e --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupEngineResource.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.RecoveryServicesBackup; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Samples +{ + public partial class Sample_BackupEngineResource + { + // Get Dpm/AzureBackupServer/Lajolla Backup Engine Details + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetDpmAzureBackupServerLajollaBackupEngineDetails() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Dpm/BackupEngines_Get.json + // this example is just showing the usage of "BackupEngines_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupEngineResource created on azure + // for more information of creating BackupEngineResource, please refer to the document of BackupEngineResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "testRG"; + string vaultName = "testVault"; + string backupEngineName = "testServer"; + ResourceIdentifier backupEngineResourceId = BackupEngineResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, backupEngineName); + BackupEngineResource backupEngine = client.GetBackupEngineResource(backupEngineResourceId); + + // invoke the operation + BackupEngineResource result = await backupEngine.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupEngineData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupJobCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupJobCollection.cs new file mode 100644 index 0000000000000..423f2aa95f827 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupJobCollection.cs @@ -0,0 +1,199 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.RecoveryServicesBackup; +using Azure.ResourceManager.Resources; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Samples +{ + public partial class Sample_BackupJobCollection + { + // List All Jobs + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetAll_ListAllJobs() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/ListJobs.json + // this example is just showing the usage of "BackupJobs_List" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "SwaggerTestRg"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this BackupJobResource + string vaultName = "NetSDKTestRsVault"; + BackupJobCollection collection = resourceGroupResource.GetBackupJobs(vaultName); + + // invoke the operation and iterate over the result + await foreach (BackupJobResource item in collection.GetAllAsync()) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupJobData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // List Jobs With Filters + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetAll_ListJobsWithFilters() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/ListJobsWithAllSupportedFilters.json + // this example is just showing the usage of "BackupJobs_List" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "SwaggerTestRg"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this BackupJobResource + string vaultName = "NetSDKTestRsVault"; + BackupJobCollection collection = resourceGroupResource.GetBackupJobs(vaultName); + + // invoke the operation and iterate over the result + string filter = "startTime eq '2016-01-01 00:00:00 AM' and endTime eq '2017-11-29 00:00:00 AM' and operation eq 'Backup' and backupManagementType eq 'AzureIaasVM' and status eq 'InProgress'"; + await foreach (BackupJobResource item in collection.GetAllAsync(filter: filter)) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupJobData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // List Jobs With Time Filter + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetAll_ListJobsWithTimeFilter() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/ListJobsWithStartTimeAndEndTimeFilters.json + // this example is just showing the usage of "BackupJobs_List" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "SwaggerTestRg"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this BackupJobResource + string vaultName = "NetSDKTestRsVault"; + BackupJobCollection collection = resourceGroupResource.GetBackupJobs(vaultName); + + // invoke the operation and iterate over the result + string filter = "startTime eq '2016-01-01 00:00:00 AM' and endTime eq '2017-11-29 00:00:00 AM'"; + await foreach (BackupJobResource item in collection.GetAllAsync(filter: filter)) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupJobData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // Get Job Details + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetJobDetails() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/GetJobDetails.json + // this example is just showing the usage of "JobDetails_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "SwaggerTestRg"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this BackupJobResource + string vaultName = "NetSDKTestRsVault"; + BackupJobCollection collection = resourceGroupResource.GetBackupJobs(vaultName); + + // invoke the operation + string jobName = "00000000-0000-0000-0000-000000000000"; + BackupJobResource result = await collection.GetAsync(jobName); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupJobData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Get Job Details + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_GetJobDetails() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/GetJobDetails.json + // this example is just showing the usage of "JobDetails_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "SwaggerTestRg"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this BackupJobResource + string vaultName = "NetSDKTestRsVault"; + BackupJobCollection collection = resourceGroupResource.GetBackupJobs(vaultName); + + // invoke the operation + string jobName = "00000000-0000-0000-0000-000000000000"; + bool result = await collection.ExistsAsync(jobName); + + Console.WriteLine($"Succeeded: {result}"); + } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupJobResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupJobResource.cs new file mode 100644 index 0000000000000..87ce651e907b1 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupJobResource.cs @@ -0,0 +1,79 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.RecoveryServicesBackup; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Samples +{ + public partial class Sample_BackupJobResource + { + // Get Job Details + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetJobDetails() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/GetJobDetails.json + // this example is just showing the usage of "JobDetails_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupJobResource created on azure + // for more information of creating BackupJobResource, please refer to the document of BackupJobResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "SwaggerTestRg"; + string vaultName = "NetSDKTestRsVault"; + string jobName = "00000000-0000-0000-0000-000000000000"; + ResourceIdentifier backupJobResourceId = BackupJobResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, jobName); + BackupJobResource backupJob = client.GetBackupJobResource(backupJobResourceId); + + // invoke the operation + BackupJobResource result = await backupJob.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupJobData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Cancel Job + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task TriggerJobCancellation_CancelJob() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/TriggerCancelJob.json + // this example is just showing the usage of "JobCancellations_Trigger" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupJobResource created on azure + // for more information of creating BackupJobResource, please refer to the document of BackupJobResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "SwaggerTestRg"; + string vaultName = "NetSDKTestRsVault"; + string jobName = "00000000-0000-0000-0000-000000000000"; + ResourceIdentifier backupJobResourceId = BackupJobResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, jobName); + BackupJobResource backupJob = client.GetBackupJobResource(backupJobResourceId); + + // invoke the operation + await backupJob.TriggerJobCancellationAsync(); + + Console.WriteLine($"Succeeded"); + } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupPrivateEndpointConnectionCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupPrivateEndpointConnectionCollection.cs new file mode 100644 index 0000000000000..bf6f693b2c941 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupPrivateEndpointConnectionCollection.cs @@ -0,0 +1,137 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.RecoveryServicesBackup; +using Azure.ResourceManager.RecoveryServicesBackup.Models; +using Azure.ResourceManager.Resources; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Samples +{ + public partial class Sample_BackupPrivateEndpointConnectionCollection + { + // Get PrivateEndpointConnection + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetPrivateEndpointConnection() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/PrivateEndpointConnection/GetPrivateEndpointConnection.json + // this example is just showing the usage of "PrivateEndpointConnection_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "04cf684a-d41f-4550-9f70-7708a3a2283b"; + string resourceGroupName = "gaallaRG"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this BackupPrivateEndpointConnectionResource + BackupPrivateEndpointConnectionCollection collection = resourceGroupResource.GetBackupPrivateEndpointConnections(); + + // invoke the operation + string vaultName = "gaallavaultbvtd2msi"; + string privateEndpointConnectionName = "gaallatestpe2.5704c932-249a-490b-a142-1396838cd3b"; + BackupPrivateEndpointConnectionResource result = await collection.GetAsync(vaultName, privateEndpointConnectionName); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupPrivateEndpointConnectionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Get PrivateEndpointConnection + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_GetPrivateEndpointConnection() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/PrivateEndpointConnection/GetPrivateEndpointConnection.json + // this example is just showing the usage of "PrivateEndpointConnection_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "04cf684a-d41f-4550-9f70-7708a3a2283b"; + string resourceGroupName = "gaallaRG"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this BackupPrivateEndpointConnectionResource + BackupPrivateEndpointConnectionCollection collection = resourceGroupResource.GetBackupPrivateEndpointConnections(); + + // invoke the operation + string vaultName = "gaallavaultbvtd2msi"; + string privateEndpointConnectionName = "gaallatestpe2.5704c932-249a-490b-a142-1396838cd3b"; + bool result = await collection.ExistsAsync(vaultName, privateEndpointConnectionName); + + Console.WriteLine($"Succeeded: {result}"); + } + + // Update PrivateEndpointConnection + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_UpdatePrivateEndpointConnection() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/PrivateEndpointConnection/PutPrivateEndpointConnection.json + // this example is just showing the usage of "PrivateEndpointConnection_Put" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "04cf684a-d41f-4550-9f70-7708a3a2283b"; + string resourceGroupName = "gaallaRG"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this BackupPrivateEndpointConnectionResource + BackupPrivateEndpointConnectionCollection collection = resourceGroupResource.GetBackupPrivateEndpointConnections(); + + // invoke the operation + string vaultName = "gaallavaultbvtd2msi"; + string privateEndpointConnectionName = "gaallatestpe2.5704c932-249a-490b-a142-1396838cd3b"; + BackupPrivateEndpointConnectionData data = new BackupPrivateEndpointConnectionData(new AzureLocation("placeholder")) + { + Properties = new BackupPrivateEndpointConnectionProperties() + { + ProvisioningState = BackupPrivateEndpointConnectionProvisioningState.Succeeded, + PrivateEndpointId = new ResourceIdentifier("/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/gaallaRG/providers/Microsoft.Network/privateEndpoints/gaallatestpe3"), + PrivateLinkServiceConnectionState = new RecoveryServicesBackupPrivateLinkServiceConnectionState() + { + Status = PrivateEndpointConnectionStatus.Approved, + Description = "Approved by johndoe@company.com", + }, + }, + }; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, vaultName, privateEndpointConnectionName, data); + BackupPrivateEndpointConnectionResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupPrivateEndpointConnectionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupPrivateEndpointConnectionResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupPrivateEndpointConnectionResource.cs new file mode 100644 index 0000000000000..4b52e591fa9ef --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupPrivateEndpointConnectionResource.cs @@ -0,0 +1,127 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.RecoveryServicesBackup; +using Azure.ResourceManager.RecoveryServicesBackup.Models; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Samples +{ + public partial class Sample_BackupPrivateEndpointConnectionResource + { + // Get PrivateEndpointConnection + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetPrivateEndpointConnection() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/PrivateEndpointConnection/GetPrivateEndpointConnection.json + // this example is just showing the usage of "PrivateEndpointConnection_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupPrivateEndpointConnectionResource created on azure + // for more information of creating BackupPrivateEndpointConnectionResource, please refer to the document of BackupPrivateEndpointConnectionResource + string subscriptionId = "04cf684a-d41f-4550-9f70-7708a3a2283b"; + string resourceGroupName = "gaallaRG"; + string vaultName = "gaallavaultbvtd2msi"; + string privateEndpointConnectionName = "gaallatestpe2.5704c932-249a-490b-a142-1396838cd3b"; + ResourceIdentifier backupPrivateEndpointConnectionResourceId = BackupPrivateEndpointConnectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, privateEndpointConnectionName); + BackupPrivateEndpointConnectionResource backupPrivateEndpointConnection = client.GetBackupPrivateEndpointConnectionResource(backupPrivateEndpointConnectionResourceId); + + // invoke the operation + BackupPrivateEndpointConnectionResource result = await backupPrivateEndpointConnection.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupPrivateEndpointConnectionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Update PrivateEndpointConnection + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Update_UpdatePrivateEndpointConnection() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/PrivateEndpointConnection/PutPrivateEndpointConnection.json + // this example is just showing the usage of "PrivateEndpointConnection_Put" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupPrivateEndpointConnectionResource created on azure + // for more information of creating BackupPrivateEndpointConnectionResource, please refer to the document of BackupPrivateEndpointConnectionResource + string subscriptionId = "04cf684a-d41f-4550-9f70-7708a3a2283b"; + string resourceGroupName = "gaallaRG"; + string vaultName = "gaallavaultbvtd2msi"; + string privateEndpointConnectionName = "gaallatestpe2.5704c932-249a-490b-a142-1396838cd3b"; + ResourceIdentifier backupPrivateEndpointConnectionResourceId = BackupPrivateEndpointConnectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, privateEndpointConnectionName); + BackupPrivateEndpointConnectionResource backupPrivateEndpointConnection = client.GetBackupPrivateEndpointConnectionResource(backupPrivateEndpointConnectionResourceId); + + // invoke the operation + BackupPrivateEndpointConnectionData data = new BackupPrivateEndpointConnectionData(new AzureLocation("placeholder")) + { + Properties = new BackupPrivateEndpointConnectionProperties() + { + ProvisioningState = BackupPrivateEndpointConnectionProvisioningState.Succeeded, + PrivateEndpointId = new ResourceIdentifier("/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/gaallaRG/providers/Microsoft.Network/privateEndpoints/gaallatestpe3"), + PrivateLinkServiceConnectionState = new RecoveryServicesBackupPrivateLinkServiceConnectionState() + { + Status = PrivateEndpointConnectionStatus.Approved, + Description = "Approved by johndoe@company.com", + }, + }, + }; + ArmOperation lro = await backupPrivateEndpointConnection.UpdateAsync(WaitUntil.Completed, data); + BackupPrivateEndpointConnectionResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupPrivateEndpointConnectionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Delete PrivateEndpointConnection + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Delete_DeletePrivateEndpointConnection() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/PrivateEndpointConnection/DeletePrivateEndpointConnection.json + // this example is just showing the usage of "PrivateEndpointConnection_Delete" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupPrivateEndpointConnectionResource created on azure + // for more information of creating BackupPrivateEndpointConnectionResource, please refer to the document of BackupPrivateEndpointConnectionResource + string subscriptionId = "04cf684a-d41f-4550-9f70-7708a3a2283b"; + string resourceGroupName = "gaallaRG"; + string vaultName = "gaallavaultbvtd2msi"; + string privateEndpointConnectionName = "gaallatestpe2.5704c932-249a-490b-a142-1396838cd3b"; + ResourceIdentifier backupPrivateEndpointConnectionResourceId = BackupPrivateEndpointConnectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, privateEndpointConnectionName); + BackupPrivateEndpointConnectionResource backupPrivateEndpointConnection = client.GetBackupPrivateEndpointConnectionResource(backupPrivateEndpointConnectionResourceId); + + // invoke the operation + await backupPrivateEndpointConnection.DeleteAsync(WaitUntil.Completed); + + Console.WriteLine($"Succeeded"); + } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectedItemCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectedItemCollection.cs new file mode 100644 index 0000000000000..aceaef90dc674 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectedItemCollection.cs @@ -0,0 +1,253 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.RecoveryServicesBackup; +using Azure.ResourceManager.RecoveryServicesBackup.Models; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Samples +{ + public partial class Sample_BackupProtectedItemCollection + { + // Get Protected Classic Virtual Machine Details + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetProtectedClassicVirtualMachineDetails() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/ClassicCompute_ProtectedItem_Get.json + // this example is just showing the usage of "ProtectedItems_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupProtectionContainerResource created on azure + // for more information of creating BackupProtectionContainerResource, please refer to the document of BackupProtectionContainerResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "PythonSDKBackupTestRg"; + string vaultName = "PySDKBackupTestRsVault"; + string fabricName = "Azure"; + string containerName = "iaasvmcontainer;iaasvmcontainer;iaasvm-rg;iaasvm-1"; + ResourceIdentifier backupProtectionContainerResourceId = BackupProtectionContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName); + BackupProtectionContainerResource backupProtectionContainer = client.GetBackupProtectionContainerResource(backupProtectionContainerResourceId); + + // get the collection of this BackupProtectedItemResource + BackupProtectedItemCollection collection = backupProtectionContainer.GetBackupProtectedItems(); + + // invoke the operation + string protectedItemName = "vm;iaasvmcontainer;iaasvm-rg;iaasvm-1"; + BackupProtectedItemResource result = await collection.GetAsync(protectedItemName); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupProtectedItemData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Get Protected Classic Virtual Machine Details + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_GetProtectedClassicVirtualMachineDetails() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/ClassicCompute_ProtectedItem_Get.json + // this example is just showing the usage of "ProtectedItems_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupProtectionContainerResource created on azure + // for more information of creating BackupProtectionContainerResource, please refer to the document of BackupProtectionContainerResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "PythonSDKBackupTestRg"; + string vaultName = "PySDKBackupTestRsVault"; + string fabricName = "Azure"; + string containerName = "iaasvmcontainer;iaasvmcontainer;iaasvm-rg;iaasvm-1"; + ResourceIdentifier backupProtectionContainerResourceId = BackupProtectionContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName); + BackupProtectionContainerResource backupProtectionContainer = client.GetBackupProtectionContainerResource(backupProtectionContainerResourceId); + + // get the collection of this BackupProtectedItemResource + BackupProtectedItemCollection collection = backupProtectionContainer.GetBackupProtectedItems(); + + // invoke the operation + string protectedItemName = "vm;iaasvmcontainer;iaasvm-rg;iaasvm-1"; + bool result = await collection.ExistsAsync(protectedItemName); + + Console.WriteLine($"Succeeded: {result}"); + } + + // Get Protected Virtual Machine Details + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetProtectedVirtualMachineDetails() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/Compute_ProtectedItem_Get.json + // this example is just showing the usage of "ProtectedItems_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupProtectionContainerResource created on azure + // for more information of creating BackupProtectionContainerResource, please refer to the document of BackupProtectionContainerResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "PythonSDKBackupTestRg"; + string vaultName = "PySDKBackupTestRsVault"; + string fabricName = "Azure"; + string containerName = "iaasvmcontainer;iaasvmcontainerv2;iaasvm-rg;iaasvm-1"; + ResourceIdentifier backupProtectionContainerResourceId = BackupProtectionContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName); + BackupProtectionContainerResource backupProtectionContainer = client.GetBackupProtectionContainerResource(backupProtectionContainerResourceId); + + // get the collection of this BackupProtectedItemResource + BackupProtectedItemCollection collection = backupProtectionContainer.GetBackupProtectedItems(); + + // invoke the operation + string protectedItemName = "vm;iaasvmcontainerv2;iaasvm-rg;iaasvm-1"; + BackupProtectedItemResource result = await collection.GetAsync(protectedItemName); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupProtectedItemData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Get Protected Virtual Machine Details + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_GetProtectedVirtualMachineDetails() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/Compute_ProtectedItem_Get.json + // this example is just showing the usage of "ProtectedItems_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupProtectionContainerResource created on azure + // for more information of creating BackupProtectionContainerResource, please refer to the document of BackupProtectionContainerResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "PythonSDKBackupTestRg"; + string vaultName = "PySDKBackupTestRsVault"; + string fabricName = "Azure"; + string containerName = "iaasvmcontainer;iaasvmcontainerv2;iaasvm-rg;iaasvm-1"; + ResourceIdentifier backupProtectionContainerResourceId = BackupProtectionContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName); + BackupProtectionContainerResource backupProtectionContainer = client.GetBackupProtectionContainerResource(backupProtectionContainerResourceId); + + // get the collection of this BackupProtectedItemResource + BackupProtectedItemCollection collection = backupProtectionContainer.GetBackupProtectedItems(); + + // invoke the operation + string protectedItemName = "vm;iaasvmcontainerv2;iaasvm-rg;iaasvm-1"; + bool result = await collection.ExistsAsync(protectedItemName); + + Console.WriteLine($"Succeeded: {result}"); + } + + // Enable Protection on Azure IaasVm + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_EnableProtectionOnAzureIaasVm() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/ConfigureProtection.json + // this example is just showing the usage of "ProtectedItems_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupProtectionContainerResource created on azure + // for more information of creating BackupProtectionContainerResource, please refer to the document of BackupProtectionContainerResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "SwaggerTestRg"; + string vaultName = "NetSDKTestRsVault"; + string fabricName = "Azure"; + string containerName = "IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1"; + ResourceIdentifier backupProtectionContainerResourceId = BackupProtectionContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName); + BackupProtectionContainerResource backupProtectionContainer = client.GetBackupProtectionContainerResource(backupProtectionContainerResourceId); + + // get the collection of this BackupProtectedItemResource + BackupProtectedItemCollection collection = backupProtectionContainer.GetBackupProtectedItems(); + + // invoke the operation + string protectedItemName = "VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1"; + BackupProtectedItemData data = new BackupProtectedItemData(new AzureLocation("placeholder")) + { + Properties = new IaasComputeVmProtectedItem() + { + SourceResourceId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1"), + PolicyId = new ResourceIdentifier("/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupPolicies/DefaultPolicy"), + }, + }; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, protectedItemName, data); + BackupProtectedItemResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupProtectedItemData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Stop Protection with retain data on Azure IaasVm + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_StopProtectionWithRetainDataOnAzureIaasVm() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/StopProtection.json + // this example is just showing the usage of "ProtectedItems_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupProtectionContainerResource created on azure + // for more information of creating BackupProtectionContainerResource, please refer to the document of BackupProtectionContainerResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "SwaggerTestRg"; + string vaultName = "NetSDKTestRsVault"; + string fabricName = "Azure"; + string containerName = "IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1"; + ResourceIdentifier backupProtectionContainerResourceId = BackupProtectionContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName); + BackupProtectionContainerResource backupProtectionContainer = client.GetBackupProtectionContainerResource(backupProtectionContainerResourceId); + + // get the collection of this BackupProtectedItemResource + BackupProtectedItemCollection collection = backupProtectionContainer.GetBackupProtectedItems(); + + // invoke the operation + string protectedItemName = "VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1"; + BackupProtectedItemData data = new BackupProtectedItemData(new AzureLocation("placeholder")) + { + Properties = new IaasComputeVmProtectedItem() + { + ProtectionState = BackupProtectionState.ProtectionStopped, + SourceResourceId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1"), + }, + }; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, protectedItemName, data); + BackupProtectedItemResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupProtectedItemData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectedItemResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectedItemResource.cs new file mode 100644 index 0000000000000..e22879c46f217 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectedItemResource.cs @@ -0,0 +1,284 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.RecoveryServicesBackup; +using Azure.ResourceManager.RecoveryServicesBackup.Models; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Samples +{ + public partial class Sample_BackupProtectedItemResource + { + // Get Protected Classic Virtual Machine Details + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetProtectedClassicVirtualMachineDetails() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/ClassicCompute_ProtectedItem_Get.json + // this example is just showing the usage of "ProtectedItems_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupProtectedItemResource created on azure + // for more information of creating BackupProtectedItemResource, please refer to the document of BackupProtectedItemResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "PythonSDKBackupTestRg"; + string vaultName = "PySDKBackupTestRsVault"; + string fabricName = "Azure"; + string containerName = "iaasvmcontainer;iaasvmcontainer;iaasvm-rg;iaasvm-1"; + string protectedItemName = "vm;iaasvmcontainer;iaasvm-rg;iaasvm-1"; + ResourceIdentifier backupProtectedItemResourceId = BackupProtectedItemResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName); + BackupProtectedItemResource backupProtectedItem = client.GetBackupProtectedItemResource(backupProtectedItemResourceId); + + // invoke the operation + BackupProtectedItemResource result = await backupProtectedItem.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupProtectedItemData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Get Protected Virtual Machine Details + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetProtectedVirtualMachineDetails() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/Compute_ProtectedItem_Get.json + // this example is just showing the usage of "ProtectedItems_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupProtectedItemResource created on azure + // for more information of creating BackupProtectedItemResource, please refer to the document of BackupProtectedItemResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "PythonSDKBackupTestRg"; + string vaultName = "PySDKBackupTestRsVault"; + string fabricName = "Azure"; + string containerName = "iaasvmcontainer;iaasvmcontainerv2;iaasvm-rg;iaasvm-1"; + string protectedItemName = "vm;iaasvmcontainerv2;iaasvm-rg;iaasvm-1"; + ResourceIdentifier backupProtectedItemResourceId = BackupProtectedItemResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName); + BackupProtectedItemResource backupProtectedItem = client.GetBackupProtectedItemResource(backupProtectedItemResourceId); + + // invoke the operation + BackupProtectedItemResource result = await backupProtectedItem.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupProtectedItemData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Enable Protection on Azure IaasVm + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Update_EnableProtectionOnAzureIaasVm() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/ConfigureProtection.json + // this example is just showing the usage of "ProtectedItems_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupProtectedItemResource created on azure + // for more information of creating BackupProtectedItemResource, please refer to the document of BackupProtectedItemResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "SwaggerTestRg"; + string vaultName = "NetSDKTestRsVault"; + string fabricName = "Azure"; + string containerName = "IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1"; + string protectedItemName = "VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1"; + ResourceIdentifier backupProtectedItemResourceId = BackupProtectedItemResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName); + BackupProtectedItemResource backupProtectedItem = client.GetBackupProtectedItemResource(backupProtectedItemResourceId); + + // invoke the operation + BackupProtectedItemData data = new BackupProtectedItemData(new AzureLocation("placeholder")) + { + Properties = new IaasComputeVmProtectedItem() + { + SourceResourceId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1"), + PolicyId = new ResourceIdentifier("/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupPolicies/DefaultPolicy"), + }, + }; + ArmOperation lro = await backupProtectedItem.UpdateAsync(WaitUntil.Completed, data); + BackupProtectedItemResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupProtectedItemData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Stop Protection with retain data on Azure IaasVm + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Update_StopProtectionWithRetainDataOnAzureIaasVm() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/StopProtection.json + // this example is just showing the usage of "ProtectedItems_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupProtectedItemResource created on azure + // for more information of creating BackupProtectedItemResource, please refer to the document of BackupProtectedItemResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "SwaggerTestRg"; + string vaultName = "NetSDKTestRsVault"; + string fabricName = "Azure"; + string containerName = "IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1"; + string protectedItemName = "VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1"; + ResourceIdentifier backupProtectedItemResourceId = BackupProtectedItemResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName); + BackupProtectedItemResource backupProtectedItem = client.GetBackupProtectedItemResource(backupProtectedItemResourceId); + + // invoke the operation + BackupProtectedItemData data = new BackupProtectedItemData(new AzureLocation("placeholder")) + { + Properties = new IaasComputeVmProtectedItem() + { + ProtectionState = BackupProtectionState.ProtectionStopped, + SourceResourceId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1"), + }, + }; + ArmOperation lro = await backupProtectedItem.UpdateAsync(WaitUntil.Completed, data); + BackupProtectedItemResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupProtectedItemData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Delete Protection from Azure Virtual Machine + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Delete_DeleteProtectionFromAzureVirtualMachine() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/ProtectedItem_Delete.json + // this example is just showing the usage of "ProtectedItems_Delete" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupProtectedItemResource created on azure + // for more information of creating BackupProtectedItemResource, please refer to the document of BackupProtectedItemResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "PythonSDKBackupTestRg"; + string vaultName = "PySDKBackupTestRsVault"; + string fabricName = "Azure"; + string containerName = "iaasvmcontainer;iaasvmcontainerv2;pysdktestrg;pysdktestv2vm1"; + string protectedItemName = "vm;iaasvmcontainerv2;pysdktestrg;pysdktestv2vm1"; + ResourceIdentifier backupProtectedItemResourceId = BackupProtectedItemResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName); + BackupProtectedItemResource backupProtectedItem = client.GetBackupProtectedItemResource(backupProtectedItemResourceId); + + // invoke the operation + await backupProtectedItem.DeleteAsync(WaitUntil.Completed); + + Console.WriteLine($"Succeeded"); + } + + // Trigger Backup + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task TriggerBackup_TriggerBackup() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/TriggerBackup_Post.json + // this example is just showing the usage of "Backups_Trigger" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupProtectedItemResource created on azure + // for more information of creating BackupProtectedItemResource, please refer to the document of BackupProtectedItemResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "linuxRsVaultRG"; + string vaultName = "linuxRsVault"; + string fabricName = "Azure"; + string containerName = "IaasVMContainer;iaasvmcontainerv2;testrg;v1win2012r"; + string protectedItemName = "VM;iaasvmcontainerv2;testrg;v1win2012r"; + ResourceIdentifier backupProtectedItemResourceId = BackupProtectedItemResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName); + BackupProtectedItemResource backupProtectedItem = client.GetBackupProtectedItemResource(backupProtectedItemResourceId); + + // invoke the operation + TriggerBackupContent content = new TriggerBackupContent(new AzureLocation("placeholder")) + { + Properties = new IaasVmBackupContent(), + }; + await backupProtectedItem.TriggerBackupAsync(content); + + Console.WriteLine($"Succeeded"); + } + + // Get Protected Azure Vm Recovery Points Recommended for Move + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetRecoveryPointsRecommendedForMove_GetProtectedAzureVmRecoveryPointsRecommendedForMove() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/RecoveryPointsRecommendedForMove_List.json + // this example is just showing the usage of "RecoveryPointsRecommendedForMove_List" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupProtectedItemResource created on azure + // for more information of creating BackupProtectedItemResource, please refer to the document of BackupProtectedItemResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rshhtestmdvmrg"; + string vaultName = "rshvault"; + string fabricName = "Azure"; + string containerName = "IaasVMContainer;iaasvmcontainerv2;rshhtestmdvmrg;rshmdvmsmall"; + string protectedItemName = "VM;iaasvmcontainerv2;rshhtestmdvmrg;rshmdvmsmall"; + ResourceIdentifier backupProtectedItemResourceId = BackupProtectedItemResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName); + BackupProtectedItemResource backupProtectedItem = client.GetBackupProtectedItemResource(backupProtectedItemResourceId); + + // invoke the operation and iterate over the result + RecoveryPointsRecommendedForMoveContent content = new RecoveryPointsRecommendedForMoveContent() + { + ObjectType = "ListRecoveryPointsRecommendedForMoveRequest", + ExcludedRPList = +{ +"348916168024334","348916168024335" +}, + }; + await foreach (BackupRecoveryPointResource item in backupProtectedItem.GetRecoveryPointsRecommendedForMoveAsync(content)) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupRecoveryPointData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectionContainerCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectionContainerCollection.cs new file mode 100644 index 0000000000000..f291f4866453a --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectionContainerCollection.cs @@ -0,0 +1,137 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.RecoveryServicesBackup; +using Azure.ResourceManager.RecoveryServicesBackup.Models; +using Azure.ResourceManager.Resources; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Samples +{ + public partial class Sample_BackupProtectionContainerCollection + { + // Get Protection Container Details + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetProtectionContainerDetails() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureWorkload/ProtectionContainers_Get.json + // this example is just showing the usage of "ProtectionContainers_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "testRg"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this BackupProtectionContainerResource + BackupProtectionContainerCollection collection = resourceGroupResource.GetBackupProtectionContainers(); + + // invoke the operation + string vaultName = "testVault"; + string fabricName = "Azure"; + string containerName = "VMAppContainer;Compute;testRG;testSQL"; + BackupProtectionContainerResource result = await collection.GetAsync(vaultName, fabricName, containerName); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupProtectionContainerData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Get Protection Container Details + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_GetProtectionContainerDetails() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureWorkload/ProtectionContainers_Get.json + // this example is just showing the usage of "ProtectionContainers_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "testRg"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this BackupProtectionContainerResource + BackupProtectionContainerCollection collection = resourceGroupResource.GetBackupProtectionContainers(); + + // invoke the operation + string vaultName = "testVault"; + string fabricName = "Azure"; + string containerName = "VMAppContainer;Compute;testRG;testSQL"; + bool result = await collection.ExistsAsync(vaultName, fabricName, containerName); + + Console.WriteLine($"Succeeded: {result}"); + } + + // RegisterAzure Storage ProtectionContainers + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_RegisterAzureStorageProtectionContainers() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureStorage/ProtectionContainers_Register.json + // this example is just showing the usage of "ProtectionContainers_Register" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "SwaggerTestRg"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this BackupProtectionContainerResource + BackupProtectionContainerCollection collection = resourceGroupResource.GetBackupProtectionContainers(); + + // invoke the operation + string vaultName = "swaggertestvault"; + string fabricName = "Azure"; + string containerName = "StorageContainer;Storage;SwaggerTestRg;swaggertestsa"; + BackupProtectionContainerData data = new BackupProtectionContainerData(new AzureLocation("placeholder")) + { + Properties = new StorageContainer() + { + SourceResourceId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/SwaggerTestRg/providers/Microsoft.Storage/storageAccounts/swaggertestsa"), + AcquireStorageAccountLock = AcquireStorageAccountLock.Acquire, + FriendlyName = "swaggertestsa", + BackupManagementType = BackupManagementType.AzureStorage, + }, + }; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, vaultName, fabricName, containerName, data); + BackupProtectionContainerResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupProtectionContainerData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectionContainerResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectionContainerResource.cs new file mode 100644 index 0000000000000..c273c7696754b --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectionContainerResource.cs @@ -0,0 +1,218 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.RecoveryServicesBackup; +using Azure.ResourceManager.RecoveryServicesBackup.Models; +using Azure.ResourceManager.Resources; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Samples +{ + public partial class Sample_BackupProtectionContainerResource + { + // Get Protection Container Details + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetProtectionContainerDetails() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureWorkload/ProtectionContainers_Get.json + // this example is just showing the usage of "ProtectionContainers_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupProtectionContainerResource created on azure + // for more information of creating BackupProtectionContainerResource, please refer to the document of BackupProtectionContainerResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "testRg"; + string vaultName = "testVault"; + string fabricName = "Azure"; + string containerName = "VMAppContainer;Compute;testRG;testSQL"; + ResourceIdentifier backupProtectionContainerResourceId = BackupProtectionContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName); + BackupProtectionContainerResource backupProtectionContainer = client.GetBackupProtectionContainerResource(backupProtectionContainerResourceId); + + // invoke the operation + BackupProtectionContainerResource result = await backupProtectionContainer.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupProtectionContainerData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // RegisterAzure Storage ProtectionContainers + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Update_RegisterAzureStorageProtectionContainers() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureStorage/ProtectionContainers_Register.json + // this example is just showing the usage of "ProtectionContainers_Register" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupProtectionContainerResource created on azure + // for more information of creating BackupProtectionContainerResource, please refer to the document of BackupProtectionContainerResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "SwaggerTestRg"; + string vaultName = "swaggertestvault"; + string fabricName = "Azure"; + string containerName = "StorageContainer;Storage;SwaggerTestRg;swaggertestsa"; + ResourceIdentifier backupProtectionContainerResourceId = BackupProtectionContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName); + BackupProtectionContainerResource backupProtectionContainer = client.GetBackupProtectionContainerResource(backupProtectionContainerResourceId); + + // invoke the operation + BackupProtectionContainerData data = new BackupProtectionContainerData(new AzureLocation("placeholder")) + { + Properties = new StorageContainer() + { + SourceResourceId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/SwaggerTestRg/providers/Microsoft.Storage/storageAccounts/swaggertestsa"), + AcquireStorageAccountLock = AcquireStorageAccountLock.Acquire, + FriendlyName = "swaggertestsa", + BackupManagementType = BackupManagementType.AzureStorage, + }, + }; + ArmOperation lro = await backupProtectionContainer.UpdateAsync(WaitUntil.Completed, data); + BackupProtectionContainerResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupProtectionContainerData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Unregister Protection Container + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Delete_UnregisterProtectionContainer() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureWorkload/ProtectionContainers_Unregister.json + // this example is just showing the usage of "ProtectionContainers_Unregister" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupProtectionContainerResource created on azure + // for more information of creating BackupProtectionContainerResource, please refer to the document of BackupProtectionContainerResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "testRg"; + string vaultName = "testVault"; + string fabricName = "Azure"; + string containerName = "storagecontainer;Storage;test-rg;teststorage"; + ResourceIdentifier backupProtectionContainerResourceId = BackupProtectionContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName); + BackupProtectionContainerResource backupProtectionContainer = client.GetBackupProtectionContainerResource(backupProtectionContainerResourceId); + + // invoke the operation + await backupProtectionContainer.DeleteAsync(WaitUntil.Completed); + + Console.WriteLine($"Succeeded"); + } + + // Inquire Azure Storage Protection Containers + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Inquire_InquireAzureStorageProtectionContainers() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureStorage/ProtectionContainers_Inquire.json + // this example is just showing the usage of "ProtectionContainers_Inquire" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupProtectionContainerResource created on azure + // for more information of creating BackupProtectionContainerResource, please refer to the document of BackupProtectionContainerResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "test-rg"; + string vaultName = "testvault"; + string fabricName = "Azure"; + string containerName = "storagecontainer;Storage;test-rg;teststorage"; + ResourceIdentifier backupProtectionContainerResourceId = BackupProtectionContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName); + BackupProtectionContainerResource backupProtectionContainer = client.GetBackupProtectionContainerResource(backupProtectionContainerResourceId); + + // invoke the operation + await backupProtectionContainer.InquireAsync(); + + Console.WriteLine($"Succeeded"); + } + + // Trigger Azure Vm Discovery + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task RefreshProtectionContainer_TriggerAzureVmDiscovery() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/RefreshContainers.json + // this example is just showing the usage of "ProtectionContainers_Refresh" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "SwaggerTestRg"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // invoke the operation + string vaultName = "NetSDKTestRsVault"; + string fabricName = "Azure"; + await resourceGroupResource.RefreshProtectionContainerAsync(vaultName, fabricName); + + Console.WriteLine($"Succeeded"); + } + + // List Workload Items in Container + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetBackupWorkloadItems_ListWorkloadItemsInContainer() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureWorkload/BackupWorkloadItems_List.json + // this example is just showing the usage of "BackupWorkloadItems_List" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupProtectionContainerResource created on azure + // for more information of creating BackupProtectionContainerResource, please refer to the document of BackupProtectionContainerResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "testRg"; + string vaultName = "suchandr-seacan-rsv"; + string fabricName = "Azure"; + string containerName = "VMAppContainer;Compute;bvtdtestag;sqlserver-1"; + ResourceIdentifier backupProtectionContainerResourceId = BackupProtectionContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName); + BackupProtectionContainerResource backupProtectionContainer = client.GetBackupProtectionContainerResource(backupProtectionContainerResourceId); + + // invoke the operation and iterate over the result + string filter = "backupManagementType eq 'AzureWorkload'"; + await foreach (WorkloadItemResource item in backupProtectionContainer.GetBackupWorkloadItemsAsync(filter: filter)) + { + Console.WriteLine($"Succeeded: {item}"); + } + + Console.WriteLine($"Succeeded"); + } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectionIntentCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectionIntentCollection.cs new file mode 100644 index 0000000000000..950b0d7cbca0f --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectionIntentCollection.cs @@ -0,0 +1,135 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.RecoveryServicesBackup; +using Azure.ResourceManager.RecoveryServicesBackup.Models; +using Azure.ResourceManager.Resources; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Samples +{ + public partial class Sample_BackupProtectionIntentCollection + { + // Get ProtectionIntent for an item + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetProtectionIntentForAnItem() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureWorkload/BackupProtectionIntent_Get.json + // this example is just showing the usage of "ProtectionIntent_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "myRG"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this BackupProtectionIntentResource + BackupProtectionIntentCollection collection = resourceGroupResource.GetBackupProtectionIntents(); + + // invoke the operation + string vaultName = "myVault"; + string fabricName = "Azure"; + string intentObjectName = "249D9B07-D2EF-4202-AA64-65F35418564E"; + BackupProtectionIntentResource result = await collection.GetAsync(vaultName, fabricName, intentObjectName); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupProtectionIntentData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Get ProtectionIntent for an item + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_GetProtectionIntentForAnItem() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureWorkload/BackupProtectionIntent_Get.json + // this example is just showing the usage of "ProtectionIntent_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "myRG"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this BackupProtectionIntentResource + BackupProtectionIntentCollection collection = resourceGroupResource.GetBackupProtectionIntents(); + + // invoke the operation + string vaultName = "myVault"; + string fabricName = "Azure"; + string intentObjectName = "249D9B07-D2EF-4202-AA64-65F35418564E"; + bool result = await collection.ExistsAsync(vaultName, fabricName, intentObjectName); + + Console.WriteLine($"Succeeded: {result}"); + } + + // Create or Update Azure Vm Protection Intent + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_CreateOrUpdateAzureVmProtectionIntent() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/ProtectionIntent_CreateOrUpdate.json + // this example is just showing the usage of "ProtectionIntent_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "myRG"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this BackupProtectionIntentResource + BackupProtectionIntentCollection collection = resourceGroupResource.GetBackupProtectionIntents(); + + // invoke the operation + string vaultName = "myVault"; + string fabricName = "Azure"; + string intentObjectName = "vm;iaasvmcontainerv2;chamsrgtest;chamscandel"; + BackupProtectionIntentData data = new BackupProtectionIntentData(new AzureLocation("placeholder")) + { + Properties = new ResourceProtectionIntent() + { + SourceResourceId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/chamsrgtest/providers/Microsoft.Compute/virtualMachines/chamscandel"), + PolicyId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.RecoveryServices/vaults/myVault/backupPolicies/myPolicy"), + }, + }; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, vaultName, fabricName, intentObjectName, data); + BackupProtectionIntentResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupProtectionIntentData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectionIntentResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectionIntentResource.cs new file mode 100644 index 0000000000000..3d7204d8c76b4 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectionIntentResource.cs @@ -0,0 +1,159 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.RecoveryServicesBackup; +using Azure.ResourceManager.RecoveryServicesBackup.Models; +using Azure.ResourceManager.Resources; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Samples +{ + public partial class Sample_BackupProtectionIntentResource + { + // Validate Enable Protection on Azure Vm + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task ValidateProtectionIntent_ValidateEnableProtectionOnAzureVm() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/ProtectionIntent_Validate.json + // this example is just showing the usage of "ProtectionIntent_Validate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SubscriptionResource created on azure + // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId); + SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId); + + // invoke the operation + AzureLocation location = new AzureLocation("southeastasia"); + PreValidateEnableBackupContent content = new PreValidateEnableBackupContent() + { + ResourceType = BackupDataSourceType.Vm, + ResourceId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/arunaupgrade/providers/Microsoft.Compute/VirtualMachines/upgrade1"), + VaultId = new ResourceIdentifier("/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.RecoveryServices/Vaults/myVault"), + Properties = "", + }; + PreValidateEnableBackupResult result = await subscriptionResource.ValidateProtectionIntentAsync(location, content); + + Console.WriteLine($"Succeeded: {result}"); + } + + // Get ProtectionIntent for an item + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetProtectionIntentForAnItem() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureWorkload/BackupProtectionIntent_Get.json + // this example is just showing the usage of "ProtectionIntent_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupProtectionIntentResource created on azure + // for more information of creating BackupProtectionIntentResource, please refer to the document of BackupProtectionIntentResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "myRG"; + string vaultName = "myVault"; + string fabricName = "Azure"; + string intentObjectName = "249D9B07-D2EF-4202-AA64-65F35418564E"; + ResourceIdentifier backupProtectionIntentResourceId = BackupProtectionIntentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, intentObjectName); + BackupProtectionIntentResource backupProtectionIntent = client.GetBackupProtectionIntentResource(backupProtectionIntentResourceId); + + // invoke the operation + BackupProtectionIntentResource result = await backupProtectionIntent.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupProtectionIntentData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Create or Update Azure Vm Protection Intent + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Update_CreateOrUpdateAzureVmProtectionIntent() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/ProtectionIntent_CreateOrUpdate.json + // this example is just showing the usage of "ProtectionIntent_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupProtectionIntentResource created on azure + // for more information of creating BackupProtectionIntentResource, please refer to the document of BackupProtectionIntentResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "myRG"; + string vaultName = "myVault"; + string fabricName = "Azure"; + string intentObjectName = "vm;iaasvmcontainerv2;chamsrgtest;chamscandel"; + ResourceIdentifier backupProtectionIntentResourceId = BackupProtectionIntentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, intentObjectName); + BackupProtectionIntentResource backupProtectionIntent = client.GetBackupProtectionIntentResource(backupProtectionIntentResourceId); + + // invoke the operation + BackupProtectionIntentData data = new BackupProtectionIntentData(new AzureLocation("placeholder")) + { + Properties = new ResourceProtectionIntent() + { + SourceResourceId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/chamsrgtest/providers/Microsoft.Compute/virtualMachines/chamscandel"), + PolicyId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.RecoveryServices/vaults/myVault/backupPolicies/myPolicy"), + }, + }; + ArmOperation lro = await backupProtectionIntent.UpdateAsync(WaitUntil.Completed, data); + BackupProtectionIntentResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupProtectionIntentData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Delete Protection intent from item + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Delete_DeleteProtectionIntentFromItem() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureWorkload/BackupProtectionIntent_Delete.json + // this example is just showing the usage of "ProtectionIntent_Delete" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupProtectionIntentResource created on azure + // for more information of creating BackupProtectionIntentResource, please refer to the document of BackupProtectionIntentResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "myRG"; + string vaultName = "myVault"; + string fabricName = "Azure"; + string intentObjectName = "249D9B07-D2EF-4202-AA64-65F35418564E"; + ResourceIdentifier backupProtectionIntentResourceId = BackupProtectionIntentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, intentObjectName); + BackupProtectionIntentResource backupProtectionIntent = client.GetBackupProtectionIntentResource(backupProtectionIntentResourceId); + + // invoke the operation + await backupProtectionIntent.DeleteAsync(WaitUntil.Completed); + + Console.WriteLine($"Succeeded"); + } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectionPolicyCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectionPolicyCollection.cs new file mode 100644 index 0000000000000..dba2acfba43f5 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectionPolicyCollection.cs @@ -0,0 +1,1178 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.RecoveryServicesBackup; +using Azure.ResourceManager.RecoveryServicesBackup.Models; +using Azure.ResourceManager.Resources; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Samples +{ + public partial class Sample_BackupProtectionPolicyCollection + { + // List protection policies with backupManagementType filter as AzureIaasVm + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetAll_ListProtectionPoliciesWithBackupManagementTypeFilterAsAzureIaasVm() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/BackupPolicies_List.json + // this example is just showing the usage of "BackupPolicies_List" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "SwaggerTestRg"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this BackupProtectionPolicyResource + string vaultName = "NetSDKTestRsVault"; + BackupProtectionPolicyCollection collection = resourceGroupResource.GetBackupProtectionPolicies(vaultName); + + // invoke the operation and iterate over the result + string filter = "backupManagementType eq 'AzureIaasVM'"; + await foreach (BackupProtectionPolicyResource item in collection.GetAllAsync(filter: filter)) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupProtectionPolicyData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // List protection policies with backupManagementType filter as AzureIaasVm with both V1 and V2 policies + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetAll_ListProtectionPoliciesWithBackupManagementTypeFilterAsAzureIaasVmWithBothV1AndV2Policies() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/V2Policy/v2-List-Policies.json + // this example is just showing the usage of "BackupPolicies_List" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "SwaggerTestRg"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this BackupProtectionPolicyResource + string vaultName = "NetSDKTestRsVault"; + BackupProtectionPolicyCollection collection = resourceGroupResource.GetBackupProtectionPolicies(vaultName); + + // invoke the operation and iterate over the result + string filter = "backupManagementType eq 'AzureIaasVM'"; + await foreach (BackupProtectionPolicyResource item in collection.GetAllAsync(filter: filter)) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupProtectionPolicyData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // List protection policies with backupManagementType filter as AzureWorkload + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetAll_ListProtectionPoliciesWithBackupManagementTypeFilterAsAzureWorkload() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureWorkload/BackupPolicies_List.json + // this example is just showing the usage of "BackupPolicies_List" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "SwaggerTestRg"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this BackupProtectionPolicyResource + string vaultName = "NetSDKTestRsVault"; + BackupProtectionPolicyCollection collection = resourceGroupResource.GetBackupProtectionPolicies(vaultName); + + // invoke the operation and iterate over the result + string filter = "backupManagementType eq 'AzureWorkload'"; + await foreach (BackupProtectionPolicyResource item in collection.GetAllAsync(filter: filter)) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupProtectionPolicyData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // Get Azure IaasVm Enhanced Protection Policy Details + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetAzureIaasVmEnhancedProtectionPolicyDetails() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/V2Policy/v2-Get-Policy.json + // this example is just showing the usage of "ProtectionPolicies_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "SwaggerTestRg"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this BackupProtectionPolicyResource + string vaultName = "NetSDKTestRsVault"; + BackupProtectionPolicyCollection collection = resourceGroupResource.GetBackupProtectionPolicies(vaultName); + + // invoke the operation + string policyName = "v2-daily-sample"; + BackupProtectionPolicyResource result = await collection.GetAsync(policyName); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupProtectionPolicyData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Get Azure IaasVm Enhanced Protection Policy Details + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_GetAzureIaasVmEnhancedProtectionPolicyDetails() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/V2Policy/v2-Get-Policy.json + // this example is just showing the usage of "ProtectionPolicies_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "SwaggerTestRg"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this BackupProtectionPolicyResource + string vaultName = "NetSDKTestRsVault"; + BackupProtectionPolicyCollection collection = resourceGroupResource.GetBackupProtectionPolicies(vaultName); + + // invoke the operation + string policyName = "v2-daily-sample"; + bool result = await collection.ExistsAsync(policyName); + + Console.WriteLine($"Succeeded: {result}"); + } + + // Get Azure IaasVm Protection Policy Details + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetAzureIaasVmProtectionPolicyDetails() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/ProtectionPolicies_Get.json + // this example is just showing the usage of "ProtectionPolicies_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "SwaggerTestRg"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this BackupProtectionPolicyResource + string vaultName = "NetSDKTestRsVault"; + BackupProtectionPolicyCollection collection = resourceGroupResource.GetBackupProtectionPolicies(vaultName); + + // invoke the operation + string policyName = "testPolicy1"; + BackupProtectionPolicyResource result = await collection.GetAsync(policyName); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupProtectionPolicyData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Get Azure IaasVm Protection Policy Details + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_GetAzureIaasVmProtectionPolicyDetails() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/ProtectionPolicies_Get.json + // this example is just showing the usage of "ProtectionPolicies_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "SwaggerTestRg"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this BackupProtectionPolicyResource + string vaultName = "NetSDKTestRsVault"; + BackupProtectionPolicyCollection collection = resourceGroupResource.GetBackupProtectionPolicies(vaultName); + + // invoke the operation + string policyName = "testPolicy1"; + bool result = await collection.ExistsAsync(policyName); + + Console.WriteLine($"Succeeded: {result}"); + } + + // Create or Update Daily Azure Storage Protection Policy + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_CreateOrUpdateDailyAzureStorageProtectionPolicy() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureStorage/ProtectionPolicies_CreateOrUpdate_Daily.json + // this example is just showing the usage of "ProtectionPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "SwaggerTestRg"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this BackupProtectionPolicyResource + string vaultName = "swaggertestvault"; + BackupProtectionPolicyCollection collection = resourceGroupResource.GetBackupProtectionPolicies(vaultName); + + // invoke the operation + string policyName = "dailyPolicy2"; + BackupProtectionPolicyData data = new BackupProtectionPolicyData(new AzureLocation("placeholder")) + { + Properties = new FileShareProtectionPolicy() + { + WorkLoadType = BackupWorkloadType.AzureFileShare, + SchedulePolicy = new SimpleSchedulePolicy() + { + ScheduleRunFrequency = ScheduleRunType.Daily, + ScheduleRunTimes = +{ +DateTimeOffset.Parse("2021-09-29T08:00:00.000Z") +}, + }, + RetentionPolicy = new LongTermRetentionPolicy() + { + DailySchedule = new DailyRetentionSchedule() + { + RetentionTimes = +{ +DateTimeOffset.Parse("2021-09-29T08:00:00.000Z") +}, + RetentionDuration = new RetentionDuration() + { + Count = 5, + DurationType = RetentionDurationType.Days, + }, + }, + WeeklySchedule = new WeeklyRetentionSchedule() + { + DaysOfTheWeek = +{ +BackupDayOfWeek.Sunday +}, + RetentionTimes = +{ +DateTimeOffset.Parse("2021-09-29T08:00:00.000Z") +}, + RetentionDuration = new RetentionDuration() + { + Count = 12, + DurationType = RetentionDurationType.Weeks, + }, + }, + MonthlySchedule = new MonthlyRetentionSchedule() + { + RetentionScheduleFormatType = RetentionScheduleFormat.Weekly, + RetentionScheduleWeekly = new WeeklyRetentionFormat() + { + DaysOfTheWeek = +{ +BackupDayOfWeek.Sunday +}, + WeeksOfTheMonth = +{ +BackupWeekOfMonth.First +}, + }, + RetentionTimes = +{ +DateTimeOffset.Parse("2021-09-29T08:00:00.000Z") +}, + RetentionDuration = new RetentionDuration() + { + Count = 60, + DurationType = RetentionDurationType.Months, + }, + }, + YearlySchedule = new YearlyRetentionSchedule() + { + RetentionScheduleFormatType = RetentionScheduleFormat.Weekly, + MonthsOfYear = +{ +BackupMonthOfYear.January +}, + RetentionScheduleWeekly = new WeeklyRetentionFormat() + { + DaysOfTheWeek = +{ +BackupDayOfWeek.Sunday +}, + WeeksOfTheMonth = +{ +BackupWeekOfMonth.First +}, + }, + RetentionTimes = +{ +DateTimeOffset.Parse("2021-09-29T08:00:00.000Z") +}, + RetentionDuration = new RetentionDuration() + { + Count = 10, + DurationType = RetentionDurationType.Years, + }, + }, + }, + TimeZone = "UTC", + }, + }; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, policyName, data); + BackupProtectionPolicyResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupProtectionPolicyData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Create or Update Enhanced Azure Vm Protection Policy with Hourly backup + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_CreateOrUpdateEnhancedAzureVmProtectionPolicyWithHourlyBackup() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/V2Policy/IaaS_v2_hourly.json + // this example is just showing the usage of "ProtectionPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "SwaggerTestRg"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this BackupProtectionPolicyResource + string vaultName = "NetSDKTestRsVault"; + BackupProtectionPolicyCollection collection = resourceGroupResource.GetBackupProtectionPolicies(vaultName); + + // invoke the operation + string policyName = "v2-daily-sample"; + BackupProtectionPolicyData data = new BackupProtectionPolicyData(new AzureLocation("placeholder")) + { + Properties = new IaasVmProtectionPolicy() + { + SchedulePolicy = new SimpleSchedulePolicyV2() + { + ScheduleRunFrequency = ScheduleRunType.Hourly, + HourlySchedule = new BackupHourlySchedule() + { + Interval = 4, + ScheduleWindowStartOn = DateTimeOffset.Parse("2021-12-17T08:00:00Z"), + ScheduleWindowDuration = 16, + }, + }, + RetentionPolicy = new LongTermRetentionPolicy() + { + DailySchedule = new DailyRetentionSchedule() + { + RetentionTimes = +{ +DateTimeOffset.Parse("2021-12-17T08:00:00+00:00") +}, + RetentionDuration = new RetentionDuration() + { + Count = 180, + DurationType = RetentionDurationType.Days, + }, + }, + WeeklySchedule = new WeeklyRetentionSchedule() + { + DaysOfTheWeek = +{ +BackupDayOfWeek.Sunday +}, + RetentionTimes = +{ +DateTimeOffset.Parse("2021-12-17T08:00:00+00:00") +}, + RetentionDuration = new RetentionDuration() + { + Count = 12, + DurationType = RetentionDurationType.Weeks, + }, + }, + MonthlySchedule = new MonthlyRetentionSchedule() + { + RetentionScheduleFormatType = RetentionScheduleFormat.Weekly, + RetentionScheduleWeekly = new WeeklyRetentionFormat() + { + DaysOfTheWeek = +{ +BackupDayOfWeek.Sunday +}, + WeeksOfTheMonth = +{ +BackupWeekOfMonth.First +}, + }, + RetentionTimes = +{ +DateTimeOffset.Parse("2021-12-17T08:00:00+00:00") +}, + RetentionDuration = new RetentionDuration() + { + Count = 60, + DurationType = RetentionDurationType.Months, + }, + }, + YearlySchedule = new YearlyRetentionSchedule() + { + RetentionScheduleFormatType = RetentionScheduleFormat.Weekly, + MonthsOfYear = +{ +BackupMonthOfYear.January +}, + RetentionScheduleWeekly = new WeeklyRetentionFormat() + { + DaysOfTheWeek = +{ +BackupDayOfWeek.Sunday +}, + WeeksOfTheMonth = +{ +BackupWeekOfMonth.First +}, + }, + RetentionTimes = +{ +DateTimeOffset.Parse("2021-12-17T08:00:00+00:00") +}, + RetentionDuration = new RetentionDuration() + { + Count = 10, + DurationType = RetentionDurationType.Years, + }, + }, + }, + InstantRPRetentionRangeInDays = 30, + TimeZone = "India Standard Time", + PolicyType = IaasVmPolicyType.V2, + }, + }; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, policyName, data); + BackupProtectionPolicyResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupProtectionPolicyData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Create or Update Enhanced Azure Vm Protection Policy with daily backup + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_CreateOrUpdateEnhancedAzureVmProtectionPolicyWithDailyBackup() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/V2Policy/IaaS_v2_daily.json + // this example is just showing the usage of "ProtectionPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "SwaggerTestRg"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this BackupProtectionPolicyResource + string vaultName = "NetSDKTestRsVault"; + BackupProtectionPolicyCollection collection = resourceGroupResource.GetBackupProtectionPolicies(vaultName); + + // invoke the operation + string policyName = "v2-daily-sample"; + BackupProtectionPolicyData data = new BackupProtectionPolicyData(new AzureLocation("placeholder")) + { + Properties = new IaasVmProtectionPolicy() + { + SchedulePolicy = new SimpleSchedulePolicyV2() + { + ScheduleRunFrequency = ScheduleRunType.Daily, + ScheduleRunTimes = +{ +DateTimeOffset.Parse("2018-01-24T10:00:00Z") +}, + }, + RetentionPolicy = new LongTermRetentionPolicy() + { + DailySchedule = new DailyRetentionSchedule() + { + RetentionTimes = +{ +DateTimeOffset.Parse("2021-12-17T08:00:00+00:00") +}, + RetentionDuration = new RetentionDuration() + { + Count = 180, + DurationType = RetentionDurationType.Days, + }, + }, + WeeklySchedule = new WeeklyRetentionSchedule() + { + DaysOfTheWeek = +{ +BackupDayOfWeek.Sunday +}, + RetentionTimes = +{ +DateTimeOffset.Parse("2021-12-17T08:00:00+00:00") +}, + RetentionDuration = new RetentionDuration() + { + Count = 12, + DurationType = RetentionDurationType.Weeks, + }, + }, + MonthlySchedule = new MonthlyRetentionSchedule() + { + RetentionScheduleFormatType = RetentionScheduleFormat.Weekly, + RetentionScheduleWeekly = new WeeklyRetentionFormat() + { + DaysOfTheWeek = +{ +BackupDayOfWeek.Sunday +}, + WeeksOfTheMonth = +{ +BackupWeekOfMonth.First +}, + }, + RetentionTimes = +{ +DateTimeOffset.Parse("2021-12-17T08:00:00+00:00") +}, + RetentionDuration = new RetentionDuration() + { + Count = 60, + DurationType = RetentionDurationType.Months, + }, + }, + YearlySchedule = new YearlyRetentionSchedule() + { + RetentionScheduleFormatType = RetentionScheduleFormat.Weekly, + MonthsOfYear = +{ +BackupMonthOfYear.January +}, + RetentionScheduleWeekly = new WeeklyRetentionFormat() + { + DaysOfTheWeek = +{ +BackupDayOfWeek.Sunday +}, + WeeksOfTheMonth = +{ +BackupWeekOfMonth.First +}, + }, + RetentionTimes = +{ +DateTimeOffset.Parse("2021-12-17T08:00:00+00:00") +}, + RetentionDuration = new RetentionDuration() + { + Count = 10, + DurationType = RetentionDurationType.Years, + }, + }, + }, + InstantRPRetentionRangeInDays = 30, + TimeZone = "India Standard Time", + PolicyType = IaasVmPolicyType.V2, + }, + }; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, policyName, data); + BackupProtectionPolicyResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupProtectionPolicyData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Create or Update Full Azure Vm Protection Policy + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_CreateOrUpdateFullAzureVmProtectionPolicy() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/ProtectionPolicies_CreateOrUpdate_Complex.json + // this example is just showing the usage of "ProtectionPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "SwaggerTestRg"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this BackupProtectionPolicyResource + string vaultName = "NetSDKTestRsVault"; + BackupProtectionPolicyCollection collection = resourceGroupResource.GetBackupProtectionPolicies(vaultName); + + // invoke the operation + string policyName = "testPolicy1"; + BackupProtectionPolicyData data = new BackupProtectionPolicyData(new AzureLocation("placeholder")) + { + Properties = new IaasVmProtectionPolicy() + { + SchedulePolicy = new SimpleSchedulePolicy() + { + ScheduleRunFrequency = ScheduleRunType.Weekly, + ScheduleRunDays = +{ +BackupDayOfWeek.Monday,BackupDayOfWeek.Wednesday,BackupDayOfWeek.Thursday +}, + ScheduleRunTimes = +{ +DateTimeOffset.Parse("2018-01-24T10:00:00Z") +}, + }, + RetentionPolicy = new LongTermRetentionPolicy() + { + WeeklySchedule = new WeeklyRetentionSchedule() + { + DaysOfTheWeek = +{ +BackupDayOfWeek.Monday,BackupDayOfWeek.Wednesday,BackupDayOfWeek.Thursday +}, + RetentionTimes = +{ +DateTimeOffset.Parse("2018-01-24T10:00:00Z") +}, + RetentionDuration = new RetentionDuration() + { + Count = 1, + DurationType = RetentionDurationType.Weeks, + }, + }, + MonthlySchedule = new MonthlyRetentionSchedule() + { + RetentionScheduleFormatType = RetentionScheduleFormat.Weekly, + RetentionScheduleWeekly = new WeeklyRetentionFormat() + { + DaysOfTheWeek = +{ +BackupDayOfWeek.Wednesday,BackupDayOfWeek.Thursday +}, + WeeksOfTheMonth = +{ +BackupWeekOfMonth.First,BackupWeekOfMonth.Third +}, + }, + RetentionTimes = +{ +DateTimeOffset.Parse("2018-01-24T10:00:00Z") +}, + RetentionDuration = new RetentionDuration() + { + Count = 2, + DurationType = RetentionDurationType.Months, + }, + }, + YearlySchedule = new YearlyRetentionSchedule() + { + RetentionScheduleFormatType = RetentionScheduleFormat.Weekly, + MonthsOfYear = +{ +BackupMonthOfYear.February,BackupMonthOfYear.November +}, + RetentionScheduleWeekly = new WeeklyRetentionFormat() + { + DaysOfTheWeek = +{ +BackupDayOfWeek.Monday,BackupDayOfWeek.Thursday +}, + WeeksOfTheMonth = +{ +BackupWeekOfMonth.Fourth +}, + }, + RetentionTimes = +{ +DateTimeOffset.Parse("2018-01-24T10:00:00Z") +}, + RetentionDuration = new RetentionDuration() + { + Count = 4, + DurationType = RetentionDurationType.Years, + }, + }, + }, + TimeZone = "Pacific Standard Time", + }, + }; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, policyName, data); + BackupProtectionPolicyResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupProtectionPolicyData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Create or Update Full Azure Workload Protection Policy + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_CreateOrUpdateFullAzureWorkloadProtectionPolicy() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureWorkload/ProtectionPolicies_CreateOrUpdate_Complex.json + // this example is just showing the usage of "ProtectionPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "SwaggerTestRg"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this BackupProtectionPolicyResource + string vaultName = "NetSDKTestRsVault"; + BackupProtectionPolicyCollection collection = resourceGroupResource.GetBackupProtectionPolicies(vaultName); + + // invoke the operation + string policyName = "testPolicy1"; + BackupProtectionPolicyData data = new BackupProtectionPolicyData(new AzureLocation("placeholder")) + { + Properties = new VmWorkloadProtectionPolicy() + { + WorkLoadType = BackupWorkloadType.SqlDatabase, + Settings = new BackupCommonSettings() + { + TimeZone = "Pacific Standard Time", + IsSqlCompression = false, + }, + SubProtectionPolicy = +{ +new SubProtectionPolicy() +{ +PolicyType = SubProtectionPolicyType.Full, +SchedulePolicy = new SimpleSchedulePolicy() +{ +ScheduleRunFrequency = ScheduleRunType.Weekly, +ScheduleRunDays = +{ +BackupDayOfWeek.Sunday,BackupDayOfWeek.Tuesday +}, +ScheduleRunTimes = +{ +DateTimeOffset.Parse("2018-01-24T10:00:00Z") +}, +}, +RetentionPolicy = new LongTermRetentionPolicy() +{ +WeeklySchedule = new WeeklyRetentionSchedule() +{ +DaysOfTheWeek = +{ +BackupDayOfWeek.Sunday,BackupDayOfWeek.Tuesday +}, +RetentionTimes = +{ +DateTimeOffset.Parse("2018-01-24T10:00:00Z") +}, +RetentionDuration = new RetentionDuration() +{ +Count = 2, +DurationType = RetentionDurationType.Weeks, +}, +}, +MonthlySchedule = new MonthlyRetentionSchedule() +{ +RetentionScheduleFormatType = RetentionScheduleFormat.Weekly, +RetentionScheduleWeekly = new WeeklyRetentionFormat() +{ +DaysOfTheWeek = +{ +BackupDayOfWeek.Sunday +}, +WeeksOfTheMonth = +{ +BackupWeekOfMonth.Second +}, +}, +RetentionTimes = +{ +DateTimeOffset.Parse("2018-01-24T10:00:00Z") +}, +RetentionDuration = new RetentionDuration() +{ +Count = 1, +DurationType = RetentionDurationType.Months, +}, +}, +YearlySchedule = new YearlyRetentionSchedule() +{ +RetentionScheduleFormatType = RetentionScheduleFormat.Weekly, +MonthsOfYear = +{ +BackupMonthOfYear.January,BackupMonthOfYear.June,BackupMonthOfYear.December +}, +RetentionScheduleWeekly = new WeeklyRetentionFormat() +{ +DaysOfTheWeek = +{ +BackupDayOfWeek.Sunday +}, +WeeksOfTheMonth = +{ +BackupWeekOfMonth.Last +}, +}, +RetentionTimes = +{ +DateTimeOffset.Parse("2018-01-24T10:00:00Z") +}, +RetentionDuration = new RetentionDuration() +{ +Count = 1, +DurationType = RetentionDurationType.Years, +}, +}, +}, +},new SubProtectionPolicy() +{ +PolicyType = SubProtectionPolicyType.Differential, +SchedulePolicy = new SimpleSchedulePolicy() +{ +ScheduleRunFrequency = ScheduleRunType.Weekly, +ScheduleRunDays = +{ +BackupDayOfWeek.Friday +}, +ScheduleRunTimes = +{ +DateTimeOffset.Parse("2018-01-24T10:00:00Z") +}, +}, +RetentionPolicy = new SimpleRetentionPolicy() +{ +RetentionDuration = new RetentionDuration() +{ +Count = 8, +DurationType = RetentionDurationType.Days, +}, +}, +},new SubProtectionPolicy() +{ +PolicyType = SubProtectionPolicyType.Log, +SchedulePolicy = new LogSchedulePolicy() +{ +ScheduleFrequencyInMins = 60, +}, +RetentionPolicy = new SimpleRetentionPolicy() +{ +RetentionDuration = new RetentionDuration() +{ +Count = 7, +DurationType = RetentionDurationType.Days, +}, +}, +} +}, + }, + }; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, policyName, data); + BackupProtectionPolicyResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupProtectionPolicyData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Create or Update Hourly Azure Storage Protection Policy + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_CreateOrUpdateHourlyAzureStorageProtectionPolicy() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureStorage/ProtectionPolicies_CreateOrUpdate_Hourly.json + // this example is just showing the usage of "ProtectionPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "SwaggerTestRg"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this BackupProtectionPolicyResource + string vaultName = "swaggertestvault"; + BackupProtectionPolicyCollection collection = resourceGroupResource.GetBackupProtectionPolicies(vaultName); + + // invoke the operation + string policyName = "newPolicy2"; + BackupProtectionPolicyData data = new BackupProtectionPolicyData(new AzureLocation("placeholder")) + { + Properties = new FileShareProtectionPolicy() + { + WorkLoadType = BackupWorkloadType.AzureFileShare, + SchedulePolicy = new SimpleSchedulePolicy() + { + ScheduleRunFrequency = ScheduleRunType.Hourly, + HourlySchedule = new BackupHourlySchedule() + { + Interval = 4, + ScheduleWindowStartOn = DateTimeOffset.Parse("2021-09-29T08:00:00.000Z"), + ScheduleWindowDuration = 12, + }, + }, + RetentionPolicy = new LongTermRetentionPolicy() + { + DailySchedule = new DailyRetentionSchedule() + { + RetentionTimes = +{ +}, + RetentionDuration = new RetentionDuration() + { + Count = 5, + DurationType = RetentionDurationType.Days, + }, + }, + WeeklySchedule = new WeeklyRetentionSchedule() + { + DaysOfTheWeek = +{ +BackupDayOfWeek.Sunday +}, + RetentionTimes = +{ +}, + RetentionDuration = new RetentionDuration() + { + Count = 12, + DurationType = RetentionDurationType.Weeks, + }, + }, + MonthlySchedule = new MonthlyRetentionSchedule() + { + RetentionScheduleFormatType = RetentionScheduleFormat.Weekly, + RetentionScheduleWeekly = new WeeklyRetentionFormat() + { + DaysOfTheWeek = +{ +BackupDayOfWeek.Sunday +}, + WeeksOfTheMonth = +{ +BackupWeekOfMonth.First +}, + }, + RetentionTimes = +{ +}, + RetentionDuration = new RetentionDuration() + { + Count = 60, + DurationType = RetentionDurationType.Months, + }, + }, + YearlySchedule = new YearlyRetentionSchedule() + { + RetentionScheduleFormatType = RetentionScheduleFormat.Weekly, + MonthsOfYear = +{ +BackupMonthOfYear.January +}, + RetentionScheduleWeekly = new WeeklyRetentionFormat() + { + DaysOfTheWeek = +{ +BackupDayOfWeek.Sunday +}, + WeeksOfTheMonth = +{ +BackupWeekOfMonth.First +}, + }, + RetentionTimes = +{ +}, + RetentionDuration = new RetentionDuration() + { + Count = 10, + DurationType = RetentionDurationType.Years, + }, + }, + }, + TimeZone = "UTC", + }, + }; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, policyName, data); + BackupProtectionPolicyResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupProtectionPolicyData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Create or Update Simple Azure Vm Protection Policy + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_CreateOrUpdateSimpleAzureVmProtectionPolicy() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/ProtectionPolicies_CreateOrUpdate_Simple.json + // this example is just showing the usage of "ProtectionPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "SwaggerTestRg"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this BackupProtectionPolicyResource + string vaultName = "NetSDKTestRsVault"; + BackupProtectionPolicyCollection collection = resourceGroupResource.GetBackupProtectionPolicies(vaultName); + + // invoke the operation + string policyName = "testPolicy1"; + BackupProtectionPolicyData data = new BackupProtectionPolicyData(new AzureLocation("placeholder")) + { + Properties = new IaasVmProtectionPolicy() + { + SchedulePolicy = new SimpleSchedulePolicy() + { + ScheduleRunFrequency = ScheduleRunType.Daily, + ScheduleRunTimes = +{ +DateTimeOffset.Parse("2018-01-24T02:00:00Z") +}, + }, + RetentionPolicy = new LongTermRetentionPolicy() + { + DailySchedule = new DailyRetentionSchedule() + { + RetentionTimes = +{ +DateTimeOffset.Parse("2018-01-24T02:00:00Z") +}, + RetentionDuration = new RetentionDuration() + { + Count = 1, + DurationType = RetentionDurationType.Days, + }, + }, + }, + TimeZone = "Pacific Standard Time", + }, + }; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, policyName, data); + BackupProtectionPolicyResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupProtectionPolicyData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectionPolicyResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectionPolicyResource.cs new file mode 100644 index 0000000000000..2b2ba40f2c8cb --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectionPolicyResource.cs @@ -0,0 +1,1002 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.RecoveryServicesBackup; +using Azure.ResourceManager.RecoveryServicesBackup.Models; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Samples +{ + public partial class Sample_BackupProtectionPolicyResource + { + // Get Azure IaasVm Enhanced Protection Policy Details + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetAzureIaasVmEnhancedProtectionPolicyDetails() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/V2Policy/v2-Get-Policy.json + // this example is just showing the usage of "ProtectionPolicies_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupProtectionPolicyResource created on azure + // for more information of creating BackupProtectionPolicyResource, please refer to the document of BackupProtectionPolicyResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "SwaggerTestRg"; + string vaultName = "NetSDKTestRsVault"; + string policyName = "v2-daily-sample"; + ResourceIdentifier backupProtectionPolicyResourceId = BackupProtectionPolicyResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, policyName); + BackupProtectionPolicyResource backupProtectionPolicy = client.GetBackupProtectionPolicyResource(backupProtectionPolicyResourceId); + + // invoke the operation + BackupProtectionPolicyResource result = await backupProtectionPolicy.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupProtectionPolicyData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Get Azure IaasVm Protection Policy Details + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetAzureIaasVmProtectionPolicyDetails() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/ProtectionPolicies_Get.json + // this example is just showing the usage of "ProtectionPolicies_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupProtectionPolicyResource created on azure + // for more information of creating BackupProtectionPolicyResource, please refer to the document of BackupProtectionPolicyResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "SwaggerTestRg"; + string vaultName = "NetSDKTestRsVault"; + string policyName = "testPolicy1"; + ResourceIdentifier backupProtectionPolicyResourceId = BackupProtectionPolicyResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, policyName); + BackupProtectionPolicyResource backupProtectionPolicy = client.GetBackupProtectionPolicyResource(backupProtectionPolicyResourceId); + + // invoke the operation + BackupProtectionPolicyResource result = await backupProtectionPolicy.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupProtectionPolicyData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Create or Update Daily Azure Storage Protection Policy + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Update_CreateOrUpdateDailyAzureStorageProtectionPolicy() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureStorage/ProtectionPolicies_CreateOrUpdate_Daily.json + // this example is just showing the usage of "ProtectionPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupProtectionPolicyResource created on azure + // for more information of creating BackupProtectionPolicyResource, please refer to the document of BackupProtectionPolicyResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "SwaggerTestRg"; + string vaultName = "swaggertestvault"; + string policyName = "dailyPolicy2"; + ResourceIdentifier backupProtectionPolicyResourceId = BackupProtectionPolicyResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, policyName); + BackupProtectionPolicyResource backupProtectionPolicy = client.GetBackupProtectionPolicyResource(backupProtectionPolicyResourceId); + + // invoke the operation + BackupProtectionPolicyData data = new BackupProtectionPolicyData(new AzureLocation("placeholder")) + { + Properties = new FileShareProtectionPolicy() + { + WorkLoadType = BackupWorkloadType.AzureFileShare, + SchedulePolicy = new SimpleSchedulePolicy() + { + ScheduleRunFrequency = ScheduleRunType.Daily, + ScheduleRunTimes = +{ +DateTimeOffset.Parse("2021-09-29T08:00:00.000Z") +}, + }, + RetentionPolicy = new LongTermRetentionPolicy() + { + DailySchedule = new DailyRetentionSchedule() + { + RetentionTimes = +{ +DateTimeOffset.Parse("2021-09-29T08:00:00.000Z") +}, + RetentionDuration = new RetentionDuration() + { + Count = 5, + DurationType = RetentionDurationType.Days, + }, + }, + WeeklySchedule = new WeeklyRetentionSchedule() + { + DaysOfTheWeek = +{ +BackupDayOfWeek.Sunday +}, + RetentionTimes = +{ +DateTimeOffset.Parse("2021-09-29T08:00:00.000Z") +}, + RetentionDuration = new RetentionDuration() + { + Count = 12, + DurationType = RetentionDurationType.Weeks, + }, + }, + MonthlySchedule = new MonthlyRetentionSchedule() + { + RetentionScheduleFormatType = RetentionScheduleFormat.Weekly, + RetentionScheduleWeekly = new WeeklyRetentionFormat() + { + DaysOfTheWeek = +{ +BackupDayOfWeek.Sunday +}, + WeeksOfTheMonth = +{ +BackupWeekOfMonth.First +}, + }, + RetentionTimes = +{ +DateTimeOffset.Parse("2021-09-29T08:00:00.000Z") +}, + RetentionDuration = new RetentionDuration() + { + Count = 60, + DurationType = RetentionDurationType.Months, + }, + }, + YearlySchedule = new YearlyRetentionSchedule() + { + RetentionScheduleFormatType = RetentionScheduleFormat.Weekly, + MonthsOfYear = +{ +BackupMonthOfYear.January +}, + RetentionScheduleWeekly = new WeeklyRetentionFormat() + { + DaysOfTheWeek = +{ +BackupDayOfWeek.Sunday +}, + WeeksOfTheMonth = +{ +BackupWeekOfMonth.First +}, + }, + RetentionTimes = +{ +DateTimeOffset.Parse("2021-09-29T08:00:00.000Z") +}, + RetentionDuration = new RetentionDuration() + { + Count = 10, + DurationType = RetentionDurationType.Years, + }, + }, + }, + TimeZone = "UTC", + }, + }; + ArmOperation lro = await backupProtectionPolicy.UpdateAsync(WaitUntil.Completed, data); + BackupProtectionPolicyResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupProtectionPolicyData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Create or Update Enhanced Azure Vm Protection Policy with Hourly backup + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Update_CreateOrUpdateEnhancedAzureVmProtectionPolicyWithHourlyBackup() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/V2Policy/IaaS_v2_hourly.json + // this example is just showing the usage of "ProtectionPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupProtectionPolicyResource created on azure + // for more information of creating BackupProtectionPolicyResource, please refer to the document of BackupProtectionPolicyResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "SwaggerTestRg"; + string vaultName = "NetSDKTestRsVault"; + string policyName = "v2-daily-sample"; + ResourceIdentifier backupProtectionPolicyResourceId = BackupProtectionPolicyResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, policyName); + BackupProtectionPolicyResource backupProtectionPolicy = client.GetBackupProtectionPolicyResource(backupProtectionPolicyResourceId); + + // invoke the operation + BackupProtectionPolicyData data = new BackupProtectionPolicyData(new AzureLocation("placeholder")) + { + Properties = new IaasVmProtectionPolicy() + { + SchedulePolicy = new SimpleSchedulePolicyV2() + { + ScheduleRunFrequency = ScheduleRunType.Hourly, + HourlySchedule = new BackupHourlySchedule() + { + Interval = 4, + ScheduleWindowStartOn = DateTimeOffset.Parse("2021-12-17T08:00:00Z"), + ScheduleWindowDuration = 16, + }, + }, + RetentionPolicy = new LongTermRetentionPolicy() + { + DailySchedule = new DailyRetentionSchedule() + { + RetentionTimes = +{ +DateTimeOffset.Parse("2021-12-17T08:00:00+00:00") +}, + RetentionDuration = new RetentionDuration() + { + Count = 180, + DurationType = RetentionDurationType.Days, + }, + }, + WeeklySchedule = new WeeklyRetentionSchedule() + { + DaysOfTheWeek = +{ +BackupDayOfWeek.Sunday +}, + RetentionTimes = +{ +DateTimeOffset.Parse("2021-12-17T08:00:00+00:00") +}, + RetentionDuration = new RetentionDuration() + { + Count = 12, + DurationType = RetentionDurationType.Weeks, + }, + }, + MonthlySchedule = new MonthlyRetentionSchedule() + { + RetentionScheduleFormatType = RetentionScheduleFormat.Weekly, + RetentionScheduleWeekly = new WeeklyRetentionFormat() + { + DaysOfTheWeek = +{ +BackupDayOfWeek.Sunday +}, + WeeksOfTheMonth = +{ +BackupWeekOfMonth.First +}, + }, + RetentionTimes = +{ +DateTimeOffset.Parse("2021-12-17T08:00:00+00:00") +}, + RetentionDuration = new RetentionDuration() + { + Count = 60, + DurationType = RetentionDurationType.Months, + }, + }, + YearlySchedule = new YearlyRetentionSchedule() + { + RetentionScheduleFormatType = RetentionScheduleFormat.Weekly, + MonthsOfYear = +{ +BackupMonthOfYear.January +}, + RetentionScheduleWeekly = new WeeklyRetentionFormat() + { + DaysOfTheWeek = +{ +BackupDayOfWeek.Sunday +}, + WeeksOfTheMonth = +{ +BackupWeekOfMonth.First +}, + }, + RetentionTimes = +{ +DateTimeOffset.Parse("2021-12-17T08:00:00+00:00") +}, + RetentionDuration = new RetentionDuration() + { + Count = 10, + DurationType = RetentionDurationType.Years, + }, + }, + }, + InstantRPRetentionRangeInDays = 30, + TimeZone = "India Standard Time", + PolicyType = IaasVmPolicyType.V2, + }, + }; + ArmOperation lro = await backupProtectionPolicy.UpdateAsync(WaitUntil.Completed, data); + BackupProtectionPolicyResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupProtectionPolicyData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Create or Update Enhanced Azure Vm Protection Policy with daily backup + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Update_CreateOrUpdateEnhancedAzureVmProtectionPolicyWithDailyBackup() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/V2Policy/IaaS_v2_daily.json + // this example is just showing the usage of "ProtectionPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupProtectionPolicyResource created on azure + // for more information of creating BackupProtectionPolicyResource, please refer to the document of BackupProtectionPolicyResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "SwaggerTestRg"; + string vaultName = "NetSDKTestRsVault"; + string policyName = "v2-daily-sample"; + ResourceIdentifier backupProtectionPolicyResourceId = BackupProtectionPolicyResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, policyName); + BackupProtectionPolicyResource backupProtectionPolicy = client.GetBackupProtectionPolicyResource(backupProtectionPolicyResourceId); + + // invoke the operation + BackupProtectionPolicyData data = new BackupProtectionPolicyData(new AzureLocation("placeholder")) + { + Properties = new IaasVmProtectionPolicy() + { + SchedulePolicy = new SimpleSchedulePolicyV2() + { + ScheduleRunFrequency = ScheduleRunType.Daily, + ScheduleRunTimes = +{ +DateTimeOffset.Parse("2018-01-24T10:00:00Z") +}, + }, + RetentionPolicy = new LongTermRetentionPolicy() + { + DailySchedule = new DailyRetentionSchedule() + { + RetentionTimes = +{ +DateTimeOffset.Parse("2021-12-17T08:00:00+00:00") +}, + RetentionDuration = new RetentionDuration() + { + Count = 180, + DurationType = RetentionDurationType.Days, + }, + }, + WeeklySchedule = new WeeklyRetentionSchedule() + { + DaysOfTheWeek = +{ +BackupDayOfWeek.Sunday +}, + RetentionTimes = +{ +DateTimeOffset.Parse("2021-12-17T08:00:00+00:00") +}, + RetentionDuration = new RetentionDuration() + { + Count = 12, + DurationType = RetentionDurationType.Weeks, + }, + }, + MonthlySchedule = new MonthlyRetentionSchedule() + { + RetentionScheduleFormatType = RetentionScheduleFormat.Weekly, + RetentionScheduleWeekly = new WeeklyRetentionFormat() + { + DaysOfTheWeek = +{ +BackupDayOfWeek.Sunday +}, + WeeksOfTheMonth = +{ +BackupWeekOfMonth.First +}, + }, + RetentionTimes = +{ +DateTimeOffset.Parse("2021-12-17T08:00:00+00:00") +}, + RetentionDuration = new RetentionDuration() + { + Count = 60, + DurationType = RetentionDurationType.Months, + }, + }, + YearlySchedule = new YearlyRetentionSchedule() + { + RetentionScheduleFormatType = RetentionScheduleFormat.Weekly, + MonthsOfYear = +{ +BackupMonthOfYear.January +}, + RetentionScheduleWeekly = new WeeklyRetentionFormat() + { + DaysOfTheWeek = +{ +BackupDayOfWeek.Sunday +}, + WeeksOfTheMonth = +{ +BackupWeekOfMonth.First +}, + }, + RetentionTimes = +{ +DateTimeOffset.Parse("2021-12-17T08:00:00+00:00") +}, + RetentionDuration = new RetentionDuration() + { + Count = 10, + DurationType = RetentionDurationType.Years, + }, + }, + }, + InstantRPRetentionRangeInDays = 30, + TimeZone = "India Standard Time", + PolicyType = IaasVmPolicyType.V2, + }, + }; + ArmOperation lro = await backupProtectionPolicy.UpdateAsync(WaitUntil.Completed, data); + BackupProtectionPolicyResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupProtectionPolicyData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Create or Update Full Azure Vm Protection Policy + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Update_CreateOrUpdateFullAzureVmProtectionPolicy() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/ProtectionPolicies_CreateOrUpdate_Complex.json + // this example is just showing the usage of "ProtectionPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupProtectionPolicyResource created on azure + // for more information of creating BackupProtectionPolicyResource, please refer to the document of BackupProtectionPolicyResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "SwaggerTestRg"; + string vaultName = "NetSDKTestRsVault"; + string policyName = "testPolicy1"; + ResourceIdentifier backupProtectionPolicyResourceId = BackupProtectionPolicyResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, policyName); + BackupProtectionPolicyResource backupProtectionPolicy = client.GetBackupProtectionPolicyResource(backupProtectionPolicyResourceId); + + // invoke the operation + BackupProtectionPolicyData data = new BackupProtectionPolicyData(new AzureLocation("placeholder")) + { + Properties = new IaasVmProtectionPolicy() + { + SchedulePolicy = new SimpleSchedulePolicy() + { + ScheduleRunFrequency = ScheduleRunType.Weekly, + ScheduleRunDays = +{ +BackupDayOfWeek.Monday,BackupDayOfWeek.Wednesday,BackupDayOfWeek.Thursday +}, + ScheduleRunTimes = +{ +DateTimeOffset.Parse("2018-01-24T10:00:00Z") +}, + }, + RetentionPolicy = new LongTermRetentionPolicy() + { + WeeklySchedule = new WeeklyRetentionSchedule() + { + DaysOfTheWeek = +{ +BackupDayOfWeek.Monday,BackupDayOfWeek.Wednesday,BackupDayOfWeek.Thursday +}, + RetentionTimes = +{ +DateTimeOffset.Parse("2018-01-24T10:00:00Z") +}, + RetentionDuration = new RetentionDuration() + { + Count = 1, + DurationType = RetentionDurationType.Weeks, + }, + }, + MonthlySchedule = new MonthlyRetentionSchedule() + { + RetentionScheduleFormatType = RetentionScheduleFormat.Weekly, + RetentionScheduleWeekly = new WeeklyRetentionFormat() + { + DaysOfTheWeek = +{ +BackupDayOfWeek.Wednesday,BackupDayOfWeek.Thursday +}, + WeeksOfTheMonth = +{ +BackupWeekOfMonth.First,BackupWeekOfMonth.Third +}, + }, + RetentionTimes = +{ +DateTimeOffset.Parse("2018-01-24T10:00:00Z") +}, + RetentionDuration = new RetentionDuration() + { + Count = 2, + DurationType = RetentionDurationType.Months, + }, + }, + YearlySchedule = new YearlyRetentionSchedule() + { + RetentionScheduleFormatType = RetentionScheduleFormat.Weekly, + MonthsOfYear = +{ +BackupMonthOfYear.February,BackupMonthOfYear.November +}, + RetentionScheduleWeekly = new WeeklyRetentionFormat() + { + DaysOfTheWeek = +{ +BackupDayOfWeek.Monday,BackupDayOfWeek.Thursday +}, + WeeksOfTheMonth = +{ +BackupWeekOfMonth.Fourth +}, + }, + RetentionTimes = +{ +DateTimeOffset.Parse("2018-01-24T10:00:00Z") +}, + RetentionDuration = new RetentionDuration() + { + Count = 4, + DurationType = RetentionDurationType.Years, + }, + }, + }, + TimeZone = "Pacific Standard Time", + }, + }; + ArmOperation lro = await backupProtectionPolicy.UpdateAsync(WaitUntil.Completed, data); + BackupProtectionPolicyResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupProtectionPolicyData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Create or Update Full Azure Workload Protection Policy + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Update_CreateOrUpdateFullAzureWorkloadProtectionPolicy() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureWorkload/ProtectionPolicies_CreateOrUpdate_Complex.json + // this example is just showing the usage of "ProtectionPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupProtectionPolicyResource created on azure + // for more information of creating BackupProtectionPolicyResource, please refer to the document of BackupProtectionPolicyResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "SwaggerTestRg"; + string vaultName = "NetSDKTestRsVault"; + string policyName = "testPolicy1"; + ResourceIdentifier backupProtectionPolicyResourceId = BackupProtectionPolicyResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, policyName); + BackupProtectionPolicyResource backupProtectionPolicy = client.GetBackupProtectionPolicyResource(backupProtectionPolicyResourceId); + + // invoke the operation + BackupProtectionPolicyData data = new BackupProtectionPolicyData(new AzureLocation("placeholder")) + { + Properties = new VmWorkloadProtectionPolicy() + { + WorkLoadType = BackupWorkloadType.SqlDatabase, + Settings = new BackupCommonSettings() + { + TimeZone = "Pacific Standard Time", + IsSqlCompression = false, + }, + SubProtectionPolicy = +{ +new SubProtectionPolicy() +{ +PolicyType = SubProtectionPolicyType.Full, +SchedulePolicy = new SimpleSchedulePolicy() +{ +ScheduleRunFrequency = ScheduleRunType.Weekly, +ScheduleRunDays = +{ +BackupDayOfWeek.Sunday,BackupDayOfWeek.Tuesday +}, +ScheduleRunTimes = +{ +DateTimeOffset.Parse("2018-01-24T10:00:00Z") +}, +}, +RetentionPolicy = new LongTermRetentionPolicy() +{ +WeeklySchedule = new WeeklyRetentionSchedule() +{ +DaysOfTheWeek = +{ +BackupDayOfWeek.Sunday,BackupDayOfWeek.Tuesday +}, +RetentionTimes = +{ +DateTimeOffset.Parse("2018-01-24T10:00:00Z") +}, +RetentionDuration = new RetentionDuration() +{ +Count = 2, +DurationType = RetentionDurationType.Weeks, +}, +}, +MonthlySchedule = new MonthlyRetentionSchedule() +{ +RetentionScheduleFormatType = RetentionScheduleFormat.Weekly, +RetentionScheduleWeekly = new WeeklyRetentionFormat() +{ +DaysOfTheWeek = +{ +BackupDayOfWeek.Sunday +}, +WeeksOfTheMonth = +{ +BackupWeekOfMonth.Second +}, +}, +RetentionTimes = +{ +DateTimeOffset.Parse("2018-01-24T10:00:00Z") +}, +RetentionDuration = new RetentionDuration() +{ +Count = 1, +DurationType = RetentionDurationType.Months, +}, +}, +YearlySchedule = new YearlyRetentionSchedule() +{ +RetentionScheduleFormatType = RetentionScheduleFormat.Weekly, +MonthsOfYear = +{ +BackupMonthOfYear.January,BackupMonthOfYear.June,BackupMonthOfYear.December +}, +RetentionScheduleWeekly = new WeeklyRetentionFormat() +{ +DaysOfTheWeek = +{ +BackupDayOfWeek.Sunday +}, +WeeksOfTheMonth = +{ +BackupWeekOfMonth.Last +}, +}, +RetentionTimes = +{ +DateTimeOffset.Parse("2018-01-24T10:00:00Z") +}, +RetentionDuration = new RetentionDuration() +{ +Count = 1, +DurationType = RetentionDurationType.Years, +}, +}, +}, +},new SubProtectionPolicy() +{ +PolicyType = SubProtectionPolicyType.Differential, +SchedulePolicy = new SimpleSchedulePolicy() +{ +ScheduleRunFrequency = ScheduleRunType.Weekly, +ScheduleRunDays = +{ +BackupDayOfWeek.Friday +}, +ScheduleRunTimes = +{ +DateTimeOffset.Parse("2018-01-24T10:00:00Z") +}, +}, +RetentionPolicy = new SimpleRetentionPolicy() +{ +RetentionDuration = new RetentionDuration() +{ +Count = 8, +DurationType = RetentionDurationType.Days, +}, +}, +},new SubProtectionPolicy() +{ +PolicyType = SubProtectionPolicyType.Log, +SchedulePolicy = new LogSchedulePolicy() +{ +ScheduleFrequencyInMins = 60, +}, +RetentionPolicy = new SimpleRetentionPolicy() +{ +RetentionDuration = new RetentionDuration() +{ +Count = 7, +DurationType = RetentionDurationType.Days, +}, +}, +} +}, + }, + }; + ArmOperation lro = await backupProtectionPolicy.UpdateAsync(WaitUntil.Completed, data); + BackupProtectionPolicyResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupProtectionPolicyData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Create or Update Hourly Azure Storage Protection Policy + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Update_CreateOrUpdateHourlyAzureStorageProtectionPolicy() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureStorage/ProtectionPolicies_CreateOrUpdate_Hourly.json + // this example is just showing the usage of "ProtectionPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupProtectionPolicyResource created on azure + // for more information of creating BackupProtectionPolicyResource, please refer to the document of BackupProtectionPolicyResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "SwaggerTestRg"; + string vaultName = "swaggertestvault"; + string policyName = "newPolicy2"; + ResourceIdentifier backupProtectionPolicyResourceId = BackupProtectionPolicyResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, policyName); + BackupProtectionPolicyResource backupProtectionPolicy = client.GetBackupProtectionPolicyResource(backupProtectionPolicyResourceId); + + // invoke the operation + BackupProtectionPolicyData data = new BackupProtectionPolicyData(new AzureLocation("placeholder")) + { + Properties = new FileShareProtectionPolicy() + { + WorkLoadType = BackupWorkloadType.AzureFileShare, + SchedulePolicy = new SimpleSchedulePolicy() + { + ScheduleRunFrequency = ScheduleRunType.Hourly, + HourlySchedule = new BackupHourlySchedule() + { + Interval = 4, + ScheduleWindowStartOn = DateTimeOffset.Parse("2021-09-29T08:00:00.000Z"), + ScheduleWindowDuration = 12, + }, + }, + RetentionPolicy = new LongTermRetentionPolicy() + { + DailySchedule = new DailyRetentionSchedule() + { + RetentionTimes = +{ +}, + RetentionDuration = new RetentionDuration() + { + Count = 5, + DurationType = RetentionDurationType.Days, + }, + }, + WeeklySchedule = new WeeklyRetentionSchedule() + { + DaysOfTheWeek = +{ +BackupDayOfWeek.Sunday +}, + RetentionTimes = +{ +}, + RetentionDuration = new RetentionDuration() + { + Count = 12, + DurationType = RetentionDurationType.Weeks, + }, + }, + MonthlySchedule = new MonthlyRetentionSchedule() + { + RetentionScheduleFormatType = RetentionScheduleFormat.Weekly, + RetentionScheduleWeekly = new WeeklyRetentionFormat() + { + DaysOfTheWeek = +{ +BackupDayOfWeek.Sunday +}, + WeeksOfTheMonth = +{ +BackupWeekOfMonth.First +}, + }, + RetentionTimes = +{ +}, + RetentionDuration = new RetentionDuration() + { + Count = 60, + DurationType = RetentionDurationType.Months, + }, + }, + YearlySchedule = new YearlyRetentionSchedule() + { + RetentionScheduleFormatType = RetentionScheduleFormat.Weekly, + MonthsOfYear = +{ +BackupMonthOfYear.January +}, + RetentionScheduleWeekly = new WeeklyRetentionFormat() + { + DaysOfTheWeek = +{ +BackupDayOfWeek.Sunday +}, + WeeksOfTheMonth = +{ +BackupWeekOfMonth.First +}, + }, + RetentionTimes = +{ +}, + RetentionDuration = new RetentionDuration() + { + Count = 10, + DurationType = RetentionDurationType.Years, + }, + }, + }, + TimeZone = "UTC", + }, + }; + ArmOperation lro = await backupProtectionPolicy.UpdateAsync(WaitUntil.Completed, data); + BackupProtectionPolicyResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupProtectionPolicyData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Create or Update Simple Azure Vm Protection Policy + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Update_CreateOrUpdateSimpleAzureVmProtectionPolicy() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/ProtectionPolicies_CreateOrUpdate_Simple.json + // this example is just showing the usage of "ProtectionPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupProtectionPolicyResource created on azure + // for more information of creating BackupProtectionPolicyResource, please refer to the document of BackupProtectionPolicyResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "SwaggerTestRg"; + string vaultName = "NetSDKTestRsVault"; + string policyName = "testPolicy1"; + ResourceIdentifier backupProtectionPolicyResourceId = BackupProtectionPolicyResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, policyName); + BackupProtectionPolicyResource backupProtectionPolicy = client.GetBackupProtectionPolicyResource(backupProtectionPolicyResourceId); + + // invoke the operation + BackupProtectionPolicyData data = new BackupProtectionPolicyData(new AzureLocation("placeholder")) + { + Properties = new IaasVmProtectionPolicy() + { + SchedulePolicy = new SimpleSchedulePolicy() + { + ScheduleRunFrequency = ScheduleRunType.Daily, + ScheduleRunTimes = +{ +DateTimeOffset.Parse("2018-01-24T02:00:00Z") +}, + }, + RetentionPolicy = new LongTermRetentionPolicy() + { + DailySchedule = new DailyRetentionSchedule() + { + RetentionTimes = +{ +DateTimeOffset.Parse("2018-01-24T02:00:00Z") +}, + RetentionDuration = new RetentionDuration() + { + Count = 1, + DurationType = RetentionDurationType.Days, + }, + }, + }, + TimeZone = "Pacific Standard Time", + }, + }; + ArmOperation lro = await backupProtectionPolicy.UpdateAsync(WaitUntil.Completed, data); + BackupProtectionPolicyResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupProtectionPolicyData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Delete Azure Vm Protection Policy + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Delete_DeleteAzureVmProtectionPolicy() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/ProtectionPolicies_Delete.json + // this example is just showing the usage of "ProtectionPolicies_Delete" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupProtectionPolicyResource created on azure + // for more information of creating BackupProtectionPolicyResource, please refer to the document of BackupProtectionPolicyResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "SwaggerTestRg"; + string vaultName = "NetSDKTestRsVault"; + string policyName = "testPolicy1"; + ResourceIdentifier backupProtectionPolicyResourceId = BackupProtectionPolicyResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, policyName); + BackupProtectionPolicyResource backupProtectionPolicy = client.GetBackupProtectionPolicyResource(backupProtectionPolicyResourceId); + + // invoke the operation + await backupProtectionPolicy.DeleteAsync(WaitUntil.Completed); + + Console.WriteLine($"Succeeded"); + } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupRecoveryPointCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupRecoveryPointCollection.cs new file mode 100644 index 0000000000000..24f1f3240bc96 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupRecoveryPointCollection.cs @@ -0,0 +1,131 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.RecoveryServicesBackup; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Samples +{ + public partial class Sample_BackupRecoveryPointCollection + { + // Get Protected Azure Vm Recovery Points + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetAll_GetProtectedAzureVmRecoveryPoints() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/RecoveryPoints_List.json + // this example is just showing the usage of "RecoveryPoints_List" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupProtectedItemResource created on azure + // for more information of creating BackupProtectedItemResource, please refer to the document of BackupProtectedItemResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rshhtestmdvmrg"; + string vaultName = "rshvault"; + string fabricName = "Azure"; + string containerName = "IaasVMContainer;iaasvmcontainerv2;rshhtestmdvmrg;rshmdvmsmall"; + string protectedItemName = "VM;iaasvmcontainerv2;rshhtestmdvmrg;rshmdvmsmall"; + ResourceIdentifier backupProtectedItemResourceId = BackupProtectedItemResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName); + BackupProtectedItemResource backupProtectedItem = client.GetBackupProtectedItemResource(backupProtectedItemResourceId); + + // get the collection of this BackupRecoveryPointResource + BackupRecoveryPointCollection collection = backupProtectedItem.GetBackupRecoveryPoints(); + + // invoke the operation and iterate over the result + await foreach (BackupRecoveryPointResource item in collection.GetAllAsync()) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupRecoveryPointData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // Get Azure Vm Recovery Point Details + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetAzureVmRecoveryPointDetails() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/RecoveryPoints_Get.json + // this example is just showing the usage of "RecoveryPoints_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupProtectedItemResource created on azure + // for more information of creating BackupProtectedItemResource, please refer to the document of BackupProtectedItemResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rshhtestmdvmrg"; + string vaultName = "rshvault"; + string fabricName = "Azure"; + string containerName = "IaasVMContainer;iaasvmcontainerv2;rshhtestmdvmrg;rshmdvmsmall"; + string protectedItemName = "VM;iaasvmcontainerv2;rshhtestmdvmrg;rshmdvmsmall"; + ResourceIdentifier backupProtectedItemResourceId = BackupProtectedItemResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName); + BackupProtectedItemResource backupProtectedItem = client.GetBackupProtectedItemResource(backupProtectedItemResourceId); + + // get the collection of this BackupRecoveryPointResource + BackupRecoveryPointCollection collection = backupProtectedItem.GetBackupRecoveryPoints(); + + // invoke the operation + string recoveryPointId = "26083826328862"; + BackupRecoveryPointResource result = await collection.GetAsync(recoveryPointId); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupRecoveryPointData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Get Azure Vm Recovery Point Details + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_GetAzureVmRecoveryPointDetails() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/RecoveryPoints_Get.json + // this example is just showing the usage of "RecoveryPoints_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupProtectedItemResource created on azure + // for more information of creating BackupProtectedItemResource, please refer to the document of BackupProtectedItemResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rshhtestmdvmrg"; + string vaultName = "rshvault"; + string fabricName = "Azure"; + string containerName = "IaasVMContainer;iaasvmcontainerv2;rshhtestmdvmrg;rshmdvmsmall"; + string protectedItemName = "VM;iaasvmcontainerv2;rshhtestmdvmrg;rshmdvmsmall"; + ResourceIdentifier backupProtectedItemResourceId = BackupProtectedItemResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName); + BackupProtectedItemResource backupProtectedItem = client.GetBackupProtectedItemResource(backupProtectedItemResourceId); + + // get the collection of this BackupRecoveryPointResource + BackupRecoveryPointCollection collection = backupProtectedItem.GetBackupRecoveryPoints(); + + // invoke the operation + string recoveryPointId = "26083826328862"; + bool result = await collection.ExistsAsync(recoveryPointId); + + Console.WriteLine($"Succeeded: {result}"); + } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupRecoveryPointResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupRecoveryPointResource.cs new file mode 100644 index 0000000000000..d3561c106aa80 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupRecoveryPointResource.cs @@ -0,0 +1,500 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using System.Xml; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.RecoveryServicesBackup; +using Azure.ResourceManager.RecoveryServicesBackup.Models; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Samples +{ + public partial class Sample_BackupRecoveryPointResource + { + // Trigger RP Move Operation + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task MoveRecoveryPoint_TriggerRPMoveOperation() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/TriggerRecoveryPointMove_Post.json + // this example is just showing the usage of "MoveRecoveryPoint" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupRecoveryPointResource created on azure + // for more information of creating BackupRecoveryPointResource, please refer to the document of BackupRecoveryPointResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "netsdktestrg"; + string vaultName = "testVault"; + string fabricName = "Azure"; + string containerName = "IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1"; + string protectedItemName = "VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1"; + string recoveryPointId = "348916168024334"; + ResourceIdentifier backupRecoveryPointResourceId = BackupRecoveryPointResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName, recoveryPointId); + BackupRecoveryPointResource backupRecoveryPoint = client.GetBackupRecoveryPointResource(backupRecoveryPointResourceId); + + // invoke the operation + MoveRPAcrossTiersContent content = new MoveRPAcrossTiersContent() + { + ObjectType = "MoveRPAcrossTiersRequest", + SourceTierType = RecoveryPointTierType.HardenedRP, + TargetTierType = RecoveryPointTierType.ArchivedRP, + }; + await backupRecoveryPoint.MoveRecoveryPointAsync(WaitUntil.Completed, content); + + Console.WriteLine($"Succeeded"); + } + + // Get Azure Vm Recovery Point Details + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetAzureVmRecoveryPointDetails() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/RecoveryPoints_Get.json + // this example is just showing the usage of "RecoveryPoints_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupRecoveryPointResource created on azure + // for more information of creating BackupRecoveryPointResource, please refer to the document of BackupRecoveryPointResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rshhtestmdvmrg"; + string vaultName = "rshvault"; + string fabricName = "Azure"; + string containerName = "IaasVMContainer;iaasvmcontainerv2;rshhtestmdvmrg;rshmdvmsmall"; + string protectedItemName = "VM;iaasvmcontainerv2;rshhtestmdvmrg;rshmdvmsmall"; + string recoveryPointId = "26083826328862"; + ResourceIdentifier backupRecoveryPointResourceId = BackupRecoveryPointResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName, recoveryPointId); + BackupRecoveryPointResource backupRecoveryPoint = client.GetBackupRecoveryPointResource(backupRecoveryPointResourceId); + + // invoke the operation + BackupRecoveryPointResource result = await backupRecoveryPoint.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupRecoveryPointData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Restore Disks with IaasVMRestoreRequest + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task TriggerRestore_RestoreDisksWithIaasVMRestoreRequest() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/TriggerRestore_RestoreDisks_IaasVMRestoreRequest.json + // this example is just showing the usage of "Restores_Trigger" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupRecoveryPointResource created on azure + // for more information of creating BackupRecoveryPointResource, please refer to the document of BackupRecoveryPointResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "netsdktestrg"; + string vaultName = "testVault"; + string fabricName = "Azure"; + string containerName = "IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1"; + string protectedItemName = "VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1"; + string recoveryPointId = "348916168024334"; + ResourceIdentifier backupRecoveryPointResourceId = BackupRecoveryPointResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName, recoveryPointId); + BackupRecoveryPointResource backupRecoveryPoint = client.GetBackupRecoveryPointResource(backupRecoveryPointResourceId); + + // invoke the operation + TriggerRestoreContent content = new TriggerRestoreContent(new AzureLocation("placeholder")) + { + Properties = new IaasVmRestoreContent() + { + RecoveryPointId = "348916168024334", + RecoveryType = FileShareRecoveryType.RestoreDisks, + SourceResourceId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1"), + StorageAccountId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testingRg/providers/Microsoft.Storage/storageAccounts/testAccount"), + Region = new AzureLocation("southeastasia"), + DoesCreateNewCloudService = true, + OriginalStorageAccountOption = false, + EncryptionDetails = new VmEncryptionDetails() + { + IsEncryptionEnabled = false, + }, + IdentityInfo = new BackupIdentityInfo() + { + IsSystemAssignedIdentity = false, + ManagedIdentityResourceId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/asmaskarRG1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/asmaskartestmsi"), + }, + }, + }; + await backupRecoveryPoint.TriggerRestoreAsync(WaitUntil.Completed, content); + + Console.WriteLine($"Succeeded"); + } + + // Restore Disks with IaasVMRestoreRequest with IdentityBasedRestoreDetails + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task TriggerRestore_RestoreDisksWithIaasVMRestoreRequestWithIdentityBasedRestoreDetails() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/TriggerRestore_RestoreDisks_IaasVMRestoreRequest_IdentityBasedRestoreDetails.json + // this example is just showing the usage of "Restores_Trigger" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupRecoveryPointResource created on azure + // for more information of creating BackupRecoveryPointResource, please refer to the document of BackupRecoveryPointResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "netsdktestrg"; + string vaultName = "testVault"; + string fabricName = "Azure"; + string containerName = "IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1"; + string protectedItemName = "VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1"; + string recoveryPointId = "348916168024334"; + ResourceIdentifier backupRecoveryPointResourceId = BackupRecoveryPointResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName, recoveryPointId); + BackupRecoveryPointResource backupRecoveryPoint = client.GetBackupRecoveryPointResource(backupRecoveryPointResourceId); + + // invoke the operation + TriggerRestoreContent content = new TriggerRestoreContent(new AzureLocation("placeholder")) + { + Properties = new IaasVmRestoreContent() + { + RecoveryPointId = "348916168024334", + RecoveryType = FileShareRecoveryType.RestoreDisks, + SourceResourceId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1"), + Region = new AzureLocation("southeastasia"), + DoesCreateNewCloudService = true, + OriginalStorageAccountOption = false, + EncryptionDetails = new VmEncryptionDetails() + { + IsEncryptionEnabled = false, + }, + IdentityInfo = new BackupIdentityInfo() + { + IsSystemAssignedIdentity = false, + ManagedIdentityResourceId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/asmaskarRG1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/asmaskartestmsi"), + }, + IdentityBasedRestoreDetails = new IdentityBasedRestoreDetails() + { + TargetStorageAccountId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testingRg/providers/Microsoft.Storage/storageAccounts/testAccount"), + }, + }, + }; + await backupRecoveryPoint.TriggerRestoreAsync(WaitUntil.Completed, content); + + Console.WriteLine($"Succeeded"); + } + + // Restore Disks with IaasVMRestoreWithRehydrationRequest + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task TriggerRestore_RestoreDisksWithIaasVMRestoreWithRehydrationRequest() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/TriggerRestore_RestoreDisks_IaasVMRestoreWithRehydrationRequest.json + // this example is just showing the usage of "Restores_Trigger" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupRecoveryPointResource created on azure + // for more information of creating BackupRecoveryPointResource, please refer to the document of BackupRecoveryPointResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "netsdktestrg"; + string vaultName = "testVault"; + string fabricName = "Azure"; + string containerName = "IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1"; + string protectedItemName = "VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1"; + string recoveryPointId = "348916168024334"; + ResourceIdentifier backupRecoveryPointResourceId = BackupRecoveryPointResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName, recoveryPointId); + BackupRecoveryPointResource backupRecoveryPoint = client.GetBackupRecoveryPointResource(backupRecoveryPointResourceId); + + // invoke the operation + TriggerRestoreContent content = new TriggerRestoreContent(new AzureLocation("placeholder")) + { + Properties = new IaasVmRestoreWithRehydrationContent() + { + RecoveryPointRehydrationInfo = new RecoveryPointRehydrationInfo() + { + RehydrationRetentionDuration = XmlConvert.ToTimeSpan("P7D"), + RehydrationPriority = RehydrationPriority.Standard, + }, + RecoveryPointId = "348916168024334", + RecoveryType = FileShareRecoveryType.RestoreDisks, + SourceResourceId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1"), + StorageAccountId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testingRg/providers/Microsoft.Storage/storageAccounts/testAccount"), + Region = new AzureLocation("southeastasia"), + DoesCreateNewCloudService = true, + OriginalStorageAccountOption = false, + EncryptionDetails = new VmEncryptionDetails() + { + IsEncryptionEnabled = false, + }, + }, + }; + await backupRecoveryPoint.TriggerRestoreAsync(WaitUntil.Completed, content); + + Console.WriteLine($"Succeeded"); + } + + // Restore to New Azure IaasVm with IaasVMRestoreRequest + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task TriggerRestore_RestoreToNewAzureIaasVmWithIaasVMRestoreRequest() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/TriggerRestore_ALR_IaasVMRestoreRequest.json + // this example is just showing the usage of "Restores_Trigger" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupRecoveryPointResource created on azure + // for more information of creating BackupRecoveryPointResource, please refer to the document of BackupRecoveryPointResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "netsdktestrg"; + string vaultName = "testVault"; + string fabricName = "Azure"; + string containerName = "IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1"; + string protectedItemName = "VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1"; + string recoveryPointId = "348916168024334"; + ResourceIdentifier backupRecoveryPointResourceId = BackupRecoveryPointResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName, recoveryPointId); + BackupRecoveryPointResource backupRecoveryPoint = client.GetBackupRecoveryPointResource(backupRecoveryPointResourceId); + + // invoke the operation + TriggerRestoreContent content = new TriggerRestoreContent(new AzureLocation("placeholder")) + { + Properties = new IaasVmRestoreContent() + { + RecoveryPointId = "348916168024334", + RecoveryType = FileShareRecoveryType.AlternateLocation, + SourceResourceId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1"), + TargetVirtualMachineId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg2/providers/Microsoft.Compute/virtualmachines/RSMDALRVM981435"), + TargetResourceGroupId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg2"), + StorageAccountId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Storage/storageAccounts/testingAccount"), + VirtualNetworkId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Network/virtualNetworks/testNet"), + SubnetId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Network/virtualNetworks/testNet/subnets/default"), + Region = new AzureLocation("southeastasia"), + DoesCreateNewCloudService = false, + OriginalStorageAccountOption = false, + EncryptionDetails = new VmEncryptionDetails() + { + IsEncryptionEnabled = false, + }, + IdentityInfo = new BackupIdentityInfo() + { + IsSystemAssignedIdentity = true, + }, + }, + }; + await backupRecoveryPoint.TriggerRestoreAsync(WaitUntil.Completed, content); + + Console.WriteLine($"Succeeded"); + } + + // Restore to New Azure IaasVm with IaasVMRestoreRequest with identityBasedRestoreDetails + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task TriggerRestore_RestoreToNewAzureIaasVmWithIaasVMRestoreRequestWithIdentityBasedRestoreDetails() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/TriggerRestore_ALR_IaasVMRestoreRequest_IdentityBasedRestoreDetails.json + // this example is just showing the usage of "Restores_Trigger" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupRecoveryPointResource created on azure + // for more information of creating BackupRecoveryPointResource, please refer to the document of BackupRecoveryPointResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "netsdktestrg"; + string vaultName = "testVault"; + string fabricName = "Azure"; + string containerName = "IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1"; + string protectedItemName = "VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1"; + string recoveryPointId = "348916168024334"; + ResourceIdentifier backupRecoveryPointResourceId = BackupRecoveryPointResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName, recoveryPointId); + BackupRecoveryPointResource backupRecoveryPoint = client.GetBackupRecoveryPointResource(backupRecoveryPointResourceId); + + // invoke the operation + TriggerRestoreContent content = new TriggerRestoreContent(new AzureLocation("placeholder")) + { + Properties = new IaasVmRestoreContent() + { + RecoveryPointId = "348916168024334", + RecoveryType = FileShareRecoveryType.AlternateLocation, + SourceResourceId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1"), + TargetVirtualMachineId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg2/providers/Microsoft.Compute/virtualmachines/RSMDALRVM981435"), + TargetResourceGroupId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg2"), + VirtualNetworkId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Network/virtualNetworks/testNet"), + SubnetId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Network/virtualNetworks/testNet/subnets/default"), + Region = new AzureLocation("southeastasia"), + DoesCreateNewCloudService = false, + OriginalStorageAccountOption = false, + EncryptionDetails = new VmEncryptionDetails() + { + IsEncryptionEnabled = false, + }, + IdentityInfo = new BackupIdentityInfo() + { + IsSystemAssignedIdentity = true, + }, + IdentityBasedRestoreDetails = new IdentityBasedRestoreDetails() + { + TargetStorageAccountId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Storage/storageAccounts/testingAccount"), + }, + }, + }; + await backupRecoveryPoint.TriggerRestoreAsync(WaitUntil.Completed, content); + + Console.WriteLine($"Succeeded"); + } + + // Restore to New Azure IaasVm with IaasVMRestoreWithRehydrationRequest + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task TriggerRestore_RestoreToNewAzureIaasVmWithIaasVMRestoreWithRehydrationRequest() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/TriggerRestore_ALR_IaasVMRestoreWithRehydrationRequest.json + // this example is just showing the usage of "Restores_Trigger" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupRecoveryPointResource created on azure + // for more information of creating BackupRecoveryPointResource, please refer to the document of BackupRecoveryPointResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "netsdktestrg"; + string vaultName = "testVault"; + string fabricName = "Azure"; + string containerName = "IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1"; + string protectedItemName = "VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1"; + string recoveryPointId = "348916168024334"; + ResourceIdentifier backupRecoveryPointResourceId = BackupRecoveryPointResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName, recoveryPointId); + BackupRecoveryPointResource backupRecoveryPoint = client.GetBackupRecoveryPointResource(backupRecoveryPointResourceId); + + // invoke the operation + TriggerRestoreContent content = new TriggerRestoreContent(new AzureLocation("placeholder")) + { + Properties = new IaasVmRestoreWithRehydrationContent() + { + RecoveryPointRehydrationInfo = new RecoveryPointRehydrationInfo() + { + RehydrationRetentionDuration = XmlConvert.ToTimeSpan("P7D"), + RehydrationPriority = RehydrationPriority.High, + }, + RecoveryPointId = "348916168024334", + RecoveryType = FileShareRecoveryType.AlternateLocation, + SourceResourceId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1"), + TargetVirtualMachineId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg2/providers/Microsoft.Compute/virtualmachines/RSMDALRVM981435"), + TargetResourceGroupId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg2"), + StorageAccountId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Storage/storageAccounts/testingAccount"), + VirtualNetworkId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Network/virtualNetworks/testNet"), + SubnetId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Network/virtualNetworks/testNet/subnets/default"), + Region = new AzureLocation("southeastasia"), + DoesCreateNewCloudService = false, + OriginalStorageAccountOption = false, + EncryptionDetails = new VmEncryptionDetails() + { + IsEncryptionEnabled = false, + }, + }, + }; + await backupRecoveryPoint.TriggerRestoreAsync(WaitUntil.Completed, content); + + Console.WriteLine($"Succeeded"); + } + + // Provision Instant Item Level Recovery for Azure Vm + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task ProvisionItemLevelRecoveryConnection_ProvisionInstantItemLevelRecoveryForAzureVm() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/Provision_Ilr.json + // this example is just showing the usage of "ItemLevelRecoveryConnections_Provision" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupRecoveryPointResource created on azure + // for more information of creating BackupRecoveryPointResource, please refer to the document of BackupRecoveryPointResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "PythonSDKBackupTestRg"; + string vaultName = "PySDKBackupTestRsVault"; + string fabricName = "Azure"; + string containerName = "iaasvmcontainer;iaasvmcontainerv2;pysdktestrg;pysdktestv2vm1"; + string protectedItemName = "vm;iaasvmcontainerv2;pysdktestrg;pysdktestv2vm1"; + string recoveryPointId = "1"; + ResourceIdentifier backupRecoveryPointResourceId = BackupRecoveryPointResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName, recoveryPointId); + BackupRecoveryPointResource backupRecoveryPoint = client.GetBackupRecoveryPointResource(backupRecoveryPointResourceId); + + // invoke the operation + ProvisionIlrConnectionContent content = new ProvisionIlrConnectionContent(new AzureLocation("placeholder")) + { + Properties = new IaasVmIlrRegistrationContent() + { + RecoveryPointId = "38823086363464", + VirtualMachineId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/pysdktestrg/providers/Microsoft.Compute/virtualMachines/pysdktestv2vm1"), + InitiatorName = "Hello World", + RenewExistingRegistration = true, + }, + }; + await backupRecoveryPoint.ProvisionItemLevelRecoveryConnectionAsync(content); + + Console.WriteLine($"Succeeded"); + } + + // Revoke Instant Item Level Recovery for Azure Vm + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task RevokeItemLevelRecoveryConnection_RevokeInstantItemLevelRecoveryForAzureVm() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/Revoke_Ilr.json + // this example is just showing the usage of "ItemLevelRecoveryConnections_Revoke" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupRecoveryPointResource created on azure + // for more information of creating BackupRecoveryPointResource, please refer to the document of BackupRecoveryPointResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "PythonSDKBackupTestRg"; + string vaultName = "PySDKBackupTestRsVault"; + string fabricName = "Azure"; + string containerName = "iaasvmcontainer;iaasvmcontainerv2;pysdktestrg;pysdktestv2vm1"; + string protectedItemName = "vm;iaasvmcontainerv2;pysdktestrg;pysdktestv2vm1"; + string recoveryPointId = "1"; + ResourceIdentifier backupRecoveryPointResourceId = BackupRecoveryPointResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName, recoveryPointId); + BackupRecoveryPointResource backupRecoveryPoint = client.GetBackupRecoveryPointResource(backupRecoveryPointResourceId); + + // invoke the operation + await backupRecoveryPoint.RevokeItemLevelRecoveryConnectionAsync(); + + Console.WriteLine($"Succeeded"); + } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceConfigCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceConfigCollection.cs new file mode 100644 index 0000000000000..a9f1b763c4ee4 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceConfigCollection.cs @@ -0,0 +1,129 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.RecoveryServicesBackup; +using Azure.ResourceManager.RecoveryServicesBackup.Models; +using Azure.ResourceManager.Resources; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Samples +{ + public partial class Sample_BackupResourceConfigCollection + { + // Get Vault Storage Configuration + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetVaultStorageConfiguration() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/BackupStorageConfig_Get.json + // this example is just showing the usage of "BackupResourceStorageConfigsNonCRR_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "PythonSDKBackupTestRg"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this BackupResourceConfigResource + BackupResourceConfigCollection collection = resourceGroupResource.GetBackupResourceConfigs(); + + // invoke the operation + string vaultName = "PySDKBackupTestRsVault"; + BackupResourceConfigResource result = await collection.GetAsync(vaultName); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupResourceConfigData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Get Vault Storage Configuration + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_GetVaultStorageConfiguration() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/BackupStorageConfig_Get.json + // this example is just showing the usage of "BackupResourceStorageConfigsNonCRR_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "PythonSDKBackupTestRg"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this BackupResourceConfigResource + BackupResourceConfigCollection collection = resourceGroupResource.GetBackupResourceConfigs(); + + // invoke the operation + string vaultName = "PySDKBackupTestRsVault"; + bool result = await collection.ExistsAsync(vaultName); + + Console.WriteLine($"Succeeded: {result}"); + } + + // Update Vault Storage Configuration + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_UpdateVaultStorageConfiguration() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/BackupStorageConfig_Put.json + // this example is just showing the usage of "BackupResourceStorageConfigsNonCRR_Update" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "PythonSDKBackupTestRg"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this BackupResourceConfigResource + BackupResourceConfigCollection collection = resourceGroupResource.GetBackupResourceConfigs(); + + // invoke the operation + string vaultName = "PySDKBackupTestRsVault"; + BackupResourceConfigData data = new BackupResourceConfigData(new AzureLocation("placeholder")) + { + Properties = new BackupResourceConfigProperties() + { + StorageType = BackupStorageType.LocallyRedundant, + StorageTypeState = BackupStorageTypeState.Unlocked, + }, + }; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, vaultName, data); + BackupResourceConfigResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupResourceConfigData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceConfigResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceConfigResource.cs new file mode 100644 index 0000000000000..37e5074a7f6c6 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceConfigResource.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.RecoveryServicesBackup; +using Azure.ResourceManager.RecoveryServicesBackup.Models; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Samples +{ + public partial class Sample_BackupResourceConfigResource + { + // Get Vault Storage Configuration + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetVaultStorageConfiguration() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/BackupStorageConfig_Get.json + // this example is just showing the usage of "BackupResourceStorageConfigsNonCRR_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupResourceConfigResource created on azure + // for more information of creating BackupResourceConfigResource, please refer to the document of BackupResourceConfigResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "PythonSDKBackupTestRg"; + string vaultName = "PySDKBackupTestRsVault"; + ResourceIdentifier backupResourceConfigResourceId = BackupResourceConfigResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName); + BackupResourceConfigResource backupResourceConfig = client.GetBackupResourceConfigResource(backupResourceConfigResourceId); + + // invoke the operation + BackupResourceConfigResource result = await backupResourceConfig.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupResourceConfigData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Update Vault Storage Configuration + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Update_UpdateVaultStorageConfiguration() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/BackupStorageConfig_Patch.json + // this example is just showing the usage of "BackupResourceStorageConfigsNonCRR_patch" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupResourceConfigResource created on azure + // for more information of creating BackupResourceConfigResource, please refer to the document of BackupResourceConfigResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "PythonSDKBackupTestRg"; + string vaultName = "PySDKBackupTestRsVault"; + ResourceIdentifier backupResourceConfigResourceId = BackupResourceConfigResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName); + BackupResourceConfigResource backupResourceConfig = client.GetBackupResourceConfigResource(backupResourceConfigResourceId); + + // invoke the operation + BackupResourceConfigData data = new BackupResourceConfigData(new AzureLocation("placeholder")) + { + Properties = new BackupResourceConfigProperties() + { + StorageType = BackupStorageType.LocallyRedundant, + StorageTypeState = BackupStorageTypeState.Unlocked, + }, + }; + BackupResourceConfigResource result = await backupResourceConfig.UpdateAsync(data); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupResourceConfigData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Prepare Data Move + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task PrepareDataMove_PrepareDataMove() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/BackupDataMove/PrepareDataMove_Post.json + // this example is just showing the usage of "BMSPrepareDataMove" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupResourceConfigResource created on azure + // for more information of creating BackupResourceConfigResource, please refer to the document of BackupResourceConfigResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "sourceRG"; + string vaultName = "source-rsv"; + ResourceIdentifier backupResourceConfigResourceId = BackupResourceConfigResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName); + BackupResourceConfigResource backupResourceConfig = client.GetBackupResourceConfigResource(backupResourceConfigResourceId); + + // invoke the operation + PrepareDataMoveContent content = new PrepareDataMoveContent(new ResourceIdentifier("/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/targetRG/providers/Microsoft.RecoveryServices/vaults/target-rsv"), new AzureLocation("USGov Virginia"), DataMoveLevel.Vault); + await backupResourceConfig.PrepareDataMoveAsync(WaitUntil.Completed, content); + + Console.WriteLine($"Succeeded"); + } + + // Trigger Data Move + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task TriggerDataMove_TriggerDataMove() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/BackupDataMove/TriggerDataMove_Post.json + // this example is just showing the usage of "BMSTriggerDataMove" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupResourceConfigResource created on azure + // for more information of creating BackupResourceConfigResource, please refer to the document of BackupResourceConfigResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "targetRG"; + string vaultName = "target-rsv"; + ResourceIdentifier backupResourceConfigResourceId = BackupResourceConfigResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName); + BackupResourceConfigResource backupResourceConfig = client.GetBackupResourceConfigResource(backupResourceConfigResourceId); + + // invoke the operation + TriggerDataMoveContent content = new TriggerDataMoveContent(new ResourceIdentifier("/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/sourceRG/providers/Microsoft.RecoveryServices/vaults/source-rsv"), new AzureLocation("USGov Iowa"), DataMoveLevel.Vault, "MTg2OTcyMzM4NzYyMjc1NDY3Nzs1YmUzYmVmNi04YjJiLTRhOTItOTllYi01NTM0MDllYjk2NjE="); + await backupResourceConfig.TriggerDataMoveAsync(WaitUntil.Completed, content); + + Console.WriteLine($"Succeeded"); + } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceEncryptionConfigExtendedCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceEncryptionConfigExtendedCollection.cs new file mode 100644 index 0000000000000..bcadbed5b44a8 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceEncryptionConfigExtendedCollection.cs @@ -0,0 +1,126 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.RecoveryServicesBackup; +using Azure.ResourceManager.RecoveryServicesBackup.Models; +using Azure.ResourceManager.Resources; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Samples +{ + public partial class Sample_BackupResourceEncryptionConfigExtendedCollection + { + // Get Vault Encryption Configuration + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetVaultEncryptionConfiguration() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/BackupResourceEncryptionConfig_Get.json + // this example is just showing the usage of "BackupResourceEncryptionConfigs_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rishgrp"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this BackupResourceEncryptionConfigExtendedResource + BackupResourceEncryptionConfigExtendedCollection collection = resourceGroupResource.GetBackupResourceEncryptionConfigExtendeds(); + + // invoke the operation + string vaultName = "rishTestVault"; + BackupResourceEncryptionConfigExtendedResource result = await collection.GetAsync(vaultName); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupResourceEncryptionConfigExtendedData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Get Vault Encryption Configuration + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_GetVaultEncryptionConfiguration() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/BackupResourceEncryptionConfig_Get.json + // this example is just showing the usage of "BackupResourceEncryptionConfigs_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rishgrp"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this BackupResourceEncryptionConfigExtendedResource + BackupResourceEncryptionConfigExtendedCollection collection = resourceGroupResource.GetBackupResourceEncryptionConfigExtendeds(); + + // invoke the operation + string vaultName = "rishTestVault"; + bool result = await collection.ExistsAsync(vaultName); + + Console.WriteLine($"Succeeded: {result}"); + } + + // Update Vault Encryption Configuration + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_UpdateVaultEncryptionConfiguration() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/BackupResourceEncryptionConfig_Put.json + // this example is just showing the usage of "BackupResourceEncryptionConfigs_Update" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "test-rg"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this BackupResourceEncryptionConfigExtendedResource + BackupResourceEncryptionConfigExtendedCollection collection = resourceGroupResource.GetBackupResourceEncryptionConfigExtendeds(); + + // invoke the operation + string vaultName = "source-rsv"; + BackupResourceEncryptionConfigExtendedCreateOrUpdateContent content = new BackupResourceEncryptionConfigExtendedCreateOrUpdateContent(new AzureLocation("placeholder")) + { + Properties = new BackupResourceEncryptionConfig() + { + EncryptionAtRestType = BackupEncryptionAtRestType.CustomerManaged, + KeyUri = new Uri("https://gktestkv1.vault.azure.net/keys/Test1/ed2e8cdc7f86477ebf0c6462b504a9ed"), + SubscriptionId = "1a2311d9-66f5-47d3-a9fb-7a37da63934b", + InfrastructureEncryptionState = new InfrastructureEncryptionState("true"), + }, + }; + await collection.CreateOrUpdateAsync(WaitUntil.Completed, vaultName, content); + + Console.WriteLine($"Succeeded"); + } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceEncryptionConfigExtendedResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceEncryptionConfigExtendedResource.cs new file mode 100644 index 0000000000000..043c7aa01da2b --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceEncryptionConfigExtendedResource.cs @@ -0,0 +1,89 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.RecoveryServicesBackup; +using Azure.ResourceManager.RecoveryServicesBackup.Models; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Samples +{ + public partial class Sample_BackupResourceEncryptionConfigExtendedResource + { + // Get Vault Encryption Configuration + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetVaultEncryptionConfiguration() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/BackupResourceEncryptionConfig_Get.json + // this example is just showing the usage of "BackupResourceEncryptionConfigs_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupResourceEncryptionConfigExtendedResource created on azure + // for more information of creating BackupResourceEncryptionConfigExtendedResource, please refer to the document of BackupResourceEncryptionConfigExtendedResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rishgrp"; + string vaultName = "rishTestVault"; + ResourceIdentifier backupResourceEncryptionConfigExtendedResourceId = BackupResourceEncryptionConfigExtendedResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName); + BackupResourceEncryptionConfigExtendedResource backupResourceEncryptionConfigExtended = client.GetBackupResourceEncryptionConfigExtendedResource(backupResourceEncryptionConfigExtendedResourceId); + + // invoke the operation + BackupResourceEncryptionConfigExtendedResource result = await backupResourceEncryptionConfigExtended.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupResourceEncryptionConfigExtendedData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Update Vault Encryption Configuration + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Update_UpdateVaultEncryptionConfiguration() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/BackupResourceEncryptionConfig_Put.json + // this example is just showing the usage of "BackupResourceEncryptionConfigs_Update" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupResourceEncryptionConfigExtendedResource created on azure + // for more information of creating BackupResourceEncryptionConfigExtendedResource, please refer to the document of BackupResourceEncryptionConfigExtendedResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "test-rg"; + string vaultName = "source-rsv"; + ResourceIdentifier backupResourceEncryptionConfigExtendedResourceId = BackupResourceEncryptionConfigExtendedResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName); + BackupResourceEncryptionConfigExtendedResource backupResourceEncryptionConfigExtended = client.GetBackupResourceEncryptionConfigExtendedResource(backupResourceEncryptionConfigExtendedResourceId); + + // invoke the operation + BackupResourceEncryptionConfigExtendedCreateOrUpdateContent content = new BackupResourceEncryptionConfigExtendedCreateOrUpdateContent(new AzureLocation("placeholder")) + { + Properties = new BackupResourceEncryptionConfig() + { + EncryptionAtRestType = BackupEncryptionAtRestType.CustomerManaged, + KeyUri = new Uri("https://gktestkv1.vault.azure.net/keys/Test1/ed2e8cdc7f86477ebf0c6462b504a9ed"), + SubscriptionId = "1a2311d9-66f5-47d3-a9fb-7a37da63934b", + InfrastructureEncryptionState = new InfrastructureEncryptionState("true"), + }, + }; + await backupResourceEncryptionConfigExtended.UpdateAsync(WaitUntil.Completed, content); + + Console.WriteLine($"Succeeded"); + } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceVaultConfigCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceVaultConfigCollection.cs new file mode 100644 index 0000000000000..9edfe00f48f8e --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceVaultConfigCollection.cs @@ -0,0 +1,129 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.RecoveryServicesBackup; +using Azure.ResourceManager.RecoveryServicesBackup.Models; +using Azure.ResourceManager.Resources; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Samples +{ + public partial class Sample_BackupResourceVaultConfigCollection + { + // Get Vault Security Config + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetVaultSecurityConfig() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/BackupResourceVaultConfigs_Get.json + // this example is just showing the usage of "BackupResourceVaultConfigs_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "SwaggerTestRg"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this BackupResourceVaultConfigResource + BackupResourceVaultConfigCollection collection = resourceGroupResource.GetBackupResourceVaultConfigs(); + + // invoke the operation + string vaultName = "SwaggerTest"; + BackupResourceVaultConfigResource result = await collection.GetAsync(vaultName); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupResourceVaultConfigData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Get Vault Security Config + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_GetVaultSecurityConfig() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/BackupResourceVaultConfigs_Get.json + // this example is just showing the usage of "BackupResourceVaultConfigs_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "SwaggerTestRg"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this BackupResourceVaultConfigResource + BackupResourceVaultConfigCollection collection = resourceGroupResource.GetBackupResourceVaultConfigs(); + + // invoke the operation + string vaultName = "SwaggerTest"; + bool result = await collection.ExistsAsync(vaultName); + + Console.WriteLine($"Succeeded: {result}"); + } + + // Update Vault Security Config + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_UpdateVaultSecurityConfig() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/BackupResourceVaultConfigs_Put.json + // this example is just showing the usage of "BackupResourceVaultConfigs_Put" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "SwaggerTestRg"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this BackupResourceVaultConfigResource + BackupResourceVaultConfigCollection collection = resourceGroupResource.GetBackupResourceVaultConfigs(); + + // invoke the operation + string vaultName = "SwaggerTest"; + BackupResourceVaultConfigData data = new BackupResourceVaultConfigData(new AzureLocation("placeholder")) + { + Properties = new BackupResourceVaultConfigProperties() + { + EnhancedSecurityState = EnhancedSecurityState.Enabled, + SoftDeleteFeatureState = SoftDeleteFeatureState.Enabled, + }, + }; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, vaultName, data); + BackupResourceVaultConfigResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupResourceVaultConfigData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceVaultConfigResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceVaultConfigResource.cs new file mode 100644 index 0000000000000..e493c967187cc --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceVaultConfigResource.cs @@ -0,0 +1,89 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.RecoveryServicesBackup; +using Azure.ResourceManager.RecoveryServicesBackup.Models; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Samples +{ + public partial class Sample_BackupResourceVaultConfigResource + { + // Get Vault Security Config + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetVaultSecurityConfig() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/BackupResourceVaultConfigs_Get.json + // this example is just showing the usage of "BackupResourceVaultConfigs_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupResourceVaultConfigResource created on azure + // for more information of creating BackupResourceVaultConfigResource, please refer to the document of BackupResourceVaultConfigResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "SwaggerTestRg"; + string vaultName = "SwaggerTest"; + ResourceIdentifier backupResourceVaultConfigResourceId = BackupResourceVaultConfigResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName); + BackupResourceVaultConfigResource backupResourceVaultConfig = client.GetBackupResourceVaultConfigResource(backupResourceVaultConfigResourceId); + + // invoke the operation + BackupResourceVaultConfigResource result = await backupResourceVaultConfig.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupResourceVaultConfigData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Update Vault Security Config + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Update_UpdateVaultSecurityConfig() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/BackupResourceVaultConfigs_Patch.json + // this example is just showing the usage of "BackupResourceVaultConfigs_Update" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this BackupResourceVaultConfigResource created on azure + // for more information of creating BackupResourceVaultConfigResource, please refer to the document of BackupResourceVaultConfigResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "SwaggerTestRg"; + string vaultName = "SwaggerTest"; + ResourceIdentifier backupResourceVaultConfigResourceId = BackupResourceVaultConfigResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName); + BackupResourceVaultConfigResource backupResourceVaultConfig = client.GetBackupResourceVaultConfigResource(backupResourceVaultConfigResourceId); + + // invoke the operation + BackupResourceVaultConfigData data = new BackupResourceVaultConfigData(new AzureLocation("placeholder")) + { + Properties = new BackupResourceVaultConfigProperties() + { + EnhancedSecurityState = EnhancedSecurityState.Enabled, + }, + }; + BackupResourceVaultConfigResource result = await backupResourceVaultConfig.UpdateAsync(data); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupResourceVaultConfigData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ResourceGroupResourceExtensions.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ResourceGroupResourceExtensions.cs new file mode 100644 index 0000000000000..d0b2e19a84926 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ResourceGroupResourceExtensions.cs @@ -0,0 +1,339 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.RecoveryServicesBackup; +using Azure.ResourceManager.RecoveryServicesBackup.Models; +using Azure.ResourceManager.Resources; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Samples +{ + public partial class Sample_ResourceGroupResourceExtensions + { + // List protection intent with backupManagementType filter + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetBackupProtectionIntents_ListProtectionIntentWithBackupManagementTypeFilter() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureWorkload/BackupProtectionIntent_List.json + // this example is just showing the usage of "BackupProtectionIntent_List" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "myRG"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // invoke the operation and iterate over the result + string vaultName = "myVault"; + await foreach (BackupProtectionIntentResource item in resourceGroupResource.GetBackupProtectionIntentsAsync(vaultName)) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupProtectionIntentData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // Get Protected Containers Usages Summary + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetBackupUsageSummaries_GetProtectedContainersUsagesSummary() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/BackupProtectionContainers_UsageSummary_Get.json + // this example is just showing the usage of "BackupUsageSummaries_List" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "testRG"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // invoke the operation and iterate over the result + string vaultName = "testVault"; + string filter = "type eq 'BackupProtectionContainerCountSummary'"; + await foreach (BackupManagementUsage item in resourceGroupResource.GetBackupUsageSummariesAsync(vaultName, filter: filter)) + { + Console.WriteLine($"Succeeded: {item}"); + } + + Console.WriteLine($"Succeeded"); + } + + // Get Protected Items Usages Summary + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetBackupUsageSummaries_GetProtectedItemsUsagesSummary() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/BackupProtectedItem_UsageSummary_Get.json + // this example is just showing the usage of "BackupUsageSummaries_List" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "testRG"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // invoke the operation and iterate over the result + string vaultName = "testVault"; + string filter = "type eq 'BackupProtectedItemCountSummary'"; + await foreach (BackupManagementUsage item in resourceGroupResource.GetBackupUsageSummariesAsync(vaultName, filter: filter)) + { + Console.WriteLine($"Succeeded: {item}"); + } + + Console.WriteLine($"Succeeded"); + } + + // Export Jobs + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task ExportJob_ExportJobs() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/TriggerExportJobs.json + // this example is just showing the usage of "Jobs_Export" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "SwaggerTestRg"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // invoke the operation + string vaultName = "NetSDKTestRsVault"; + await resourceGroupResource.ExportJobAsync(vaultName); + + Console.WriteLine($"Succeeded"); + } + + // List protected items with backupManagementType filter as AzureIaasVm + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetBackupProtectedItems_ListProtectedItemsWithBackupManagementTypeFilterAsAzureIaasVm() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/BackupProtectedItems_List.json + // this example is just showing the usage of "BackupProtectedItems_List" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "SwaggerTestRg"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // invoke the operation and iterate over the result + string vaultName = "NetSDKTestRsVault"; + string filter = "backupManagementType eq 'AzureIaasVM' and itemType eq 'VM'"; + await foreach (BackupProtectedItemResource item in resourceGroupResource.GetBackupProtectedItemsAsync(vaultName, filter: filter)) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupProtectedItemData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // List protectable items with backupManagementType filter as AzureStorage + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetProtectableContainers_ListProtectableItemsWithBackupManagementTypeFilterAsAzureStorage() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureStorage/ProtectableContainers_List.json + // this example is just showing the usage of "ProtectableContainers_List" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "testRg"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // invoke the operation and iterate over the result + string vaultName = "testvault"; + string fabricName = "Azure"; + string filter = "backupManagementType eq 'AzureStorage' and workloadType eq 'AzureFileShare'"; + await foreach (ProtectableContainerResource item in resourceGroupResource.GetProtectableContainersAsync(vaultName, fabricName, filter: filter)) + { + Console.WriteLine($"Succeeded: {item}"); + } + + Console.WriteLine($"Succeeded"); + } + + // List protectable items with backupManagementType filter as AzureIaasVm + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetBackupProtectableItems_ListProtectableItemsWithBackupManagementTypeFilterAsAzureIaasVm() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/BackupProtectableItems_List.json + // this example is just showing the usage of "BackupProtectableItems_List" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "SwaggerTestRg"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // invoke the operation and iterate over the result + string vaultName = "NetSDKTestRsVault"; + string filter = "backupManagementType eq 'AzureIaasVM'"; + await foreach (WorkloadProtectableItemResource item in resourceGroupResource.GetBackupProtectableItemsAsync(vaultName, filter: filter)) + { + Console.WriteLine($"Succeeded: {item}"); + } + + Console.WriteLine($"Succeeded"); + } + + // List Backup Protection Containers + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetBackupProtectionContainers_ListBackupProtectionContainers() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureStorage/ProtectionContainers_List.json + // this example is just showing the usage of "BackupProtectionContainers_List" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "testRg"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // invoke the operation and iterate over the result + string vaultName = "testVault"; + string filter = "backupManagementType eq 'AzureWorkload'"; + await foreach (BackupProtectionContainerResource item in resourceGroupResource.GetBackupProtectionContainersAsync(vaultName, filter: filter)) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupProtectionContainerData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // List Backup Protection Containers + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetSoftDeletedProtectionContainers_ListBackupProtectionContainers() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureStorage/SoftDeletedContainers_List.json + // this example is just showing the usage of "DeletedProtectionContainers_List" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "testRg"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // invoke the operation and iterate over the result + string vaultName = "testVault"; + string filter = "backupManagementType eq 'AzureWorkload'"; + await foreach (BackupProtectionContainerResource item in resourceGroupResource.GetSoftDeletedProtectionContainersAsync(vaultName, filter: filter)) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + BackupProtectionContainerData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // Get Vault Security Pin + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetSecurityPin_GetVaultSecurityPin() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/BackupSecurityPin_Get.json + // this example is just showing the usage of "SecurityPINs_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "SwaggerTestRg"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // invoke the operation + string vaultName = "SwaggerTest"; + TokenInformation result = await resourceGroupResource.GetSecurityPinAsync(vaultName); + + Console.WriteLine($"Succeeded: {result}"); + } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ResourceGuardProxyCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ResourceGuardProxyCollection.cs new file mode 100644 index 0000000000000..ce93f34c5b356 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ResourceGuardProxyCollection.cs @@ -0,0 +1,168 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.RecoveryServicesBackup; +using Azure.ResourceManager.RecoveryServicesBackup.Models; +using Azure.ResourceManager.Resources; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Samples +{ + public partial class Sample_ResourceGuardProxyCollection + { + // Get VaultGuardProxies + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetAll_GetVaultGuardProxies() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/ResourceGuardProxyCRUD/ListResourceGuardProxy.json + // this example is just showing the usage of "ResourceGuardProxy_List" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "0b352192-dcac-4cc7-992e-a96190ccc68c"; + string resourceGroupName = "SampleResourceGroup"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this ResourceGuardProxyResource + string vaultName = "sampleVault"; + ResourceGuardProxyCollection collection = resourceGroupResource.GetResourceGuardProxies(vaultName); + + // invoke the operation and iterate over the result + await foreach (ResourceGuardProxyResource item in collection.GetAllAsync()) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + ResourceGuardProxyData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // Get ResourceGuardProxy + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetResourceGuardProxy() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/ResourceGuardProxyCRUD/GetResourceGuardProxy.json + // this example is just showing the usage of "ResourceGuardProxy_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "0b352192-dcac-4cc7-992e-a96190ccc68c"; + string resourceGroupName = "SampleResourceGroup"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this ResourceGuardProxyResource + string vaultName = "sampleVault"; + ResourceGuardProxyCollection collection = resourceGroupResource.GetResourceGuardProxies(vaultName); + + // invoke the operation + string resourceGuardProxyName = "swaggerExample"; + ResourceGuardProxyResource result = await collection.GetAsync(resourceGuardProxyName); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + ResourceGuardProxyData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Get ResourceGuardProxy + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_GetResourceGuardProxy() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/ResourceGuardProxyCRUD/GetResourceGuardProxy.json + // this example is just showing the usage of "ResourceGuardProxy_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "0b352192-dcac-4cc7-992e-a96190ccc68c"; + string resourceGroupName = "SampleResourceGroup"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this ResourceGuardProxyResource + string vaultName = "sampleVault"; + ResourceGuardProxyCollection collection = resourceGroupResource.GetResourceGuardProxies(vaultName); + + // invoke the operation + string resourceGuardProxyName = "swaggerExample"; + bool result = await collection.ExistsAsync(resourceGuardProxyName); + + Console.WriteLine($"Succeeded: {result}"); + } + + // Create ResourceGuardProxy + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_CreateResourceGuardProxy() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/ResourceGuardProxyCRUD/PutResourceGuardProxy.json + // this example is just showing the usage of "ResourceGuardProxy_Put" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "0b352192-dcac-4cc7-992e-a96190ccc68c"; + string resourceGroupName = "SampleResourceGroup"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this ResourceGuardProxyResource + string vaultName = "sampleVault"; + ResourceGuardProxyCollection collection = resourceGroupResource.GetResourceGuardProxies(vaultName); + + // invoke the operation + string resourceGuardProxyName = "swaggerExample"; + ResourceGuardProxyData data = new ResourceGuardProxyData(new AzureLocation("placeholder")) + { + Properties = new ResourceGuardProxyProperties() + { + ResourceGuardResourceId = new ResourceIdentifier("/subscriptions/c999d45b-944f-418c-a0d8-c3fcfd1802c8/resourceGroups/vaultguardRGNew/providers/Microsoft.DataProtection/resourceGuards/VaultGuardTestNew"), + }, + }; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, resourceGuardProxyName, data); + ResourceGuardProxyResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + ResourceGuardProxyData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ResourceGuardProxyResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ResourceGuardProxyResource.cs new file mode 100644 index 0000000000000..7b56fd6f61540 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ResourceGuardProxyResource.cs @@ -0,0 +1,157 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.RecoveryServicesBackup; +using Azure.ResourceManager.RecoveryServicesBackup.Models; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Samples +{ + public partial class Sample_ResourceGuardProxyResource + { + // Get ResourceGuardProxy + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetResourceGuardProxy() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/ResourceGuardProxyCRUD/GetResourceGuardProxy.json + // this example is just showing the usage of "ResourceGuardProxy_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGuardProxyResource created on azure + // for more information of creating ResourceGuardProxyResource, please refer to the document of ResourceGuardProxyResource + string subscriptionId = "0b352192-dcac-4cc7-992e-a96190ccc68c"; + string resourceGroupName = "SampleResourceGroup"; + string vaultName = "sampleVault"; + string resourceGuardProxyName = "swaggerExample"; + ResourceIdentifier resourceGuardProxyResourceId = ResourceGuardProxyResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, resourceGuardProxyName); + ResourceGuardProxyResource resourceGuardProxy = client.GetResourceGuardProxyResource(resourceGuardProxyResourceId); + + // invoke the operation + ResourceGuardProxyResource result = await resourceGuardProxy.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + ResourceGuardProxyData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Create ResourceGuardProxy + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Update_CreateResourceGuardProxy() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/ResourceGuardProxyCRUD/PutResourceGuardProxy.json + // this example is just showing the usage of "ResourceGuardProxy_Put" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGuardProxyResource created on azure + // for more information of creating ResourceGuardProxyResource, please refer to the document of ResourceGuardProxyResource + string subscriptionId = "0b352192-dcac-4cc7-992e-a96190ccc68c"; + string resourceGroupName = "SampleResourceGroup"; + string vaultName = "sampleVault"; + string resourceGuardProxyName = "swaggerExample"; + ResourceIdentifier resourceGuardProxyResourceId = ResourceGuardProxyResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, resourceGuardProxyName); + ResourceGuardProxyResource resourceGuardProxy = client.GetResourceGuardProxyResource(resourceGuardProxyResourceId); + + // invoke the operation + ResourceGuardProxyData data = new ResourceGuardProxyData(new AzureLocation("placeholder")) + { + Properties = new ResourceGuardProxyProperties() + { + ResourceGuardResourceId = new ResourceIdentifier("/subscriptions/c999d45b-944f-418c-a0d8-c3fcfd1802c8/resourceGroups/vaultguardRGNew/providers/Microsoft.DataProtection/resourceGuards/VaultGuardTestNew"), + }, + }; + ArmOperation lro = await resourceGuardProxy.UpdateAsync(WaitUntil.Completed, data); + ResourceGuardProxyResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + ResourceGuardProxyData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Delete ResourceGuardProxy + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Delete_DeleteResourceGuardProxy() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/ResourceGuardProxyCRUD/DeleteResourceGuardProxy.json + // this example is just showing the usage of "ResourceGuardProxy_Delete" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGuardProxyResource created on azure + // for more information of creating ResourceGuardProxyResource, please refer to the document of ResourceGuardProxyResource + string subscriptionId = "0b352192-dcac-4cc7-992e-a96190ccc68c"; + string resourceGroupName = "SampleResourceGroup"; + string vaultName = "sampleVault"; + string resourceGuardProxyName = "swaggerExample"; + ResourceIdentifier resourceGuardProxyResourceId = ResourceGuardProxyResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, resourceGuardProxyName); + ResourceGuardProxyResource resourceGuardProxy = client.GetResourceGuardProxyResource(resourceGuardProxyResourceId); + + // invoke the operation + await resourceGuardProxy.DeleteAsync(WaitUntil.Completed); + + Console.WriteLine($"Succeeded"); + } + + // UnlockDelete ResourceGuardProxy + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task UnlockDelete_UnlockDeleteResourceGuardProxy() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/ResourceGuardProxyCRUD/UnlockDeleteResourceGuardProxy.json + // this example is just showing the usage of "ResourceGuardProxy_UnlockDelete" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGuardProxyResource created on azure + // for more information of creating ResourceGuardProxyResource, please refer to the document of ResourceGuardProxyResource + string subscriptionId = "0b352192-dcac-4cc7-992e-a96190ccc68c"; + string resourceGroupName = "SampleResourceGroup"; + string vaultName = "sampleVault"; + string resourceGuardProxyName = "swaggerExample"; + ResourceIdentifier resourceGuardProxyResourceId = ResourceGuardProxyResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, resourceGuardProxyName); + ResourceGuardProxyResource resourceGuardProxy = client.GetResourceGuardProxyResource(resourceGuardProxyResourceId); + + // invoke the operation + UnlockDeleteContent content = new UnlockDeleteContent() + { + ResourceGuardOperationRequests = +{ +"/subscriptions/c999d45b-944f-418c-a0d8-c3fcfd1802c8/resourceGroups/vaultguardRGNew/providers/Microsoft.DataProtection/resourceGuards/VaultGuardTestNew/deleteProtectedItemRequests/default" +}, + ResourceToBeDeleted = "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/gaallarg/providers/Microsoft.RecoveryServices/vaults/MercuryCrrVault/backupFabrics/Azure/protectionContainers/VMAppContainer;compute;crrtestrg;crrtestvm/protectedItems/SQLDataBase;mssqlserver;testdb", + }; + UnlockDeleteResult result = await resourceGuardProxy.UnlockDeleteAsync(content); + + Console.WriteLine($"Succeeded: {result}"); + } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs new file mode 100644 index 0000000000000..42dd2dd4eca13 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs @@ -0,0 +1,83 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.RecoveryServicesBackup; +using Azure.ResourceManager.RecoveryServicesBackup.Models; +using Azure.ResourceManager.Resources; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Samples +{ + public partial class Sample_SubscriptionResourceExtensions + { + // Get Azure Virtual Machine Backup Status + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetBackupStatus_GetAzureVirtualMachineBackupStatus() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/GetBackupStatus.json + // this example is just showing the usage of "BackupStatus_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SubscriptionResource created on azure + // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId); + SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId); + + // invoke the operation + AzureLocation location = new AzureLocation("southeastasia"); + BackupStatusContent content = new BackupStatusContent() + { + ResourceType = BackupDataSourceType.Vm, + ResourceId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Compute/VirtualMachines/testVm"), + }; + BackupStatusResult result = await subscriptionResource.GetBackupStatusAsync(location, content); + + Console.WriteLine($"Succeeded: {result}"); + } + + // Check Azure Vm Backup Feature Support + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task ValidateFeatureSupport_CheckAzureVmBackupFeatureSupport() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/BackupFeature_Validate.json + // this example is just showing the usage of "FeatureSupport_Validate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SubscriptionResource created on azure + // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId); + SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId); + + // invoke the operation + AzureLocation location = new AzureLocation("southeastasia"); + FeatureSupportContent content = new VmResourceFeatureSupportContent() + { + VmSize = "Basic_A0", + VmSku = "Premium", + }; + VmResourceFeatureSupportResult result = await subscriptionResource.ValidateFeatureSupportAsync(location, content); + + Console.WriteLine($"Succeeded: {result}"); + } + } +} From 7030bf3c10458a268be4e79270edef5eb2a1bd9f Mon Sep 17 00:00:00 2001 From: Arthur Ma Date: Tue, 21 Feb 2023 18:01:51 +0800 Subject: [PATCH 40/72] Update the Mgmt. template (#34405) --- .../.template.config/template.json | 3 ++- .../Azure.ResourceManager.Template.sln | 14 ++++++++++++++ .../Azure.ResourceManager.Template.Samples.csproj | 10 ++++++++++ .../{tests => samples}/autorest.tests.md | 0 4 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 eng/templates/Azure.ResourceManager.Template/samples/Azure.ResourceManager.Template.Samples.csproj rename eng/templates/Azure.ResourceManager.Template/{tests => samples}/autorest.tests.md (100%) diff --git a/eng/templates/Azure.ResourceManager.Template/.template.config/template.json b/eng/templates/Azure.ResourceManager.Template/.template.config/template.json index 2645f9b2a0271..94d5c03086dac 100644 --- a/eng/templates/Azure.ResourceManager.Template/.template.config/template.json +++ b/eng/templates/Azure.ResourceManager.Template/.template.config/template.json @@ -17,7 +17,8 @@ "227B2010-BBFC-46F8-84BB-236E9F3A0176", "3123B983-4452-4B29-8E9A-849867BEC1E6", "61FB8E18-94E3-4A8F-B6B3-E765F85000F5", - "11EAD7A0-B5E6-4145-B1F1-37A2D9091E07" + "11EAD7A0-B5E6-4145-B1F1-37A2D9091E07", + "18F152D5-2ECB-43E8-ADFC-EC3EA3F68843" ], "sources": [ { diff --git a/eng/templates/Azure.ResourceManager.Template/Azure.ResourceManager.Template.sln b/eng/templates/Azure.ResourceManager.Template/Azure.ResourceManager.Template.sln index 8ee44a85b44c3..a02b47b80dd7d 100644 --- a/eng/templates/Azure.ResourceManager.Template/Azure.ResourceManager.Template.sln +++ b/eng/templates/Azure.ResourceManager.Template/Azure.ResourceManager.Template.sln @@ -7,6 +7,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.ResourceManager.Templ EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.ResourceManager.Template.Tests", "tests\Azure.ResourceManager.Template.Tests.csproj", "{11EAD7A0-B5E6-4145-B1F1-37A2D9091E07}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.ResourceManager.Template.Samples", "samples\Azure.ResourceManager.Template.Samples.csproj", "{18F152D5-2ECB-43E8-ADFC-EC3EA3F68843}" +EndProject Global GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -47,5 +49,17 @@ Global {11EAD7A0-B5E6-4145-B1F1-37A2D9091E07}.Release|x64.Build.0 = Release|Any CPU {11EAD7A0-B5E6-4145-B1F1-37A2D9091E07}.Release|x86.ActiveCfg = Release|Any CPU {11EAD7A0-B5E6-4145-B1F1-37A2D9091E07}.Release|x86.Build.0 = Release|Any CPU + {18F152D5-2ECB-43E8-ADFC-EC3EA3F68843}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {18F152D5-2ECB-43E8-ADFC-EC3EA3F68843}.Debug|Any CPU.Build.0 = Debug|Any CPU + {18F152D5-2ECB-43E8-ADFC-EC3EA3F68843}.Debug|x64.ActiveCfg = Debug|Any CPU + {18F152D5-2ECB-43E8-ADFC-EC3EA3F68843}.Debug|x64.Build.0 = Debug|Any CPU + {18F152D5-2ECB-43E8-ADFC-EC3EA3F68843}.Debug|x86.ActiveCfg = Debug|Any CPU + {18F152D5-2ECB-43E8-ADFC-EC3EA3F68843}.Debug|x86.Build.0 = Debug|Any CPU + {18F152D5-2ECB-43E8-ADFC-EC3EA3F68843}.Release|Any CPU.ActiveCfg = Release|Any CPU + {18F152D5-2ECB-43E8-ADFC-EC3EA3F68843}.Release|Any CPU.Build.0 = Release|Any CPU + {18F152D5-2ECB-43E8-ADFC-EC3EA3F68843}.Release|x64.ActiveCfg = Release|Any CPU + {18F152D5-2ECB-43E8-ADFC-EC3EA3F68843}.Release|x64.Build.0 = Release|Any CPU + {18F152D5-2ECB-43E8-ADFC-EC3EA3F68843}.Release|x86.ActiveCfg = Release|Any CPU + {18F152D5-2ECB-43E8-ADFC-EC3EA3F68843}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection EndGlobal diff --git a/eng/templates/Azure.ResourceManager.Template/samples/Azure.ResourceManager.Template.Samples.csproj b/eng/templates/Azure.ResourceManager.Template/samples/Azure.ResourceManager.Template.Samples.csproj new file mode 100644 index 0000000000000..67f0743e2e4a8 --- /dev/null +++ b/eng/templates/Azure.ResourceManager.Template/samples/Azure.ResourceManager.Template.Samples.csproj @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/eng/templates/Azure.ResourceManager.Template/tests/autorest.tests.md b/eng/templates/Azure.ResourceManager.Template/samples/autorest.tests.md similarity index 100% rename from eng/templates/Azure.ResourceManager.Template/tests/autorest.tests.md rename to eng/templates/Azure.ResourceManager.Template/samples/autorest.tests.md From 848815e18473f9d68022ba4f129a8319368ee5b1 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Tue, 21 Feb 2023 05:02:46 -0500 Subject: [PATCH 41/72] Increment version for monitor releases (#34401) Increment package version after release of Azure.ResourceManager.Monitor --- sdk/monitor/Azure.ResourceManager.Monitor/CHANGELOG.md | 10 ++++++++++ .../src/Azure.ResourceManager.Monitor.csproj | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/CHANGELOG.md b/sdk/monitor/Azure.ResourceManager.Monitor/CHANGELOG.md index 20a7be1c2d27c..18c8e507c0dd3 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/CHANGELOG.md +++ b/sdk/monitor/Azure.ResourceManager.Monitor/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.1.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.0.1 (2023-02-21) ### Other Changes diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Azure.ResourceManager.Monitor.csproj b/sdk/monitor/Azure.ResourceManager.Monitor/src/Azure.ResourceManager.Monitor.csproj index 5e727a7ffca42..d065f09dff095 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Azure.ResourceManager.Monitor.csproj +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Azure.ResourceManager.Monitor.csproj @@ -1,8 +1,8 @@ - 1.0.1 + 1.1.0-beta.1 - 1.0.0 + 1.0.1 Azure.ResourceManager.Monitor Microsoft Azure Resource Manager client SDK for Azure resource provider Microsoft.Insights. azure;management;arm;resource manager;monitor From 3bfd7ba3dc94af7e4d2aba8a6a4661c0b6729c66 Mon Sep 17 00:00:00 2001 From: Feng Zhou <55177366+fengzhou-msft@users.noreply.github.com> Date: Tue, 21 Feb 2023 18:41:30 +0800 Subject: [PATCH 42/72] [ContainerService] Bump version to preview-2022-11 (#34377) --- .vscode/cspell.json | 7 +- .../CHANGELOG.md | 11 +- ...Azure.ResourceManager.AppContainers.csproj | 2 +- .../CHANGELOG.md | 11 +- ...Manager.ContainerService.netstandard2.0.cs | 724 ++++++- .../ContainerServiceAgentPoolResource.cs | 59 +- .../ContainerServiceManagedClusterData.cs | 14 + .../ContainerServiceManagedClusterResource.cs | 59 +- .../ContainerServiceMaintenanceWindow.cs | 17 + .../Models/ManagedClusterSecurityProfile.cs | 39 + .../Models/ManagedClusterStorageProfile.cs | 4 + ...ManagedClusterWorkloadAutoScalerProfile.cs | 24 + .../src/Generated/AgentPoolSnapshotData.cs | 4 +- .../ContainerServiceAgentPoolData.cs | 46 +- .../ContainerServiceAgentPoolResource.cs | 68 + .../ContainerServiceFleetCollection.cs | 345 ++++ .../Generated/ContainerServiceFleetData.cs | 49 + .../ContainerServiceFleetMemberCollection.cs | 344 ++++ .../ContainerServiceFleetMemberData.cs | 45 + .../ContainerServiceFleetMemberResource.cs | 303 +++ .../ContainerServiceFleetResource.cs | 719 +++++++ ...inerServiceMaintenanceConfigurationData.cs | 6 +- .../ContainerServiceManagedClusterData.cs | 104 +- .../ContainerServiceManagedClusterResource.cs | 121 ++ ...rviceTrustedAccessRoleBindingCollection.cs | 340 ++++ ...inerServiceTrustedAccessRoleBindingData.cs | 55 + ...ServiceTrustedAccessRoleBindingResource.cs | 297 +++ .../Extensions/ContainerServiceExtensions.cs | 317 +++ .../ResourceGroupResourceExtensionClient.cs | 14 + .../SubscriptionResourceExtensionClient.cs | 147 ++ ...tainerServiceFleetMemberOperationSource.cs | 40 + .../ContainerServiceFleetOperationSource.cs | 40 + .../ManagedClusterSnapshotCollection.cs | 341 ++++ .../Generated/ManagedClusterSnapshotData.cs | 60 + .../ManagedClusterSnapshotResource.cs | 602 ++++++ .../Models/AgentPoolNetworkPortProtocol.cs | 51 + ...AgentPoolNetworkPortRange.Serialization.cs | 77 + .../Models/AgentPoolNetworkPortRange.cs | 36 + .../AgentPoolNetworkProfile.Serialization.cs | 108 + .../Models/AgentPoolNetworkProfile.cs | 42 + .../AgentPoolWindowsProfile.Serialization.cs | 45 + .../Models/AgentPoolWindowsProfile.cs | 28 + ...ainerServiceAgentPoolData.Serialization.cs | 77 +- .../ContainerServiceDateSpan.Serialization.cs | 46 + .../Models/ContainerServiceDateSpan.cs | 29 + ...viceFleetCredentialResult.Serialization.cs | 41 + .../ContainerServiceFleetCredentialResult.cs | 34 + ...iceFleetCredentialResults.Serialization.cs | 40 + .../ContainerServiceFleetCredentialResults.cs | 32 + ...ContainerServiceFleetData.Serialization.cs | 150 ++ ...nerServiceFleetHubProfile.Serialization.cs | 52 + .../Models/ContainerServiceFleetHubProfile.cs | 36 + ...nerServiceFleetMemberData.Serialization.cs | 114 ++ ...inerServiceFleetMemberProvisioningState.cs | 63 + ...ontainerServiceFleetPatch.Serialization.cs | 32 + .../Models/ContainerServiceFleetPatch.cs | 25 + .../ContainerServiceFleetProvisioningState.cs | 63 + .../ContainerServiceIPTag.Serialization.cs | 51 + .../Generated/Models/ContainerServiceIPTag.cs | 32 + ...ceAbsoluteMonthlySchedule.Serialization.cs | 45 + ...rviceMaintenanceAbsoluteMonthlySchedule.cs | 27 + ...ntenanceConfigurationData.Serialization.cs | 18 +- ...ceRelativeMonthlySchedule.Serialization.cs | 53 + ...rviceMaintenanceRelativeMonthlySchedule.cs | 31 + ...tenanceRelativeMonthlyScheduleWeekIndex.cs | 60 + ...erviceMaintenanceSchedule.Serialization.cs | 93 + .../ContainerServiceMaintenanceSchedule.cs | 50 + ...MaintenanceWeeklySchedule.Serialization.cs | 45 + ...ntainerServiceMaintenanceWeeklySchedule.cs | 27 + ...rServiceMaintenanceWindow.Serialization.cs | 102 + .../ContainerServiceMaintenanceWindow.cs | 61 + ...ServiceManagedClusterData.Serialization.cs | 114 +- .../Models/ContainerServiceNetworkPlugin.cs | 2 +- .../ContainerServiceNetworkPluginMode.cs | 48 + ...inerServiceNetworkProfile.Serialization.cs | 50 +- .../Models/ContainerServiceNetworkProfile.cs | 14 +- ...NetworkProfileForSnapshot.Serialization.cs | 78 + ...ntainerServiceNetworkProfileForSnapshot.cs | 44 + ...orkProfileKubeProxyConfig.Serialization.cs | 77 + ...nerServiceNetworkProfileKubeProxyConfig.cs | 36 + ...rofileKubeProxyIPVSConfig.Serialization.cs | 93 + ...erviceNetworkProfileKubeProxyIPVSConfig.cs | 40 + ...iceNetworkProfileKubeProxyIPVSScheduler.cs | 51 + ...ainerServiceNetworkProfileKubeProxyMode.cs | 51 + .../Generated/Models/ContainerServiceOSSku.cs | 5 +- ...vateEndpointConnectionProvisioningState.cs | 9 +- .../ContainerServicePublicNetworkAccess.cs | 7 +- ...rServiceTrustedAccessRole.Serialization.cs | 52 + .../ContainerServiceTrustedAccessRole.cs | 40 + ...stedAccessRoleBindingData.Serialization.cs | 113 ++ ...ustedAccessRoleBindingProvisioningState.cs | 60 + ...viceTrustedAccessRoleRule.Serialization.cs | 104 + .../ContainerServiceTrustedAccessRoleRule.cs | 52 + .../Models/DailySchedule.Serialization.cs | 37 + .../src/Generated/Models/DailySchedule.cs | 23 + .../src/Generated/Models/EbpfDataplane.cs | 48 + .../Models/FleetListResult.Serialization.cs | 47 + .../src/Generated/Models/FleetListResult.cs | 37 + .../FleetMembersListResult.Serialization.cs | 47 + .../Models/FleetMembersListResult.cs | 37 + .../src/Generated/Models/KubeConfigFormat.cs | 2 +- ...edClusterAgentPoolProfile.Serialization.cs | 77 +- .../Models/ManagedClusterAgentPoolProfile.cs | 13 +- ...gentPoolProfileProperties.Serialization.cs | 77 +- ...anagedClusterAgentPoolProfileProperties.cs | 46 +- ...terApiServerAccessProfile.Serialization.cs | 34 +- .../ManagedClusterApiServerAccessProfile.cs | 10 +- ...ClusterAutoUpgradeProfile.Serialization.cs | 20 +- .../ManagedClusterAutoUpgradeProfile.cs | 8 +- ...lusterAzureMonitorProfile.Serialization.cs | 45 + .../ManagedClusterAzureMonitorProfile.cs | 28 + ...dClusterGuardrailsProfile.Serialization.cs | 88 + .../Models/ManagedClusterGuardrailsProfile.cs | 53 + .../ManagedClusterGuardrailsProfileLevel.cs | 54 + ...gedClusterHttpProxyConfig.Serialization.cs | 18 +- .../Models/ManagedClusterHttpProxyConfig.cs | 7 +- ...agedClusterIngressProfile.Serialization.cs | 45 + .../Models/ManagedClusterIngressProfile.cs | 28 + ...gressProfileWebAppRouting.Serialization.cs | 61 + ...nagedClusterIngressProfileWebAppRouting.cs | 34 + ...nagedClusterLoadBalancerBackendPoolType.cs | 51 + ...lusterLoadBalancerProfile.Serialization.cs | 18 +- .../ManagedClusterLoadBalancerProfile.cs | 6 +- ...orProfileKubeStateMetrics.Serialization.cs | 51 + ...edClusterMonitorProfileKubeStateMetrics.cs | 32 + ...sterMonitorProfileMetrics.Serialization.cs | 53 + .../ManagedClusterMonitorProfileMetrics.cs | 34 + .../ManagedClusterNodeOSUpgradeChannel.cs | 57 + ...rNodeResourceGroupProfile.Serialization.cs | 45 + .../ManagedClusterNodeResourceGroupProfile.cs | 28 + ...lusterNodeResourceGroupRestrictionLevel.cs | 51 + ...dClusterOidcIssuerProfile.Serialization.cs | 6 +- ...agedClusterPodIdentityProvisioningState.cs | 12 +- ...sterPropertiesForSnapshot.Serialization.cs | 62 + .../ManagedClusterPropertiesForSnapshot.cs | 40 + ...gedClusterSecurityProfile.Serialization.cs | 78 +- .../Models/ManagedClusterSecurityProfile.cs | 25 +- ...curityProfileImageCleaner.Serialization.cs | 61 + ...nagedClusterSecurityProfileImageCleaner.cs | 32 + ...ityProfileNodeRestriction.Serialization.cs | 45 + ...edClusterSecurityProfileNodeRestriction.cs | 28 + ...tyProfileWorkloadIdentity.Serialization.cs | 45 + ...dClusterSecurityProfileWorkloadIdentity.cs | 28 + ...anagedClusterSnapshotData.Serialization.cs | 154 ++ ...ClusterSnapshotListResult.Serialization.cs | 47 + .../ManagedClusterSnapshotListResult.cs | 37 + .../Models/ManagedClusterStorageProfile.cs | 3 +- ...orageProfileDiskCsiDriver.Serialization.cs | 15 +- ...nagedClusterStorageProfileDiskCsiDriver.cs | 8 +- ...sterVerticalPodAutoscaler.Serialization.cs | 53 + .../ManagedClusterVerticalPodAutoscaler.cs | 31 + ...dClusterVerticalPodAutoscalerUpdateMode.cs | 57 + ...lusterWorkloadAutoScalerControlledValue.cs | 51 + ...WorkloadAutoScalerProfile.Serialization.cs | 61 + ...ManagedClusterWorkloadAutoScalerProfile.cs | 33 + ...loadAutoScalerProfileKeda.Serialization.cs | 37 + ...gedClusterWorkloadAutoScalerProfileKeda.cs | 23 + .../src/Generated/Models/SnapshotType.cs | 3 + ...cessRoleBindingListResult.Serialization.cs | 47 + .../TrustedAccessRoleBindingListResult.cs | 37 + ...ustedAccessRoleListResult.Serialization.cs | 46 + .../Models/TrustedAccessRoleListResult.cs | 36 + .../src/Generated/Models/UpgradeChannel.cs | 2 +- .../src/Generated/Models/WorkloadRuntime.cs | 3 + .../AgentPoolsRestOperations.cs | 95 +- .../FleetMembersRestOperations.cs | 463 +++++ .../RestOperations/FleetsRestOperations.cs | 741 +++++++ ...MaintenanceConfigurationsRestOperations.cs | 2 +- .../ManagedClusterSnapshotsRestOperations.cs | 646 ++++++ .../ManagedClustersRestOperations.cs | 89 +- ...rivateEndpointConnectionsRestOperations.cs | 2 +- .../PrivateLinkResourcesRestOperations.cs | 2 +- ...solvePrivateLinkServiceIdRestOperations.cs | 2 +- .../RestOperations/SnapshotsRestOperations.cs | 2 +- ...TrustedAccessRoleBindingsRestOperations.cs | 451 +++++ .../TrustedAccessRolesRestOperations.cs | 181 ++ .../src/autorest.md | 57 +- .../CreateListGetDelete().json | 1199 +++++------ .../CreateListGetDelete()Async.json | 1117 +++++------ .../GetCredentials().json | 1352 ++++++------- .../GetCredentials()Async.json | 1082 +++++----- .../Update().json | 1747 ++++++++--------- .../Update()Async.json | 1650 ++++++++-------- 183 files changed, 17432 insertions(+), 4578 deletions(-) create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Custom/Models/ContainerServiceMaintenanceWindow.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Custom/Models/ManagedClusterSecurityProfile.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Custom/Models/ManagedClusterWorkloadAutoScalerProfile.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceFleetCollection.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceFleetData.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceFleetMemberCollection.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceFleetMemberData.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceFleetMemberResource.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceFleetResource.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceTrustedAccessRoleBindingCollection.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceTrustedAccessRoleBindingData.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceTrustedAccessRoleBindingResource.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/LongRunningOperation/ContainerServiceFleetMemberOperationSource.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/LongRunningOperation/ContainerServiceFleetOperationSource.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ManagedClusterSnapshotCollection.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ManagedClusterSnapshotData.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ManagedClusterSnapshotResource.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/AgentPoolNetworkPortProtocol.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/AgentPoolNetworkPortRange.Serialization.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/AgentPoolNetworkPortRange.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/AgentPoolNetworkProfile.Serialization.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/AgentPoolNetworkProfile.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/AgentPoolWindowsProfile.Serialization.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/AgentPoolWindowsProfile.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceDateSpan.Serialization.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceDateSpan.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceFleetCredentialResult.Serialization.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceFleetCredentialResult.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceFleetCredentialResults.Serialization.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceFleetCredentialResults.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceFleetData.Serialization.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceFleetHubProfile.Serialization.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceFleetHubProfile.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceFleetMemberData.Serialization.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceFleetMemberProvisioningState.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceFleetPatch.Serialization.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceFleetPatch.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceFleetProvisioningState.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceIPTag.Serialization.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceIPTag.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceAbsoluteMonthlySchedule.Serialization.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceAbsoluteMonthlySchedule.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceRelativeMonthlySchedule.Serialization.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceRelativeMonthlySchedule.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceRelativeMonthlyScheduleWeekIndex.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceSchedule.Serialization.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceSchedule.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceWeeklySchedule.Serialization.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceWeeklySchedule.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceWindow.Serialization.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceWindow.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceNetworkPluginMode.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceNetworkProfileForSnapshot.Serialization.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceNetworkProfileForSnapshot.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceNetworkProfileKubeProxyConfig.Serialization.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceNetworkProfileKubeProxyConfig.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceNetworkProfileKubeProxyIPVSConfig.Serialization.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceNetworkProfileKubeProxyIPVSConfig.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceNetworkProfileKubeProxyIPVSScheduler.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceNetworkProfileKubeProxyMode.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceTrustedAccessRole.Serialization.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceTrustedAccessRole.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceTrustedAccessRoleBindingData.Serialization.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceTrustedAccessRoleBindingProvisioningState.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceTrustedAccessRoleRule.Serialization.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceTrustedAccessRoleRule.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/DailySchedule.Serialization.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/DailySchedule.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/EbpfDataplane.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/FleetListResult.Serialization.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/FleetListResult.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/FleetMembersListResult.Serialization.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/FleetMembersListResult.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterAzureMonitorProfile.Serialization.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterAzureMonitorProfile.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterGuardrailsProfile.Serialization.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterGuardrailsProfile.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterGuardrailsProfileLevel.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterIngressProfile.Serialization.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterIngressProfile.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterIngressProfileWebAppRouting.Serialization.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterIngressProfileWebAppRouting.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerBackendPoolType.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterMonitorProfileKubeStateMetrics.Serialization.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterMonitorProfileKubeStateMetrics.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterMonitorProfileMetrics.Serialization.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterMonitorProfileMetrics.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterNodeOSUpgradeChannel.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterNodeResourceGroupProfile.Serialization.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterNodeResourceGroupProfile.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterNodeResourceGroupRestrictionLevel.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterPropertiesForSnapshot.Serialization.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterPropertiesForSnapshot.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterSecurityProfileImageCleaner.Serialization.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterSecurityProfileImageCleaner.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterSecurityProfileNodeRestriction.Serialization.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterSecurityProfileNodeRestriction.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterSecurityProfileWorkloadIdentity.Serialization.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterSecurityProfileWorkloadIdentity.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterSnapshotData.Serialization.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterSnapshotListResult.Serialization.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterSnapshotListResult.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterVerticalPodAutoscaler.Serialization.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterVerticalPodAutoscaler.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterVerticalPodAutoscalerUpdateMode.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterWorkloadAutoScalerControlledValue.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterWorkloadAutoScalerProfile.Serialization.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterWorkloadAutoScalerProfile.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterWorkloadAutoScalerProfileKeda.Serialization.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterWorkloadAutoScalerProfileKeda.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/TrustedAccessRoleBindingListResult.Serialization.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/TrustedAccessRoleBindingListResult.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/TrustedAccessRoleListResult.Serialization.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/TrustedAccessRoleListResult.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/FleetMembersRestOperations.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/FleetsRestOperations.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/ManagedClusterSnapshotsRestOperations.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/TrustedAccessRoleBindingsRestOperations.cs create mode 100644 sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/TrustedAccessRolesRestOperations.cs diff --git a/.vscode/cspell.json b/.vscode/cspell.json index eaabd6ad56e35..a6eec99a62b03 100644 --- a/.vscode/cspell.json +++ b/.vscode/cspell.json @@ -263,7 +263,12 @@ "tcpkeepalive", "wasi", "wmem", - "Oidc" + "Oidc", + "Ebpf", + "Ipvs", + "Keda", + "Kata", + "Mshv" ] }, { diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/CHANGELOG.md b/sdk/containerapps/Azure.ResourceManager.AppContainers/CHANGELOG.md index 22174838efa98..6d2b435fe8a8a 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/CHANGELOG.md +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/CHANGELOG.md @@ -1,15 +1,12 @@ # Release History -## 1.1.0-beta.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed +## 1.0.2 (2023-02-21) ### Other Changes +- Upgraded dependent `Azure.Core` to `1.28.0`. +- Upgraded dependent `Azure.ResourceManager` to `1.4.0`. + ## 1.0.1 (2022-12-27) ### Bugs Fixed diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Azure.ResourceManager.AppContainers.csproj b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Azure.ResourceManager.AppContainers.csproj index 53af2964161d2..063a1e993abbd 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Azure.ResourceManager.AppContainers.csproj +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Azure.ResourceManager.AppContainers.csproj @@ -1,6 +1,6 @@ - 1.1.0-beta.1 + 1.0.2 1.0.1 Azure.ResourceManager.AppContainers diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/CHANGELOG.md b/sdk/containerservice/Azure.ResourceManager.ContainerService/CHANGELOG.md index cff3e45a36331..65d7f27ffea18 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/CHANGELOG.md +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/CHANGELOG.md @@ -1,15 +1,18 @@ # Release History -## 1.2.0-beta.1 (Unreleased) +## 1.2.0-beta.1 (2023-02-21) ### Features Added -### Breaking Changes - -### Bugs Fixed +- Added support for fleet resources. +- Added support for managed cluster snapshot, trusted access role binding. ### Other Changes +- Upgraded managed clusters API version to `2022-11-02-preview`. +- Upgraded dependent `Azure.Core` to `1.28.0`. +- Upgraded dependent `Azure.ResourceManager` to `1.4.0`. + ## 1.1.0 (2022-12-14) ### Other Changes diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/api/Azure.ResourceManager.ContainerService.netstandard2.0.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/api/Azure.ResourceManager.ContainerService.netstandard2.0.cs index b6d4d9da29e79..13ea56d866629 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/api/Azure.ResourceManager.ContainerService.netstandard2.0.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/api/Azure.ResourceManager.ContainerService.netstandard2.0.cs @@ -84,10 +84,13 @@ public partial class ContainerServiceAgentPoolData : Azure.ResourceManager.Model { public ContainerServiceAgentPoolData() { } public System.Collections.Generic.IList AvailabilityZones { get { throw null; } } + public Azure.Core.ResourceIdentifier CapacityReservationGroupId { get { throw null; } set { } } public int? Count { get { throw null; } set { } } public Azure.Core.ResourceIdentifier CreationDataSourceResourceId { get { throw null; } set { } } public string CurrentOrchestratorVersion { get { throw null; } } + public bool? DisableOutboundNat { get { throw null; } set { } } public bool? EnableAutoScaling { get { throw null; } set { } } + public bool? EnableCustomCATrust { get { throw null; } set { } } public bool? EnableEncryptionAtHost { get { throw null; } set { } } public bool? EnableFips { get { throw null; } set { } } public bool? EnableNodePublicIP { get { throw null; } set { } } @@ -99,8 +102,10 @@ public ContainerServiceAgentPoolData() { } public Azure.ResourceManager.ContainerService.Models.LinuxOSConfig LinuxOSConfig { get { throw null; } set { } } public int? MaxCount { get { throw null; } set { } } public int? MaxPods { get { throw null; } set { } } + public string MessageOfTheDay { get { throw null; } set { } } public int? MinCount { get { throw null; } set { } } public Azure.ResourceManager.ContainerService.Models.AgentPoolMode? Mode { get { throw null; } set { } } + public Azure.ResourceManager.ContainerService.Models.AgentPoolNetworkProfile NetworkProfile { get { throw null; } set { } } public string NodeImageVersion { get { throw null; } } public System.Collections.Generic.IDictionary NodeLabels { get { throw null; } } public Azure.Core.ResourceIdentifier NodePublicIPPrefixId { get { throw null; } set { } } @@ -131,11 +136,19 @@ public partial class ContainerServiceAgentPoolResource : Azure.ResourceManager.A protected ContainerServiceAgentPoolResource() { } public virtual Azure.ResourceManager.ContainerService.ContainerServiceAgentPoolData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } + public virtual Azure.ResourceManager.ArmOperation AbortLatestOperation(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task AbortLatestOperationAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string resourceName, string agentPoolName) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, bool? ignorePodDisruptionBudget = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + [System.ObsoleteAttribute("This method is obsolete and will be removed in a future release", false)] + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, bool? ignorePodDisruptionBudget = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + [System.ObsoleteAttribute("This method is obsolete and will be removed in a future release", false)] + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken) { throw null; } public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.ContainerService.AgentPoolUpgradeProfileResource GetAgentPoolUpgradeProfile() { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -158,6 +171,13 @@ public static partial class ContainerServiceExtensions public static Azure.AsyncPageable GetAgentPoolSnapshotsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.ResourceManager.ContainerService.AgentPoolUpgradeProfileResource GetAgentPoolUpgradeProfileResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.ContainerService.ContainerServiceAgentPoolResource GetContainerServiceAgentPoolResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.Response GetContainerServiceFleet(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string fleetName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetContainerServiceFleetAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string fleetName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.ContainerService.ContainerServiceFleetMemberResource GetContainerServiceFleetMemberResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.ContainerService.ContainerServiceFleetResource GetContainerServiceFleetResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.ContainerService.ContainerServiceFleetCollection GetContainerServiceFleets(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } + public static Azure.Pageable GetContainerServiceFleets(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.AsyncPageable GetContainerServiceFleetsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.ResourceManager.ContainerService.ContainerServiceMaintenanceConfigurationResource GetContainerServiceMaintenanceConfigurationResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.Response GetContainerServiceManagedCluster(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string resourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static System.Threading.Tasks.Task> GetContainerServiceManagedClusterAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string resourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -166,9 +186,101 @@ public static partial class ContainerServiceExtensions public static Azure.Pageable GetContainerServiceManagedClusters(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.AsyncPageable GetContainerServiceManagedClustersAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.ResourceManager.ContainerService.ContainerServicePrivateEndpointConnectionResource GetContainerServicePrivateEndpointConnectionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.ContainerService.ContainerServiceTrustedAccessRoleBindingResource GetContainerServiceTrustedAccessRoleBindingResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.Response GetManagedClusterSnapshot(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string resourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetManagedClusterSnapshotAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string resourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.ContainerService.ManagedClusterSnapshotResource GetManagedClusterSnapshotResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.ContainerService.ManagedClusterSnapshotCollection GetManagedClusterSnapshots(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } + public static Azure.Pageable GetManagedClusterSnapshots(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.AsyncPageable GetManagedClusterSnapshotsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.ResourceManager.ContainerService.ManagedClusterUpgradeProfileResource GetManagedClusterUpgradeProfileResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.ContainerService.OSOptionProfileResource GetOSOptionProfile(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location) { throw null; } public static Azure.ResourceManager.ContainerService.OSOptionProfileResource GetOSOptionProfileResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.Pageable GetTrustedAccessRoles(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.AsyncPageable GetTrustedAccessRolesAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class ContainerServiceFleetCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected ContainerServiceFleetCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string fleetName, Azure.ResourceManager.ContainerService.ContainerServiceFleetData data, string ifMatch = null, string ifNoneMatch = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string fleetName, Azure.ResourceManager.ContainerService.ContainerServiceFleetData data, string ifMatch = null, string ifNoneMatch = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string fleetName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string fleetName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string fleetName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string fleetName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class ContainerServiceFleetData : Azure.ResourceManager.Models.TrackedResourceData + { + public ContainerServiceFleetData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } + public Azure.ETag? ETag { get { throw null; } } + public Azure.ResourceManager.ContainerService.Models.ContainerServiceFleetHubProfile HubProfile { get { throw null; } set { } } + public Azure.ResourceManager.ContainerService.Models.ContainerServiceFleetProvisioningState? ProvisioningState { get { throw null; } } + } + public partial class ContainerServiceFleetMemberCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected ContainerServiceFleetMemberCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string fleetMemberName, Azure.ResourceManager.ContainerService.ContainerServiceFleetMemberData data, string ifMatch = null, string ifNoneMatch = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string fleetMemberName, Azure.ResourceManager.ContainerService.ContainerServiceFleetMemberData data, string ifMatch = null, string ifNoneMatch = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string fleetMemberName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string fleetMemberName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string fleetMemberName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string fleetMemberName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class ContainerServiceFleetMemberData : Azure.ResourceManager.Models.ResourceData + { + public ContainerServiceFleetMemberData() { } + public Azure.Core.ResourceIdentifier ClusterResourceId { get { throw null; } set { } } + public Azure.ETag? ETag { get { throw null; } } + public Azure.ResourceManager.ContainerService.Models.ContainerServiceFleetMemberProvisioningState? ProvisioningState { get { throw null; } } + } + public partial class ContainerServiceFleetMemberResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected ContainerServiceFleetMemberResource() { } + public virtual Azure.ResourceManager.ContainerService.ContainerServiceFleetMemberData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string fleetName, string fleetMemberName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, string ifMatch = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, string ifMatch = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.ContainerService.ContainerServiceFleetMemberData data, string ifMatch = null, string ifNoneMatch = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.ContainerService.ContainerServiceFleetMemberData data, string ifMatch = null, string ifNoneMatch = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class ContainerServiceFleetResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected ContainerServiceFleetResource() { } + public virtual Azure.ResourceManager.ContainerService.ContainerServiceFleetData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string fleetName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, string ifMatch = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, string ifMatch = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetContainerServiceFleetMember(string fleetMemberName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetContainerServiceFleetMemberAsync(string fleetMemberName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ContainerService.ContainerServiceFleetMemberCollection GetContainerServiceFleetMembers() { throw null; } + public virtual Azure.Response GetCredentials(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetCredentialsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Update(Azure.ResourceManager.ContainerService.Models.ContainerServiceFleetPatch patch, string ifMatch = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.ContainerService.Models.ContainerServiceFleetPatch patch, string ifMatch = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } public partial class ContainerServiceMaintenanceConfigurationCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { @@ -188,6 +300,7 @@ protected ContainerServiceMaintenanceConfigurationCollection() { } public partial class ContainerServiceMaintenanceConfigurationData : Azure.ResourceManager.Models.ResourceData { public ContainerServiceMaintenanceConfigurationData() { } + public Azure.ResourceManager.ContainerService.Models.ContainerServiceMaintenanceWindow MaintenanceWindow { get { throw null; } set { } } public System.Collections.Generic.IList NotAllowedTimes { get { throw null; } } public System.Collections.Generic.IList TimesInWeek { get { throw null; } } } @@ -228,24 +341,31 @@ public ContainerServiceManagedClusterData(Azure.Core.AzureLocation location) : b public System.Collections.Generic.IList AgentPoolProfiles { get { throw null; } } public Azure.ResourceManager.ContainerService.Models.ManagedClusterApiServerAccessProfile ApiServerAccessProfile { get { throw null; } set { } } public Azure.ResourceManager.ContainerService.Models.ManagedClusterAutoScalerProfile AutoScalerProfile { get { throw null; } set { } } + public Azure.ResourceManager.ContainerService.Models.ManagedClusterAutoUpgradeProfile AutoUpgradeProfile { get { throw null; } set { } } + public Azure.ResourceManager.ContainerService.Models.ManagedClusterMonitorProfileMetrics AzureMonitorMetrics { get { throw null; } set { } } public string AzurePortalFqdn { get { throw null; } } + public Azure.Core.ResourceIdentifier CreationDataSourceResourceId { get { throw null; } set { } } public string CurrentKubernetesVersion { get { throw null; } } public bool? DisableLocalAccounts { get { throw null; } set { } } public Azure.Core.ResourceIdentifier DiskEncryptionSetId { get { throw null; } set { } } public string DnsPrefix { get { throw null; } set { } } + public bool? EnableNamespaceResources { get { throw null; } set { } } public bool? EnablePodSecurityPolicy { get { throw null; } set { } } public bool? EnableRbac { get { throw null; } set { } } public Azure.ResourceManager.Resources.Models.ExtendedLocation ExtendedLocation { get { throw null; } set { } } public string Fqdn { get { throw null; } } public string FqdnSubdomain { get { throw null; } set { } } + public Azure.ResourceManager.ContainerService.Models.ManagedClusterGuardrailsProfile GuardrailsProfile { get { throw null; } set { } } public Azure.ResourceManager.ContainerService.Models.ManagedClusterHttpProxyConfig HttpProxyConfig { get { throw null; } set { } } public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } public System.Collections.Generic.IDictionary IdentityProfile { get { throw null; } } + public Azure.ResourceManager.ContainerService.Models.ManagedClusterIngressProfileWebAppRouting IngressWebAppRouting { get { throw null; } set { } } public string KubernetesVersion { get { throw null; } set { } } public Azure.ResourceManager.ContainerService.Models.ContainerServiceLinuxProfile LinuxProfile { get { throw null; } set { } } public int? MaxAgentPools { get { throw null; } } public Azure.ResourceManager.ContainerService.Models.ContainerServiceNetworkProfile NetworkProfile { get { throw null; } set { } } public string NodeResourceGroup { get { throw null; } set { } } + public Azure.ResourceManager.ContainerService.Models.ManagedClusterNodeResourceGroupRestrictionLevel? NodeResourceGroupRestrictionLevel { get { throw null; } set { } } public Azure.ResourceManager.ContainerService.Models.ManagedClusterOidcIssuerProfile OidcIssuerProfile { get { throw null; } set { } } public Azure.ResourceManager.ContainerService.Models.ManagedClusterPodIdentityProfile PodIdentityProfile { get { throw null; } set { } } public Azure.ResourceManager.ContainerService.Models.ContainerServiceStateCode? PowerStateCode { get { throw null; } } @@ -260,8 +380,11 @@ public ContainerServiceManagedClusterData(Azure.Core.AzureLocation location) : b public Azure.ResourceManager.ContainerService.Models.ManagedClusterServicePrincipalProfile ServicePrincipalProfile { get { throw null; } set { } } public Azure.ResourceManager.ContainerService.Models.ManagedClusterSku Sku { get { throw null; } set { } } public Azure.ResourceManager.ContainerService.Models.ManagedClusterStorageProfile StorageProfile { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + [System.ObsoleteAttribute("This property is obsolete and will be removed in a future release", false)] public Azure.ResourceManager.ContainerService.Models.UpgradeChannel? UpgradeChannel { get { throw null; } set { } } public Azure.ResourceManager.ContainerService.Models.ManagedClusterWindowsProfile WindowsProfile { get { throw null; } set { } } + public Azure.ResourceManager.ContainerService.Models.ManagedClusterWorkloadAutoScalerProfile WorkloadAutoScalerProfile { get { throw null; } set { } } } public partial class ContainerServiceManagedClusterResource : Azure.ResourceManager.ArmResource { @@ -269,11 +392,19 @@ public partial class ContainerServiceManagedClusterResource : Azure.ResourceMana protected ContainerServiceManagedClusterResource() { } public virtual Azure.ResourceManager.ContainerService.ContainerServiceManagedClusterData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } + public virtual Azure.ResourceManager.ArmOperation AbortLatestOperation(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task AbortLatestOperationAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string resourceName) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, bool? ignorePodDisruptionBudget = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + [System.ObsoleteAttribute("This method is obsolete and will be removed in a future release", false)] + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, bool? ignorePodDisruptionBudget = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + [System.ObsoleteAttribute("This method is obsolete and will be removed in a future release", false)] + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken) { throw null; } public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetAccessProfile(string roleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAccessProfileAsync(string roleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -297,6 +428,9 @@ protected ContainerServiceManagedClusterResource() { } public virtual Azure.Response GetContainerServicePrivateEndpointConnection(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetContainerServicePrivateEndpointConnectionAsync(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.ContainerService.ContainerServicePrivateEndpointConnectionCollection GetContainerServicePrivateEndpointConnections() { throw null; } + public virtual Azure.Response GetContainerServiceTrustedAccessRoleBinding(string trustedAccessRoleBindingName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetContainerServiceTrustedAccessRoleBindingAsync(string trustedAccessRoleBindingName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ContainerService.ContainerServiceTrustedAccessRoleBindingCollection GetContainerServiceTrustedAccessRoleBindings() { throw null; } public virtual Azure.ResourceManager.ContainerService.ManagedClusterUpgradeProfileResource GetManagedClusterUpgradeProfile() { throw null; } public virtual Azure.Pageable GetOutboundNetworkDependenciesEndpoints(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetOutboundNetworkDependenciesEndpointsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -361,6 +495,84 @@ protected ContainerServicePrivateEndpointConnectionResource() { } public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.ContainerService.ContainerServicePrivateEndpointConnectionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.ContainerService.ContainerServicePrivateEndpointConnectionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } + public partial class ContainerServiceTrustedAccessRoleBindingCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected ContainerServiceTrustedAccessRoleBindingCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string trustedAccessRoleBindingName, Azure.ResourceManager.ContainerService.ContainerServiceTrustedAccessRoleBindingData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string trustedAccessRoleBindingName, Azure.ResourceManager.ContainerService.ContainerServiceTrustedAccessRoleBindingData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string trustedAccessRoleBindingName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string trustedAccessRoleBindingName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string trustedAccessRoleBindingName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string trustedAccessRoleBindingName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class ContainerServiceTrustedAccessRoleBindingData : Azure.ResourceManager.Models.ResourceData + { + public ContainerServiceTrustedAccessRoleBindingData(Azure.Core.ResourceIdentifier sourceResourceId, System.Collections.Generic.IEnumerable roles) { } + public Azure.ResourceManager.ContainerService.Models.ContainerServiceTrustedAccessRoleBindingProvisioningState? ProvisioningState { get { throw null; } } + public System.Collections.Generic.IList Roles { get { throw null; } } + public Azure.Core.ResourceIdentifier SourceResourceId { get { throw null; } set { } } + } + public partial class ContainerServiceTrustedAccessRoleBindingResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected ContainerServiceTrustedAccessRoleBindingResource() { } + public virtual Azure.ResourceManager.ContainerService.ContainerServiceTrustedAccessRoleBindingData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string resourceName, string trustedAccessRoleBindingName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.ContainerService.ContainerServiceTrustedAccessRoleBindingData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.ContainerService.ContainerServiceTrustedAccessRoleBindingData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class ManagedClusterSnapshotCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected ManagedClusterSnapshotCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string resourceName, Azure.ResourceManager.ContainerService.ManagedClusterSnapshotData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string resourceName, Azure.ResourceManager.ContainerService.ManagedClusterSnapshotData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string resourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string resourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string resourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string resourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class ManagedClusterSnapshotData : Azure.ResourceManager.Models.TrackedResourceData + { + public ManagedClusterSnapshotData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } + public Azure.Core.ResourceIdentifier CreationDataSourceResourceId { get { throw null; } set { } } + public Azure.ResourceManager.ContainerService.Models.ManagedClusterPropertiesForSnapshot ManagedClusterPropertiesReadOnly { get { throw null; } } + public Azure.ResourceManager.ContainerService.Models.SnapshotType? SnapshotType { get { throw null; } set { } } + } + public partial class ManagedClusterSnapshotResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected ManagedClusterSnapshotResource() { } + public virtual Azure.ResourceManager.ContainerService.ManagedClusterSnapshotData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string resourceName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Update(Azure.ResourceManager.ContainerService.Models.ContainerServiceTagsObject containerServiceTagsObject, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.ContainerService.Models.ContainerServiceTagsObject containerServiceTagsObject, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } public partial class ManagedClusterUpgradeProfileData : Azure.ResourceManager.Models.ResourceData { internal ManagedClusterUpgradeProfileData() { } @@ -426,6 +638,38 @@ internal AgentPoolAvailableVersions() { } public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct AgentPoolNetworkPortProtocol : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public AgentPoolNetworkPortProtocol(string value) { throw null; } + public static Azure.ResourceManager.ContainerService.Models.AgentPoolNetworkPortProtocol Tcp { get { throw null; } } + public static Azure.ResourceManager.ContainerService.Models.AgentPoolNetworkPortProtocol Udp { get { throw null; } } + public bool Equals(Azure.ResourceManager.ContainerService.Models.AgentPoolNetworkPortProtocol other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.ContainerService.Models.AgentPoolNetworkPortProtocol left, Azure.ResourceManager.ContainerService.Models.AgentPoolNetworkPortProtocol right) { throw null; } + public static implicit operator Azure.ResourceManager.ContainerService.Models.AgentPoolNetworkPortProtocol (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.ContainerService.Models.AgentPoolNetworkPortProtocol left, Azure.ResourceManager.ContainerService.Models.AgentPoolNetworkPortProtocol right) { throw null; } + public override string ToString() { throw null; } + } + public partial class AgentPoolNetworkPortRange + { + public AgentPoolNetworkPortRange() { } + public int? PortEnd { get { throw null; } set { } } + public int? PortStart { get { throw null; } set { } } + public Azure.ResourceManager.ContainerService.Models.AgentPoolNetworkPortProtocol? Protocol { get { throw null; } set { } } + } + public partial class AgentPoolNetworkProfile + { + public AgentPoolNetworkProfile() { } + public System.Collections.Generic.IList AllowedHostPorts { get { throw null; } } + public System.Collections.Generic.IList ApplicationSecurityGroups { get { throw null; } } + public System.Collections.Generic.IList NodePublicIPTags { get { throw null; } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct AgentPoolType : System.IEquatable { private readonly object _dummy; @@ -469,6 +713,12 @@ internal AgentPoolUpgradeProfilePropertiesUpgradesItem() { } public static bool operator !=(Azure.ResourceManager.ContainerService.Models.AutoScaleExpander left, Azure.ResourceManager.ContainerService.Models.AutoScaleExpander right) { throw null; } public override string ToString() { throw null; } } + public partial class ContainerServiceDateSpan + { + public ContainerServiceDateSpan(System.DateTimeOffset start, System.DateTimeOffset end) { } + public System.DateTimeOffset End { get { throw null; } set { } } + public System.DateTimeOffset Start { get { throw null; } set { } } + } public partial class ContainerServiceEndpointDependency { internal ContainerServiceEndpointDependency() { } @@ -483,6 +733,79 @@ internal ContainerServiceEndpointDetail() { } public int? Port { get { throw null; } } public string Protocol { get { throw null; } } } + public partial class ContainerServiceFleetCredentialResult + { + internal ContainerServiceFleetCredentialResult() { } + public string Name { get { throw null; } } + public byte[] Value { get { throw null; } } + } + public partial class ContainerServiceFleetCredentialResults + { + internal ContainerServiceFleetCredentialResults() { } + public System.Collections.Generic.IReadOnlyList Kubeconfigs { get { throw null; } } + } + public partial class ContainerServiceFleetHubProfile + { + public ContainerServiceFleetHubProfile() { } + public string DnsPrefix { get { throw null; } set { } } + public string Fqdn { get { throw null; } } + public string KubernetesVersion { get { throw null; } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ContainerServiceFleetMemberProvisioningState : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ContainerServiceFleetMemberProvisioningState(string value) { throw null; } + public static Azure.ResourceManager.ContainerService.Models.ContainerServiceFleetMemberProvisioningState Canceled { get { throw null; } } + public static Azure.ResourceManager.ContainerService.Models.ContainerServiceFleetMemberProvisioningState Failed { get { throw null; } } + public static Azure.ResourceManager.ContainerService.Models.ContainerServiceFleetMemberProvisioningState Joining { get { throw null; } } + public static Azure.ResourceManager.ContainerService.Models.ContainerServiceFleetMemberProvisioningState Leaving { get { throw null; } } + public static Azure.ResourceManager.ContainerService.Models.ContainerServiceFleetMemberProvisioningState Succeeded { get { throw null; } } + public static Azure.ResourceManager.ContainerService.Models.ContainerServiceFleetMemberProvisioningState Updating { get { throw null; } } + public bool Equals(Azure.ResourceManager.ContainerService.Models.ContainerServiceFleetMemberProvisioningState other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.ContainerService.Models.ContainerServiceFleetMemberProvisioningState left, Azure.ResourceManager.ContainerService.Models.ContainerServiceFleetMemberProvisioningState right) { throw null; } + public static implicit operator Azure.ResourceManager.ContainerService.Models.ContainerServiceFleetMemberProvisioningState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.ContainerService.Models.ContainerServiceFleetMemberProvisioningState left, Azure.ResourceManager.ContainerService.Models.ContainerServiceFleetMemberProvisioningState right) { throw null; } + public override string ToString() { throw null; } + } + public partial class ContainerServiceFleetPatch + { + public ContainerServiceFleetPatch() { } + public System.Collections.Generic.IDictionary Tags { get { throw null; } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ContainerServiceFleetProvisioningState : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ContainerServiceFleetProvisioningState(string value) { throw null; } + public static Azure.ResourceManager.ContainerService.Models.ContainerServiceFleetProvisioningState Canceled { get { throw null; } } + public static Azure.ResourceManager.ContainerService.Models.ContainerServiceFleetProvisioningState Creating { get { throw null; } } + public static Azure.ResourceManager.ContainerService.Models.ContainerServiceFleetProvisioningState Deleting { get { throw null; } } + public static Azure.ResourceManager.ContainerService.Models.ContainerServiceFleetProvisioningState Failed { get { throw null; } } + public static Azure.ResourceManager.ContainerService.Models.ContainerServiceFleetProvisioningState Succeeded { get { throw null; } } + public static Azure.ResourceManager.ContainerService.Models.ContainerServiceFleetProvisioningState Updating { get { throw null; } } + public bool Equals(Azure.ResourceManager.ContainerService.Models.ContainerServiceFleetProvisioningState other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.ContainerService.Models.ContainerServiceFleetProvisioningState left, Azure.ResourceManager.ContainerService.Models.ContainerServiceFleetProvisioningState right) { throw null; } + public static implicit operator Azure.ResourceManager.ContainerService.Models.ContainerServiceFleetProvisioningState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.ContainerService.Models.ContainerServiceFleetProvisioningState left, Azure.ResourceManager.ContainerService.Models.ContainerServiceFleetProvisioningState right) { throw null; } + public override string ToString() { throw null; } + } + public partial class ContainerServiceIPTag + { + public ContainerServiceIPTag() { } + public string IPTagType { get { throw null; } set { } } + public string Tag { get { throw null; } set { } } + } public partial class ContainerServiceLinuxProfile { public ContainerServiceLinuxProfile(string adminUsername, Azure.ResourceManager.ContainerService.Models.ContainerServiceSshConfiguration ssh) { } @@ -507,6 +830,64 @@ public ContainerServiceLinuxProfile(string adminUsername, Azure.ResourceManager. public static bool operator !=(Azure.ResourceManager.ContainerService.Models.ContainerServiceLoadBalancerSku left, Azure.ResourceManager.ContainerService.Models.ContainerServiceLoadBalancerSku right) { throw null; } public override string ToString() { throw null; } } + public partial class ContainerServiceMaintenanceAbsoluteMonthlySchedule + { + public ContainerServiceMaintenanceAbsoluteMonthlySchedule(int intervalMonths, int dayOfMonth) { } + public int DayOfMonth { get { throw null; } set { } } + public int IntervalMonths { get { throw null; } set { } } + } + public partial class ContainerServiceMaintenanceRelativeMonthlySchedule + { + public ContainerServiceMaintenanceRelativeMonthlySchedule(int intervalMonths, Azure.ResourceManager.ContainerService.Models.ContainerServiceMaintenanceRelativeMonthlyScheduleWeekIndex weekIndex, Azure.ResourceManager.ContainerService.Models.ContainerServiceWeekDay dayOfWeek) { } + public Azure.ResourceManager.ContainerService.Models.ContainerServiceWeekDay DayOfWeek { get { throw null; } set { } } + public int IntervalMonths { get { throw null; } set { } } + public Azure.ResourceManager.ContainerService.Models.ContainerServiceMaintenanceRelativeMonthlyScheduleWeekIndex WeekIndex { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ContainerServiceMaintenanceRelativeMonthlyScheduleWeekIndex : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ContainerServiceMaintenanceRelativeMonthlyScheduleWeekIndex(string value) { throw null; } + public static Azure.ResourceManager.ContainerService.Models.ContainerServiceMaintenanceRelativeMonthlyScheduleWeekIndex First { get { throw null; } } + public static Azure.ResourceManager.ContainerService.Models.ContainerServiceMaintenanceRelativeMonthlyScheduleWeekIndex Fourth { get { throw null; } } + public static Azure.ResourceManager.ContainerService.Models.ContainerServiceMaintenanceRelativeMonthlyScheduleWeekIndex Last { get { throw null; } } + public static Azure.ResourceManager.ContainerService.Models.ContainerServiceMaintenanceRelativeMonthlyScheduleWeekIndex Second { get { throw null; } } + public static Azure.ResourceManager.ContainerService.Models.ContainerServiceMaintenanceRelativeMonthlyScheduleWeekIndex Third { get { throw null; } } + public bool Equals(Azure.ResourceManager.ContainerService.Models.ContainerServiceMaintenanceRelativeMonthlyScheduleWeekIndex other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.ContainerService.Models.ContainerServiceMaintenanceRelativeMonthlyScheduleWeekIndex left, Azure.ResourceManager.ContainerService.Models.ContainerServiceMaintenanceRelativeMonthlyScheduleWeekIndex right) { throw null; } + public static implicit operator Azure.ResourceManager.ContainerService.Models.ContainerServiceMaintenanceRelativeMonthlyScheduleWeekIndex (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.ContainerService.Models.ContainerServiceMaintenanceRelativeMonthlyScheduleWeekIndex left, Azure.ResourceManager.ContainerService.Models.ContainerServiceMaintenanceRelativeMonthlyScheduleWeekIndex right) { throw null; } + public override string ToString() { throw null; } + } + public partial class ContainerServiceMaintenanceSchedule + { + public ContainerServiceMaintenanceSchedule() { } + public Azure.ResourceManager.ContainerService.Models.ContainerServiceMaintenanceAbsoluteMonthlySchedule AbsoluteMonthly { get { throw null; } set { } } + public int? DailyIntervalDays { get { throw null; } set { } } + public Azure.ResourceManager.ContainerService.Models.ContainerServiceMaintenanceRelativeMonthlySchedule RelativeMonthly { get { throw null; } set { } } + public Azure.ResourceManager.ContainerService.Models.ContainerServiceMaintenanceWeeklySchedule Weekly { get { throw null; } set { } } + } + public partial class ContainerServiceMaintenanceWeeklySchedule + { + public ContainerServiceMaintenanceWeeklySchedule(int intervalWeeks, Azure.ResourceManager.ContainerService.Models.ContainerServiceWeekDay dayOfWeek) { } + public Azure.ResourceManager.ContainerService.Models.ContainerServiceWeekDay DayOfWeek { get { throw null; } set { } } + public int IntervalWeeks { get { throw null; } set { } } + } + public partial class ContainerServiceMaintenanceWindow + { + public ContainerServiceMaintenanceWindow(Azure.ResourceManager.ContainerService.Models.ContainerServiceMaintenanceSchedule schedule, int durationHours, string startTime) { } + public int DurationHours { get { throw null; } set { } } + public System.Collections.Generic.IList NotAllowedDates { get { throw null; } } + public Azure.ResourceManager.ContainerService.Models.ContainerServiceMaintenanceSchedule Schedule { get { throw null; } set { } } + public string StartDate { get { throw null; } set { } } + public string StartTime { get { throw null; } set { } } + public string UtcOffset { get { throw null; } set { } } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct ContainerServiceNetworkMode : System.IEquatable { @@ -545,6 +926,23 @@ public ContainerServiceLinuxProfile(string adminUsername, Azure.ResourceManager. public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ContainerServiceNetworkPluginMode : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ContainerServiceNetworkPluginMode(string value) { throw null; } + public static Azure.ResourceManager.ContainerService.Models.ContainerServiceNetworkPluginMode Overlay { get { throw null; } } + public bool Equals(Azure.ResourceManager.ContainerService.Models.ContainerServiceNetworkPluginMode other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.ContainerService.Models.ContainerServiceNetworkPluginMode left, Azure.ResourceManager.ContainerService.Models.ContainerServiceNetworkPluginMode right) { throw null; } + public static implicit operator Azure.ResourceManager.ContainerService.Models.ContainerServiceNetworkPluginMode (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.ContainerService.Models.ContainerServiceNetworkPluginMode left, Azure.ResourceManager.ContainerService.Models.ContainerServiceNetworkPluginMode right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct ContainerServiceNetworkPolicy : System.IEquatable { private readonly object _dummy; @@ -567,12 +965,15 @@ public partial class ContainerServiceNetworkProfile public ContainerServiceNetworkProfile() { } public string DnsServiceIP { get { throw null; } set { } } public string DockerBridgeCidr { get { throw null; } set { } } + public Azure.ResourceManager.ContainerService.Models.EbpfDataplane? EbpfDataplane { get { throw null; } set { } } public System.Collections.Generic.IList IPFamilies { get { throw null; } } + public Azure.ResourceManager.ContainerService.Models.ContainerServiceNetworkProfileKubeProxyConfig KubeProxyConfig { get { throw null; } set { } } public Azure.ResourceManager.ContainerService.Models.ManagedClusterLoadBalancerProfile LoadBalancerProfile { get { throw null; } set { } } public Azure.ResourceManager.ContainerService.Models.ContainerServiceLoadBalancerSku? LoadBalancerSku { get { throw null; } set { } } public Azure.ResourceManager.ContainerService.Models.ManagedClusterNatGatewayProfile NatGatewayProfile { get { throw null; } set { } } public Azure.ResourceManager.ContainerService.Models.ContainerServiceNetworkMode? NetworkMode { get { throw null; } set { } } public Azure.ResourceManager.ContainerService.Models.ContainerServiceNetworkPlugin? NetworkPlugin { get { throw null; } set { } } + public Azure.ResourceManager.ContainerService.Models.ContainerServiceNetworkPluginMode? NetworkPluginMode { get { throw null; } set { } } public Azure.ResourceManager.ContainerService.Models.ContainerServiceNetworkPolicy? NetworkPolicy { get { throw null; } set { } } public Azure.ResourceManager.ContainerService.Models.ContainerServiceOutboundType? OutboundType { get { throw null; } set { } } public string PodCidr { get { throw null; } set { } } @@ -580,6 +981,66 @@ public ContainerServiceNetworkProfile() { } public string ServiceCidr { get { throw null; } set { } } public System.Collections.Generic.IList ServiceCidrs { get { throw null; } } } + public partial class ContainerServiceNetworkProfileForSnapshot + { + internal ContainerServiceNetworkProfileForSnapshot() { } + public Azure.ResourceManager.ContainerService.Models.ContainerServiceLoadBalancerSku? LoadBalancerSku { get { throw null; } } + public Azure.ResourceManager.ContainerService.Models.ContainerServiceNetworkMode? NetworkMode { get { throw null; } } + public Azure.ResourceManager.ContainerService.Models.ContainerServiceNetworkPlugin? NetworkPlugin { get { throw null; } } + public Azure.ResourceManager.ContainerService.Models.ContainerServiceNetworkPluginMode? NetworkPluginMode { get { throw null; } } + public Azure.ResourceManager.ContainerService.Models.ContainerServiceNetworkPolicy? NetworkPolicy { get { throw null; } } + } + public partial class ContainerServiceNetworkProfileKubeProxyConfig + { + public ContainerServiceNetworkProfileKubeProxyConfig() { } + public Azure.ResourceManager.ContainerService.Models.ContainerServiceNetworkProfileKubeProxyIPVSConfig IPVSConfig { get { throw null; } set { } } + public bool? IsEnabled { get { throw null; } set { } } + public Azure.ResourceManager.ContainerService.Models.ContainerServiceNetworkProfileKubeProxyMode? Mode { get { throw null; } set { } } + } + public partial class ContainerServiceNetworkProfileKubeProxyIPVSConfig + { + public ContainerServiceNetworkProfileKubeProxyIPVSConfig() { } + public Azure.ResourceManager.ContainerService.Models.ContainerServiceNetworkProfileKubeProxyIPVSScheduler? Scheduler { get { throw null; } set { } } + public int? TcpFinTimeoutSeconds { get { throw null; } set { } } + public int? TcpTimeoutSeconds { get { throw null; } set { } } + public int? UdpTimeoutSeconds { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ContainerServiceNetworkProfileKubeProxyIPVSScheduler : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ContainerServiceNetworkProfileKubeProxyIPVSScheduler(string value) { throw null; } + public static Azure.ResourceManager.ContainerService.Models.ContainerServiceNetworkProfileKubeProxyIPVSScheduler LeastConnection { get { throw null; } } + public static Azure.ResourceManager.ContainerService.Models.ContainerServiceNetworkProfileKubeProxyIPVSScheduler RoundRobin { get { throw null; } } + public bool Equals(Azure.ResourceManager.ContainerService.Models.ContainerServiceNetworkProfileKubeProxyIPVSScheduler other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.ContainerService.Models.ContainerServiceNetworkProfileKubeProxyIPVSScheduler left, Azure.ResourceManager.ContainerService.Models.ContainerServiceNetworkProfileKubeProxyIPVSScheduler right) { throw null; } + public static implicit operator Azure.ResourceManager.ContainerService.Models.ContainerServiceNetworkProfileKubeProxyIPVSScheduler (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.ContainerService.Models.ContainerServiceNetworkProfileKubeProxyIPVSScheduler left, Azure.ResourceManager.ContainerService.Models.ContainerServiceNetworkProfileKubeProxyIPVSScheduler right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ContainerServiceNetworkProfileKubeProxyMode : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ContainerServiceNetworkProfileKubeProxyMode(string value) { throw null; } + public static Azure.ResourceManager.ContainerService.Models.ContainerServiceNetworkProfileKubeProxyMode IPTables { get { throw null; } } + public static Azure.ResourceManager.ContainerService.Models.ContainerServiceNetworkProfileKubeProxyMode IPVS { get { throw null; } } + public bool Equals(Azure.ResourceManager.ContainerService.Models.ContainerServiceNetworkProfileKubeProxyMode other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.ContainerService.Models.ContainerServiceNetworkProfileKubeProxyMode left, Azure.ResourceManager.ContainerService.Models.ContainerServiceNetworkProfileKubeProxyMode right) { throw null; } + public static implicit operator Azure.ResourceManager.ContainerService.Models.ContainerServiceNetworkProfileKubeProxyMode (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.ContainerService.Models.ContainerServiceNetworkProfileKubeProxyMode left, Azure.ResourceManager.ContainerService.Models.ContainerServiceNetworkProfileKubeProxyMode right) { throw null; } + public override string ToString() { throw null; } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct ContainerServiceOSDiskType : System.IEquatable { @@ -611,6 +1072,7 @@ internal ContainerServiceOSOptionProperty() { } private readonly int _dummyPrimitive; public ContainerServiceOSSku(string value) { throw null; } public static Azure.ResourceManager.ContainerService.Models.ContainerServiceOSSku CblMariner { get { throw null; } } + public static Azure.ResourceManager.ContainerService.Models.ContainerServiceOSSku Mariner { get { throw null; } } public static Azure.ResourceManager.ContainerService.Models.ContainerServiceOSSku Ubuntu { get { throw null; } } public static Azure.ResourceManager.ContainerService.Models.ContainerServiceOSSku Windows2019 { get { throw null; } } public static Azure.ResourceManager.ContainerService.Models.ContainerServiceOSSku Windows2022 { get { throw null; } } @@ -674,6 +1136,7 @@ internal ContainerServiceOutboundEnvironmentEndpoint() { } private readonly object _dummy; private readonly int _dummyPrimitive; public ContainerServicePrivateEndpointConnectionProvisioningState(string value) { throw null; } + public static Azure.ResourceManager.ContainerService.Models.ContainerServicePrivateEndpointConnectionProvisioningState Canceled { get { throw null; } } public static Azure.ResourceManager.ContainerService.Models.ContainerServicePrivateEndpointConnectionProvisioningState Creating { get { throw null; } } public static Azure.ResourceManager.ContainerService.Models.ContainerServicePrivateEndpointConnectionProvisioningState Deleting { get { throw null; } } public static Azure.ResourceManager.ContainerService.Models.ContainerServicePrivateEndpointConnectionProvisioningState Failed { get { throw null; } } @@ -732,6 +1195,7 @@ public ContainerServicePrivateLinkServiceConnectionState() { } public ContainerServicePublicNetworkAccess(string value) { throw null; } public static Azure.ResourceManager.ContainerService.Models.ContainerServicePublicNetworkAccess Disabled { get { throw null; } } public static Azure.ResourceManager.ContainerService.Models.ContainerServicePublicNetworkAccess Enabled { get { throw null; } } + public static Azure.ResourceManager.ContainerService.Models.ContainerServicePublicNetworkAccess SecuredByPerimeter { get { throw null; } } public bool Equals(Azure.ResourceManager.ContainerService.Models.ContainerServicePublicNetworkAccess other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } @@ -787,6 +1251,43 @@ public ContainerServiceTimeSpan() { } public System.DateTimeOffset? EndOn { get { throw null; } set { } } public System.DateTimeOffset? StartOn { get { throw null; } set { } } } + public partial class ContainerServiceTrustedAccessRole + { + internal ContainerServiceTrustedAccessRole() { } + public string Name { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Rules { get { throw null; } } + public string SourceResourceType { get { throw null; } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ContainerServiceTrustedAccessRoleBindingProvisioningState : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ContainerServiceTrustedAccessRoleBindingProvisioningState(string value) { throw null; } + public static Azure.ResourceManager.ContainerService.Models.ContainerServiceTrustedAccessRoleBindingProvisioningState Canceled { get { throw null; } } + public static Azure.ResourceManager.ContainerService.Models.ContainerServiceTrustedAccessRoleBindingProvisioningState Deleting { get { throw null; } } + public static Azure.ResourceManager.ContainerService.Models.ContainerServiceTrustedAccessRoleBindingProvisioningState Failed { get { throw null; } } + public static Azure.ResourceManager.ContainerService.Models.ContainerServiceTrustedAccessRoleBindingProvisioningState Succeeded { get { throw null; } } + public static Azure.ResourceManager.ContainerService.Models.ContainerServiceTrustedAccessRoleBindingProvisioningState Updating { get { throw null; } } + public bool Equals(Azure.ResourceManager.ContainerService.Models.ContainerServiceTrustedAccessRoleBindingProvisioningState other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.ContainerService.Models.ContainerServiceTrustedAccessRoleBindingProvisioningState left, Azure.ResourceManager.ContainerService.Models.ContainerServiceTrustedAccessRoleBindingProvisioningState right) { throw null; } + public static implicit operator Azure.ResourceManager.ContainerService.Models.ContainerServiceTrustedAccessRoleBindingProvisioningState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.ContainerService.Models.ContainerServiceTrustedAccessRoleBindingProvisioningState left, Azure.ResourceManager.ContainerService.Models.ContainerServiceTrustedAccessRoleBindingProvisioningState right) { throw null; } + public override string ToString() { throw null; } + } + public partial class ContainerServiceTrustedAccessRoleRule + { + internal ContainerServiceTrustedAccessRoleRule() { } + public System.Collections.Generic.IReadOnlyList ApiGroups { get { throw null; } } + public System.Collections.Generic.IReadOnlyList NonResourceUrls { get { throw null; } } + public System.Collections.Generic.IReadOnlyList ResourceNames { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Resources { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Verbs { get { throw null; } } + } public partial class ContainerServiceUserAssignedIdentity { public ContainerServiceUserAssignedIdentity() { } @@ -818,6 +1319,23 @@ public ContainerServiceUserAssignedIdentity() { } public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct EbpfDataplane : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public EbpfDataplane(string value) { throw null; } + public static Azure.ResourceManager.ContainerService.Models.EbpfDataplane Cilium { get { throw null; } } + public bool Equals(Azure.ResourceManager.ContainerService.Models.EbpfDataplane other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.ContainerService.Models.EbpfDataplane left, Azure.ResourceManager.ContainerService.Models.EbpfDataplane right) { throw null; } + public static implicit operator Azure.ResourceManager.ContainerService.Models.EbpfDataplane (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.ContainerService.Models.EbpfDataplane left, Azure.ResourceManager.ContainerService.Models.EbpfDataplane right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct GpuInstanceProfile : System.IEquatable { private readonly object _dummy; @@ -952,10 +1470,13 @@ public partial class ManagedClusterAgentPoolProfileProperties public ManagedClusterAgentPoolProfileProperties() { } public Azure.ResourceManager.ContainerService.Models.AgentPoolType? AgentPoolType { get { throw null; } set { } } public System.Collections.Generic.IList AvailabilityZones { get { throw null; } } + public Azure.Core.ResourceIdentifier CapacityReservationGroupId { get { throw null; } set { } } public int? Count { get { throw null; } set { } } public Azure.Core.ResourceIdentifier CreationDataSourceResourceId { get { throw null; } set { } } public string CurrentOrchestratorVersion { get { throw null; } } + public bool? DisableOutboundNat { get { throw null; } set { } } public bool? EnableAutoScaling { get { throw null; } set { } } + public bool? EnableCustomCATrust { get { throw null; } set { } } public bool? EnableEncryptionAtHost { get { throw null; } set { } } public bool? EnableFips { get { throw null; } set { } } public bool? EnableNodePublicIP { get { throw null; } set { } } @@ -967,8 +1488,10 @@ public ManagedClusterAgentPoolProfileProperties() { } public Azure.ResourceManager.ContainerService.Models.LinuxOSConfig LinuxOSConfig { get { throw null; } set { } } public int? MaxCount { get { throw null; } set { } } public int? MaxPods { get { throw null; } set { } } + public string MessageOfTheDay { get { throw null; } set { } } public int? MinCount { get { throw null; } set { } } public Azure.ResourceManager.ContainerService.Models.AgentPoolMode? Mode { get { throw null; } set { } } + public Azure.ResourceManager.ContainerService.Models.AgentPoolNetworkProfile NetworkProfile { get { throw null; } set { } } public string NodeImageVersion { get { throw null; } } public System.Collections.Generic.IDictionary NodeLabels { get { throw null; } } public Azure.Core.ResourceIdentifier NodePublicIPPrefixId { get { throw null; } set { } } @@ -999,7 +1522,9 @@ public ManagedClusterApiServerAccessProfile() { } public bool? DisableRunCommand { get { throw null; } set { } } public bool? EnablePrivateCluster { get { throw null; } set { } } public bool? EnablePrivateClusterPublicFqdn { get { throw null; } set { } } + public bool? EnableVnetIntegration { get { throw null; } set { } } public string PrivateDnsZone { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier SubnetId { get { throw null; } set { } } } public partial class ManagedClusterAutoScalerProfile { @@ -1022,6 +1547,12 @@ public ManagedClusterAutoScalerProfile() { } public string SkipNodesWithLocalStorage { get { throw null; } set { } } public string SkipNodesWithSystemPods { get { throw null; } set { } } } + public partial class ManagedClusterAutoUpgradeProfile + { + public ManagedClusterAutoUpgradeProfile() { } + public Azure.ResourceManager.ContainerService.Models.ManagedClusterNodeOSUpgradeChannel? NodeOSUpgradeChannel { get { throw null; } set { } } + public Azure.ResourceManager.ContainerService.Models.UpgradeChannel? UpgradeChannel { get { throw null; } set { } } + } public partial class ManagedClusterCredential { internal ManagedClusterCredential() { } @@ -1033,14 +1564,48 @@ public partial class ManagedClusterCredentials internal ManagedClusterCredentials() { } public System.Collections.Generic.IReadOnlyList Kubeconfigs { get { throw null; } } } + public partial class ManagedClusterGuardrailsProfile + { + public ManagedClusterGuardrailsProfile(string version, Azure.ResourceManager.ContainerService.Models.ManagedClusterGuardrailsProfileLevel level) { } + public System.Collections.Generic.IList ExcludedNamespaces { get { throw null; } } + public Azure.ResourceManager.ContainerService.Models.ManagedClusterGuardrailsProfileLevel Level { get { throw null; } set { } } + public System.Collections.Generic.IReadOnlyList SystemExcludedNamespaces { get { throw null; } } + public string Version { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ManagedClusterGuardrailsProfileLevel : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ManagedClusterGuardrailsProfileLevel(string value) { throw null; } + public static Azure.ResourceManager.ContainerService.Models.ManagedClusterGuardrailsProfileLevel Enforcement { get { throw null; } } + public static Azure.ResourceManager.ContainerService.Models.ManagedClusterGuardrailsProfileLevel Off { get { throw null; } } + public static Azure.ResourceManager.ContainerService.Models.ManagedClusterGuardrailsProfileLevel Warning { get { throw null; } } + public bool Equals(Azure.ResourceManager.ContainerService.Models.ManagedClusterGuardrailsProfileLevel other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.ContainerService.Models.ManagedClusterGuardrailsProfileLevel left, Azure.ResourceManager.ContainerService.Models.ManagedClusterGuardrailsProfileLevel right) { throw null; } + public static implicit operator Azure.ResourceManager.ContainerService.Models.ManagedClusterGuardrailsProfileLevel (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.ContainerService.Models.ManagedClusterGuardrailsProfileLevel left, Azure.ResourceManager.ContainerService.Models.ManagedClusterGuardrailsProfileLevel right) { throw null; } + public override string ToString() { throw null; } + } public partial class ManagedClusterHttpProxyConfig { public ManagedClusterHttpProxyConfig() { } + public System.Collections.Generic.IReadOnlyList EffectiveNoProxy { get { throw null; } } public string HttpProxy { get { throw null; } set { } } public string HttpsProxy { get { throw null; } set { } } public System.Collections.Generic.IList NoProxy { get { throw null; } } public string TrustedCA { get { throw null; } set { } } } + public partial class ManagedClusterIngressProfileWebAppRouting + { + public ManagedClusterIngressProfileWebAppRouting() { } + public Azure.Core.ResourceIdentifier DnsZoneResourceId { get { throw null; } set { } } + public bool? IsEnabled { get { throw null; } set { } } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct ManagedClusterKeyVaultNetworkAccessType : System.IEquatable { @@ -1059,10 +1624,29 @@ public ManagedClusterHttpProxyConfig() { } public static bool operator !=(Azure.ResourceManager.ContainerService.Models.ManagedClusterKeyVaultNetworkAccessType left, Azure.ResourceManager.ContainerService.Models.ManagedClusterKeyVaultNetworkAccessType right) { throw null; } public override string ToString() { throw null; } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ManagedClusterLoadBalancerBackendPoolType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ManagedClusterLoadBalancerBackendPoolType(string value) { throw null; } + public static Azure.ResourceManager.ContainerService.Models.ManagedClusterLoadBalancerBackendPoolType NodeIP { get { throw null; } } + public static Azure.ResourceManager.ContainerService.Models.ManagedClusterLoadBalancerBackendPoolType NodeIPConfiguration { get { throw null; } } + public bool Equals(Azure.ResourceManager.ContainerService.Models.ManagedClusterLoadBalancerBackendPoolType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.ContainerService.Models.ManagedClusterLoadBalancerBackendPoolType left, Azure.ResourceManager.ContainerService.Models.ManagedClusterLoadBalancerBackendPoolType right) { throw null; } + public static implicit operator Azure.ResourceManager.ContainerService.Models.ManagedClusterLoadBalancerBackendPoolType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.ContainerService.Models.ManagedClusterLoadBalancerBackendPoolType left, Azure.ResourceManager.ContainerService.Models.ManagedClusterLoadBalancerBackendPoolType right) { throw null; } + public override string ToString() { throw null; } + } public partial class ManagedClusterLoadBalancerProfile { public ManagedClusterLoadBalancerProfile() { } public int? AllocatedOutboundPorts { get { throw null; } set { } } + public Azure.ResourceManager.ContainerService.Models.ManagedClusterLoadBalancerBackendPoolType? BackendPoolType { get { throw null; } set { } } public System.Collections.Generic.IList EffectiveOutboundIPs { get { throw null; } } public bool? EnableMultipleStandardLoadBalancers { get { throw null; } set { } } public int? IdleTimeoutInMinutes { get { throw null; } set { } } @@ -1076,6 +1660,18 @@ public ManagedClusterLoadBalancerProfileManagedOutboundIPs() { } public int? Count { get { throw null; } set { } } public int? CountIPv6 { get { throw null; } set { } } } + public partial class ManagedClusterMonitorProfileKubeStateMetrics + { + public ManagedClusterMonitorProfileKubeStateMetrics() { } + public string MetricAnnotationsAllowList { get { throw null; } set { } } + public string MetricLabelsAllowlist { get { throw null; } set { } } + } + public partial class ManagedClusterMonitorProfileMetrics + { + public ManagedClusterMonitorProfileMetrics(bool isEnabled) { } + public bool IsEnabled { get { throw null; } set { } } + public Azure.ResourceManager.ContainerService.Models.ManagedClusterMonitorProfileKubeStateMetrics KubeStateMetrics { get { throw null; } set { } } + } public partial class ManagedClusterNatGatewayProfile { public ManagedClusterNatGatewayProfile() { } @@ -1083,6 +1679,44 @@ public ManagedClusterNatGatewayProfile() { } public int? IdleTimeoutInMinutes { get { throw null; } set { } } public int? ManagedOutboundIPCount { get { throw null; } set { } } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ManagedClusterNodeOSUpgradeChannel : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ManagedClusterNodeOSUpgradeChannel(string value) { throw null; } + public static Azure.ResourceManager.ContainerService.Models.ManagedClusterNodeOSUpgradeChannel NodeImage { get { throw null; } } + public static Azure.ResourceManager.ContainerService.Models.ManagedClusterNodeOSUpgradeChannel None { get { throw null; } } + public static Azure.ResourceManager.ContainerService.Models.ManagedClusterNodeOSUpgradeChannel SecurityPatch { get { throw null; } } + public static Azure.ResourceManager.ContainerService.Models.ManagedClusterNodeOSUpgradeChannel Unmanaged { get { throw null; } } + public bool Equals(Azure.ResourceManager.ContainerService.Models.ManagedClusterNodeOSUpgradeChannel other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.ContainerService.Models.ManagedClusterNodeOSUpgradeChannel left, Azure.ResourceManager.ContainerService.Models.ManagedClusterNodeOSUpgradeChannel right) { throw null; } + public static implicit operator Azure.ResourceManager.ContainerService.Models.ManagedClusterNodeOSUpgradeChannel (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.ContainerService.Models.ManagedClusterNodeOSUpgradeChannel left, Azure.ResourceManager.ContainerService.Models.ManagedClusterNodeOSUpgradeChannel right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ManagedClusterNodeResourceGroupRestrictionLevel : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ManagedClusterNodeResourceGroupRestrictionLevel(string value) { throw null; } + public static Azure.ResourceManager.ContainerService.Models.ManagedClusterNodeResourceGroupRestrictionLevel ReadOnly { get { throw null; } } + public static Azure.ResourceManager.ContainerService.Models.ManagedClusterNodeResourceGroupRestrictionLevel Unrestricted { get { throw null; } } + public bool Equals(Azure.ResourceManager.ContainerService.Models.ManagedClusterNodeResourceGroupRestrictionLevel other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.ContainerService.Models.ManagedClusterNodeResourceGroupRestrictionLevel left, Azure.ResourceManager.ContainerService.Models.ManagedClusterNodeResourceGroupRestrictionLevel right) { throw null; } + public static implicit operator Azure.ResourceManager.ContainerService.Models.ManagedClusterNodeResourceGroupRestrictionLevel (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.ContainerService.Models.ManagedClusterNodeResourceGroupRestrictionLevel left, Azure.ResourceManager.ContainerService.Models.ManagedClusterNodeResourceGroupRestrictionLevel right) { throw null; } + public override string ToString() { throw null; } + } public partial class ManagedClusterOidcIssuerProfile { public ManagedClusterOidcIssuerProfile() { } @@ -1121,8 +1755,10 @@ public ManagedClusterPodIdentityProfile() { } private readonly int _dummyPrimitive; public ManagedClusterPodIdentityProvisioningState(string value) { throw null; } public static Azure.ResourceManager.ContainerService.Models.ManagedClusterPodIdentityProvisioningState Assigned { get { throw null; } } + public static Azure.ResourceManager.ContainerService.Models.ManagedClusterPodIdentityProvisioningState Canceled { get { throw null; } } public static Azure.ResourceManager.ContainerService.Models.ManagedClusterPodIdentityProvisioningState Deleting { get { throw null; } } public static Azure.ResourceManager.ContainerService.Models.ManagedClusterPodIdentityProvisioningState Failed { get { throw null; } } + public static Azure.ResourceManager.ContainerService.Models.ManagedClusterPodIdentityProvisioningState Succeeded { get { throw null; } } public static Azure.ResourceManager.ContainerService.Models.ManagedClusterPodIdentityProvisioningState Updating { get { throw null; } } public bool Equals(Azure.ResourceManager.ContainerService.Models.ManagedClusterPodIdentityProvisioningState other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] @@ -1148,6 +1784,14 @@ internal ManagedClusterPoolUpgradeProfileUpgradesItem() { } public bool? IsPreview { get { throw null; } } public string KubernetesVersion { get { throw null; } } } + public partial class ManagedClusterPropertiesForSnapshot + { + internal ManagedClusterPropertiesForSnapshot() { } + public bool? EnableRbac { get { throw null; } } + public string KubernetesVersion { get { throw null; } } + public Azure.ResourceManager.ContainerService.Models.ContainerServiceNetworkProfileForSnapshot NetworkProfile { get { throw null; } } + public Azure.ResourceManager.ContainerService.Models.ManagedClusterSku Sku { get { throw null; } } + } public partial class ManagedClusterRunCommandContent { public ManagedClusterRunCommandContent(string command) { } @@ -1170,7 +1814,11 @@ public partial class ManagedClusterSecurityProfile { public ManagedClusterSecurityProfile() { } public Azure.ResourceManager.ContainerService.Models.ManagedClusterSecurityProfileKeyVaultKms AzureKeyVaultKms { get { throw null; } set { } } + public System.Collections.Generic.IList CustomCATrustCertificates { get { throw null; } } public Azure.ResourceManager.ContainerService.Models.ManagedClusterSecurityProfileDefender Defender { get { throw null; } set { } } + public Azure.ResourceManager.ContainerService.Models.ManagedClusterSecurityProfileImageCleaner ImageCleaner { get { throw null; } set { } } + public bool? IsNodeRestrictionEnabled { get { throw null; } set { } } + public bool? IsWorkloadIdentityEnabled { get { throw null; } set { } } } public partial class ManagedClusterSecurityProfileAzureDefender { @@ -1184,6 +1832,12 @@ public ManagedClusterSecurityProfileDefender() { } public bool? IsSecurityMonitoringEnabled { get { throw null; } set { } } public Azure.Core.ResourceIdentifier LogAnalyticsWorkspaceResourceId { get { throw null; } set { } } } + public partial class ManagedClusterSecurityProfileImageCleaner + { + public ManagedClusterSecurityProfileImageCleaner() { } + public int? IntervalHours { get { throw null; } set { } } + public bool? IsEnabled { get { throw null; } set { } } + } public partial class ManagedClusterSecurityProfileKeyVaultKms { public ManagedClusterSecurityProfileKeyVaultKms() { } @@ -1242,11 +1896,47 @@ public ManagedClusterSku() { } public partial class ManagedClusterStorageProfile { public ManagedClusterStorageProfile() { } + public Azure.ResourceManager.ContainerService.Models.ManagedClusterStorageProfileDiskCsiDriver DiskCsiDriver { get { throw null; } set { } } public bool? IsBlobCsiDriverEnabled { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + [System.ObsoleteAttribute("This property is obsolete and will be removed in a future release", false)] public bool? IsDiskCsiDriverEnabled { get { throw null; } set { } } public bool? IsFileCsiDriverEnabled { get { throw null; } set { } } public bool? IsSnapshotControllerEnabled { get { throw null; } set { } } } + public partial class ManagedClusterStorageProfileDiskCsiDriver + { + public ManagedClusterStorageProfileDiskCsiDriver() { } + public bool? IsEnabled { get { throw null; } set { } } + public string Version { get { throw null; } set { } } + } + public partial class ManagedClusterVerticalPodAutoscaler + { + public ManagedClusterVerticalPodAutoscaler(bool isEnabled, Azure.ResourceManager.ContainerService.Models.ManagedClusterWorkloadAutoScalerControlledValue controlledValues, Azure.ResourceManager.ContainerService.Models.ManagedClusterVerticalPodAutoscalerUpdateMode updateMode) { } + public Azure.ResourceManager.ContainerService.Models.ManagedClusterWorkloadAutoScalerControlledValue ControlledValues { get { throw null; } set { } } + public bool IsEnabled { get { throw null; } set { } } + public Azure.ResourceManager.ContainerService.Models.ManagedClusterVerticalPodAutoscalerUpdateMode UpdateMode { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ManagedClusterVerticalPodAutoscalerUpdateMode : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ManagedClusterVerticalPodAutoscalerUpdateMode(string value) { throw null; } + public static Azure.ResourceManager.ContainerService.Models.ManagedClusterVerticalPodAutoscalerUpdateMode Auto { get { throw null; } } + public static Azure.ResourceManager.ContainerService.Models.ManagedClusterVerticalPodAutoscalerUpdateMode Initial { get { throw null; } } + public static Azure.ResourceManager.ContainerService.Models.ManagedClusterVerticalPodAutoscalerUpdateMode Off { get { throw null; } } + public static Azure.ResourceManager.ContainerService.Models.ManagedClusterVerticalPodAutoscalerUpdateMode Recreate { get { throw null; } } + public bool Equals(Azure.ResourceManager.ContainerService.Models.ManagedClusterVerticalPodAutoscalerUpdateMode other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.ContainerService.Models.ManagedClusterVerticalPodAutoscalerUpdateMode left, Azure.ResourceManager.ContainerService.Models.ManagedClusterVerticalPodAutoscalerUpdateMode right) { throw null; } + public static implicit operator Azure.ResourceManager.ContainerService.Models.ManagedClusterVerticalPodAutoscalerUpdateMode (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.ContainerService.Models.ManagedClusterVerticalPodAutoscalerUpdateMode left, Azure.ResourceManager.ContainerService.Models.ManagedClusterVerticalPodAutoscalerUpdateMode right) { throw null; } + public override string ToString() { throw null; } + } public partial class ManagedClusterWindowsProfile { public ManagedClusterWindowsProfile(string adminUsername) { } @@ -1257,6 +1947,30 @@ public ManagedClusterWindowsProfile(string adminUsername) { } public Azure.ResourceManager.ContainerService.Models.WindowsVmLicenseType? LicenseType { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ManagedClusterWorkloadAutoScalerControlledValue : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ManagedClusterWorkloadAutoScalerControlledValue(string value) { throw null; } + public static Azure.ResourceManager.ContainerService.Models.ManagedClusterWorkloadAutoScalerControlledValue RequestsAndLimits { get { throw null; } } + public static Azure.ResourceManager.ContainerService.Models.ManagedClusterWorkloadAutoScalerControlledValue RequestsOnly { get { throw null; } } + public bool Equals(Azure.ResourceManager.ContainerService.Models.ManagedClusterWorkloadAutoScalerControlledValue other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.ContainerService.Models.ManagedClusterWorkloadAutoScalerControlledValue left, Azure.ResourceManager.ContainerService.Models.ManagedClusterWorkloadAutoScalerControlledValue right) { throw null; } + public static implicit operator Azure.ResourceManager.ContainerService.Models.ManagedClusterWorkloadAutoScalerControlledValue (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.ContainerService.Models.ManagedClusterWorkloadAutoScalerControlledValue left, Azure.ResourceManager.ContainerService.Models.ManagedClusterWorkloadAutoScalerControlledValue right) { throw null; } + public override string ToString() { throw null; } + } + public partial class ManagedClusterWorkloadAutoScalerProfile + { + public ManagedClusterWorkloadAutoScalerProfile() { } + public bool? IsKedaEnabled { get { throw null; } set { } } + public Azure.ResourceManager.ContainerService.Models.ManagedClusterVerticalPodAutoscaler VerticalPodAutoscaler { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct ScaleDownMode : System.IEquatable { private readonly object _dummy; @@ -1316,6 +2030,7 @@ public ManagedClusterWindowsProfile(string adminUsername) { } private readonly object _dummy; private readonly int _dummyPrimitive; public SnapshotType(string value) { throw null; } + public static Azure.ResourceManager.ContainerService.Models.SnapshotType ManagedCluster { get { throw null; } } public static Azure.ResourceManager.ContainerService.Models.SnapshotType NodePool { get { throw null; } } public bool Equals(Azure.ResourceManager.ContainerService.Models.SnapshotType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] @@ -1411,6 +2126,7 @@ public WindowsGmsaProfile() { } private readonly object _dummy; private readonly int _dummyPrimitive; public WorkloadRuntime(string value) { throw null; } + public static Azure.ResourceManager.ContainerService.Models.WorkloadRuntime KataMshvVmIsolation { get { throw null; } } public static Azure.ResourceManager.ContainerService.Models.WorkloadRuntime OciContainer { get { throw null; } } public static Azure.ResourceManager.ContainerService.Models.WorkloadRuntime WasmWasi { get { throw null; } } public bool Equals(Azure.ResourceManager.ContainerService.Models.WorkloadRuntime other) { throw null; } diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Custom/ContainerServiceAgentPoolResource.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Custom/ContainerServiceAgentPoolResource.cs index ec1f788f1a8b0..38d71158e6c63 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Custom/ContainerServiceAgentPoolResource.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Custom/ContainerServiceAgentPoolResource.cs @@ -5,6 +5,7 @@ using System; using System.Collections.Generic; +using System.ComponentModel; using System.Globalization; using System.Threading; using System.Threading.Tasks; @@ -38,14 +39,59 @@ public partial class ContainerServiceAgentPoolResource : ArmResource /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The cancellation token to use. - public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + [Obsolete("This method is obsolete and will be removed in a future release", false)] + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken) + { + return await DeleteAsync(waitUntil, null, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes an agent pool in the specified managed cluster. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName} + /// + /// + /// Operation Id + /// AgentPools_Delete + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + [Obsolete("This method is obsolete and will be removed in a future release", false)] + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken) + { + return Delete(waitUntil, null, cancellationToken); + } + + /// + /// Deletes an agent pool in the specified managed cluster. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName} + /// + /// + /// Operation Id + /// AgentPools_Delete + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// ignore-pod-disruption-budget=true to delete those pods on a node without considering Pod Disruption Budget. + /// The cancellation token to use. + public virtual async Task DeleteAsync(WaitUntil waitUntil, bool? ignorePodDisruptionBudget = null, CancellationToken cancellationToken = default) { using var scope = _containerServiceAgentPoolAgentPoolsClientDiagnostics.CreateScope("ContainerServiceAgentPoolResource.Delete"); scope.Start(); try { - var response = await _containerServiceAgentPoolAgentPoolsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ContainerServiceArmOperation(_containerServiceAgentPoolAgentPoolsClientDiagnostics, Pipeline, _containerServiceAgentPoolAgentPoolsRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location, "2017-08-31"); + var response = await _containerServiceAgentPoolAgentPoolsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ignorePodDisruptionBudget, cancellationToken).ConfigureAwait(false); + var operation = new ContainerServiceArmOperation(_containerServiceAgentPoolAgentPoolsClientDiagnostics, Pipeline, _containerServiceAgentPoolAgentPoolsRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ignorePodDisruptionBudget).Request, response, OperationFinalStateVia.Location, "2017-08-31"); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -71,15 +117,16 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// ignore-pod-disruption-budget=true to delete those pods on a node without considering Pod Disruption Budget. /// The cancellation token to use. - public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) + public virtual ArmOperation Delete(WaitUntil waitUntil, bool? ignorePodDisruptionBudget = null, CancellationToken cancellationToken = default) { using var scope = _containerServiceAgentPoolAgentPoolsClientDiagnostics.CreateScope("ContainerServiceAgentPoolResource.Delete"); scope.Start(); try { - var response = _containerServiceAgentPoolAgentPoolsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new ContainerServiceArmOperation(_containerServiceAgentPoolAgentPoolsClientDiagnostics, Pipeline, _containerServiceAgentPoolAgentPoolsRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location, "2017-08-31"); + var response = _containerServiceAgentPoolAgentPoolsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ignorePodDisruptionBudget, cancellationToken); + var operation = new ContainerServiceArmOperation(_containerServiceAgentPoolAgentPoolsClientDiagnostics, Pipeline, _containerServiceAgentPoolAgentPoolsRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ignorePodDisruptionBudget).Request, response, OperationFinalStateVia.Location, "2017-08-31"); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Custom/ContainerServiceManagedClusterData.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Custom/ContainerServiceManagedClusterData.cs index c2bfe74b1b274..9c4c03981ca6c 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Custom/ContainerServiceManagedClusterData.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Custom/ContainerServiceManagedClusterData.cs @@ -44,5 +44,19 @@ public ManagedClusterSecurityProfileAzureDefender SecurityAzureDefender }; } } + + /// For more information see [setting the AKS cluster auto-upgrade channel](https://docs.microsoft.com/azure/aks/upgrade-cluster#set-auto-upgrade-channel). + [Obsolete("This property is obsolete and will be removed in a future release", false)] + [EditorBrowsable(EditorBrowsableState.Never)] + public UpgradeChannel? UpgradeChannel + { + get => AutoUpgradeProfile is null ? default : AutoUpgradeProfile.UpgradeChannel; + set + { + if (AutoUpgradeProfile is null) + AutoUpgradeProfile = new ManagedClusterAutoUpgradeProfile(); + AutoUpgradeProfile.UpgradeChannel = value; + } + } } } diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Custom/ContainerServiceManagedClusterResource.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Custom/ContainerServiceManagedClusterResource.cs index 2c7fdacad04fb..ec1d0fd2c893f 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Custom/ContainerServiceManagedClusterResource.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Custom/ContainerServiceManagedClusterResource.cs @@ -5,6 +5,7 @@ using System; using System.Collections.Generic; +using System.ComponentModel; using System.Globalization; using System.Threading; using System.Threading.Tasks; @@ -40,14 +41,59 @@ public partial class ContainerServiceManagedClusterResource : ArmResource /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The cancellation token to use. - public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + [Obsolete("This method is obsolete and will be removed in a future release", false)] + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken) + { + return await DeleteAsync(waitUntil, null, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes a managed cluster. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName} + /// + /// + /// Operation Id + /// ManagedClusters_Delete + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + [Obsolete("This method is obsolete and will be removed in a future release", false)] + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken) + { + return Delete(waitUntil, null, cancellationToken); + } + + /// + /// Deletes a managed cluster. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName} + /// + /// + /// Operation Id + /// ManagedClusters_Delete + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// ignore-pod-disruption-budget=true to delete those pods on a node without considering Pod Disruption Budget. + /// The cancellation token to use. + public virtual async Task DeleteAsync(WaitUntil waitUntil, bool? ignorePodDisruptionBudget = null, CancellationToken cancellationToken = default) { using var scope = _containerServiceManagedClusterManagedClustersClientDiagnostics.CreateScope("ContainerServiceManagedClusterResource.Delete"); scope.Start(); try { - var response = await _containerServiceManagedClusterManagedClustersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new ContainerServiceArmOperation(_containerServiceManagedClusterManagedClustersClientDiagnostics, Pipeline, _containerServiceManagedClusterManagedClustersRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location, "2017-08-31"); + var response = await _containerServiceManagedClusterManagedClustersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ignorePodDisruptionBudget, cancellationToken).ConfigureAwait(false); + var operation = new ContainerServiceArmOperation(_containerServiceManagedClusterManagedClustersClientDiagnostics, Pipeline, _containerServiceManagedClusterManagedClustersRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ignorePodDisruptionBudget).Request, response, OperationFinalStateVia.Location, "2017-08-31"); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -73,15 +119,16 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// ignore-pod-disruption-budget=true to delete those pods on a node without considering Pod Disruption Budget. /// The cancellation token to use. - public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) + public virtual ArmOperation Delete(WaitUntil waitUntil, bool? ignorePodDisruptionBudget = null, CancellationToken cancellationToken = default) { using var scope = _containerServiceManagedClusterManagedClustersClientDiagnostics.CreateScope("ContainerServiceManagedClusterResource.Delete"); scope.Start(); try { - var response = _containerServiceManagedClusterManagedClustersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new ContainerServiceArmOperation(_containerServiceManagedClusterManagedClustersClientDiagnostics, Pipeline, _containerServiceManagedClusterManagedClustersRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location, "2017-08-31"); + var response = _containerServiceManagedClusterManagedClustersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ignorePodDisruptionBudget, cancellationToken); + var operation = new ContainerServiceArmOperation(_containerServiceManagedClusterManagedClustersClientDiagnostics, Pipeline, _containerServiceManagedClusterManagedClustersRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ignorePodDisruptionBudget).Request, response, OperationFinalStateVia.Location, "2017-08-31"); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Custom/Models/ContainerServiceMaintenanceWindow.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Custom/Models/ContainerServiceMaintenanceWindow.cs new file mode 100644 index 0000000000000..4e796510e810d --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Custom/Models/ContainerServiceMaintenanceWindow.cs @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using Azure.Core; + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// Maintenance window used to configure scheduled auto-upgrade for a Managed Cluster. + public partial class ContainerServiceMaintenanceWindow + { + /// The date the maintenance window activates. If the current date is before this date, the maintenance window is inactive and will not be used for upgrades. If not specified, the maintenance window will be active right away. + [CodeGenMember("StartOn")] + public string StartDate { get; set; } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Custom/Models/ManagedClusterSecurityProfile.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Custom/Models/ManagedClusterSecurityProfile.cs new file mode 100644 index 0000000000000..3429cf4e2f623 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Custom/Models/ManagedClusterSecurityProfile.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using Azure.Core; + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// Security profile for the container service cluster. + [CodeGenSuppress("WorkloadIdentityEnabled")] + [CodeGenSuppress("NodeRestrictionEnabled")] + public partial class ManagedClusterSecurityProfile + { + /// Whether to enable Workload Identity. + public bool? IsWorkloadIdentityEnabled + { + get => WorkloadIdentity is null ? default : WorkloadIdentity.Enabled; + set + { + if (WorkloadIdentity is null) + WorkloadIdentity = new ManagedClusterSecurityProfileWorkloadIdentity(); + WorkloadIdentity.Enabled = value; + } + } + + /// Whether to enable Node Restriction. + public bool? IsNodeRestrictionEnabled + { + get => NodeRestriction is null ? default : NodeRestriction.Enabled; + set + { + if (NodeRestriction is null) + NodeRestriction = new ManagedClusterSecurityProfileNodeRestriction(); + NodeRestriction.Enabled = value; + } + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Custom/Models/ManagedClusterStorageProfile.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Custom/Models/ManagedClusterStorageProfile.cs index faa5c31988ad3..f26c2d7f18f62 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Custom/Models/ManagedClusterStorageProfile.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Custom/Models/ManagedClusterStorageProfile.cs @@ -2,6 +2,8 @@ // Licensed under the MIT License. using Azure.Core; +using System; +using System.ComponentModel; #nullable disable @@ -12,6 +14,8 @@ namespace Azure.ResourceManager.ContainerService.Models public partial class ManagedClusterStorageProfile { /// Whether to enable AzureDisk CSI Driver. The default value is true. + [Obsolete("This property is obsolete and will be removed in a future release", false)] + [EditorBrowsable(EditorBrowsableState.Never)] public bool? IsDiskCsiDriverEnabled { get => DiskCsiDriver is null ? default : DiskCsiDriver.IsEnabled; diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Custom/Models/ManagedClusterWorkloadAutoScalerProfile.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Custom/Models/ManagedClusterWorkloadAutoScalerProfile.cs new file mode 100644 index 0000000000000..b2692b76a30d1 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Custom/Models/ManagedClusterWorkloadAutoScalerProfile.cs @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using Azure.Core; + +#nullable disable + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// Workload Auto-scaler profile for the managed cluster. + [CodeGenSuppress("KedaEnabled")] + public partial class ManagedClusterWorkloadAutoScalerProfile + { + /// Whether to enable KEDA. + public bool? IsKedaEnabled + { + get => Keda is null ? default(bool?) : Keda.Enabled; + set + { + Keda = value.HasValue ? new ManagedClusterWorkloadAutoScalerProfileKeda(value.Value) : null; + } + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/AgentPoolSnapshotData.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/AgentPoolSnapshotData.cs index 59a62b3cfdc0d..ab85e0e9333b2 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/AgentPoolSnapshotData.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/AgentPoolSnapshotData.cs @@ -33,7 +33,7 @@ public AgentPoolSnapshotData(AzureLocation location) : base(location) /// The version of Kubernetes. /// The version of node image. /// The operating system type. The default is Linux. - /// Specifies the OS SKU used by the agent pool. The default is Ubuntu if OSType is Linux. The default is Windows2019 when Kubernetes <= 1.24 or Windows2022 when Kubernetes >= 1.25 if OSType is Windows. + /// Specifies the OS SKU used by the agent pool. If not specified, the default is Ubuntu if OSType=Linux or Windows2019 if OSType=Windows. And the default Windows OSSKU will be changed to Windows2022 after Windows2019 is deprecated. /// The size of the VM. /// Whether to use a FIPS-enabled OS. internal AgentPoolSnapshotData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ContainerServiceCreationData creationData, SnapshotType? snapshotType, string kubernetesVersion, string nodeImageVersion, ContainerServiceOSType? osType, ContainerServiceOSSku? osSku, string vmSize, bool? enableFips) : base(id, name, resourceType, systemData, tags, location) @@ -70,7 +70,7 @@ public ResourceIdentifier CreationDataSourceResourceId public string NodeImageVersion { get; } /// The operating system type. The default is Linux. public ContainerServiceOSType? OSType { get; } - /// Specifies the OS SKU used by the agent pool. The default is Ubuntu if OSType is Linux. The default is Windows2019 when Kubernetes <= 1.24 or Windows2022 when Kubernetes >= 1.25 if OSType is Windows. + /// Specifies the OS SKU used by the agent pool. If not specified, the default is Ubuntu if OSType=Linux or Windows2019 if OSType=Windows. And the default Windows OSSKU will be changed to Windows2022 after Windows2019 is deprecated. public ContainerServiceOSSku? OSSku { get; } /// The size of the VM. public string VmSize { get; } diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceAgentPoolData.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceAgentPoolData.cs index 9238c95c692cc..7a4b5d07b525f 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceAgentPoolData.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceAgentPoolData.cs @@ -35,25 +35,27 @@ public ContainerServiceAgentPoolData() /// The default is 'Ephemeral' if the VM supports it and has a cache disk larger than the requested OSDiskSizeGB. Otherwise, defaults to 'Managed'. May not be changed after creation. For more information see [Ephemeral OS](https://docs.microsoft.com/azure/aks/cluster-configuration#ephemeral-os). /// Determines the placement of emptyDir volumes, container runtime data root, and Kubelet ephemeral storage. /// Determines the type of workload a node can run. + /// A base64-encoded string which will be written to /etc/motd after decoding. This allows customization of the message of the day for Linux nodes. It must not be specified for Windows nodes. It must be a static string (i.e., will be printed raw and not be executed as a script). /// If this is not specified, a VNET and subnet will be generated and used. If no podSubnetID is specified, this applies to nodes and pods, otherwise it applies to just nodes. This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}. /// If omitted, pod IPs are statically assigned on the node subnet (see vnetSubnetID for more details). This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}. /// The maximum number of pods that can run on a node. /// The operating system type. The default is Linux. - /// Specifies the OS SKU used by the agent pool. The default is Ubuntu if OSType is Linux. The default is Windows2019 when Kubernetes <= 1.24 or Windows2022 when Kubernetes >= 1.25 if OSType is Windows. + /// Specifies the OS SKU used by the agent pool. If not specified, the default is Ubuntu if OSType=Linux or Windows2019 if OSType=Windows. And the default Windows OSSKU will be changed to Windows2022 after Windows2019 is deprecated. /// The maximum number of nodes for auto-scaling. /// The minimum number of nodes for auto-scaling. /// Whether to enable auto-scaler. /// This also effects the cluster autoscaler behavior. If not specified, it defaults to Delete. /// The type of Agent Pool. /// A cluster must have at least one 'System' Agent Pool at all times. For additional information on agent pool restrictions and best practices, see: https://docs.microsoft.com/azure/aks/use-system-pools. - /// Both patch version <major.minor.patch> (e.g. 1.20.13) and <major.minor> (e.g. 1.20) are supported. When <major.minor> is specified, the latest supported GA patch version is chosen automatically. Updating the cluster with the same <major.minor> once it has been created (e.g. 1.14.x -> 1.14) will not trigger an upgrade, even if a newer patch version is available. As a best practice, you should upgrade all node pools in an AKS cluster to the same Kubernetes version. The node pool version must have the same major version as the control plane. The node pool minor version must be within two minor versions of the control plane version. The node pool version cannot be greater than the control plane version. For more information see [upgrading a node pool](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#upgrade-a-node-pool). - /// If orchestratorVersion is a fully specified version <major.minor.patch>, this field will be exactly equal to it. If orchestratorVersion is <major.minor>, this field will contain the full <major.minor.patch> version being used. + /// Both patch version <major.minor.patch> and <major.minor> are supported. When <major.minor> is specified, the latest supported patch version is chosen automatically. Updating the agent pool with the same <major.minor> once it has been created will not trigger an upgrade, even if a newer patch version is available. As a best practice, you should upgrade all node pools in an AKS cluster to the same Kubernetes version. The node pool version must have the same major version as the control plane. The node pool minor version must be within two minor versions of the control plane version. The node pool version cannot be greater than the control plane version. For more information see [upgrading a node pool](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#upgrade-a-node-pool). + /// If orchestratorVersion was a fully specified version <major.minor.patch>, this field will be exactly equal to it. If orchestratorVersion was <major.minor>, this field will contain the full <major.minor.patch> version being used. /// The version of node image. /// Settings for upgrading the agentpool. /// The current deployment or provisioning state. /// When an Agent Pool is first created it is initially Running. The Agent Pool can be stopped by setting this field to Stopped. A stopped Agent Pool stops all of its VMs and does not accrue billing charges. An Agent Pool can only be stopped if it is Running and provisioning state is Succeeded. /// The list of Availability zones to use for nodes. This can only be specified if the AgentPoolType property is 'VirtualMachineScaleSets'. /// Some scenarios may require nodes in a node pool to receive their own dedicated public IP addresses. A common scenario is for gaming workloads, where a console needs to make a direct connection to a cloud virtual machine to minimize hops. For more information see [assigning a public IP per node](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#assign-a-public-ip-per-node-for-your-node-pools). The default is false. + /// When set to true, AKS adds a label to the node indicating that the feature is enabled and deploys a daemonset along with host services to sync custom certificate authorities from user-provided list of base64 encoded certificates into node trust stores. Defaults to false. /// This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIPPrefixName}. /// The Virtual Machine Scale Set priority. If not specified, the default is 'Regular'. /// This cannot be specified unless the scaleSetPriority is 'Spot'. If not specified, the default is 'Delete'. @@ -69,8 +71,11 @@ public ContainerServiceAgentPoolData() /// See [Add a FIPS-enabled node pool](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#add-a-fips-enabled-node-pool-preview) for more details. /// GPUInstanceProfile to be used to specify GPU MIG instance profile for supported GPU VM SKU. /// CreationData to be used to specify the source Snapshot ID if the node pool will be created/upgraded using a snapshot. + /// AKS will associate the specified agent pool with the Capacity Reservation Group. /// This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}. For more information see [Azure dedicated hosts](https://docs.microsoft.com/azure/virtual-machines/dedicated-hosts). - internal ContainerServiceAgentPoolData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, int? count, string vmSize, int? osDiskSizeInGB, ContainerServiceOSDiskType? osDiskType, KubeletDiskType? kubeletDiskType, WorkloadRuntime? workloadRuntime, ResourceIdentifier vnetSubnetId, ResourceIdentifier podSubnetId, int? maxPods, ContainerServiceOSType? osType, ContainerServiceOSSku? osSku, int? maxCount, int? minCount, bool? enableAutoScaling, ScaleDownMode? scaleDownMode, AgentPoolType? typePropertiesType, AgentPoolMode? mode, string orchestratorVersion, string currentOrchestratorVersion, string nodeImageVersion, AgentPoolUpgradeSettings upgradeSettings, string provisioningState, ContainerServicePowerState powerState, IList availabilityZones, bool? enableNodePublicIP, ResourceIdentifier nodePublicIPPrefixId, ScaleSetPriority? scaleSetPriority, ScaleSetEvictionPolicy? scaleSetEvictionPolicy, float? spotMaxPrice, IDictionary tags, IDictionary nodeLabels, IList nodeTaints, ResourceIdentifier proximityPlacementGroupId, KubeletConfig kubeletConfig, LinuxOSConfig linuxOSConfig, bool? enableEncryptionAtHost, bool? enableUltraSsd, bool? enableFips, GpuInstanceProfile? gpuInstanceProfile, ContainerServiceCreationData creationData, ResourceIdentifier hostGroupId) : base(id, name, resourceType, systemData) + /// The Windows agent pool's specific profile. + /// Network-related settings of an agent pool. + internal ContainerServiceAgentPoolData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, int? count, string vmSize, int? osDiskSizeInGB, ContainerServiceOSDiskType? osDiskType, KubeletDiskType? kubeletDiskType, WorkloadRuntime? workloadRuntime, string messageOfTheDay, ResourceIdentifier vnetSubnetId, ResourceIdentifier podSubnetId, int? maxPods, ContainerServiceOSType? osType, ContainerServiceOSSku? osSku, int? maxCount, int? minCount, bool? enableAutoScaling, ScaleDownMode? scaleDownMode, AgentPoolType? typePropertiesType, AgentPoolMode? mode, string orchestratorVersion, string currentOrchestratorVersion, string nodeImageVersion, AgentPoolUpgradeSettings upgradeSettings, string provisioningState, ContainerServicePowerState powerState, IList availabilityZones, bool? enableNodePublicIP, bool? enableCustomCATrust, ResourceIdentifier nodePublicIPPrefixId, ScaleSetPriority? scaleSetPriority, ScaleSetEvictionPolicy? scaleSetEvictionPolicy, float? spotMaxPrice, IDictionary tags, IDictionary nodeLabels, IList nodeTaints, ResourceIdentifier proximityPlacementGroupId, KubeletConfig kubeletConfig, LinuxOSConfig linuxOSConfig, bool? enableEncryptionAtHost, bool? enableUltraSsd, bool? enableFips, GpuInstanceProfile? gpuInstanceProfile, ContainerServiceCreationData creationData, ResourceIdentifier capacityReservationGroupId, ResourceIdentifier hostGroupId, AgentPoolWindowsProfile windowsProfile, AgentPoolNetworkProfile networkProfile) : base(id, name, resourceType, systemData) { Count = count; VmSize = vmSize; @@ -78,6 +83,7 @@ internal ContainerServiceAgentPoolData(ResourceIdentifier id, string name, Resou OSDiskType = osDiskType; KubeletDiskType = kubeletDiskType; WorkloadRuntime = workloadRuntime; + MessageOfTheDay = messageOfTheDay; VnetSubnetId = vnetSubnetId; PodSubnetId = podSubnetId; MaxPods = maxPods; @@ -97,6 +103,7 @@ internal ContainerServiceAgentPoolData(ResourceIdentifier id, string name, Resou PowerState = powerState; AvailabilityZones = availabilityZones; EnableNodePublicIP = enableNodePublicIP; + EnableCustomCATrust = enableCustomCATrust; NodePublicIPPrefixId = nodePublicIPPrefixId; ScaleSetPriority = scaleSetPriority; ScaleSetEvictionPolicy = scaleSetEvictionPolicy; @@ -112,7 +119,10 @@ internal ContainerServiceAgentPoolData(ResourceIdentifier id, string name, Resou EnableFips = enableFips; GpuInstanceProfile = gpuInstanceProfile; CreationData = creationData; + CapacityReservationGroupId = capacityReservationGroupId; HostGroupId = hostGroupId; + WindowsProfile = windowsProfile; + NetworkProfile = networkProfile; } /// Number of agents (VMs) to host docker containers. Allowed values must be in the range of 0 to 1000 (inclusive) for user pools and in the range of 1 to 1000 (inclusive) for system pools. The default value is 1. @@ -127,6 +137,8 @@ internal ContainerServiceAgentPoolData(ResourceIdentifier id, string name, Resou public KubeletDiskType? KubeletDiskType { get; set; } /// Determines the type of workload a node can run. public WorkloadRuntime? WorkloadRuntime { get; set; } + /// A base64-encoded string which will be written to /etc/motd after decoding. This allows customization of the message of the day for Linux nodes. It must not be specified for Windows nodes. It must be a static string (i.e., will be printed raw and not be executed as a script). + public string MessageOfTheDay { get; set; } /// If this is not specified, a VNET and subnet will be generated and used. If no podSubnetID is specified, this applies to nodes and pods, otherwise it applies to just nodes. This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}. public ResourceIdentifier VnetSubnetId { get; set; } /// If omitted, pod IPs are statically assigned on the node subnet (see vnetSubnetID for more details). This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}. @@ -135,7 +147,7 @@ internal ContainerServiceAgentPoolData(ResourceIdentifier id, string name, Resou public int? MaxPods { get; set; } /// The operating system type. The default is Linux. public ContainerServiceOSType? OSType { get; set; } - /// Specifies the OS SKU used by the agent pool. The default is Ubuntu if OSType is Linux. The default is Windows2019 when Kubernetes <= 1.24 or Windows2022 when Kubernetes >= 1.25 if OSType is Windows. + /// Specifies the OS SKU used by the agent pool. If not specified, the default is Ubuntu if OSType=Linux or Windows2019 if OSType=Windows. And the default Windows OSSKU will be changed to Windows2022 after Windows2019 is deprecated. public ContainerServiceOSSku? OSSku { get; set; } /// The maximum number of nodes for auto-scaling. public int? MaxCount { get; set; } @@ -149,9 +161,9 @@ internal ContainerServiceAgentPoolData(ResourceIdentifier id, string name, Resou public AgentPoolType? TypePropertiesType { get; set; } /// A cluster must have at least one 'System' Agent Pool at all times. For additional information on agent pool restrictions and best practices, see: https://docs.microsoft.com/azure/aks/use-system-pools. public AgentPoolMode? Mode { get; set; } - /// Both patch version <major.minor.patch> (e.g. 1.20.13) and <major.minor> (e.g. 1.20) are supported. When <major.minor> is specified, the latest supported GA patch version is chosen automatically. Updating the cluster with the same <major.minor> once it has been created (e.g. 1.14.x -> 1.14) will not trigger an upgrade, even if a newer patch version is available. As a best practice, you should upgrade all node pools in an AKS cluster to the same Kubernetes version. The node pool version must have the same major version as the control plane. The node pool minor version must be within two minor versions of the control plane version. The node pool version cannot be greater than the control plane version. For more information see [upgrading a node pool](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#upgrade-a-node-pool). + /// Both patch version <major.minor.patch> and <major.minor> are supported. When <major.minor> is specified, the latest supported patch version is chosen automatically. Updating the agent pool with the same <major.minor> once it has been created will not trigger an upgrade, even if a newer patch version is available. As a best practice, you should upgrade all node pools in an AKS cluster to the same Kubernetes version. The node pool version must have the same major version as the control plane. The node pool minor version must be within two minor versions of the control plane version. The node pool version cannot be greater than the control plane version. For more information see [upgrading a node pool](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#upgrade-a-node-pool). public string OrchestratorVersion { get; set; } - /// If orchestratorVersion is a fully specified version <major.minor.patch>, this field will be exactly equal to it. If orchestratorVersion is <major.minor>, this field will contain the full <major.minor.patch> version being used. + /// If orchestratorVersion was a fully specified version <major.minor.patch>, this field will be exactly equal to it. If orchestratorVersion was <major.minor>, this field will contain the full <major.minor.patch> version being used. public string CurrentOrchestratorVersion { get; } /// The version of node image. public string NodeImageVersion { get; } @@ -189,6 +201,8 @@ public ContainerServiceStateCode? PowerStateCode public IList AvailabilityZones { get; } /// Some scenarios may require nodes in a node pool to receive their own dedicated public IP addresses. A common scenario is for gaming workloads, where a console needs to make a direct connection to a cloud virtual machine to minimize hops. For more information see [assigning a public IP per node](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#assign-a-public-ip-per-node-for-your-node-pools). The default is false. public bool? EnableNodePublicIP { get; set; } + /// When set to true, AKS adds a label to the node indicating that the feature is enabled and deploys a daemonset along with host services to sync custom certificate authorities from user-provided list of base64 encoded certificates into node trust stores. Defaults to false. + public bool? EnableCustomCATrust { get; set; } /// This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIPPrefixName}. public ResourceIdentifier NodePublicIPPrefixId { get; set; } /// The Virtual Machine Scale Set priority. If not specified, the default is 'Regular'. @@ -231,7 +245,25 @@ public ResourceIdentifier CreationDataSourceResourceId } } + /// AKS will associate the specified agent pool with the Capacity Reservation Group. + public ResourceIdentifier CapacityReservationGroupId { get; set; } /// This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}. For more information see [Azure dedicated hosts](https://docs.microsoft.com/azure/virtual-machines/dedicated-hosts). public ResourceIdentifier HostGroupId { get; set; } + /// The Windows agent pool's specific profile. + internal AgentPoolWindowsProfile WindowsProfile { get; set; } + /// The default value is false. Outbound NAT can only be disabled if the cluster outboundType is NAT Gateway and the Windows agent pool does not have node public IP enabled. + public bool? DisableOutboundNat + { + get => WindowsProfile is null ? default : WindowsProfile.DisableOutboundNat; + set + { + if (WindowsProfile is null) + WindowsProfile = new AgentPoolWindowsProfile(); + WindowsProfile.DisableOutboundNat = value; + } + } + + /// Network-related settings of an agent pool. + public AgentPoolNetworkProfile NetworkProfile { get; set; } } } diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceAgentPoolResource.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceAgentPoolResource.cs index 68e50826b1af4..6fcc27b9d98d3 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceAgentPoolResource.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceAgentPoolResource.cs @@ -158,6 +158,74 @@ public virtual Response Get(CancellationToken } } + /// + /// Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, an error is returned. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclusters/{resourceName}/agentPools/{agentPoolName}/abort + /// + /// + /// Operation Id + /// AgentPools_AbortLatestOperation + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual async Task AbortLatestOperationAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _containerServiceAgentPoolAgentPoolsClientDiagnostics.CreateScope("ContainerServiceAgentPoolResource.AbortLatestOperation"); + scope.Start(); + try + { + var response = await _containerServiceAgentPoolAgentPoolsRestClient.AbortLatestOperationAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new ContainerServiceArmOperation(_containerServiceAgentPoolAgentPoolsClientDiagnostics, Pipeline, _containerServiceAgentPoolAgentPoolsRestClient.CreateAbortLatestOperationRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, an error is returned. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclusters/{resourceName}/agentPools/{agentPoolName}/abort + /// + /// + /// Operation Id + /// AgentPools_AbortLatestOperation + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual ArmOperation AbortLatestOperation(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _containerServiceAgentPoolAgentPoolsClientDiagnostics.CreateScope("ContainerServiceAgentPoolResource.AbortLatestOperation"); + scope.Start(); + try + { + var response = _containerServiceAgentPoolAgentPoolsRestClient.AbortLatestOperation(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new ContainerServiceArmOperation(_containerServiceAgentPoolAgentPoolsClientDiagnostics, Pipeline, _containerServiceAgentPoolAgentPoolsRestClient.CreateAbortLatestOperationRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + /// /// Add a tag to the current resource. /// diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceFleetCollection.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceFleetCollection.cs new file mode 100644 index 0000000000000..6b8a4a356a853 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceFleetCollection.cs @@ -0,0 +1,345 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; +using Azure.ResourceManager.Resources; + +namespace Azure.ResourceManager.ContainerService +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetContainerServiceFleets method from an instance of . + /// + public partial class ContainerServiceFleetCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _containerServiceFleetFleetsClientDiagnostics; + private readonly FleetsRestOperations _containerServiceFleetFleetsRestClient; + + /// Initializes a new instance of the class for mocking. + protected ContainerServiceFleetCollection() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the parent resource that is the target of operations. + internal ContainerServiceFleetCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _containerServiceFleetFleetsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ContainerService", ContainerServiceFleetResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ContainerServiceFleetResource.ResourceType, out string containerServiceFleetFleetsApiVersion); + _containerServiceFleetFleetsRestClient = new FleetsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, containerServiceFleetFleetsApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceGroupResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceGroupResource.ResourceType), nameof(id)); + } + + /// + /// Creates or updates a Fleet. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName} + /// + /// + /// Operation Id + /// Fleets_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the Fleet resource. + /// The Fleet to create or update. + /// Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. + /// Set to '*' to allow a new resource to be created and prevent updating an existing resource. Other values will result in a 412 Pre-condition Failed response. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string fleetName, ContainerServiceFleetData data, string ifMatch = null, string ifNoneMatch = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(fleetName, nameof(fleetName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _containerServiceFleetFleetsClientDiagnostics.CreateScope("ContainerServiceFleetCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = await _containerServiceFleetFleetsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, fleetName, data, ifMatch, ifNoneMatch, cancellationToken).ConfigureAwait(false); + var operation = new ContainerServiceArmOperation(new ContainerServiceFleetOperationSource(Client), _containerServiceFleetFleetsClientDiagnostics, Pipeline, _containerServiceFleetFleetsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, fleetName, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Creates or updates a Fleet. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName} + /// + /// + /// Operation Id + /// Fleets_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the Fleet resource. + /// The Fleet to create or update. + /// Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. + /// Set to '*' to allow a new resource to be created and prevent updating an existing resource. Other values will result in a 412 Pre-condition Failed response. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string fleetName, ContainerServiceFleetData data, string ifMatch = null, string ifNoneMatch = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(fleetName, nameof(fleetName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _containerServiceFleetFleetsClientDiagnostics.CreateScope("ContainerServiceFleetCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = _containerServiceFleetFleetsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, fleetName, data, ifMatch, ifNoneMatch, cancellationToken); + var operation = new ContainerServiceArmOperation(new ContainerServiceFleetOperationSource(Client), _containerServiceFleetFleetsClientDiagnostics, Pipeline, _containerServiceFleetFleetsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, fleetName, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets a Fleet. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName} + /// + /// + /// Operation Id + /// Fleets_Get + /// + /// + /// + /// The name of the Fleet resource. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetAsync(string fleetName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(fleetName, nameof(fleetName)); + + using var scope = _containerServiceFleetFleetsClientDiagnostics.CreateScope("ContainerServiceFleetCollection.Get"); + scope.Start(); + try + { + var response = await _containerServiceFleetFleetsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, fleetName, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new ContainerServiceFleetResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets a Fleet. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName} + /// + /// + /// Operation Id + /// Fleets_Get + /// + /// + /// + /// The name of the Fleet resource. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string fleetName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(fleetName, nameof(fleetName)); + + using var scope = _containerServiceFleetFleetsClientDiagnostics.CreateScope("ContainerServiceFleetCollection.Get"); + scope.Start(); + try + { + var response = _containerServiceFleetFleetsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, fleetName, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new ContainerServiceFleetResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Lists fleets in the specified subscription and resource group. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets + /// + /// + /// Operation Id + /// Fleets_ListByResourceGroup + /// + /// + /// + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _containerServiceFleetFleetsRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _containerServiceFleetFleetsRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); + return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new ContainerServiceFleetResource(Client, ContainerServiceFleetData.DeserializeContainerServiceFleetData(e)), _containerServiceFleetFleetsClientDiagnostics, Pipeline, "ContainerServiceFleetCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Lists fleets in the specified subscription and resource group. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets + /// + /// + /// Operation Id + /// Fleets_ListByResourceGroup + /// + /// + /// + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _containerServiceFleetFleetsRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _containerServiceFleetFleetsRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); + return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new ContainerServiceFleetResource(Client, ContainerServiceFleetData.DeserializeContainerServiceFleetData(e)), _containerServiceFleetFleetsClientDiagnostics, Pipeline, "ContainerServiceFleetCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName} + /// + /// + /// Operation Id + /// Fleets_Get + /// + /// + /// + /// The name of the Fleet resource. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> ExistsAsync(string fleetName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(fleetName, nameof(fleetName)); + + using var scope = _containerServiceFleetFleetsClientDiagnostics.CreateScope("ContainerServiceFleetCollection.Exists"); + scope.Start(); + try + { + var response = await _containerServiceFleetFleetsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, fleetName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName} + /// + /// + /// Operation Id + /// Fleets_Get + /// + /// + /// + /// The name of the Fleet resource. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string fleetName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(fleetName, nameof(fleetName)); + + using var scope = _containerServiceFleetFleetsClientDiagnostics.CreateScope("ContainerServiceFleetCollection.Exists"); + scope.Start(); + try + { + var response = _containerServiceFleetFleetsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, fleetName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + { + return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceFleetData.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceFleetData.cs new file mode 100644 index 0000000000000..c160db1acdd8c --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceFleetData.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure; +using Azure.Core; +using Azure.ResourceManager.ContainerService.Models; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.ContainerService +{ + /// A class representing the ContainerServiceFleet data model. + public partial class ContainerServiceFleetData : TrackedResourceData + { + /// Initializes a new instance of ContainerServiceFleetData. + /// The location. + public ContainerServiceFleetData(AzureLocation location) : base(location) + { + } + + /// Initializes a new instance of ContainerServiceFleetData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// Resource Etag. + /// The FleetHubProfile configures the Fleet's hub. + /// The provisioning state of the last accepted operation. + internal ContainerServiceFleetData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, ContainerServiceFleetHubProfile hubProfile, ContainerServiceFleetProvisioningState? provisioningState) : base(id, name, resourceType, systemData, tags, location) + { + ETag = etag; + HubProfile = hubProfile; + ProvisioningState = provisioningState; + } + + /// Resource Etag. + public ETag? ETag { get; } + /// The FleetHubProfile configures the Fleet's hub. + public ContainerServiceFleetHubProfile HubProfile { get; set; } + /// The provisioning state of the last accepted operation. + public ContainerServiceFleetProvisioningState? ProvisioningState { get; } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceFleetMemberCollection.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceFleetMemberCollection.cs new file mode 100644 index 0000000000000..36c5809500b14 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceFleetMemberCollection.cs @@ -0,0 +1,344 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.ContainerService +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetContainerServiceFleetMembers method from an instance of . + /// + public partial class ContainerServiceFleetMemberCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _containerServiceFleetMemberFleetMembersClientDiagnostics; + private readonly FleetMembersRestOperations _containerServiceFleetMemberFleetMembersRestClient; + + /// Initializes a new instance of the class for mocking. + protected ContainerServiceFleetMemberCollection() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the parent resource that is the target of operations. + internal ContainerServiceFleetMemberCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _containerServiceFleetMemberFleetMembersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ContainerService", ContainerServiceFleetMemberResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ContainerServiceFleetMemberResource.ResourceType, out string containerServiceFleetMemberFleetMembersApiVersion); + _containerServiceFleetMemberFleetMembersRestClient = new FleetMembersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, containerServiceFleetMemberFleetMembersApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ContainerServiceFleetResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ContainerServiceFleetResource.ResourceType), nameof(id)); + } + + /// + /// A member contains a reference to an existing Kubernetes cluster. Creating a member makes the referenced cluster join the Fleet. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName} + /// + /// + /// Operation Id + /// FleetMembers_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the Fleet member resource. + /// The Fleet member to create or update. + /// Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. + /// Set to '*' to allow a new resource to be created and prevent updating an existing resource. Other values will result in a 412 Pre-condition Failed response. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string fleetMemberName, ContainerServiceFleetMemberData data, string ifMatch = null, string ifNoneMatch = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(fleetMemberName, nameof(fleetMemberName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _containerServiceFleetMemberFleetMembersClientDiagnostics.CreateScope("ContainerServiceFleetMemberCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = await _containerServiceFleetMemberFleetMembersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, fleetMemberName, data, ifMatch, ifNoneMatch, cancellationToken).ConfigureAwait(false); + var operation = new ContainerServiceArmOperation(new ContainerServiceFleetMemberOperationSource(Client), _containerServiceFleetMemberFleetMembersClientDiagnostics, Pipeline, _containerServiceFleetMemberFleetMembersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, fleetMemberName, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// A member contains a reference to an existing Kubernetes cluster. Creating a member makes the referenced cluster join the Fleet. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName} + /// + /// + /// Operation Id + /// FleetMembers_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the Fleet member resource. + /// The Fleet member to create or update. + /// Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. + /// Set to '*' to allow a new resource to be created and prevent updating an existing resource. Other values will result in a 412 Pre-condition Failed response. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string fleetMemberName, ContainerServiceFleetMemberData data, string ifMatch = null, string ifNoneMatch = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(fleetMemberName, nameof(fleetMemberName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _containerServiceFleetMemberFleetMembersClientDiagnostics.CreateScope("ContainerServiceFleetMemberCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = _containerServiceFleetMemberFleetMembersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, fleetMemberName, data, ifMatch, ifNoneMatch, cancellationToken); + var operation = new ContainerServiceArmOperation(new ContainerServiceFleetMemberOperationSource(Client), _containerServiceFleetMemberFleetMembersClientDiagnostics, Pipeline, _containerServiceFleetMemberFleetMembersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, fleetMemberName, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets a Fleet member. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName} + /// + /// + /// Operation Id + /// FleetMembers_Get + /// + /// + /// + /// The name of the Fleet member resource. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetAsync(string fleetMemberName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(fleetMemberName, nameof(fleetMemberName)); + + using var scope = _containerServiceFleetMemberFleetMembersClientDiagnostics.CreateScope("ContainerServiceFleetMemberCollection.Get"); + scope.Start(); + try + { + var response = await _containerServiceFleetMemberFleetMembersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, fleetMemberName, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new ContainerServiceFleetMemberResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets a Fleet member. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName} + /// + /// + /// Operation Id + /// FleetMembers_Get + /// + /// + /// + /// The name of the Fleet member resource. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string fleetMemberName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(fleetMemberName, nameof(fleetMemberName)); + + using var scope = _containerServiceFleetMemberFleetMembersClientDiagnostics.CreateScope("ContainerServiceFleetMemberCollection.Get"); + scope.Start(); + try + { + var response = _containerServiceFleetMemberFleetMembersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, fleetMemberName, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new ContainerServiceFleetMemberResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Lists the members of a fleet. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members + /// + /// + /// Operation Id + /// FleetMembers_ListByFleet + /// + /// + /// + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _containerServiceFleetMemberFleetMembersRestClient.CreateListByFleetRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _containerServiceFleetMemberFleetMembersRestClient.CreateListByFleetNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new ContainerServiceFleetMemberResource(Client, ContainerServiceFleetMemberData.DeserializeContainerServiceFleetMemberData(e)), _containerServiceFleetMemberFleetMembersClientDiagnostics, Pipeline, "ContainerServiceFleetMemberCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Lists the members of a fleet. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members + /// + /// + /// Operation Id + /// FleetMembers_ListByFleet + /// + /// + /// + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _containerServiceFleetMemberFleetMembersRestClient.CreateListByFleetRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _containerServiceFleetMemberFleetMembersRestClient.CreateListByFleetNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new ContainerServiceFleetMemberResource(Client, ContainerServiceFleetMemberData.DeserializeContainerServiceFleetMemberData(e)), _containerServiceFleetMemberFleetMembersClientDiagnostics, Pipeline, "ContainerServiceFleetMemberCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName} + /// + /// + /// Operation Id + /// FleetMembers_Get + /// + /// + /// + /// The name of the Fleet member resource. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> ExistsAsync(string fleetMemberName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(fleetMemberName, nameof(fleetMemberName)); + + using var scope = _containerServiceFleetMemberFleetMembersClientDiagnostics.CreateScope("ContainerServiceFleetMemberCollection.Exists"); + scope.Start(); + try + { + var response = await _containerServiceFleetMemberFleetMembersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, fleetMemberName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName} + /// + /// + /// Operation Id + /// FleetMembers_Get + /// + /// + /// + /// The name of the Fleet member resource. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string fleetMemberName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(fleetMemberName, nameof(fleetMemberName)); + + using var scope = _containerServiceFleetMemberFleetMembersClientDiagnostics.CreateScope("ContainerServiceFleetMemberCollection.Exists"); + scope.Start(); + try + { + var response = _containerServiceFleetMemberFleetMembersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, fleetMemberName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + { + return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceFleetMemberData.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceFleetMemberData.cs new file mode 100644 index 0000000000000..82e736caeacbb --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceFleetMemberData.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using Azure; +using Azure.Core; +using Azure.ResourceManager.ContainerService.Models; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.ContainerService +{ + /// A class representing the ContainerServiceFleetMember data model. + public partial class ContainerServiceFleetMemberData : ResourceData + { + /// Initializes a new instance of ContainerServiceFleetMemberData. + public ContainerServiceFleetMemberData() + { + } + + /// Initializes a new instance of ContainerServiceFleetMemberData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The ARM resource id of the cluster that joins the Fleet. Must be a valid Azure resource id. e.g.: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{clusterName}'. + /// The provisioning state of the last accepted operation. + /// Resource Etag. + internal ContainerServiceFleetMemberData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ResourceIdentifier clusterResourceId, ContainerServiceFleetMemberProvisioningState? provisioningState, ETag? etag) : base(id, name, resourceType, systemData) + { + ClusterResourceId = clusterResourceId; + ProvisioningState = provisioningState; + ETag = etag; + } + + /// The ARM resource id of the cluster that joins the Fleet. Must be a valid Azure resource id. e.g.: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{clusterName}'. + public ResourceIdentifier ClusterResourceId { get; set; } + /// The provisioning state of the last accepted operation. + public ContainerServiceFleetMemberProvisioningState? ProvisioningState { get; } + /// Resource Etag. + public ETag? ETag { get; } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceFleetMemberResource.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceFleetMemberResource.cs new file mode 100644 index 0000000000000..0fb4d63818cb5 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceFleetMemberResource.cs @@ -0,0 +1,303 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.ContainerService +{ + /// + /// A Class representing a ContainerServiceFleetMember along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetContainerServiceFleetMemberResource method. + /// Otherwise you can get one from its parent resource using the GetContainerServiceFleetMember method. + /// + public partial class ContainerServiceFleetMemberResource : ArmResource + { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string fleetName, string fleetMemberName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName}"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _containerServiceFleetMemberFleetMembersClientDiagnostics; + private readonly FleetMembersRestOperations _containerServiceFleetMemberFleetMembersRestClient; + private readonly ContainerServiceFleetMemberData _data; + + /// Initializes a new instance of the class for mocking. + protected ContainerServiceFleetMemberResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal ContainerServiceFleetMemberResource(ArmClient client, ContainerServiceFleetMemberData data) : this(client, data.Id) + { + HasData = true; + _data = data; + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the resource that is the target of operations. + internal ContainerServiceFleetMemberResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _containerServiceFleetMemberFleetMembersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ContainerService", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string containerServiceFleetMemberFleetMembersApiVersion); + _containerServiceFleetMemberFleetMembersRestClient = new FleetMembersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, containerServiceFleetMemberFleetMembersApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.ContainerService/fleets/members"; + + /// Gets whether or not the current instance has data. + public virtual bool HasData { get; } + + /// Gets the data representing this Feature. + /// Throws if there is no data loaded in the current instance. + public virtual ContainerServiceFleetMemberData Data + { + get + { + if (!HasData) + throw new InvalidOperationException("The current instance does not have data, you must call Get first."); + return _data; + } + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); + } + + /// + /// Gets a Fleet member. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName} + /// + /// + /// Operation Id + /// FleetMembers_Get + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using var scope = _containerServiceFleetMemberFleetMembersClientDiagnostics.CreateScope("ContainerServiceFleetMemberResource.Get"); + scope.Start(); + try + { + var response = await _containerServiceFleetMemberFleetMembersRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new ContainerServiceFleetMemberResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets a Fleet member. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName} + /// + /// + /// Operation Id + /// FleetMembers_Get + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using var scope = _containerServiceFleetMemberFleetMembersClientDiagnostics.CreateScope("ContainerServiceFleetMemberResource.Get"); + scope.Start(); + try + { + var response = _containerServiceFleetMemberFleetMembersRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new ContainerServiceFleetMemberResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Deleting a Fleet member results in the member cluster leaving fleet. The Member azure resource is deleted upon success. The underlying cluster is not deleted. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName} + /// + /// + /// Operation Id + /// FleetMembers_Delete + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. + /// The cancellation token to use. + public virtual async Task DeleteAsync(WaitUntil waitUntil, string ifMatch = null, CancellationToken cancellationToken = default) + { + using var scope = _containerServiceFleetMemberFleetMembersClientDiagnostics.CreateScope("ContainerServiceFleetMemberResource.Delete"); + scope.Start(); + try + { + var response = await _containerServiceFleetMemberFleetMembersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken).ConfigureAwait(false); + var operation = new ContainerServiceArmOperation(_containerServiceFleetMemberFleetMembersClientDiagnostics, Pipeline, _containerServiceFleetMemberFleetMembersRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Deleting a Fleet member results in the member cluster leaving fleet. The Member azure resource is deleted upon success. The underlying cluster is not deleted. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName} + /// + /// + /// Operation Id + /// FleetMembers_Delete + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. + /// The cancellation token to use. + public virtual ArmOperation Delete(WaitUntil waitUntil, string ifMatch = null, CancellationToken cancellationToken = default) + { + using var scope = _containerServiceFleetMemberFleetMembersClientDiagnostics.CreateScope("ContainerServiceFleetMemberResource.Delete"); + scope.Start(); + try + { + var response = _containerServiceFleetMemberFleetMembersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken); + var operation = new ContainerServiceArmOperation(_containerServiceFleetMemberFleetMembersClientDiagnostics, Pipeline, _containerServiceFleetMemberFleetMembersRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// A member contains a reference to an existing Kubernetes cluster. Creating a member makes the referenced cluster join the Fleet. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName} + /// + /// + /// Operation Id + /// FleetMembers_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The Fleet member to create or update. + /// Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. + /// Set to '*' to allow a new resource to be created and prevent updating an existing resource. Other values will result in a 412 Pre-condition Failed response. + /// The cancellation token to use. + /// is null. + public virtual async Task> UpdateAsync(WaitUntil waitUntil, ContainerServiceFleetMemberData data, string ifMatch = null, string ifNoneMatch = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _containerServiceFleetMemberFleetMembersClientDiagnostics.CreateScope("ContainerServiceFleetMemberResource.Update"); + scope.Start(); + try + { + var response = await _containerServiceFleetMemberFleetMembersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, ifNoneMatch, cancellationToken).ConfigureAwait(false); + var operation = new ContainerServiceArmOperation(new ContainerServiceFleetMemberOperationSource(Client), _containerServiceFleetMemberFleetMembersClientDiagnostics, Pipeline, _containerServiceFleetMemberFleetMembersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// A member contains a reference to an existing Kubernetes cluster. Creating a member makes the referenced cluster join the Fleet. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName} + /// + /// + /// Operation Id + /// FleetMembers_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The Fleet member to create or update. + /// Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. + /// Set to '*' to allow a new resource to be created and prevent updating an existing resource. Other values will result in a 412 Pre-condition Failed response. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation Update(WaitUntil waitUntil, ContainerServiceFleetMemberData data, string ifMatch = null, string ifNoneMatch = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _containerServiceFleetMemberFleetMembersClientDiagnostics.CreateScope("ContainerServiceFleetMemberResource.Update"); + scope.Start(); + try + { + var response = _containerServiceFleetMemberFleetMembersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, ifNoneMatch, cancellationToken); + var operation = new ContainerServiceArmOperation(new ContainerServiceFleetMemberOperationSource(Client), _containerServiceFleetMemberFleetMembersClientDiagnostics, Pipeline, _containerServiceFleetMemberFleetMembersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceFleetResource.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceFleetResource.cs new file mode 100644 index 0000000000000..64b183413ec1f --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceFleetResource.cs @@ -0,0 +1,719 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; +using Azure.ResourceManager.ContainerService.Models; +using Azure.ResourceManager.Resources; + +namespace Azure.ResourceManager.ContainerService +{ + /// + /// A Class representing a ContainerServiceFleet along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetContainerServiceFleetResource method. + /// Otherwise you can get one from its parent resource using the GetContainerServiceFleet method. + /// + public partial class ContainerServiceFleetResource : ArmResource + { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string fleetName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _containerServiceFleetFleetsClientDiagnostics; + private readonly FleetsRestOperations _containerServiceFleetFleetsRestClient; + private readonly ContainerServiceFleetData _data; + + /// Initializes a new instance of the class for mocking. + protected ContainerServiceFleetResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal ContainerServiceFleetResource(ArmClient client, ContainerServiceFleetData data) : this(client, data.Id) + { + HasData = true; + _data = data; + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the resource that is the target of operations. + internal ContainerServiceFleetResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _containerServiceFleetFleetsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ContainerService", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string containerServiceFleetFleetsApiVersion); + _containerServiceFleetFleetsRestClient = new FleetsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, containerServiceFleetFleetsApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.ContainerService/fleets"; + + /// Gets whether or not the current instance has data. + public virtual bool HasData { get; } + + /// Gets the data representing this Feature. + /// Throws if there is no data loaded in the current instance. + public virtual ContainerServiceFleetData Data + { + get + { + if (!HasData) + throw new InvalidOperationException("The current instance does not have data, you must call Get first."); + return _data; + } + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); + } + + /// Gets a collection of ContainerServiceFleetMemberResources in the ContainerServiceFleet. + /// An object representing collection of ContainerServiceFleetMemberResources and their operations over a ContainerServiceFleetMemberResource. + public virtual ContainerServiceFleetMemberCollection GetContainerServiceFleetMembers() + { + return GetCachedClient(Client => new ContainerServiceFleetMemberCollection(Client, Id)); + } + + /// + /// Gets a Fleet member. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName} + /// + /// + /// Operation Id + /// FleetMembers_Get + /// + /// + /// + /// The name of the Fleet member resource. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual async Task> GetContainerServiceFleetMemberAsync(string fleetMemberName, CancellationToken cancellationToken = default) + { + return await GetContainerServiceFleetMembers().GetAsync(fleetMemberName, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets a Fleet member. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName} + /// + /// + /// Operation Id + /// FleetMembers_Get + /// + /// + /// + /// The name of the Fleet member resource. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual Response GetContainerServiceFleetMember(string fleetMemberName, CancellationToken cancellationToken = default) + { + return GetContainerServiceFleetMembers().Get(fleetMemberName, cancellationToken); + } + + /// + /// Gets a Fleet. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName} + /// + /// + /// Operation Id + /// Fleets_Get + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using var scope = _containerServiceFleetFleetsClientDiagnostics.CreateScope("ContainerServiceFleetResource.Get"); + scope.Start(); + try + { + var response = await _containerServiceFleetFleetsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new ContainerServiceFleetResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets a Fleet. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName} + /// + /// + /// Operation Id + /// Fleets_Get + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using var scope = _containerServiceFleetFleetsClientDiagnostics.CreateScope("ContainerServiceFleetResource.Get"); + scope.Start(); + try + { + var response = _containerServiceFleetFleetsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new ContainerServiceFleetResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Deletes a Fleet. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName} + /// + /// + /// Operation Id + /// Fleets_Delete + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. + /// The cancellation token to use. + public virtual async Task DeleteAsync(WaitUntil waitUntil, string ifMatch = null, CancellationToken cancellationToken = default) + { + using var scope = _containerServiceFleetFleetsClientDiagnostics.CreateScope("ContainerServiceFleetResource.Delete"); + scope.Start(); + try + { + var response = await _containerServiceFleetFleetsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ifMatch, cancellationToken).ConfigureAwait(false); + var operation = new ContainerServiceArmOperation(_containerServiceFleetFleetsClientDiagnostics, Pipeline, _containerServiceFleetFleetsRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ifMatch).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Deletes a Fleet. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName} + /// + /// + /// Operation Id + /// Fleets_Delete + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. + /// The cancellation token to use. + public virtual ArmOperation Delete(WaitUntil waitUntil, string ifMatch = null, CancellationToken cancellationToken = default) + { + using var scope = _containerServiceFleetFleetsClientDiagnostics.CreateScope("ContainerServiceFleetResource.Delete"); + scope.Start(); + try + { + var response = _containerServiceFleetFleetsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ifMatch, cancellationToken); + var operation = new ContainerServiceArmOperation(_containerServiceFleetFleetsClientDiagnostics, Pipeline, _containerServiceFleetFleetsRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ifMatch).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Patches a fleet resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName} + /// + /// + /// Operation Id + /// Fleets_Update + /// + /// + /// + /// The properties of a Fleet to update. + /// Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. + /// The cancellation token to use. + /// is null. + public virtual async Task> UpdateAsync(ContainerServiceFleetPatch patch, string ifMatch = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(patch, nameof(patch)); + + using var scope = _containerServiceFleetFleetsClientDiagnostics.CreateScope("ContainerServiceFleetResource.Update"); + scope.Start(); + try + { + var response = await _containerServiceFleetFleetsRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, patch, ifMatch, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new ContainerServiceFleetResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Patches a fleet resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName} + /// + /// + /// Operation Id + /// Fleets_Update + /// + /// + /// + /// The properties of a Fleet to update. + /// Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. + /// The cancellation token to use. + /// is null. + public virtual Response Update(ContainerServiceFleetPatch patch, string ifMatch = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(patch, nameof(patch)); + + using var scope = _containerServiceFleetFleetsClientDiagnostics.CreateScope("ContainerServiceFleetResource.Update"); + scope.Start(); + try + { + var response = _containerServiceFleetFleetsRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, patch, ifMatch, cancellationToken); + return Response.FromValue(new ContainerServiceFleetResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Lists the user credentials of a Fleet. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/listCredentials + /// + /// + /// Operation Id + /// Fleets_ListCredentials + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetCredentialsAsync(CancellationToken cancellationToken = default) + { + using var scope = _containerServiceFleetFleetsClientDiagnostics.CreateScope("ContainerServiceFleetResource.GetCredentials"); + scope.Start(); + try + { + var response = await _containerServiceFleetFleetsRestClient.ListCredentialsAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Lists the user credentials of a Fleet. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/listCredentials + /// + /// + /// Operation Id + /// Fleets_ListCredentials + /// + /// + /// + /// The cancellation token to use. + public virtual Response GetCredentials(CancellationToken cancellationToken = default) + { + using var scope = _containerServiceFleetFleetsClientDiagnostics.CreateScope("ContainerServiceFleetResource.GetCredentials"); + scope.Start(); + try + { + var response = _containerServiceFleetFleetsRestClient.ListCredentials(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Add a tag to the current resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName} + /// + /// + /// Operation Id + /// Fleets_Get + /// + /// + /// + /// The key for the tag. + /// The value for the tag. + /// The cancellation token to use. + /// or is null. + public virtual async Task> AddTagAsync(string key, string value, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(key, nameof(key)); + Argument.AssertNotNull(value, nameof(value)); + + using var scope = _containerServiceFleetFleetsClientDiagnostics.CreateScope("ContainerServiceFleetResource.AddTag"); + scope.Start(); + try + { + if (await CanUseTagResourceAsync(cancellationToken: cancellationToken).ConfigureAwait(false)) + { + var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); + originalTags.Value.Data.TagValues[key] = value; + await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); + var originalResponse = await _containerServiceFleetFleetsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new ContainerServiceFleetResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; + var patch = new ContainerServiceFleetPatch(); + foreach (var tag in current.Tags) + { + patch.Tags.Add(tag); + } + patch.Tags[key] = value; + var result = await UpdateAsync(patch, cancellationToken: cancellationToken).ConfigureAwait(false); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Add a tag to the current resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName} + /// + /// + /// Operation Id + /// Fleets_Get + /// + /// + /// + /// The key for the tag. + /// The value for the tag. + /// The cancellation token to use. + /// or is null. + public virtual Response AddTag(string key, string value, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(key, nameof(key)); + Argument.AssertNotNull(value, nameof(value)); + + using var scope = _containerServiceFleetFleetsClientDiagnostics.CreateScope("ContainerServiceFleetResource.AddTag"); + scope.Start(); + try + { + if (CanUseTagResource(cancellationToken: cancellationToken)) + { + var originalTags = GetTagResource().Get(cancellationToken); + originalTags.Value.Data.TagValues[key] = value; + GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); + var originalResponse = _containerServiceFleetFleetsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + return Response.FromValue(new ContainerServiceFleetResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = Get(cancellationToken: cancellationToken).Value.Data; + var patch = new ContainerServiceFleetPatch(); + foreach (var tag in current.Tags) + { + patch.Tags.Add(tag); + } + patch.Tags[key] = value; + var result = Update(patch, cancellationToken: cancellationToken); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Replace the tags on the resource with the given set. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName} + /// + /// + /// Operation Id + /// Fleets_Get + /// + /// + /// + /// The set of tags to use as replacement. + /// The cancellation token to use. + /// is null. + public virtual async Task> SetTagsAsync(IDictionary tags, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(tags, nameof(tags)); + + using var scope = _containerServiceFleetFleetsClientDiagnostics.CreateScope("ContainerServiceFleetResource.SetTags"); + scope.Start(); + try + { + if (await CanUseTagResourceAsync(cancellationToken: cancellationToken).ConfigureAwait(false)) + { + await GetTagResource().DeleteAsync(WaitUntil.Completed, cancellationToken: cancellationToken).ConfigureAwait(false); + var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); + originalTags.Value.Data.TagValues.ReplaceWith(tags); + await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); + var originalResponse = await _containerServiceFleetFleetsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new ContainerServiceFleetResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; + var patch = new ContainerServiceFleetPatch(); + patch.Tags.ReplaceWith(tags); + var result = await UpdateAsync(patch, cancellationToken: cancellationToken).ConfigureAwait(false); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Replace the tags on the resource with the given set. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName} + /// + /// + /// Operation Id + /// Fleets_Get + /// + /// + /// + /// The set of tags to use as replacement. + /// The cancellation token to use. + /// is null. + public virtual Response SetTags(IDictionary tags, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(tags, nameof(tags)); + + using var scope = _containerServiceFleetFleetsClientDiagnostics.CreateScope("ContainerServiceFleetResource.SetTags"); + scope.Start(); + try + { + if (CanUseTagResource(cancellationToken: cancellationToken)) + { + GetTagResource().Delete(WaitUntil.Completed, cancellationToken: cancellationToken); + var originalTags = GetTagResource().Get(cancellationToken); + originalTags.Value.Data.TagValues.ReplaceWith(tags); + GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); + var originalResponse = _containerServiceFleetFleetsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + return Response.FromValue(new ContainerServiceFleetResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = Get(cancellationToken: cancellationToken).Value.Data; + var patch = new ContainerServiceFleetPatch(); + patch.Tags.ReplaceWith(tags); + var result = Update(patch, cancellationToken: cancellationToken); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Removes a tag by key from the resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName} + /// + /// + /// Operation Id + /// Fleets_Get + /// + /// + /// + /// The key for the tag. + /// The cancellation token to use. + /// is null. + public virtual async Task> RemoveTagAsync(string key, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(key, nameof(key)); + + using var scope = _containerServiceFleetFleetsClientDiagnostics.CreateScope("ContainerServiceFleetResource.RemoveTag"); + scope.Start(); + try + { + if (await CanUseTagResourceAsync(cancellationToken: cancellationToken).ConfigureAwait(false)) + { + var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); + originalTags.Value.Data.TagValues.Remove(key); + await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); + var originalResponse = await _containerServiceFleetFleetsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new ContainerServiceFleetResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; + var patch = new ContainerServiceFleetPatch(); + foreach (var tag in current.Tags) + { + patch.Tags.Add(tag); + } + patch.Tags.Remove(key); + var result = await UpdateAsync(patch, cancellationToken: cancellationToken).ConfigureAwait(false); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Removes a tag by key from the resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName} + /// + /// + /// Operation Id + /// Fleets_Get + /// + /// + /// + /// The key for the tag. + /// The cancellation token to use. + /// is null. + public virtual Response RemoveTag(string key, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(key, nameof(key)); + + using var scope = _containerServiceFleetFleetsClientDiagnostics.CreateScope("ContainerServiceFleetResource.RemoveTag"); + scope.Start(); + try + { + if (CanUseTagResource(cancellationToken: cancellationToken)) + { + var originalTags = GetTagResource().Get(cancellationToken); + originalTags.Value.Data.TagValues.Remove(key); + GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); + var originalResponse = _containerServiceFleetFleetsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + return Response.FromValue(new ContainerServiceFleetResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = Get(cancellationToken: cancellationToken).Value.Data; + var patch = new ContainerServiceFleetPatch(); + foreach (var tag in current.Tags) + { + patch.Tags.Add(tag); + } + patch.Tags.Remove(key); + var result = Update(patch, cancellationToken: cancellationToken); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceMaintenanceConfigurationData.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceMaintenanceConfigurationData.cs index 1f4d238a8520e..4fe3d7cc4392f 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceMaintenanceConfigurationData.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceMaintenanceConfigurationData.cs @@ -29,15 +29,19 @@ public ContainerServiceMaintenanceConfigurationData() /// The systemData. /// If two array entries specify the same day of the week, the applied configuration is the union of times in both entries. /// Time slots on which upgrade is not allowed. - internal ContainerServiceMaintenanceConfigurationData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IList timesInWeek, IList notAllowedTimes) : base(id, name, resourceType, systemData) + /// Maintenance window for the maintenance configuration. + internal ContainerServiceMaintenanceConfigurationData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IList timesInWeek, IList notAllowedTimes, ContainerServiceMaintenanceWindow maintenanceWindow) : base(id, name, resourceType, systemData) { TimesInWeek = timesInWeek; NotAllowedTimes = notAllowedTimes; + MaintenanceWindow = maintenanceWindow; } /// If two array entries specify the same day of the week, the applied configuration is the union of times in both entries. public IList TimesInWeek { get; } /// Time slots on which upgrade is not allowed. public IList NotAllowedTimes { get; } + /// Maintenance window for the maintenance configuration. + public ContainerServiceMaintenanceWindow MaintenanceWindow { get; set; } } } diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceManagedClusterData.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceManagedClusterData.cs index c2e9b0d749362..6289e08b72700 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceManagedClusterData.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceManagedClusterData.cs @@ -38,9 +38,10 @@ public ContainerServiceManagedClusterData(AzureLocation location) : base(locatio /// The identity of the managed cluster, if configured. Current supported identity types: None, SystemAssigned, UserAssigned. /// The current provisioning state. /// The Power State of the cluster. + /// CreationData to be used to specify the source Snapshot ID if the cluster will be created/upgraded using a snapshot. /// The max number of agent pools for the managed cluster. - /// Both patch version <major.minor.patch> (e.g. 1.20.13) and <major.minor> (e.g. 1.20) are supported. When <major.minor> is specified, the latest supported GA patch version is chosen automatically. Updating the cluster with the same <major.minor> once it has been created (e.g. 1.14.x -> 1.14) will not trigger an upgrade, even if a newer patch version is available. When you upgrade a supported AKS cluster, Kubernetes minor versions cannot be skipped. All upgrades must be performed sequentially by major version number. For example, upgrades between 1.14.x -> 1.15.x or 1.15.x -> 1.16.x are allowed, however 1.14.x -> 1.16.x is not allowed. See [upgrading an AKS cluster](https://docs.microsoft.com/azure/aks/upgrade-cluster) for more details. - /// If kubernetesVersion was a fully specified version <major.minor.patch>, this field will be exactly equal to it. If kubernetesVersion was <major.minor>, this field will contain the full <major.minor.patch> version being used. + /// When you upgrade a supported AKS cluster, Kubernetes minor versions cannot be skipped. All upgrades must be performed sequentially by major version number. For example, upgrades between 1.14.x -> 1.15.x or 1.15.x -> 1.16.x are allowed, however 1.14.x -> 1.16.x is not allowed. See [upgrading an AKS cluster](https://docs.microsoft.com/azure/aks/upgrade-cluster) for more details. + /// The version of Kubernetes the Managed Cluster is running. /// This cannot be updated once the Managed Cluster has been created. /// This cannot be updated once the Managed Cluster has been created. /// The FQDN of the master pool. @@ -54,8 +55,10 @@ public ContainerServiceManagedClusterData(AzureLocation location) : base(locatio /// See [use AAD pod identity](https://docs.microsoft.com/azure/aks/use-azure-ad-pod-identity) for more details on AAD pod identity integration. /// The OIDC issuer profile of the Managed Cluster. /// The name of the resource group containing agent pool nodes. + /// The node resource group configuration profile. /// Whether to enable Kubernetes Role-Based Access Control. - /// (DEPRECATING) Whether to enable Kubernetes pod security policy (preview). This feature is set for removal on October 15th, 2020. Learn more at aka.ms/aks/azpodpolicy. + /// (DEPRECATED) Whether to enable Kubernetes pod security policy (preview). PodSecurityPolicy was deprecated in Kubernetes v1.21, and removed from Kubernetes in v1.25. Learn more at https://aka.ms/k8s/psp and https://aka.ms/aks/psp. + /// The default value is false. It can be enabled/disabled on creation and updating of the managed cluster. See [https://aka.ms/NamespaceARMResource](https://aka.ms/NamespaceARMResource) for more details on Namespace as a ARM Resource. /// The network configuration profile. /// The Azure Active Directory configuration. /// The auto upgrade configuration. @@ -68,14 +71,19 @@ public ContainerServiceManagedClusterData(AzureLocation location) : base(locatio /// Configurations for provisioning the cluster with HTTP proxy servers. /// Security profile for the managed cluster. /// Storage profile for the managed cluster. + /// Ingress profile for the managed cluster. /// Allow or deny public network access for AKS. - internal ContainerServiceManagedClusterData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ManagedClusterSku sku, ExtendedLocation extendedLocation, ManagedServiceIdentity identity, string provisioningState, ContainerServicePowerState powerState, int? maxAgentPools, string kubernetesVersion, string currentKubernetesVersion, string dnsPrefix, string fqdnSubdomain, string fqdn, string privateFqdn, string azurePortalFqdn, IList agentPoolProfiles, ContainerServiceLinuxProfile linuxProfile, ManagedClusterWindowsProfile windowsProfile, ManagedClusterServicePrincipalProfile servicePrincipalProfile, IDictionary addonProfiles, ManagedClusterPodIdentityProfile podIdentityProfile, ManagedClusterOidcIssuerProfile oidcIssuerProfile, string nodeResourceGroup, bool? enableRbac, bool? enablePodSecurityPolicy, ContainerServiceNetworkProfile networkProfile, ManagedClusterAadProfile aadProfile, ManagedClusterAutoUpgradeProfile autoUpgradeProfile, ManagedClusterAutoScalerProfile autoScalerProfile, ManagedClusterApiServerAccessProfile apiServerAccessProfile, ResourceIdentifier diskEncryptionSetId, IDictionary identityProfile, IList privateLinkResources, bool? disableLocalAccounts, ManagedClusterHttpProxyConfig httpProxyConfig, ManagedClusterSecurityProfile securityProfile, ManagedClusterStorageProfile storageProfile, ContainerServicePublicNetworkAccess? publicNetworkAccess) : base(id, name, resourceType, systemData, tags, location) + /// Workload Auto-scaler profile for the managed cluster. + /// Prometheus addon profile for the container service cluster. + /// The guardrails profile holds all the guardrails information for a given cluster. + internal ContainerServiceManagedClusterData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ManagedClusterSku sku, ExtendedLocation extendedLocation, ManagedServiceIdentity identity, string provisioningState, ContainerServicePowerState powerState, ContainerServiceCreationData creationData, int? maxAgentPools, string kubernetesVersion, string currentKubernetesVersion, string dnsPrefix, string fqdnSubdomain, string fqdn, string privateFqdn, string azurePortalFqdn, IList agentPoolProfiles, ContainerServiceLinuxProfile linuxProfile, ManagedClusterWindowsProfile windowsProfile, ManagedClusterServicePrincipalProfile servicePrincipalProfile, IDictionary addonProfiles, ManagedClusterPodIdentityProfile podIdentityProfile, ManagedClusterOidcIssuerProfile oidcIssuerProfile, string nodeResourceGroup, ManagedClusterNodeResourceGroupProfile nodeResourceGroupProfile, bool? enableRbac, bool? enablePodSecurityPolicy, bool? enableNamespaceResources, ContainerServiceNetworkProfile networkProfile, ManagedClusterAadProfile aadProfile, ManagedClusterAutoUpgradeProfile autoUpgradeProfile, ManagedClusterAutoScalerProfile autoScalerProfile, ManagedClusterApiServerAccessProfile apiServerAccessProfile, ResourceIdentifier diskEncryptionSetId, IDictionary identityProfile, IList privateLinkResources, bool? disableLocalAccounts, ManagedClusterHttpProxyConfig httpProxyConfig, ManagedClusterSecurityProfile securityProfile, ManagedClusterStorageProfile storageProfile, ManagedClusterIngressProfile ingressProfile, ContainerServicePublicNetworkAccess? publicNetworkAccess, ManagedClusterWorkloadAutoScalerProfile workloadAutoScalerProfile, ManagedClusterAzureMonitorProfile azureMonitorProfile, ManagedClusterGuardrailsProfile guardrailsProfile) : base(id, name, resourceType, systemData, tags, location) { Sku = sku; ExtendedLocation = extendedLocation; Identity = identity; ProvisioningState = provisioningState; PowerState = powerState; + CreationData = creationData; MaxAgentPools = maxAgentPools; KubernetesVersion = kubernetesVersion; CurrentKubernetesVersion = currentKubernetesVersion; @@ -92,8 +100,10 @@ internal ContainerServiceManagedClusterData(ResourceIdentifier id, string name, PodIdentityProfile = podIdentityProfile; OidcIssuerProfile = oidcIssuerProfile; NodeResourceGroup = nodeResourceGroup; + NodeResourceGroupProfile = nodeResourceGroupProfile; EnableRbac = enableRbac; EnablePodSecurityPolicy = enablePodSecurityPolicy; + EnableNamespaceResources = enableNamespaceResources; NetworkProfile = networkProfile; AadProfile = aadProfile; AutoUpgradeProfile = autoUpgradeProfile; @@ -106,7 +116,11 @@ internal ContainerServiceManagedClusterData(ResourceIdentifier id, string name, HttpProxyConfig = httpProxyConfig; SecurityProfile = securityProfile; StorageProfile = storageProfile; + IngressProfile = ingressProfile; PublicNetworkAccess = publicNetworkAccess; + WorkloadAutoScalerProfile = workloadAutoScalerProfile; + AzureMonitorProfile = azureMonitorProfile; + GuardrailsProfile = guardrailsProfile; } /// The managed cluster SKU. @@ -125,11 +139,25 @@ public ContainerServiceStateCode? PowerStateCode get => PowerState?.Code; } + /// CreationData to be used to specify the source Snapshot ID if the cluster will be created/upgraded using a snapshot. + internal ContainerServiceCreationData CreationData { get; set; } + /// This is the ARM ID of the source object to be used to create the target object. + public ResourceIdentifier CreationDataSourceResourceId + { + get => CreationData is null ? default : CreationData.SourceResourceId; + set + { + if (CreationData is null) + CreationData = new ContainerServiceCreationData(); + CreationData.SourceResourceId = value; + } + } + /// The max number of agent pools for the managed cluster. public int? MaxAgentPools { get; } - /// Both patch version <major.minor.patch> (e.g. 1.20.13) and <major.minor> (e.g. 1.20) are supported. When <major.minor> is specified, the latest supported GA patch version is chosen automatically. Updating the cluster with the same <major.minor> once it has been created (e.g. 1.14.x -> 1.14) will not trigger an upgrade, even if a newer patch version is available. When you upgrade a supported AKS cluster, Kubernetes minor versions cannot be skipped. All upgrades must be performed sequentially by major version number. For example, upgrades between 1.14.x -> 1.15.x or 1.15.x -> 1.16.x are allowed, however 1.14.x -> 1.16.x is not allowed. See [upgrading an AKS cluster](https://docs.microsoft.com/azure/aks/upgrade-cluster) for more details. + /// When you upgrade a supported AKS cluster, Kubernetes minor versions cannot be skipped. All upgrades must be performed sequentially by major version number. For example, upgrades between 1.14.x -> 1.15.x or 1.15.x -> 1.16.x are allowed, however 1.14.x -> 1.16.x is not allowed. See [upgrading an AKS cluster](https://docs.microsoft.com/azure/aks/upgrade-cluster) for more details. public string KubernetesVersion { get; set; } - /// If kubernetesVersion was a fully specified version <major.minor.patch>, this field will be exactly equal to it. If kubernetesVersion was <major.minor>, this field will contain the full <major.minor.patch> version being used. + /// The version of Kubernetes the Managed Cluster is running. public string CurrentKubernetesVersion { get; } /// This cannot be updated once the Managed Cluster has been created. public string DnsPrefix { get; set; } @@ -157,28 +185,32 @@ public ContainerServiceStateCode? PowerStateCode public ManagedClusterOidcIssuerProfile OidcIssuerProfile { get; set; } /// The name of the resource group containing agent pool nodes. public string NodeResourceGroup { get; set; } + /// The node resource group configuration profile. + internal ManagedClusterNodeResourceGroupProfile NodeResourceGroupProfile { get; set; } + /// The restriction level applied to the cluster's node resource group. + public ManagedClusterNodeResourceGroupRestrictionLevel? NodeResourceGroupRestrictionLevel + { + get => NodeResourceGroupProfile is null ? default : NodeResourceGroupProfile.RestrictionLevel; + set + { + if (NodeResourceGroupProfile is null) + NodeResourceGroupProfile = new ManagedClusterNodeResourceGroupProfile(); + NodeResourceGroupProfile.RestrictionLevel = value; + } + } + /// Whether to enable Kubernetes Role-Based Access Control. public bool? EnableRbac { get; set; } - /// (DEPRECATING) Whether to enable Kubernetes pod security policy (preview). This feature is set for removal on October 15th, 2020. Learn more at aka.ms/aks/azpodpolicy. + /// (DEPRECATED) Whether to enable Kubernetes pod security policy (preview). PodSecurityPolicy was deprecated in Kubernetes v1.21, and removed from Kubernetes in v1.25. Learn more at https://aka.ms/k8s/psp and https://aka.ms/aks/psp. public bool? EnablePodSecurityPolicy { get; set; } + /// The default value is false. It can be enabled/disabled on creation and updating of the managed cluster. See [https://aka.ms/NamespaceARMResource](https://aka.ms/NamespaceARMResource) for more details on Namespace as a ARM Resource. + public bool? EnableNamespaceResources { get; set; } /// The network configuration profile. public ContainerServiceNetworkProfile NetworkProfile { get; set; } /// The Azure Active Directory configuration. public ManagedClusterAadProfile AadProfile { get; set; } /// The auto upgrade configuration. - internal ManagedClusterAutoUpgradeProfile AutoUpgradeProfile { get; set; } - /// For more information see [setting the AKS cluster auto-upgrade channel](https://docs.microsoft.com/azure/aks/upgrade-cluster#set-auto-upgrade-channel). - public UpgradeChannel? UpgradeChannel - { - get => AutoUpgradeProfile is null ? default : AutoUpgradeProfile.UpgradeChannel; - set - { - if (AutoUpgradeProfile is null) - AutoUpgradeProfile = new ManagedClusterAutoUpgradeProfile(); - AutoUpgradeProfile.UpgradeChannel = value; - } - } - + public ManagedClusterAutoUpgradeProfile AutoUpgradeProfile { get; set; } /// Parameters to be applied to the cluster-autoscaler when enabled. public ManagedClusterAutoScalerProfile AutoScalerProfile { get; set; } /// The access profile for managed cluster API server. @@ -197,7 +229,39 @@ public UpgradeChannel? UpgradeChannel public ManagedClusterSecurityProfile SecurityProfile { get; set; } /// Storage profile for the managed cluster. public ManagedClusterStorageProfile StorageProfile { get; set; } + /// Ingress profile for the managed cluster. + internal ManagedClusterIngressProfile IngressProfile { get; set; } + /// Web App Routing settings for the ingress profile. + public ManagedClusterIngressProfileWebAppRouting IngressWebAppRouting + { + get => IngressProfile is null ? default : IngressProfile.WebAppRouting; + set + { + if (IngressProfile is null) + IngressProfile = new ManagedClusterIngressProfile(); + IngressProfile.WebAppRouting = value; + } + } + /// Allow or deny public network access for AKS. public ContainerServicePublicNetworkAccess? PublicNetworkAccess { get; set; } + /// Workload Auto-scaler profile for the managed cluster. + public ManagedClusterWorkloadAutoScalerProfile WorkloadAutoScalerProfile { get; set; } + /// Prometheus addon profile for the container service cluster. + internal ManagedClusterAzureMonitorProfile AzureMonitorProfile { get; set; } + /// Metrics profile for the prometheus service addon. + public ManagedClusterMonitorProfileMetrics AzureMonitorMetrics + { + get => AzureMonitorProfile is null ? default : AzureMonitorProfile.Metrics; + set + { + if (AzureMonitorProfile is null) + AzureMonitorProfile = new ManagedClusterAzureMonitorProfile(); + AzureMonitorProfile.Metrics = value; + } + } + + /// The guardrails profile holds all the guardrails information for a given cluster. + public ManagedClusterGuardrailsProfile GuardrailsProfile { get; set; } } } diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceManagedClusterResource.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceManagedClusterResource.cs index 3ca2c2b85c273..1de663cf7437e 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceManagedClusterResource.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceManagedClusterResource.cs @@ -267,6 +267,59 @@ public virtual Response GetCo return GetContainerServicePrivateEndpointConnections().Get(privateEndpointConnectionName, cancellationToken); } + /// Gets a collection of ContainerServiceTrustedAccessRoleBindingResources in the ContainerServiceManagedCluster. + /// An object representing collection of ContainerServiceTrustedAccessRoleBindingResources and their operations over a ContainerServiceTrustedAccessRoleBindingResource. + public virtual ContainerServiceTrustedAccessRoleBindingCollection GetContainerServiceTrustedAccessRoleBindings() + { + return GetCachedClient(Client => new ContainerServiceTrustedAccessRoleBindingCollection(Client, Id)); + } + + /// + /// Get a trusted access role binding. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/trustedAccessRoleBindings/{trustedAccessRoleBindingName} + /// + /// + /// Operation Id + /// TrustedAccessRoleBindings_Get + /// + /// + /// + /// The name of trusted access role binding. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual async Task> GetContainerServiceTrustedAccessRoleBindingAsync(string trustedAccessRoleBindingName, CancellationToken cancellationToken = default) + { + return await GetContainerServiceTrustedAccessRoleBindings().GetAsync(trustedAccessRoleBindingName, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get a trusted access role binding. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/trustedAccessRoleBindings/{trustedAccessRoleBindingName} + /// + /// + /// Operation Id + /// TrustedAccessRoleBindings_Get + /// + /// + /// + /// The name of trusted access role binding. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual Response GetContainerServiceTrustedAccessRoleBinding(string trustedAccessRoleBindingName, CancellationToken cancellationToken = default) + { + return GetContainerServiceTrustedAccessRoleBindings().Get(trustedAccessRoleBindingName, cancellationToken); + } + /// /// Gets a managed cluster. /// @@ -589,6 +642,74 @@ public virtual Response GetClusterMonitoringUserCrede } } + /// + /// Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, an error is returned. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclusters/{resourceName}/abort + /// + /// + /// Operation Id + /// ManagedClusters_AbortLatestOperation + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual async Task AbortLatestOperationAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _containerServiceManagedClusterManagedClustersClientDiagnostics.CreateScope("ContainerServiceManagedClusterResource.AbortLatestOperation"); + scope.Start(); + try + { + var response = await _containerServiceManagedClusterManagedClustersRestClient.AbortLatestOperationAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new ContainerServiceArmOperation(_containerServiceManagedClusterManagedClustersClientDiagnostics, Pipeline, _containerServiceManagedClusterManagedClustersRestClient.CreateAbortLatestOperationRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, an error is returned. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclusters/{resourceName}/abort + /// + /// + /// Operation Id + /// ManagedClusters_AbortLatestOperation + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual ArmOperation AbortLatestOperation(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _containerServiceManagedClusterManagedClustersClientDiagnostics.CreateScope("ContainerServiceManagedClusterResource.AbortLatestOperation"); + scope.Start(); + try + { + var response = _containerServiceManagedClusterManagedClustersRestClient.AbortLatestOperation(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + var operation = new ContainerServiceArmOperation(_containerServiceManagedClusterManagedClustersClientDiagnostics, Pipeline, _containerServiceManagedClusterManagedClustersRestClient.CreateAbortLatestOperationRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + /// /// Rotates the service account signing keys of a managed cluster. /// diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceTrustedAccessRoleBindingCollection.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceTrustedAccessRoleBindingCollection.cs new file mode 100644 index 0000000000000..3610ca08da0fb --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceTrustedAccessRoleBindingCollection.cs @@ -0,0 +1,340 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.ContainerService +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetContainerServiceTrustedAccessRoleBindings method from an instance of . + /// + public partial class ContainerServiceTrustedAccessRoleBindingCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _containerServiceTrustedAccessRoleBindingTrustedAccessRoleBindingsClientDiagnostics; + private readonly TrustedAccessRoleBindingsRestOperations _containerServiceTrustedAccessRoleBindingTrustedAccessRoleBindingsRestClient; + + /// Initializes a new instance of the class for mocking. + protected ContainerServiceTrustedAccessRoleBindingCollection() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the parent resource that is the target of operations. + internal ContainerServiceTrustedAccessRoleBindingCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _containerServiceTrustedAccessRoleBindingTrustedAccessRoleBindingsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ContainerService", ContainerServiceTrustedAccessRoleBindingResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ContainerServiceTrustedAccessRoleBindingResource.ResourceType, out string containerServiceTrustedAccessRoleBindingTrustedAccessRoleBindingsApiVersion); + _containerServiceTrustedAccessRoleBindingTrustedAccessRoleBindingsRestClient = new TrustedAccessRoleBindingsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, containerServiceTrustedAccessRoleBindingTrustedAccessRoleBindingsApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ContainerServiceManagedClusterResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ContainerServiceManagedClusterResource.ResourceType), nameof(id)); + } + + /// + /// Create or update a trusted access role binding + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/trustedAccessRoleBindings/{trustedAccessRoleBindingName} + /// + /// + /// Operation Id + /// TrustedAccessRoleBindings_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of trusted access role binding. + /// A trusted access role binding. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string trustedAccessRoleBindingName, ContainerServiceTrustedAccessRoleBindingData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(trustedAccessRoleBindingName, nameof(trustedAccessRoleBindingName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _containerServiceTrustedAccessRoleBindingTrustedAccessRoleBindingsClientDiagnostics.CreateScope("ContainerServiceTrustedAccessRoleBindingCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = await _containerServiceTrustedAccessRoleBindingTrustedAccessRoleBindingsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, trustedAccessRoleBindingName, data, cancellationToken).ConfigureAwait(false); + var operation = new ContainerServiceArmOperation(Response.FromValue(new ContainerServiceTrustedAccessRoleBindingResource(Client, response), response.GetRawResponse())); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update a trusted access role binding + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/trustedAccessRoleBindings/{trustedAccessRoleBindingName} + /// + /// + /// Operation Id + /// TrustedAccessRoleBindings_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of trusted access role binding. + /// A trusted access role binding. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string trustedAccessRoleBindingName, ContainerServiceTrustedAccessRoleBindingData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(trustedAccessRoleBindingName, nameof(trustedAccessRoleBindingName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _containerServiceTrustedAccessRoleBindingTrustedAccessRoleBindingsClientDiagnostics.CreateScope("ContainerServiceTrustedAccessRoleBindingCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = _containerServiceTrustedAccessRoleBindingTrustedAccessRoleBindingsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, trustedAccessRoleBindingName, data, cancellationToken); + var operation = new ContainerServiceArmOperation(Response.FromValue(new ContainerServiceTrustedAccessRoleBindingResource(Client, response), response.GetRawResponse())); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get a trusted access role binding. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/trustedAccessRoleBindings/{trustedAccessRoleBindingName} + /// + /// + /// Operation Id + /// TrustedAccessRoleBindings_Get + /// + /// + /// + /// The name of trusted access role binding. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetAsync(string trustedAccessRoleBindingName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(trustedAccessRoleBindingName, nameof(trustedAccessRoleBindingName)); + + using var scope = _containerServiceTrustedAccessRoleBindingTrustedAccessRoleBindingsClientDiagnostics.CreateScope("ContainerServiceTrustedAccessRoleBindingCollection.Get"); + scope.Start(); + try + { + var response = await _containerServiceTrustedAccessRoleBindingTrustedAccessRoleBindingsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, trustedAccessRoleBindingName, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new ContainerServiceTrustedAccessRoleBindingResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get a trusted access role binding. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/trustedAccessRoleBindings/{trustedAccessRoleBindingName} + /// + /// + /// Operation Id + /// TrustedAccessRoleBindings_Get + /// + /// + /// + /// The name of trusted access role binding. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string trustedAccessRoleBindingName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(trustedAccessRoleBindingName, nameof(trustedAccessRoleBindingName)); + + using var scope = _containerServiceTrustedAccessRoleBindingTrustedAccessRoleBindingsClientDiagnostics.CreateScope("ContainerServiceTrustedAccessRoleBindingCollection.Get"); + scope.Start(); + try + { + var response = _containerServiceTrustedAccessRoleBindingTrustedAccessRoleBindingsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, trustedAccessRoleBindingName, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new ContainerServiceTrustedAccessRoleBindingResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// List trusted access role bindings. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/trustedAccessRoleBindings + /// + /// + /// Operation Id + /// TrustedAccessRoleBindings_List + /// + /// + /// + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _containerServiceTrustedAccessRoleBindingTrustedAccessRoleBindingsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _containerServiceTrustedAccessRoleBindingTrustedAccessRoleBindingsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new ContainerServiceTrustedAccessRoleBindingResource(Client, ContainerServiceTrustedAccessRoleBindingData.DeserializeContainerServiceTrustedAccessRoleBindingData(e)), _containerServiceTrustedAccessRoleBindingTrustedAccessRoleBindingsClientDiagnostics, Pipeline, "ContainerServiceTrustedAccessRoleBindingCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// List trusted access role bindings. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/trustedAccessRoleBindings + /// + /// + /// Operation Id + /// TrustedAccessRoleBindings_List + /// + /// + /// + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _containerServiceTrustedAccessRoleBindingTrustedAccessRoleBindingsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _containerServiceTrustedAccessRoleBindingTrustedAccessRoleBindingsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new ContainerServiceTrustedAccessRoleBindingResource(Client, ContainerServiceTrustedAccessRoleBindingData.DeserializeContainerServiceTrustedAccessRoleBindingData(e)), _containerServiceTrustedAccessRoleBindingTrustedAccessRoleBindingsClientDiagnostics, Pipeline, "ContainerServiceTrustedAccessRoleBindingCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/trustedAccessRoleBindings/{trustedAccessRoleBindingName} + /// + /// + /// Operation Id + /// TrustedAccessRoleBindings_Get + /// + /// + /// + /// The name of trusted access role binding. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> ExistsAsync(string trustedAccessRoleBindingName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(trustedAccessRoleBindingName, nameof(trustedAccessRoleBindingName)); + + using var scope = _containerServiceTrustedAccessRoleBindingTrustedAccessRoleBindingsClientDiagnostics.CreateScope("ContainerServiceTrustedAccessRoleBindingCollection.Exists"); + scope.Start(); + try + { + var response = await _containerServiceTrustedAccessRoleBindingTrustedAccessRoleBindingsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, trustedAccessRoleBindingName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/trustedAccessRoleBindings/{trustedAccessRoleBindingName} + /// + /// + /// Operation Id + /// TrustedAccessRoleBindings_Get + /// + /// + /// + /// The name of trusted access role binding. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string trustedAccessRoleBindingName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(trustedAccessRoleBindingName, nameof(trustedAccessRoleBindingName)); + + using var scope = _containerServiceTrustedAccessRoleBindingTrustedAccessRoleBindingsClientDiagnostics.CreateScope("ContainerServiceTrustedAccessRoleBindingCollection.Exists"); + scope.Start(); + try + { + var response = _containerServiceTrustedAccessRoleBindingTrustedAccessRoleBindingsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, trustedAccessRoleBindingName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + { + return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceTrustedAccessRoleBindingData.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceTrustedAccessRoleBindingData.cs new file mode 100644 index 0000000000000..2fe065a8bd57c --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceTrustedAccessRoleBindingData.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; +using Azure.Core; +using Azure.ResourceManager.ContainerService.Models; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.ContainerService +{ + /// A class representing the ContainerServiceTrustedAccessRoleBinding data model. + public partial class ContainerServiceTrustedAccessRoleBindingData : ResourceData + { + /// Initializes a new instance of ContainerServiceTrustedAccessRoleBindingData. + /// The ARM resource ID of source resource that trusted access is configured for. + /// A list of roles to bind, each item is a resource type qualified role name. For example: 'Microsoft.MachineLearningServices/workspaces/reader'. + /// or is null. + public ContainerServiceTrustedAccessRoleBindingData(ResourceIdentifier sourceResourceId, IEnumerable roles) + { + Argument.AssertNotNull(sourceResourceId, nameof(sourceResourceId)); + Argument.AssertNotNull(roles, nameof(roles)); + + SourceResourceId = sourceResourceId; + Roles = roles.ToList(); + } + + /// Initializes a new instance of ContainerServiceTrustedAccessRoleBindingData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The current provisioning state of trusted access role binding. + /// The ARM resource ID of source resource that trusted access is configured for. + /// A list of roles to bind, each item is a resource type qualified role name. For example: 'Microsoft.MachineLearningServices/workspaces/reader'. + internal ContainerServiceTrustedAccessRoleBindingData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ContainerServiceTrustedAccessRoleBindingProvisioningState? provisioningState, ResourceIdentifier sourceResourceId, IList roles) : base(id, name, resourceType, systemData) + { + ProvisioningState = provisioningState; + SourceResourceId = sourceResourceId; + Roles = roles; + } + + /// The current provisioning state of trusted access role binding. + public ContainerServiceTrustedAccessRoleBindingProvisioningState? ProvisioningState { get; } + /// The ARM resource ID of source resource that trusted access is configured for. + public ResourceIdentifier SourceResourceId { get; set; } + /// A list of roles to bind, each item is a resource type qualified role name. For example: 'Microsoft.MachineLearningServices/workspaces/reader'. + public IList Roles { get; } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceTrustedAccessRoleBindingResource.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceTrustedAccessRoleBindingResource.cs new file mode 100644 index 0000000000000..a9fa6b4e63562 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceTrustedAccessRoleBindingResource.cs @@ -0,0 +1,297 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.ContainerService +{ + /// + /// A Class representing a ContainerServiceTrustedAccessRoleBinding along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetContainerServiceTrustedAccessRoleBindingResource method. + /// Otherwise you can get one from its parent resource using the GetContainerServiceTrustedAccessRoleBinding method. + /// + public partial class ContainerServiceTrustedAccessRoleBindingResource : ArmResource + { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string resourceName, string trustedAccessRoleBindingName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/trustedAccessRoleBindings/{trustedAccessRoleBindingName}"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _containerServiceTrustedAccessRoleBindingTrustedAccessRoleBindingsClientDiagnostics; + private readonly TrustedAccessRoleBindingsRestOperations _containerServiceTrustedAccessRoleBindingTrustedAccessRoleBindingsRestClient; + private readonly ContainerServiceTrustedAccessRoleBindingData _data; + + /// Initializes a new instance of the class for mocking. + protected ContainerServiceTrustedAccessRoleBindingResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal ContainerServiceTrustedAccessRoleBindingResource(ArmClient client, ContainerServiceTrustedAccessRoleBindingData data) : this(client, data.Id) + { + HasData = true; + _data = data; + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the resource that is the target of operations. + internal ContainerServiceTrustedAccessRoleBindingResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _containerServiceTrustedAccessRoleBindingTrustedAccessRoleBindingsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ContainerService", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string containerServiceTrustedAccessRoleBindingTrustedAccessRoleBindingsApiVersion); + _containerServiceTrustedAccessRoleBindingTrustedAccessRoleBindingsRestClient = new TrustedAccessRoleBindingsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, containerServiceTrustedAccessRoleBindingTrustedAccessRoleBindingsApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.ContainerService/managedClusters/trustedAccessRoleBindings"; + + /// Gets whether or not the current instance has data. + public virtual bool HasData { get; } + + /// Gets the data representing this Feature. + /// Throws if there is no data loaded in the current instance. + public virtual ContainerServiceTrustedAccessRoleBindingData Data + { + get + { + if (!HasData) + throw new InvalidOperationException("The current instance does not have data, you must call Get first."); + return _data; + } + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); + } + + /// + /// Get a trusted access role binding. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/trustedAccessRoleBindings/{trustedAccessRoleBindingName} + /// + /// + /// Operation Id + /// TrustedAccessRoleBindings_Get + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using var scope = _containerServiceTrustedAccessRoleBindingTrustedAccessRoleBindingsClientDiagnostics.CreateScope("ContainerServiceTrustedAccessRoleBindingResource.Get"); + scope.Start(); + try + { + var response = await _containerServiceTrustedAccessRoleBindingTrustedAccessRoleBindingsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new ContainerServiceTrustedAccessRoleBindingResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get a trusted access role binding. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/trustedAccessRoleBindings/{trustedAccessRoleBindingName} + /// + /// + /// Operation Id + /// TrustedAccessRoleBindings_Get + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using var scope = _containerServiceTrustedAccessRoleBindingTrustedAccessRoleBindingsClientDiagnostics.CreateScope("ContainerServiceTrustedAccessRoleBindingResource.Get"); + scope.Start(); + try + { + var response = _containerServiceTrustedAccessRoleBindingTrustedAccessRoleBindingsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new ContainerServiceTrustedAccessRoleBindingResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete a trusted access role binding. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/trustedAccessRoleBindings/{trustedAccessRoleBindingName} + /// + /// + /// Operation Id + /// TrustedAccessRoleBindings_Delete + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _containerServiceTrustedAccessRoleBindingTrustedAccessRoleBindingsClientDiagnostics.CreateScope("ContainerServiceTrustedAccessRoleBindingResource.Delete"); + scope.Start(); + try + { + var response = await _containerServiceTrustedAccessRoleBindingTrustedAccessRoleBindingsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new ContainerServiceArmOperation(response); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete a trusted access role binding. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/trustedAccessRoleBindings/{trustedAccessRoleBindingName} + /// + /// + /// Operation Id + /// TrustedAccessRoleBindings_Delete + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _containerServiceTrustedAccessRoleBindingTrustedAccessRoleBindingsClientDiagnostics.CreateScope("ContainerServiceTrustedAccessRoleBindingResource.Delete"); + scope.Start(); + try + { + var response = _containerServiceTrustedAccessRoleBindingTrustedAccessRoleBindingsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new ContainerServiceArmOperation(response); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update a trusted access role binding + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/trustedAccessRoleBindings/{trustedAccessRoleBindingName} + /// + /// + /// Operation Id + /// TrustedAccessRoleBindings_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// A trusted access role binding. + /// The cancellation token to use. + /// is null. + public virtual async Task> UpdateAsync(WaitUntil waitUntil, ContainerServiceTrustedAccessRoleBindingData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _containerServiceTrustedAccessRoleBindingTrustedAccessRoleBindingsClientDiagnostics.CreateScope("ContainerServiceTrustedAccessRoleBindingResource.Update"); + scope.Start(); + try + { + var response = await _containerServiceTrustedAccessRoleBindingTrustedAccessRoleBindingsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new ContainerServiceArmOperation(Response.FromValue(new ContainerServiceTrustedAccessRoleBindingResource(Client, response), response.GetRawResponse())); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update a trusted access role binding + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/trustedAccessRoleBindings/{trustedAccessRoleBindingName} + /// + /// + /// Operation Id + /// TrustedAccessRoleBindings_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// A trusted access role binding. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation Update(WaitUntil waitUntil, ContainerServiceTrustedAccessRoleBindingData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _containerServiceTrustedAccessRoleBindingTrustedAccessRoleBindingsClientDiagnostics.CreateScope("ContainerServiceTrustedAccessRoleBindingResource.Update"); + scope.Start(); + try + { + var response = _containerServiceTrustedAccessRoleBindingTrustedAccessRoleBindingsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new ContainerServiceArmOperation(Response.FromValue(new ContainerServiceTrustedAccessRoleBindingResource(Client, response), response.GetRawResponse())); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Extensions/ContainerServiceExtensions.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Extensions/ContainerServiceExtensions.cs index 3f279052d53b1..e89a637bdbfee 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Extensions/ContainerServiceExtensions.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Extensions/ContainerServiceExtensions.cs @@ -11,6 +11,7 @@ using Azure; using Azure.Core; using Azure.ResourceManager; +using Azure.ResourceManager.ContainerService.Models; using Azure.ResourceManager.Resources; namespace Azure.ResourceManager.ContainerService @@ -111,6 +112,134 @@ public static Pageable GetAgentPoolSnapshots(this Sub return GetExtensionClient(subscriptionResource).GetAgentPoolSnapshots(cancellationToken); } + /// + /// Gets a list of managed cluster snapshots in the specified subscription. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/managedclustersnapshots + /// + /// + /// Operation Id + /// ManagedClusterSnapshots_List + /// + /// + /// + /// The instance the method will execute against. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public static AsyncPageable GetManagedClusterSnapshotsAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + { + return GetExtensionClient(subscriptionResource).GetManagedClusterSnapshotsAsync(cancellationToken); + } + + /// + /// Gets a list of managed cluster snapshots in the specified subscription. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/managedclustersnapshots + /// + /// + /// Operation Id + /// ManagedClusterSnapshots_List + /// + /// + /// + /// The instance the method will execute against. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public static Pageable GetManagedClusterSnapshots(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + { + return GetExtensionClient(subscriptionResource).GetManagedClusterSnapshots(cancellationToken); + } + + /// + /// List supported trusted access roles. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/trustedAccessRoles + /// + /// + /// Operation Id + /// TrustedAccessRoles_List + /// + /// + /// + /// The instance the method will execute against. + /// The name of Azure region. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public static AsyncPageable GetTrustedAccessRolesAsync(this SubscriptionResource subscriptionResource, AzureLocation location, CancellationToken cancellationToken = default) + { + return GetExtensionClient(subscriptionResource).GetTrustedAccessRolesAsync(location, cancellationToken); + } + + /// + /// List supported trusted access roles. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/trustedAccessRoles + /// + /// + /// Operation Id + /// TrustedAccessRoles_List + /// + /// + /// + /// The instance the method will execute against. + /// The name of Azure region. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public static Pageable GetTrustedAccessRoles(this SubscriptionResource subscriptionResource, AzureLocation location, CancellationToken cancellationToken = default) + { + return GetExtensionClient(subscriptionResource).GetTrustedAccessRoles(location, cancellationToken); + } + + /// + /// Lists fleets in the specified subscription. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/fleets + /// + /// + /// Operation Id + /// Fleets_List + /// + /// + /// + /// The instance the method will execute against. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public static AsyncPageable GetContainerServiceFleetsAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + { + return GetExtensionClient(subscriptionResource).GetContainerServiceFleetsAsync(cancellationToken); + } + + /// + /// Lists fleets in the specified subscription. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/fleets + /// + /// + /// Operation Id + /// Fleets_List + /// + /// + /// + /// The instance the method will execute against. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public static Pageable GetContainerServiceFleets(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + { + return GetExtensionClient(subscriptionResource).GetContainerServiceFleets(cancellationToken); + } + private static ResourceGroupResourceExtensionClient GetExtensionClient(ResourceGroupResource resourceGroupResource) { return resourceGroupResource.GetCachedClient((client) => @@ -232,6 +361,118 @@ public static Response GetAgentPoolSnapshot(this Reso return resourceGroupResource.GetAgentPoolSnapshots().Get(resourceName, cancellationToken); } + /// Gets a collection of ManagedClusterSnapshotResources in the ResourceGroupResource. + /// The instance the method will execute against. + /// An object representing collection of ManagedClusterSnapshotResources and their operations over a ManagedClusterSnapshotResource. + public static ManagedClusterSnapshotCollection GetManagedClusterSnapshots(this ResourceGroupResource resourceGroupResource) + { + return GetExtensionClient(resourceGroupResource).GetManagedClusterSnapshots(); + } + + /// + /// Gets a managed cluster snapshot. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclustersnapshots/{resourceName} + /// + /// + /// Operation Id + /// ManagedClusterSnapshots_Get + /// + /// + /// + /// The instance the method will execute against. + /// The name of the managed cluster resource. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public static async Task> GetManagedClusterSnapshotAsync(this ResourceGroupResource resourceGroupResource, string resourceName, CancellationToken cancellationToken = default) + { + return await resourceGroupResource.GetManagedClusterSnapshots().GetAsync(resourceName, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets a managed cluster snapshot. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclustersnapshots/{resourceName} + /// + /// + /// Operation Id + /// ManagedClusterSnapshots_Get + /// + /// + /// + /// The instance the method will execute against. + /// The name of the managed cluster resource. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public static Response GetManagedClusterSnapshot(this ResourceGroupResource resourceGroupResource, string resourceName, CancellationToken cancellationToken = default) + { + return resourceGroupResource.GetManagedClusterSnapshots().Get(resourceName, cancellationToken); + } + + /// Gets a collection of ContainerServiceFleetResources in the ResourceGroupResource. + /// The instance the method will execute against. + /// An object representing collection of ContainerServiceFleetResources and their operations over a ContainerServiceFleetResource. + public static ContainerServiceFleetCollection GetContainerServiceFleets(this ResourceGroupResource resourceGroupResource) + { + return GetExtensionClient(resourceGroupResource).GetContainerServiceFleets(); + } + + /// + /// Gets a Fleet. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName} + /// + /// + /// Operation Id + /// Fleets_Get + /// + /// + /// + /// The instance the method will execute against. + /// The name of the Fleet resource. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public static async Task> GetContainerServiceFleetAsync(this ResourceGroupResource resourceGroupResource, string fleetName, CancellationToken cancellationToken = default) + { + return await resourceGroupResource.GetContainerServiceFleets().GetAsync(fleetName, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets a Fleet. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName} + /// + /// + /// Operation Id + /// Fleets_Get + /// + /// + /// + /// The instance the method will execute against. + /// The name of the Fleet resource. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public static Response GetContainerServiceFleet(this ResourceGroupResource resourceGroupResource, string fleetName, CancellationToken cancellationToken = default) + { + return resourceGroupResource.GetContainerServiceFleets().Get(fleetName, cancellationToken); + } + #region OSOptionProfileResource /// /// Gets an object representing an along with the instance operations that can be performed on it but with no data. @@ -383,5 +624,81 @@ public static AgentPoolSnapshotResource GetAgentPoolSnapshotResource(this ArmCli ); } #endregion + + #region ManagedClusterSnapshotResource + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// Returns a object. + public static ManagedClusterSnapshotResource GetManagedClusterSnapshotResource(this ArmClient client, ResourceIdentifier id) + { + return client.GetResourceClient(() => + { + ManagedClusterSnapshotResource.ValidateResourceId(id); + return new ManagedClusterSnapshotResource(client, id); + } + ); + } + #endregion + + #region ContainerServiceTrustedAccessRoleBindingResource + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// Returns a object. + public static ContainerServiceTrustedAccessRoleBindingResource GetContainerServiceTrustedAccessRoleBindingResource(this ArmClient client, ResourceIdentifier id) + { + return client.GetResourceClient(() => + { + ContainerServiceTrustedAccessRoleBindingResource.ValidateResourceId(id); + return new ContainerServiceTrustedAccessRoleBindingResource(client, id); + } + ); + } + #endregion + + #region ContainerServiceFleetResource + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// Returns a object. + public static ContainerServiceFleetResource GetContainerServiceFleetResource(this ArmClient client, ResourceIdentifier id) + { + return client.GetResourceClient(() => + { + ContainerServiceFleetResource.ValidateResourceId(id); + return new ContainerServiceFleetResource(client, id); + } + ); + } + #endregion + + #region ContainerServiceFleetMemberResource + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// Returns a object. + public static ContainerServiceFleetMemberResource GetContainerServiceFleetMemberResource(this ArmClient client, ResourceIdentifier id) + { + return client.GetResourceClient(() => + { + ContainerServiceFleetMemberResource.ValidateResourceId(id); + return new ContainerServiceFleetMemberResource(client, id); + } + ); + } + #endregion } } diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs index c65765da30079..8ac7a7df2f7dc 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs @@ -44,5 +44,19 @@ public virtual AgentPoolSnapshotCollection GetAgentPoolSnapshots() { return GetCachedClient(Client => new AgentPoolSnapshotCollection(Client, Id)); } + + /// Gets a collection of ManagedClusterSnapshotResources in the ResourceGroupResource. + /// An object representing collection of ManagedClusterSnapshotResources and their operations over a ManagedClusterSnapshotResource. + public virtual ManagedClusterSnapshotCollection GetManagedClusterSnapshots() + { + return GetCachedClient(Client => new ManagedClusterSnapshotCollection(Client, Id)); + } + + /// Gets a collection of ContainerServiceFleetResources in the ResourceGroupResource. + /// An object representing collection of ContainerServiceFleetResources and their operations over a ContainerServiceFleetResource. + public virtual ContainerServiceFleetCollection GetContainerServiceFleets() + { + return GetCachedClient(Client => new ContainerServiceFleetCollection(Client, Id)); + } } } diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs index 8dd0d1a43f8cd..f16e850645e9b 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs @@ -10,6 +10,7 @@ using Azure.Core; using Azure.Core.Pipeline; using Azure.ResourceManager; +using Azure.ResourceManager.ContainerService.Models; namespace Azure.ResourceManager.ContainerService { @@ -20,6 +21,12 @@ internal partial class SubscriptionResourceExtensionClient : ArmResource private ManagedClustersRestOperations _containerServiceManagedClusterManagedClustersRestClient; private ClientDiagnostics _agentPoolSnapshotSnapshotsClientDiagnostics; private SnapshotsRestOperations _agentPoolSnapshotSnapshotsRestClient; + private ClientDiagnostics _managedClusterSnapshotClientDiagnostics; + private ManagedClusterSnapshotsRestOperations _managedClusterSnapshotRestClient; + private ClientDiagnostics _trustedAccessRolesClientDiagnostics; + private TrustedAccessRolesRestOperations _trustedAccessRolesRestClient; + private ClientDiagnostics _containerServiceFleetFleetsClientDiagnostics; + private FleetsRestOperations _containerServiceFleetFleetsRestClient; /// Initializes a new instance of the class for mocking. protected SubscriptionResourceExtensionClient() @@ -37,6 +44,12 @@ internal SubscriptionResourceExtensionClient(ArmClient client, ResourceIdentifie private ManagedClustersRestOperations ContainerServiceManagedClusterManagedClustersRestClient => _containerServiceManagedClusterManagedClustersRestClient ??= new ManagedClustersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(ContainerServiceManagedClusterResource.ResourceType)); private ClientDiagnostics AgentPoolSnapshotSnapshotsClientDiagnostics => _agentPoolSnapshotSnapshotsClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.ContainerService", AgentPoolSnapshotResource.ResourceType.Namespace, Diagnostics); private SnapshotsRestOperations AgentPoolSnapshotSnapshotsRestClient => _agentPoolSnapshotSnapshotsRestClient ??= new SnapshotsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(AgentPoolSnapshotResource.ResourceType)); + private ClientDiagnostics ManagedClusterSnapshotClientDiagnostics => _managedClusterSnapshotClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.ContainerService", ManagedClusterSnapshotResource.ResourceType.Namespace, Diagnostics); + private ManagedClusterSnapshotsRestOperations ManagedClusterSnapshotRestClient => _managedClusterSnapshotRestClient ??= new ManagedClusterSnapshotsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(ManagedClusterSnapshotResource.ResourceType)); + private ClientDiagnostics TrustedAccessRolesClientDiagnostics => _trustedAccessRolesClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.ContainerService", ProviderConstants.DefaultProviderNamespace, Diagnostics); + private TrustedAccessRolesRestOperations TrustedAccessRolesRestClient => _trustedAccessRolesRestClient ??= new TrustedAccessRolesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); + private ClientDiagnostics ContainerServiceFleetFleetsClientDiagnostics => _containerServiceFleetFleetsClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.ContainerService", ContainerServiceFleetResource.ResourceType.Namespace, Diagnostics); + private FleetsRestOperations ContainerServiceFleetFleetsRestClient => _containerServiceFleetFleetsRestClient ??= new FleetsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(ContainerServiceFleetResource.ResourceType)); private string GetApiVersionOrNull(ResourceType resourceType) { @@ -131,5 +144,139 @@ public virtual Pageable GetAgentPoolSnapshots(Cancell HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => AgentPoolSnapshotSnapshotsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId); return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new AgentPoolSnapshotResource(Client, AgentPoolSnapshotData.DeserializeAgentPoolSnapshotData(e)), AgentPoolSnapshotSnapshotsClientDiagnostics, Pipeline, "SubscriptionResourceExtensionClient.GetAgentPoolSnapshots", "value", "nextLink", cancellationToken); } + + /// + /// Gets a list of managed cluster snapshots in the specified subscription. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/managedclustersnapshots + /// + /// + /// Operation Id + /// ManagedClusterSnapshots_List + /// + /// + /// + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetManagedClusterSnapshotsAsync(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => ManagedClusterSnapshotRestClient.CreateListRequest(Id.SubscriptionId); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => ManagedClusterSnapshotRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId); + return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new ManagedClusterSnapshotResource(Client, ManagedClusterSnapshotData.DeserializeManagedClusterSnapshotData(e)), ManagedClusterSnapshotClientDiagnostics, Pipeline, "SubscriptionResourceExtensionClient.GetManagedClusterSnapshots", "value", "nextLink", cancellationToken); + } + + /// + /// Gets a list of managed cluster snapshots in the specified subscription. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/managedclustersnapshots + /// + /// + /// Operation Id + /// ManagedClusterSnapshots_List + /// + /// + /// + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetManagedClusterSnapshots(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => ManagedClusterSnapshotRestClient.CreateListRequest(Id.SubscriptionId); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => ManagedClusterSnapshotRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId); + return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new ManagedClusterSnapshotResource(Client, ManagedClusterSnapshotData.DeserializeManagedClusterSnapshotData(e)), ManagedClusterSnapshotClientDiagnostics, Pipeline, "SubscriptionResourceExtensionClient.GetManagedClusterSnapshots", "value", "nextLink", cancellationToken); + } + + /// + /// List supported trusted access roles. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/trustedAccessRoles + /// + /// + /// Operation Id + /// TrustedAccessRoles_List + /// + /// + /// + /// The name of Azure region. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetTrustedAccessRolesAsync(AzureLocation location, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => TrustedAccessRolesRestClient.CreateListRequest(Id.SubscriptionId, location); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => TrustedAccessRolesRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, location); + return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, ContainerServiceTrustedAccessRole.DeserializeContainerServiceTrustedAccessRole, TrustedAccessRolesClientDiagnostics, Pipeline, "SubscriptionResourceExtensionClient.GetTrustedAccessRoles", "value", "nextLink", cancellationToken); + } + + /// + /// List supported trusted access roles. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/trustedAccessRoles + /// + /// + /// Operation Id + /// TrustedAccessRoles_List + /// + /// + /// + /// The name of Azure region. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetTrustedAccessRoles(AzureLocation location, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => TrustedAccessRolesRestClient.CreateListRequest(Id.SubscriptionId, location); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => TrustedAccessRolesRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, location); + return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, ContainerServiceTrustedAccessRole.DeserializeContainerServiceTrustedAccessRole, TrustedAccessRolesClientDiagnostics, Pipeline, "SubscriptionResourceExtensionClient.GetTrustedAccessRoles", "value", "nextLink", cancellationToken); + } + + /// + /// Lists fleets in the specified subscription. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/fleets + /// + /// + /// Operation Id + /// Fleets_List + /// + /// + /// + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetContainerServiceFleetsAsync(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => ContainerServiceFleetFleetsRestClient.CreateListRequest(Id.SubscriptionId); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => ContainerServiceFleetFleetsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId); + return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new ContainerServiceFleetResource(Client, ContainerServiceFleetData.DeserializeContainerServiceFleetData(e)), ContainerServiceFleetFleetsClientDiagnostics, Pipeline, "SubscriptionResourceExtensionClient.GetContainerServiceFleets", "value", "nextLink", cancellationToken); + } + + /// + /// Lists fleets in the specified subscription. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/fleets + /// + /// + /// Operation Id + /// Fleets_List + /// + /// + /// + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetContainerServiceFleets(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => ContainerServiceFleetFleetsRestClient.CreateListRequest(Id.SubscriptionId); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => ContainerServiceFleetFleetsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId); + return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new ContainerServiceFleetResource(Client, ContainerServiceFleetData.DeserializeContainerServiceFleetData(e)), ContainerServiceFleetFleetsClientDiagnostics, Pipeline, "SubscriptionResourceExtensionClient.GetContainerServiceFleets", "value", "nextLink", cancellationToken); + } } } diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/LongRunningOperation/ContainerServiceFleetMemberOperationSource.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/LongRunningOperation/ContainerServiceFleetMemberOperationSource.cs new file mode 100644 index 0000000000000..a08f6cc9b4dd6 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/LongRunningOperation/ContainerServiceFleetMemberOperationSource.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.ContainerService +{ + internal class ContainerServiceFleetMemberOperationSource : IOperationSource + { + private readonly ArmClient _client; + + internal ContainerServiceFleetMemberOperationSource(ArmClient client) + { + _client = client; + } + + ContainerServiceFleetMemberResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + var data = ContainerServiceFleetMemberData.DeserializeContainerServiceFleetMemberData(document.RootElement); + return new ContainerServiceFleetMemberResource(_client, data); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + var data = ContainerServiceFleetMemberData.DeserializeContainerServiceFleetMemberData(document.RootElement); + return new ContainerServiceFleetMemberResource(_client, data); + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/LongRunningOperation/ContainerServiceFleetOperationSource.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/LongRunningOperation/ContainerServiceFleetOperationSource.cs new file mode 100644 index 0000000000000..94c23ed0c6eb5 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/LongRunningOperation/ContainerServiceFleetOperationSource.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.ContainerService +{ + internal class ContainerServiceFleetOperationSource : IOperationSource + { + private readonly ArmClient _client; + + internal ContainerServiceFleetOperationSource(ArmClient client) + { + _client = client; + } + + ContainerServiceFleetResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + var data = ContainerServiceFleetData.DeserializeContainerServiceFleetData(document.RootElement); + return new ContainerServiceFleetResource(_client, data); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + var data = ContainerServiceFleetData.DeserializeContainerServiceFleetData(document.RootElement); + return new ContainerServiceFleetResource(_client, data); + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ManagedClusterSnapshotCollection.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ManagedClusterSnapshotCollection.cs new file mode 100644 index 0000000000000..7d89d06bb278b --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ManagedClusterSnapshotCollection.cs @@ -0,0 +1,341 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; +using Azure.ResourceManager.Resources; + +namespace Azure.ResourceManager.ContainerService +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetManagedClusterSnapshots method from an instance of . + /// + public partial class ManagedClusterSnapshotCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _managedClusterSnapshotClientDiagnostics; + private readonly ManagedClusterSnapshotsRestOperations _managedClusterSnapshotRestClient; + + /// Initializes a new instance of the class for mocking. + protected ManagedClusterSnapshotCollection() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the parent resource that is the target of operations. + internal ManagedClusterSnapshotCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _managedClusterSnapshotClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ContainerService", ManagedClusterSnapshotResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ManagedClusterSnapshotResource.ResourceType, out string managedClusterSnapshotApiVersion); + _managedClusterSnapshotRestClient = new ManagedClusterSnapshotsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, managedClusterSnapshotApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceGroupResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceGroupResource.ResourceType), nameof(id)); + } + + /// + /// Creates or updates a managed cluster snapshot. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclustersnapshots/{resourceName} + /// + /// + /// Operation Id + /// ManagedClusterSnapshots_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the managed cluster resource. + /// The managed cluster snapshot to create or update. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string resourceName, ManagedClusterSnapshotData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _managedClusterSnapshotClientDiagnostics.CreateScope("ManagedClusterSnapshotCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = await _managedClusterSnapshotRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, resourceName, data, cancellationToken).ConfigureAwait(false); + var operation = new ContainerServiceArmOperation(Response.FromValue(new ManagedClusterSnapshotResource(Client, response), response.GetRawResponse())); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Creates or updates a managed cluster snapshot. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclustersnapshots/{resourceName} + /// + /// + /// Operation Id + /// ManagedClusterSnapshots_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of the managed cluster resource. + /// The managed cluster snapshot to create or update. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string resourceName, ManagedClusterSnapshotData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _managedClusterSnapshotClientDiagnostics.CreateScope("ManagedClusterSnapshotCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = _managedClusterSnapshotRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, resourceName, data, cancellationToken); + var operation = new ContainerServiceArmOperation(Response.FromValue(new ManagedClusterSnapshotResource(Client, response), response.GetRawResponse())); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets a managed cluster snapshot. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclustersnapshots/{resourceName} + /// + /// + /// Operation Id + /// ManagedClusterSnapshots_Get + /// + /// + /// + /// The name of the managed cluster resource. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetAsync(string resourceName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); + + using var scope = _managedClusterSnapshotClientDiagnostics.CreateScope("ManagedClusterSnapshotCollection.Get"); + scope.Start(); + try + { + var response = await _managedClusterSnapshotRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, resourceName, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new ManagedClusterSnapshotResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets a managed cluster snapshot. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclustersnapshots/{resourceName} + /// + /// + /// Operation Id + /// ManagedClusterSnapshots_Get + /// + /// + /// + /// The name of the managed cluster resource. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string resourceName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); + + using var scope = _managedClusterSnapshotClientDiagnostics.CreateScope("ManagedClusterSnapshotCollection.Get"); + scope.Start(); + try + { + var response = _managedClusterSnapshotRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, resourceName, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new ManagedClusterSnapshotResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Lists managed cluster snapshots in the specified subscription and resource group. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclustersnapshots + /// + /// + /// Operation Id + /// ManagedClusterSnapshots_ListByResourceGroup + /// + /// + /// + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _managedClusterSnapshotRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _managedClusterSnapshotRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); + return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new ManagedClusterSnapshotResource(Client, ManagedClusterSnapshotData.DeserializeManagedClusterSnapshotData(e)), _managedClusterSnapshotClientDiagnostics, Pipeline, "ManagedClusterSnapshotCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Lists managed cluster snapshots in the specified subscription and resource group. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclustersnapshots + /// + /// + /// Operation Id + /// ManagedClusterSnapshots_ListByResourceGroup + /// + /// + /// + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _managedClusterSnapshotRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _managedClusterSnapshotRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName); + return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new ManagedClusterSnapshotResource(Client, ManagedClusterSnapshotData.DeserializeManagedClusterSnapshotData(e)), _managedClusterSnapshotClientDiagnostics, Pipeline, "ManagedClusterSnapshotCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclustersnapshots/{resourceName} + /// + /// + /// Operation Id + /// ManagedClusterSnapshots_Get + /// + /// + /// + /// The name of the managed cluster resource. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> ExistsAsync(string resourceName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); + + using var scope = _managedClusterSnapshotClientDiagnostics.CreateScope("ManagedClusterSnapshotCollection.Exists"); + scope.Start(); + try + { + var response = await _managedClusterSnapshotRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, resourceName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclustersnapshots/{resourceName} + /// + /// + /// Operation Id + /// ManagedClusterSnapshots_Get + /// + /// + /// + /// The name of the managed cluster resource. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string resourceName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); + + using var scope = _managedClusterSnapshotClientDiagnostics.CreateScope("ManagedClusterSnapshotCollection.Exists"); + scope.Start(); + try + { + var response = _managedClusterSnapshotRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, resourceName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + { + return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ManagedClusterSnapshotData.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ManagedClusterSnapshotData.cs new file mode 100644 index 0000000000000..d2e4b6f4c4c3f --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ManagedClusterSnapshotData.cs @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.ContainerService.Models; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.ContainerService +{ + /// A class representing the ManagedClusterSnapshot data model. + public partial class ManagedClusterSnapshotData : TrackedResourceData + { + /// Initializes a new instance of ManagedClusterSnapshotData. + /// The location. + public ManagedClusterSnapshotData(AzureLocation location) : base(location) + { + } + + /// Initializes a new instance of ManagedClusterSnapshotData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// CreationData to be used to specify the source resource ID to create this snapshot. + /// The type of a snapshot. The default is NodePool. + /// What the properties will be showed when getting managed cluster snapshot. Those properties are read-only. + internal ManagedClusterSnapshotData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ContainerServiceCreationData creationData, SnapshotType? snapshotType, ManagedClusterPropertiesForSnapshot managedClusterPropertiesReadOnly) : base(id, name, resourceType, systemData, tags, location) + { + CreationData = creationData; + SnapshotType = snapshotType; + ManagedClusterPropertiesReadOnly = managedClusterPropertiesReadOnly; + } + + /// CreationData to be used to specify the source resource ID to create this snapshot. + internal ContainerServiceCreationData CreationData { get; set; } + /// This is the ARM ID of the source object to be used to create the target object. + public ResourceIdentifier CreationDataSourceResourceId + { + get => CreationData is null ? default : CreationData.SourceResourceId; + set + { + if (CreationData is null) + CreationData = new ContainerServiceCreationData(); + CreationData.SourceResourceId = value; + } + } + + /// The type of a snapshot. The default is NodePool. + public SnapshotType? SnapshotType { get; set; } + /// What the properties will be showed when getting managed cluster snapshot. Those properties are read-only. + public ManagedClusterPropertiesForSnapshot ManagedClusterPropertiesReadOnly { get; } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ManagedClusterSnapshotResource.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ManagedClusterSnapshotResource.cs new file mode 100644 index 0000000000000..82effdd11c064 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ManagedClusterSnapshotResource.cs @@ -0,0 +1,602 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; +using Azure.ResourceManager.ContainerService.Models; +using Azure.ResourceManager.Resources; + +namespace Azure.ResourceManager.ContainerService +{ + /// + /// A Class representing a ManagedClusterSnapshot along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetManagedClusterSnapshotResource method. + /// Otherwise you can get one from its parent resource using the GetManagedClusterSnapshot method. + /// + public partial class ManagedClusterSnapshotResource : ArmResource + { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string resourceName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclustersnapshots/{resourceName}"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _managedClusterSnapshotClientDiagnostics; + private readonly ManagedClusterSnapshotsRestOperations _managedClusterSnapshotRestClient; + private readonly ManagedClusterSnapshotData _data; + + /// Initializes a new instance of the class for mocking. + protected ManagedClusterSnapshotResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal ManagedClusterSnapshotResource(ArmClient client, ManagedClusterSnapshotData data) : this(client, data.Id) + { + HasData = true; + _data = data; + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the resource that is the target of operations. + internal ManagedClusterSnapshotResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _managedClusterSnapshotClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ContainerService", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string managedClusterSnapshotApiVersion); + _managedClusterSnapshotRestClient = new ManagedClusterSnapshotsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, managedClusterSnapshotApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.ContainerService/managedclustersnapshots"; + + /// Gets whether or not the current instance has data. + public virtual bool HasData { get; } + + /// Gets the data representing this Feature. + /// Throws if there is no data loaded in the current instance. + public virtual ManagedClusterSnapshotData Data + { + get + { + if (!HasData) + throw new InvalidOperationException("The current instance does not have data, you must call Get first."); + return _data; + } + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); + } + + /// + /// Gets a managed cluster snapshot. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclustersnapshots/{resourceName} + /// + /// + /// Operation Id + /// ManagedClusterSnapshots_Get + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using var scope = _managedClusterSnapshotClientDiagnostics.CreateScope("ManagedClusterSnapshotResource.Get"); + scope.Start(); + try + { + var response = await _managedClusterSnapshotRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new ManagedClusterSnapshotResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets a managed cluster snapshot. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclustersnapshots/{resourceName} + /// + /// + /// Operation Id + /// ManagedClusterSnapshots_Get + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using var scope = _managedClusterSnapshotClientDiagnostics.CreateScope("ManagedClusterSnapshotResource.Get"); + scope.Start(); + try + { + var response = _managedClusterSnapshotRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new ManagedClusterSnapshotResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Deletes a managed cluster snapshot. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclustersnapshots/{resourceName} + /// + /// + /// Operation Id + /// ManagedClusterSnapshots_Delete + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _managedClusterSnapshotClientDiagnostics.CreateScope("ManagedClusterSnapshotResource.Delete"); + scope.Start(); + try + { + var response = await _managedClusterSnapshotRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new ContainerServiceArmOperation(response); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Deletes a managed cluster snapshot. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclustersnapshots/{resourceName} + /// + /// + /// Operation Id + /// ManagedClusterSnapshots_Delete + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _managedClusterSnapshotClientDiagnostics.CreateScope("ManagedClusterSnapshotResource.Delete"); + scope.Start(); + try + { + var response = _managedClusterSnapshotRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + var operation = new ContainerServiceArmOperation(response); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Updates tags on a managed cluster snapshot. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclustersnapshots/{resourceName} + /// + /// + /// Operation Id + /// ManagedClusterSnapshots_UpdateTags + /// + /// + /// + /// Parameters supplied to the Update managed cluster snapshot Tags operation. + /// The cancellation token to use. + /// is null. + public virtual async Task> UpdateAsync(ContainerServiceTagsObject containerServiceTagsObject, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(containerServiceTagsObject, nameof(containerServiceTagsObject)); + + using var scope = _managedClusterSnapshotClientDiagnostics.CreateScope("ManagedClusterSnapshotResource.Update"); + scope.Start(); + try + { + var response = await _managedClusterSnapshotRestClient.UpdateTagsAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, containerServiceTagsObject, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new ManagedClusterSnapshotResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Updates tags on a managed cluster snapshot. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclustersnapshots/{resourceName} + /// + /// + /// Operation Id + /// ManagedClusterSnapshots_UpdateTags + /// + /// + /// + /// Parameters supplied to the Update managed cluster snapshot Tags operation. + /// The cancellation token to use. + /// is null. + public virtual Response Update(ContainerServiceTagsObject containerServiceTagsObject, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(containerServiceTagsObject, nameof(containerServiceTagsObject)); + + using var scope = _managedClusterSnapshotClientDiagnostics.CreateScope("ManagedClusterSnapshotResource.Update"); + scope.Start(); + try + { + var response = _managedClusterSnapshotRestClient.UpdateTags(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, containerServiceTagsObject, cancellationToken); + return Response.FromValue(new ManagedClusterSnapshotResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Add a tag to the current resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclustersnapshots/{resourceName} + /// + /// + /// Operation Id + /// ManagedClusterSnapshots_Get + /// + /// + /// + /// The key for the tag. + /// The value for the tag. + /// The cancellation token to use. + /// or is null. + public virtual async Task> AddTagAsync(string key, string value, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(key, nameof(key)); + Argument.AssertNotNull(value, nameof(value)); + + using var scope = _managedClusterSnapshotClientDiagnostics.CreateScope("ManagedClusterSnapshotResource.AddTag"); + scope.Start(); + try + { + if (await CanUseTagResourceAsync(cancellationToken: cancellationToken).ConfigureAwait(false)) + { + var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); + originalTags.Value.Data.TagValues[key] = value; + await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); + var originalResponse = await _managedClusterSnapshotRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new ManagedClusterSnapshotResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; + var patch = new ContainerServiceTagsObject(); + foreach (var tag in current.Tags) + { + patch.Tags.Add(tag); + } + patch.Tags[key] = value; + var result = await UpdateAsync(patch, cancellationToken: cancellationToken).ConfigureAwait(false); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Add a tag to the current resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclustersnapshots/{resourceName} + /// + /// + /// Operation Id + /// ManagedClusterSnapshots_Get + /// + /// + /// + /// The key for the tag. + /// The value for the tag. + /// The cancellation token to use. + /// or is null. + public virtual Response AddTag(string key, string value, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(key, nameof(key)); + Argument.AssertNotNull(value, nameof(value)); + + using var scope = _managedClusterSnapshotClientDiagnostics.CreateScope("ManagedClusterSnapshotResource.AddTag"); + scope.Start(); + try + { + if (CanUseTagResource(cancellationToken: cancellationToken)) + { + var originalTags = GetTagResource().Get(cancellationToken); + originalTags.Value.Data.TagValues[key] = value; + GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); + var originalResponse = _managedClusterSnapshotRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + return Response.FromValue(new ManagedClusterSnapshotResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = Get(cancellationToken: cancellationToken).Value.Data; + var patch = new ContainerServiceTagsObject(); + foreach (var tag in current.Tags) + { + patch.Tags.Add(tag); + } + patch.Tags[key] = value; + var result = Update(patch, cancellationToken: cancellationToken); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Replace the tags on the resource with the given set. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclustersnapshots/{resourceName} + /// + /// + /// Operation Id + /// ManagedClusterSnapshots_Get + /// + /// + /// + /// The set of tags to use as replacement. + /// The cancellation token to use. + /// is null. + public virtual async Task> SetTagsAsync(IDictionary tags, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(tags, nameof(tags)); + + using var scope = _managedClusterSnapshotClientDiagnostics.CreateScope("ManagedClusterSnapshotResource.SetTags"); + scope.Start(); + try + { + if (await CanUseTagResourceAsync(cancellationToken: cancellationToken).ConfigureAwait(false)) + { + await GetTagResource().DeleteAsync(WaitUntil.Completed, cancellationToken: cancellationToken).ConfigureAwait(false); + var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); + originalTags.Value.Data.TagValues.ReplaceWith(tags); + await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); + var originalResponse = await _managedClusterSnapshotRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new ManagedClusterSnapshotResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; + var patch = new ContainerServiceTagsObject(); + patch.Tags.ReplaceWith(tags); + var result = await UpdateAsync(patch, cancellationToken: cancellationToken).ConfigureAwait(false); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Replace the tags on the resource with the given set. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclustersnapshots/{resourceName} + /// + /// + /// Operation Id + /// ManagedClusterSnapshots_Get + /// + /// + /// + /// The set of tags to use as replacement. + /// The cancellation token to use. + /// is null. + public virtual Response SetTags(IDictionary tags, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(tags, nameof(tags)); + + using var scope = _managedClusterSnapshotClientDiagnostics.CreateScope("ManagedClusterSnapshotResource.SetTags"); + scope.Start(); + try + { + if (CanUseTagResource(cancellationToken: cancellationToken)) + { + GetTagResource().Delete(WaitUntil.Completed, cancellationToken: cancellationToken); + var originalTags = GetTagResource().Get(cancellationToken); + originalTags.Value.Data.TagValues.ReplaceWith(tags); + GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); + var originalResponse = _managedClusterSnapshotRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + return Response.FromValue(new ManagedClusterSnapshotResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = Get(cancellationToken: cancellationToken).Value.Data; + var patch = new ContainerServiceTagsObject(); + patch.Tags.ReplaceWith(tags); + var result = Update(patch, cancellationToken: cancellationToken); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Removes a tag by key from the resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclustersnapshots/{resourceName} + /// + /// + /// Operation Id + /// ManagedClusterSnapshots_Get + /// + /// + /// + /// The key for the tag. + /// The cancellation token to use. + /// is null. + public virtual async Task> RemoveTagAsync(string key, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(key, nameof(key)); + + using var scope = _managedClusterSnapshotClientDiagnostics.CreateScope("ManagedClusterSnapshotResource.RemoveTag"); + scope.Start(); + try + { + if (await CanUseTagResourceAsync(cancellationToken: cancellationToken).ConfigureAwait(false)) + { + var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); + originalTags.Value.Data.TagValues.Remove(key); + await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); + var originalResponse = await _managedClusterSnapshotRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new ManagedClusterSnapshotResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; + var patch = new ContainerServiceTagsObject(); + foreach (var tag in current.Tags) + { + patch.Tags.Add(tag); + } + patch.Tags.Remove(key); + var result = await UpdateAsync(patch, cancellationToken: cancellationToken).ConfigureAwait(false); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Removes a tag by key from the resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclustersnapshots/{resourceName} + /// + /// + /// Operation Id + /// ManagedClusterSnapshots_Get + /// + /// + /// + /// The key for the tag. + /// The cancellation token to use. + /// is null. + public virtual Response RemoveTag(string key, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(key, nameof(key)); + + using var scope = _managedClusterSnapshotClientDiagnostics.CreateScope("ManagedClusterSnapshotResource.RemoveTag"); + scope.Start(); + try + { + if (CanUseTagResource(cancellationToken: cancellationToken)) + { + var originalTags = GetTagResource().Get(cancellationToken); + originalTags.Value.Data.TagValues.Remove(key); + GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); + var originalResponse = _managedClusterSnapshotRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + return Response.FromValue(new ManagedClusterSnapshotResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = Get(cancellationToken: cancellationToken).Value.Data; + var patch = new ContainerServiceTagsObject(); + foreach (var tag in current.Tags) + { + patch.Tags.Add(tag); + } + patch.Tags.Remove(key); + var result = Update(patch, cancellationToken: cancellationToken); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/AgentPoolNetworkPortProtocol.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/AgentPoolNetworkPortProtocol.cs new file mode 100644 index 0000000000000..d6f12bdb71484 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/AgentPoolNetworkPortProtocol.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// The network protocol of the port. + public readonly partial struct AgentPoolNetworkPortProtocol : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public AgentPoolNetworkPortProtocol(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string TcpValue = "TCP"; + private const string UdpValue = "UDP"; + + /// TCP protocol. + public static AgentPoolNetworkPortProtocol Tcp { get; } = new AgentPoolNetworkPortProtocol(TcpValue); + /// UDP protocol. + public static AgentPoolNetworkPortProtocol Udp { get; } = new AgentPoolNetworkPortProtocol(UdpValue); + /// Determines if two values are the same. + public static bool operator ==(AgentPoolNetworkPortProtocol left, AgentPoolNetworkPortProtocol right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(AgentPoolNetworkPortProtocol left, AgentPoolNetworkPortProtocol right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator AgentPoolNetworkPortProtocol(string value) => new AgentPoolNetworkPortProtocol(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is AgentPoolNetworkPortProtocol other && Equals(other); + /// + public bool Equals(AgentPoolNetworkPortProtocol other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/AgentPoolNetworkPortRange.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/AgentPoolNetworkPortRange.Serialization.cs new file mode 100644 index 0000000000000..41840592d6df7 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/AgentPoolNetworkPortRange.Serialization.cs @@ -0,0 +1,77 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ContainerService.Models +{ + public partial class AgentPoolNetworkPortRange : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(PortStart)) + { + writer.WritePropertyName("portStart"u8); + writer.WriteNumberValue(PortStart.Value); + } + if (Optional.IsDefined(PortEnd)) + { + writer.WritePropertyName("portEnd"u8); + writer.WriteNumberValue(PortEnd.Value); + } + if (Optional.IsDefined(Protocol)) + { + writer.WritePropertyName("protocol"u8); + writer.WriteStringValue(Protocol.Value.ToString()); + } + writer.WriteEndObject(); + } + + internal static AgentPoolNetworkPortRange DeserializeAgentPoolNetworkPortRange(JsonElement element) + { + Optional portStart = default; + Optional portEnd = default; + Optional protocol = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("portStart"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + portStart = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("portEnd"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + portEnd = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("protocol"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + protocol = new AgentPoolNetworkPortProtocol(property.Value.GetString()); + continue; + } + } + return new AgentPoolNetworkPortRange(Optional.ToNullable(portStart), Optional.ToNullable(portEnd), Optional.ToNullable(protocol)); + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/AgentPoolNetworkPortRange.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/AgentPoolNetworkPortRange.cs new file mode 100644 index 0000000000000..533c434f7ddb2 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/AgentPoolNetworkPortRange.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// The port range. + public partial class AgentPoolNetworkPortRange + { + /// Initializes a new instance of AgentPoolNetworkPortRange. + public AgentPoolNetworkPortRange() + { + } + + /// Initializes a new instance of AgentPoolNetworkPortRange. + /// The minimum port that is included in the range. It should be ranged from 1 to 65535, and be less than or equal to portEnd. + /// The maximum port that is included in the range. It should be ranged from 1 to 65535, and be greater than or equal to portStart. + /// The network protocol of the port. + internal AgentPoolNetworkPortRange(int? portStart, int? portEnd, AgentPoolNetworkPortProtocol? protocol) + { + PortStart = portStart; + PortEnd = portEnd; + Protocol = protocol; + } + + /// The minimum port that is included in the range. It should be ranged from 1 to 65535, and be less than or equal to portEnd. + public int? PortStart { get; set; } + /// The maximum port that is included in the range. It should be ranged from 1 to 65535, and be greater than or equal to portStart. + public int? PortEnd { get; set; } + /// The network protocol of the port. + public AgentPoolNetworkPortProtocol? Protocol { get; set; } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/AgentPoolNetworkProfile.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/AgentPoolNetworkProfile.Serialization.cs new file mode 100644 index 0000000000000..c8a2be78593d3 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/AgentPoolNetworkProfile.Serialization.cs @@ -0,0 +1,108 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ContainerService.Models +{ + public partial class AgentPoolNetworkProfile : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(NodePublicIPTags)) + { + writer.WritePropertyName("nodePublicIPTags"u8); + writer.WriteStartArray(); + foreach (var item in NodePublicIPTags) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(AllowedHostPorts)) + { + writer.WritePropertyName("allowedHostPorts"u8); + writer.WriteStartArray(); + foreach (var item in AllowedHostPorts) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(ApplicationSecurityGroups)) + { + writer.WritePropertyName("applicationSecurityGroups"u8); + writer.WriteStartArray(); + foreach (var item in ApplicationSecurityGroups) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + writer.WriteEndObject(); + } + + internal static AgentPoolNetworkProfile DeserializeAgentPoolNetworkProfile(JsonElement element) + { + Optional> nodePublicIPTags = default; + Optional> allowedHostPorts = default; + Optional> applicationSecurityGroups = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("nodePublicIPTags"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(ContainerServiceIPTag.DeserializeContainerServiceIPTag(item)); + } + nodePublicIPTags = array; + continue; + } + if (property.NameEquals("allowedHostPorts"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(AgentPoolNetworkPortRange.DeserializeAgentPoolNetworkPortRange(item)); + } + allowedHostPorts = array; + continue; + } + if (property.NameEquals("applicationSecurityGroups"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(new ResourceIdentifier(item.GetString())); + } + applicationSecurityGroups = array; + continue; + } + } + return new AgentPoolNetworkProfile(Optional.ToList(nodePublicIPTags), Optional.ToList(allowedHostPorts), Optional.ToList(applicationSecurityGroups)); + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/AgentPoolNetworkProfile.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/AgentPoolNetworkProfile.cs new file mode 100644 index 0000000000000..752c231db8898 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/AgentPoolNetworkProfile.cs @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// Network settings of an agent pool. + public partial class AgentPoolNetworkProfile + { + /// Initializes a new instance of AgentPoolNetworkProfile. + public AgentPoolNetworkProfile() + { + NodePublicIPTags = new ChangeTrackingList(); + AllowedHostPorts = new ChangeTrackingList(); + ApplicationSecurityGroups = new ChangeTrackingList(); + } + + /// Initializes a new instance of AgentPoolNetworkProfile. + /// IPTags of instance-level public IPs. + /// The port ranges that are allowed to access. The specified ranges are allowed to overlap. + /// The IDs of the application security groups which agent pool will associate when created. + internal AgentPoolNetworkProfile(IList nodePublicIPTags, IList allowedHostPorts, IList applicationSecurityGroups) + { + NodePublicIPTags = nodePublicIPTags; + AllowedHostPorts = allowedHostPorts; + ApplicationSecurityGroups = applicationSecurityGroups; + } + + /// IPTags of instance-level public IPs. + public IList NodePublicIPTags { get; } + /// The port ranges that are allowed to access. The specified ranges are allowed to overlap. + public IList AllowedHostPorts { get; } + /// The IDs of the application security groups which agent pool will associate when created. + public IList ApplicationSecurityGroups { get; } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/AgentPoolWindowsProfile.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/AgentPoolWindowsProfile.Serialization.cs new file mode 100644 index 0000000000000..311bcdfb3acac --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/AgentPoolWindowsProfile.Serialization.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ContainerService.Models +{ + internal partial class AgentPoolWindowsProfile : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(DisableOutboundNat)) + { + writer.WritePropertyName("disableOutboundNat"u8); + writer.WriteBooleanValue(DisableOutboundNat.Value); + } + writer.WriteEndObject(); + } + + internal static AgentPoolWindowsProfile DeserializeAgentPoolWindowsProfile(JsonElement element) + { + Optional disableOutboundNat = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("disableOutboundNat"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + disableOutboundNat = property.Value.GetBoolean(); + continue; + } + } + return new AgentPoolWindowsProfile(Optional.ToNullable(disableOutboundNat)); + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/AgentPoolWindowsProfile.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/AgentPoolWindowsProfile.cs new file mode 100644 index 0000000000000..a8eeb661b7e13 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/AgentPoolWindowsProfile.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// The Windows agent pool's specific profile. + internal partial class AgentPoolWindowsProfile + { + /// Initializes a new instance of AgentPoolWindowsProfile. + public AgentPoolWindowsProfile() + { + } + + /// Initializes a new instance of AgentPoolWindowsProfile. + /// The default value is false. Outbound NAT can only be disabled if the cluster outboundType is NAT Gateway and the Windows agent pool does not have node public IP enabled. + internal AgentPoolWindowsProfile(bool? disableOutboundNat) + { + DisableOutboundNat = disableOutboundNat; + } + + /// The default value is false. Outbound NAT can only be disabled if the cluster outboundType is NAT Gateway and the Windows agent pool does not have node public IP enabled. + public bool? DisableOutboundNat { get; set; } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceAgentPoolData.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceAgentPoolData.Serialization.cs index 133f9a9207819..5e35f412b700c 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceAgentPoolData.Serialization.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceAgentPoolData.Serialization.cs @@ -50,6 +50,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("workloadRuntime"u8); writer.WriteStringValue(WorkloadRuntime.Value.ToString()); } + if (Optional.IsDefined(MessageOfTheDay)) + { + writer.WritePropertyName("messageOfTheDay"u8); + writer.WriteStringValue(MessageOfTheDay); + } if (Optional.IsDefined(VnetSubnetId)) { writer.WritePropertyName("vnetSubnetID"u8); @@ -135,6 +140,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("enableNodePublicIP"u8); writer.WriteBooleanValue(EnableNodePublicIP.Value); } + if (Optional.IsDefined(EnableCustomCATrust)) + { + writer.WritePropertyName("enableCustomCATrust"u8); + writer.WriteBooleanValue(EnableCustomCATrust.Value); + } if (Optional.IsDefined(NodePublicIPPrefixId)) { writer.WritePropertyName("nodePublicIPPrefixID"u8); @@ -227,11 +237,26 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("creationData"u8); writer.WriteObjectValue(CreationData); } + if (Optional.IsDefined(CapacityReservationGroupId)) + { + writer.WritePropertyName("capacityReservationGroupID"u8); + writer.WriteStringValue(CapacityReservationGroupId); + } if (Optional.IsDefined(HostGroupId)) { writer.WritePropertyName("hostGroupID"u8); writer.WriteStringValue(HostGroupId); } + if (Optional.IsDefined(WindowsProfile)) + { + writer.WritePropertyName("windowsProfile"u8); + writer.WriteObjectValue(WindowsProfile); + } + if (Optional.IsDefined(NetworkProfile)) + { + writer.WritePropertyName("networkProfile"u8); + writer.WriteObjectValue(NetworkProfile); + } writer.WriteEndObject(); writer.WriteEndObject(); } @@ -248,6 +273,7 @@ internal static ContainerServiceAgentPoolData DeserializeContainerServiceAgentPo Optional osDiskType = default; Optional kubeletDiskType = default; Optional workloadRuntime = default; + Optional messageOfTheDay = default; Optional vnetSubnetId = default; Optional podSubnetId = default; Optional maxPods = default; @@ -267,6 +293,7 @@ internal static ContainerServiceAgentPoolData DeserializeContainerServiceAgentPo Optional powerState = default; Optional> availabilityZones = default; Optional enableNodePublicIP = default; + Optional enableCustomCATrust = default; Optional nodePublicIPPrefixId = default; Optional scaleSetPriority = default; Optional scaleSetEvictionPolicy = default; @@ -282,7 +309,10 @@ internal static ContainerServiceAgentPoolData DeserializeContainerServiceAgentPo Optional enableFIPS = default; Optional gpuInstanceProfile = default; Optional creationData = default; + Optional capacityReservationGroupId = default; Optional hostGroupId = default; + Optional windowsProfile = default; + Optional networkProfile = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("id"u8)) @@ -374,6 +404,11 @@ internal static ContainerServiceAgentPoolData DeserializeContainerServiceAgentPo workloadRuntime = new WorkloadRuntime(property0.Value.GetString()); continue; } + if (property0.NameEquals("messageOfTheDay"u8)) + { + messageOfTheDay = property0.Value.GetString(); + continue; + } if (property0.NameEquals("vnetSubnetID"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -549,6 +584,16 @@ internal static ContainerServiceAgentPoolData DeserializeContainerServiceAgentPo enableNodePublicIP = property0.Value.GetBoolean(); continue; } + if (property0.NameEquals("enableCustomCATrust"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + enableCustomCATrust = property0.Value.GetBoolean(); + continue; + } if (property0.NameEquals("nodePublicIPPrefixID"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -714,6 +759,16 @@ internal static ContainerServiceAgentPoolData DeserializeContainerServiceAgentPo creationData = ContainerServiceCreationData.DeserializeContainerServiceCreationData(property0.Value); continue; } + if (property0.NameEquals("capacityReservationGroupID"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + capacityReservationGroupId = new ResourceIdentifier(property0.Value.GetString()); + continue; + } if (property0.NameEquals("hostGroupID"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -724,11 +779,31 @@ internal static ContainerServiceAgentPoolData DeserializeContainerServiceAgentPo hostGroupId = new ResourceIdentifier(property0.Value.GetString()); continue; } + if (property0.NameEquals("windowsProfile"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + windowsProfile = AgentPoolWindowsProfile.DeserializeAgentPoolWindowsProfile(property0.Value); + continue; + } + if (property0.NameEquals("networkProfile"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + networkProfile = AgentPoolNetworkProfile.DeserializeAgentPoolNetworkProfile(property0.Value); + continue; + } } continue; } } - return new ContainerServiceAgentPoolData(id, name, type, systemData.Value, Optional.ToNullable(count), vmSize.Value, Optional.ToNullable(osDiskSizeGB), Optional.ToNullable(osDiskType), Optional.ToNullable(kubeletDiskType), Optional.ToNullable(workloadRuntime), vnetSubnetId.Value, podSubnetId.Value, Optional.ToNullable(maxPods), Optional.ToNullable(osType), Optional.ToNullable(osSku), Optional.ToNullable(maxCount), Optional.ToNullable(minCount), Optional.ToNullable(enableAutoScaling), Optional.ToNullable(scaleDownMode), Optional.ToNullable(type0), Optional.ToNullable(mode), orchestratorVersion.Value, currentOrchestratorVersion.Value, nodeImageVersion.Value, upgradeSettings.Value, provisioningState.Value, powerState.Value, Optional.ToList(availabilityZones), Optional.ToNullable(enableNodePublicIP), nodePublicIPPrefixId.Value, Optional.ToNullable(scaleSetPriority), Optional.ToNullable(scaleSetEvictionPolicy), Optional.ToNullable(spotMaxPrice), Optional.ToDictionary(tags), Optional.ToDictionary(nodeLabels), Optional.ToList(nodeTaints), proximityPlacementGroupId.Value, kubeletConfig.Value, linuxOSConfig.Value, Optional.ToNullable(enableEncryptionAtHost), Optional.ToNullable(enableUltraSsd), Optional.ToNullable(enableFIPS), Optional.ToNullable(gpuInstanceProfile), creationData.Value, hostGroupId.Value); + return new ContainerServiceAgentPoolData(id, name, type, systemData.Value, Optional.ToNullable(count), vmSize.Value, Optional.ToNullable(osDiskSizeGB), Optional.ToNullable(osDiskType), Optional.ToNullable(kubeletDiskType), Optional.ToNullable(workloadRuntime), messageOfTheDay.Value, vnetSubnetId.Value, podSubnetId.Value, Optional.ToNullable(maxPods), Optional.ToNullable(osType), Optional.ToNullable(osSku), Optional.ToNullable(maxCount), Optional.ToNullable(minCount), Optional.ToNullable(enableAutoScaling), Optional.ToNullable(scaleDownMode), Optional.ToNullable(type0), Optional.ToNullable(mode), orchestratorVersion.Value, currentOrchestratorVersion.Value, nodeImageVersion.Value, upgradeSettings.Value, provisioningState.Value, powerState.Value, Optional.ToList(availabilityZones), Optional.ToNullable(enableNodePublicIP), Optional.ToNullable(enableCustomCATrust), nodePublicIPPrefixId.Value, Optional.ToNullable(scaleSetPriority), Optional.ToNullable(scaleSetEvictionPolicy), Optional.ToNullable(spotMaxPrice), Optional.ToDictionary(tags), Optional.ToDictionary(nodeLabels), Optional.ToList(nodeTaints), proximityPlacementGroupId.Value, kubeletConfig.Value, linuxOSConfig.Value, Optional.ToNullable(enableEncryptionAtHost), Optional.ToNullable(enableUltraSsd), Optional.ToNullable(enableFIPS), Optional.ToNullable(gpuInstanceProfile), creationData.Value, capacityReservationGroupId.Value, hostGroupId.Value, windowsProfile.Value, networkProfile.Value); } } } diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceDateSpan.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceDateSpan.Serialization.cs new file mode 100644 index 0000000000000..06f6e665a339c --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceDateSpan.Serialization.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ContainerService.Models +{ + public partial class ContainerServiceDateSpan : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("start"u8); + writer.WriteStringValue(Start, "D"); + writer.WritePropertyName("end"u8); + writer.WriteStringValue(End, "D"); + writer.WriteEndObject(); + } + + internal static ContainerServiceDateSpan DeserializeContainerServiceDateSpan(JsonElement element) + { + DateTimeOffset start = default; + DateTimeOffset end = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("start"u8)) + { + start = property.Value.GetDateTimeOffset("D"); + continue; + } + if (property.NameEquals("end"u8)) + { + end = property.Value.GetDateTimeOffset("D"); + continue; + } + } + return new ContainerServiceDateSpan(start, end); + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceDateSpan.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceDateSpan.cs new file mode 100644 index 0000000000000..646c7e131d06d --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceDateSpan.cs @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// For example, between '2022-12-23' and '2023-01-05'. + public partial class ContainerServiceDateSpan + { + /// Initializes a new instance of ContainerServiceDateSpan. + /// The start date of the date span. + /// The end date of the date span. + public ContainerServiceDateSpan(DateTimeOffset start, DateTimeOffset end) + { + Start = start; + End = end; + } + + /// The start date of the date span. + public DateTimeOffset Start { get; set; } + /// The end date of the date span. + public DateTimeOffset End { get; set; } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceFleetCredentialResult.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceFleetCredentialResult.Serialization.cs new file mode 100644 index 0000000000000..ae06c8e5aa5bb --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceFleetCredentialResult.Serialization.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ContainerService.Models +{ + public partial class ContainerServiceFleetCredentialResult + { + internal static ContainerServiceFleetCredentialResult DeserializeContainerServiceFleetCredentialResult(JsonElement element) + { + Optional name = default; + Optional value = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("value"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + value = property.Value.GetBytesFromBase64("D"); + continue; + } + } + return new ContainerServiceFleetCredentialResult(name.Value, value.Value); + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceFleetCredentialResult.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceFleetCredentialResult.cs new file mode 100644 index 0000000000000..e7209ec8e0689 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceFleetCredentialResult.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// The credential result response. + public partial class ContainerServiceFleetCredentialResult + { + /// Initializes a new instance of ContainerServiceFleetCredentialResult. + internal ContainerServiceFleetCredentialResult() + { + } + + /// Initializes a new instance of ContainerServiceFleetCredentialResult. + /// The name of the credential. + /// Base64-encoded Kubernetes configuration file. + internal ContainerServiceFleetCredentialResult(string name, byte[] value) + { + Name = name; + Value = value; + } + + /// The name of the credential. + public string Name { get; } + /// Base64-encoded Kubernetes configuration file. + public byte[] Value { get; } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceFleetCredentialResults.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceFleetCredentialResults.Serialization.cs new file mode 100644 index 0000000000000..ae4ab66c31dfe --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceFleetCredentialResults.Serialization.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ContainerService.Models +{ + public partial class ContainerServiceFleetCredentialResults + { + internal static ContainerServiceFleetCredentialResults DeserializeContainerServiceFleetCredentialResults(JsonElement element) + { + Optional> kubeconfigs = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("kubeconfigs"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(ContainerServiceFleetCredentialResult.DeserializeContainerServiceFleetCredentialResult(item)); + } + kubeconfigs = array; + continue; + } + } + return new ContainerServiceFleetCredentialResults(Optional.ToList(kubeconfigs)); + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceFleetCredentialResults.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceFleetCredentialResults.cs new file mode 100644 index 0000000000000..1795137827a39 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceFleetCredentialResults.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// The list credential result response. + public partial class ContainerServiceFleetCredentialResults + { + /// Initializes a new instance of ContainerServiceFleetCredentialResults. + internal ContainerServiceFleetCredentialResults() + { + Kubeconfigs = new ChangeTrackingList(); + } + + /// Initializes a new instance of ContainerServiceFleetCredentialResults. + /// Base64-encoded Kubernetes configuration file. + internal ContainerServiceFleetCredentialResults(IReadOnlyList kubeconfigs) + { + Kubeconfigs = kubeconfigs; + } + + /// Base64-encoded Kubernetes configuration file. + public IReadOnlyList Kubeconfigs { get; } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceFleetData.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceFleetData.Serialization.cs new file mode 100644 index 0000000000000..c075d52a78f6c --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceFleetData.Serialization.cs @@ -0,0 +1,150 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.Core; +using Azure.ResourceManager.ContainerService.Models; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.ContainerService +{ + public partial class ContainerServiceFleetData : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(Tags)) + { + writer.WritePropertyName("tags"u8); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + writer.WritePropertyName("location"u8); + writer.WriteStringValue(Location); + writer.WritePropertyName("properties"u8); + writer.WriteStartObject(); + if (Optional.IsDefined(HubProfile)) + { + writer.WritePropertyName("hubProfile"u8); + writer.WriteObjectValue(HubProfile); + } + writer.WriteEndObject(); + writer.WriteEndObject(); + } + + internal static ContainerServiceFleetData DeserializeContainerServiceFleetData(JsonElement element) + { + Optional etag = default; + Optional> tags = default; + AzureLocation location = default; + ResourceIdentifier id = default; + string name = default; + ResourceType type = default; + Optional systemData = default; + Optional hubProfile = default; + Optional provisioningState = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("etag"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + etag = new ETag(property.Value.GetString()); + continue; + } + if (property.NameEquals("tags"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + tags = dictionary; + continue; + } + if (property.NameEquals("location"u8)) + { + location = new AzureLocation(property.Value.GetString()); + continue; + } + if (property.NameEquals("id"u8)) + { + id = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + type = new ResourceType(property.Value.GetString()); + continue; + } + if (property.NameEquals("systemData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("hubProfile"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + hubProfile = ContainerServiceFleetHubProfile.DeserializeContainerServiceFleetHubProfile(property0.Value); + continue; + } + if (property0.NameEquals("provisioningState"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + provisioningState = new ContainerServiceFleetProvisioningState(property0.Value.GetString()); + continue; + } + } + continue; + } + } + return new ContainerServiceFleetData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, Optional.ToNullable(etag), hubProfile.Value, Optional.ToNullable(provisioningState)); + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceFleetHubProfile.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceFleetHubProfile.Serialization.cs new file mode 100644 index 0000000000000..c2db23cd26aee --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceFleetHubProfile.Serialization.cs @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ContainerService.Models +{ + public partial class ContainerServiceFleetHubProfile : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(DnsPrefix)) + { + writer.WritePropertyName("dnsPrefix"u8); + writer.WriteStringValue(DnsPrefix); + } + writer.WriteEndObject(); + } + + internal static ContainerServiceFleetHubProfile DeserializeContainerServiceFleetHubProfile(JsonElement element) + { + Optional dnsPrefix = default; + Optional fqdn = default; + Optional kubernetesVersion = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("dnsPrefix"u8)) + { + dnsPrefix = property.Value.GetString(); + continue; + } + if (property.NameEquals("fqdn"u8)) + { + fqdn = property.Value.GetString(); + continue; + } + if (property.NameEquals("kubernetesVersion"u8)) + { + kubernetesVersion = property.Value.GetString(); + continue; + } + } + return new ContainerServiceFleetHubProfile(dnsPrefix.Value, fqdn.Value, kubernetesVersion.Value); + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceFleetHubProfile.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceFleetHubProfile.cs new file mode 100644 index 0000000000000..c4f53a7ab183e --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceFleetHubProfile.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// The FleetHubProfile configures the fleet hub. + public partial class ContainerServiceFleetHubProfile + { + /// Initializes a new instance of ContainerServiceFleetHubProfile. + public ContainerServiceFleetHubProfile() + { + } + + /// Initializes a new instance of ContainerServiceFleetHubProfile. + /// DNS prefix used to create the FQDN for the Fleet hub. + /// The FQDN of the Fleet hub. + /// The Kubernetes version of the Fleet hub. + internal ContainerServiceFleetHubProfile(string dnsPrefix, string fqdn, string kubernetesVersion) + { + DnsPrefix = dnsPrefix; + Fqdn = fqdn; + KubernetesVersion = kubernetesVersion; + } + + /// DNS prefix used to create the FQDN for the Fleet hub. + public string DnsPrefix { get; set; } + /// The FQDN of the Fleet hub. + public string Fqdn { get; } + /// The Kubernetes version of the Fleet hub. + public string KubernetesVersion { get; } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceFleetMemberData.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceFleetMemberData.Serialization.cs new file mode 100644 index 0000000000000..4db728fa94872 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceFleetMemberData.Serialization.cs @@ -0,0 +1,114 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure; +using Azure.Core; +using Azure.ResourceManager.ContainerService.Models; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.ContainerService +{ + public partial class ContainerServiceFleetMemberData : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("properties"u8); + writer.WriteStartObject(); + if (Optional.IsDefined(ClusterResourceId)) + { + writer.WritePropertyName("clusterResourceId"u8); + writer.WriteStringValue(ClusterResourceId); + } + writer.WriteEndObject(); + writer.WriteEndObject(); + } + + internal static ContainerServiceFleetMemberData DeserializeContainerServiceFleetMemberData(JsonElement element) + { + Optional etag = default; + ResourceIdentifier id = default; + string name = default; + ResourceType type = default; + Optional systemData = default; + Optional clusterResourceId = default; + Optional provisioningState = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("etag"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + etag = new ETag(property.Value.GetString()); + continue; + } + if (property.NameEquals("id"u8)) + { + id = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + type = new ResourceType(property.Value.GetString()); + continue; + } + if (property.NameEquals("systemData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("clusterResourceId"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + clusterResourceId = new ResourceIdentifier(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("provisioningState"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + provisioningState = new ContainerServiceFleetMemberProvisioningState(property0.Value.GetString()); + continue; + } + } + continue; + } + } + return new ContainerServiceFleetMemberData(id, name, type, systemData.Value, clusterResourceId.Value, Optional.ToNullable(provisioningState), Optional.ToNullable(etag)); + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceFleetMemberProvisioningState.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceFleetMemberProvisioningState.cs new file mode 100644 index 0000000000000..ec34ed597391e --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceFleetMemberProvisioningState.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// The provisioning state of the last accepted operation. + public readonly partial struct ContainerServiceFleetMemberProvisioningState : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ContainerServiceFleetMemberProvisioningState(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string SucceededValue = "Succeeded"; + private const string FailedValue = "Failed"; + private const string CanceledValue = "Canceled"; + private const string JoiningValue = "Joining"; + private const string LeavingValue = "Leaving"; + private const string UpdatingValue = "Updating"; + + /// Succeeded. + public static ContainerServiceFleetMemberProvisioningState Succeeded { get; } = new ContainerServiceFleetMemberProvisioningState(SucceededValue); + /// Failed. + public static ContainerServiceFleetMemberProvisioningState Failed { get; } = new ContainerServiceFleetMemberProvisioningState(FailedValue); + /// Canceled. + public static ContainerServiceFleetMemberProvisioningState Canceled { get; } = new ContainerServiceFleetMemberProvisioningState(CanceledValue); + /// Joining. + public static ContainerServiceFleetMemberProvisioningState Joining { get; } = new ContainerServiceFleetMemberProvisioningState(JoiningValue); + /// Leaving. + public static ContainerServiceFleetMemberProvisioningState Leaving { get; } = new ContainerServiceFleetMemberProvisioningState(LeavingValue); + /// Updating. + public static ContainerServiceFleetMemberProvisioningState Updating { get; } = new ContainerServiceFleetMemberProvisioningState(UpdatingValue); + /// Determines if two values are the same. + public static bool operator ==(ContainerServiceFleetMemberProvisioningState left, ContainerServiceFleetMemberProvisioningState right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ContainerServiceFleetMemberProvisioningState left, ContainerServiceFleetMemberProvisioningState right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator ContainerServiceFleetMemberProvisioningState(string value) => new ContainerServiceFleetMemberProvisioningState(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ContainerServiceFleetMemberProvisioningState other && Equals(other); + /// + public bool Equals(ContainerServiceFleetMemberProvisioningState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceFleetPatch.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceFleetPatch.Serialization.cs new file mode 100644 index 0000000000000..6086adb8f5cff --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceFleetPatch.Serialization.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ContainerService.Models +{ + public partial class ContainerServiceFleetPatch : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(Tags)) + { + writer.WritePropertyName("tags"u8); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + writer.WriteEndObject(); + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceFleetPatch.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceFleetPatch.cs new file mode 100644 index 0000000000000..60c76f1b6cf15 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceFleetPatch.cs @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// Properties of a Fleet that can be patched. + public partial class ContainerServiceFleetPatch + { + /// Initializes a new instance of ContainerServiceFleetPatch. + public ContainerServiceFleetPatch() + { + Tags = new ChangeTrackingDictionary(); + } + + /// Resource tags. + public IDictionary Tags { get; } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceFleetProvisioningState.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceFleetProvisioningState.cs new file mode 100644 index 0000000000000..f2e2769af07c5 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceFleetProvisioningState.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// The provisioning state of the last accepted operation. + public readonly partial struct ContainerServiceFleetProvisioningState : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ContainerServiceFleetProvisioningState(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string SucceededValue = "Succeeded"; + private const string FailedValue = "Failed"; + private const string CanceledValue = "Canceled"; + private const string CreatingValue = "Creating"; + private const string DeletingValue = "Deleting"; + private const string UpdatingValue = "Updating"; + + /// Succeeded. + public static ContainerServiceFleetProvisioningState Succeeded { get; } = new ContainerServiceFleetProvisioningState(SucceededValue); + /// Failed. + public static ContainerServiceFleetProvisioningState Failed { get; } = new ContainerServiceFleetProvisioningState(FailedValue); + /// Canceled. + public static ContainerServiceFleetProvisioningState Canceled { get; } = new ContainerServiceFleetProvisioningState(CanceledValue); + /// Creating. + public static ContainerServiceFleetProvisioningState Creating { get; } = new ContainerServiceFleetProvisioningState(CreatingValue); + /// Deleting. + public static ContainerServiceFleetProvisioningState Deleting { get; } = new ContainerServiceFleetProvisioningState(DeletingValue); + /// Updating. + public static ContainerServiceFleetProvisioningState Updating { get; } = new ContainerServiceFleetProvisioningState(UpdatingValue); + /// Determines if two values are the same. + public static bool operator ==(ContainerServiceFleetProvisioningState left, ContainerServiceFleetProvisioningState right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ContainerServiceFleetProvisioningState left, ContainerServiceFleetProvisioningState right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator ContainerServiceFleetProvisioningState(string value) => new ContainerServiceFleetProvisioningState(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ContainerServiceFleetProvisioningState other && Equals(other); + /// + public bool Equals(ContainerServiceFleetProvisioningState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceIPTag.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceIPTag.Serialization.cs new file mode 100644 index 0000000000000..d4a211ddf84b0 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceIPTag.Serialization.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ContainerService.Models +{ + public partial class ContainerServiceIPTag : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(IPTagType)) + { + writer.WritePropertyName("ipTagType"u8); + writer.WriteStringValue(IPTagType); + } + if (Optional.IsDefined(Tag)) + { + writer.WritePropertyName("tag"u8); + writer.WriteStringValue(Tag); + } + writer.WriteEndObject(); + } + + internal static ContainerServiceIPTag DeserializeContainerServiceIPTag(JsonElement element) + { + Optional ipTagType = default; + Optional tag = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("ipTagType"u8)) + { + ipTagType = property.Value.GetString(); + continue; + } + if (property.NameEquals("tag"u8)) + { + tag = property.Value.GetString(); + continue; + } + } + return new ContainerServiceIPTag(ipTagType.Value, tag.Value); + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceIPTag.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceIPTag.cs new file mode 100644 index 0000000000000..8e0d46a29a9c3 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceIPTag.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// Contains the IPTag associated with the object. + public partial class ContainerServiceIPTag + { + /// Initializes a new instance of ContainerServiceIPTag. + public ContainerServiceIPTag() + { + } + + /// Initializes a new instance of ContainerServiceIPTag. + /// The IP tag type. Example: RoutingPreference. + /// The value of the IP tag associated with the public IP. Example: Internet. + internal ContainerServiceIPTag(string ipTagType, string tag) + { + IPTagType = ipTagType; + Tag = tag; + } + + /// The IP tag type. Example: RoutingPreference. + public string IPTagType { get; set; } + /// The value of the IP tag associated with the public IP. Example: Internet. + public string Tag { get; set; } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceAbsoluteMonthlySchedule.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceAbsoluteMonthlySchedule.Serialization.cs new file mode 100644 index 0000000000000..421e328b1c843 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceAbsoluteMonthlySchedule.Serialization.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ContainerService.Models +{ + public partial class ContainerServiceMaintenanceAbsoluteMonthlySchedule : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("intervalMonths"u8); + writer.WriteNumberValue(IntervalMonths); + writer.WritePropertyName("dayOfMonth"u8); + writer.WriteNumberValue(DayOfMonth); + writer.WriteEndObject(); + } + + internal static ContainerServiceMaintenanceAbsoluteMonthlySchedule DeserializeContainerServiceMaintenanceAbsoluteMonthlySchedule(JsonElement element) + { + int intervalMonths = default; + int dayOfMonth = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("intervalMonths"u8)) + { + intervalMonths = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("dayOfMonth"u8)) + { + dayOfMonth = property.Value.GetInt32(); + continue; + } + } + return new ContainerServiceMaintenanceAbsoluteMonthlySchedule(intervalMonths, dayOfMonth); + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceAbsoluteMonthlySchedule.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceAbsoluteMonthlySchedule.cs new file mode 100644 index 0000000000000..6ef1822650ead --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceAbsoluteMonthlySchedule.cs @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// For schedules like: 'recur every month on the 15th' or 'recur every 3 months on the 20th'. + public partial class ContainerServiceMaintenanceAbsoluteMonthlySchedule + { + /// Initializes a new instance of ContainerServiceMaintenanceAbsoluteMonthlySchedule. + /// Specifies the number of months between each set of occurrences. + /// The date of the month. + public ContainerServiceMaintenanceAbsoluteMonthlySchedule(int intervalMonths, int dayOfMonth) + { + IntervalMonths = intervalMonths; + DayOfMonth = dayOfMonth; + } + + /// Specifies the number of months between each set of occurrences. + public int IntervalMonths { get; set; } + /// The date of the month. + public int DayOfMonth { get; set; } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceConfigurationData.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceConfigurationData.Serialization.cs index 38ed66e9e657e..6224a6976a01f 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceConfigurationData.Serialization.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceConfigurationData.Serialization.cs @@ -40,6 +40,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndArray(); } + if (Optional.IsDefined(MaintenanceWindow)) + { + writer.WritePropertyName("maintenanceWindow"u8); + writer.WriteObjectValue(MaintenanceWindow); + } writer.WriteEndObject(); writer.WriteEndObject(); } @@ -52,6 +57,7 @@ internal static ContainerServiceMaintenanceConfigurationData DeserializeContaine Optional systemData = default; Optional> timeInWeek = default; Optional> notAllowedTime = default; + Optional maintenanceWindow = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("id"u8)) @@ -118,11 +124,21 @@ internal static ContainerServiceMaintenanceConfigurationData DeserializeContaine notAllowedTime = array; continue; } + if (property0.NameEquals("maintenanceWindow"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + maintenanceWindow = ContainerServiceMaintenanceWindow.DeserializeContainerServiceMaintenanceWindow(property0.Value); + continue; + } } continue; } } - return new ContainerServiceMaintenanceConfigurationData(id, name, type, systemData.Value, Optional.ToList(timeInWeek), Optional.ToList(notAllowedTime)); + return new ContainerServiceMaintenanceConfigurationData(id, name, type, systemData.Value, Optional.ToList(timeInWeek), Optional.ToList(notAllowedTime), maintenanceWindow.Value); } } } diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceRelativeMonthlySchedule.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceRelativeMonthlySchedule.Serialization.cs new file mode 100644 index 0000000000000..80403f7c12a83 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceRelativeMonthlySchedule.Serialization.cs @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ContainerService.Models +{ + public partial class ContainerServiceMaintenanceRelativeMonthlySchedule : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("intervalMonths"u8); + writer.WriteNumberValue(IntervalMonths); + writer.WritePropertyName("weekIndex"u8); + writer.WriteStringValue(WeekIndex.ToString()); + writer.WritePropertyName("dayOfWeek"u8); + writer.WriteStringValue(DayOfWeek.ToString()); + writer.WriteEndObject(); + } + + internal static ContainerServiceMaintenanceRelativeMonthlySchedule DeserializeContainerServiceMaintenanceRelativeMonthlySchedule(JsonElement element) + { + int intervalMonths = default; + ContainerServiceMaintenanceRelativeMonthlyScheduleWeekIndex weekIndex = default; + ContainerServiceWeekDay dayOfWeek = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("intervalMonths"u8)) + { + intervalMonths = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("weekIndex"u8)) + { + weekIndex = new ContainerServiceMaintenanceRelativeMonthlyScheduleWeekIndex(property.Value.GetString()); + continue; + } + if (property.NameEquals("dayOfWeek"u8)) + { + dayOfWeek = new ContainerServiceWeekDay(property.Value.GetString()); + continue; + } + } + return new ContainerServiceMaintenanceRelativeMonthlySchedule(intervalMonths, weekIndex, dayOfWeek); + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceRelativeMonthlySchedule.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceRelativeMonthlySchedule.cs new file mode 100644 index 0000000000000..3c8e5c2fff4e7 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceRelativeMonthlySchedule.cs @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// For schedules like: 'recur every month on the first Monday' or 'recur every 3 months on last Friday'. + public partial class ContainerServiceMaintenanceRelativeMonthlySchedule + { + /// Initializes a new instance of ContainerServiceMaintenanceRelativeMonthlySchedule. + /// Specifies the number of months between each set of occurrences. + /// Specifies on which instance of the allowed days specified in daysOfWeek the maintenance occurs. + /// Specifies on which day of the week the maintenance occurs. + public ContainerServiceMaintenanceRelativeMonthlySchedule(int intervalMonths, ContainerServiceMaintenanceRelativeMonthlyScheduleWeekIndex weekIndex, ContainerServiceWeekDay dayOfWeek) + { + IntervalMonths = intervalMonths; + WeekIndex = weekIndex; + DayOfWeek = dayOfWeek; + } + + /// Specifies the number of months between each set of occurrences. + public int IntervalMonths { get; set; } + /// Specifies on which instance of the allowed days specified in daysOfWeek the maintenance occurs. + public ContainerServiceMaintenanceRelativeMonthlyScheduleWeekIndex WeekIndex { get; set; } + /// Specifies on which day of the week the maintenance occurs. + public ContainerServiceWeekDay DayOfWeek { get; set; } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceRelativeMonthlyScheduleWeekIndex.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceRelativeMonthlyScheduleWeekIndex.cs new file mode 100644 index 0000000000000..b7d5961f9fd45 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceRelativeMonthlyScheduleWeekIndex.cs @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// Specifies on which instance of the allowed days specified in daysOfWeek the maintenance occurs. + public readonly partial struct ContainerServiceMaintenanceRelativeMonthlyScheduleWeekIndex : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ContainerServiceMaintenanceRelativeMonthlyScheduleWeekIndex(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string FirstValue = "First"; + private const string SecondValue = "Second"; + private const string ThirdValue = "Third"; + private const string FourthValue = "Fourth"; + private const string LastValue = "Last"; + + /// First. + public static ContainerServiceMaintenanceRelativeMonthlyScheduleWeekIndex First { get; } = new ContainerServiceMaintenanceRelativeMonthlyScheduleWeekIndex(FirstValue); + /// Second. + public static ContainerServiceMaintenanceRelativeMonthlyScheduleWeekIndex Second { get; } = new ContainerServiceMaintenanceRelativeMonthlyScheduleWeekIndex(SecondValue); + /// Third. + public static ContainerServiceMaintenanceRelativeMonthlyScheduleWeekIndex Third { get; } = new ContainerServiceMaintenanceRelativeMonthlyScheduleWeekIndex(ThirdValue); + /// Fourth. + public static ContainerServiceMaintenanceRelativeMonthlyScheduleWeekIndex Fourth { get; } = new ContainerServiceMaintenanceRelativeMonthlyScheduleWeekIndex(FourthValue); + /// Last. + public static ContainerServiceMaintenanceRelativeMonthlyScheduleWeekIndex Last { get; } = new ContainerServiceMaintenanceRelativeMonthlyScheduleWeekIndex(LastValue); + /// Determines if two values are the same. + public static bool operator ==(ContainerServiceMaintenanceRelativeMonthlyScheduleWeekIndex left, ContainerServiceMaintenanceRelativeMonthlyScheduleWeekIndex right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ContainerServiceMaintenanceRelativeMonthlyScheduleWeekIndex left, ContainerServiceMaintenanceRelativeMonthlyScheduleWeekIndex right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator ContainerServiceMaintenanceRelativeMonthlyScheduleWeekIndex(string value) => new ContainerServiceMaintenanceRelativeMonthlyScheduleWeekIndex(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ContainerServiceMaintenanceRelativeMonthlyScheduleWeekIndex other && Equals(other); + /// + public bool Equals(ContainerServiceMaintenanceRelativeMonthlyScheduleWeekIndex other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceSchedule.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceSchedule.Serialization.cs new file mode 100644 index 0000000000000..221d52641ee0b --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceSchedule.Serialization.cs @@ -0,0 +1,93 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ContainerService.Models +{ + public partial class ContainerServiceMaintenanceSchedule : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Daily)) + { + writer.WritePropertyName("daily"u8); + writer.WriteObjectValue(Daily); + } + if (Optional.IsDefined(Weekly)) + { + writer.WritePropertyName("weekly"u8); + writer.WriteObjectValue(Weekly); + } + if (Optional.IsDefined(AbsoluteMonthly)) + { + writer.WritePropertyName("absoluteMonthly"u8); + writer.WriteObjectValue(AbsoluteMonthly); + } + if (Optional.IsDefined(RelativeMonthly)) + { + writer.WritePropertyName("relativeMonthly"u8); + writer.WriteObjectValue(RelativeMonthly); + } + writer.WriteEndObject(); + } + + internal static ContainerServiceMaintenanceSchedule DeserializeContainerServiceMaintenanceSchedule(JsonElement element) + { + Optional daily = default; + Optional weekly = default; + Optional absoluteMonthly = default; + Optional relativeMonthly = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("daily"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + daily = DailySchedule.DeserializeDailySchedule(property.Value); + continue; + } + if (property.NameEquals("weekly"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + weekly = ContainerServiceMaintenanceWeeklySchedule.DeserializeContainerServiceMaintenanceWeeklySchedule(property.Value); + continue; + } + if (property.NameEquals("absoluteMonthly"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + absoluteMonthly = ContainerServiceMaintenanceAbsoluteMonthlySchedule.DeserializeContainerServiceMaintenanceAbsoluteMonthlySchedule(property.Value); + continue; + } + if (property.NameEquals("relativeMonthly"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + relativeMonthly = ContainerServiceMaintenanceRelativeMonthlySchedule.DeserializeContainerServiceMaintenanceRelativeMonthlySchedule(property.Value); + continue; + } + } + return new ContainerServiceMaintenanceSchedule(daily.Value, weekly.Value, absoluteMonthly.Value, relativeMonthly.Value); + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceSchedule.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceSchedule.cs new file mode 100644 index 0000000000000..1694e1ab0cf93 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceSchedule.cs @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// One and only one of the schedule types should be specified. Choose either 'daily', 'weekly', 'absoluteMonthly' or 'relativeMonthly' for your maintenance schedule. + public partial class ContainerServiceMaintenanceSchedule + { + /// Initializes a new instance of ContainerServiceMaintenanceSchedule. + public ContainerServiceMaintenanceSchedule() + { + } + + /// Initializes a new instance of ContainerServiceMaintenanceSchedule. + /// For schedules like: 'recur every day' or 'recur every 3 days'. + /// For schedules like: 'recur every Monday' or 'recur every 3 weeks on Wednesday'. + /// For schedules like: 'recur every month on the 15th' or 'recur every 3 months on the 20th'. + /// For schedules like: 'recur every month on the first Monday' or 'recur every 3 months on last Friday'. + internal ContainerServiceMaintenanceSchedule(DailySchedule daily, ContainerServiceMaintenanceWeeklySchedule weekly, ContainerServiceMaintenanceAbsoluteMonthlySchedule absoluteMonthly, ContainerServiceMaintenanceRelativeMonthlySchedule relativeMonthly) + { + Daily = daily; + Weekly = weekly; + AbsoluteMonthly = absoluteMonthly; + RelativeMonthly = relativeMonthly; + } + + /// For schedules like: 'recur every day' or 'recur every 3 days'. + internal DailySchedule Daily { get; set; } + /// Specifies the number of days between each set of occurrences. + public int? DailyIntervalDays + { + get => Daily is null ? default(int?) : Daily.IntervalDays; + set + { + Daily = value.HasValue ? new DailySchedule(value.Value) : null; + } + } + + /// For schedules like: 'recur every Monday' or 'recur every 3 weeks on Wednesday'. + public ContainerServiceMaintenanceWeeklySchedule Weekly { get; set; } + /// For schedules like: 'recur every month on the 15th' or 'recur every 3 months on the 20th'. + public ContainerServiceMaintenanceAbsoluteMonthlySchedule AbsoluteMonthly { get; set; } + /// For schedules like: 'recur every month on the first Monday' or 'recur every 3 months on last Friday'. + public ContainerServiceMaintenanceRelativeMonthlySchedule RelativeMonthly { get; set; } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceWeeklySchedule.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceWeeklySchedule.Serialization.cs new file mode 100644 index 0000000000000..db4ed52ba8e78 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceWeeklySchedule.Serialization.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ContainerService.Models +{ + public partial class ContainerServiceMaintenanceWeeklySchedule : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("intervalWeeks"u8); + writer.WriteNumberValue(IntervalWeeks); + writer.WritePropertyName("dayOfWeek"u8); + writer.WriteStringValue(DayOfWeek.ToString()); + writer.WriteEndObject(); + } + + internal static ContainerServiceMaintenanceWeeklySchedule DeserializeContainerServiceMaintenanceWeeklySchedule(JsonElement element) + { + int intervalWeeks = default; + ContainerServiceWeekDay dayOfWeek = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("intervalWeeks"u8)) + { + intervalWeeks = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("dayOfWeek"u8)) + { + dayOfWeek = new ContainerServiceWeekDay(property.Value.GetString()); + continue; + } + } + return new ContainerServiceMaintenanceWeeklySchedule(intervalWeeks, dayOfWeek); + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceWeeklySchedule.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceWeeklySchedule.cs new file mode 100644 index 0000000000000..8f1157a285514 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceWeeklySchedule.cs @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// For schedules like: 'recur every Monday' or 'recur every 3 weeks on Wednesday'. + public partial class ContainerServiceMaintenanceWeeklySchedule + { + /// Initializes a new instance of ContainerServiceMaintenanceWeeklySchedule. + /// Specifies the number of weeks between each set of occurrences. + /// Specifies on which day of the week the maintenance occurs. + public ContainerServiceMaintenanceWeeklySchedule(int intervalWeeks, ContainerServiceWeekDay dayOfWeek) + { + IntervalWeeks = intervalWeeks; + DayOfWeek = dayOfWeek; + } + + /// Specifies the number of weeks between each set of occurrences. + public int IntervalWeeks { get; set; } + /// Specifies on which day of the week the maintenance occurs. + public ContainerServiceWeekDay DayOfWeek { get; set; } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceWindow.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceWindow.Serialization.cs new file mode 100644 index 0000000000000..a233683f7650d --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceWindow.Serialization.cs @@ -0,0 +1,102 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ContainerService.Models +{ + public partial class ContainerServiceMaintenanceWindow : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("schedule"u8); + writer.WriteObjectValue(Schedule); + writer.WritePropertyName("durationHours"u8); + writer.WriteNumberValue(DurationHours); + if (Optional.IsDefined(UtcOffset)) + { + writer.WritePropertyName("utcOffset"u8); + writer.WriteStringValue(UtcOffset); + } + if (Optional.IsDefined(StartDate)) + { + writer.WritePropertyName("startDate"u8); + writer.WriteStringValue(StartDate); + } + writer.WritePropertyName("startTime"u8); + writer.WriteStringValue(StartTime); + if (Optional.IsCollectionDefined(NotAllowedDates)) + { + writer.WritePropertyName("notAllowedDates"u8); + writer.WriteStartArray(); + foreach (var item in NotAllowedDates) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + writer.WriteEndObject(); + } + + internal static ContainerServiceMaintenanceWindow DeserializeContainerServiceMaintenanceWindow(JsonElement element) + { + ContainerServiceMaintenanceSchedule schedule = default; + int durationHours = default; + Optional utcOffset = default; + Optional startDate = default; + string startTime = default; + Optional> notAllowedDates = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("schedule"u8)) + { + schedule = ContainerServiceMaintenanceSchedule.DeserializeContainerServiceMaintenanceSchedule(property.Value); + continue; + } + if (property.NameEquals("durationHours"u8)) + { + durationHours = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("utcOffset"u8)) + { + utcOffset = property.Value.GetString(); + continue; + } + if (property.NameEquals("startDate"u8)) + { + startDate = property.Value.GetString(); + continue; + } + if (property.NameEquals("startTime"u8)) + { + startTime = property.Value.GetString(); + continue; + } + if (property.NameEquals("notAllowedDates"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(ContainerServiceDateSpan.DeserializeContainerServiceDateSpan(item)); + } + notAllowedDates = array; + continue; + } + } + return new ContainerServiceMaintenanceWindow(schedule, durationHours, utcOffset.Value, startDate.Value, startTime, Optional.ToList(notAllowedDates)); + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceWindow.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceWindow.cs new file mode 100644 index 0000000000000..48097779928dc --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceMaintenanceWindow.cs @@ -0,0 +1,61 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// Maintenance window used to configure scheduled auto-upgrade for a Managed Cluster. + public partial class ContainerServiceMaintenanceWindow + { + /// Initializes a new instance of ContainerServiceMaintenanceWindow. + /// Recurrence schedule for the maintenance window. + /// Length of maintenance window range from 4 to 24 hours. + /// The start time of the maintenance window. Accepted values are from '00:00' to '23:59'. 'utcOffset' applies to this field. For example: '02:00' with 'utcOffset: +02:00' means UTC time '00:00'. + /// or is null. + public ContainerServiceMaintenanceWindow(ContainerServiceMaintenanceSchedule schedule, int durationHours, string startTime) + { + Argument.AssertNotNull(schedule, nameof(schedule)); + Argument.AssertNotNull(startTime, nameof(startTime)); + + Schedule = schedule; + DurationHours = durationHours; + StartTime = startTime; + NotAllowedDates = new ChangeTrackingList(); + } + + /// Initializes a new instance of ContainerServiceMaintenanceWindow. + /// Recurrence schedule for the maintenance window. + /// Length of maintenance window range from 4 to 24 hours. + /// The UTC offset in format +/-HH:mm. For example, '+05:30' for IST and '-07:00' for PST. If not specified, the default is '+00:00'. + /// The date the maintenance window activates. If the current date is before this date, the maintenance window is inactive and will not be used for upgrades. If not specified, the maintenance window will be active right away. + /// The start time of the maintenance window. Accepted values are from '00:00' to '23:59'. 'utcOffset' applies to this field. For example: '02:00' with 'utcOffset: +02:00' means UTC time '00:00'. + /// Date ranges on which upgrade is not allowed. 'utcOffset' applies to this field. For example, with 'utcOffset: +02:00' and 'dateSpan' being '2022-12-23' to '2023-01-03', maintenance will be blocked from '2022-12-22 22:00' to '2023-01-03 22:00' in UTC time. + internal ContainerServiceMaintenanceWindow(ContainerServiceMaintenanceSchedule schedule, int durationHours, string utcOffset, string startDate, string startTime, IList notAllowedDates) + { + Schedule = schedule; + DurationHours = durationHours; + UtcOffset = utcOffset; + StartDate = startDate; + StartTime = startTime; + NotAllowedDates = notAllowedDates; + } + + /// Recurrence schedule for the maintenance window. + public ContainerServiceMaintenanceSchedule Schedule { get; set; } + /// Length of maintenance window range from 4 to 24 hours. + public int DurationHours { get; set; } + /// The UTC offset in format +/-HH:mm. For example, '+05:30' for IST and '-07:00' for PST. If not specified, the default is '+00:00'. + public string UtcOffset { get; set; } + /// The start time of the maintenance window. Accepted values are from '00:00' to '23:59'. 'utcOffset' applies to this field. For example: '02:00' with 'utcOffset: +02:00' means UTC time '00:00'. + public string StartTime { get; set; } + /// Date ranges on which upgrade is not allowed. 'utcOffset' applies to this field. For example, with 'utcOffset: +02:00' and 'dateSpan' being '2022-12-23' to '2023-01-03', maintenance will be blocked from '2022-12-22 22:00' to '2023-01-03 22:00' in UTC time. + public IList NotAllowedDates { get; } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceManagedClusterData.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceManagedClusterData.Serialization.cs index 7e548ca713a1a..16d8c18785c6b 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceManagedClusterData.Serialization.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceManagedClusterData.Serialization.cs @@ -49,6 +49,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(Location); writer.WritePropertyName("properties"u8); writer.WriteStartObject(); + if (Optional.IsDefined(CreationData)) + { + writer.WritePropertyName("creationData"u8); + writer.WriteObjectValue(CreationData); + } if (Optional.IsDefined(KubernetesVersion)) { writer.WritePropertyName("kubernetesVersion"u8); @@ -115,6 +120,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("nodeResourceGroup"u8); writer.WriteStringValue(NodeResourceGroup); } + if (Optional.IsDefined(NodeResourceGroupProfile)) + { + writer.WritePropertyName("nodeResourceGroupProfile"u8); + writer.WriteObjectValue(NodeResourceGroupProfile); + } if (Optional.IsDefined(EnableRbac)) { writer.WritePropertyName("enableRBAC"u8); @@ -125,6 +135,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("enablePodSecurityPolicy"u8); writer.WriteBooleanValue(EnablePodSecurityPolicy.Value); } + if (Optional.IsDefined(EnableNamespaceResources)) + { + writer.WritePropertyName("enableNamespaceResources"u8); + writer.WriteBooleanValue(EnableNamespaceResources.Value); + } if (Optional.IsDefined(NetworkProfile)) { writer.WritePropertyName("networkProfile"u8); @@ -196,11 +211,31 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("storageProfile"u8); writer.WriteObjectValue(StorageProfile); } + if (Optional.IsDefined(IngressProfile)) + { + writer.WritePropertyName("ingressProfile"u8); + writer.WriteObjectValue(IngressProfile); + } if (Optional.IsDefined(PublicNetworkAccess)) { writer.WritePropertyName("publicNetworkAccess"u8); writer.WriteStringValue(PublicNetworkAccess.Value.ToString()); } + if (Optional.IsDefined(WorkloadAutoScalerProfile)) + { + writer.WritePropertyName("workloadAutoScalerProfile"u8); + writer.WriteObjectValue(WorkloadAutoScalerProfile); + } + if (Optional.IsDefined(AzureMonitorProfile)) + { + writer.WritePropertyName("azureMonitorProfile"u8); + writer.WriteObjectValue(AzureMonitorProfile); + } + if (Optional.IsDefined(GuardrailsProfile)) + { + writer.WritePropertyName("guardrailsProfile"u8); + writer.WriteObjectValue(GuardrailsProfile); + } writer.WriteEndObject(); writer.WriteEndObject(); } @@ -218,6 +253,7 @@ internal static ContainerServiceManagedClusterData DeserializeContainerServiceMa Optional systemData = default; Optional provisioningState = default; Optional powerState = default; + Optional creationData = default; Optional maxAgentPools = default; Optional kubernetesVersion = default; Optional currentKubernetesVersion = default; @@ -234,8 +270,10 @@ internal static ContainerServiceManagedClusterData DeserializeContainerServiceMa Optional podIdentityProfile = default; Optional oidcIssuerProfile = default; Optional nodeResourceGroup = default; + Optional nodeResourceGroupProfile = default; Optional enableRBAC = default; Optional enablePodSecurityPolicy = default; + Optional enableNamespaceResources = default; Optional networkProfile = default; Optional aadProfile = default; Optional autoUpgradeProfile = default; @@ -248,7 +286,11 @@ internal static ContainerServiceManagedClusterData DeserializeContainerServiceMa Optional httpProxyConfig = default; Optional securityProfile = default; Optional storageProfile = default; + Optional ingressProfile = default; Optional publicNetworkAccess = default; + Optional workloadAutoScalerProfile = default; + Optional azureMonitorProfile = default; + Optional guardrailsProfile = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("sku"u8)) @@ -350,6 +392,16 @@ internal static ContainerServiceManagedClusterData DeserializeContainerServiceMa powerState = ContainerServicePowerState.DeserializeContainerServicePowerState(property0.Value); continue; } + if (property0.NameEquals("creationData"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + creationData = ContainerServiceCreationData.DeserializeContainerServiceCreationData(property0.Value); + continue; + } if (property0.NameEquals("maxAgentPools"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -480,6 +532,16 @@ internal static ContainerServiceManagedClusterData DeserializeContainerServiceMa nodeResourceGroup = property0.Value.GetString(); continue; } + if (property0.NameEquals("nodeResourceGroupProfile"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + nodeResourceGroupProfile = ManagedClusterNodeResourceGroupProfile.DeserializeManagedClusterNodeResourceGroupProfile(property0.Value); + continue; + } if (property0.NameEquals("enableRBAC"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -500,6 +562,16 @@ internal static ContainerServiceManagedClusterData DeserializeContainerServiceMa enablePodSecurityPolicy = property0.Value.GetBoolean(); continue; } + if (property0.NameEquals("enableNamespaceResources"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + enableNamespaceResources = property0.Value.GetBoolean(); + continue; + } if (property0.NameEquals("networkProfile"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -630,6 +702,16 @@ internal static ContainerServiceManagedClusterData DeserializeContainerServiceMa storageProfile = ManagedClusterStorageProfile.DeserializeManagedClusterStorageProfile(property0.Value); continue; } + if (property0.NameEquals("ingressProfile"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + ingressProfile = ManagedClusterIngressProfile.DeserializeManagedClusterIngressProfile(property0.Value); + continue; + } if (property0.NameEquals("publicNetworkAccess"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -640,11 +722,41 @@ internal static ContainerServiceManagedClusterData DeserializeContainerServiceMa publicNetworkAccess = new ContainerServicePublicNetworkAccess(property0.Value.GetString()); continue; } + if (property0.NameEquals("workloadAutoScalerProfile"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + workloadAutoScalerProfile = ManagedClusterWorkloadAutoScalerProfile.DeserializeManagedClusterWorkloadAutoScalerProfile(property0.Value); + continue; + } + if (property0.NameEquals("azureMonitorProfile"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + azureMonitorProfile = ManagedClusterAzureMonitorProfile.DeserializeManagedClusterAzureMonitorProfile(property0.Value); + continue; + } + if (property0.NameEquals("guardrailsProfile"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + guardrailsProfile = ManagedClusterGuardrailsProfile.DeserializeManagedClusterGuardrailsProfile(property0.Value); + continue; + } } continue; } } - return new ContainerServiceManagedClusterData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, sku.Value, extendedLocation, identity, provisioningState.Value, powerState.Value, Optional.ToNullable(maxAgentPools), kubernetesVersion.Value, currentKubernetesVersion.Value, dnsPrefix.Value, fqdnSubdomain.Value, fqdn.Value, privateFQDN.Value, azurePortalFQDN.Value, Optional.ToList(agentPoolProfiles), linuxProfile.Value, windowsProfile.Value, servicePrincipalProfile.Value, Optional.ToDictionary(addonProfiles), podIdentityProfile.Value, oidcIssuerProfile.Value, nodeResourceGroup.Value, Optional.ToNullable(enableRBAC), Optional.ToNullable(enablePodSecurityPolicy), networkProfile.Value, aadProfile.Value, autoUpgradeProfile.Value, autoScalerProfile.Value, apiServerAccessProfile.Value, diskEncryptionSetId.Value, Optional.ToDictionary(identityProfile), Optional.ToList(privateLinkResources), Optional.ToNullable(disableLocalAccounts), httpProxyConfig.Value, securityProfile.Value, storageProfile.Value, Optional.ToNullable(publicNetworkAccess)); + return new ContainerServiceManagedClusterData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, sku.Value, extendedLocation, identity, provisioningState.Value, powerState.Value, creationData.Value, Optional.ToNullable(maxAgentPools), kubernetesVersion.Value, currentKubernetesVersion.Value, dnsPrefix.Value, fqdnSubdomain.Value, fqdn.Value, privateFQDN.Value, azurePortalFQDN.Value, Optional.ToList(agentPoolProfiles), linuxProfile.Value, windowsProfile.Value, servicePrincipalProfile.Value, Optional.ToDictionary(addonProfiles), podIdentityProfile.Value, oidcIssuerProfile.Value, nodeResourceGroup.Value, nodeResourceGroupProfile.Value, Optional.ToNullable(enableRBAC), Optional.ToNullable(enablePodSecurityPolicy), Optional.ToNullable(enableNamespaceResources), networkProfile.Value, aadProfile.Value, autoUpgradeProfile.Value, autoScalerProfile.Value, apiServerAccessProfile.Value, diskEncryptionSetId.Value, Optional.ToDictionary(identityProfile), Optional.ToList(privateLinkResources), Optional.ToNullable(disableLocalAccounts), httpProxyConfig.Value, securityProfile.Value, storageProfile.Value, ingressProfile.Value, Optional.ToNullable(publicNetworkAccess), workloadAutoScalerProfile.Value, azureMonitorProfile.Value, guardrailsProfile.Value); } } } diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceNetworkPlugin.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceNetworkPlugin.cs index 6b445ef23e02d..24323dfb093fd 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceNetworkPlugin.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceNetworkPlugin.cs @@ -30,7 +30,7 @@ public ContainerServiceNetworkPlugin(string value) public static ContainerServiceNetworkPlugin Azure { get; } = new ContainerServiceNetworkPlugin(AzureValue); /// Use the Kubenet network plugin. See [Kubenet (basic) networking](https://docs.microsoft.com/azure/aks/concepts-network#kubenet-basic-networking) for more information. public static ContainerServiceNetworkPlugin Kubenet { get; } = new ContainerServiceNetworkPlugin(KubenetValue); - /// No CNI plugin is pre-installed. See [BYO CNI](https://docs.microsoft.com/en-us/azure/aks/use-byo-cni) for more information. + /// Do not use a network plugin. A custom CNI will need to be installed after cluster creation for networking functionality. public static ContainerServiceNetworkPlugin None { get; } = new ContainerServiceNetworkPlugin(NoneValue); /// Determines if two values are the same. public static bool operator ==(ContainerServiceNetworkPlugin left, ContainerServiceNetworkPlugin right) => left.Equals(right); diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceNetworkPluginMode.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceNetworkPluginMode.cs new file mode 100644 index 0000000000000..2f81d207ff0c3 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceNetworkPluginMode.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// The mode the network plugin should use. + public readonly partial struct ContainerServiceNetworkPluginMode : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ContainerServiceNetworkPluginMode(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string OverlayValue = "Overlay"; + + /// Pods are given IPs from the PodCIDR address space but use Azure Routing Domains rather than Kubenet reference plugins host-local and bridge. + public static ContainerServiceNetworkPluginMode Overlay { get; } = new ContainerServiceNetworkPluginMode(OverlayValue); + /// Determines if two values are the same. + public static bool operator ==(ContainerServiceNetworkPluginMode left, ContainerServiceNetworkPluginMode right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ContainerServiceNetworkPluginMode left, ContainerServiceNetworkPluginMode right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator ContainerServiceNetworkPluginMode(string value) => new ContainerServiceNetworkPluginMode(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ContainerServiceNetworkPluginMode other && Equals(other); + /// + public bool Equals(ContainerServiceNetworkPluginMode other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceNetworkProfile.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceNetworkProfile.Serialization.cs index c1678246143c4..adf47d16d9628 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceNetworkProfile.Serialization.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceNetworkProfile.Serialization.cs @@ -21,6 +21,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("networkPlugin"u8); writer.WriteStringValue(NetworkPlugin.Value.ToString()); } + if (Optional.IsDefined(NetworkPluginMode)) + { + writer.WritePropertyName("networkPluginMode"u8); + writer.WriteStringValue(NetworkPluginMode.Value.ToString()); + } if (Optional.IsDefined(NetworkPolicy)) { writer.WritePropertyName("networkPolicy"u8); @@ -31,6 +36,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("networkMode"u8); writer.WriteStringValue(NetworkMode.Value.ToString()); } + if (Optional.IsDefined(EbpfDataplane)) + { + writer.WritePropertyName("ebpfDataplane"u8); + writer.WriteStringValue(EbpfDataplane.Value.ToString()); + } if (Optional.IsDefined(PodCidr)) { writer.WritePropertyName("podCidr"u8); @@ -101,14 +111,21 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndArray(); } + if (Optional.IsDefined(KubeProxyConfig)) + { + writer.WritePropertyName("kubeProxyConfig"u8); + writer.WriteObjectValue(KubeProxyConfig); + } writer.WriteEndObject(); } internal static ContainerServiceNetworkProfile DeserializeContainerServiceNetworkProfile(JsonElement element) { Optional networkPlugin = default; + Optional networkPluginMode = default; Optional networkPolicy = default; Optional networkMode = default; + Optional ebpfDataplane = default; Optional podCidr = default; Optional serviceCidr = default; Optional dnsServiceIP = default; @@ -120,6 +137,7 @@ internal static ContainerServiceNetworkProfile DeserializeContainerServiceNetwor Optional> podCidrs = default; Optional> serviceCidrs = default; Optional> ipFamilies = default; + Optional kubeProxyConfig = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("networkPlugin"u8)) @@ -132,6 +150,16 @@ internal static ContainerServiceNetworkProfile DeserializeContainerServiceNetwor networkPlugin = new ContainerServiceNetworkPlugin(property.Value.GetString()); continue; } + if (property.NameEquals("networkPluginMode"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + networkPluginMode = new ContainerServiceNetworkPluginMode(property.Value.GetString()); + continue; + } if (property.NameEquals("networkPolicy"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -152,6 +180,16 @@ internal static ContainerServiceNetworkProfile DeserializeContainerServiceNetwor networkMode = new ContainerServiceNetworkMode(property.Value.GetString()); continue; } + if (property.NameEquals("ebpfDataplane"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + ebpfDataplane = new EbpfDataplane(property.Value.GetString()); + continue; + } if (property.NameEquals("podCidr"u8)) { podCidr = property.Value.GetString(); @@ -257,8 +295,18 @@ internal static ContainerServiceNetworkProfile DeserializeContainerServiceNetwor ipFamilies = array; continue; } + if (property.NameEquals("kubeProxyConfig"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + kubeProxyConfig = ContainerServiceNetworkProfileKubeProxyConfig.DeserializeContainerServiceNetworkProfileKubeProxyConfig(property.Value); + continue; + } } - return new ContainerServiceNetworkProfile(Optional.ToNullable(networkPlugin), Optional.ToNullable(networkPolicy), Optional.ToNullable(networkMode), podCidr.Value, serviceCidr.Value, dnsServiceIP.Value, dockerBridgeCidr.Value, Optional.ToNullable(outboundType), Optional.ToNullable(loadBalancerSku), loadBalancerProfile.Value, natGatewayProfile.Value, Optional.ToList(podCidrs), Optional.ToList(serviceCidrs), Optional.ToList(ipFamilies)); + return new ContainerServiceNetworkProfile(Optional.ToNullable(networkPlugin), Optional.ToNullable(networkPluginMode), Optional.ToNullable(networkPolicy), Optional.ToNullable(networkMode), Optional.ToNullable(ebpfDataplane), podCidr.Value, serviceCidr.Value, dnsServiceIP.Value, dockerBridgeCidr.Value, Optional.ToNullable(outboundType), Optional.ToNullable(loadBalancerSku), loadBalancerProfile.Value, natGatewayProfile.Value, Optional.ToList(podCidrs), Optional.ToList(serviceCidrs), Optional.ToList(ipFamilies), kubeProxyConfig.Value); } } } diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceNetworkProfile.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceNetworkProfile.cs index 0db0ccfafe96a..1ae02704ca60d 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceNetworkProfile.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceNetworkProfile.cs @@ -23,8 +23,10 @@ public ContainerServiceNetworkProfile() /// Initializes a new instance of ContainerServiceNetworkProfile. /// Network plugin used for building the Kubernetes network. + /// Network plugin mode used for building the Kubernetes network. /// Network policy used for building the Kubernetes network. /// This cannot be specified if networkPlugin is anything other than 'azure'. + /// The eBPF dataplane used for building the Kubernetes network. /// A CIDR notation IP range from which to assign pod IPs when kubenet is used. /// A CIDR notation IP range from which to assign service cluster IPs. It must not overlap with any Subnet IP ranges. /// An IP address assigned to the Kubernetes DNS service. It must be within the Kubernetes service address range specified in serviceCidr. @@ -36,11 +38,14 @@ public ContainerServiceNetworkProfile() /// One IPv4 CIDR is expected for single-stack networking. Two CIDRs, one for each IP family (IPv4/IPv6), is expected for dual-stack networking. /// One IPv4 CIDR is expected for single-stack networking. Two CIDRs, one for each IP family (IPv4/IPv6), is expected for dual-stack networking. They must not overlap with any Subnet IP ranges. /// IP families are used to determine single-stack or dual-stack clusters. For single-stack, the expected value is IPv4. For dual-stack, the expected values are IPv4 and IPv6. - internal ContainerServiceNetworkProfile(ContainerServiceNetworkPlugin? networkPlugin, ContainerServiceNetworkPolicy? networkPolicy, ContainerServiceNetworkMode? networkMode, string podCidr, string serviceCidr, string dnsServiceIP, string dockerBridgeCidr, ContainerServiceOutboundType? outboundType, ContainerServiceLoadBalancerSku? loadBalancerSku, ManagedClusterLoadBalancerProfile loadBalancerProfile, ManagedClusterNatGatewayProfile natGatewayProfile, IList podCidrs, IList serviceCidrs, IList ipFamilies) + /// Holds configuration customizations for kube-proxy. Any values not defined will use the kube-proxy defaulting behavior. See https://v<version>.docs.kubernetes.io/docs/reference/command-line-tools-reference/kube-proxy/ where <version> is represented by a <major version>-<minor version> string. Kubernetes version 1.23 would be '1-23'. + internal ContainerServiceNetworkProfile(ContainerServiceNetworkPlugin? networkPlugin, ContainerServiceNetworkPluginMode? networkPluginMode, ContainerServiceNetworkPolicy? networkPolicy, ContainerServiceNetworkMode? networkMode, EbpfDataplane? ebpfDataplane, string podCidr, string serviceCidr, string dnsServiceIP, string dockerBridgeCidr, ContainerServiceOutboundType? outboundType, ContainerServiceLoadBalancerSku? loadBalancerSku, ManagedClusterLoadBalancerProfile loadBalancerProfile, ManagedClusterNatGatewayProfile natGatewayProfile, IList podCidrs, IList serviceCidrs, IList ipFamilies, ContainerServiceNetworkProfileKubeProxyConfig kubeProxyConfig) { NetworkPlugin = networkPlugin; + NetworkPluginMode = networkPluginMode; NetworkPolicy = networkPolicy; NetworkMode = networkMode; + EbpfDataplane = ebpfDataplane; PodCidr = podCidr; ServiceCidr = serviceCidr; DnsServiceIP = dnsServiceIP; @@ -52,14 +57,19 @@ internal ContainerServiceNetworkProfile(ContainerServiceNetworkPlugin? networkPl PodCidrs = podCidrs; ServiceCidrs = serviceCidrs; IPFamilies = ipFamilies; + KubeProxyConfig = kubeProxyConfig; } /// Network plugin used for building the Kubernetes network. public ContainerServiceNetworkPlugin? NetworkPlugin { get; set; } + /// Network plugin mode used for building the Kubernetes network. + public ContainerServiceNetworkPluginMode? NetworkPluginMode { get; set; } /// Network policy used for building the Kubernetes network. public ContainerServiceNetworkPolicy? NetworkPolicy { get; set; } /// This cannot be specified if networkPlugin is anything other than 'azure'. public ContainerServiceNetworkMode? NetworkMode { get; set; } + /// The eBPF dataplane used for building the Kubernetes network. + public EbpfDataplane? EbpfDataplane { get; set; } /// A CIDR notation IP range from which to assign pod IPs when kubenet is used. public string PodCidr { get; set; } /// A CIDR notation IP range from which to assign service cluster IPs. It must not overlap with any Subnet IP ranges. @@ -82,5 +92,7 @@ internal ContainerServiceNetworkProfile(ContainerServiceNetworkPlugin? networkPl public IList ServiceCidrs { get; } /// IP families are used to determine single-stack or dual-stack clusters. For single-stack, the expected value is IPv4. For dual-stack, the expected values are IPv4 and IPv6. public IList IPFamilies { get; } + /// Holds configuration customizations for kube-proxy. Any values not defined will use the kube-proxy defaulting behavior. See https://v<version>.docs.kubernetes.io/docs/reference/command-line-tools-reference/kube-proxy/ where <version> is represented by a <major version>-<minor version> string. Kubernetes version 1.23 would be '1-23'. + public ContainerServiceNetworkProfileKubeProxyConfig KubeProxyConfig { get; set; } } } diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceNetworkProfileForSnapshot.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceNetworkProfileForSnapshot.Serialization.cs new file mode 100644 index 0000000000000..7e76a030ac94e --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceNetworkProfileForSnapshot.Serialization.cs @@ -0,0 +1,78 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ContainerService.Models +{ + public partial class ContainerServiceNetworkProfileForSnapshot + { + internal static ContainerServiceNetworkProfileForSnapshot DeserializeContainerServiceNetworkProfileForSnapshot(JsonElement element) + { + Optional networkPlugin = default; + Optional networkPluginMode = default; + Optional networkPolicy = default; + Optional networkMode = default; + Optional loadBalancerSku = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("networkPlugin"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + networkPlugin = new ContainerServiceNetworkPlugin(property.Value.GetString()); + continue; + } + if (property.NameEquals("networkPluginMode"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + networkPluginMode = new ContainerServiceNetworkPluginMode(property.Value.GetString()); + continue; + } + if (property.NameEquals("networkPolicy"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + networkPolicy = new ContainerServiceNetworkPolicy(property.Value.GetString()); + continue; + } + if (property.NameEquals("networkMode"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + networkMode = new ContainerServiceNetworkMode(property.Value.GetString()); + continue; + } + if (property.NameEquals("loadBalancerSku"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + loadBalancerSku = new ContainerServiceLoadBalancerSku(property.Value.GetString()); + continue; + } + } + return new ContainerServiceNetworkProfileForSnapshot(Optional.ToNullable(networkPlugin), Optional.ToNullable(networkPluginMode), Optional.ToNullable(networkPolicy), Optional.ToNullable(networkMode), Optional.ToNullable(loadBalancerSku)); + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceNetworkProfileForSnapshot.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceNetworkProfileForSnapshot.cs new file mode 100644 index 0000000000000..6e919803de900 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceNetworkProfileForSnapshot.cs @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// network profile for managed cluster snapshot, these properties are read only. + public partial class ContainerServiceNetworkProfileForSnapshot + { + /// Initializes a new instance of ContainerServiceNetworkProfileForSnapshot. + internal ContainerServiceNetworkProfileForSnapshot() + { + } + + /// Initializes a new instance of ContainerServiceNetworkProfileForSnapshot. + /// networkPlugin for managed cluster snapshot. + /// NetworkPluginMode for managed cluster snapshot. + /// networkPolicy for managed cluster snapshot. + /// networkMode for managed cluster snapshot. + /// loadBalancerSku for managed cluster snapshot. + internal ContainerServiceNetworkProfileForSnapshot(ContainerServiceNetworkPlugin? networkPlugin, ContainerServiceNetworkPluginMode? networkPluginMode, ContainerServiceNetworkPolicy? networkPolicy, ContainerServiceNetworkMode? networkMode, ContainerServiceLoadBalancerSku? loadBalancerSku) + { + NetworkPlugin = networkPlugin; + NetworkPluginMode = networkPluginMode; + NetworkPolicy = networkPolicy; + NetworkMode = networkMode; + LoadBalancerSku = loadBalancerSku; + } + + /// networkPlugin for managed cluster snapshot. + public ContainerServiceNetworkPlugin? NetworkPlugin { get; } + /// NetworkPluginMode for managed cluster snapshot. + public ContainerServiceNetworkPluginMode? NetworkPluginMode { get; } + /// networkPolicy for managed cluster snapshot. + public ContainerServiceNetworkPolicy? NetworkPolicy { get; } + /// networkMode for managed cluster snapshot. + public ContainerServiceNetworkMode? NetworkMode { get; } + /// loadBalancerSku for managed cluster snapshot. + public ContainerServiceLoadBalancerSku? LoadBalancerSku { get; } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceNetworkProfileKubeProxyConfig.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceNetworkProfileKubeProxyConfig.Serialization.cs new file mode 100644 index 0000000000000..ed46ea93be335 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceNetworkProfileKubeProxyConfig.Serialization.cs @@ -0,0 +1,77 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ContainerService.Models +{ + public partial class ContainerServiceNetworkProfileKubeProxyConfig : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(IsEnabled)) + { + writer.WritePropertyName("enabled"u8); + writer.WriteBooleanValue(IsEnabled.Value); + } + if (Optional.IsDefined(Mode)) + { + writer.WritePropertyName("mode"u8); + writer.WriteStringValue(Mode.Value.ToString()); + } + if (Optional.IsDefined(IPVSConfig)) + { + writer.WritePropertyName("ipvsConfig"u8); + writer.WriteObjectValue(IPVSConfig); + } + writer.WriteEndObject(); + } + + internal static ContainerServiceNetworkProfileKubeProxyConfig DeserializeContainerServiceNetworkProfileKubeProxyConfig(JsonElement element) + { + Optional enabled = default; + Optional mode = default; + Optional ipvsConfig = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("enabled"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + enabled = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("mode"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + mode = new ContainerServiceNetworkProfileKubeProxyMode(property.Value.GetString()); + continue; + } + if (property.NameEquals("ipvsConfig"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + ipvsConfig = ContainerServiceNetworkProfileKubeProxyIPVSConfig.DeserializeContainerServiceNetworkProfileKubeProxyIPVSConfig(property.Value); + continue; + } + } + return new ContainerServiceNetworkProfileKubeProxyConfig(Optional.ToNullable(enabled), Optional.ToNullable(mode), ipvsConfig.Value); + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceNetworkProfileKubeProxyConfig.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceNetworkProfileKubeProxyConfig.cs new file mode 100644 index 0000000000000..54539797db037 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceNetworkProfileKubeProxyConfig.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// Holds configuration customizations for kube-proxy. Any values not defined will use the kube-proxy defaulting behavior. See https://v<version>.docs.kubernetes.io/docs/reference/command-line-tools-reference/kube-proxy/ where <version> is represented by a <major version>-<minor version> string. Kubernetes version 1.23 would be '1-23'. + public partial class ContainerServiceNetworkProfileKubeProxyConfig + { + /// Initializes a new instance of ContainerServiceNetworkProfileKubeProxyConfig. + public ContainerServiceNetworkProfileKubeProxyConfig() + { + } + + /// Initializes a new instance of ContainerServiceNetworkProfileKubeProxyConfig. + /// Whether to enable on kube-proxy on the cluster (if no 'kubeProxyConfig' exists, kube-proxy is enabled in AKS by default without these customizations). + /// Specify which proxy mode to use ('IPTABLES' or 'IPVS'). + /// Holds configuration customizations for IPVS. May only be specified if 'mode' is set to 'IPVS'. + internal ContainerServiceNetworkProfileKubeProxyConfig(bool? isEnabled, ContainerServiceNetworkProfileKubeProxyMode? mode, ContainerServiceNetworkProfileKubeProxyIPVSConfig ipvsConfig) + { + IsEnabled = isEnabled; + Mode = mode; + IPVSConfig = ipvsConfig; + } + + /// Whether to enable on kube-proxy on the cluster (if no 'kubeProxyConfig' exists, kube-proxy is enabled in AKS by default without these customizations). + public bool? IsEnabled { get; set; } + /// Specify which proxy mode to use ('IPTABLES' or 'IPVS'). + public ContainerServiceNetworkProfileKubeProxyMode? Mode { get; set; } + /// Holds configuration customizations for IPVS. May only be specified if 'mode' is set to 'IPVS'. + public ContainerServiceNetworkProfileKubeProxyIPVSConfig IPVSConfig { get; set; } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceNetworkProfileKubeProxyIPVSConfig.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceNetworkProfileKubeProxyIPVSConfig.Serialization.cs new file mode 100644 index 0000000000000..4ff361faaed4c --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceNetworkProfileKubeProxyIPVSConfig.Serialization.cs @@ -0,0 +1,93 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ContainerService.Models +{ + public partial class ContainerServiceNetworkProfileKubeProxyIPVSConfig : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Scheduler)) + { + writer.WritePropertyName("scheduler"u8); + writer.WriteStringValue(Scheduler.Value.ToString()); + } + if (Optional.IsDefined(TcpTimeoutSeconds)) + { + writer.WritePropertyName("tcpTimeoutSeconds"u8); + writer.WriteNumberValue(TcpTimeoutSeconds.Value); + } + if (Optional.IsDefined(TcpFinTimeoutSeconds)) + { + writer.WritePropertyName("tcpFinTimeoutSeconds"u8); + writer.WriteNumberValue(TcpFinTimeoutSeconds.Value); + } + if (Optional.IsDefined(UdpTimeoutSeconds)) + { + writer.WritePropertyName("udpTimeoutSeconds"u8); + writer.WriteNumberValue(UdpTimeoutSeconds.Value); + } + writer.WriteEndObject(); + } + + internal static ContainerServiceNetworkProfileKubeProxyIPVSConfig DeserializeContainerServiceNetworkProfileKubeProxyIPVSConfig(JsonElement element) + { + Optional scheduler = default; + Optional tcpTimeoutSeconds = default; + Optional tcpFinTimeoutSeconds = default; + Optional udpTimeoutSeconds = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("scheduler"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + scheduler = new ContainerServiceNetworkProfileKubeProxyIPVSScheduler(property.Value.GetString()); + continue; + } + if (property.NameEquals("tcpTimeoutSeconds"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + tcpTimeoutSeconds = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("tcpFinTimeoutSeconds"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + tcpFinTimeoutSeconds = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("udpTimeoutSeconds"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + udpTimeoutSeconds = property.Value.GetInt32(); + continue; + } + } + return new ContainerServiceNetworkProfileKubeProxyIPVSConfig(Optional.ToNullable(scheduler), Optional.ToNullable(tcpTimeoutSeconds), Optional.ToNullable(tcpFinTimeoutSeconds), Optional.ToNullable(udpTimeoutSeconds)); + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceNetworkProfileKubeProxyIPVSConfig.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceNetworkProfileKubeProxyIPVSConfig.cs new file mode 100644 index 0000000000000..e59b4029f3287 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceNetworkProfileKubeProxyIPVSConfig.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// Holds configuration customizations for IPVS. May only be specified if 'mode' is set to 'IPVS'. + public partial class ContainerServiceNetworkProfileKubeProxyIPVSConfig + { + /// Initializes a new instance of ContainerServiceNetworkProfileKubeProxyIPVSConfig. + public ContainerServiceNetworkProfileKubeProxyIPVSConfig() + { + } + + /// Initializes a new instance of ContainerServiceNetworkProfileKubeProxyIPVSConfig. + /// IPVS scheduler, for more information please see http://www.linuxvirtualserver.org/docs/scheduling.html. + /// The timeout value used for idle IPVS TCP sessions in seconds. Must be a positive integer value. + /// The timeout value used for IPVS TCP sessions after receiving a FIN in seconds. Must be a positive integer value. + /// The timeout value used for IPVS UDP packets in seconds. Must be a positive integer value. + internal ContainerServiceNetworkProfileKubeProxyIPVSConfig(ContainerServiceNetworkProfileKubeProxyIPVSScheduler? scheduler, int? tcpTimeoutSeconds, int? tcpFinTimeoutSeconds, int? udpTimeoutSeconds) + { + Scheduler = scheduler; + TcpTimeoutSeconds = tcpTimeoutSeconds; + TcpFinTimeoutSeconds = tcpFinTimeoutSeconds; + UdpTimeoutSeconds = udpTimeoutSeconds; + } + + /// IPVS scheduler, for more information please see http://www.linuxvirtualserver.org/docs/scheduling.html. + public ContainerServiceNetworkProfileKubeProxyIPVSScheduler? Scheduler { get; set; } + /// The timeout value used for idle IPVS TCP sessions in seconds. Must be a positive integer value. + public int? TcpTimeoutSeconds { get; set; } + /// The timeout value used for IPVS TCP sessions after receiving a FIN in seconds. Must be a positive integer value. + public int? TcpFinTimeoutSeconds { get; set; } + /// The timeout value used for IPVS UDP packets in seconds. Must be a positive integer value. + public int? UdpTimeoutSeconds { get; set; } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceNetworkProfileKubeProxyIPVSScheduler.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceNetworkProfileKubeProxyIPVSScheduler.cs new file mode 100644 index 0000000000000..96063529f4931 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceNetworkProfileKubeProxyIPVSScheduler.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// IPVS scheduler, for more information please see http://www.linuxvirtualserver.org/docs/scheduling.html. + public readonly partial struct ContainerServiceNetworkProfileKubeProxyIPVSScheduler : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ContainerServiceNetworkProfileKubeProxyIPVSScheduler(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string RoundRobinValue = "RoundRobin"; + private const string LeastConnectionValue = "LeastConnection"; + + /// Round Robin. + public static ContainerServiceNetworkProfileKubeProxyIPVSScheduler RoundRobin { get; } = new ContainerServiceNetworkProfileKubeProxyIPVSScheduler(RoundRobinValue); + /// Least Connection. + public static ContainerServiceNetworkProfileKubeProxyIPVSScheduler LeastConnection { get; } = new ContainerServiceNetworkProfileKubeProxyIPVSScheduler(LeastConnectionValue); + /// Determines if two values are the same. + public static bool operator ==(ContainerServiceNetworkProfileKubeProxyIPVSScheduler left, ContainerServiceNetworkProfileKubeProxyIPVSScheduler right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ContainerServiceNetworkProfileKubeProxyIPVSScheduler left, ContainerServiceNetworkProfileKubeProxyIPVSScheduler right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator ContainerServiceNetworkProfileKubeProxyIPVSScheduler(string value) => new ContainerServiceNetworkProfileKubeProxyIPVSScheduler(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ContainerServiceNetworkProfileKubeProxyIPVSScheduler other && Equals(other); + /// + public bool Equals(ContainerServiceNetworkProfileKubeProxyIPVSScheduler other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceNetworkProfileKubeProxyMode.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceNetworkProfileKubeProxyMode.cs new file mode 100644 index 0000000000000..1828572a20d7a --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceNetworkProfileKubeProxyMode.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// Specify which proxy mode to use ('IPTABLES' or 'IPVS'). + public readonly partial struct ContainerServiceNetworkProfileKubeProxyMode : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ContainerServiceNetworkProfileKubeProxyMode(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string IPTablesValue = "IPTABLES"; + private const string IPVSValue = "IPVS"; + + /// IPTables proxy mode. + public static ContainerServiceNetworkProfileKubeProxyMode IPTables { get; } = new ContainerServiceNetworkProfileKubeProxyMode(IPTablesValue); + /// IPVS proxy mode. Must be using Kubernetes version >= 1.22. + public static ContainerServiceNetworkProfileKubeProxyMode IPVS { get; } = new ContainerServiceNetworkProfileKubeProxyMode(IPVSValue); + /// Determines if two values are the same. + public static bool operator ==(ContainerServiceNetworkProfileKubeProxyMode left, ContainerServiceNetworkProfileKubeProxyMode right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ContainerServiceNetworkProfileKubeProxyMode left, ContainerServiceNetworkProfileKubeProxyMode right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator ContainerServiceNetworkProfileKubeProxyMode(string value) => new ContainerServiceNetworkProfileKubeProxyMode(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ContainerServiceNetworkProfileKubeProxyMode other && Equals(other); + /// + public bool Equals(ContainerServiceNetworkProfileKubeProxyMode other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceOSSku.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceOSSku.cs index 74f86d56b1e96..a92c2dbe50b53 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceOSSku.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceOSSku.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.ContainerService.Models { - /// Specifies the OS SKU used by the agent pool. The default is Ubuntu if OSType is Linux. The default is Windows2019 when Kubernetes <= 1.24 or Windows2022 when Kubernetes >= 1.25 if OSType is Windows. + /// Specifies the OS SKU used by the agent pool. If not specified, the default is Ubuntu if OSType=Linux or Windows2019 if OSType=Windows. And the default Windows OSSKU will be changed to Windows2022 after Windows2019 is deprecated. public readonly partial struct ContainerServiceOSSku : IEquatable { private readonly string _value; @@ -24,6 +24,7 @@ public ContainerServiceOSSku(string value) private const string UbuntuValue = "Ubuntu"; private const string CblMarinerValue = "CBLMariner"; + private const string MarinerValue = "Mariner"; private const string Windows2019Value = "Windows2019"; private const string Windows2022Value = "Windows2022"; @@ -31,6 +32,8 @@ public ContainerServiceOSSku(string value) public static ContainerServiceOSSku Ubuntu { get; } = new ContainerServiceOSSku(UbuntuValue); /// CBLMariner. public static ContainerServiceOSSku CblMariner { get; } = new ContainerServiceOSSku(CblMarinerValue); + /// Mariner. + public static ContainerServiceOSSku Mariner { get; } = new ContainerServiceOSSku(MarinerValue); /// Windows2019. public static ContainerServiceOSSku Windows2019 { get; } = new ContainerServiceOSSku(Windows2019Value); /// Windows2022. diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServicePrivateEndpointConnectionProvisioningState.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServicePrivateEndpointConnectionProvisioningState.cs index b491eaaf3e8a1..cfb906dbdb7ad 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServicePrivateEndpointConnectionProvisioningState.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServicePrivateEndpointConnectionProvisioningState.cs @@ -22,19 +22,22 @@ public ContainerServicePrivateEndpointConnectionProvisioningState(string value) _value = value ?? throw new ArgumentNullException(nameof(value)); } - private const string SucceededValue = "Succeeded"; + private const string CanceledValue = "Canceled"; private const string CreatingValue = "Creating"; private const string DeletingValue = "Deleting"; private const string FailedValue = "Failed"; + private const string SucceededValue = "Succeeded"; - /// Succeeded. - public static ContainerServicePrivateEndpointConnectionProvisioningState Succeeded { get; } = new ContainerServicePrivateEndpointConnectionProvisioningState(SucceededValue); + /// Canceled. + public static ContainerServicePrivateEndpointConnectionProvisioningState Canceled { get; } = new ContainerServicePrivateEndpointConnectionProvisioningState(CanceledValue); /// Creating. public static ContainerServicePrivateEndpointConnectionProvisioningState Creating { get; } = new ContainerServicePrivateEndpointConnectionProvisioningState(CreatingValue); /// Deleting. public static ContainerServicePrivateEndpointConnectionProvisioningState Deleting { get; } = new ContainerServicePrivateEndpointConnectionProvisioningState(DeletingValue); /// Failed. public static ContainerServicePrivateEndpointConnectionProvisioningState Failed { get; } = new ContainerServicePrivateEndpointConnectionProvisioningState(FailedValue); + /// Succeeded. + public static ContainerServicePrivateEndpointConnectionProvisioningState Succeeded { get; } = new ContainerServicePrivateEndpointConnectionProvisioningState(SucceededValue); /// Determines if two values are the same. public static bool operator ==(ContainerServicePrivateEndpointConnectionProvisioningState left, ContainerServicePrivateEndpointConnectionProvisioningState right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServicePublicNetworkAccess.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServicePublicNetworkAccess.cs index 0c27b37d2911e..61778cf69dbe3 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServicePublicNetworkAccess.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServicePublicNetworkAccess.cs @@ -24,11 +24,14 @@ public ContainerServicePublicNetworkAccess(string value) private const string EnabledValue = "Enabled"; private const string DisabledValue = "Disabled"; + private const string SecuredByPerimeterValue = "SecuredByPerimeter"; - /// Enabled. + /// Inbound/Outbound to the managedCluster is allowed. public static ContainerServicePublicNetworkAccess Enabled { get; } = new ContainerServicePublicNetworkAccess(EnabledValue); - /// Disabled. + /// Inbound traffic to managedCluster is disabled, traffic from managedCluster is allowed. public static ContainerServicePublicNetworkAccess Disabled { get; } = new ContainerServicePublicNetworkAccess(DisabledValue); + /// Inbound/Outbound traffic is managed by Microsoft.Network/NetworkSecurityPerimeters. + public static ContainerServicePublicNetworkAccess SecuredByPerimeter { get; } = new ContainerServicePublicNetworkAccess(SecuredByPerimeterValue); /// Determines if two values are the same. public static bool operator ==(ContainerServicePublicNetworkAccess left, ContainerServicePublicNetworkAccess right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceTrustedAccessRole.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceTrustedAccessRole.Serialization.cs new file mode 100644 index 0000000000000..d911ab6cfcbdf --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceTrustedAccessRole.Serialization.cs @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ContainerService.Models +{ + public partial class ContainerServiceTrustedAccessRole + { + internal static ContainerServiceTrustedAccessRole DeserializeContainerServiceTrustedAccessRole(JsonElement element) + { + Optional sourceResourceType = default; + Optional name = default; + Optional> rules = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("sourceResourceType"u8)) + { + sourceResourceType = property.Value.GetString(); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("rules"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(ContainerServiceTrustedAccessRoleRule.DeserializeContainerServiceTrustedAccessRoleRule(item)); + } + rules = array; + continue; + } + } + return new ContainerServiceTrustedAccessRole(sourceResourceType.Value, name.Value, Optional.ToList(rules)); + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceTrustedAccessRole.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceTrustedAccessRole.cs new file mode 100644 index 0000000000000..6f1868c485cd0 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceTrustedAccessRole.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// Trusted access role definition. + public partial class ContainerServiceTrustedAccessRole + { + /// Initializes a new instance of ContainerServiceTrustedAccessRole. + internal ContainerServiceTrustedAccessRole() + { + Rules = new ChangeTrackingList(); + } + + /// Initializes a new instance of ContainerServiceTrustedAccessRole. + /// Resource type of Azure resource. + /// Name of role, name is unique under a source resource type. + /// List of rules for the role. This maps to 'rules' property of [Kubernetes Cluster Role](https://kubernetes.io/docs/reference/kubernetes-api/authorization-resources/cluster-role-v1/#ClusterRole). + internal ContainerServiceTrustedAccessRole(string sourceResourceType, string name, IReadOnlyList rules) + { + SourceResourceType = sourceResourceType; + Name = name; + Rules = rules; + } + + /// Resource type of Azure resource. + public string SourceResourceType { get; } + /// Name of role, name is unique under a source resource type. + public string Name { get; } + /// List of rules for the role. This maps to 'rules' property of [Kubernetes Cluster Role](https://kubernetes.io/docs/reference/kubernetes-api/authorization-resources/cluster-role-v1/#ClusterRole). + public IReadOnlyList Rules { get; } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceTrustedAccessRoleBindingData.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceTrustedAccessRoleBindingData.Serialization.cs new file mode 100644 index 0000000000000..9d3c92b931c5c --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceTrustedAccessRoleBindingData.Serialization.cs @@ -0,0 +1,113 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.ContainerService.Models; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.ContainerService +{ + public partial class ContainerServiceTrustedAccessRoleBindingData : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("properties"u8); + writer.WriteStartObject(); + writer.WritePropertyName("sourceResourceId"u8); + writer.WriteStringValue(SourceResourceId); + writer.WritePropertyName("roles"u8); + writer.WriteStartArray(); + foreach (var item in Roles) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + writer.WriteEndObject(); + writer.WriteEndObject(); + } + + internal static ContainerServiceTrustedAccessRoleBindingData DeserializeContainerServiceTrustedAccessRoleBindingData(JsonElement element) + { + ResourceIdentifier id = default; + string name = default; + ResourceType type = default; + Optional systemData = default; + Optional provisioningState = default; + ResourceIdentifier sourceResourceId = default; + IList roles = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id"u8)) + { + id = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + type = new ResourceType(property.Value.GetString()); + continue; + } + if (property.NameEquals("systemData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("provisioningState"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + provisioningState = new ContainerServiceTrustedAccessRoleBindingProvisioningState(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("sourceResourceId"u8)) + { + sourceResourceId = new ResourceIdentifier(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("roles"u8)) + { + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + roles = array; + continue; + } + } + continue; + } + } + return new ContainerServiceTrustedAccessRoleBindingData(id, name, type, systemData.Value, Optional.ToNullable(provisioningState), sourceResourceId, roles); + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceTrustedAccessRoleBindingProvisioningState.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceTrustedAccessRoleBindingProvisioningState.cs new file mode 100644 index 0000000000000..fb583bf9a1227 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceTrustedAccessRoleBindingProvisioningState.cs @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// The current provisioning state of trusted access role binding. + public readonly partial struct ContainerServiceTrustedAccessRoleBindingProvisioningState : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ContainerServiceTrustedAccessRoleBindingProvisioningState(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string CanceledValue = "Canceled"; + private const string DeletingValue = "Deleting"; + private const string FailedValue = "Failed"; + private const string SucceededValue = "Succeeded"; + private const string UpdatingValue = "Updating"; + + /// Canceled. + public static ContainerServiceTrustedAccessRoleBindingProvisioningState Canceled { get; } = new ContainerServiceTrustedAccessRoleBindingProvisioningState(CanceledValue); + /// Deleting. + public static ContainerServiceTrustedAccessRoleBindingProvisioningState Deleting { get; } = new ContainerServiceTrustedAccessRoleBindingProvisioningState(DeletingValue); + /// Failed. + public static ContainerServiceTrustedAccessRoleBindingProvisioningState Failed { get; } = new ContainerServiceTrustedAccessRoleBindingProvisioningState(FailedValue); + /// Succeeded. + public static ContainerServiceTrustedAccessRoleBindingProvisioningState Succeeded { get; } = new ContainerServiceTrustedAccessRoleBindingProvisioningState(SucceededValue); + /// Updating. + public static ContainerServiceTrustedAccessRoleBindingProvisioningState Updating { get; } = new ContainerServiceTrustedAccessRoleBindingProvisioningState(UpdatingValue); + /// Determines if two values are the same. + public static bool operator ==(ContainerServiceTrustedAccessRoleBindingProvisioningState left, ContainerServiceTrustedAccessRoleBindingProvisioningState right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ContainerServiceTrustedAccessRoleBindingProvisioningState left, ContainerServiceTrustedAccessRoleBindingProvisioningState right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator ContainerServiceTrustedAccessRoleBindingProvisioningState(string value) => new ContainerServiceTrustedAccessRoleBindingProvisioningState(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ContainerServiceTrustedAccessRoleBindingProvisioningState other && Equals(other); + /// + public bool Equals(ContainerServiceTrustedAccessRoleBindingProvisioningState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceTrustedAccessRoleRule.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceTrustedAccessRoleRule.Serialization.cs new file mode 100644 index 0000000000000..79758b20d0e8a --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceTrustedAccessRoleRule.Serialization.cs @@ -0,0 +1,104 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ContainerService.Models +{ + public partial class ContainerServiceTrustedAccessRoleRule + { + internal static ContainerServiceTrustedAccessRoleRule DeserializeContainerServiceTrustedAccessRoleRule(JsonElement element) + { + Optional> verbs = default; + Optional> apiGroups = default; + Optional> resources = default; + Optional> resourceNames = default; + Optional> nonResourceUrls = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("verbs"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + verbs = array; + continue; + } + if (property.NameEquals("apiGroups"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + apiGroups = array; + continue; + } + if (property.NameEquals("resources"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + resources = array; + continue; + } + if (property.NameEquals("resourceNames"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + resourceNames = array; + continue; + } + if (property.NameEquals("nonResourceURLs"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + nonResourceUrls = array; + continue; + } + } + return new ContainerServiceTrustedAccessRoleRule(Optional.ToList(verbs), Optional.ToList(apiGroups), Optional.ToList(resources), Optional.ToList(resourceNames), Optional.ToList(nonResourceUrls)); + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceTrustedAccessRoleRule.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceTrustedAccessRoleRule.cs new file mode 100644 index 0000000000000..9fd93e7916495 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ContainerServiceTrustedAccessRoleRule.cs @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// Rule for trusted access role. + public partial class ContainerServiceTrustedAccessRoleRule + { + /// Initializes a new instance of ContainerServiceTrustedAccessRoleRule. + internal ContainerServiceTrustedAccessRoleRule() + { + Verbs = new ChangeTrackingList(); + ApiGroups = new ChangeTrackingList(); + Resources = new ChangeTrackingList(); + ResourceNames = new ChangeTrackingList(); + NonResourceUrls = new ChangeTrackingList(); + } + + /// Initializes a new instance of ContainerServiceTrustedAccessRoleRule. + /// List of allowed verbs. + /// List of allowed apiGroups. + /// List of allowed resources. + /// List of allowed names. + /// List of allowed nonResourceURLs. + internal ContainerServiceTrustedAccessRoleRule(IReadOnlyList verbs, IReadOnlyList apiGroups, IReadOnlyList resources, IReadOnlyList resourceNames, IReadOnlyList nonResourceUrls) + { + Verbs = verbs; + ApiGroups = apiGroups; + Resources = resources; + ResourceNames = resourceNames; + NonResourceUrls = nonResourceUrls; + } + + /// List of allowed verbs. + public IReadOnlyList Verbs { get; } + /// List of allowed apiGroups. + public IReadOnlyList ApiGroups { get; } + /// List of allowed resources. + public IReadOnlyList Resources { get; } + /// List of allowed names. + public IReadOnlyList ResourceNames { get; } + /// List of allowed nonResourceURLs. + public IReadOnlyList NonResourceUrls { get; } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/DailySchedule.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/DailySchedule.Serialization.cs new file mode 100644 index 0000000000000..0644625645bc4 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/DailySchedule.Serialization.cs @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ContainerService.Models +{ + internal partial class DailySchedule : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("intervalDays"u8); + writer.WriteNumberValue(IntervalDays); + writer.WriteEndObject(); + } + + internal static DailySchedule DeserializeDailySchedule(JsonElement element) + { + int intervalDays = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("intervalDays"u8)) + { + intervalDays = property.Value.GetInt32(); + continue; + } + } + return new DailySchedule(intervalDays); + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/DailySchedule.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/DailySchedule.cs new file mode 100644 index 0000000000000..39cd1bbdc08a4 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/DailySchedule.cs @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// For schedules like: 'recur every day' or 'recur every 3 days'. + internal partial class DailySchedule + { + /// Initializes a new instance of DailySchedule. + /// Specifies the number of days between each set of occurrences. + public DailySchedule(int intervalDays) + { + IntervalDays = intervalDays; + } + + /// Specifies the number of days between each set of occurrences. + public int IntervalDays { get; set; } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/EbpfDataplane.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/EbpfDataplane.cs new file mode 100644 index 0000000000000..5c6e685b4f894 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/EbpfDataplane.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// The eBPF dataplane used for building the Kubernetes network. + public readonly partial struct EbpfDataplane : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public EbpfDataplane(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string CiliumValue = "cilium"; + + /// Use Cilium for networking in the Kubernetes cluster. + public static EbpfDataplane Cilium { get; } = new EbpfDataplane(CiliumValue); + /// Determines if two values are the same. + public static bool operator ==(EbpfDataplane left, EbpfDataplane right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(EbpfDataplane left, EbpfDataplane right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator EbpfDataplane(string value) => new EbpfDataplane(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is EbpfDataplane other && Equals(other); + /// + public bool Equals(EbpfDataplane other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/FleetListResult.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/FleetListResult.Serialization.cs new file mode 100644 index 0000000000000..9560ea439cd4f --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/FleetListResult.Serialization.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.ContainerService; + +namespace Azure.ResourceManager.ContainerService.Models +{ + internal partial class FleetListResult + { + internal static FleetListResult DeserializeFleetListResult(JsonElement element) + { + Optional> value = default; + Optional nextLink = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(ContainerServiceFleetData.DeserializeContainerServiceFleetData(item)); + } + value = array; + continue; + } + if (property.NameEquals("nextLink"u8)) + { + nextLink = property.Value.GetString(); + continue; + } + } + return new FleetListResult(Optional.ToList(value), nextLink.Value); + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/FleetListResult.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/FleetListResult.cs new file mode 100644 index 0000000000000..f9577a68048d6 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/FleetListResult.cs @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.ContainerService; + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// The response from the List Fleets operation. + internal partial class FleetListResult + { + /// Initializes a new instance of FleetListResult. + internal FleetListResult() + { + Value = new ChangeTrackingList(); + } + + /// Initializes a new instance of FleetListResult. + /// The list of Fleets. + /// The URL to get the next page of Fleets. + internal FleetListResult(IReadOnlyList value, string nextLink) + { + Value = value; + NextLink = nextLink; + } + + /// The list of Fleets. + public IReadOnlyList Value { get; } + /// The URL to get the next page of Fleets. + public string NextLink { get; } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/FleetMembersListResult.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/FleetMembersListResult.Serialization.cs new file mode 100644 index 0000000000000..886d3a9221f6b --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/FleetMembersListResult.Serialization.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.ContainerService; + +namespace Azure.ResourceManager.ContainerService.Models +{ + internal partial class FleetMembersListResult + { + internal static FleetMembersListResult DeserializeFleetMembersListResult(JsonElement element) + { + Optional> value = default; + Optional nextLink = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(ContainerServiceFleetMemberData.DeserializeContainerServiceFleetMemberData(item)); + } + value = array; + continue; + } + if (property.NameEquals("nextLink"u8)) + { + nextLink = property.Value.GetString(); + continue; + } + } + return new FleetMembersListResult(Optional.ToList(value), nextLink.Value); + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/FleetMembersListResult.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/FleetMembersListResult.cs new file mode 100644 index 0000000000000..e1eb4a3125556 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/FleetMembersListResult.cs @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.ContainerService; + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// The response from the List FleetMembers operation. + internal partial class FleetMembersListResult + { + /// Initializes a new instance of FleetMembersListResult. + internal FleetMembersListResult() + { + Value = new ChangeTrackingList(); + } + + /// Initializes a new instance of FleetMembersListResult. + /// The list of members in a given Fleet. + /// The URL to get the next page of Fleet members. + internal FleetMembersListResult(IReadOnlyList value, string nextLink) + { + Value = value; + NextLink = nextLink; + } + + /// The list of members in a given Fleet. + public IReadOnlyList Value { get; } + /// The URL to get the next page of Fleet members. + public string NextLink { get; } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/KubeConfigFormat.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/KubeConfigFormat.cs index eeb3d430700cc..53f94f36ab1ec 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/KubeConfigFormat.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/KubeConfigFormat.cs @@ -25,7 +25,7 @@ public KubeConfigFormat(string value) private const string AzureValue = "azure"; private const string ExecValue = "exec"; - /// Return azure auth-provider kubeconfig. This format is deprecated in 1.22 and will be fully removed in 1.25. + /// Return azure auth-provider kubeconfig. This format is deprecated in v1.22 and will be fully removed in v1.26. See: https://aka.ms/k8s/changes-1-26. public static KubeConfigFormat Azure { get; } = new KubeConfigFormat(AzureValue); /// Return exec format kubeconfig. This format requires kubelogin binary in the path. public static KubeConfigFormat Exec { get; } = new KubeConfigFormat(ExecValue); diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterAgentPoolProfile.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterAgentPoolProfile.Serialization.cs index 977f3062a298d..bb0c4f8a0c02c 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterAgentPoolProfile.Serialization.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterAgentPoolProfile.Serialization.cs @@ -48,6 +48,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("workloadRuntime"u8); writer.WriteStringValue(WorkloadRuntime.Value.ToString()); } + if (Optional.IsDefined(MessageOfTheDay)) + { + writer.WritePropertyName("messageOfTheDay"u8); + writer.WriteStringValue(MessageOfTheDay); + } if (Optional.IsDefined(VnetSubnetId)) { writer.WritePropertyName("vnetSubnetID"u8); @@ -133,6 +138,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("enableNodePublicIP"u8); writer.WriteBooleanValue(EnableNodePublicIP.Value); } + if (Optional.IsDefined(EnableCustomCATrust)) + { + writer.WritePropertyName("enableCustomCATrust"u8); + writer.WriteBooleanValue(EnableCustomCATrust.Value); + } if (Optional.IsDefined(NodePublicIPPrefixId)) { writer.WritePropertyName("nodePublicIPPrefixID"u8); @@ -225,11 +235,26 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("creationData"u8); writer.WriteObjectValue(CreationData); } + if (Optional.IsDefined(CapacityReservationGroupId)) + { + writer.WritePropertyName("capacityReservationGroupID"u8); + writer.WriteStringValue(CapacityReservationGroupId); + } if (Optional.IsDefined(HostGroupId)) { writer.WritePropertyName("hostGroupID"u8); writer.WriteStringValue(HostGroupId); } + if (Optional.IsDefined(WindowsProfile)) + { + writer.WritePropertyName("windowsProfile"u8); + writer.WriteObjectValue(WindowsProfile); + } + if (Optional.IsDefined(NetworkProfile)) + { + writer.WritePropertyName("networkProfile"u8); + writer.WriteObjectValue(NetworkProfile); + } writer.WriteEndObject(); } @@ -242,6 +267,7 @@ internal static ManagedClusterAgentPoolProfile DeserializeManagedClusterAgentPoo Optional osDiskType = default; Optional kubeletDiskType = default; Optional workloadRuntime = default; + Optional messageOfTheDay = default; Optional vnetSubnetId = default; Optional podSubnetId = default; Optional maxPods = default; @@ -261,6 +287,7 @@ internal static ManagedClusterAgentPoolProfile DeserializeManagedClusterAgentPoo Optional powerState = default; Optional> availabilityZones = default; Optional enableNodePublicIP = default; + Optional enableCustomCATrust = default; Optional nodePublicIPPrefixId = default; Optional scaleSetPriority = default; Optional scaleSetEvictionPolicy = default; @@ -276,7 +303,10 @@ internal static ManagedClusterAgentPoolProfile DeserializeManagedClusterAgentPoo Optional enableFIPS = default; Optional gpuInstanceProfile = default; Optional creationData = default; + Optional capacityReservationGroupId = default; Optional hostGroupId = default; + Optional windowsProfile = default; + Optional networkProfile = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("name"u8)) @@ -339,6 +369,11 @@ internal static ManagedClusterAgentPoolProfile DeserializeManagedClusterAgentPoo workloadRuntime = new WorkloadRuntime(property.Value.GetString()); continue; } + if (property.NameEquals("messageOfTheDay"u8)) + { + messageOfTheDay = property.Value.GetString(); + continue; + } if (property.NameEquals("vnetSubnetID"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -514,6 +549,16 @@ internal static ManagedClusterAgentPoolProfile DeserializeManagedClusterAgentPoo enableNodePublicIP = property.Value.GetBoolean(); continue; } + if (property.NameEquals("enableCustomCATrust"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + enableCustomCATrust = property.Value.GetBoolean(); + continue; + } if (property.NameEquals("nodePublicIPPrefixID"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -679,6 +724,16 @@ internal static ManagedClusterAgentPoolProfile DeserializeManagedClusterAgentPoo creationData = ContainerServiceCreationData.DeserializeContainerServiceCreationData(property.Value); continue; } + if (property.NameEquals("capacityReservationGroupID"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + capacityReservationGroupId = new ResourceIdentifier(property.Value.GetString()); + continue; + } if (property.NameEquals("hostGroupID"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -689,8 +744,28 @@ internal static ManagedClusterAgentPoolProfile DeserializeManagedClusterAgentPoo hostGroupId = new ResourceIdentifier(property.Value.GetString()); continue; } + if (property.NameEquals("windowsProfile"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + windowsProfile = AgentPoolWindowsProfile.DeserializeAgentPoolWindowsProfile(property.Value); + continue; + } + if (property.NameEquals("networkProfile"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + networkProfile = AgentPoolNetworkProfile.DeserializeAgentPoolNetworkProfile(property.Value); + continue; + } } - return new ManagedClusterAgentPoolProfile(Optional.ToNullable(count), vmSize.Value, Optional.ToNullable(osDiskSizeGB), Optional.ToNullable(osDiskType), Optional.ToNullable(kubeletDiskType), Optional.ToNullable(workloadRuntime), vnetSubnetId.Value, podSubnetId.Value, Optional.ToNullable(maxPods), Optional.ToNullable(osType), Optional.ToNullable(osSku), Optional.ToNullable(maxCount), Optional.ToNullable(minCount), Optional.ToNullable(enableAutoScaling), Optional.ToNullable(scaleDownMode), Optional.ToNullable(type), Optional.ToNullable(mode), orchestratorVersion.Value, currentOrchestratorVersion.Value, nodeImageVersion.Value, upgradeSettings.Value, provisioningState.Value, powerState.Value, Optional.ToList(availabilityZones), Optional.ToNullable(enableNodePublicIP), nodePublicIPPrefixId.Value, Optional.ToNullable(scaleSetPriority), Optional.ToNullable(scaleSetEvictionPolicy), Optional.ToNullable(spotMaxPrice), Optional.ToDictionary(tags), Optional.ToDictionary(nodeLabels), Optional.ToList(nodeTaints), proximityPlacementGroupId.Value, kubeletConfig.Value, linuxOSConfig.Value, Optional.ToNullable(enableEncryptionAtHost), Optional.ToNullable(enableUltraSsd), Optional.ToNullable(enableFIPS), Optional.ToNullable(gpuInstanceProfile), creationData.Value, hostGroupId.Value, name); + return new ManagedClusterAgentPoolProfile(Optional.ToNullable(count), vmSize.Value, Optional.ToNullable(osDiskSizeGB), Optional.ToNullable(osDiskType), Optional.ToNullable(kubeletDiskType), Optional.ToNullable(workloadRuntime), messageOfTheDay.Value, vnetSubnetId.Value, podSubnetId.Value, Optional.ToNullable(maxPods), Optional.ToNullable(osType), Optional.ToNullable(osSku), Optional.ToNullable(maxCount), Optional.ToNullable(minCount), Optional.ToNullable(enableAutoScaling), Optional.ToNullable(scaleDownMode), Optional.ToNullable(type), Optional.ToNullable(mode), orchestratorVersion.Value, currentOrchestratorVersion.Value, nodeImageVersion.Value, upgradeSettings.Value, provisioningState.Value, powerState.Value, Optional.ToList(availabilityZones), Optional.ToNullable(enableNodePublicIP), Optional.ToNullable(enableCustomCATrust), nodePublicIPPrefixId.Value, Optional.ToNullable(scaleSetPriority), Optional.ToNullable(scaleSetEvictionPolicy), Optional.ToNullable(spotMaxPrice), Optional.ToDictionary(tags), Optional.ToDictionary(nodeLabels), Optional.ToList(nodeTaints), proximityPlacementGroupId.Value, kubeletConfig.Value, linuxOSConfig.Value, Optional.ToNullable(enableEncryptionAtHost), Optional.ToNullable(enableUltraSsd), Optional.ToNullable(enableFIPS), Optional.ToNullable(gpuInstanceProfile), creationData.Value, capacityReservationGroupId.Value, hostGroupId.Value, windowsProfile.Value, networkProfile.Value, name); } } } diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterAgentPoolProfile.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterAgentPoolProfile.cs index 8182c89713d66..208f6ba5aa194 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterAgentPoolProfile.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterAgentPoolProfile.cs @@ -31,25 +31,27 @@ public ManagedClusterAgentPoolProfile(string name) /// The default is 'Ephemeral' if the VM supports it and has a cache disk larger than the requested OSDiskSizeGB. Otherwise, defaults to 'Managed'. May not be changed after creation. For more information see [Ephemeral OS](https://docs.microsoft.com/azure/aks/cluster-configuration#ephemeral-os). /// Determines the placement of emptyDir volumes, container runtime data root, and Kubelet ephemeral storage. /// Determines the type of workload a node can run. + /// A base64-encoded string which will be written to /etc/motd after decoding. This allows customization of the message of the day for Linux nodes. It must not be specified for Windows nodes. It must be a static string (i.e., will be printed raw and not be executed as a script). /// If this is not specified, a VNET and subnet will be generated and used. If no podSubnetID is specified, this applies to nodes and pods, otherwise it applies to just nodes. This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}. /// If omitted, pod IPs are statically assigned on the node subnet (see vnetSubnetID for more details). This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}. /// The maximum number of pods that can run on a node. /// The operating system type. The default is Linux. - /// Specifies the OS SKU used by the agent pool. The default is Ubuntu if OSType is Linux. The default is Windows2019 when Kubernetes <= 1.24 or Windows2022 when Kubernetes >= 1.25 if OSType is Windows. + /// Specifies the OS SKU used by the agent pool. If not specified, the default is Ubuntu if OSType=Linux or Windows2019 if OSType=Windows. And the default Windows OSSKU will be changed to Windows2022 after Windows2019 is deprecated. /// The maximum number of nodes for auto-scaling. /// The minimum number of nodes for auto-scaling. /// Whether to enable auto-scaler. /// This also effects the cluster autoscaler behavior. If not specified, it defaults to Delete. /// The type of Agent Pool. /// A cluster must have at least one 'System' Agent Pool at all times. For additional information on agent pool restrictions and best practices, see: https://docs.microsoft.com/azure/aks/use-system-pools. - /// Both patch version <major.minor.patch> (e.g. 1.20.13) and <major.minor> (e.g. 1.20) are supported. When <major.minor> is specified, the latest supported GA patch version is chosen automatically. Updating the cluster with the same <major.minor> once it has been created (e.g. 1.14.x -> 1.14) will not trigger an upgrade, even if a newer patch version is available. As a best practice, you should upgrade all node pools in an AKS cluster to the same Kubernetes version. The node pool version must have the same major version as the control plane. The node pool minor version must be within two minor versions of the control plane version. The node pool version cannot be greater than the control plane version. For more information see [upgrading a node pool](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#upgrade-a-node-pool). - /// If orchestratorVersion is a fully specified version <major.minor.patch>, this field will be exactly equal to it. If orchestratorVersion is <major.minor>, this field will contain the full <major.minor.patch> version being used. + /// Both patch version <major.minor.patch> and <major.minor> are supported. When <major.minor> is specified, the latest supported patch version is chosen automatically. Updating the agent pool with the same <major.minor> once it has been created will not trigger an upgrade, even if a newer patch version is available. As a best practice, you should upgrade all node pools in an AKS cluster to the same Kubernetes version. The node pool version must have the same major version as the control plane. The node pool minor version must be within two minor versions of the control plane version. The node pool version cannot be greater than the control plane version. For more information see [upgrading a node pool](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#upgrade-a-node-pool). + /// If orchestratorVersion was a fully specified version <major.minor.patch>, this field will be exactly equal to it. If orchestratorVersion was <major.minor>, this field will contain the full <major.minor.patch> version being used. /// The version of node image. /// Settings for upgrading the agentpool. /// The current deployment or provisioning state. /// When an Agent Pool is first created it is initially Running. The Agent Pool can be stopped by setting this field to Stopped. A stopped Agent Pool stops all of its VMs and does not accrue billing charges. An Agent Pool can only be stopped if it is Running and provisioning state is Succeeded. /// The list of Availability zones to use for nodes. This can only be specified if the AgentPoolType property is 'VirtualMachineScaleSets'. /// Some scenarios may require nodes in a node pool to receive their own dedicated public IP addresses. A common scenario is for gaming workloads, where a console needs to make a direct connection to a cloud virtual machine to minimize hops. For more information see [assigning a public IP per node](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#assign-a-public-ip-per-node-for-your-node-pools). The default is false. + /// When set to true, AKS adds a label to the node indicating that the feature is enabled and deploys a daemonset along with host services to sync custom certificate authorities from user-provided list of base64 encoded certificates into node trust stores. Defaults to false. /// This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIPPrefixName}. /// The Virtual Machine Scale Set priority. If not specified, the default is 'Regular'. /// This cannot be specified unless the scaleSetPriority is 'Spot'. If not specified, the default is 'Delete'. @@ -65,9 +67,12 @@ public ManagedClusterAgentPoolProfile(string name) /// See [Add a FIPS-enabled node pool](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#add-a-fips-enabled-node-pool-preview) for more details. /// GPUInstanceProfile to be used to specify GPU MIG instance profile for supported GPU VM SKU. /// CreationData to be used to specify the source Snapshot ID if the node pool will be created/upgraded using a snapshot. + /// AKS will associate the specified agent pool with the Capacity Reservation Group. /// This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}. For more information see [Azure dedicated hosts](https://docs.microsoft.com/azure/virtual-machines/dedicated-hosts). + /// The Windows agent pool's specific profile. + /// Network-related settings of an agent pool. /// Windows agent pool names must be 6 characters or less. - internal ManagedClusterAgentPoolProfile(int? count, string vmSize, int? osDiskSizeInGB, ContainerServiceOSDiskType? osDiskType, KubeletDiskType? kubeletDiskType, WorkloadRuntime? workloadRuntime, ResourceIdentifier vnetSubnetId, ResourceIdentifier podSubnetId, int? maxPods, ContainerServiceOSType? osType, ContainerServiceOSSku? osSku, int? maxCount, int? minCount, bool? enableAutoScaling, ScaleDownMode? scaleDownMode, AgentPoolType? agentPoolType, AgentPoolMode? mode, string orchestratorVersion, string currentOrchestratorVersion, string nodeImageVersion, AgentPoolUpgradeSettings upgradeSettings, string provisioningState, ContainerServicePowerState powerState, IList availabilityZones, bool? enableNodePublicIP, ResourceIdentifier nodePublicIPPrefixId, ScaleSetPriority? scaleSetPriority, ScaleSetEvictionPolicy? scaleSetEvictionPolicy, float? spotMaxPrice, IDictionary tags, IDictionary nodeLabels, IList nodeTaints, ResourceIdentifier proximityPlacementGroupId, KubeletConfig kubeletConfig, LinuxOSConfig linuxOSConfig, bool? enableEncryptionAtHost, bool? enableUltraSsd, bool? enableFips, GpuInstanceProfile? gpuInstanceProfile, ContainerServiceCreationData creationData, ResourceIdentifier hostGroupId, string name) : base(count, vmSize, osDiskSizeInGB, osDiskType, kubeletDiskType, workloadRuntime, vnetSubnetId, podSubnetId, maxPods, osType, osSku, maxCount, minCount, enableAutoScaling, scaleDownMode, agentPoolType, mode, orchestratorVersion, currentOrchestratorVersion, nodeImageVersion, upgradeSettings, provisioningState, powerState, availabilityZones, enableNodePublicIP, nodePublicIPPrefixId, scaleSetPriority, scaleSetEvictionPolicy, spotMaxPrice, tags, nodeLabels, nodeTaints, proximityPlacementGroupId, kubeletConfig, linuxOSConfig, enableEncryptionAtHost, enableUltraSsd, enableFips, gpuInstanceProfile, creationData, hostGroupId) + internal ManagedClusterAgentPoolProfile(int? count, string vmSize, int? osDiskSizeInGB, ContainerServiceOSDiskType? osDiskType, KubeletDiskType? kubeletDiskType, WorkloadRuntime? workloadRuntime, string messageOfTheDay, ResourceIdentifier vnetSubnetId, ResourceIdentifier podSubnetId, int? maxPods, ContainerServiceOSType? osType, ContainerServiceOSSku? osSku, int? maxCount, int? minCount, bool? enableAutoScaling, ScaleDownMode? scaleDownMode, AgentPoolType? agentPoolType, AgentPoolMode? mode, string orchestratorVersion, string currentOrchestratorVersion, string nodeImageVersion, AgentPoolUpgradeSettings upgradeSettings, string provisioningState, ContainerServicePowerState powerState, IList availabilityZones, bool? enableNodePublicIP, bool? enableCustomCATrust, ResourceIdentifier nodePublicIPPrefixId, ScaleSetPriority? scaleSetPriority, ScaleSetEvictionPolicy? scaleSetEvictionPolicy, float? spotMaxPrice, IDictionary tags, IDictionary nodeLabels, IList nodeTaints, ResourceIdentifier proximityPlacementGroupId, KubeletConfig kubeletConfig, LinuxOSConfig linuxOSConfig, bool? enableEncryptionAtHost, bool? enableUltraSsd, bool? enableFips, GpuInstanceProfile? gpuInstanceProfile, ContainerServiceCreationData creationData, ResourceIdentifier capacityReservationGroupId, ResourceIdentifier hostGroupId, AgentPoolWindowsProfile windowsProfile, AgentPoolNetworkProfile networkProfile, string name) : base(count, vmSize, osDiskSizeInGB, osDiskType, kubeletDiskType, workloadRuntime, messageOfTheDay, vnetSubnetId, podSubnetId, maxPods, osType, osSku, maxCount, minCount, enableAutoScaling, scaleDownMode, agentPoolType, mode, orchestratorVersion, currentOrchestratorVersion, nodeImageVersion, upgradeSettings, provisioningState, powerState, availabilityZones, enableNodePublicIP, enableCustomCATrust, nodePublicIPPrefixId, scaleSetPriority, scaleSetEvictionPolicy, spotMaxPrice, tags, nodeLabels, nodeTaints, proximityPlacementGroupId, kubeletConfig, linuxOSConfig, enableEncryptionAtHost, enableUltraSsd, enableFips, gpuInstanceProfile, creationData, capacityReservationGroupId, hostGroupId, windowsProfile, networkProfile) { Name = name; } diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterAgentPoolProfileProperties.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterAgentPoolProfileProperties.Serialization.cs index 962f05ab2757c..97d71c1fb1717 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterAgentPoolProfileProperties.Serialization.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterAgentPoolProfileProperties.Serialization.cs @@ -46,6 +46,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("workloadRuntime"u8); writer.WriteStringValue(WorkloadRuntime.Value.ToString()); } + if (Optional.IsDefined(MessageOfTheDay)) + { + writer.WritePropertyName("messageOfTheDay"u8); + writer.WriteStringValue(MessageOfTheDay); + } if (Optional.IsDefined(VnetSubnetId)) { writer.WritePropertyName("vnetSubnetID"u8); @@ -131,6 +136,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("enableNodePublicIP"u8); writer.WriteBooleanValue(EnableNodePublicIP.Value); } + if (Optional.IsDefined(EnableCustomCATrust)) + { + writer.WritePropertyName("enableCustomCATrust"u8); + writer.WriteBooleanValue(EnableCustomCATrust.Value); + } if (Optional.IsDefined(NodePublicIPPrefixId)) { writer.WritePropertyName("nodePublicIPPrefixID"u8); @@ -223,11 +233,26 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("creationData"u8); writer.WriteObjectValue(CreationData); } + if (Optional.IsDefined(CapacityReservationGroupId)) + { + writer.WritePropertyName("capacityReservationGroupID"u8); + writer.WriteStringValue(CapacityReservationGroupId); + } if (Optional.IsDefined(HostGroupId)) { writer.WritePropertyName("hostGroupID"u8); writer.WriteStringValue(HostGroupId); } + if (Optional.IsDefined(WindowsProfile)) + { + writer.WritePropertyName("windowsProfile"u8); + writer.WriteObjectValue(WindowsProfile); + } + if (Optional.IsDefined(NetworkProfile)) + { + writer.WritePropertyName("networkProfile"u8); + writer.WriteObjectValue(NetworkProfile); + } writer.WriteEndObject(); } @@ -239,6 +264,7 @@ internal static ManagedClusterAgentPoolProfileProperties DeserializeManagedClust Optional osDiskType = default; Optional kubeletDiskType = default; Optional workloadRuntime = default; + Optional messageOfTheDay = default; Optional vnetSubnetId = default; Optional podSubnetId = default; Optional maxPods = default; @@ -258,6 +284,7 @@ internal static ManagedClusterAgentPoolProfileProperties DeserializeManagedClust Optional powerState = default; Optional> availabilityZones = default; Optional enableNodePublicIP = default; + Optional enableCustomCATrust = default; Optional nodePublicIPPrefixId = default; Optional scaleSetPriority = default; Optional scaleSetEvictionPolicy = default; @@ -273,7 +300,10 @@ internal static ManagedClusterAgentPoolProfileProperties DeserializeManagedClust Optional enableFIPS = default; Optional gpuInstanceProfile = default; Optional creationData = default; + Optional capacityReservationGroupId = default; Optional hostGroupId = default; + Optional windowsProfile = default; + Optional networkProfile = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("count"u8)) @@ -331,6 +361,11 @@ internal static ManagedClusterAgentPoolProfileProperties DeserializeManagedClust workloadRuntime = new WorkloadRuntime(property.Value.GetString()); continue; } + if (property.NameEquals("messageOfTheDay"u8)) + { + messageOfTheDay = property.Value.GetString(); + continue; + } if (property.NameEquals("vnetSubnetID"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -506,6 +541,16 @@ internal static ManagedClusterAgentPoolProfileProperties DeserializeManagedClust enableNodePublicIP = property.Value.GetBoolean(); continue; } + if (property.NameEquals("enableCustomCATrust"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + enableCustomCATrust = property.Value.GetBoolean(); + continue; + } if (property.NameEquals("nodePublicIPPrefixID"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -671,6 +716,16 @@ internal static ManagedClusterAgentPoolProfileProperties DeserializeManagedClust creationData = ContainerServiceCreationData.DeserializeContainerServiceCreationData(property.Value); continue; } + if (property.NameEquals("capacityReservationGroupID"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + capacityReservationGroupId = new ResourceIdentifier(property.Value.GetString()); + continue; + } if (property.NameEquals("hostGroupID"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -681,8 +736,28 @@ internal static ManagedClusterAgentPoolProfileProperties DeserializeManagedClust hostGroupId = new ResourceIdentifier(property.Value.GetString()); continue; } + if (property.NameEquals("windowsProfile"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + windowsProfile = AgentPoolWindowsProfile.DeserializeAgentPoolWindowsProfile(property.Value); + continue; + } + if (property.NameEquals("networkProfile"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + networkProfile = AgentPoolNetworkProfile.DeserializeAgentPoolNetworkProfile(property.Value); + continue; + } } - return new ManagedClusterAgentPoolProfileProperties(Optional.ToNullable(count), vmSize.Value, Optional.ToNullable(osDiskSizeGB), Optional.ToNullable(osDiskType), Optional.ToNullable(kubeletDiskType), Optional.ToNullable(workloadRuntime), vnetSubnetId.Value, podSubnetId.Value, Optional.ToNullable(maxPods), Optional.ToNullable(osType), Optional.ToNullable(osSku), Optional.ToNullable(maxCount), Optional.ToNullable(minCount), Optional.ToNullable(enableAutoScaling), Optional.ToNullable(scaleDownMode), Optional.ToNullable(type), Optional.ToNullable(mode), orchestratorVersion.Value, currentOrchestratorVersion.Value, nodeImageVersion.Value, upgradeSettings.Value, provisioningState.Value, powerState.Value, Optional.ToList(availabilityZones), Optional.ToNullable(enableNodePublicIP), nodePublicIPPrefixId.Value, Optional.ToNullable(scaleSetPriority), Optional.ToNullable(scaleSetEvictionPolicy), Optional.ToNullable(spotMaxPrice), Optional.ToDictionary(tags), Optional.ToDictionary(nodeLabels), Optional.ToList(nodeTaints), proximityPlacementGroupId.Value, kubeletConfig.Value, linuxOSConfig.Value, Optional.ToNullable(enableEncryptionAtHost), Optional.ToNullable(enableUltraSsd), Optional.ToNullable(enableFIPS), Optional.ToNullable(gpuInstanceProfile), creationData.Value, hostGroupId.Value); + return new ManagedClusterAgentPoolProfileProperties(Optional.ToNullable(count), vmSize.Value, Optional.ToNullable(osDiskSizeGB), Optional.ToNullable(osDiskType), Optional.ToNullable(kubeletDiskType), Optional.ToNullable(workloadRuntime), messageOfTheDay.Value, vnetSubnetId.Value, podSubnetId.Value, Optional.ToNullable(maxPods), Optional.ToNullable(osType), Optional.ToNullable(osSku), Optional.ToNullable(maxCount), Optional.ToNullable(minCount), Optional.ToNullable(enableAutoScaling), Optional.ToNullable(scaleDownMode), Optional.ToNullable(type), Optional.ToNullable(mode), orchestratorVersion.Value, currentOrchestratorVersion.Value, nodeImageVersion.Value, upgradeSettings.Value, provisioningState.Value, powerState.Value, Optional.ToList(availabilityZones), Optional.ToNullable(enableNodePublicIP), Optional.ToNullable(enableCustomCATrust), nodePublicIPPrefixId.Value, Optional.ToNullable(scaleSetPriority), Optional.ToNullable(scaleSetEvictionPolicy), Optional.ToNullable(spotMaxPrice), Optional.ToDictionary(tags), Optional.ToDictionary(nodeLabels), Optional.ToList(nodeTaints), proximityPlacementGroupId.Value, kubeletConfig.Value, linuxOSConfig.Value, Optional.ToNullable(enableEncryptionAtHost), Optional.ToNullable(enableUltraSsd), Optional.ToNullable(enableFIPS), Optional.ToNullable(gpuInstanceProfile), creationData.Value, capacityReservationGroupId.Value, hostGroupId.Value, windowsProfile.Value, networkProfile.Value); } } } diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterAgentPoolProfileProperties.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterAgentPoolProfileProperties.cs index e03eccee9788b..ee525708f4b24 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterAgentPoolProfileProperties.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterAgentPoolProfileProperties.cs @@ -29,25 +29,27 @@ public ManagedClusterAgentPoolProfileProperties() /// The default is 'Ephemeral' if the VM supports it and has a cache disk larger than the requested OSDiskSizeGB. Otherwise, defaults to 'Managed'. May not be changed after creation. For more information see [Ephemeral OS](https://docs.microsoft.com/azure/aks/cluster-configuration#ephemeral-os). /// Determines the placement of emptyDir volumes, container runtime data root, and Kubelet ephemeral storage. /// Determines the type of workload a node can run. + /// A base64-encoded string which will be written to /etc/motd after decoding. This allows customization of the message of the day for Linux nodes. It must not be specified for Windows nodes. It must be a static string (i.e., will be printed raw and not be executed as a script). /// If this is not specified, a VNET and subnet will be generated and used. If no podSubnetID is specified, this applies to nodes and pods, otherwise it applies to just nodes. This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}. /// If omitted, pod IPs are statically assigned on the node subnet (see vnetSubnetID for more details). This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}. /// The maximum number of pods that can run on a node. /// The operating system type. The default is Linux. - /// Specifies the OS SKU used by the agent pool. The default is Ubuntu if OSType is Linux. The default is Windows2019 when Kubernetes <= 1.24 or Windows2022 when Kubernetes >= 1.25 if OSType is Windows. + /// Specifies the OS SKU used by the agent pool. If not specified, the default is Ubuntu if OSType=Linux or Windows2019 if OSType=Windows. And the default Windows OSSKU will be changed to Windows2022 after Windows2019 is deprecated. /// The maximum number of nodes for auto-scaling. /// The minimum number of nodes for auto-scaling. /// Whether to enable auto-scaler. /// This also effects the cluster autoscaler behavior. If not specified, it defaults to Delete. /// The type of Agent Pool. /// A cluster must have at least one 'System' Agent Pool at all times. For additional information on agent pool restrictions and best practices, see: https://docs.microsoft.com/azure/aks/use-system-pools. - /// Both patch version <major.minor.patch> (e.g. 1.20.13) and <major.minor> (e.g. 1.20) are supported. When <major.minor> is specified, the latest supported GA patch version is chosen automatically. Updating the cluster with the same <major.minor> once it has been created (e.g. 1.14.x -> 1.14) will not trigger an upgrade, even if a newer patch version is available. As a best practice, you should upgrade all node pools in an AKS cluster to the same Kubernetes version. The node pool version must have the same major version as the control plane. The node pool minor version must be within two minor versions of the control plane version. The node pool version cannot be greater than the control plane version. For more information see [upgrading a node pool](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#upgrade-a-node-pool). - /// If orchestratorVersion is a fully specified version <major.minor.patch>, this field will be exactly equal to it. If orchestratorVersion is <major.minor>, this field will contain the full <major.minor.patch> version being used. + /// Both patch version <major.minor.patch> and <major.minor> are supported. When <major.minor> is specified, the latest supported patch version is chosen automatically. Updating the agent pool with the same <major.minor> once it has been created will not trigger an upgrade, even if a newer patch version is available. As a best practice, you should upgrade all node pools in an AKS cluster to the same Kubernetes version. The node pool version must have the same major version as the control plane. The node pool minor version must be within two minor versions of the control plane version. The node pool version cannot be greater than the control plane version. For more information see [upgrading a node pool](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#upgrade-a-node-pool). + /// If orchestratorVersion was a fully specified version <major.minor.patch>, this field will be exactly equal to it. If orchestratorVersion was <major.minor>, this field will contain the full <major.minor.patch> version being used. /// The version of node image. /// Settings for upgrading the agentpool. /// The current deployment or provisioning state. /// When an Agent Pool is first created it is initially Running. The Agent Pool can be stopped by setting this field to Stopped. A stopped Agent Pool stops all of its VMs and does not accrue billing charges. An Agent Pool can only be stopped if it is Running and provisioning state is Succeeded. /// The list of Availability zones to use for nodes. This can only be specified if the AgentPoolType property is 'VirtualMachineScaleSets'. /// Some scenarios may require nodes in a node pool to receive their own dedicated public IP addresses. A common scenario is for gaming workloads, where a console needs to make a direct connection to a cloud virtual machine to minimize hops. For more information see [assigning a public IP per node](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#assign-a-public-ip-per-node-for-your-node-pools). The default is false. + /// When set to true, AKS adds a label to the node indicating that the feature is enabled and deploys a daemonset along with host services to sync custom certificate authorities from user-provided list of base64 encoded certificates into node trust stores. Defaults to false. /// This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIPPrefixName}. /// The Virtual Machine Scale Set priority. If not specified, the default is 'Regular'. /// This cannot be specified unless the scaleSetPriority is 'Spot'. If not specified, the default is 'Delete'. @@ -63,8 +65,11 @@ public ManagedClusterAgentPoolProfileProperties() /// See [Add a FIPS-enabled node pool](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#add-a-fips-enabled-node-pool-preview) for more details. /// GPUInstanceProfile to be used to specify GPU MIG instance profile for supported GPU VM SKU. /// CreationData to be used to specify the source Snapshot ID if the node pool will be created/upgraded using a snapshot. + /// AKS will associate the specified agent pool with the Capacity Reservation Group. /// This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}. For more information see [Azure dedicated hosts](https://docs.microsoft.com/azure/virtual-machines/dedicated-hosts). - internal ManagedClusterAgentPoolProfileProperties(int? count, string vmSize, int? osDiskSizeInGB, ContainerServiceOSDiskType? osDiskType, KubeletDiskType? kubeletDiskType, WorkloadRuntime? workloadRuntime, ResourceIdentifier vnetSubnetId, ResourceIdentifier podSubnetId, int? maxPods, ContainerServiceOSType? osType, ContainerServiceOSSku? osSku, int? maxCount, int? minCount, bool? enableAutoScaling, ScaleDownMode? scaleDownMode, AgentPoolType? agentPoolType, AgentPoolMode? mode, string orchestratorVersion, string currentOrchestratorVersion, string nodeImageVersion, AgentPoolUpgradeSettings upgradeSettings, string provisioningState, ContainerServicePowerState powerState, IList availabilityZones, bool? enableNodePublicIP, ResourceIdentifier nodePublicIPPrefixId, ScaleSetPriority? scaleSetPriority, ScaleSetEvictionPolicy? scaleSetEvictionPolicy, float? spotMaxPrice, IDictionary tags, IDictionary nodeLabels, IList nodeTaints, ResourceIdentifier proximityPlacementGroupId, KubeletConfig kubeletConfig, LinuxOSConfig linuxOSConfig, bool? enableEncryptionAtHost, bool? enableUltraSsd, bool? enableFips, GpuInstanceProfile? gpuInstanceProfile, ContainerServiceCreationData creationData, ResourceIdentifier hostGroupId) + /// The Windows agent pool's specific profile. + /// Network-related settings of an agent pool. + internal ManagedClusterAgentPoolProfileProperties(int? count, string vmSize, int? osDiskSizeInGB, ContainerServiceOSDiskType? osDiskType, KubeletDiskType? kubeletDiskType, WorkloadRuntime? workloadRuntime, string messageOfTheDay, ResourceIdentifier vnetSubnetId, ResourceIdentifier podSubnetId, int? maxPods, ContainerServiceOSType? osType, ContainerServiceOSSku? osSku, int? maxCount, int? minCount, bool? enableAutoScaling, ScaleDownMode? scaleDownMode, AgentPoolType? agentPoolType, AgentPoolMode? mode, string orchestratorVersion, string currentOrchestratorVersion, string nodeImageVersion, AgentPoolUpgradeSettings upgradeSettings, string provisioningState, ContainerServicePowerState powerState, IList availabilityZones, bool? enableNodePublicIP, bool? enableCustomCATrust, ResourceIdentifier nodePublicIPPrefixId, ScaleSetPriority? scaleSetPriority, ScaleSetEvictionPolicy? scaleSetEvictionPolicy, float? spotMaxPrice, IDictionary tags, IDictionary nodeLabels, IList nodeTaints, ResourceIdentifier proximityPlacementGroupId, KubeletConfig kubeletConfig, LinuxOSConfig linuxOSConfig, bool? enableEncryptionAtHost, bool? enableUltraSsd, bool? enableFips, GpuInstanceProfile? gpuInstanceProfile, ContainerServiceCreationData creationData, ResourceIdentifier capacityReservationGroupId, ResourceIdentifier hostGroupId, AgentPoolWindowsProfile windowsProfile, AgentPoolNetworkProfile networkProfile) { Count = count; VmSize = vmSize; @@ -72,6 +77,7 @@ internal ManagedClusterAgentPoolProfileProperties(int? count, string vmSize, int OSDiskType = osDiskType; KubeletDiskType = kubeletDiskType; WorkloadRuntime = workloadRuntime; + MessageOfTheDay = messageOfTheDay; VnetSubnetId = vnetSubnetId; PodSubnetId = podSubnetId; MaxPods = maxPods; @@ -91,6 +97,7 @@ internal ManagedClusterAgentPoolProfileProperties(int? count, string vmSize, int PowerState = powerState; AvailabilityZones = availabilityZones; EnableNodePublicIP = enableNodePublicIP; + EnableCustomCATrust = enableCustomCATrust; NodePublicIPPrefixId = nodePublicIPPrefixId; ScaleSetPriority = scaleSetPriority; ScaleSetEvictionPolicy = scaleSetEvictionPolicy; @@ -106,7 +113,10 @@ internal ManagedClusterAgentPoolProfileProperties(int? count, string vmSize, int EnableFips = enableFips; GpuInstanceProfile = gpuInstanceProfile; CreationData = creationData; + CapacityReservationGroupId = capacityReservationGroupId; HostGroupId = hostGroupId; + WindowsProfile = windowsProfile; + NetworkProfile = networkProfile; } /// Number of agents (VMs) to host docker containers. Allowed values must be in the range of 0 to 1000 (inclusive) for user pools and in the range of 1 to 1000 (inclusive) for system pools. The default value is 1. @@ -121,6 +131,8 @@ internal ManagedClusterAgentPoolProfileProperties(int? count, string vmSize, int public KubeletDiskType? KubeletDiskType { get; set; } /// Determines the type of workload a node can run. public WorkloadRuntime? WorkloadRuntime { get; set; } + /// A base64-encoded string which will be written to /etc/motd after decoding. This allows customization of the message of the day for Linux nodes. It must not be specified for Windows nodes. It must be a static string (i.e., will be printed raw and not be executed as a script). + public string MessageOfTheDay { get; set; } /// If this is not specified, a VNET and subnet will be generated and used. If no podSubnetID is specified, this applies to nodes and pods, otherwise it applies to just nodes. This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}. public ResourceIdentifier VnetSubnetId { get; set; } /// If omitted, pod IPs are statically assigned on the node subnet (see vnetSubnetID for more details). This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}. @@ -129,7 +141,7 @@ internal ManagedClusterAgentPoolProfileProperties(int? count, string vmSize, int public int? MaxPods { get; set; } /// The operating system type. The default is Linux. public ContainerServiceOSType? OSType { get; set; } - /// Specifies the OS SKU used by the agent pool. The default is Ubuntu if OSType is Linux. The default is Windows2019 when Kubernetes <= 1.24 or Windows2022 when Kubernetes >= 1.25 if OSType is Windows. + /// Specifies the OS SKU used by the agent pool. If not specified, the default is Ubuntu if OSType=Linux or Windows2019 if OSType=Windows. And the default Windows OSSKU will be changed to Windows2022 after Windows2019 is deprecated. public ContainerServiceOSSku? OSSku { get; set; } /// The maximum number of nodes for auto-scaling. public int? MaxCount { get; set; } @@ -143,9 +155,9 @@ internal ManagedClusterAgentPoolProfileProperties(int? count, string vmSize, int public AgentPoolType? AgentPoolType { get; set; } /// A cluster must have at least one 'System' Agent Pool at all times. For additional information on agent pool restrictions and best practices, see: https://docs.microsoft.com/azure/aks/use-system-pools. public AgentPoolMode? Mode { get; set; } - /// Both patch version <major.minor.patch> (e.g. 1.20.13) and <major.minor> (e.g. 1.20) are supported. When <major.minor> is specified, the latest supported GA patch version is chosen automatically. Updating the cluster with the same <major.minor> once it has been created (e.g. 1.14.x -> 1.14) will not trigger an upgrade, even if a newer patch version is available. As a best practice, you should upgrade all node pools in an AKS cluster to the same Kubernetes version. The node pool version must have the same major version as the control plane. The node pool minor version must be within two minor versions of the control plane version. The node pool version cannot be greater than the control plane version. For more information see [upgrading a node pool](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#upgrade-a-node-pool). + /// Both patch version <major.minor.patch> and <major.minor> are supported. When <major.minor> is specified, the latest supported patch version is chosen automatically. Updating the agent pool with the same <major.minor> once it has been created will not trigger an upgrade, even if a newer patch version is available. As a best practice, you should upgrade all node pools in an AKS cluster to the same Kubernetes version. The node pool version must have the same major version as the control plane. The node pool minor version must be within two minor versions of the control plane version. The node pool version cannot be greater than the control plane version. For more information see [upgrading a node pool](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#upgrade-a-node-pool). public string OrchestratorVersion { get; set; } - /// If orchestratorVersion is a fully specified version <major.minor.patch>, this field will be exactly equal to it. If orchestratorVersion is <major.minor>, this field will contain the full <major.minor.patch> version being used. + /// If orchestratorVersion was a fully specified version <major.minor.patch>, this field will be exactly equal to it. If orchestratorVersion was <major.minor>, this field will contain the full <major.minor.patch> version being used. public string CurrentOrchestratorVersion { get; } /// The version of node image. public string NodeImageVersion { get; } @@ -183,6 +195,8 @@ public ContainerServiceStateCode? PowerStateCode public IList AvailabilityZones { get; } /// Some scenarios may require nodes in a node pool to receive their own dedicated public IP addresses. A common scenario is for gaming workloads, where a console needs to make a direct connection to a cloud virtual machine to minimize hops. For more information see [assigning a public IP per node](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#assign-a-public-ip-per-node-for-your-node-pools). The default is false. public bool? EnableNodePublicIP { get; set; } + /// When set to true, AKS adds a label to the node indicating that the feature is enabled and deploys a daemonset along with host services to sync custom certificate authorities from user-provided list of base64 encoded certificates into node trust stores. Defaults to false. + public bool? EnableCustomCATrust { get; set; } /// This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIPPrefixName}. public ResourceIdentifier NodePublicIPPrefixId { get; set; } /// The Virtual Machine Scale Set priority. If not specified, the default is 'Regular'. @@ -225,7 +239,25 @@ public ResourceIdentifier CreationDataSourceResourceId } } + /// AKS will associate the specified agent pool with the Capacity Reservation Group. + public ResourceIdentifier CapacityReservationGroupId { get; set; } /// This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}. For more information see [Azure dedicated hosts](https://docs.microsoft.com/azure/virtual-machines/dedicated-hosts). public ResourceIdentifier HostGroupId { get; set; } + /// The Windows agent pool's specific profile. + internal AgentPoolWindowsProfile WindowsProfile { get; set; } + /// The default value is false. Outbound NAT can only be disabled if the cluster outboundType is NAT Gateway and the Windows agent pool does not have node public IP enabled. + public bool? DisableOutboundNat + { + get => WindowsProfile is null ? default : WindowsProfile.DisableOutboundNat; + set + { + if (WindowsProfile is null) + WindowsProfile = new AgentPoolWindowsProfile(); + WindowsProfile.DisableOutboundNat = value; + } + } + + /// Network-related settings of an agent pool. + public AgentPoolNetworkProfile NetworkProfile { get; set; } } } diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterApiServerAccessProfile.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterApiServerAccessProfile.Serialization.cs index bf1a2304eff71..f8b5ecc529b8e 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterApiServerAccessProfile.Serialization.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterApiServerAccessProfile.Serialization.cs @@ -46,6 +46,16 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("disableRunCommand"u8); writer.WriteBooleanValue(DisableRunCommand.Value); } + if (Optional.IsDefined(EnableVnetIntegration)) + { + writer.WritePropertyName("enableVnetIntegration"u8); + writer.WriteBooleanValue(EnableVnetIntegration.Value); + } + if (Optional.IsDefined(SubnetId)) + { + writer.WritePropertyName("subnetId"u8); + writer.WriteStringValue(SubnetId); + } writer.WriteEndObject(); } @@ -56,6 +66,8 @@ internal static ManagedClusterApiServerAccessProfile DeserializeManagedClusterAp Optional privateDnsZone = default; Optional enablePrivateClusterPublicFQDN = default; Optional disableRunCommand = default; + Optional enableVnetIntegration = default; + Optional subnetId = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("authorizedIPRanges"u8)) @@ -108,8 +120,28 @@ internal static ManagedClusterApiServerAccessProfile DeserializeManagedClusterAp disableRunCommand = property.Value.GetBoolean(); continue; } + if (property.NameEquals("enableVnetIntegration"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + enableVnetIntegration = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("subnetId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + subnetId = new ResourceIdentifier(property.Value.GetString()); + continue; + } } - return new ManagedClusterApiServerAccessProfile(Optional.ToList(authorizedIPRanges), Optional.ToNullable(enablePrivateCluster), privateDnsZone.Value, Optional.ToNullable(enablePrivateClusterPublicFQDN), Optional.ToNullable(disableRunCommand)); + return new ManagedClusterApiServerAccessProfile(Optional.ToList(authorizedIPRanges), Optional.ToNullable(enablePrivateCluster), privateDnsZone.Value, Optional.ToNullable(enablePrivateClusterPublicFQDN), Optional.ToNullable(disableRunCommand), Optional.ToNullable(enableVnetIntegration), subnetId.Value); } } } diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterApiServerAccessProfile.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterApiServerAccessProfile.cs index 349ae5377871b..8163e7360d1bb 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterApiServerAccessProfile.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterApiServerAccessProfile.cs @@ -25,13 +25,17 @@ public ManagedClusterApiServerAccessProfile() /// The default is System. For more details see [configure private DNS zone](https://docs.microsoft.com/azure/aks/private-clusters#configure-private-dns-zone). Allowed values are 'system' and 'none'. /// Whether to create additional public FQDN for private cluster or not. /// Whether to disable run command for the cluster or not. - internal ManagedClusterApiServerAccessProfile(IList authorizedIPRanges, bool? enablePrivateCluster, string privateDnsZone, bool? enablePrivateClusterPublicFqdn, bool? disableRunCommand) + /// Whether to enable apiserver vnet integration for the cluster or not. + /// It is required when: 1. creating a new cluster with BYO Vnet; 2. updating an existing cluster to enable apiserver vnet integration. + internal ManagedClusterApiServerAccessProfile(IList authorizedIPRanges, bool? enablePrivateCluster, string privateDnsZone, bool? enablePrivateClusterPublicFqdn, bool? disableRunCommand, bool? enableVnetIntegration, ResourceIdentifier subnetId) { AuthorizedIPRanges = authorizedIPRanges; EnablePrivateCluster = enablePrivateCluster; PrivateDnsZone = privateDnsZone; EnablePrivateClusterPublicFqdn = enablePrivateClusterPublicFqdn; DisableRunCommand = disableRunCommand; + EnableVnetIntegration = enableVnetIntegration; + SubnetId = subnetId; } /// IP ranges are specified in CIDR format, e.g. 137.117.106.88/29. This feature is not compatible with clusters that use Public IP Per Node, or clusters that are using a Basic Load Balancer. For more information see [API server authorized IP ranges](https://docs.microsoft.com/azure/aks/api-server-authorized-ip-ranges). @@ -44,5 +48,9 @@ internal ManagedClusterApiServerAccessProfile(IList authorizedIPRanges, public bool? EnablePrivateClusterPublicFqdn { get; set; } /// Whether to disable run command for the cluster or not. public bool? DisableRunCommand { get; set; } + /// Whether to enable apiserver vnet integration for the cluster or not. + public bool? EnableVnetIntegration { get; set; } + /// It is required when: 1. creating a new cluster with BYO Vnet; 2. updating an existing cluster to enable apiserver vnet integration. + public ResourceIdentifier SubnetId { get; set; } } } diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterAutoUpgradeProfile.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterAutoUpgradeProfile.Serialization.cs index 8120824f40da3..daa20c64b7659 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterAutoUpgradeProfile.Serialization.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterAutoUpgradeProfile.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.ContainerService.Models { - internal partial class ManagedClusterAutoUpgradeProfile : IUtf8JsonSerializable + public partial class ManagedClusterAutoUpgradeProfile : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -20,12 +20,18 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("upgradeChannel"u8); writer.WriteStringValue(UpgradeChannel.Value.ToString()); } + if (Optional.IsDefined(NodeOSUpgradeChannel)) + { + writer.WritePropertyName("nodeOSUpgradeChannel"u8); + writer.WriteStringValue(NodeOSUpgradeChannel.Value.ToString()); + } writer.WriteEndObject(); } internal static ManagedClusterAutoUpgradeProfile DeserializeManagedClusterAutoUpgradeProfile(JsonElement element) { Optional upgradeChannel = default; + Optional nodeOSUpgradeChannel = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("upgradeChannel"u8)) @@ -38,8 +44,18 @@ internal static ManagedClusterAutoUpgradeProfile DeserializeManagedClusterAutoUp upgradeChannel = new UpgradeChannel(property.Value.GetString()); continue; } + if (property.NameEquals("nodeOSUpgradeChannel"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + nodeOSUpgradeChannel = new ManagedClusterNodeOSUpgradeChannel(property.Value.GetString()); + continue; + } } - return new ManagedClusterAutoUpgradeProfile(Optional.ToNullable(upgradeChannel)); + return new ManagedClusterAutoUpgradeProfile(Optional.ToNullable(upgradeChannel), Optional.ToNullable(nodeOSUpgradeChannel)); } } } diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterAutoUpgradeProfile.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterAutoUpgradeProfile.cs index 7cb1f86393f36..17e2932e184b8 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterAutoUpgradeProfile.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterAutoUpgradeProfile.cs @@ -8,7 +8,7 @@ namespace Azure.ResourceManager.ContainerService.Models { /// Auto upgrade profile for a managed cluster. - internal partial class ManagedClusterAutoUpgradeProfile + public partial class ManagedClusterAutoUpgradeProfile { /// Initializes a new instance of ManagedClusterAutoUpgradeProfile. public ManagedClusterAutoUpgradeProfile() @@ -17,12 +17,16 @@ public ManagedClusterAutoUpgradeProfile() /// Initializes a new instance of ManagedClusterAutoUpgradeProfile. /// For more information see [setting the AKS cluster auto-upgrade channel](https://docs.microsoft.com/azure/aks/upgrade-cluster#set-auto-upgrade-channel). - internal ManagedClusterAutoUpgradeProfile(UpgradeChannel? upgradeChannel) + /// The default is Unmanaged, but may change to either NodeImage or SecurityPatch at GA. + internal ManagedClusterAutoUpgradeProfile(UpgradeChannel? upgradeChannel, ManagedClusterNodeOSUpgradeChannel? nodeOSUpgradeChannel) { UpgradeChannel = upgradeChannel; + NodeOSUpgradeChannel = nodeOSUpgradeChannel; } /// For more information see [setting the AKS cluster auto-upgrade channel](https://docs.microsoft.com/azure/aks/upgrade-cluster#set-auto-upgrade-channel). public UpgradeChannel? UpgradeChannel { get; set; } + /// The default is Unmanaged, but may change to either NodeImage or SecurityPatch at GA. + public ManagedClusterNodeOSUpgradeChannel? NodeOSUpgradeChannel { get; set; } } } diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterAzureMonitorProfile.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterAzureMonitorProfile.Serialization.cs new file mode 100644 index 0000000000000..bb3c653147b07 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterAzureMonitorProfile.Serialization.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ContainerService.Models +{ + internal partial class ManagedClusterAzureMonitorProfile : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Metrics)) + { + writer.WritePropertyName("metrics"u8); + writer.WriteObjectValue(Metrics); + } + writer.WriteEndObject(); + } + + internal static ManagedClusterAzureMonitorProfile DeserializeManagedClusterAzureMonitorProfile(JsonElement element) + { + Optional metrics = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("metrics"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + metrics = ManagedClusterMonitorProfileMetrics.DeserializeManagedClusterMonitorProfileMetrics(property.Value); + continue; + } + } + return new ManagedClusterAzureMonitorProfile(metrics.Value); + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterAzureMonitorProfile.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterAzureMonitorProfile.cs new file mode 100644 index 0000000000000..bdccfd01c7af6 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterAzureMonitorProfile.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// Prometheus addon profile for the container service cluster. + internal partial class ManagedClusterAzureMonitorProfile + { + /// Initializes a new instance of ManagedClusterAzureMonitorProfile. + public ManagedClusterAzureMonitorProfile() + { + } + + /// Initializes a new instance of ManagedClusterAzureMonitorProfile. + /// Metrics profile for the prometheus service addon. + internal ManagedClusterAzureMonitorProfile(ManagedClusterMonitorProfileMetrics metrics) + { + Metrics = metrics; + } + + /// Metrics profile for the prometheus service addon. + public ManagedClusterMonitorProfileMetrics Metrics { get; set; } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterGuardrailsProfile.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterGuardrailsProfile.Serialization.cs new file mode 100644 index 0000000000000..6765a6e87bdc2 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterGuardrailsProfile.Serialization.cs @@ -0,0 +1,88 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ContainerService.Models +{ + public partial class ManagedClusterGuardrailsProfile : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("version"u8); + writer.WriteStringValue(Version); + writer.WritePropertyName("level"u8); + writer.WriteStringValue(Level.ToString()); + if (Optional.IsCollectionDefined(ExcludedNamespaces)) + { + writer.WritePropertyName("excludedNamespaces"u8); + writer.WriteStartArray(); + foreach (var item in ExcludedNamespaces) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + writer.WriteEndObject(); + } + + internal static ManagedClusterGuardrailsProfile DeserializeManagedClusterGuardrailsProfile(JsonElement element) + { + Optional> systemExcludedNamespaces = default; + string version = default; + ManagedClusterGuardrailsProfileLevel level = default; + Optional> excludedNamespaces = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("systemExcludedNamespaces"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + systemExcludedNamespaces = array; + continue; + } + if (property.NameEquals("version"u8)) + { + version = property.Value.GetString(); + continue; + } + if (property.NameEquals("level"u8)) + { + level = new ManagedClusterGuardrailsProfileLevel(property.Value.GetString()); + continue; + } + if (property.NameEquals("excludedNamespaces"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + excludedNamespaces = array; + continue; + } + } + return new ManagedClusterGuardrailsProfile(Optional.ToList(systemExcludedNamespaces), version, level, Optional.ToList(excludedNamespaces)); + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterGuardrailsProfile.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterGuardrailsProfile.cs new file mode 100644 index 0000000000000..d3e83b15756c7 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterGuardrailsProfile.cs @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// The Guardrails profile. + public partial class ManagedClusterGuardrailsProfile + { + /// Initializes a new instance of ManagedClusterGuardrailsProfile. + /// The version of constraints to use. + /// The guardrails level to be used. By default, Guardrails is enabled for all namespaces except those that AKS excludes via systemExcludedNamespaces. + /// is null. + public ManagedClusterGuardrailsProfile(string version, ManagedClusterGuardrailsProfileLevel level) + { + Argument.AssertNotNull(version, nameof(version)); + + SystemExcludedNamespaces = new ChangeTrackingList(); + Version = version; + Level = level; + ExcludedNamespaces = new ChangeTrackingList(); + } + + /// Initializes a new instance of ManagedClusterGuardrailsProfile. + /// List of namespaces specified by AKS to be excluded from Guardrails. + /// The version of constraints to use. + /// The guardrails level to be used. By default, Guardrails is enabled for all namespaces except those that AKS excludes via systemExcludedNamespaces. + /// List of namespaces excluded from guardrails checks. + internal ManagedClusterGuardrailsProfile(IReadOnlyList systemExcludedNamespaces, string version, ManagedClusterGuardrailsProfileLevel level, IList excludedNamespaces) + { + SystemExcludedNamespaces = systemExcludedNamespaces; + Version = version; + Level = level; + ExcludedNamespaces = excludedNamespaces; + } + + /// List of namespaces specified by AKS to be excluded from Guardrails. + public IReadOnlyList SystemExcludedNamespaces { get; } + /// The version of constraints to use. + public string Version { get; set; } + /// The guardrails level to be used. By default, Guardrails is enabled for all namespaces except those that AKS excludes via systemExcludedNamespaces. + public ManagedClusterGuardrailsProfileLevel Level { get; set; } + /// List of namespaces excluded from guardrails checks. + public IList ExcludedNamespaces { get; } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterGuardrailsProfileLevel.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterGuardrailsProfileLevel.cs new file mode 100644 index 0000000000000..005fa731e583e --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterGuardrailsProfileLevel.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// The guardrails level to be used. By default, Guardrails is enabled for all namespaces except those that AKS excludes via systemExcludedNamespaces. + public readonly partial struct ManagedClusterGuardrailsProfileLevel : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ManagedClusterGuardrailsProfileLevel(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string OffValue = "Off"; + private const string WarningValue = "Warning"; + private const string EnforcementValue = "Enforcement"; + + /// Off. + public static ManagedClusterGuardrailsProfileLevel Off { get; } = new ManagedClusterGuardrailsProfileLevel(OffValue); + /// Warning. + public static ManagedClusterGuardrailsProfileLevel Warning { get; } = new ManagedClusterGuardrailsProfileLevel(WarningValue); + /// Enforcement. + public static ManagedClusterGuardrailsProfileLevel Enforcement { get; } = new ManagedClusterGuardrailsProfileLevel(EnforcementValue); + /// Determines if two values are the same. + public static bool operator ==(ManagedClusterGuardrailsProfileLevel left, ManagedClusterGuardrailsProfileLevel right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ManagedClusterGuardrailsProfileLevel left, ManagedClusterGuardrailsProfileLevel right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator ManagedClusterGuardrailsProfileLevel(string value) => new ManagedClusterGuardrailsProfileLevel(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ManagedClusterGuardrailsProfileLevel other && Equals(other); + /// + public bool Equals(ManagedClusterGuardrailsProfileLevel other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterHttpProxyConfig.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterHttpProxyConfig.Serialization.cs index dedcd0a34cf21..275c76c63a257 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterHttpProxyConfig.Serialization.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterHttpProxyConfig.Serialization.cs @@ -49,6 +49,7 @@ internal static ManagedClusterHttpProxyConfig DeserializeManagedClusterHttpProxy Optional httpProxy = default; Optional httpsProxy = default; Optional> noProxy = default; + Optional> effectiveNoProxy = default; Optional trustedCA = default; foreach (var property in element.EnumerateObject()) { @@ -77,13 +78,28 @@ internal static ManagedClusterHttpProxyConfig DeserializeManagedClusterHttpProxy noProxy = array; continue; } + if (property.NameEquals("effectiveNoProxy"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + effectiveNoProxy = array; + continue; + } if (property.NameEquals("trustedCa"u8)) { trustedCA = property.Value.GetString(); continue; } } - return new ManagedClusterHttpProxyConfig(httpProxy.Value, httpsProxy.Value, Optional.ToList(noProxy), trustedCA.Value); + return new ManagedClusterHttpProxyConfig(httpProxy.Value, httpsProxy.Value, Optional.ToList(noProxy), Optional.ToList(effectiveNoProxy), trustedCA.Value); } } } diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterHttpProxyConfig.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterHttpProxyConfig.cs index 168dc491ef775..7358246cecc80 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterHttpProxyConfig.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterHttpProxyConfig.cs @@ -17,18 +17,21 @@ public partial class ManagedClusterHttpProxyConfig public ManagedClusterHttpProxyConfig() { NoProxy = new ChangeTrackingList(); + EffectiveNoProxy = new ChangeTrackingList(); } /// Initializes a new instance of ManagedClusterHttpProxyConfig. /// The HTTP proxy server endpoint to use. /// The HTTPS proxy server endpoint to use. /// The endpoints that should not go through proxy. + /// A read-only list of all endpoints for which traffic should not be sent to the proxy. This list is a superset of noProxy and values injected by AKS. /// Alternative CA cert to use for connecting to proxy servers. - internal ManagedClusterHttpProxyConfig(string httpProxy, string httpsProxy, IList noProxy, string trustedCA) + internal ManagedClusterHttpProxyConfig(string httpProxy, string httpsProxy, IList noProxy, IReadOnlyList effectiveNoProxy, string trustedCA) { HttpProxy = httpProxy; HttpsProxy = httpsProxy; NoProxy = noProxy; + EffectiveNoProxy = effectiveNoProxy; TrustedCA = trustedCA; } @@ -38,6 +41,8 @@ internal ManagedClusterHttpProxyConfig(string httpProxy, string httpsProxy, ILis public string HttpsProxy { get; set; } /// The endpoints that should not go through proxy. public IList NoProxy { get; } + /// A read-only list of all endpoints for which traffic should not be sent to the proxy. This list is a superset of noProxy and values injected by AKS. + public IReadOnlyList EffectiveNoProxy { get; } /// Alternative CA cert to use for connecting to proxy servers. public string TrustedCA { get; set; } } diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterIngressProfile.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterIngressProfile.Serialization.cs new file mode 100644 index 0000000000000..c1b65966d7e19 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterIngressProfile.Serialization.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ContainerService.Models +{ + internal partial class ManagedClusterIngressProfile : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(WebAppRouting)) + { + writer.WritePropertyName("webAppRouting"u8); + writer.WriteObjectValue(WebAppRouting); + } + writer.WriteEndObject(); + } + + internal static ManagedClusterIngressProfile DeserializeManagedClusterIngressProfile(JsonElement element) + { + Optional webAppRouting = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("webAppRouting"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + webAppRouting = ManagedClusterIngressProfileWebAppRouting.DeserializeManagedClusterIngressProfileWebAppRouting(property.Value); + continue; + } + } + return new ManagedClusterIngressProfile(webAppRouting.Value); + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterIngressProfile.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterIngressProfile.cs new file mode 100644 index 0000000000000..4203cf68ef36c --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterIngressProfile.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// Ingress profile for the container service cluster. + internal partial class ManagedClusterIngressProfile + { + /// Initializes a new instance of ManagedClusterIngressProfile. + public ManagedClusterIngressProfile() + { + } + + /// Initializes a new instance of ManagedClusterIngressProfile. + /// Web App Routing settings for the ingress profile. + internal ManagedClusterIngressProfile(ManagedClusterIngressProfileWebAppRouting webAppRouting) + { + WebAppRouting = webAppRouting; + } + + /// Web App Routing settings for the ingress profile. + public ManagedClusterIngressProfileWebAppRouting WebAppRouting { get; set; } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterIngressProfileWebAppRouting.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterIngressProfileWebAppRouting.Serialization.cs new file mode 100644 index 0000000000000..bd3d1b9605fd1 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterIngressProfileWebAppRouting.Serialization.cs @@ -0,0 +1,61 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ContainerService.Models +{ + public partial class ManagedClusterIngressProfileWebAppRouting : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(IsEnabled)) + { + writer.WritePropertyName("enabled"u8); + writer.WriteBooleanValue(IsEnabled.Value); + } + if (Optional.IsDefined(DnsZoneResourceId)) + { + writer.WritePropertyName("dnsZoneResourceId"u8); + writer.WriteStringValue(DnsZoneResourceId); + } + writer.WriteEndObject(); + } + + internal static ManagedClusterIngressProfileWebAppRouting DeserializeManagedClusterIngressProfileWebAppRouting(JsonElement element) + { + Optional enabled = default; + Optional dnsZoneResourceId = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("enabled"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + enabled = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("dnsZoneResourceId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + dnsZoneResourceId = new ResourceIdentifier(property.Value.GetString()); + continue; + } + } + return new ManagedClusterIngressProfileWebAppRouting(Optional.ToNullable(enabled), dnsZoneResourceId.Value); + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterIngressProfileWebAppRouting.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterIngressProfileWebAppRouting.cs new file mode 100644 index 0000000000000..064240f2d6ddd --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterIngressProfileWebAppRouting.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using Azure.Core; + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// Web App Routing settings for the ingress profile. + public partial class ManagedClusterIngressProfileWebAppRouting + { + /// Initializes a new instance of ManagedClusterIngressProfileWebAppRouting. + public ManagedClusterIngressProfileWebAppRouting() + { + } + + /// Initializes a new instance of ManagedClusterIngressProfileWebAppRouting. + /// Whether to enable Web App Routing. + /// Resource ID of the DNS Zone to be associated with the web app. Used only when Web App Routing is enabled. + internal ManagedClusterIngressProfileWebAppRouting(bool? isEnabled, ResourceIdentifier dnsZoneResourceId) + { + IsEnabled = isEnabled; + DnsZoneResourceId = dnsZoneResourceId; + } + + /// Whether to enable Web App Routing. + public bool? IsEnabled { get; set; } + /// Resource ID of the DNS Zone to be associated with the web app. Used only when Web App Routing is enabled. + public ResourceIdentifier DnsZoneResourceId { get; set; } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerBackendPoolType.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerBackendPoolType.cs new file mode 100644 index 0000000000000..b4b6442b20e9d --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerBackendPoolType.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// The type of the managed inbound Load Balancer BackendPool. + public readonly partial struct ManagedClusterLoadBalancerBackendPoolType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ManagedClusterLoadBalancerBackendPoolType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string NodeIPConfigurationValue = "NodeIPConfiguration"; + private const string NodeIPValue = "NodeIP"; + + /// The type of the managed inbound Load Balancer BackendPool. https://cloud-provider-azure.sigs.k8s.io/topics/loadbalancer/#configure-load-balancer-backend. + public static ManagedClusterLoadBalancerBackendPoolType NodeIPConfiguration { get; } = new ManagedClusterLoadBalancerBackendPoolType(NodeIPConfigurationValue); + /// The type of the managed inbound Load Balancer BackendPool. https://cloud-provider-azure.sigs.k8s.io/topics/loadbalancer/#configure-load-balancer-backend. + public static ManagedClusterLoadBalancerBackendPoolType NodeIP { get; } = new ManagedClusterLoadBalancerBackendPoolType(NodeIPValue); + /// Determines if two values are the same. + public static bool operator ==(ManagedClusterLoadBalancerBackendPoolType left, ManagedClusterLoadBalancerBackendPoolType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ManagedClusterLoadBalancerBackendPoolType left, ManagedClusterLoadBalancerBackendPoolType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator ManagedClusterLoadBalancerBackendPoolType(string value) => new ManagedClusterLoadBalancerBackendPoolType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ManagedClusterLoadBalancerBackendPoolType other && Equals(other); + /// + public bool Equals(ManagedClusterLoadBalancerBackendPoolType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerProfile.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerProfile.Serialization.cs index 9c70eb04b1d4f..46817933d3598 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerProfile.Serialization.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerProfile.Serialization.cs @@ -57,6 +57,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("enableMultipleStandardLoadBalancers"u8); writer.WriteBooleanValue(EnableMultipleStandardLoadBalancers.Value); } + if (Optional.IsDefined(BackendPoolType)) + { + writer.WritePropertyName("backendPoolType"u8); + writer.WriteStringValue(BackendPoolType.Value.ToString()); + } writer.WriteEndObject(); } @@ -69,6 +74,7 @@ internal static ManagedClusterLoadBalancerProfile DeserializeManagedClusterLoadB Optional allocatedOutboundPorts = default; Optional idleTimeoutInMinutes = default; Optional enableMultipleStandardLoadBalancers = default; + Optional backendPoolType = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("managedOutboundIPs"u8)) @@ -146,8 +152,18 @@ internal static ManagedClusterLoadBalancerProfile DeserializeManagedClusterLoadB enableMultipleStandardLoadBalancers = property.Value.GetBoolean(); continue; } + if (property.NameEquals("backendPoolType"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + backendPoolType = new ManagedClusterLoadBalancerBackendPoolType(property.Value.GetString()); + continue; + } } - return new ManagedClusterLoadBalancerProfile(managedOutboundIPs.Value, outboundIPPrefixes.Value, outboundIPs.Value, Optional.ToList(effectiveOutboundIPs), Optional.ToNullable(allocatedOutboundPorts), Optional.ToNullable(idleTimeoutInMinutes), Optional.ToNullable(enableMultipleStandardLoadBalancers)); + return new ManagedClusterLoadBalancerProfile(managedOutboundIPs.Value, outboundIPPrefixes.Value, outboundIPs.Value, Optional.ToList(effectiveOutboundIPs), Optional.ToNullable(allocatedOutboundPorts), Optional.ToNullable(idleTimeoutInMinutes), Optional.ToNullable(enableMultipleStandardLoadBalancers), Optional.ToNullable(backendPoolType)); } } } diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerProfile.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerProfile.cs index 840051f39982f..b3d3cc57d2e77 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerProfile.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerProfile.cs @@ -28,7 +28,8 @@ public ManagedClusterLoadBalancerProfile() /// The desired number of allocated SNAT ports per VM. Allowed values are in the range of 0 to 64000 (inclusive). The default value is 0 which results in Azure dynamically allocating ports. /// Desired outbound flow idle timeout in minutes. Allowed values are in the range of 4 to 120 (inclusive). The default value is 30 minutes. /// Enable multiple standard load balancers per AKS cluster or not. - internal ManagedClusterLoadBalancerProfile(ManagedClusterLoadBalancerProfileManagedOutboundIPs managedOutboundIPs, ManagedClusterLoadBalancerProfileOutboundIPPrefixes outboundIPPrefixes, ManagedClusterLoadBalancerProfileOutboundIPs outboundIPs, IList effectiveOutboundIPs, int? allocatedOutboundPorts, int? idleTimeoutInMinutes, bool? enableMultipleStandardLoadBalancers) + /// The type of the managed inbound Load Balancer BackendPool. + internal ManagedClusterLoadBalancerProfile(ManagedClusterLoadBalancerProfileManagedOutboundIPs managedOutboundIPs, ManagedClusterLoadBalancerProfileOutboundIPPrefixes outboundIPPrefixes, ManagedClusterLoadBalancerProfileOutboundIPs outboundIPs, IList effectiveOutboundIPs, int? allocatedOutboundPorts, int? idleTimeoutInMinutes, bool? enableMultipleStandardLoadBalancers, ManagedClusterLoadBalancerBackendPoolType? backendPoolType) { ManagedOutboundIPs = managedOutboundIPs; OutboundIPPrefixes = outboundIPPrefixes; @@ -37,6 +38,7 @@ internal ManagedClusterLoadBalancerProfile(ManagedClusterLoadBalancerProfileMana AllocatedOutboundPorts = allocatedOutboundPorts; IdleTimeoutInMinutes = idleTimeoutInMinutes; EnableMultipleStandardLoadBalancers = enableMultipleStandardLoadBalancers; + BackendPoolType = backendPoolType; } /// Desired managed outbound IPs for the cluster load balancer. @@ -75,5 +77,7 @@ public IList OutboundPublicIPs public int? IdleTimeoutInMinutes { get; set; } /// Enable multiple standard load balancers per AKS cluster or not. public bool? EnableMultipleStandardLoadBalancers { get; set; } + /// The type of the managed inbound Load Balancer BackendPool. + public ManagedClusterLoadBalancerBackendPoolType? BackendPoolType { get; set; } } } diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterMonitorProfileKubeStateMetrics.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterMonitorProfileKubeStateMetrics.Serialization.cs new file mode 100644 index 0000000000000..ed2ba53d83486 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterMonitorProfileKubeStateMetrics.Serialization.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ContainerService.Models +{ + public partial class ManagedClusterMonitorProfileKubeStateMetrics : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(MetricLabelsAllowlist)) + { + writer.WritePropertyName("metricLabelsAllowlist"u8); + writer.WriteStringValue(MetricLabelsAllowlist); + } + if (Optional.IsDefined(MetricAnnotationsAllowList)) + { + writer.WritePropertyName("metricAnnotationsAllowList"u8); + writer.WriteStringValue(MetricAnnotationsAllowList); + } + writer.WriteEndObject(); + } + + internal static ManagedClusterMonitorProfileKubeStateMetrics DeserializeManagedClusterMonitorProfileKubeStateMetrics(JsonElement element) + { + Optional metricLabelsAllowlist = default; + Optional metricAnnotationsAllowList = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("metricLabelsAllowlist"u8)) + { + metricLabelsAllowlist = property.Value.GetString(); + continue; + } + if (property.NameEquals("metricAnnotationsAllowList"u8)) + { + metricAnnotationsAllowList = property.Value.GetString(); + continue; + } + } + return new ManagedClusterMonitorProfileKubeStateMetrics(metricLabelsAllowlist.Value, metricAnnotationsAllowList.Value); + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterMonitorProfileKubeStateMetrics.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterMonitorProfileKubeStateMetrics.cs new file mode 100644 index 0000000000000..72fee9f094bd4 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterMonitorProfileKubeStateMetrics.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// Kube State Metrics for prometheus addon profile for the container service cluster. + public partial class ManagedClusterMonitorProfileKubeStateMetrics + { + /// Initializes a new instance of ManagedClusterMonitorProfileKubeStateMetrics. + public ManagedClusterMonitorProfileKubeStateMetrics() + { + } + + /// Initializes a new instance of ManagedClusterMonitorProfileKubeStateMetrics. + /// Comma-separated list of Kubernetes annotations keys that will be used in the resource's labels metric. + /// Comma-separated list of additional Kubernetes label keys that will be used in the resource's labels metric. + internal ManagedClusterMonitorProfileKubeStateMetrics(string metricLabelsAllowlist, string metricAnnotationsAllowList) + { + MetricLabelsAllowlist = metricLabelsAllowlist; + MetricAnnotationsAllowList = metricAnnotationsAllowList; + } + + /// Comma-separated list of Kubernetes annotations keys that will be used in the resource's labels metric. + public string MetricLabelsAllowlist { get; set; } + /// Comma-separated list of additional Kubernetes label keys that will be used in the resource's labels metric. + public string MetricAnnotationsAllowList { get; set; } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterMonitorProfileMetrics.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterMonitorProfileMetrics.Serialization.cs new file mode 100644 index 0000000000000..1f3510750e58f --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterMonitorProfileMetrics.Serialization.cs @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ContainerService.Models +{ + public partial class ManagedClusterMonitorProfileMetrics : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("enabled"u8); + writer.WriteBooleanValue(IsEnabled); + if (Optional.IsDefined(KubeStateMetrics)) + { + writer.WritePropertyName("kubeStateMetrics"u8); + writer.WriteObjectValue(KubeStateMetrics); + } + writer.WriteEndObject(); + } + + internal static ManagedClusterMonitorProfileMetrics DeserializeManagedClusterMonitorProfileMetrics(JsonElement element) + { + bool enabled = default; + Optional kubeStateMetrics = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("enabled"u8)) + { + enabled = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("kubeStateMetrics"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + kubeStateMetrics = ManagedClusterMonitorProfileKubeStateMetrics.DeserializeManagedClusterMonitorProfileKubeStateMetrics(property.Value); + continue; + } + } + return new ManagedClusterMonitorProfileMetrics(enabled, kubeStateMetrics.Value); + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterMonitorProfileMetrics.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterMonitorProfileMetrics.cs new file mode 100644 index 0000000000000..e5f9ca8ada807 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterMonitorProfileMetrics.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// Metrics profile for the prometheus service addon. + public partial class ManagedClusterMonitorProfileMetrics + { + /// Initializes a new instance of ManagedClusterMonitorProfileMetrics. + /// Whether to enable the Prometheus collector. + public ManagedClusterMonitorProfileMetrics(bool isEnabled) + { + IsEnabled = isEnabled; + } + + /// Initializes a new instance of ManagedClusterMonitorProfileMetrics. + /// Whether to enable the Prometheus collector. + /// Kube State Metrics for prometheus addon profile for the container service cluster. + internal ManagedClusterMonitorProfileMetrics(bool isEnabled, ManagedClusterMonitorProfileKubeStateMetrics kubeStateMetrics) + { + IsEnabled = isEnabled; + KubeStateMetrics = kubeStateMetrics; + } + + /// Whether to enable the Prometheus collector. + public bool IsEnabled { get; set; } + /// Kube State Metrics for prometheus addon profile for the container service cluster. + public ManagedClusterMonitorProfileKubeStateMetrics KubeStateMetrics { get; set; } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterNodeOSUpgradeChannel.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterNodeOSUpgradeChannel.cs new file mode 100644 index 0000000000000..fc92304cd9329 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterNodeOSUpgradeChannel.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// The default is Unmanaged, but may change to either NodeImage or SecurityPatch at GA. + public readonly partial struct ManagedClusterNodeOSUpgradeChannel : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ManagedClusterNodeOSUpgradeChannel(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string NoneValue = "None"; + private const string UnmanagedValue = "Unmanaged"; + private const string SecurityPatchValue = "SecurityPatch"; + private const string NodeImageValue = "NodeImage"; + + /// No attempt to update your machines OS will be made either by OS or by rolling VHDs. This means you are responsible for your security updates. + public static ManagedClusterNodeOSUpgradeChannel None { get; } = new ManagedClusterNodeOSUpgradeChannel(NoneValue); + /// OS updates will be applied automatically through the OS built-in patching infrastructure. Newly scaled in machines will be unpatched initially, and will be patched at some later time by the OS's infrastructure. Behavior of this option depends on the OS in question. Ubuntu and Mariner apply security patches through unattended upgrade roughly once a day around 06:00 UTC. Windows does not apply security patches automatically and so for them this option is equivalent to None till further notice. + public static ManagedClusterNodeOSUpgradeChannel Unmanaged { get; } = new ManagedClusterNodeOSUpgradeChannel(UnmanagedValue); + /// AKS will update the nodes VHD with patches from the image maintainer labelled "security only" on a regular basis. Where possible, patches will also be applied without reimaging to existing nodes. Some patches, such as kernel patches, cannot be applied to existing nodes without disruption. For such patches, the VHD will be updated, and machines will be rolling reimaged to that VHD following maintenance windows and surge settings. This option incurs the extra cost of hosting the VHDs in your node resource group. + public static ManagedClusterNodeOSUpgradeChannel SecurityPatch { get; } = new ManagedClusterNodeOSUpgradeChannel(SecurityPatchValue); + /// AKS will update the nodes with a newly patched VHD containing security fixes and bugfixes on a weekly cadence. With the VHD update machines will be rolling reimaged to that VHD following maintenance windows and surge settings. No extra VHD cost is incurred when choosing this option as AKS hosts the images. + public static ManagedClusterNodeOSUpgradeChannel NodeImage { get; } = new ManagedClusterNodeOSUpgradeChannel(NodeImageValue); + /// Determines if two values are the same. + public static bool operator ==(ManagedClusterNodeOSUpgradeChannel left, ManagedClusterNodeOSUpgradeChannel right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ManagedClusterNodeOSUpgradeChannel left, ManagedClusterNodeOSUpgradeChannel right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator ManagedClusterNodeOSUpgradeChannel(string value) => new ManagedClusterNodeOSUpgradeChannel(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ManagedClusterNodeOSUpgradeChannel other && Equals(other); + /// + public bool Equals(ManagedClusterNodeOSUpgradeChannel other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterNodeResourceGroupProfile.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterNodeResourceGroupProfile.Serialization.cs new file mode 100644 index 0000000000000..eca8d8b687411 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterNodeResourceGroupProfile.Serialization.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ContainerService.Models +{ + internal partial class ManagedClusterNodeResourceGroupProfile : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(RestrictionLevel)) + { + writer.WritePropertyName("restrictionLevel"u8); + writer.WriteStringValue(RestrictionLevel.Value.ToString()); + } + writer.WriteEndObject(); + } + + internal static ManagedClusterNodeResourceGroupProfile DeserializeManagedClusterNodeResourceGroupProfile(JsonElement element) + { + Optional restrictionLevel = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("restrictionLevel"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + restrictionLevel = new ManagedClusterNodeResourceGroupRestrictionLevel(property.Value.GetString()); + continue; + } + } + return new ManagedClusterNodeResourceGroupProfile(Optional.ToNullable(restrictionLevel)); + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterNodeResourceGroupProfile.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterNodeResourceGroupProfile.cs new file mode 100644 index 0000000000000..111ad46b0c4ea --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterNodeResourceGroupProfile.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// Node resource group lockdown profile for a managed cluster. + internal partial class ManagedClusterNodeResourceGroupProfile + { + /// Initializes a new instance of ManagedClusterNodeResourceGroupProfile. + public ManagedClusterNodeResourceGroupProfile() + { + } + + /// Initializes a new instance of ManagedClusterNodeResourceGroupProfile. + /// The restriction level applied to the cluster's node resource group. + internal ManagedClusterNodeResourceGroupProfile(ManagedClusterNodeResourceGroupRestrictionLevel? restrictionLevel) + { + RestrictionLevel = restrictionLevel; + } + + /// The restriction level applied to the cluster's node resource group. + public ManagedClusterNodeResourceGroupRestrictionLevel? RestrictionLevel { get; set; } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterNodeResourceGroupRestrictionLevel.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterNodeResourceGroupRestrictionLevel.cs new file mode 100644 index 0000000000000..56df21b6ce51e --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterNodeResourceGroupRestrictionLevel.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// The restriction level applied to the cluster's node resource group. + public readonly partial struct ManagedClusterNodeResourceGroupRestrictionLevel : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ManagedClusterNodeResourceGroupRestrictionLevel(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string UnrestrictedValue = "Unrestricted"; + private const string ReadOnlyValue = "ReadOnly"; + + /// All RBAC permissions are allowed on the managed node resource group. + public static ManagedClusterNodeResourceGroupRestrictionLevel Unrestricted { get; } = new ManagedClusterNodeResourceGroupRestrictionLevel(UnrestrictedValue); + /// Only */read RBAC permissions allowed on the managed node resource group. + public static ManagedClusterNodeResourceGroupRestrictionLevel ReadOnly { get; } = new ManagedClusterNodeResourceGroupRestrictionLevel(ReadOnlyValue); + /// Determines if two values are the same. + public static bool operator ==(ManagedClusterNodeResourceGroupRestrictionLevel left, ManagedClusterNodeResourceGroupRestrictionLevel right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ManagedClusterNodeResourceGroupRestrictionLevel left, ManagedClusterNodeResourceGroupRestrictionLevel right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator ManagedClusterNodeResourceGroupRestrictionLevel(string value) => new ManagedClusterNodeResourceGroupRestrictionLevel(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ManagedClusterNodeResourceGroupRestrictionLevel other && Equals(other); + /// + public bool Equals(ManagedClusterNodeResourceGroupRestrictionLevel other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterOidcIssuerProfile.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterOidcIssuerProfile.Serialization.cs index 43dfb2d7a84d5..188721e692d6e 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterOidcIssuerProfile.Serialization.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterOidcIssuerProfile.Serialization.cs @@ -25,13 +25,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) internal static ManagedClusterOidcIssuerProfile DeserializeManagedClusterOidcIssuerProfile(JsonElement element) { - Optional issuerURL = default; + Optional issuerUrl = default; Optional enabled = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("issuerURL"u8)) { - issuerURL = property.Value.GetString(); + issuerUrl = property.Value.GetString(); continue; } if (property.NameEquals("enabled"u8)) @@ -45,7 +45,7 @@ internal static ManagedClusterOidcIssuerProfile DeserializeManagedClusterOidcIss continue; } } - return new ManagedClusterOidcIssuerProfile(issuerURL.Value, Optional.ToNullable(enabled)); + return new ManagedClusterOidcIssuerProfile(issuerUrl.Value, Optional.ToNullable(enabled)); } } } diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterPodIdentityProvisioningState.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterPodIdentityProvisioningState.cs index bde0aa41eb28d..b2149f241d5ee 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterPodIdentityProvisioningState.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterPodIdentityProvisioningState.cs @@ -23,18 +23,24 @@ public ManagedClusterPodIdentityProvisioningState(string value) } private const string AssignedValue = "Assigned"; - private const string UpdatingValue = "Updating"; + private const string CanceledValue = "Canceled"; private const string DeletingValue = "Deleting"; private const string FailedValue = "Failed"; + private const string SucceededValue = "Succeeded"; + private const string UpdatingValue = "Updating"; /// Assigned. public static ManagedClusterPodIdentityProvisioningState Assigned { get; } = new ManagedClusterPodIdentityProvisioningState(AssignedValue); - /// Updating. - public static ManagedClusterPodIdentityProvisioningState Updating { get; } = new ManagedClusterPodIdentityProvisioningState(UpdatingValue); + /// Canceled. + public static ManagedClusterPodIdentityProvisioningState Canceled { get; } = new ManagedClusterPodIdentityProvisioningState(CanceledValue); /// Deleting. public static ManagedClusterPodIdentityProvisioningState Deleting { get; } = new ManagedClusterPodIdentityProvisioningState(DeletingValue); /// Failed. public static ManagedClusterPodIdentityProvisioningState Failed { get; } = new ManagedClusterPodIdentityProvisioningState(FailedValue); + /// Succeeded. + public static ManagedClusterPodIdentityProvisioningState Succeeded { get; } = new ManagedClusterPodIdentityProvisioningState(SucceededValue); + /// Updating. + public static ManagedClusterPodIdentityProvisioningState Updating { get; } = new ManagedClusterPodIdentityProvisioningState(UpdatingValue); /// Determines if two values are the same. public static bool operator ==(ManagedClusterPodIdentityProvisioningState left, ManagedClusterPodIdentityProvisioningState right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterPropertiesForSnapshot.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterPropertiesForSnapshot.Serialization.cs new file mode 100644 index 0000000000000..e2b94c59a5aa3 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterPropertiesForSnapshot.Serialization.cs @@ -0,0 +1,62 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ContainerService.Models +{ + public partial class ManagedClusterPropertiesForSnapshot + { + internal static ManagedClusterPropertiesForSnapshot DeserializeManagedClusterPropertiesForSnapshot(JsonElement element) + { + Optional kubernetesVersion = default; + Optional sku = default; + Optional enableRbac = default; + Optional networkProfile = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("kubernetesVersion"u8)) + { + kubernetesVersion = property.Value.GetString(); + continue; + } + if (property.NameEquals("sku"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + sku = ManagedClusterSku.DeserializeManagedClusterSku(property.Value); + continue; + } + if (property.NameEquals("enableRbac"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + enableRbac = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("networkProfile"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + networkProfile = ContainerServiceNetworkProfileForSnapshot.DeserializeContainerServiceNetworkProfileForSnapshot(property.Value); + continue; + } + } + return new ManagedClusterPropertiesForSnapshot(kubernetesVersion.Value, sku.Value, Optional.ToNullable(enableRbac), networkProfile.Value); + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterPropertiesForSnapshot.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterPropertiesForSnapshot.cs new file mode 100644 index 0000000000000..60cd68e1c4a2f --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterPropertiesForSnapshot.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// managed cluster properties for snapshot, these properties are read only. + public partial class ManagedClusterPropertiesForSnapshot + { + /// Initializes a new instance of ManagedClusterPropertiesForSnapshot. + internal ManagedClusterPropertiesForSnapshot() + { + } + + /// Initializes a new instance of ManagedClusterPropertiesForSnapshot. + /// The current kubernetes version. + /// The current managed cluster sku. + /// Whether the cluster has enabled Kubernetes Role-Based Access Control or not. + /// The current network profile. + internal ManagedClusterPropertiesForSnapshot(string kubernetesVersion, ManagedClusterSku sku, bool? enableRbac, ContainerServiceNetworkProfileForSnapshot networkProfile) + { + KubernetesVersion = kubernetesVersion; + Sku = sku; + EnableRbac = enableRbac; + NetworkProfile = networkProfile; + } + + /// The current kubernetes version. + public string KubernetesVersion { get; } + /// The current managed cluster sku. + public ManagedClusterSku Sku { get; } + /// Whether the cluster has enabled Kubernetes Role-Based Access Control or not. + public bool? EnableRbac { get; } + /// The current network profile. + public ContainerServiceNetworkProfileForSnapshot NetworkProfile { get; } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterSecurityProfile.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterSecurityProfile.Serialization.cs index 022727f65f586..fa2663d23074a 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterSecurityProfile.Serialization.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterSecurityProfile.Serialization.cs @@ -5,6 +5,8 @@ #nullable disable +using System; +using System.Collections.Generic; using System.Text.Json; using Azure.Core; @@ -25,6 +27,31 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("azureKeyVaultKms"u8); writer.WriteObjectValue(AzureKeyVaultKms); } + if (Optional.IsDefined(WorkloadIdentity)) + { + writer.WritePropertyName("workloadIdentity"u8); + writer.WriteObjectValue(WorkloadIdentity); + } + if (Optional.IsDefined(ImageCleaner)) + { + writer.WritePropertyName("imageCleaner"u8); + writer.WriteObjectValue(ImageCleaner); + } + if (Optional.IsDefined(NodeRestriction)) + { + writer.WritePropertyName("nodeRestriction"u8); + writer.WriteObjectValue(NodeRestriction); + } + if (Optional.IsCollectionDefined(CustomCATrustCertificates)) + { + writer.WritePropertyName("customCATrustCertificates"u8); + writer.WriteStartArray(); + foreach (var item in CustomCATrustCertificates) + { + writer.WriteBase64StringValue(item, "D"); + } + writer.WriteEndArray(); + } writer.WriteEndObject(); } @@ -32,6 +59,10 @@ internal static ManagedClusterSecurityProfile DeserializeManagedClusterSecurityP { Optional defender = default; Optional azureKeyVaultKms = default; + Optional workloadIdentity = default; + Optional imageCleaner = default; + Optional nodeRestriction = default; + Optional> customCATrustCertificates = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("defender"u8)) @@ -54,8 +85,53 @@ internal static ManagedClusterSecurityProfile DeserializeManagedClusterSecurityP azureKeyVaultKms = ManagedClusterSecurityProfileKeyVaultKms.DeserializeManagedClusterSecurityProfileKeyVaultKms(property.Value); continue; } + if (property.NameEquals("workloadIdentity"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + workloadIdentity = ManagedClusterSecurityProfileWorkloadIdentity.DeserializeManagedClusterSecurityProfileWorkloadIdentity(property.Value); + continue; + } + if (property.NameEquals("imageCleaner"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + imageCleaner = ManagedClusterSecurityProfileImageCleaner.DeserializeManagedClusterSecurityProfileImageCleaner(property.Value); + continue; + } + if (property.NameEquals("nodeRestriction"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + nodeRestriction = ManagedClusterSecurityProfileNodeRestriction.DeserializeManagedClusterSecurityProfileNodeRestriction(property.Value); + continue; + } + if (property.NameEquals("customCATrustCertificates"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetBytesFromBase64("D")); + } + customCATrustCertificates = array; + continue; + } } - return new ManagedClusterSecurityProfile(defender.Value, azureKeyVaultKms.Value); + return new ManagedClusterSecurityProfile(defender.Value, azureKeyVaultKms.Value, workloadIdentity.Value, imageCleaner.Value, nodeRestriction.Value, Optional.ToList(customCATrustCertificates)); } } } diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterSecurityProfile.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterSecurityProfile.cs index 141782b3b01b9..d69f3c3867427 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterSecurityProfile.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterSecurityProfile.cs @@ -5,6 +5,10 @@ #nullable disable +using System; +using System.Collections.Generic; +using Azure.Core; + namespace Azure.ResourceManager.ContainerService.Models { /// Security profile for the container service cluster. @@ -13,20 +17,39 @@ public partial class ManagedClusterSecurityProfile /// Initializes a new instance of ManagedClusterSecurityProfile. public ManagedClusterSecurityProfile() { + CustomCATrustCertificates = new ChangeTrackingList(); } /// Initializes a new instance of ManagedClusterSecurityProfile. /// Microsoft Defender settings for the security profile. /// Azure Key Vault [key management service](https://kubernetes.io/docs/tasks/administer-cluster/kms-provider/) settings for the security profile. - internal ManagedClusterSecurityProfile(ManagedClusterSecurityProfileDefender defender, ManagedClusterSecurityProfileKeyVaultKms azureKeyVaultKms) + /// [Workload Identity](https://azure.github.io/azure-workload-identity/docs/) settings for the security profile. + /// ImageCleaner settings for the security profile. + /// [Node Restriction](https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/#noderestriction) settings for the security profile. + /// A list of up to 10 base64 encoded CAs that will be added to the trust store on nodes with the Custom CA Trust feature enabled. For more information see [Custom CA Trust Certificates](https://learn.microsoft.com/en-us/azure/aks/custom-certificate-authority). + internal ManagedClusterSecurityProfile(ManagedClusterSecurityProfileDefender defender, ManagedClusterSecurityProfileKeyVaultKms azureKeyVaultKms, ManagedClusterSecurityProfileWorkloadIdentity workloadIdentity, ManagedClusterSecurityProfileImageCleaner imageCleaner, ManagedClusterSecurityProfileNodeRestriction nodeRestriction, IList customCATrustCertificates) { Defender = defender; AzureKeyVaultKms = azureKeyVaultKms; + WorkloadIdentity = workloadIdentity; + ImageCleaner = imageCleaner; + NodeRestriction = nodeRestriction; + CustomCATrustCertificates = customCATrustCertificates; } /// Microsoft Defender settings for the security profile. public ManagedClusterSecurityProfileDefender Defender { get; set; } /// Azure Key Vault [key management service](https://kubernetes.io/docs/tasks/administer-cluster/kms-provider/) settings for the security profile. public ManagedClusterSecurityProfileKeyVaultKms AzureKeyVaultKms { get; set; } + /// [Workload Identity](https://azure.github.io/azure-workload-identity/docs/) settings for the security profile. + internal ManagedClusterSecurityProfileWorkloadIdentity WorkloadIdentity { get; set; } + + /// ImageCleaner settings for the security profile. + public ManagedClusterSecurityProfileImageCleaner ImageCleaner { get; set; } + /// [Node Restriction](https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/#noderestriction) settings for the security profile. + internal ManagedClusterSecurityProfileNodeRestriction NodeRestriction { get; set; } + + /// A list of up to 10 base64 encoded CAs that will be added to the trust store on nodes with the Custom CA Trust feature enabled. For more information see [Custom CA Trust Certificates](https://learn.microsoft.com/en-us/azure/aks/custom-certificate-authority). + public IList CustomCATrustCertificates { get; } } } diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterSecurityProfileImageCleaner.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterSecurityProfileImageCleaner.Serialization.cs new file mode 100644 index 0000000000000..cc81c2f0ffc4b --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterSecurityProfileImageCleaner.Serialization.cs @@ -0,0 +1,61 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ContainerService.Models +{ + public partial class ManagedClusterSecurityProfileImageCleaner : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(IsEnabled)) + { + writer.WritePropertyName("enabled"u8); + writer.WriteBooleanValue(IsEnabled.Value); + } + if (Optional.IsDefined(IntervalHours)) + { + writer.WritePropertyName("intervalHours"u8); + writer.WriteNumberValue(IntervalHours.Value); + } + writer.WriteEndObject(); + } + + internal static ManagedClusterSecurityProfileImageCleaner DeserializeManagedClusterSecurityProfileImageCleaner(JsonElement element) + { + Optional enabled = default; + Optional intervalHours = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("enabled"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + enabled = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("intervalHours"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + intervalHours = property.Value.GetInt32(); + continue; + } + } + return new ManagedClusterSecurityProfileImageCleaner(Optional.ToNullable(enabled), Optional.ToNullable(intervalHours)); + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterSecurityProfileImageCleaner.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterSecurityProfileImageCleaner.cs new file mode 100644 index 0000000000000..c7bbb3e9e87b7 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterSecurityProfileImageCleaner.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// ImageCleaner removes unused images from nodes, freeing up disk space and helping to reduce attack surface area. Here are settings for the security profile. + public partial class ManagedClusterSecurityProfileImageCleaner + { + /// Initializes a new instance of ManagedClusterSecurityProfileImageCleaner. + public ManagedClusterSecurityProfileImageCleaner() + { + } + + /// Initializes a new instance of ManagedClusterSecurityProfileImageCleaner. + /// Whether to enable ImageCleaner on AKS cluster. + /// ImageCleaner scanning interval. + internal ManagedClusterSecurityProfileImageCleaner(bool? isEnabled, int? intervalHours) + { + IsEnabled = isEnabled; + IntervalHours = intervalHours; + } + + /// Whether to enable ImageCleaner on AKS cluster. + public bool? IsEnabled { get; set; } + /// ImageCleaner scanning interval. + public int? IntervalHours { get; set; } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterSecurityProfileNodeRestriction.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterSecurityProfileNodeRestriction.Serialization.cs new file mode 100644 index 0000000000000..02398a22d7ee3 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterSecurityProfileNodeRestriction.Serialization.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ContainerService.Models +{ + internal partial class ManagedClusterSecurityProfileNodeRestriction : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Enabled)) + { + writer.WritePropertyName("enabled"u8); + writer.WriteBooleanValue(Enabled.Value); + } + writer.WriteEndObject(); + } + + internal static ManagedClusterSecurityProfileNodeRestriction DeserializeManagedClusterSecurityProfileNodeRestriction(JsonElement element) + { + Optional enabled = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("enabled"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + enabled = property.Value.GetBoolean(); + continue; + } + } + return new ManagedClusterSecurityProfileNodeRestriction(Optional.ToNullable(enabled)); + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterSecurityProfileNodeRestriction.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterSecurityProfileNodeRestriction.cs new file mode 100644 index 0000000000000..b349da572f9e2 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterSecurityProfileNodeRestriction.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// Node Restriction settings for the security profile. + internal partial class ManagedClusterSecurityProfileNodeRestriction + { + /// Initializes a new instance of ManagedClusterSecurityProfileNodeRestriction. + public ManagedClusterSecurityProfileNodeRestriction() + { + } + + /// Initializes a new instance of ManagedClusterSecurityProfileNodeRestriction. + /// Whether to enable Node Restriction. + internal ManagedClusterSecurityProfileNodeRestriction(bool? enabled) + { + Enabled = enabled; + } + + /// Whether to enable Node Restriction. + public bool? Enabled { get; set; } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterSecurityProfileWorkloadIdentity.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterSecurityProfileWorkloadIdentity.Serialization.cs new file mode 100644 index 0000000000000..654115e921f8f --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterSecurityProfileWorkloadIdentity.Serialization.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ContainerService.Models +{ + internal partial class ManagedClusterSecurityProfileWorkloadIdentity : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Enabled)) + { + writer.WritePropertyName("enabled"u8); + writer.WriteBooleanValue(Enabled.Value); + } + writer.WriteEndObject(); + } + + internal static ManagedClusterSecurityProfileWorkloadIdentity DeserializeManagedClusterSecurityProfileWorkloadIdentity(JsonElement element) + { + Optional enabled = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("enabled"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + enabled = property.Value.GetBoolean(); + continue; + } + } + return new ManagedClusterSecurityProfileWorkloadIdentity(Optional.ToNullable(enabled)); + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterSecurityProfileWorkloadIdentity.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterSecurityProfileWorkloadIdentity.cs new file mode 100644 index 0000000000000..a27aecc4ec512 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterSecurityProfileWorkloadIdentity.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// Workload Identity settings for the security profile. + internal partial class ManagedClusterSecurityProfileWorkloadIdentity + { + /// Initializes a new instance of ManagedClusterSecurityProfileWorkloadIdentity. + public ManagedClusterSecurityProfileWorkloadIdentity() + { + } + + /// Initializes a new instance of ManagedClusterSecurityProfileWorkloadIdentity. + /// Whether to enable Workload Identity. + internal ManagedClusterSecurityProfileWorkloadIdentity(bool? enabled) + { + Enabled = enabled; + } + + /// Whether to enable Workload Identity. + public bool? Enabled { get; set; } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterSnapshotData.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterSnapshotData.Serialization.cs new file mode 100644 index 0000000000000..1307e5295e032 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterSnapshotData.Serialization.cs @@ -0,0 +1,154 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.ContainerService.Models; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.ContainerService +{ + public partial class ManagedClusterSnapshotData : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(Tags)) + { + writer.WritePropertyName("tags"u8); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + writer.WritePropertyName("location"u8); + writer.WriteStringValue(Location); + writer.WritePropertyName("properties"u8); + writer.WriteStartObject(); + if (Optional.IsDefined(CreationData)) + { + writer.WritePropertyName("creationData"u8); + writer.WriteObjectValue(CreationData); + } + if (Optional.IsDefined(SnapshotType)) + { + writer.WritePropertyName("snapshotType"u8); + writer.WriteStringValue(SnapshotType.Value.ToString()); + } + writer.WriteEndObject(); + writer.WriteEndObject(); + } + + internal static ManagedClusterSnapshotData DeserializeManagedClusterSnapshotData(JsonElement element) + { + Optional> tags = default; + AzureLocation location = default; + ResourceIdentifier id = default; + string name = default; + ResourceType type = default; + Optional systemData = default; + Optional creationData = default; + Optional snapshotType = default; + Optional managedClusterPropertiesReadOnly = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("tags"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + tags = dictionary; + continue; + } + if (property.NameEquals("location"u8)) + { + location = new AzureLocation(property.Value.GetString()); + continue; + } + if (property.NameEquals("id"u8)) + { + id = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + type = new ResourceType(property.Value.GetString()); + continue; + } + if (property.NameEquals("systemData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("creationData"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + creationData = ContainerServiceCreationData.DeserializeContainerServiceCreationData(property0.Value); + continue; + } + if (property0.NameEquals("snapshotType"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + snapshotType = new SnapshotType(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("managedClusterPropertiesReadOnly"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + managedClusterPropertiesReadOnly = ManagedClusterPropertiesForSnapshot.DeserializeManagedClusterPropertiesForSnapshot(property0.Value); + continue; + } + } + continue; + } + } + return new ManagedClusterSnapshotData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, creationData.Value, Optional.ToNullable(snapshotType), managedClusterPropertiesReadOnly.Value); + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterSnapshotListResult.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterSnapshotListResult.Serialization.cs new file mode 100644 index 0000000000000..0377a5c03abbd --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterSnapshotListResult.Serialization.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.ContainerService; + +namespace Azure.ResourceManager.ContainerService.Models +{ + internal partial class ManagedClusterSnapshotListResult + { + internal static ManagedClusterSnapshotListResult DeserializeManagedClusterSnapshotListResult(JsonElement element) + { + Optional> value = default; + Optional nextLink = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(ManagedClusterSnapshotData.DeserializeManagedClusterSnapshotData(item)); + } + value = array; + continue; + } + if (property.NameEquals("nextLink"u8)) + { + nextLink = property.Value.GetString(); + continue; + } + } + return new ManagedClusterSnapshotListResult(Optional.ToList(value), nextLink.Value); + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterSnapshotListResult.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterSnapshotListResult.cs new file mode 100644 index 0000000000000..2ab7e806d1abe --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterSnapshotListResult.cs @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.ContainerService; + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// The response from the List Managed Cluster Snapshots operation. + internal partial class ManagedClusterSnapshotListResult + { + /// Initializes a new instance of ManagedClusterSnapshotListResult. + internal ManagedClusterSnapshotListResult() + { + Value = new ChangeTrackingList(); + } + + /// Initializes a new instance of ManagedClusterSnapshotListResult. + /// The list of managed cluster snapshots. + /// The URL to get the next set of managed cluster snapshot results. + internal ManagedClusterSnapshotListResult(IReadOnlyList value, string nextLink) + { + Value = value; + NextLink = nextLink; + } + + /// The list of managed cluster snapshots. + public IReadOnlyList Value { get; } + /// The URL to get the next set of managed cluster snapshot results. + public string NextLink { get; } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterStorageProfile.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterStorageProfile.cs index 03e33e0017ca4..5baf256c8067e 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterStorageProfile.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterStorageProfile.cs @@ -29,8 +29,7 @@ internal ManagedClusterStorageProfile(ManagedClusterStorageProfileDiskCsiDriver } /// AzureDisk CSI Driver settings for the storage profile. - internal ManagedClusterStorageProfileDiskCsiDriver DiskCsiDriver { get; set; } - + public ManagedClusterStorageProfileDiskCsiDriver DiskCsiDriver { get; set; } /// AzureFile CSI Driver settings for the storage profile. internal ManagedClusterStorageProfileFileCsiDriver FileCsiDriver { get; set; } diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterStorageProfileDiskCsiDriver.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterStorageProfileDiskCsiDriver.Serialization.cs index 980965b8aa029..5d3e452fa6c63 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterStorageProfileDiskCsiDriver.Serialization.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterStorageProfileDiskCsiDriver.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.ContainerService.Models { - internal partial class ManagedClusterStorageProfileDiskCsiDriver : IUtf8JsonSerializable + public partial class ManagedClusterStorageProfileDiskCsiDriver : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -20,12 +20,18 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("enabled"u8); writer.WriteBooleanValue(IsEnabled.Value); } + if (Optional.IsDefined(Version)) + { + writer.WritePropertyName("version"u8); + writer.WriteStringValue(Version); + } writer.WriteEndObject(); } internal static ManagedClusterStorageProfileDiskCsiDriver DeserializeManagedClusterStorageProfileDiskCsiDriver(JsonElement element) { Optional enabled = default; + Optional version = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("enabled"u8)) @@ -38,8 +44,13 @@ internal static ManagedClusterStorageProfileDiskCsiDriver DeserializeManagedClus enabled = property.Value.GetBoolean(); continue; } + if (property.NameEquals("version"u8)) + { + version = property.Value.GetString(); + continue; + } } - return new ManagedClusterStorageProfileDiskCsiDriver(Optional.ToNullable(enabled)); + return new ManagedClusterStorageProfileDiskCsiDriver(Optional.ToNullable(enabled), version.Value); } } } diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterStorageProfileDiskCsiDriver.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterStorageProfileDiskCsiDriver.cs index b220874e007b5..60362538dd7e6 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterStorageProfileDiskCsiDriver.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterStorageProfileDiskCsiDriver.cs @@ -8,7 +8,7 @@ namespace Azure.ResourceManager.ContainerService.Models { /// AzureDisk CSI Driver settings for the storage profile. - internal partial class ManagedClusterStorageProfileDiskCsiDriver + public partial class ManagedClusterStorageProfileDiskCsiDriver { /// Initializes a new instance of ManagedClusterStorageProfileDiskCsiDriver. public ManagedClusterStorageProfileDiskCsiDriver() @@ -17,12 +17,16 @@ public ManagedClusterStorageProfileDiskCsiDriver() /// Initializes a new instance of ManagedClusterStorageProfileDiskCsiDriver. /// Whether to enable AzureDisk CSI Driver. The default value is true. - internal ManagedClusterStorageProfileDiskCsiDriver(bool? isEnabled) + /// The version of AzureDisk CSI Driver. The default value is v1. + internal ManagedClusterStorageProfileDiskCsiDriver(bool? isEnabled, string version) { IsEnabled = isEnabled; + Version = version; } /// Whether to enable AzureDisk CSI Driver. The default value is true. public bool? IsEnabled { get; set; } + /// The version of AzureDisk CSI Driver. The default value is v1. + public string Version { get; set; } } } diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterVerticalPodAutoscaler.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterVerticalPodAutoscaler.Serialization.cs new file mode 100644 index 0000000000000..bb0b0b2fc60a7 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterVerticalPodAutoscaler.Serialization.cs @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ContainerService.Models +{ + public partial class ManagedClusterVerticalPodAutoscaler : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("enabled"u8); + writer.WriteBooleanValue(IsEnabled); + writer.WritePropertyName("controlledValues"u8); + writer.WriteStringValue(ControlledValues.ToString()); + writer.WritePropertyName("updateMode"u8); + writer.WriteStringValue(UpdateMode.ToString()); + writer.WriteEndObject(); + } + + internal static ManagedClusterVerticalPodAutoscaler DeserializeManagedClusterVerticalPodAutoscaler(JsonElement element) + { + bool enabled = default; + ManagedClusterWorkloadAutoScalerControlledValue controlledValues = default; + ManagedClusterVerticalPodAutoscalerUpdateMode updateMode = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("enabled"u8)) + { + enabled = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("controlledValues"u8)) + { + controlledValues = new ManagedClusterWorkloadAutoScalerControlledValue(property.Value.GetString()); + continue; + } + if (property.NameEquals("updateMode"u8)) + { + updateMode = new ManagedClusterVerticalPodAutoscalerUpdateMode(property.Value.GetString()); + continue; + } + } + return new ManagedClusterVerticalPodAutoscaler(enabled, controlledValues, updateMode); + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterVerticalPodAutoscaler.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterVerticalPodAutoscaler.cs new file mode 100644 index 0000000000000..d6828722ea160 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterVerticalPodAutoscaler.cs @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// The ManagedClusterVerticalPodAutoscaler. + public partial class ManagedClusterVerticalPodAutoscaler + { + /// Initializes a new instance of ManagedClusterVerticalPodAutoscaler. + /// Whether to enable VPA. Default value is false. + /// Controls which resource value autoscaler will change. Default value is RequestsAndLimits. + /// Each update mode level is a superset of the lower levels. Off<Initial<Recreate<=Auto. For example: if UpdateMode is Initial, it means VPA sets the recommended resources in the VerticalPodAutoscaler Custom Resource (from UpdateMode Off) and also assigns resources on pod creation (from Initial). The default value is Off. + public ManagedClusterVerticalPodAutoscaler(bool isEnabled, ManagedClusterWorkloadAutoScalerControlledValue controlledValues, ManagedClusterVerticalPodAutoscalerUpdateMode updateMode) + { + IsEnabled = isEnabled; + ControlledValues = controlledValues; + UpdateMode = updateMode; + } + + /// Whether to enable VPA. Default value is false. + public bool IsEnabled { get; set; } + /// Controls which resource value autoscaler will change. Default value is RequestsAndLimits. + public ManagedClusterWorkloadAutoScalerControlledValue ControlledValues { get; set; } + /// Each update mode level is a superset of the lower levels. Off<Initial<Recreate<=Auto. For example: if UpdateMode is Initial, it means VPA sets the recommended resources in the VerticalPodAutoscaler Custom Resource (from UpdateMode Off) and also assigns resources on pod creation (from Initial). The default value is Off. + public ManagedClusterVerticalPodAutoscalerUpdateMode UpdateMode { get; set; } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterVerticalPodAutoscalerUpdateMode.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterVerticalPodAutoscalerUpdateMode.cs new file mode 100644 index 0000000000000..f940de097e0a4 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterVerticalPodAutoscalerUpdateMode.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// Each update mode level is a superset of the lower levels. Off<Initial<Recreate<=Auto. For example: if UpdateMode is Initial, it means VPA sets the recommended resources in the VerticalPodAutoscaler Custom Resource (from UpdateMode Off) and also assigns resources on pod creation (from Initial). The default value is Off. + public readonly partial struct ManagedClusterVerticalPodAutoscalerUpdateMode : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ManagedClusterVerticalPodAutoscalerUpdateMode(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string OffValue = "Off"; + private const string InitialValue = "Initial"; + private const string RecreateValue = "Recreate"; + private const string AutoValue = "Auto"; + + /// Autoscaler never changes pod resources but provides recommendations. + public static ManagedClusterVerticalPodAutoscalerUpdateMode Off { get; } = new ManagedClusterVerticalPodAutoscalerUpdateMode(OffValue); + /// Autoscaler only assigns resources on pod creation and doesn't change them during the lifetime of the pod. + public static ManagedClusterVerticalPodAutoscalerUpdateMode Initial { get; } = new ManagedClusterVerticalPodAutoscalerUpdateMode(InitialValue); + /// Autoscaler assigns resources on pod creation and updates pods that need further scaling during their lifetime by deleting and recreating. + public static ManagedClusterVerticalPodAutoscalerUpdateMode Recreate { get; } = new ManagedClusterVerticalPodAutoscalerUpdateMode(RecreateValue); + /// Autoscaler chooses the update mode. Autoscaler currently does the same as Recreate. In the future, it may take advantage of restart-free mechanisms once they are available. + public static ManagedClusterVerticalPodAutoscalerUpdateMode Auto { get; } = new ManagedClusterVerticalPodAutoscalerUpdateMode(AutoValue); + /// Determines if two values are the same. + public static bool operator ==(ManagedClusterVerticalPodAutoscalerUpdateMode left, ManagedClusterVerticalPodAutoscalerUpdateMode right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ManagedClusterVerticalPodAutoscalerUpdateMode left, ManagedClusterVerticalPodAutoscalerUpdateMode right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator ManagedClusterVerticalPodAutoscalerUpdateMode(string value) => new ManagedClusterVerticalPodAutoscalerUpdateMode(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ManagedClusterVerticalPodAutoscalerUpdateMode other && Equals(other); + /// + public bool Equals(ManagedClusterVerticalPodAutoscalerUpdateMode other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterWorkloadAutoScalerControlledValue.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterWorkloadAutoScalerControlledValue.cs new file mode 100644 index 0000000000000..f0521cb0be13a --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterWorkloadAutoScalerControlledValue.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// Controls which resource value autoscaler will change. Default value is RequestsAndLimits. + public readonly partial struct ManagedClusterWorkloadAutoScalerControlledValue : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ManagedClusterWorkloadAutoScalerControlledValue(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string RequestsAndLimitsValue = "RequestsAndLimits"; + private const string RequestsOnlyValue = "RequestsOnly"; + + /// Autoscaler will control resource requests and limits. + public static ManagedClusterWorkloadAutoScalerControlledValue RequestsAndLimits { get; } = new ManagedClusterWorkloadAutoScalerControlledValue(RequestsAndLimitsValue); + /// Autoscaler will control resource requests only. + public static ManagedClusterWorkloadAutoScalerControlledValue RequestsOnly { get; } = new ManagedClusterWorkloadAutoScalerControlledValue(RequestsOnlyValue); + /// Determines if two values are the same. + public static bool operator ==(ManagedClusterWorkloadAutoScalerControlledValue left, ManagedClusterWorkloadAutoScalerControlledValue right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ManagedClusterWorkloadAutoScalerControlledValue left, ManagedClusterWorkloadAutoScalerControlledValue right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator ManagedClusterWorkloadAutoScalerControlledValue(string value) => new ManagedClusterWorkloadAutoScalerControlledValue(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ManagedClusterWorkloadAutoScalerControlledValue other && Equals(other); + /// + public bool Equals(ManagedClusterWorkloadAutoScalerControlledValue other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterWorkloadAutoScalerProfile.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterWorkloadAutoScalerProfile.Serialization.cs new file mode 100644 index 0000000000000..d7b67c0573e1c --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterWorkloadAutoScalerProfile.Serialization.cs @@ -0,0 +1,61 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ContainerService.Models +{ + public partial class ManagedClusterWorkloadAutoScalerProfile : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Keda)) + { + writer.WritePropertyName("keda"u8); + writer.WriteObjectValue(Keda); + } + if (Optional.IsDefined(VerticalPodAutoscaler)) + { + writer.WritePropertyName("verticalPodAutoscaler"u8); + writer.WriteObjectValue(VerticalPodAutoscaler); + } + writer.WriteEndObject(); + } + + internal static ManagedClusterWorkloadAutoScalerProfile DeserializeManagedClusterWorkloadAutoScalerProfile(JsonElement element) + { + Optional keda = default; + Optional verticalPodAutoscaler = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("keda"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + keda = ManagedClusterWorkloadAutoScalerProfileKeda.DeserializeManagedClusterWorkloadAutoScalerProfileKeda(property.Value); + continue; + } + if (property.NameEquals("verticalPodAutoscaler"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + verticalPodAutoscaler = ManagedClusterVerticalPodAutoscaler.DeserializeManagedClusterVerticalPodAutoscaler(property.Value); + continue; + } + } + return new ManagedClusterWorkloadAutoScalerProfile(keda.Value, verticalPodAutoscaler.Value); + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterWorkloadAutoScalerProfile.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterWorkloadAutoScalerProfile.cs new file mode 100644 index 0000000000000..97a7dbf89e4f5 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterWorkloadAutoScalerProfile.cs @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// Workload Auto-scaler profile for the managed cluster. + public partial class ManagedClusterWorkloadAutoScalerProfile + { + /// Initializes a new instance of ManagedClusterWorkloadAutoScalerProfile. + public ManagedClusterWorkloadAutoScalerProfile() + { + } + + /// Initializes a new instance of ManagedClusterWorkloadAutoScalerProfile. + /// KEDA (Kubernetes Event-driven Autoscaling) settings for the workload auto-scaler profile. + /// + internal ManagedClusterWorkloadAutoScalerProfile(ManagedClusterWorkloadAutoScalerProfileKeda keda, ManagedClusterVerticalPodAutoscaler verticalPodAutoscaler) + { + Keda = keda; + VerticalPodAutoscaler = verticalPodAutoscaler; + } + + /// KEDA (Kubernetes Event-driven Autoscaling) settings for the workload auto-scaler profile. + internal ManagedClusterWorkloadAutoScalerProfileKeda Keda { get; set; } + + /// Gets or sets the vertical pod autoscaler. + public ManagedClusterVerticalPodAutoscaler VerticalPodAutoscaler { get; set; } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterWorkloadAutoScalerProfileKeda.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterWorkloadAutoScalerProfileKeda.Serialization.cs new file mode 100644 index 0000000000000..70555836ea26e --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterWorkloadAutoScalerProfileKeda.Serialization.cs @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ContainerService.Models +{ + internal partial class ManagedClusterWorkloadAutoScalerProfileKeda : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("enabled"u8); + writer.WriteBooleanValue(Enabled); + writer.WriteEndObject(); + } + + internal static ManagedClusterWorkloadAutoScalerProfileKeda DeserializeManagedClusterWorkloadAutoScalerProfileKeda(JsonElement element) + { + bool enabled = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("enabled"u8)) + { + enabled = property.Value.GetBoolean(); + continue; + } + } + return new ManagedClusterWorkloadAutoScalerProfileKeda(enabled); + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterWorkloadAutoScalerProfileKeda.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterWorkloadAutoScalerProfileKeda.cs new file mode 100644 index 0000000000000..6f1d543dec449 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/ManagedClusterWorkloadAutoScalerProfileKeda.cs @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// KEDA (Kubernetes Event-driven Autoscaling) settings for the workload auto-scaler profile. + internal partial class ManagedClusterWorkloadAutoScalerProfileKeda + { + /// Initializes a new instance of ManagedClusterWorkloadAutoScalerProfileKeda. + /// Whether to enable KEDA. + public ManagedClusterWorkloadAutoScalerProfileKeda(bool enabled) + { + Enabled = enabled; + } + + /// Whether to enable KEDA. + public bool Enabled { get; set; } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/SnapshotType.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/SnapshotType.cs index 84b6a9a273951..0763dd44c9b17 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/SnapshotType.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/SnapshotType.cs @@ -23,9 +23,12 @@ public SnapshotType(string value) } private const string NodePoolValue = "NodePool"; + private const string ManagedClusterValue = "ManagedCluster"; /// The snapshot is a snapshot of a node pool. public static SnapshotType NodePool { get; } = new SnapshotType(NodePoolValue); + /// The snapshot is a snapshot of a managed cluster. + public static SnapshotType ManagedCluster { get; } = new SnapshotType(ManagedClusterValue); /// Determines if two values are the same. public static bool operator ==(SnapshotType left, SnapshotType right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/TrustedAccessRoleBindingListResult.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/TrustedAccessRoleBindingListResult.Serialization.cs new file mode 100644 index 0000000000000..c0a02d1d326c0 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/TrustedAccessRoleBindingListResult.Serialization.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.ContainerService; + +namespace Azure.ResourceManager.ContainerService.Models +{ + internal partial class TrustedAccessRoleBindingListResult + { + internal static TrustedAccessRoleBindingListResult DeserializeTrustedAccessRoleBindingListResult(JsonElement element) + { + Optional> value = default; + Optional nextLink = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(ContainerServiceTrustedAccessRoleBindingData.DeserializeContainerServiceTrustedAccessRoleBindingData(item)); + } + value = array; + continue; + } + if (property.NameEquals("nextLink"u8)) + { + nextLink = property.Value.GetString(); + continue; + } + } + return new TrustedAccessRoleBindingListResult(Optional.ToList(value), nextLink.Value); + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/TrustedAccessRoleBindingListResult.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/TrustedAccessRoleBindingListResult.cs new file mode 100644 index 0000000000000..9faf042014df8 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/TrustedAccessRoleBindingListResult.cs @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.ContainerService; + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// List of trusted access role bindings. + internal partial class TrustedAccessRoleBindingListResult + { + /// Initializes a new instance of TrustedAccessRoleBindingListResult. + internal TrustedAccessRoleBindingListResult() + { + Value = new ChangeTrackingList(); + } + + /// Initializes a new instance of TrustedAccessRoleBindingListResult. + /// Role binding list. + /// Link to next page of resources. + internal TrustedAccessRoleBindingListResult(IReadOnlyList value, string nextLink) + { + Value = value; + NextLink = nextLink; + } + + /// Role binding list. + public IReadOnlyList Value { get; } + /// Link to next page of resources. + public string NextLink { get; } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/TrustedAccessRoleListResult.Serialization.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/TrustedAccessRoleListResult.Serialization.cs new file mode 100644 index 0000000000000..c68ef21726eca --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/TrustedAccessRoleListResult.Serialization.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ContainerService.Models +{ + internal partial class TrustedAccessRoleListResult + { + internal static TrustedAccessRoleListResult DeserializeTrustedAccessRoleListResult(JsonElement element) + { + Optional> value = default; + Optional nextLink = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(ContainerServiceTrustedAccessRole.DeserializeContainerServiceTrustedAccessRole(item)); + } + value = array; + continue; + } + if (property.NameEquals("nextLink"u8)) + { + nextLink = property.Value.GetString(); + continue; + } + } + return new TrustedAccessRoleListResult(Optional.ToList(value), nextLink.Value); + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/TrustedAccessRoleListResult.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/TrustedAccessRoleListResult.cs new file mode 100644 index 0000000000000..8b16dfcf78d59 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/TrustedAccessRoleListResult.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.ContainerService.Models +{ + /// List of trusted access roles. + internal partial class TrustedAccessRoleListResult + { + /// Initializes a new instance of TrustedAccessRoleListResult. + internal TrustedAccessRoleListResult() + { + Value = new ChangeTrackingList(); + } + + /// Initializes a new instance of TrustedAccessRoleListResult. + /// Role list. + /// Link to next page of resources. + internal TrustedAccessRoleListResult(IReadOnlyList value, string nextLink) + { + Value = value; + NextLink = nextLink; + } + + /// Role list. + public IReadOnlyList Value { get; } + /// Link to next page of resources. + public string NextLink { get; } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/UpgradeChannel.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/UpgradeChannel.cs index e5f6a90fd4b97..05c1acfd44e40 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/UpgradeChannel.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/UpgradeChannel.cs @@ -34,7 +34,7 @@ public UpgradeChannel(string value) public static UpgradeChannel Stable { get; } = new UpgradeChannel(StableValue); /// Automatically upgrade the cluster to the latest supported patch version when it becomes available while keeping the minor version the same. For example, if a cluster is running version 1.17.7 and versions 1.17.9, 1.18.4, 1.18.6, and 1.19.1 are available, your cluster is upgraded to 1.17.9. public static UpgradeChannel Patch { get; } = new UpgradeChannel(PatchValue); - /// Automatically upgrade the node image to the latest version available. Microsoft provides patches and new images for image nodes frequently (usually weekly), but your running nodes won't get the new images unless you do a node image upgrade. Turning on the node-image channel will automatically update your node images whenever a new version is available. + /// Automatically upgrade the node image to the latest version available. Consider using nodeOSUpgradeChannel instead as that allows you to configure node OS patching separate from Kubernetes version patching. public static UpgradeChannel NodeImage { get; } = new UpgradeChannel(NodeImageValue); /// Disables auto-upgrades and keeps the cluster at its current version of Kubernetes. public static UpgradeChannel None { get; } = new UpgradeChannel(NoneValue); diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/WorkloadRuntime.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/WorkloadRuntime.cs index ebadd6cd4e20d..b607c83378059 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/WorkloadRuntime.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/Models/WorkloadRuntime.cs @@ -24,11 +24,14 @@ public WorkloadRuntime(string value) private const string OciContainerValue = "OCIContainer"; private const string WasmWasiValue = "WasmWasi"; + private const string KataMshvVmIsolationValue = "KataMshvVmIsolation"; /// Nodes will use Kubelet to run standard OCI container workloads. public static WorkloadRuntime OciContainer { get; } = new WorkloadRuntime(OciContainerValue); /// Nodes will use Krustlet to run WASM workloads using the WASI provider (Preview). public static WorkloadRuntime WasmWasi { get; } = new WorkloadRuntime(WasmWasiValue); + /// Nodes can use (Kata + Cloud Hypervisor + Hyper-V) to enable Nested VM-based pods (Preview). Due to the use Hyper-V, AKS node OS itself is a nested VM (the root OS) of Hyper-V. Thus it can only be used with VM series that support Nested Virtualization such as Dv3 series. + public static WorkloadRuntime KataMshvVmIsolation { get; } = new WorkloadRuntime(KataMshvVmIsolationValue); /// Determines if two values are the same. public static bool operator ==(WorkloadRuntime left, WorkloadRuntime right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/AgentPoolsRestOperations.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/AgentPoolsRestOperations.cs index 5a617b4fe50d8..71ed04c3996d9 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/AgentPoolsRestOperations.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/AgentPoolsRestOperations.cs @@ -33,10 +33,87 @@ public AgentPoolsRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-02-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } + internal HttpMessage CreateAbortLatestOperationRequest(string subscriptionId, string resourceGroupName, string resourceName, string agentPoolName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerService/managedclusters/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/agentPools/", false); + uri.AppendPath(agentPoolName, true); + uri.AppendPath("/abort", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, an error is returned. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the managed cluster resource. + /// The name of the agent pool. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task AbortLatestOperationAsync(string subscriptionId, string resourceGroupName, string resourceName, string agentPoolName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); + Argument.AssertNotNullOrEmpty(agentPoolName, nameof(agentPoolName)); + + using var message = CreateAbortLatestOperationRequest(subscriptionId, resourceGroupName, resourceName, agentPoolName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, an error is returned. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the managed cluster resource. + /// The name of the agent pool. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response AbortLatestOperation(string subscriptionId, string resourceGroupName, string resourceName, string agentPoolName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); + Argument.AssertNotNullOrEmpty(agentPoolName, nameof(agentPoolName)); + + using var message = CreateAbortLatestOperationRequest(subscriptionId, resourceGroupName, resourceName, agentPoolName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); @@ -288,7 +365,7 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } - internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourceName, string agentPoolName) + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourceName, string agentPoolName, bool? ignorePodDisruptionBudget) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -304,6 +381,10 @@ internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceG uri.AppendPath("/agentPools/", false); uri.AppendPath(agentPoolName, true); uri.AppendQuery("api-version", _apiVersion, true); + if (ignorePodDisruptionBudget != null) + { + uri.AppendQuery("ignore-pod-disruption-budget", ignorePodDisruptionBudget.Value, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -315,17 +396,18 @@ internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceG /// The name of the resource group. The name is case insensitive. /// The name of the managed cluster resource. /// The name of the agent pool. + /// ignore-pod-disruption-budget=true to delete those pods on a node without considering Pod Disruption Budget. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string resourceName, string agentPoolName, CancellationToken cancellationToken = default) + public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string resourceName, string agentPoolName, bool? ignorePodDisruptionBudget = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); Argument.AssertNotNullOrEmpty(agentPoolName, nameof(agentPoolName)); - using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, resourceName, agentPoolName); + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, resourceName, agentPoolName, ignorePodDisruptionBudget); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -342,17 +424,18 @@ public async Task DeleteAsync(string subscriptionId, string resourceGr /// The name of the resource group. The name is case insensitive. /// The name of the managed cluster resource. /// The name of the agent pool. + /// ignore-pod-disruption-budget=true to delete those pods on a node without considering Pod Disruption Budget. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response Delete(string subscriptionId, string resourceGroupName, string resourceName, string agentPoolName, CancellationToken cancellationToken = default) + public Response Delete(string subscriptionId, string resourceGroupName, string resourceName, string agentPoolName, bool? ignorePodDisruptionBudget = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); Argument.AssertNotNullOrEmpty(agentPoolName, nameof(agentPoolName)); - using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, resourceName, agentPoolName); + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, resourceName, agentPoolName, ignorePodDisruptionBudget); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/FleetMembersRestOperations.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/FleetMembersRestOperations.cs new file mode 100644 index 0000000000000..81b6cbdc700eb --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/FleetMembersRestOperations.cs @@ -0,0 +1,463 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.ContainerService.Models; + +namespace Azure.ResourceManager.ContainerService +{ + internal partial class FleetMembersRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of FleetMembersRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public FleetMembersRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2022-09-02-preview"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal HttpMessage CreateListByFleetRequest(string subscriptionId, string resourceGroupName, string fleetName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerService/fleets/", false); + uri.AppendPath(fleetName, true); + uri.AppendPath("/members", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Lists the members of a fleet. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the Fleet resource. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListByFleetAsync(string subscriptionId, string resourceGroupName, string fleetName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(fleetName, nameof(fleetName)); + + using var message = CreateListByFleetRequest(subscriptionId, resourceGroupName, fleetName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + FleetMembersListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = FleetMembersListResult.DeserializeFleetMembersListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Lists the members of a fleet. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the Fleet resource. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response ListByFleet(string subscriptionId, string resourceGroupName, string fleetName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(fleetName, nameof(fleetName)); + + using var message = CreateListByFleetRequest(subscriptionId, resourceGroupName, fleetName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + FleetMembersListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = FleetMembersListResult.DeserializeFleetMembersListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string fleetName, string fleetMemberName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerService/fleets/", false); + uri.AppendPath(fleetName, true); + uri.AppendPath("/members/", false); + uri.AppendPath(fleetMemberName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Gets a Fleet member. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the Fleet resource. + /// The name of the Fleet member resource. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string fleetName, string fleetMemberName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(fleetName, nameof(fleetName)); + Argument.AssertNotNullOrEmpty(fleetMemberName, nameof(fleetMemberName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, fleetName, fleetMemberName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ContainerServiceFleetMemberData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = ContainerServiceFleetMemberData.DeserializeContainerServiceFleetMemberData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((ContainerServiceFleetMemberData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Gets a Fleet member. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the Fleet resource. + /// The name of the Fleet member resource. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Get(string subscriptionId, string resourceGroupName, string fleetName, string fleetMemberName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(fleetName, nameof(fleetName)); + Argument.AssertNotNullOrEmpty(fleetMemberName, nameof(fleetMemberName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, fleetName, fleetMemberName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ContainerServiceFleetMemberData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = ContainerServiceFleetMemberData.DeserializeContainerServiceFleetMemberData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((ContainerServiceFleetMemberData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string fleetName, string fleetMemberName, ContainerServiceFleetMemberData data, string ifMatch, string ifNoneMatch) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerService/fleets/", false); + uri.AppendPath(fleetName, true); + uri.AppendPath("/members/", false); + uri.AppendPath(fleetMemberName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + if (ifMatch != null) + { + request.Headers.Add("If-Match", ifMatch); + } + if (ifNoneMatch != null) + { + request.Headers.Add("If-None-Match", ifNoneMatch); + } + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(data); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// A member contains a reference to an existing Kubernetes cluster. Creating a member makes the referenced cluster join the Fleet. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the Fleet resource. + /// The name of the Fleet member resource. + /// The Fleet member to create or update. + /// Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. + /// Set to '*' to allow a new resource to be created and prevent updating an existing resource. Other values will result in a 412 Pre-condition Failed response. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string fleetName, string fleetMemberName, ContainerServiceFleetMemberData data, string ifMatch = null, string ifNoneMatch = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(fleetName, nameof(fleetName)); + Argument.AssertNotNullOrEmpty(fleetMemberName, nameof(fleetMemberName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, fleetName, fleetMemberName, data, ifMatch, ifNoneMatch); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 201: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// A member contains a reference to an existing Kubernetes cluster. Creating a member makes the referenced cluster join the Fleet. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the Fleet resource. + /// The name of the Fleet member resource. + /// The Fleet member to create or update. + /// Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. + /// Set to '*' to allow a new resource to be created and prevent updating an existing resource. Other values will result in a 412 Pre-condition Failed response. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string fleetName, string fleetMemberName, ContainerServiceFleetMemberData data, string ifMatch = null, string ifNoneMatch = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(fleetName, nameof(fleetName)); + Argument.AssertNotNullOrEmpty(fleetMemberName, nameof(fleetMemberName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, fleetName, fleetMemberName, data, ifMatch, ifNoneMatch); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 201: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string fleetName, string fleetMemberName, string ifMatch) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerService/fleets/", false); + uri.AppendPath(fleetName, true); + uri.AppendPath("/members/", false); + uri.AppendPath(fleetMemberName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + if (ifMatch != null) + { + request.Headers.Add("If-Match", ifMatch); + } + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Deleting a Fleet member results in the member cluster leaving fleet. The Member azure resource is deleted upon success. The underlying cluster is not deleted. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the Fleet resource. + /// The name of the Fleet member resource. + /// Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string fleetName, string fleetMemberName, string ifMatch = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(fleetName, nameof(fleetName)); + Argument.AssertNotNullOrEmpty(fleetMemberName, nameof(fleetMemberName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, fleetName, fleetMemberName, ifMatch); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Deleting a Fleet member results in the member cluster leaving fleet. The Member azure resource is deleted upon success. The underlying cluster is not deleted. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the Fleet resource. + /// The name of the Fleet member resource. + /// Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Delete(string subscriptionId, string resourceGroupName, string fleetName, string fleetMemberName, string ifMatch = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(fleetName, nameof(fleetName)); + Argument.AssertNotNullOrEmpty(fleetMemberName, nameof(fleetMemberName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, fleetName, fleetMemberName, ifMatch); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListByFleetNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string fleetName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Lists the members of a fleet. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the Fleet resource. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListByFleetNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string fleetName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(fleetName, nameof(fleetName)); + + using var message = CreateListByFleetNextPageRequest(nextLink, subscriptionId, resourceGroupName, fleetName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + FleetMembersListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = FleetMembersListResult.DeserializeFleetMembersListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Lists the members of a fleet. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the Fleet resource. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response ListByFleetNextPage(string nextLink, string subscriptionId, string resourceGroupName, string fleetName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(fleetName, nameof(fleetName)); + + using var message = CreateListByFleetNextPageRequest(nextLink, subscriptionId, resourceGroupName, fleetName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + FleetMembersListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = FleetMembersListResult.DeserializeFleetMembersListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/FleetsRestOperations.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/FleetsRestOperations.cs new file mode 100644 index 0000000000000..3768dcaef85b6 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/FleetsRestOperations.cs @@ -0,0 +1,741 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.ContainerService.Models; + +namespace Azure.ResourceManager.ContainerService +{ + internal partial class FleetsRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of FleetsRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public FleetsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2022-09-02-preview"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal HttpMessage CreateListRequest(string subscriptionId) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ContainerService/fleets", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Lists fleets in the specified subscription. + /// The ID of the target subscription. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public async Task> ListAsync(string subscriptionId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + + using var message = CreateListRequest(subscriptionId); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + FleetListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = FleetListResult.DeserializeFleetListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Lists fleets in the specified subscription. + /// The ID of the target subscription. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public Response List(string subscriptionId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + + using var message = CreateListRequest(subscriptionId); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + FleetListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = FleetListResult.DeserializeFleetListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerService/fleets", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Lists fleets in the specified subscription and resource group. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The cancellation token to use. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + public async Task> ListByResourceGroupAsync(string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + + using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + FleetListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = FleetListResult.DeserializeFleetListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Lists fleets in the specified subscription and resource group. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The cancellation token to use. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + public Response ListByResourceGroup(string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + + using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + FleetListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = FleetListResult.DeserializeFleetListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string fleetName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerService/fleets/", false); + uri.AppendPath(fleetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Gets a Fleet. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the Fleet resource. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string fleetName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(fleetName, nameof(fleetName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, fleetName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ContainerServiceFleetData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = ContainerServiceFleetData.DeserializeContainerServiceFleetData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((ContainerServiceFleetData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Gets a Fleet. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the Fleet resource. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response Get(string subscriptionId, string resourceGroupName, string fleetName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(fleetName, nameof(fleetName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, fleetName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ContainerServiceFleetData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = ContainerServiceFleetData.DeserializeContainerServiceFleetData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((ContainerServiceFleetData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string fleetName, ContainerServiceFleetData data, string ifMatch, string ifNoneMatch) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerService/fleets/", false); + uri.AppendPath(fleetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + if (ifMatch != null) + { + request.Headers.Add("If-Match", ifMatch); + } + if (ifNoneMatch != null) + { + request.Headers.Add("If-None-Match", ifNoneMatch); + } + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(data); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Creates or updates a Fleet. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the Fleet resource. + /// The Fleet to create or update. + /// Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. + /// Set to '*' to allow a new resource to be created and prevent updating an existing resource. Other values will result in a 412 Pre-condition Failed response. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string fleetName, ContainerServiceFleetData data, string ifMatch = null, string ifNoneMatch = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(fleetName, nameof(fleetName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, fleetName, data, ifMatch, ifNoneMatch); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 201: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Creates or updates a Fleet. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the Fleet resource. + /// The Fleet to create or update. + /// Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. + /// Set to '*' to allow a new resource to be created and prevent updating an existing resource. Other values will result in a 412 Pre-condition Failed response. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string fleetName, ContainerServiceFleetData data, string ifMatch = null, string ifNoneMatch = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(fleetName, nameof(fleetName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, fleetName, data, ifMatch, ifNoneMatch); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 201: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string fleetName, ContainerServiceFleetPatch patch, string ifMatch) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Patch; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerService/fleets/", false); + uri.AppendPath(fleetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + if (ifMatch != null) + { + request.Headers.Add("If-Match", ifMatch); + } + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(patch); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Patches a fleet resource. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the Fleet resource. + /// The properties of a Fleet to update. + /// Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string fleetName, ContainerServiceFleetPatch patch, string ifMatch = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(fleetName, nameof(fleetName)); + Argument.AssertNotNull(patch, nameof(patch)); + + using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, fleetName, patch, ifMatch); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ContainerServiceFleetData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = ContainerServiceFleetData.DeserializeContainerServiceFleetData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Patches a fleet resource. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the Fleet resource. + /// The properties of a Fleet to update. + /// Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response Update(string subscriptionId, string resourceGroupName, string fleetName, ContainerServiceFleetPatch patch, string ifMatch = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(fleetName, nameof(fleetName)); + Argument.AssertNotNull(patch, nameof(patch)); + + using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, fleetName, patch, ifMatch); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ContainerServiceFleetData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = ContainerServiceFleetData.DeserializeContainerServiceFleetData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string fleetName, string ifMatch) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerService/fleets/", false); + uri.AppendPath(fleetName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + if (ifMatch != null) + { + request.Headers.Add("If-Match", ifMatch); + } + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Deletes a Fleet. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the Fleet resource. + /// Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string fleetName, string ifMatch = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(fleetName, nameof(fleetName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, fleetName, ifMatch); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Deletes a Fleet. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the Fleet resource. + /// Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response Delete(string subscriptionId, string resourceGroupName, string fleetName, string ifMatch = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(fleetName, nameof(fleetName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, fleetName, ifMatch); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListCredentialsRequest(string subscriptionId, string resourceGroupName, string fleetName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerService/fleets/", false); + uri.AppendPath(fleetName, true); + uri.AppendPath("/listCredentials", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Lists the user credentials of a Fleet. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the Fleet resource. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListCredentialsAsync(string subscriptionId, string resourceGroupName, string fleetName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(fleetName, nameof(fleetName)); + + using var message = CreateListCredentialsRequest(subscriptionId, resourceGroupName, fleetName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ContainerServiceFleetCredentialResults value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = ContainerServiceFleetCredentialResults.DeserializeContainerServiceFleetCredentialResults(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Lists the user credentials of a Fleet. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the Fleet resource. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response ListCredentials(string subscriptionId, string resourceGroupName, string fleetName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(fleetName, nameof(fleetName)); + + using var message = CreateListCredentialsRequest(subscriptionId, resourceGroupName, fleetName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ContainerServiceFleetCredentialResults value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = ContainerServiceFleetCredentialResults.DeserializeContainerServiceFleetCredentialResults(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Lists fleets in the specified subscription. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The cancellation token to use. + /// or is null. + /// is an empty string, and was expected to be non-empty. + public async Task> ListNextPageAsync(string nextLink, string subscriptionId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + FleetListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = FleetListResult.DeserializeFleetListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Lists fleets in the specified subscription. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The cancellation token to use. + /// or is null. + /// is an empty string, and was expected to be non-empty. + public Response ListNextPage(string nextLink, string subscriptionId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + FleetListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = FleetListResult.DeserializeFleetListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Lists fleets in the specified subscription and resource group. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The cancellation token to use. + /// , or is null. + /// or is an empty string, and was expected to be non-empty. + public async Task> ListByResourceGroupNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + + using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + FleetListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = FleetListResult.DeserializeFleetListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Lists fleets in the specified subscription and resource group. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The cancellation token to use. + /// , or is null. + /// or is an empty string, and was expected to be non-empty. + public Response ListByResourceGroupNextPage(string nextLink, string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + + using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + FleetListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = FleetListResult.DeserializeFleetListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/MaintenanceConfigurationsRestOperations.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/MaintenanceConfigurationsRestOperations.cs index 16d62312a9387..4fd182b1bf238 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/MaintenanceConfigurationsRestOperations.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/MaintenanceConfigurationsRestOperations.cs @@ -33,7 +33,7 @@ public MaintenanceConfigurationsRestOperations(HttpPipeline pipeline, string app { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-02-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/ManagedClusterSnapshotsRestOperations.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/ManagedClusterSnapshotsRestOperations.cs new file mode 100644 index 0000000000000..0a9c2f6d19237 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/ManagedClusterSnapshotsRestOperations.cs @@ -0,0 +1,646 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.ContainerService.Models; + +namespace Azure.ResourceManager.ContainerService +{ + internal partial class ManagedClusterSnapshotsRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of ManagedClusterSnapshotsRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public ManagedClusterSnapshotsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2022-11-02-preview"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal HttpMessage CreateListRequest(string subscriptionId) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ContainerService/managedclustersnapshots", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Gets a list of managed cluster snapshots in the specified subscription. + /// The ID of the target subscription. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public async Task> ListAsync(string subscriptionId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + + using var message = CreateListRequest(subscriptionId); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ManagedClusterSnapshotListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = ManagedClusterSnapshotListResult.DeserializeManagedClusterSnapshotListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Gets a list of managed cluster snapshots in the specified subscription. + /// The ID of the target subscription. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public Response List(string subscriptionId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + + using var message = CreateListRequest(subscriptionId); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ManagedClusterSnapshotListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = ManagedClusterSnapshotListResult.DeserializeManagedClusterSnapshotListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerService/managedclustersnapshots", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Lists managed cluster snapshots in the specified subscription and resource group. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The cancellation token to use. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + public async Task> ListByResourceGroupAsync(string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + + using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ManagedClusterSnapshotListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = ManagedClusterSnapshotListResult.DeserializeManagedClusterSnapshotListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Lists managed cluster snapshots in the specified subscription and resource group. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The cancellation token to use. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + public Response ListByResourceGroup(string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + + using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ManagedClusterSnapshotListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = ManagedClusterSnapshotListResult.DeserializeManagedClusterSnapshotListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerService/managedclustersnapshots/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Gets a managed cluster snapshot. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the managed cluster resource. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string resourceName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, resourceName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ManagedClusterSnapshotData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = ManagedClusterSnapshotData.DeserializeManagedClusterSnapshotData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((ManagedClusterSnapshotData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Gets a managed cluster snapshot. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the managed cluster resource. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response Get(string subscriptionId, string resourceGroupName, string resourceName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, resourceName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ManagedClusterSnapshotData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = ManagedClusterSnapshotData.DeserializeManagedClusterSnapshotData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((ManagedClusterSnapshotData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string resourceName, ManagedClusterSnapshotData data) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerService/managedclustersnapshots/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(data); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Creates or updates a managed cluster snapshot. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the managed cluster resource. + /// The managed cluster snapshot to create or update. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string resourceName, ManagedClusterSnapshotData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, resourceName, data); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 201: + { + ManagedClusterSnapshotData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = ManagedClusterSnapshotData.DeserializeManagedClusterSnapshotData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Creates or updates a managed cluster snapshot. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the managed cluster resource. + /// The managed cluster snapshot to create or update. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string resourceName, ManagedClusterSnapshotData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, resourceName, data); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 201: + { + ManagedClusterSnapshotData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = ManagedClusterSnapshotData.DeserializeManagedClusterSnapshotData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateUpdateTagsRequest(string subscriptionId, string resourceGroupName, string resourceName, ContainerServiceTagsObject containerServiceTagsObject) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Patch; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerService/managedclustersnapshots/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(containerServiceTagsObject); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Updates tags on a managed cluster snapshot. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the managed cluster resource. + /// Parameters supplied to the Update managed cluster snapshot Tags operation. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> UpdateTagsAsync(string subscriptionId, string resourceGroupName, string resourceName, ContainerServiceTagsObject containerServiceTagsObject, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); + Argument.AssertNotNull(containerServiceTagsObject, nameof(containerServiceTagsObject)); + + using var message = CreateUpdateTagsRequest(subscriptionId, resourceGroupName, resourceName, containerServiceTagsObject); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ManagedClusterSnapshotData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = ManagedClusterSnapshotData.DeserializeManagedClusterSnapshotData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Updates tags on a managed cluster snapshot. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the managed cluster resource. + /// Parameters supplied to the Update managed cluster snapshot Tags operation. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response UpdateTags(string subscriptionId, string resourceGroupName, string resourceName, ContainerServiceTagsObject containerServiceTagsObject, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); + Argument.AssertNotNull(containerServiceTagsObject, nameof(containerServiceTagsObject)); + + using var message = CreateUpdateTagsRequest(subscriptionId, resourceGroupName, resourceName, containerServiceTagsObject); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ManagedClusterSnapshotData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = ManagedClusterSnapshotData.DeserializeManagedClusterSnapshotData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourceName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerService/managedclustersnapshots/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Deletes a managed cluster snapshot. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the managed cluster resource. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string resourceName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, resourceName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Deletes a managed cluster snapshot. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the managed cluster resource. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response Delete(string subscriptionId, string resourceGroupName, string resourceName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, resourceName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Gets a list of managed cluster snapshots in the specified subscription. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The cancellation token to use. + /// or is null. + /// is an empty string, and was expected to be non-empty. + public async Task> ListNextPageAsync(string nextLink, string subscriptionId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ManagedClusterSnapshotListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = ManagedClusterSnapshotListResult.DeserializeManagedClusterSnapshotListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Gets a list of managed cluster snapshots in the specified subscription. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The cancellation token to use. + /// or is null. + /// is an empty string, and was expected to be non-empty. + public Response ListNextPage(string nextLink, string subscriptionId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ManagedClusterSnapshotListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = ManagedClusterSnapshotListResult.DeserializeManagedClusterSnapshotListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Lists managed cluster snapshots in the specified subscription and resource group. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The cancellation token to use. + /// , or is null. + /// or is an empty string, and was expected to be non-empty. + public async Task> ListByResourceGroupNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + + using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ManagedClusterSnapshotListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = ManagedClusterSnapshotListResult.DeserializeManagedClusterSnapshotListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Lists managed cluster snapshots in the specified subscription and resource group. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The cancellation token to use. + /// , or is null. + /// or is an empty string, and was expected to be non-empty. + public Response ListByResourceGroupNextPage(string nextLink, string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + + using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ManagedClusterSnapshotListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = ManagedClusterSnapshotListResult.DeserializeManagedClusterSnapshotListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/ManagedClustersRestOperations.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/ManagedClustersRestOperations.cs index 89b081e12a3d8..5136975edd9ff 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/ManagedClustersRestOperations.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/ManagedClustersRestOperations.cs @@ -33,7 +33,7 @@ public ManagedClustersRestOperations(HttpPipeline pipeline, string applicationId { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-02-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -923,7 +923,7 @@ public Response UpdateTags(string subscriptionId, string resourceGroupName, stri } } - internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourceName) + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourceName, bool? ignorePodDisruptionBudget) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -937,6 +937,10 @@ internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceG uri.AppendPath("/providers/Microsoft.ContainerService/managedClusters/", false); uri.AppendPath(resourceName, true); uri.AppendQuery("api-version", _apiVersion, true); + if (ignorePodDisruptionBudget != null) + { + uri.AppendQuery("ignore-pod-disruption-budget", ignorePodDisruptionBudget.Value, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -947,16 +951,17 @@ internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceG /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the managed cluster resource. + /// ignore-pod-disruption-budget=true to delete those pods on a node without considering Pod Disruption Budget. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string resourceName, CancellationToken cancellationToken = default) + public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string resourceName, bool? ignorePodDisruptionBudget = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); - using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, resourceName); + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, resourceName, ignorePodDisruptionBudget); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -972,16 +977,17 @@ public async Task DeleteAsync(string subscriptionId, string resourceGr /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the managed cluster resource. + /// ignore-pod-disruption-budget=true to delete those pods on a node without considering Pod Disruption Budget. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response Delete(string subscriptionId, string resourceGroupName, string resourceName, CancellationToken cancellationToken = default) + public Response Delete(string subscriptionId, string resourceGroupName, string resourceName, bool? ignorePodDisruptionBudget = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); - using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, resourceName); + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, resourceName, ignorePodDisruptionBudget); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -1151,6 +1157,77 @@ public Response ResetAadProfile(string subscriptionId, string resourceGroupName, } } + internal HttpMessage CreateAbortLatestOperationRequest(string subscriptionId, string resourceGroupName, string resourceName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerService/managedclusters/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/abort", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, an error is returned. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the managed cluster resource. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task AbortLatestOperationAsync(string subscriptionId, string resourceGroupName, string resourceName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); + + using var message = CreateAbortLatestOperationRequest(subscriptionId, resourceGroupName, resourceName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, an error is returned. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the managed cluster resource. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response AbortLatestOperation(string subscriptionId, string resourceGroupName, string resourceName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); + + using var message = CreateAbortLatestOperationRequest(subscriptionId, resourceGroupName, resourceName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + internal HttpMessage CreateRotateClusterCertificatesRequest(string subscriptionId, string resourceGroupName, string resourceName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs index 311dc5e2cc594..7b99af4858c3c 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -33,7 +33,7 @@ public PrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, string ap { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-02-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs index e5520c17b3b72..71b139da6488d 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs @@ -33,7 +33,7 @@ public PrivateLinkResourcesRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-02-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/ResolvePrivateLinkServiceIdRestOperations.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/ResolvePrivateLinkServiceIdRestOperations.cs index 0af67b6e97946..2c2106f120d2b 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/ResolvePrivateLinkServiceIdRestOperations.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/ResolvePrivateLinkServiceIdRestOperations.cs @@ -33,7 +33,7 @@ public ResolvePrivateLinkServiceIdRestOperations(HttpPipeline pipeline, string a { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-02-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/SnapshotsRestOperations.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/SnapshotsRestOperations.cs index 52517c4442e48..fda1c7f91ee7d 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/SnapshotsRestOperations.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/SnapshotsRestOperations.cs @@ -33,7 +33,7 @@ public SnapshotsRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-02-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/TrustedAccessRoleBindingsRestOperations.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/TrustedAccessRoleBindingsRestOperations.cs new file mode 100644 index 0000000000000..1704069149576 --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/TrustedAccessRoleBindingsRestOperations.cs @@ -0,0 +1,451 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.ContainerService.Models; + +namespace Azure.ResourceManager.ContainerService +{ + internal partial class TrustedAccessRoleBindingsRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of TrustedAccessRoleBindingsRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public TrustedAccessRoleBindingsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2022-11-02-preview"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string resourceName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerService/managedClusters/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/trustedAccessRoleBindings", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List trusted access role bindings. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the managed cluster resource. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListAsync(string subscriptionId, string resourceGroupName, string resourceName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, resourceName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + TrustedAccessRoleBindingListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = TrustedAccessRoleBindingListResult.DeserializeTrustedAccessRoleBindingListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List trusted access role bindings. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the managed cluster resource. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response List(string subscriptionId, string resourceGroupName, string resourceName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, resourceName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + TrustedAccessRoleBindingListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = TrustedAccessRoleBindingListResult.DeserializeTrustedAccessRoleBindingListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string resourceName, string trustedAccessRoleBindingName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerService/managedClusters/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/trustedAccessRoleBindings/", false); + uri.AppendPath(trustedAccessRoleBindingName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Get a trusted access role binding. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the managed cluster resource. + /// The name of trusted access role binding. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string resourceName, string trustedAccessRoleBindingName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); + Argument.AssertNotNullOrEmpty(trustedAccessRoleBindingName, nameof(trustedAccessRoleBindingName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, resourceName, trustedAccessRoleBindingName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ContainerServiceTrustedAccessRoleBindingData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = ContainerServiceTrustedAccessRoleBindingData.DeserializeContainerServiceTrustedAccessRoleBindingData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((ContainerServiceTrustedAccessRoleBindingData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Get a trusted access role binding. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the managed cluster resource. + /// The name of trusted access role binding. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Get(string subscriptionId, string resourceGroupName, string resourceName, string trustedAccessRoleBindingName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); + Argument.AssertNotNullOrEmpty(trustedAccessRoleBindingName, nameof(trustedAccessRoleBindingName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, resourceName, trustedAccessRoleBindingName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ContainerServiceTrustedAccessRoleBindingData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = ContainerServiceTrustedAccessRoleBindingData.DeserializeContainerServiceTrustedAccessRoleBindingData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((ContainerServiceTrustedAccessRoleBindingData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string resourceName, string trustedAccessRoleBindingName, ContainerServiceTrustedAccessRoleBindingData data) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerService/managedClusters/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/trustedAccessRoleBindings/", false); + uri.AppendPath(trustedAccessRoleBindingName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(data); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Create or update a trusted access role binding. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the managed cluster resource. + /// The name of trusted access role binding. + /// A trusted access role binding. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string resourceName, string trustedAccessRoleBindingName, ContainerServiceTrustedAccessRoleBindingData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); + Argument.AssertNotNullOrEmpty(trustedAccessRoleBindingName, nameof(trustedAccessRoleBindingName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, resourceName, trustedAccessRoleBindingName, data); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ContainerServiceTrustedAccessRoleBindingData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = ContainerServiceTrustedAccessRoleBindingData.DeserializeContainerServiceTrustedAccessRoleBindingData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Create or update a trusted access role binding. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the managed cluster resource. + /// The name of trusted access role binding. + /// A trusted access role binding. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string resourceName, string trustedAccessRoleBindingName, ContainerServiceTrustedAccessRoleBindingData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); + Argument.AssertNotNullOrEmpty(trustedAccessRoleBindingName, nameof(trustedAccessRoleBindingName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, resourceName, trustedAccessRoleBindingName, data); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ContainerServiceTrustedAccessRoleBindingData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = ContainerServiceTrustedAccessRoleBindingData.DeserializeContainerServiceTrustedAccessRoleBindingData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string resourceName, string trustedAccessRoleBindingName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ContainerService/managedClusters/", false); + uri.AppendPath(resourceName, true); + uri.AppendPath("/trustedAccessRoleBindings/", false); + uri.AppendPath(trustedAccessRoleBindingName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Delete a trusted access role binding. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the managed cluster resource. + /// The name of trusted access role binding. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string resourceName, string trustedAccessRoleBindingName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); + Argument.AssertNotNullOrEmpty(trustedAccessRoleBindingName, nameof(trustedAccessRoleBindingName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, resourceName, trustedAccessRoleBindingName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Delete a trusted access role binding. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the managed cluster resource. + /// The name of trusted access role binding. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Delete(string subscriptionId, string resourceGroupName, string resourceName, string trustedAccessRoleBindingName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); + Argument.AssertNotNullOrEmpty(trustedAccessRoleBindingName, nameof(trustedAccessRoleBindingName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, resourceName, trustedAccessRoleBindingName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string resourceName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List trusted access role bindings. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the managed cluster resource. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string resourceName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, resourceName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + TrustedAccessRoleBindingListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = TrustedAccessRoleBindingListResult.DeserializeTrustedAccessRoleBindingListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List trusted access role bindings. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the managed cluster resource. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string resourceName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, resourceName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + TrustedAccessRoleBindingListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = TrustedAccessRoleBindingListResult.DeserializeTrustedAccessRoleBindingListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/TrustedAccessRolesRestOperations.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/TrustedAccessRolesRestOperations.cs new file mode 100644 index 0000000000000..76e123372871d --- /dev/null +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/RestOperations/TrustedAccessRolesRestOperations.cs @@ -0,0 +1,181 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.ContainerService.Models; + +namespace Azure.ResourceManager.ContainerService +{ + internal partial class TrustedAccessRolesRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of TrustedAccessRolesRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public TrustedAccessRolesRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2022-11-02-preview"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal HttpMessage CreateListRequest(string subscriptionId, AzureLocation location) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ContainerService/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/trustedAccessRoles", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List supported trusted access roles. + /// The ID of the target subscription. + /// The name of Azure region. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public async Task> ListAsync(string subscriptionId, AzureLocation location, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + + using var message = CreateListRequest(subscriptionId, location); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + TrustedAccessRoleListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = TrustedAccessRoleListResult.DeserializeTrustedAccessRoleListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List supported trusted access roles. + /// The ID of the target subscription. + /// The name of Azure region. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public Response List(string subscriptionId, AzureLocation location, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + + using var message = CreateListRequest(subscriptionId, location); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + TrustedAccessRoleListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = TrustedAccessRoleListResult.DeserializeTrustedAccessRoleListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, AzureLocation location) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List supported trusted access roles. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of Azure region. + /// The cancellation token to use. + /// or is null. + /// is an empty string, and was expected to be non-empty. + public async Task> ListNextPageAsync(string nextLink, string subscriptionId, AzureLocation location, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, location); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + TrustedAccessRoleListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = TrustedAccessRoleListResult.DeserializeTrustedAccessRoleListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List supported trusted access roles. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of Azure region. + /// The cancellation token to use. + /// or is null. + /// is an empty string, and was expected to be non-empty. + public Response ListNextPage(string nextLink, string subscriptionId, AzureLocation location, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, location); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + TrustedAccessRoleListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = TrustedAccessRoleListResult.DeserializeTrustedAccessRoleListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/autorest.md b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/autorest.md index dbf22ce3311d2..e0099f4c7c28e 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/autorest.md +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/autorest.md @@ -9,8 +9,8 @@ generate-model-factory: false csharp: true library-name: ContainerService namespace: Azure.ResourceManager.ContainerService -require: https://github.com/Azure/azure-rest-api-specs/blob/495363bc011ce917f579adc1a5209073565d37f4/specification/containerservice/resource-manager/readme.md -tag: package-2022-09 +require: https://github.com/Azure/azure-rest-api-specs/blob/3b4a2c4af20e4aea66871c9ed067d0641ea2ac80/specification/containerservice/resource-manager/Microsoft.ContainerService/aks/readme.md +tag: package-preview-2022-11 output-folder: $(this-folder)/Generated clear-output-folder: true skip-csproj: true @@ -64,6 +64,36 @@ rename-mapping: KeyVaultNetworkAccessTypes: ManagedClusterKeyVaultNetworkAccessType ManagedClusterOidcIssuerProfile.enabled: IsEnabled ManagedClusterOidcIssuerProfile.issuerURL: IssuerUriInfo + AbsoluteMonthlySchedule: ContainerServiceMaintenanceAbsoluteMonthlySchedule + RelativeMonthlySchedule: ContainerServiceMaintenanceRelativeMonthlySchedule + Type: ContainerServiceMaintenanceRelativeMonthlyScheduleWeekIndex + Schedule: ContainerServiceMaintenanceSchedule + WeeklySchedule: ContainerServiceMaintenanceWeeklySchedule + BackendPoolType: ManagedClusterLoadBalancerBackendPoolType + ContainerServiceNetworkProfileKubeProxyConfig.enabled: IsEnabled + ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig: ContainerServiceNetworkProfileKubeProxyIpvsConfig + IpvsScheduler: ContainerServiceNetworkProfileKubeProxyIpvsScheduler + Mode: ContainerServiceNetworkProfileKubeProxyMode + ControlledValues: ManagedClusterWorkloadAutoScalerControlledValue + GuardrailsProfile: ManagedClusterGuardrailsProfile + Level: ManagedClusterGuardrailsProfileLevel + ManagedClusterAzureMonitorProfileKubeStateMetrics: ManagedClusterMonitorProfileKubeStateMetrics + ManagedClusterAzureMonitorProfileMetrics: ManagedClusterMonitorProfileMetrics + ManagedClusterAzureMonitorProfileMetrics.enabled: IsEnabled + ManagedClusterSecurityProfile.properties.nodeRestrictionEnabled: IsNodeRestrictionEnabled + ManagedClusterSecurityProfile.properties.workloadIdentityEnabled: IsWorkloadIdentityEnabled + ManagedClusterSecurityProfileImageCleaner.enabled: IsEnabled + ManagedClusterWorkloadAutoScalerProfile.kedaEnabled: IsKedaEnabled + ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler: ManagedClusterVerticalPodAutoscaler + ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler.enabled: IsEnabled + UpdateMode: ManagedClusterVerticalPodAutoscalerUpdateMode + NodeOSUpgradeChannel: ManagedClusterNodeOSUpgradeChannel + PortRange: AgentPoolNetworkPortRange + Protocol: AgentPoolNetworkPortProtocol + RestrictionLevel: ManagedClusterNodeResourceGroupRestrictionLevel + AgentPool.properties.capacityReservationGroupID: -|arm-id + ManagedClusterAgentPoolProfileProperties.capacityReservationGroupID: -|arm-id + ManagedClusterIngressProfileWebAppRouting.enabled: IsEnabled format-by-name-rules: 'tenantId': 'uuid' @@ -87,6 +117,8 @@ rename-rules: Os: OS Ip: IP Ips: IPs|ips + Iptables: IPTables + Ipvs: IPVS ID: Id IDs: Ids VM: Vm @@ -101,6 +133,8 @@ rename-rules: Ipsec: IPsec|ipsec SSO: Sso URI: Uri + URL: Url + URLs: Urls Etag: ETag|etag SSD: Ssd GPU: Gpu @@ -117,6 +151,8 @@ rename-rules: MIG4G: Mig4G MIG7G: Mig7G Tcpkeepalive: TcpKeepalive + TCP: Tcp + UDP: Udp override-operation-name: ResolvePrivateLinkServiceId_POST: ResolvePrivateLinkServiceId @@ -149,6 +185,23 @@ prepend-rp-prefix: - PrivateLinkResourcesListResult - TagsObject - PowerState + - Fleet + - FleetMember + - DateSpan + - FleetCredentialResult + - FleetCredentialResults + - FleetHubProfile + - FleetMemberProvisioningState + - FleetPatch + - FleetProvisioningState + - IPTag + - MaintenanceWindow + - NetworkPluginMode + - NetworkProfileForSnapshot + - TrustedAccessRole + - TrustedAccessRoleBinding + - TrustedAccessRoleRule + - TrustedAccessRoleBindingProvisioningState directive: - from: managedClusters.json diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/tests/SessionRecords/ContainerServiceCollectionTests/CreateListGetDelete().json b/sdk/containerservice/Azure.ResourceManager.ContainerService/tests/SessionRecords/ContainerServiceCollectionTests/CreateListGetDelete().json index c52b28f08f200..0f3798d48a1d5 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/tests/SessionRecords/ContainerServiceCollectionTests/CreateListGetDelete().json +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/tests/SessionRecords/ContainerServiceCollectionTests/CreateListGetDelete().json @@ -6,9 +6,9 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-2eef5eae8bf300409ba5d8b52c8240a0-4898dd8457557749-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "a256e6195682f3b7e7787780257ce0e4", + "traceparent": "00-24e35f6c6d5e3ed577b888c83cdd605f-0253a1cfd6e6df61-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "b67eef9b2afd142a926fac7bc5adc4a1", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -17,15 +17,15 @@ "Cache-Control": "no-cache", "Content-Length": "748", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 28 Nov 2022 08:11:17 GMT", + "Date": "Mon, 20 Feb 2023 09:25:52 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "9d3ac838-8739-45a0-b614-3a62560e0a43", + "x-ms-correlation-request-id": "2b4c052e-d249-4003-96a6-84fab7e187f1", "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "9d3ac838-8739-45a0-b614-3a62560e0a43", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T081118Z:9d3ac838-8739-45a0-b614-3a62560e0a43" + "x-ms-request-id": "2b4c052e-d249-4003-96a6-84fab7e187f1", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T092552Z:2b4c052e-d249-4003-96a6-84fab7e187f1" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", @@ -56,16 +56,16 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testaksrg7424?api-version=**", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testaksrg2106?api-version=**", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "21", "Content-Type": "application/json", - "traceparent": "00-8b89d5a10f611f45a441d8ef3b4cd804-76585991ab472943-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "6efedd85ae407de8a7e5c0a106093f7c", + "traceparent": "00-f9faa63a5007c7792eb73b6eefd53efe-e7192617431e83fc-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "994040db2b03c7ce02858154c3bfe3e6", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -76,19 +76,19 @@ "Cache-Control": "no-cache", "Content-Length": "223", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 28 Nov 2022 08:11:20 GMT", + "Date": "Mon, 20 Feb 2023 09:25:57 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "1a6a0abc-3325-40aa-8f38-f3b873233346", + "x-ms-correlation-request-id": "93ccd05b-a01c-4786-9d95-854621e3e3fb", "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "1a6a0abc-3325-40aa-8f38-f3b873233346", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T081121Z:1a6a0abc-3325-40aa-8f38-f3b873233346" + "x-ms-request-id": "93ccd05b-a01c-4786-9d95-854621e3e3fb", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T092557Z:93ccd05b-a01c-4786-9d95-854621e3e3fb" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg7424", - "name": "testaksrg7424", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg2106", + "name": "testaksrg2106", "type": "Microsoft.Resources/resourceGroups", "location": "eastus", "properties": { @@ -97,16 +97,16 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg7424/providers/Microsoft.ContainerService/managedClusters/akscluster4904?api-version=2022-09-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg2106/providers/Microsoft.ContainerService/managedClusters/akscluster6730?api-version=2022-11-02-preview", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "205", "Content-Type": "application/json", - "traceparent": "00-e8ae4f9c8a5bae4bb6256b1ae0aec7ce-9d4a81bd6d04b34c-00", - "User-Agent": "azsdk-net-ResourceManager.ContainerService/1.1.0-alpha.20221128.1 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "24480a0e031fd5fca373afa064f158e7", + "traceparent": "00-be488a0602f74a0ad97ef328904eea65-bae42caa42be3eac-00", + "User-Agent": "azsdk-net-ResourceManager.ContainerService/1.2.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "1e7b4c23b651cac6e8ce7457bc2487e9", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -129,36 +129,36 @@ }, "StatusCode": 201, "ResponseHeaders": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/dfebcb18-6581-425a-b4ed-fd4a7da01257?api-version=2017-08-31", + "azure-asyncoperation": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/d95ed861-6081-416f-967f-0e57c9d43ca7?api-version=2017-08-31", "Cache-Control": "no-cache", - "Content-Length": "2372", + "Content-Length": "2473", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:11:35 GMT", + "Date": "Mon, 20 Feb 2023 09:26:08 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "f997d912-698e-45b6-957e-88e9cbfa179a", + "x-ms-correlation-request-id": "17e7bf93-5302-4a1b-814b-d818e5e96c12", "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "dfebcb18-6581-425a-b4ed-fd4a7da01257", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T081136Z:f997d912-698e-45b6-957e-88e9cbfa179a" + "x-ms-request-id": "d95ed861-6081-416f-967f-0e57c9d43ca7", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T092609Z:17e7bf93-5302-4a1b-814b-d818e5e96c12" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testaksrg7424/providers/Microsoft.ContainerService/managedClusters/akscluster4904", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testaksrg2106/providers/Microsoft.ContainerService/managedClusters/akscluster6730", "location": "eastus", - "name": "akscluster4904", + "name": "akscluster6730", "type": "Microsoft.ContainerService/ManagedClusters", "properties": { "provisioningState": "Creating", "powerState": { "code": "Running" }, - "kubernetesVersion": "1.23.12", - "currentKubernetesVersion": "1.23.12", + "kubernetesVersion": "1.24.9", + "currentKubernetesVersion": "1.24.9", "dnsPrefix": "aksdotnetsdk", - "fqdn": "aksdotnetsdk-e60382fe.hcp.eastus.azmk8s.io", - "azurePortalFQDN": "aksdotnetsdk-e60382fe.portal.hcp.eastus.azmk8s.io", + "fqdn": "aksdotnetsdk-f89f9958.hcp.eastus.azmk8s.io", + "azurePortalFQDN": "aksdotnetsdk-f89f9958.portal.hcp.eastus.azmk8s.io", "agentPoolProfiles": [ { "name": "aksagent", @@ -173,19 +173,19 @@ "powerState": { "code": "Running" }, - "orchestratorVersion": "1.23.12", - "currentOrchestratorVersion": "1.23.12", + "orchestratorVersion": "1.24.9", + "currentOrchestratorVersion": "1.24.9", "mode": "System", "osType": "Linux", "osSKU": "Ubuntu", - "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2022.11.02", + "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2023.01.26", "enableFIPS": false } ], "servicePrincipalProfile": { "clientId": "msi" }, - "nodeResourceGroup": "MC_testaksrg7424_akscluster4904_eastus", + "nodeResourceGroup": "MC_testaksrg2106_akscluster6730_eastus", "enableRBAC": true, "networkProfile": { "networkPlugin": "kubenet", @@ -193,7 +193,8 @@ "loadBalancerProfile": { "managedOutboundIPs": { "count": 1 - } + }, + "backendPoolType": "nodeIPConfiguration" }, "podCidr": "10.244.0.0/16", "serviceCidr": "10.0.0.0/16", @@ -214,7 +215,8 @@ "securityProfile": {}, "storageProfile": { "diskCSIDriver": { - "enabled": true + "enabled": true, + "version": "v1" }, "fileCSIDriver": { "enabled": true @@ -225,11 +227,12 @@ }, "oidcIssuerProfile": { "enabled": false - } + }, + "workloadAutoScalerProfile": {} }, "identity": { "type": "SystemAssigned", - "principalId": "e6c870e0-6d2b-45dd-8467-673c0c0b82d9", + "principalId": "596dc319-165e-4c29-9c5a-b1bf7f7c26c9", "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47" }, "sku": { @@ -239,13 +242,13 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/dfebcb18-6581-425a-b4ed-fd4a7da01257?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/d95ed861-6081-416f-967f-0e57c9d43ca7?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-e8ae4f9c8a5bae4bb6256b1ae0aec7ce-1fea50a524401f44-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "d66ef404409bda6501999c3b39dc43f4", + "traceparent": "00-be488a0602f74a0ad97ef328904eea65-7c27812594f0d6a0-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "778924946b25898979ce1b5c5a6f4560", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -254,31 +257,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:11:36 GMT", + "Date": "Mon, 20 Feb 2023 09:26:09 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "2c2fdb22-cc0a-41dd-b4bc-3e6b9ba09782", + "x-ms-correlation-request-id": "4e3b93ee-e9aa-4e31-aa83-e9f37ce8ef58", "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "d146ff6c-7f08-4da5-885d-14a76f1cec80", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T081137Z:2c2fdb22-cc0a-41dd-b4bc-3e6b9ba09782" + "x-ms-request-id": "10c89c74-432b-470d-8a56-04fdb365dbd9", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T092609Z:4e3b93ee-e9aa-4e31-aa83-e9f37ce8ef58" }, "ResponseBody": { - "name": "18cbebdf-8165-5a42-b4ed-fd4a7da01257", + "name": "61d85ed9-8160-6f41-967f-0e57c9d43ca7", "status": "InProgress", - "startTime": "2022-11-28T08:11:35.5319349Z" + "startTime": "2023-02-20T09:26:07.8748332Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/dfebcb18-6581-425a-b4ed-fd4a7da01257?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/d95ed861-6081-416f-967f-0e57c9d43ca7?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-e8ae4f9c8a5bae4bb6256b1ae0aec7ce-2c31736c5c917b49-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "637fb96885fb3517d2daff45910682c2", + "traceparent": "00-be488a0602f74a0ad97ef328904eea65-efc659beb0230506-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "90d76afafa4c8bb888cc2f56111d0918", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -287,31 +290,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:11:37 GMT", + "Date": "Mon, 20 Feb 2023 09:26:10 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "cbc5dcd6-30f5-43b7-ba17-448b46ce8b57", + "x-ms-correlation-request-id": "4bf82eee-7ddf-409f-8fb0-9dc8ef74e750", "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-request-id": "b25fee73-a493-4893-90af-f2974006ef18", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T081138Z:cbc5dcd6-30f5-43b7-ba17-448b46ce8b57" + "x-ms-request-id": "99353afc-de7a-4d6f-8b62-e63dcc39fa53", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T092611Z:4bf82eee-7ddf-409f-8fb0-9dc8ef74e750" }, "ResponseBody": { - "name": "18cbebdf-8165-5a42-b4ed-fd4a7da01257", + "name": "61d85ed9-8160-6f41-967f-0e57c9d43ca7", "status": "InProgress", - "startTime": "2022-11-28T08:11:35.5319349Z" + "startTime": "2023-02-20T09:26:07.8748332Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/dfebcb18-6581-425a-b4ed-fd4a7da01257?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/d95ed861-6081-416f-967f-0e57c9d43ca7?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-e8ae4f9c8a5bae4bb6256b1ae0aec7ce-d8609c858e6fbb45-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "6f9c77038282454b406af5803cfc3548", + "traceparent": "00-be488a0602f74a0ad97ef328904eea65-36a6fdfc34c39ec2-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "98c3aa1e0f9a80c4a50c72197c67547f", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -320,31 +323,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:11:39 GMT", + "Date": "Mon, 20 Feb 2023 09:26:11 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "37fdbda1-0831-446c-81f9-b7428475a6d1", + "x-ms-correlation-request-id": "e671fd29-bbd2-4852-a155-19b3c5b3308e", "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-request-id": "12f5dbc5-1b5a-4016-b129-9f2087301f2f", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T081139Z:37fdbda1-0831-446c-81f9-b7428475a6d1" + "x-ms-request-id": "3fbffa8a-bed1-43fa-8036-186499ea29cd", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T092612Z:e671fd29-bbd2-4852-a155-19b3c5b3308e" }, "ResponseBody": { - "name": "18cbebdf-8165-5a42-b4ed-fd4a7da01257", + "name": "61d85ed9-8160-6f41-967f-0e57c9d43ca7", "status": "InProgress", - "startTime": "2022-11-28T08:11:35.5319349Z" + "startTime": "2023-02-20T09:26:07.8748332Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/dfebcb18-6581-425a-b4ed-fd4a7da01257?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/d95ed861-6081-416f-967f-0e57c9d43ca7?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-e8ae4f9c8a5bae4bb6256b1ae0aec7ce-b198e0ff3d52794c-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "988e7d960c617e3cdc3903c1411f48fb", + "traceparent": "00-be488a0602f74a0ad97ef328904eea65-66fb12c6e2bfd58c-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "56ae44b51ff7997c6cfeef593b32785b", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -353,31 +356,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:11:40 GMT", + "Date": "Mon, 20 Feb 2023 09:26:13 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "91562ff5-e469-4459-ad1e-05b4bbab0047", + "x-ms-correlation-request-id": "824f6711-5578-4ab3-9eaf-fbf8e58553b4", "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "21611a22-2b2c-4033-8924-f08d61615cc4", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T081141Z:91562ff5-e469-4459-ad1e-05b4bbab0047" + "x-ms-request-id": "5bbaffe8-5d10-478d-8334-777e344acbba", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T092613Z:824f6711-5578-4ab3-9eaf-fbf8e58553b4" }, "ResponseBody": { - "name": "18cbebdf-8165-5a42-b4ed-fd4a7da01257", + "name": "61d85ed9-8160-6f41-967f-0e57c9d43ca7", "status": "InProgress", - "startTime": "2022-11-28T08:11:35.5319349Z" + "startTime": "2023-02-20T09:26:07.8748332Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/dfebcb18-6581-425a-b4ed-fd4a7da01257?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/d95ed861-6081-416f-967f-0e57c9d43ca7?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-e8ae4f9c8a5bae4bb6256b1ae0aec7ce-ef4011d20906904e-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "c137da16d340e6716d3a22909096f8d6", + "traceparent": "00-be488a0602f74a0ad97ef328904eea65-602830c9d4b6a55d-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "af3d02c4adaceac6a657eb40889e0e21", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -386,31 +389,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:11:42 GMT", + "Date": "Mon, 20 Feb 2023 09:26:15 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "8fe90ada-dccf-441f-8256-057d026d5da2", + "x-ms-correlation-request-id": "c888a3c3-9d55-44ff-a566-2d32c53bd5cd", "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "597b6864-8ffd-4923-9eb9-977e45239dc1", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T081143Z:8fe90ada-dccf-441f-8256-057d026d5da2" + "x-ms-request-id": "8ebd37dc-6db0-49b3-9334-79b6ab4754fb", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T092616Z:c888a3c3-9d55-44ff-a566-2d32c53bd5cd" }, "ResponseBody": { - "name": "18cbebdf-8165-5a42-b4ed-fd4a7da01257", + "name": "61d85ed9-8160-6f41-967f-0e57c9d43ca7", "status": "InProgress", - "startTime": "2022-11-28T08:11:35.5319349Z" + "startTime": "2023-02-20T09:26:07.8748332Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/dfebcb18-6581-425a-b4ed-fd4a7da01257?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/d95ed861-6081-416f-967f-0e57c9d43ca7?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-e8ae4f9c8a5bae4bb6256b1ae0aec7ce-32eee1991c147946-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "14aeb7a5ea78f7603b1d93497e8a0420", + "traceparent": "00-be488a0602f74a0ad97ef328904eea65-5a3c842be56be00f-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "cda1b077b36fff212e292b9b206b4473", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -419,31 +422,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:11:47 GMT", + "Date": "Mon, 20 Feb 2023 09:26:19 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "ea6152f3-e403-4f23-a19c-9da8a194f919", + "x-ms-correlation-request-id": "bf61d915-6751-4a3c-8c0d-498740e068da", "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-request-id": "4a2946e9-fe62-4a0f-b4cc-85668111d655", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T081147Z:ea6152f3-e403-4f23-a19c-9da8a194f919" + "x-ms-request-id": "de7b4181-874d-4f16-b5fc-59f4a9289966", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T092620Z:bf61d915-6751-4a3c-8c0d-498740e068da" }, "ResponseBody": { - "name": "18cbebdf-8165-5a42-b4ed-fd4a7da01257", + "name": "61d85ed9-8160-6f41-967f-0e57c9d43ca7", "status": "InProgress", - "startTime": "2022-11-28T08:11:35.5319349Z" + "startTime": "2023-02-20T09:26:07.8748332Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/dfebcb18-6581-425a-b4ed-fd4a7da01257?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/d95ed861-6081-416f-967f-0e57c9d43ca7?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-e8ae4f9c8a5bae4bb6256b1ae0aec7ce-db2c0c9a53f7244f-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "616af92273c4c3070ba82a27e9abee46", + "traceparent": "00-be488a0602f74a0ad97ef328904eea65-b5e78baa00c80f9d-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "7a541794a42a08d27dc4b0a0333c11cd", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -452,31 +455,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:11:56 GMT", + "Date": "Mon, 20 Feb 2023 09:26:27 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "e79cf9a7-d547-488c-b9a2-e28987774ac5", + "x-ms-correlation-request-id": "7f9b4706-3bbc-4366-9a11-753330013e2c", "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "10942c62-2938-4b60-bb99-1d2978e6edc9", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T081156Z:e79cf9a7-d547-488c-b9a2-e28987774ac5" + "x-ms-request-id": "c93824fa-a5e1-41eb-84d8-e2951ad1166b", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T092628Z:7f9b4706-3bbc-4366-9a11-753330013e2c" }, "ResponseBody": { - "name": "18cbebdf-8165-5a42-b4ed-fd4a7da01257", + "name": "61d85ed9-8160-6f41-967f-0e57c9d43ca7", "status": "InProgress", - "startTime": "2022-11-28T08:11:35.5319349Z" + "startTime": "2023-02-20T09:26:07.8748332Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/dfebcb18-6581-425a-b4ed-fd4a7da01257?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/d95ed861-6081-416f-967f-0e57c9d43ca7?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-e8ae4f9c8a5bae4bb6256b1ae0aec7ce-a72b8bf44c661444-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "8a1b2d4033702c83793f8523402867e3", + "traceparent": "00-be488a0602f74a0ad97ef328904eea65-d3a1858ef74794d0-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "8be1ceefaa9111ebe13d8183812ac93b", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -485,31 +488,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:12:12 GMT", + "Date": "Mon, 20 Feb 2023 09:26:45 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "fb278c6f-332a-4094-895f-7f541cf0851d", + "x-ms-correlation-request-id": "fdca0489-aa38-446a-9ac6-f96fe2085d6e", "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "f4554122-b050-451a-be91-1a5ab6391147", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T081212Z:fb278c6f-332a-4094-895f-7f541cf0851d" + "x-ms-request-id": "4651f7b3-ead9-445e-b36d-f66c9707bada", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T092645Z:fdca0489-aa38-446a-9ac6-f96fe2085d6e" }, "ResponseBody": { - "name": "18cbebdf-8165-5a42-b4ed-fd4a7da01257", + "name": "61d85ed9-8160-6f41-967f-0e57c9d43ca7", "status": "InProgress", - "startTime": "2022-11-28T08:11:35.5319349Z" + "startTime": "2023-02-20T09:26:07.8748332Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/dfebcb18-6581-425a-b4ed-fd4a7da01257?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/d95ed861-6081-416f-967f-0e57c9d43ca7?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-e8ae4f9c8a5bae4bb6256b1ae0aec7ce-2abd5bccd374e440-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "966e0136972b3111afeb09cfbf390e90", + "traceparent": "00-be488a0602f74a0ad97ef328904eea65-b4b84093d28b1d11-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "70ac78129449d3f6dd994faa0380cbf1", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -518,31 +521,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:12:44 GMT", + "Date": "Mon, 20 Feb 2023 09:27:17 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "7268abe1-e6f7-4c7a-a48b-c771dd66da26", + "x-ms-correlation-request-id": "4f51f0d6-bd79-46ce-b3e4-d1d16b44475c", "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "8b50f20a-ceb2-4ccd-8c47-fe9591bbda27", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T081245Z:7268abe1-e6f7-4c7a-a48b-c771dd66da26" + "x-ms-request-id": "d6c84e19-829a-4f40-b808-8378746c97db", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T092717Z:4f51f0d6-bd79-46ce-b3e4-d1d16b44475c" }, "ResponseBody": { - "name": "18cbebdf-8165-5a42-b4ed-fd4a7da01257", + "name": "61d85ed9-8160-6f41-967f-0e57c9d43ca7", "status": "InProgress", - "startTime": "2022-11-28T08:11:35.5319349Z" + "startTime": "2023-02-20T09:26:07.8748332Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/dfebcb18-6581-425a-b4ed-fd4a7da01257?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/d95ed861-6081-416f-967f-0e57c9d43ca7?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-e8ae4f9c8a5bae4bb6256b1ae0aec7ce-470c9c0e97687c47-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "51084c2f796feeaf763ee885eee382e2", + "traceparent": "00-be488a0602f74a0ad97ef328904eea65-e8c9a6427cf79bf8-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "52ac5d17b989e9e12b4398ec224f8652", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -551,31 +554,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:13:16 GMT", + "Date": "Mon, 20 Feb 2023 09:27:49 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "bac625c4-a84e-42a1-9994-b43c3fe663a3", + "x-ms-correlation-request-id": "4f0cf2dc-71fe-4762-9fda-64f0a33b6d87", "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "cc3be19e-bc15-4dd7-8e56-8695154b6aad", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T081317Z:bac625c4-a84e-42a1-9994-b43c3fe663a3" + "x-ms-request-id": "72d52911-f976-4619-9545-9799cae0c6da", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T092749Z:4f0cf2dc-71fe-4762-9fda-64f0a33b6d87" }, "ResponseBody": { - "name": "18cbebdf-8165-5a42-b4ed-fd4a7da01257", + "name": "61d85ed9-8160-6f41-967f-0e57c9d43ca7", "status": "InProgress", - "startTime": "2022-11-28T08:11:35.5319349Z" + "startTime": "2023-02-20T09:26:07.8748332Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/dfebcb18-6581-425a-b4ed-fd4a7da01257?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/d95ed861-6081-416f-967f-0e57c9d43ca7?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-e8ae4f9c8a5bae4bb6256b1ae0aec7ce-5ad3de85db66a849-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "e7f04740573da91a1be9da8529b36c3f", + "traceparent": "00-be488a0602f74a0ad97ef328904eea65-214a566269f71fa6-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "bb8e75faa0905a84d70eadf75a410e61", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -584,31 +587,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:13:49 GMT", + "Date": "Mon, 20 Feb 2023 09:28:22 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "bd8c88d6-4331-4231-9613-e668d56fbb85", + "x-ms-correlation-request-id": "278073c2-bbeb-48a8-93df-718925d0a8c7", "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "d3d2535b-8701-4442-9d60-7e17e94e9a04", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T081349Z:bd8c88d6-4331-4231-9613-e668d56fbb85" + "x-ms-request-id": "288265df-6036-461e-838d-133410c9b76e", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T092822Z:278073c2-bbeb-48a8-93df-718925d0a8c7" }, "ResponseBody": { - "name": "18cbebdf-8165-5a42-b4ed-fd4a7da01257", + "name": "61d85ed9-8160-6f41-967f-0e57c9d43ca7", "status": "InProgress", - "startTime": "2022-11-28T08:11:35.5319349Z" + "startTime": "2023-02-20T09:26:07.8748332Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/dfebcb18-6581-425a-b4ed-fd4a7da01257?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/d95ed861-6081-416f-967f-0e57c9d43ca7?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-e8ae4f9c8a5bae4bb6256b1ae0aec7ce-817ead5333b78141-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "f4f4f4311620bc74527f1fedaf8c43cb", + "traceparent": "00-be488a0602f74a0ad97ef328904eea65-4a58b55aa504b9f0-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "246b9072777e58b196c24505fc0ab08e", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -617,31 +620,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:14:21 GMT", + "Date": "Mon, 20 Feb 2023 09:28:54 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "5fb6b8ed-ffa0-4f77-9723-2c0412ef8801", + "x-ms-correlation-request-id": "fc8c6419-e888-4a83-8616-c8b00c433adf", "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-request-id": "d5d5b0b2-6e59-44ac-a63a-fecf0a791664", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T081422Z:5fb6b8ed-ffa0-4f77-9723-2c0412ef8801" + "x-ms-request-id": "bdf68127-cc9b-4806-aa98-d480b8b76580", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T092854Z:fc8c6419-e888-4a83-8616-c8b00c433adf" }, "ResponseBody": { - "name": "18cbebdf-8165-5a42-b4ed-fd4a7da01257", + "name": "61d85ed9-8160-6f41-967f-0e57c9d43ca7", "status": "InProgress", - "startTime": "2022-11-28T08:11:35.5319349Z" + "startTime": "2023-02-20T09:26:07.8748332Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/dfebcb18-6581-425a-b4ed-fd4a7da01257?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/d95ed861-6081-416f-967f-0e57c9d43ca7?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-e8ae4f9c8a5bae4bb6256b1ae0aec7ce-3dbdf8da7c263749-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "788f26692748d753325f35859e2ac5c3", + "traceparent": "00-be488a0602f74a0ad97ef328904eea65-a22d36e5ea17665a-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "8eb0fd120ff17661d9517a7b0ce98eea", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -650,31 +653,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:14:54 GMT", + "Date": "Mon, 20 Feb 2023 09:29:27 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "73ee46c4-1cdf-49b6-8eea-547c64de6c71", + "x-ms-correlation-request-id": "93f970e1-8b59-43bb-8f89-92433b317f71", "x-ms-ratelimit-remaining-subscription-reads": "11986", - "x-ms-request-id": "f6b5ad5a-6e65-435c-b203-edb950fd8261", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T081454Z:73ee46c4-1cdf-49b6-8eea-547c64de6c71" + "x-ms-request-id": "fd2d80b1-7160-4b00-9edd-e8cd986f738f", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T092927Z:93f970e1-8b59-43bb-8f89-92433b317f71" }, "ResponseBody": { - "name": "18cbebdf-8165-5a42-b4ed-fd4a7da01257", + "name": "61d85ed9-8160-6f41-967f-0e57c9d43ca7", "status": "InProgress", - "startTime": "2022-11-28T08:11:35.5319349Z" + "startTime": "2023-02-20T09:26:07.8748332Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/dfebcb18-6581-425a-b4ed-fd4a7da01257?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/d95ed861-6081-416f-967f-0e57c9d43ca7?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-e8ae4f9c8a5bae4bb6256b1ae0aec7ce-006c7502bf486e44-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "f953a8d18eef2ac2d33395bd372cfa8f", + "traceparent": "00-be488a0602f74a0ad97ef328904eea65-07db4fe59abf618a-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "927a373562e382d4c33625cd5b7e5ecd", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -683,31 +686,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:15:26 GMT", + "Date": "Mon, 20 Feb 2023 09:29:59 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "99c01827-8888-400d-bb40-71529a0d6e2e", + "x-ms-correlation-request-id": "ef52d9eb-d186-4b33-ae53-d0960f95e4ce", "x-ms-ratelimit-remaining-subscription-reads": "11985", - "x-ms-request-id": "158774d2-6aa2-40d9-ad91-a3f3e9b21aa1", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T081526Z:99c01827-8888-400d-bb40-71529a0d6e2e" + "x-ms-request-id": "8bcf7e4e-2ab3-4ade-9d42-e2915d8f0810", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T093000Z:ef52d9eb-d186-4b33-ae53-d0960f95e4ce" }, "ResponseBody": { - "name": "18cbebdf-8165-5a42-b4ed-fd4a7da01257", + "name": "61d85ed9-8160-6f41-967f-0e57c9d43ca7", "status": "InProgress", - "startTime": "2022-11-28T08:11:35.5319349Z" + "startTime": "2023-02-20T09:26:07.8748332Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/dfebcb18-6581-425a-b4ed-fd4a7da01257?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/d95ed861-6081-416f-967f-0e57c9d43ca7?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-e8ae4f9c8a5bae4bb6256b1ae0aec7ce-df4e82f566ab2a4e-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "021c0fa6f4230af7a11cc1c0e0ee1e27", + "traceparent": "00-be488a0602f74a0ad97ef328904eea65-c462dd0c9880e172-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "5de51e5d8090626f2ef44a2cfd354bac", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -716,134 +719,99 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:15:59 GMT", + "Date": "Mon, 20 Feb 2023 09:30:32 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "85ddacfb-e3e4-4ed5-8f49-36a494e18e1c", + "x-ms-correlation-request-id": "ac15f922-c095-4b9c-958c-34f83e5082d6", "x-ms-ratelimit-remaining-subscription-reads": "11984", - "x-ms-request-id": "1ae5e4e4-cc73-4d15-990b-06b460e9c83d", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T081559Z:85ddacfb-e3e4-4ed5-8f49-36a494e18e1c" + "x-ms-request-id": "561fed2f-f196-4edc-a75c-a3d9d9766c0b", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T093032Z:ac15f922-c095-4b9c-958c-34f83e5082d6" }, "ResponseBody": { - "name": "18cbebdf-8165-5a42-b4ed-fd4a7da01257", + "name": "61d85ed9-8160-6f41-967f-0e57c9d43ca7", "status": "InProgress", - "startTime": "2022-11-28T08:11:35.5319349Z" + "startTime": "2023-02-20T09:26:07.8748332Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/dfebcb18-6581-425a-b4ed-fd4a7da01257?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/d95ed861-6081-416f-967f-0e57c9d43ca7?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "Connection": "close", - "traceparent": "00-e8ae4f9c8a5bae4bb6256b1ae0aec7ce-7cd6c4140039184a-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "061b5cba4938dadc6464a51491959f05", + "traceparent": "00-be488a0602f74a0ad97ef328904eea65-39a1877ffa32a112-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "c4d05a331d90b0ab282dcabbea931b5a", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Connection": "close", - "Content-Length": "126", + "Content-Length": "169", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:16:31 GMT", + "Date": "Mon, 20 Feb 2023 09:31:04 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "4e330b55-741a-4f6b-a811-7c023e88d7fa", + "x-ms-correlation-request-id": "3a1b92af-deff-4664-a264-8a19ea89ba0a", "x-ms-ratelimit-remaining-subscription-reads": "11983", - "x-ms-request-id": "93735727-1da9-43c1-8ab5-5017bc195a4c", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T081631Z:4e330b55-741a-4f6b-a811-7c023e88d7fa" - }, - "ResponseBody": { - "name": "18cbebdf-8165-5a42-b4ed-fd4a7da01257", - "status": "InProgress", - "startTime": "2022-11-28T08:11:35.5319349Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/dfebcb18-6581-425a-b4ed-fd4a7da01257?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-e8ae4f9c8a5bae4bb6256b1ae0aec7ce-694d3a00451e4f4e-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "8fdfa565c20edda0b14957d3cc0149e4", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "170", - "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:17:04 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "d7e6de4e-cf6f-4e75-b8c1-8a44a6e9e869", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "c924b250-ffaa-483e-a457-113e8e40cc58", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T081705Z:d7e6de4e-cf6f-4e75-b8c1-8a44a6e9e869" + "x-ms-request-id": "69b9b62c-2c9f-43d8-b939-538ee5b45d48", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T093104Z:3a1b92af-deff-4664-a264-8a19ea89ba0a" }, "ResponseBody": { - "name": "18cbebdf-8165-5a42-b4ed-fd4a7da01257", + "name": "61d85ed9-8160-6f41-967f-0e57c9d43ca7", "status": "Succeeded", - "startTime": "2022-11-28T08:11:35.5319349Z", - "endTime": "2022-11-28T08:16:42.6655727Z" + "startTime": "2023-02-20T09:26:07.8748332Z", + "endTime": "2023-02-20T09:30:59.296527Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg7424/providers/Microsoft.ContainerService/managedClusters/akscluster4904?api-version=2022-09-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg2106/providers/Microsoft.ContainerService/managedClusters/akscluster6730?api-version=2022-11-02-preview", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-e8ae4f9c8a5bae4bb6256b1ae0aec7ce-249e6693a2259340-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "db036d15f3115c5733419ebe4ee2780c", + "traceparent": "00-be488a0602f74a0ad97ef328904eea65-b21f7d9fd1d2d226-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "ee1dadf33104b559c81863ee17a7858e", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "3019", + "Content-Length": "3120", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:17:05 GMT", + "Date": "Mon, 20 Feb 2023 09:31:05 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "a76b2886-57c3-49d5-8685-3ffe9399ab94", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "d326b4f9-229f-46c2-90d3-f3e891b38339", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T081706Z:a76b2886-57c3-49d5-8685-3ffe9399ab94" + "x-ms-correlation-request-id": "39aeb14a-a0c2-4a64-8b4a-0044e161cbf2", + "x-ms-ratelimit-remaining-subscription-reads": "11982", + "x-ms-request-id": "c8714525-09e5-4fdb-87e8-b0c9a7df1b4b", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T093105Z:39aeb14a-a0c2-4a64-8b4a-0044e161cbf2" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testaksrg7424/providers/Microsoft.ContainerService/managedClusters/akscluster4904", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testaksrg2106/providers/Microsoft.ContainerService/managedClusters/akscluster6730", "location": "eastus", - "name": "akscluster4904", + "name": "akscluster6730", "type": "Microsoft.ContainerService/ManagedClusters", "properties": { "provisioningState": "Succeeded", "powerState": { "code": "Running" }, - "kubernetesVersion": "1.23.12", - "currentKubernetesVersion": "1.23.12", + "kubernetesVersion": "1.24.9", + "currentKubernetesVersion": "1.24.9", "dnsPrefix": "aksdotnetsdk", - "fqdn": "aksdotnetsdk-e60382fe.hcp.eastus.azmk8s.io", - "azurePortalFQDN": "aksdotnetsdk-e60382fe.portal.hcp.eastus.azmk8s.io", + "fqdn": "aksdotnetsdk-f89f9958.hcp.eastus.azmk8s.io", + "azurePortalFQDN": "aksdotnetsdk-f89f9958.portal.hcp.eastus.azmk8s.io", "agentPoolProfiles": [ { "name": "aksagent", @@ -858,19 +826,19 @@ "powerState": { "code": "Running" }, - "orchestratorVersion": "1.23.12", - "currentOrchestratorVersion": "1.23.12", + "orchestratorVersion": "1.24.9", + "currentOrchestratorVersion": "1.24.9", "mode": "System", "osType": "Linux", "osSKU": "Ubuntu", - "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2022.11.02", + "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2023.01.26", "enableFIPS": false } ], "servicePrincipalProfile": { "clientId": "msi" }, - "nodeResourceGroup": "MC_testaksrg7424_akscluster4904_eastus", + "nodeResourceGroup": "MC_testaksrg2106_akscluster6730_eastus", "enableRBAC": true, "networkProfile": { "networkPlugin": "kubenet", @@ -881,9 +849,10 @@ }, "effectiveOutboundIPs": [ { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/MC_testaksrg7424_akscluster4904_eastus/providers/Microsoft.Network/publicIPAddresses/21b8101d-dfcf-43ff-bd0b-2585a523d2f9" + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/MC_testaksrg2106_akscluster6730_eastus/providers/Microsoft.Network/publicIPAddresses/ce94aa0b-91e0-46bb-acd9-d5fb6639a040" } - ] + ], + "backendPoolType": "nodeIPConfiguration" }, "podCidr": "10.244.0.0/16", "serviceCidr": "10.0.0.0/16", @@ -903,15 +872,16 @@ "maxAgentPools": 100, "identityProfile": { "kubeletidentity": { - "resourceId": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/MC_testaksrg7424_akscluster4904_eastus/providers/Microsoft.ManagedIdentity/userAssignedIdentities/akscluster4904-agentpool", - "clientId": "7cd7037d-d56f-47c6-b205-17d9be1f4389", - "objectId": "944fc204-25d9-48d0-b5e0-8da703f8a18d" + "resourceId": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/MC_testaksrg2106_akscluster6730_eastus/providers/Microsoft.ManagedIdentity/userAssignedIdentities/akscluster6730-agentpool", + "clientId": "e24d6d9e-ae2d-47d3-bdf7-76a7048fd728", + "objectId": "808fdb9a-80f9-463a-9421-43a39ab0d30f" } }, "securityProfile": {}, "storageProfile": { "diskCSIDriver": { - "enabled": true + "enabled": true, + "version": "v1" }, "fileCSIDriver": { "enabled": true @@ -922,11 +892,12 @@ }, "oidcIssuerProfile": { "enabled": false - } + }, + "workloadAutoScalerProfile": {} }, "identity": { "type": "SystemAssigned", - "principalId": "e6c870e0-6d2b-45dd-8467-673c0c0b82d9", + "principalId": "596dc319-165e-4c29-9c5a-b1bf7f7c26c9", "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47" }, "sku": { @@ -936,50 +907,50 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg7424/providers/Microsoft.ContainerService/managedClusters?api-version=2022-09-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg2106/providers/Microsoft.ContainerService/managedClusters?api-version=2022-11-02-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-a2d79565c0da514999328ec2cb5beb91-3ddef6d00bd1ed49-00", - "User-Agent": "azsdk-net-ResourceManager.ContainerService/1.1.0-alpha.20221128.1 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "3a5bbc7c8e0ff818bb3d55eef2080e63", + "traceparent": "00-11f554d06bba812cd61a1fb123c17708-6582ca66b3a6403d-00", + "User-Agent": "azsdk-net-ResourceManager.ContainerService/1.2.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "009a78ea99ad3f3c72343462b5b3779b", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "3252", + "Content-Length": "3359", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:17:06 GMT", + "Date": "Mon, 20 Feb 2023 09:31:06 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "8cd49174-0ded-44a7-a97c-0a0dfa15e9cb", - "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-request-id": "95056839-3730-4226-b676-2c85755b6ddc", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T081707Z:8cd49174-0ded-44a7-a97c-0a0dfa15e9cb" + "x-ms-correlation-request-id": "a3ca09ae-1ced-44cc-bba5-b5c1e1873726", + "x-ms-ratelimit-remaining-subscription-reads": "11981", + "x-ms-request-id": "bdba4ee7-0e11-4e1b-9866-75b3435da2fa", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T093107Z:a3ca09ae-1ced-44cc-bba5-b5c1e1873726" }, "ResponseBody": { "value": [ { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testaksrg7424/providers/Microsoft.ContainerService/managedClusters/akscluster4904", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testaksrg2106/providers/Microsoft.ContainerService/managedClusters/akscluster6730", "location": "eastus", - "name": "akscluster4904", + "name": "akscluster6730", "type": "Microsoft.ContainerService/ManagedClusters", "properties": { "provisioningState": "Succeeded", "powerState": { "code": "Running" }, - "kubernetesVersion": "1.23.12", - "currentKubernetesVersion": "1.23.12", + "kubernetesVersion": "1.24.9", + "currentKubernetesVersion": "1.24.9", "dnsPrefix": "aksdotnetsdk", - "fqdn": "aksdotnetsdk-e60382fe.hcp.eastus.azmk8s.io", - "azurePortalFQDN": "aksdotnetsdk-e60382fe.portal.hcp.eastus.azmk8s.io", + "fqdn": "aksdotnetsdk-f89f9958.hcp.eastus.azmk8s.io", + "azurePortalFQDN": "aksdotnetsdk-f89f9958.portal.hcp.eastus.azmk8s.io", "agentPoolProfiles": [ { "name": "aksagent", @@ -994,19 +965,19 @@ "powerState": { "code": "Running" }, - "orchestratorVersion": "1.23.12", - "currentOrchestratorVersion": "1.23.12", + "orchestratorVersion": "1.24.9", + "currentOrchestratorVersion": "1.24.9", "mode": "System", "osType": "Linux", "osSKU": "Ubuntu", - "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2022.11.02", + "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2023.01.26", "enableFIPS": false } ], "servicePrincipalProfile": { "clientId": "msi" }, - "nodeResourceGroup": "MC_testaksrg7424_akscluster4904_eastus", + "nodeResourceGroup": "MC_testaksrg2106_akscluster6730_eastus", "enableRBAC": true, "networkProfile": { "networkPlugin": "kubenet", @@ -1017,9 +988,10 @@ }, "effectiveOutboundIPs": [ { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/MC_testaksrg7424_akscluster4904_eastus/providers/Microsoft.Network/publicIPAddresses/21b8101d-dfcf-43ff-bd0b-2585a523d2f9" + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/MC_testaksrg2106_akscluster6730_eastus/providers/Microsoft.Network/publicIPAddresses/ce94aa0b-91e0-46bb-acd9-d5fb6639a040" } - ] + ], + "backendPoolType": "nodeIPConfiguration" }, "podCidr": "10.244.0.0/16", "serviceCidr": "10.0.0.0/16", @@ -1039,15 +1011,16 @@ "maxAgentPools": 100, "identityProfile": { "kubeletidentity": { - "resourceId": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/MC_testaksrg7424_akscluster4904_eastus/providers/Microsoft.ManagedIdentity/userAssignedIdentities/akscluster4904-agentpool", - "clientId": "7cd7037d-d56f-47c6-b205-17d9be1f4389", - "objectId": "944fc204-25d9-48d0-b5e0-8da703f8a18d" + "resourceId": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/MC_testaksrg2106_akscluster6730_eastus/providers/Microsoft.ManagedIdentity/userAssignedIdentities/akscluster6730-agentpool", + "clientId": "e24d6d9e-ae2d-47d3-bdf7-76a7048fd728", + "objectId": "808fdb9a-80f9-463a-9421-43a39ab0d30f" } }, "securityProfile": {}, "storageProfile": { "diskCSIDriver": { - "enabled": true + "enabled": true, + "version": "v1" }, "fileCSIDriver": { "enabled": true @@ -1058,11 +1031,12 @@ }, "oidcIssuerProfile": { "enabled": false - } + }, + "workloadAutoScalerProfile": {} }, "identity": { "type": "SystemAssigned", - "principalId": "e6c870e0-6d2b-45dd-8467-673c0c0b82d9", + "principalId": "596dc319-165e-4c29-9c5a-b1bf7f7c26c9", "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47" }, "sku": { @@ -1074,48 +1048,48 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg7424/providers/Microsoft.ContainerService/managedClusters/akscluster4904?api-version=2022-09-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg2106/providers/Microsoft.ContainerService/managedClusters/akscluster6730?api-version=2022-11-02-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-f247f710c2a1954b9c22961c84cbd5cf-0d7a9bbbda891f49-00", - "User-Agent": "azsdk-net-ResourceManager.ContainerService/1.1.0-alpha.20221128.1 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "24ffc01bc49171f44e825ccd23e18fcf", + "traceparent": "00-bd14b309301386198d8539057554f275-1901b76c7cf48a9b-00", + "User-Agent": "azsdk-net-ResourceManager.ContainerService/1.2.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "4f39efd95d1702a7001afc77b9bd9980", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "3019", + "Content-Length": "3120", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:17:07 GMT", + "Date": "Mon, 20 Feb 2023 09:31:07 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "399ccba6-d9fd-4b5d-ad86-f6783b2bf802", - "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-request-id": "13ee9a4c-e131-410a-bda0-99e04a8ee7c5", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T081707Z:399ccba6-d9fd-4b5d-ad86-f6783b2bf802" + "x-ms-correlation-request-id": "8491cc96-22e0-49a1-ae5f-2d79437790ce", + "x-ms-ratelimit-remaining-subscription-reads": "11980", + "x-ms-request-id": "4882ff38-b14f-4ee9-81e3-a61f7ce2800a", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T093108Z:8491cc96-22e0-49a1-ae5f-2d79437790ce" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testaksrg7424/providers/Microsoft.ContainerService/managedClusters/akscluster4904", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testaksrg2106/providers/Microsoft.ContainerService/managedClusters/akscluster6730", "location": "eastus", - "name": "akscluster4904", + "name": "akscluster6730", "type": "Microsoft.ContainerService/ManagedClusters", "properties": { "provisioningState": "Succeeded", "powerState": { "code": "Running" }, - "kubernetesVersion": "1.23.12", - "currentKubernetesVersion": "1.23.12", + "kubernetesVersion": "1.24.9", + "currentKubernetesVersion": "1.24.9", "dnsPrefix": "aksdotnetsdk", - "fqdn": "aksdotnetsdk-e60382fe.hcp.eastus.azmk8s.io", - "azurePortalFQDN": "aksdotnetsdk-e60382fe.portal.hcp.eastus.azmk8s.io", + "fqdn": "aksdotnetsdk-f89f9958.hcp.eastus.azmk8s.io", + "azurePortalFQDN": "aksdotnetsdk-f89f9958.portal.hcp.eastus.azmk8s.io", "agentPoolProfiles": [ { "name": "aksagent", @@ -1130,19 +1104,19 @@ "powerState": { "code": "Running" }, - "orchestratorVersion": "1.23.12", - "currentOrchestratorVersion": "1.23.12", + "orchestratorVersion": "1.24.9", + "currentOrchestratorVersion": "1.24.9", "mode": "System", "osType": "Linux", "osSKU": "Ubuntu", - "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2022.11.02", + "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2023.01.26", "enableFIPS": false } ], "servicePrincipalProfile": { "clientId": "msi" }, - "nodeResourceGroup": "MC_testaksrg7424_akscluster4904_eastus", + "nodeResourceGroup": "MC_testaksrg2106_akscluster6730_eastus", "enableRBAC": true, "networkProfile": { "networkPlugin": "kubenet", @@ -1153,9 +1127,10 @@ }, "effectiveOutboundIPs": [ { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/MC_testaksrg7424_akscluster4904_eastus/providers/Microsoft.Network/publicIPAddresses/21b8101d-dfcf-43ff-bd0b-2585a523d2f9" + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/MC_testaksrg2106_akscluster6730_eastus/providers/Microsoft.Network/publicIPAddresses/ce94aa0b-91e0-46bb-acd9-d5fb6639a040" } - ] + ], + "backendPoolType": "nodeIPConfiguration" }, "podCidr": "10.244.0.0/16", "serviceCidr": "10.0.0.0/16", @@ -1175,15 +1150,16 @@ "maxAgentPools": 100, "identityProfile": { "kubeletidentity": { - "resourceId": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/MC_testaksrg7424_akscluster4904_eastus/providers/Microsoft.ManagedIdentity/userAssignedIdentities/akscluster4904-agentpool", - "clientId": "7cd7037d-d56f-47c6-b205-17d9be1f4389", - "objectId": "944fc204-25d9-48d0-b5e0-8da703f8a18d" + "resourceId": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/MC_testaksrg2106_akscluster6730_eastus/providers/Microsoft.ManagedIdentity/userAssignedIdentities/akscluster6730-agentpool", + "clientId": "e24d6d9e-ae2d-47d3-bdf7-76a7048fd728", + "objectId": "808fdb9a-80f9-463a-9421-43a39ab0d30f" } }, "securityProfile": {}, "storageProfile": { "diskCSIDriver": { - "enabled": true + "enabled": true, + "version": "v1" }, "fileCSIDriver": { "enabled": true @@ -1194,11 +1170,12 @@ }, "oidcIssuerProfile": { "enabled": false - } + }, + "workloadAutoScalerProfile": {} }, "identity": { "type": "SystemAssigned", - "principalId": "e6c870e0-6d2b-45dd-8467-673c0c0b82d9", + "principalId": "596dc319-165e-4c29-9c5a-b1bf7f7c26c9", "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47" }, "sku": { @@ -1208,143 +1185,44 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg7424/providers/Microsoft.ContainerService/managedClusters/akscluster4904?api-version=2022-09-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg2106/providers/Microsoft.ContainerService/managedClusters/akscluster6730?api-version=2022-11-02-preview", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-fbbad5f627c03a49b80fb6088ef1cf62-0aa35d7c15d4fc4c-00", - "User-Agent": "azsdk-net-ResourceManager.ContainerService/1.1.0-alpha.20221128.1 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "0f564bd10ea586d4540b1fd39d686a2a", + "traceparent": "00-75fd36555c39043edf3410a28c4a39e6-392982bfee20449e-00", + "User-Agent": "azsdk-net-ResourceManager.ContainerService/1.2.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "71d03ba81af959ad70dd7bd0fcf7ff14", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/8267a550-da62-41fa-94bf-26fdd7ea79d7?api-version=2017-08-31", + "azure-asyncoperation": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/412d0a68-e0e3-418b-bb60-28d4aefd013f?api-version=2017-08-31", "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 28 Nov 2022 08:17:09 GMT", + "Date": "Mon, 20 Feb 2023 09:31:09 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operationresults/8267a550-da62-41fa-94bf-26fdd7ea79d7?api-version=2017-08-31", + "Location": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operationresults/412d0a68-e0e3-418b-bb60-28d4aefd013f?api-version=2017-08-31", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "da6d895e-d61c-4eca-bd13-ddc03500a8e2", + "x-ms-correlation-request-id": "bf2e95c4-a803-41fa-811a-ffb024af48e5", "x-ms-ratelimit-remaining-subscription-deletes": "14999", - "x-ms-request-id": "8267a550-da62-41fa-94bf-26fdd7ea79d7", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T081710Z:da6d895e-d61c-4eca-bd13-ddc03500a8e2" + "x-ms-request-id": "412d0a68-e0e3-418b-bb60-28d4aefd013f", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T093110Z:bf2e95c4-a803-41fa-811a-ffb024af48e5" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/8267a550-da62-41fa-94bf-26fdd7ea79d7?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-fbbad5f627c03a49b80fb6088ef1cf62-189e90a931e8eb41-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "a61d86aefeb20cbdeb78cf85a420d4e6", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "126", - "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:17:10 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "22ca899e-9442-4505-a009-e73105b7a426", - "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "52a076cb-ed61-40b7-ac02-443d27189771", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T081710Z:22ca899e-9442-4505-a009-e73105b7a426" - }, - "ResponseBody": { - "name": "50a56782-62da-fa41-94bf-26fdd7ea79d7", - "status": "InProgress", - "startTime": "2022-11-28T08:17:10.0167334Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/8267a550-da62-41fa-94bf-26fdd7ea79d7?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-fbbad5f627c03a49b80fb6088ef1cf62-923925cbe0b33d45-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "e89a3218003d7decd09e47bb22475409", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "126", - "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:17:11 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "8053dcbd-e610-422d-acba-8dace14c33f3", - "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "95bcb471-6955-4e40-8618-0b5e6c85c747", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T081712Z:8053dcbd-e610-422d-acba-8dace14c33f3" - }, - "ResponseBody": { - "name": "50a56782-62da-fa41-94bf-26fdd7ea79d7", - "status": "InProgress", - "startTime": "2022-11-28T08:17:10.0167334Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/8267a550-da62-41fa-94bf-26fdd7ea79d7?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-fbbad5f627c03a49b80fb6088ef1cf62-878c42e5b1536242-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "17244537c34a34777e97a26a84f513a7", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "126", - "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:17:12 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "e2a954df-9d42-4b0b-8566-ee3915446e33", - "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-request-id": "ea8725a2-ac0d-4c7f-9e58-ade2b6257eb9", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T081713Z:e2a954df-9d42-4b0b-8566-ee3915446e33" - }, - "ResponseBody": { - "name": "50a56782-62da-fa41-94bf-26fdd7ea79d7", - "status": "InProgress", - "startTime": "2022-11-28T08:17:10.0167334Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/8267a550-da62-41fa-94bf-26fdd7ea79d7?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/412d0a68-e0e3-418b-bb60-28d4aefd013f?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-fbbad5f627c03a49b80fb6088ef1cf62-dd1387981c24314b-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "00750616ebb1ad9c9a9fd614b701e9a3", + "traceparent": "00-75fd36555c39043edf3410a28c4a39e6-9e215b59198a057c-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "7abab39b05e3bea142e0de39e1d70509", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1353,31 +1231,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:17:14 GMT", + "Date": "Mon, 20 Feb 2023 09:31:09 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "15252c4a-4d1e-4a55-aae8-08e1195c241c", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "39f38894-2d33-4351-9482-3d125b24b4ca", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T081714Z:15252c4a-4d1e-4a55-aae8-08e1195c241c" + "x-ms-correlation-request-id": "ef409263-54f1-476e-9596-abb767417305", + "x-ms-ratelimit-remaining-subscription-reads": "11979", + "x-ms-request-id": "bb81a5e1-ca86-4e4e-9ae8-4f83d2e79ad9", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T093110Z:ef409263-54f1-476e-9596-abb767417305" }, "ResponseBody": { - "name": "50a56782-62da-fa41-94bf-26fdd7ea79d7", + "name": "680a2d41-e3e0-8b41-bb60-28d4aefd013f", "status": "InProgress", - "startTime": "2022-11-28T08:17:10.0167334Z" + "startTime": "2023-02-20T09:31:09.9515374Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/8267a550-da62-41fa-94bf-26fdd7ea79d7?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/412d0a68-e0e3-418b-bb60-28d4aefd013f?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-fbbad5f627c03a49b80fb6088ef1cf62-15571099e5440448-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "5f4ec624bcfc549bba666aa65e82f8db", + "traceparent": "00-75fd36555c39043edf3410a28c4a39e6-7e48bc2b1c6e278c-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "f1d7e81b71a87212c543a0611b19bcab", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1386,31 +1264,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:17:16 GMT", + "Date": "Mon, 20 Feb 2023 09:31:11 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "05cf703a-b9a9-44a5-8b1b-aafa8d5aa1c0", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "c68523bd-8abe-4c72-9feb-5f28dc2782c7", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T081717Z:05cf703a-b9a9-44a5-8b1b-aafa8d5aa1c0" + "x-ms-correlation-request-id": "080c19b8-ac7d-48ae-bcab-a9426689285a", + "x-ms-ratelimit-remaining-subscription-reads": "11978", + "x-ms-request-id": "43fa9dcc-46a5-4b13-a518-315ef877742e", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T093111Z:080c19b8-ac7d-48ae-bcab-a9426689285a" }, "ResponseBody": { - "name": "50a56782-62da-fa41-94bf-26fdd7ea79d7", + "name": "680a2d41-e3e0-8b41-bb60-28d4aefd013f", "status": "InProgress", - "startTime": "2022-11-28T08:17:10.0167334Z" + "startTime": "2023-02-20T09:31:09.9515374Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/8267a550-da62-41fa-94bf-26fdd7ea79d7?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/412d0a68-e0e3-418b-bb60-28d4aefd013f?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-fbbad5f627c03a49b80fb6088ef1cf62-59af5360e9b5b24b-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "1ca59f8a53d24b57a8767cabec637c7c", + "traceparent": "00-75fd36555c39043edf3410a28c4a39e6-091ac3825c439bcf-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "4834c557853c9b312656e48d573cabf9", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1419,31 +1297,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:17:20 GMT", + "Date": "Mon, 20 Feb 2023 09:31:12 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "3b674422-6979-4a71-b2e3-274c28f8b277", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "e5226082-e27d-4c5b-bc1b-714a64f47374", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T081721Z:3b674422-6979-4a71-b2e3-274c28f8b277" + "x-ms-correlation-request-id": "df0beca7-6d8e-4ea9-b014-3c4808a12f59", + "x-ms-ratelimit-remaining-subscription-reads": "11977", + "x-ms-request-id": "9a90e890-2606-4106-b657-1927e00a5f01", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T093113Z:df0beca7-6d8e-4ea9-b014-3c4808a12f59" }, "ResponseBody": { - "name": "50a56782-62da-fa41-94bf-26fdd7ea79d7", + "name": "680a2d41-e3e0-8b41-bb60-28d4aefd013f", "status": "InProgress", - "startTime": "2022-11-28T08:17:10.0167334Z" + "startTime": "2023-02-20T09:31:09.9515374Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/8267a550-da62-41fa-94bf-26fdd7ea79d7?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/412d0a68-e0e3-418b-bb60-28d4aefd013f?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-fbbad5f627c03a49b80fb6088ef1cf62-39f43a443d35244c-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "be45feadb4a659ab6b20464a81f64f17", + "traceparent": "00-75fd36555c39043edf3410a28c4a39e6-bb53e266081dd273-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "b477f59294ed290da047b49f6440a328", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1452,31 +1330,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:17:29 GMT", + "Date": "Mon, 20 Feb 2023 09:31:13 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "11af44e2-4f86-42f1-8047-2d87fcdd1fc2", - "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "cb7f8508-9df4-4a8c-8b60-0a41101810e0", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T081730Z:11af44e2-4f86-42f1-8047-2d87fcdd1fc2" + "x-ms-correlation-request-id": "afbf8c48-dd37-4e79-9b10-96ae93579b48", + "x-ms-ratelimit-remaining-subscription-reads": "11976", + "x-ms-request-id": "e010d268-5150-4484-bf74-3f712cdf92f8", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T093114Z:afbf8c48-dd37-4e79-9b10-96ae93579b48" }, "ResponseBody": { - "name": "50a56782-62da-fa41-94bf-26fdd7ea79d7", + "name": "680a2d41-e3e0-8b41-bb60-28d4aefd013f", "status": "InProgress", - "startTime": "2022-11-28T08:17:10.0167334Z" + "startTime": "2023-02-20T09:31:09.9515374Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/8267a550-da62-41fa-94bf-26fdd7ea79d7?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/412d0a68-e0e3-418b-bb60-28d4aefd013f?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-fbbad5f627c03a49b80fb6088ef1cf62-89a3f88ba1b73748-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "178afba7cd5cd1d16e03b6853ff06756", + "traceparent": "00-75fd36555c39043edf3410a28c4a39e6-9f1b5cc11c08c1b4-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "1be23224bca295ccb73cca528d851b88", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1485,31 +1363,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:17:45 GMT", + "Date": "Mon, 20 Feb 2023 09:31:16 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "7957ff0d-c52d-435d-b86f-779b4f3bf5bb", - "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "e4dad0fd-677d-4e81-8924-2b837b9b0bba", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T081746Z:7957ff0d-c52d-435d-b86f-779b4f3bf5bb" + "x-ms-correlation-request-id": "5507e74b-3407-4bfb-9a8f-56c6f7e0d35c", + "x-ms-ratelimit-remaining-subscription-reads": "11975", + "x-ms-request-id": "2d099b21-5da8-4e12-9ca7-2c11cdf16166", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T093116Z:5507e74b-3407-4bfb-9a8f-56c6f7e0d35c" }, "ResponseBody": { - "name": "50a56782-62da-fa41-94bf-26fdd7ea79d7", + "name": "680a2d41-e3e0-8b41-bb60-28d4aefd013f", "status": "InProgress", - "startTime": "2022-11-28T08:17:10.0167334Z" + "startTime": "2023-02-20T09:31:09.9515374Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/8267a550-da62-41fa-94bf-26fdd7ea79d7?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/412d0a68-e0e3-418b-bb60-28d4aefd013f?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-fbbad5f627c03a49b80fb6088ef1cf62-3756fbc7daa7db4b-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "5ff9ede9393cd534f34cb0b20d0dcab1", + "traceparent": "00-75fd36555c39043edf3410a28c4a39e6-c3e887eaac84bdda-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "25cea79807a1c3beb80ba8f5d09136e6", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1518,31 +1396,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:18:18 GMT", + "Date": "Mon, 20 Feb 2023 09:31:20 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "5b578df4-2541-4935-9b1d-6344d673e25a", - "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-request-id": "9d6b6810-086e-4be8-812e-d56759f796de", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T081818Z:5b578df4-2541-4935-9b1d-6344d673e25a" + "x-ms-correlation-request-id": "1012e027-2fba-4cb3-96b0-96fc70322739", + "x-ms-ratelimit-remaining-subscription-reads": "11974", + "x-ms-request-id": "7bae652f-c7d5-4329-bf2c-8eaa5c4be311", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T093121Z:1012e027-2fba-4cb3-96b0-96fc70322739" }, "ResponseBody": { - "name": "50a56782-62da-fa41-94bf-26fdd7ea79d7", + "name": "680a2d41-e3e0-8b41-bb60-28d4aefd013f", "status": "InProgress", - "startTime": "2022-11-28T08:17:10.0167334Z" + "startTime": "2023-02-20T09:31:09.9515374Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/8267a550-da62-41fa-94bf-26fdd7ea79d7?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/412d0a68-e0e3-418b-bb60-28d4aefd013f?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-fbbad5f627c03a49b80fb6088ef1cf62-419ed10aea608e43-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "f103652764d9df202d7450a3fd26197a", + "traceparent": "00-75fd36555c39043edf3410a28c4a39e6-84dd01edc8dd3c28-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "2469bbb28f5ad55628e2fdb1c9ba9c1b", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1551,31 +1429,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:18:50 GMT", + "Date": "Mon, 20 Feb 2023 09:31:29 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "59be9a3b-faf1-43ed-854e-2f9852ff87cb", - "x-ms-ratelimit-remaining-subscription-reads": "11986", - "x-ms-request-id": "1390ae10-b8e0-4462-b847-a4974f10b455", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T081851Z:59be9a3b-faf1-43ed-854e-2f9852ff87cb" + "x-ms-correlation-request-id": "7b216294-a5c4-4afd-8a62-70f3d7538d2e", + "x-ms-ratelimit-remaining-subscription-reads": "11973", + "x-ms-request-id": "e609dce5-2b5d-4ef7-a71e-4172f2f25407", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T093130Z:7b216294-a5c4-4afd-8a62-70f3d7538d2e" }, "ResponseBody": { - "name": "50a56782-62da-fa41-94bf-26fdd7ea79d7", + "name": "680a2d41-e3e0-8b41-bb60-28d4aefd013f", "status": "InProgress", - "startTime": "2022-11-28T08:17:10.0167334Z" + "startTime": "2023-02-20T09:31:09.9515374Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/8267a550-da62-41fa-94bf-26fdd7ea79d7?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/412d0a68-e0e3-418b-bb60-28d4aefd013f?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-fbbad5f627c03a49b80fb6088ef1cf62-222e447d87691d43-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "9361efb9effd6ddac6b4240f1d1ec361", + "traceparent": "00-75fd36555c39043edf3410a28c4a39e6-71b3c510e2a7f153-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "bc062b2b7d711d86741e639714d7c425", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1584,31 +1462,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:19:22 GMT", + "Date": "Mon, 20 Feb 2023 09:31:47 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "e874b1cc-cd9e-4d4e-a49c-06ff4d2cfcfc", - "x-ms-ratelimit-remaining-subscription-reads": "11985", - "x-ms-request-id": "81c89ef9-b4b4-4148-a1f1-64c5a47604bd", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T081923Z:e874b1cc-cd9e-4d4e-a49c-06ff4d2cfcfc" + "x-ms-correlation-request-id": "52e45a26-33c8-4fb6-b117-002d486af723", + "x-ms-ratelimit-remaining-subscription-reads": "11972", + "x-ms-request-id": "ac21364e-0378-4aea-9f54-40c1d913dd7b", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T093147Z:52e45a26-33c8-4fb6-b117-002d486af723" }, "ResponseBody": { - "name": "50a56782-62da-fa41-94bf-26fdd7ea79d7", + "name": "680a2d41-e3e0-8b41-bb60-28d4aefd013f", "status": "InProgress", - "startTime": "2022-11-28T08:17:10.0167334Z" + "startTime": "2023-02-20T09:31:09.9515374Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/8267a550-da62-41fa-94bf-26fdd7ea79d7?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/412d0a68-e0e3-418b-bb60-28d4aefd013f?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-fbbad5f627c03a49b80fb6088ef1cf62-2e3127b8c069954b-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "da5d043975ec847dcd1932c8e991d7cd", + "traceparent": "00-75fd36555c39043edf3410a28c4a39e6-bc8e1b35ad69ba82-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "d19fe405f71b092e51f8fcbf0a0cf9fd", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1617,31 +1495,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:19:55 GMT", + "Date": "Mon, 20 Feb 2023 09:32:19 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "fc7dfc4f-199c-4683-932c-9c90dac5ae62", - "x-ms-ratelimit-remaining-subscription-reads": "11984", - "x-ms-request-id": "506f2eb9-99b2-4e27-8230-711c41df98c4", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T081955Z:fc7dfc4f-199c-4683-932c-9c90dac5ae62" + "x-ms-correlation-request-id": "3e83d72a-4a77-4265-aac4-335c65f85b05", + "x-ms-ratelimit-remaining-subscription-reads": "11971", + "x-ms-request-id": "63b1ae3d-a4f8-46c0-81d1-c8221e16d3fc", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T093219Z:3e83d72a-4a77-4265-aac4-335c65f85b05" }, "ResponseBody": { - "name": "50a56782-62da-fa41-94bf-26fdd7ea79d7", + "name": "680a2d41-e3e0-8b41-bb60-28d4aefd013f", "status": "InProgress", - "startTime": "2022-11-28T08:17:10.0167334Z" + "startTime": "2023-02-20T09:31:09.9515374Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/8267a550-da62-41fa-94bf-26fdd7ea79d7?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/412d0a68-e0e3-418b-bb60-28d4aefd013f?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-fbbad5f627c03a49b80fb6088ef1cf62-9b7f8e1f36c9554f-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "1ef8353336ab38b48a962b244010c20e", + "traceparent": "00-75fd36555c39043edf3410a28c4a39e6-ceb0f86546c6c324-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "a4c98c6f798a3474344caf3b2cbfc151", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1650,31 +1528,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:20:27 GMT", + "Date": "Mon, 20 Feb 2023 09:32:51 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "71e646b5-2b20-4fad-a14a-349d5345ef30", - "x-ms-ratelimit-remaining-subscription-reads": "11983", - "x-ms-request-id": "01e345d5-20ad-46d0-a9f2-5b0f72ac57b2", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T082028Z:71e646b5-2b20-4fad-a14a-349d5345ef30" + "x-ms-correlation-request-id": "755477c7-4f84-4db1-837b-08755401cb28", + "x-ms-ratelimit-remaining-subscription-reads": "11970", + "x-ms-request-id": "9d1b34d9-72f1-4884-bafd-a6cb60eb0aee", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T093252Z:755477c7-4f84-4db1-837b-08755401cb28" }, "ResponseBody": { - "name": "50a56782-62da-fa41-94bf-26fdd7ea79d7", + "name": "680a2d41-e3e0-8b41-bb60-28d4aefd013f", "status": "InProgress", - "startTime": "2022-11-28T08:17:10.0167334Z" + "startTime": "2023-02-20T09:31:09.9515374Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/8267a550-da62-41fa-94bf-26fdd7ea79d7?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/412d0a68-e0e3-418b-bb60-28d4aefd013f?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-fbbad5f627c03a49b80fb6088ef1cf62-12ee14e777db4e4d-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "f96aefb03ec8438e71dcc5e3bc128435", + "traceparent": "00-75fd36555c39043edf3410a28c4a39e6-a93519aebe51e783-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "e5acd71dca1b3400fdfd6b7881c71267", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1683,31 +1561,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:20:59 GMT", + "Date": "Mon, 20 Feb 2023 09:33:28 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "f1c61a94-6a3b-40e1-8329-01b9076df199", - "x-ms-ratelimit-remaining-subscription-reads": "11982", - "x-ms-request-id": "80ae039f-12f0-4932-8c9d-fd1de3385113", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T082100Z:f1c61a94-6a3b-40e1-8329-01b9076df199" + "x-ms-correlation-request-id": "3be907dc-3a11-4632-a396-1025148ac63c", + "x-ms-ratelimit-remaining-subscription-reads": "11969", + "x-ms-request-id": "aa0e9beb-0c24-47d6-b8ea-789c81dd7bc8", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T093329Z:3be907dc-3a11-4632-a396-1025148ac63c" }, "ResponseBody": { - "name": "50a56782-62da-fa41-94bf-26fdd7ea79d7", + "name": "680a2d41-e3e0-8b41-bb60-28d4aefd013f", "status": "InProgress", - "startTime": "2022-11-28T08:17:10.0167334Z" + "startTime": "2023-02-20T09:31:09.9515374Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/8267a550-da62-41fa-94bf-26fdd7ea79d7?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/412d0a68-e0e3-418b-bb60-28d4aefd013f?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-fbbad5f627c03a49b80fb6088ef1cf62-3fb6cd8207afe246-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "e7dc56dda52502b5502550564a5944bc", + "traceparent": "00-75fd36555c39043edf3410a28c4a39e6-b0dbc2c64d0a26fc-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "88286525200e8b9a6f6a9ccf47f2dd92", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1716,66 +1594,64 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:21:32 GMT", + "Date": "Mon, 20 Feb 2023 09:34:00 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "c8e974f5-6744-4488-add1-8e720d05c42c", - "x-ms-ratelimit-remaining-subscription-reads": "11981", - "x-ms-request-id": "59b784e3-26fd-43f8-a8c0-81890f52bbcc", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T082132Z:c8e974f5-6744-4488-add1-8e720d05c42c" + "x-ms-correlation-request-id": "12ab8bb9-5ca7-4702-b7be-3d05c2824c83", + "x-ms-ratelimit-remaining-subscription-reads": "11968", + "x-ms-request-id": "3b759858-7e70-4e31-a9ca-447f29e795b4", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T093401Z:12ab8bb9-5ca7-4702-b7be-3d05c2824c83" }, "ResponseBody": { - "name": "50a56782-62da-fa41-94bf-26fdd7ea79d7", + "name": "680a2d41-e3e0-8b41-bb60-28d4aefd013f", "status": "InProgress", - "startTime": "2022-11-28T08:17:10.0167334Z" + "startTime": "2023-02-20T09:31:09.9515374Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/8267a550-da62-41fa-94bf-26fdd7ea79d7?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/412d0a68-e0e3-418b-bb60-28d4aefd013f?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "Connection": "close", - "traceparent": "00-fbbad5f627c03a49b80fb6088ef1cf62-d12ac157fd69c945-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "f9172357de27f405a7b5accf70d07b77", + "traceparent": "00-75fd36555c39043edf3410a28c4a39e6-da390b1ca6110e50-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "32a2ab371360a4e28c94a78d0dfcb36d", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Connection": "close", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:22:05 GMT", + "Date": "Mon, 20 Feb 2023 09:34:34 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "4dc94ab1-3150-44fe-87bd-410e04ff7824", - "x-ms-ratelimit-remaining-subscription-reads": "11980", - "x-ms-request-id": "cd8ac86e-8b4b-4e74-9848-080d4cd1274b", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T082206Z:4dc94ab1-3150-44fe-87bd-410e04ff7824" + "x-ms-correlation-request-id": "e81835e1-c466-470e-a2cb-da2766d27569", + "x-ms-ratelimit-remaining-subscription-reads": "11967", + "x-ms-request-id": "3fa6c1e1-4972-4f64-a0dc-b0ca5f4d458a", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T093434Z:e81835e1-c466-470e-a2cb-da2766d27569" }, "ResponseBody": { - "name": "50a56782-62da-fa41-94bf-26fdd7ea79d7", + "name": "680a2d41-e3e0-8b41-bb60-28d4aefd013f", "status": "InProgress", - "startTime": "2022-11-28T08:17:10.0167334Z" + "startTime": "2023-02-20T09:31:09.9515374Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/8267a550-da62-41fa-94bf-26fdd7ea79d7?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/412d0a68-e0e3-418b-bb60-28d4aefd013f?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-fbbad5f627c03a49b80fb6088ef1cf62-b4ab8dc625f3c54b-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "ea47f611db340be83a67a8a2ed38f818", + "traceparent": "00-75fd36555c39043edf3410a28c4a39e6-b31fc3d17be336cf-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "c61647393897fd433d2076b12e30ec0a", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1784,31 +1660,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:22:38 GMT", + "Date": "Mon, 20 Feb 2023 09:35:06 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "bf0cbe41-11d3-410e-b761-502e2bfcdedb", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "f30a09bf-83d2-44d7-8c85-314ee1e5379e", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T082239Z:bf0cbe41-11d3-410e-b761-502e2bfcdedb" + "x-ms-correlation-request-id": "1d95c5a3-892c-4d76-9cc1-44619b0662b8", + "x-ms-ratelimit-remaining-subscription-reads": "11966", + "x-ms-request-id": "06e70df8-0d42-45f7-a398-9bb9ee7e285a", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T093507Z:1d95c5a3-892c-4d76-9cc1-44619b0662b8" }, "ResponseBody": { - "name": "50a56782-62da-fa41-94bf-26fdd7ea79d7", + "name": "680a2d41-e3e0-8b41-bb60-28d4aefd013f", "status": "InProgress", - "startTime": "2022-11-28T08:17:10.0167334Z" + "startTime": "2023-02-20T09:31:09.9515374Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/8267a550-da62-41fa-94bf-26fdd7ea79d7?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/412d0a68-e0e3-418b-bb60-28d4aefd013f?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-fbbad5f627c03a49b80fb6088ef1cf62-68564ef5fac7cd4b-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "998c09988afaff0d50e73f70f8e5927f", + "traceparent": "00-75fd36555c39043edf3410a28c4a39e6-1ef67bf55d49b8f1-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "d640d920e02411078283fc79780d7d73", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1817,130 +1693,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:23:11 GMT", + "Date": "Mon, 20 Feb 2023 09:35:38 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "c9bb3745-41e5-4d25-9e85-288422d08d17", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "2bfaa050-e14d-4cc8-ad69-d81c7bed3813", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T082311Z:c9bb3745-41e5-4d25-9e85-288422d08d17" + "x-ms-correlation-request-id": "c66f1d18-984c-4c4f-9172-be73e33e9db1", + "x-ms-ratelimit-remaining-subscription-reads": "11965", + "x-ms-request-id": "763721fd-4775-4f6d-be95-b91963d27b2d", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T093539Z:c66f1d18-984c-4c4f-9172-be73e33e9db1" }, "ResponseBody": { - "name": "50a56782-62da-fa41-94bf-26fdd7ea79d7", + "name": "680a2d41-e3e0-8b41-bb60-28d4aefd013f", "status": "InProgress", - "startTime": "2022-11-28T08:17:10.0167334Z" + "startTime": "2023-02-20T09:31:09.9515374Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/8267a550-da62-41fa-94bf-26fdd7ea79d7?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/412d0a68-e0e3-418b-bb60-28d4aefd013f?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-fbbad5f627c03a49b80fb6088ef1cf62-eeb1f435236abb49-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "5444d8aa59127b883a0bbfbf3563066f", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "126", - "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:23:43 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "12928c9b-cf52-494d-a8f1-87bc3aa1c5ff", - "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-request-id": "04d7b208-c602-4098-a6e5-f78a2ad74087", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T082344Z:12928c9b-cf52-494d-a8f1-87bc3aa1c5ff" - }, - "ResponseBody": { - "name": "50a56782-62da-fa41-94bf-26fdd7ea79d7", - "status": "InProgress", - "startTime": "2022-11-28T08:17:10.0167334Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/8267a550-da62-41fa-94bf-26fdd7ea79d7?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-fbbad5f627c03a49b80fb6088ef1cf62-20ec1b6dbe79de4a-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "673794bde243877de8489a4c9b781354", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "126", - "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:24:15 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "fcfea423-67a0-481f-a5fc-fdc4e3a60822", - "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-request-id": "afb276de-383c-4f09-955e-495134eb5e48", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T082416Z:fcfea423-67a0-481f-a5fc-fdc4e3a60822" - }, - "ResponseBody": { - "name": "50a56782-62da-fa41-94bf-26fdd7ea79d7", - "status": "InProgress", - "startTime": "2022-11-28T08:17:10.0167334Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/8267a550-da62-41fa-94bf-26fdd7ea79d7?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-fbbad5f627c03a49b80fb6088ef1cf62-2481ca1693e04c47-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "15f829d5a3f33e0680105eeecb4ec9ed", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "126", - "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:24:48 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "f38fbdcb-63f5-45f0-866b-04924f6f788a", - "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "e564f42b-75cf-438b-af50-3dca74f5e3e7", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T082448Z:f38fbdcb-63f5-45f0-866b-04924f6f788a" - }, - "ResponseBody": { - "name": "50a56782-62da-fa41-94bf-26fdd7ea79d7", - "status": "InProgress", - "startTime": "2022-11-28T08:17:10.0167334Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/8267a550-da62-41fa-94bf-26fdd7ea79d7?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-fbbad5f627c03a49b80fb6088ef1cf62-e0edd2e7a32edf43-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "63b3d0e12aaec73b5bbd6cc9bf3ce0c2", + "traceparent": "00-75fd36555c39043edf3410a28c4a39e6-728687a17911cd37-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "00952fb616dcfefa67a5f5409d30765b", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1949,29 +1726,29 @@ "Cache-Control": "no-cache", "Content-Length": "170", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:25:20 GMT", + "Date": "Mon, 20 Feb 2023 09:36:11 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "2233adf7-45ad-4b39-a22c-00070ba5966b", - "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "e6cb1c25-b21c-4e94-87ee-d35f08ae3c31", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T082521Z:2233adf7-45ad-4b39-a22c-00070ba5966b" + "x-ms-correlation-request-id": "fda5995e-c2fb-4f74-a654-5b89ad34a591", + "x-ms-ratelimit-remaining-subscription-reads": "11964", + "x-ms-request-id": "9de2d2ab-573c-429e-8b27-4908cdcc4ba9", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T093611Z:fda5995e-c2fb-4f74-a654-5b89ad34a591" }, "ResponseBody": { - "name": "50a56782-62da-fa41-94bf-26fdd7ea79d7", + "name": "680a2d41-e3e0-8b41-bb60-28d4aefd013f", "status": "Succeeded", - "startTime": "2022-11-28T08:17:10.0167334Z", - "endTime": "2022-11-28T08:25:07.4911328Z" + "startTime": "2023-02-20T09:31:09.9515374Z", + "endTime": "2023-02-20T09:35:47.3590941Z" } } ], "Variables": { "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com", - "RandomSeed": "1739250262", - "RESOURCE_MANAGER_URL": null, + "RandomSeed": "1602568188", + "RESOURCE_MANAGER_URL": "https://management.azure.com/", "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" } } diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/tests/SessionRecords/ContainerServiceCollectionTests/CreateListGetDelete()Async.json b/sdk/containerservice/Azure.ResourceManager.ContainerService/tests/SessionRecords/ContainerServiceCollectionTests/CreateListGetDelete()Async.json index f77eba4719cd2..46efb4fb6e7dd 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/tests/SessionRecords/ContainerServiceCollectionTests/CreateListGetDelete()Async.json +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/tests/SessionRecords/ContainerServiceCollectionTests/CreateListGetDelete()Async.json @@ -6,9 +6,9 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-7168c23ff4c4ef4b9315ed1c30ae7420-0c59a5dd7f92e545-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "307fca0e1557cefba78dc71813b35247", + "traceparent": "00-a6d09b606bf6803f447268e5c5748db7-456fe80aea13f812-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "ecf586e7b8ffa6895777bc9cf7dde024", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -17,15 +17,15 @@ "Cache-Control": "no-cache", "Content-Length": "748", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 28 Nov 2022 08:58:16 GMT", + "Date": "Mon, 20 Feb 2023 10:06:21 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "1e180d78-aa80-4785-950f-505a2d3b04f4", - "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "1e180d78-aa80-4785-950f-505a2d3b04f4", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T085817Z:1e180d78-aa80-4785-950f-505a2d3b04f4" + "x-ms-correlation-request-id": "614a4413-e664-40cc-9074-16e8ae070913", + "x-ms-ratelimit-remaining-subscription-reads": "11942", + "x-ms-request-id": "614a4413-e664-40cc-9074-16e8ae070913", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T100622Z:614a4413-e664-40cc-9074-16e8ae070913" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", @@ -56,16 +56,16 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testaksrg8855?api-version=**", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testaksrg6847?api-version=**", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "21", "Content-Type": "application/json", - "traceparent": "00-66842003bbc9934faaeeaa20b69c1972-5225f7740327bb48-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "f46bc9e793757c29dd9ea8285b620db1", + "traceparent": "00-a18dfad7cbf9d244d26ade2781a604ff-cf217e76dfae6e03-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "638b4ff8c68ba0467d1a0bcbb789732c", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -76,19 +76,19 @@ "Cache-Control": "no-cache", "Content-Length": "223", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 28 Nov 2022 08:58:21 GMT", + "Date": "Mon, 20 Feb 2023 10:06:24 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "2cee1758-640b-4ac9-991e-889e0e25b4a9", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "2cee1758-640b-4ac9-991e-889e0e25b4a9", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T085822Z:2cee1758-640b-4ac9-991e-889e0e25b4a9" + "x-ms-correlation-request-id": "ef243e7f-7ac5-411e-b987-56d4de839aad", + "x-ms-ratelimit-remaining-subscription-writes": "1196", + "x-ms-request-id": "ef243e7f-7ac5-411e-b987-56d4de839aad", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T100625Z:ef243e7f-7ac5-411e-b987-56d4de839aad" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg8855", - "name": "testaksrg8855", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg6847", + "name": "testaksrg6847", "type": "Microsoft.Resources/resourceGroups", "location": "eastus", "properties": { @@ -97,16 +97,16 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg8855/providers/Microsoft.ContainerService/managedClusters/akscluster5420?api-version=2022-09-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg6847/providers/Microsoft.ContainerService/managedClusters/akscluster3592?api-version=2022-11-02-preview", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "205", "Content-Type": "application/json", - "traceparent": "00-ea0a956c044ed34cb3119f759ecaf783-de5c821b1707d54e-00", - "User-Agent": "azsdk-net-ResourceManager.ContainerService/1.1.0-alpha.20221128.1 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "f80d8171aaa746fd589b7185ab97b4f0", + "traceparent": "00-bd2f65762d94ff1e72c72c82ae10546f-a56c65a000cfe757-00", + "User-Agent": "azsdk-net-ResourceManager.ContainerService/1.2.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "f5d2a75060684daadb1662626e23d6e0", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -129,36 +129,36 @@ }, "StatusCode": 201, "ResponseHeaders": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/cd06cd63-94fd-4f3c-bb23-f0885e766599?api-version=2017-08-31", + "azure-asyncoperation": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/49ee415c-3023-4a87-b998-aa4d7c9ddfd0?api-version=2017-08-31", "Cache-Control": "no-cache", - "Content-Length": "2372", + "Content-Length": "2473", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:58:37 GMT", + "Date": "Mon, 20 Feb 2023 10:06:35 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "4c97b956-01af-44bd-ac76-6fea53986aba", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "cd06cd63-94fd-4f3c-bb23-f0885e766599", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T085837Z:4c97b956-01af-44bd-ac76-6fea53986aba" + "x-ms-correlation-request-id": "badefe9e-b5b5-4b6d-a51c-1a159f02fead", + "x-ms-ratelimit-remaining-subscription-writes": "1195", + "x-ms-request-id": "49ee415c-3023-4a87-b998-aa4d7c9ddfd0", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T100636Z:badefe9e-b5b5-4b6d-a51c-1a159f02fead" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testaksrg8855/providers/Microsoft.ContainerService/managedClusters/akscluster5420", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testaksrg6847/providers/Microsoft.ContainerService/managedClusters/akscluster3592", "location": "eastus", - "name": "akscluster5420", + "name": "akscluster3592", "type": "Microsoft.ContainerService/ManagedClusters", "properties": { "provisioningState": "Creating", "powerState": { "code": "Running" }, - "kubernetesVersion": "1.23.12", - "currentKubernetesVersion": "1.23.12", + "kubernetesVersion": "1.24.9", + "currentKubernetesVersion": "1.24.9", "dnsPrefix": "aksdotnetsdk", - "fqdn": "aksdotnetsdk-a0ea4b5b.hcp.eastus.azmk8s.io", - "azurePortalFQDN": "aksdotnetsdk-a0ea4b5b.portal.hcp.eastus.azmk8s.io", + "fqdn": "aksdotnetsdk-1e2fcb86.hcp.eastus.azmk8s.io", + "azurePortalFQDN": "aksdotnetsdk-1e2fcb86.portal.hcp.eastus.azmk8s.io", "agentPoolProfiles": [ { "name": "aksagent", @@ -173,19 +173,19 @@ "powerState": { "code": "Running" }, - "orchestratorVersion": "1.23.12", - "currentOrchestratorVersion": "1.23.12", + "orchestratorVersion": "1.24.9", + "currentOrchestratorVersion": "1.24.9", "mode": "System", "osType": "Linux", "osSKU": "Ubuntu", - "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2022.11.02", + "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2023.01.26", "enableFIPS": false } ], "servicePrincipalProfile": { "clientId": "msi" }, - "nodeResourceGroup": "MC_testaksrg8855_akscluster5420_eastus", + "nodeResourceGroup": "MC_testaksrg6847_akscluster3592_eastus", "enableRBAC": true, "networkProfile": { "networkPlugin": "kubenet", @@ -193,7 +193,8 @@ "loadBalancerProfile": { "managedOutboundIPs": { "count": 1 - } + }, + "backendPoolType": "nodeIPConfiguration" }, "podCidr": "10.244.0.0/16", "serviceCidr": "10.0.0.0/16", @@ -214,7 +215,8 @@ "securityProfile": {}, "storageProfile": { "diskCSIDriver": { - "enabled": true + "enabled": true, + "version": "v1" }, "fileCSIDriver": { "enabled": true @@ -225,11 +227,12 @@ }, "oidcIssuerProfile": { "enabled": false - } + }, + "workloadAutoScalerProfile": {} }, "identity": { "type": "SystemAssigned", - "principalId": "c0da9507-8669-4abc-8ea3-cf7d1a79ce82", + "principalId": "59ad294b-4888-45c6-8098-bf3a89b14348", "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47" }, "sku": { @@ -239,13 +242,13 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/cd06cd63-94fd-4f3c-bb23-f0885e766599?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/49ee415c-3023-4a87-b998-aa4d7c9ddfd0?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-ea0a956c044ed34cb3119f759ecaf783-ed47dc01386c444e-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "d0427b66b1391f406dae1cf7b8f73206", + "traceparent": "00-bd2f65762d94ff1e72c72c82ae10546f-9bdc570be7e78eba-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "388c9d6f6a51ee8fe015afb0e33d0ff7", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -254,31 +257,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:58:37 GMT", + "Date": "Mon, 20 Feb 2023 10:06:36 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "802efccd-16d9-46e7-96d8-3de480dacb35", - "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "81f103c2-fcce-4a63-a5fa-13a5b9540038", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T085837Z:802efccd-16d9-46e7-96d8-3de480dacb35" + "x-ms-correlation-request-id": "b160bae2-4c39-4b0a-8b37-5034f0eb4837", + "x-ms-ratelimit-remaining-subscription-reads": "11941", + "x-ms-request-id": "e5d0a9d8-d5a7-4810-a22f-761073837fe0", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T100636Z:b160bae2-4c39-4b0a-8b37-5034f0eb4837" }, "ResponseBody": { - "name": "63cd06cd-fd94-3c4f-bb23-f0885e766599", + "name": "5c41ee49-2330-874a-b998-aa4d7c9ddfd0", "status": "InProgress", - "startTime": "2022-11-28T08:58:36.1433308Z" + "startTime": "2023-02-20T10:06:34.7102827Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/cd06cd63-94fd-4f3c-bb23-f0885e766599?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/49ee415c-3023-4a87-b998-aa4d7c9ddfd0?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-ea0a956c044ed34cb3119f759ecaf783-0ef5de1ce38e1744-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "fe8137f36a15d9bf49b7452e33aaa00c", + "traceparent": "00-bd2f65762d94ff1e72c72c82ae10546f-7c9ce89a8fa2fbec-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "7404eb35891ef489e823a8e5c32d733b", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -287,31 +290,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:58:39 GMT", + "Date": "Mon, 20 Feb 2023 10:06:37 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "a7eece21-dacc-422c-ab3d-b42df64d0bac", - "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-request-id": "7a8d4266-9d9e-4d56-9654-4591b332360b", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T085839Z:a7eece21-dacc-422c-ab3d-b42df64d0bac" + "x-ms-correlation-request-id": "ec833c14-e3e3-4314-937c-a6caa3f4490f", + "x-ms-ratelimit-remaining-subscription-reads": "11940", + "x-ms-request-id": "e1e0a6a5-a229-42de-9ff8-43b5293564c1", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T100637Z:ec833c14-e3e3-4314-937c-a6caa3f4490f" }, "ResponseBody": { - "name": "63cd06cd-fd94-3c4f-bb23-f0885e766599", + "name": "5c41ee49-2330-874a-b998-aa4d7c9ddfd0", "status": "InProgress", - "startTime": "2022-11-28T08:58:36.1433308Z" + "startTime": "2023-02-20T10:06:34.7102827Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/cd06cd63-94fd-4f3c-bb23-f0885e766599?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/49ee415c-3023-4a87-b998-aa4d7c9ddfd0?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-ea0a956c044ed34cb3119f759ecaf783-3bc2a95e2597264e-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "301eb770e35529b624d8d92a7b3f9dbb", + "traceparent": "00-bd2f65762d94ff1e72c72c82ae10546f-676ff5161098b795-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "d1f219299d97478f8466c2bbad0fca0e", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -320,31 +323,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:58:40 GMT", + "Date": "Mon, 20 Feb 2023 10:06:38 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "986806df-194f-4621-a6cc-eee4d1565f5b", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "fb0720cf-8fde-4c5a-b2db-483c4251a76c", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T085840Z:986806df-194f-4621-a6cc-eee4d1565f5b" + "x-ms-correlation-request-id": "c2a48e41-db79-4188-9424-6af950eb4fdb", + "x-ms-ratelimit-remaining-subscription-reads": "11939", + "x-ms-request-id": "781f45a7-2237-4f0c-a932-69b7827fa3a6", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T100639Z:c2a48e41-db79-4188-9424-6af950eb4fdb" }, "ResponseBody": { - "name": "63cd06cd-fd94-3c4f-bb23-f0885e766599", + "name": "5c41ee49-2330-874a-b998-aa4d7c9ddfd0", "status": "InProgress", - "startTime": "2022-11-28T08:58:36.1433308Z" + "startTime": "2023-02-20T10:06:34.7102827Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/cd06cd63-94fd-4f3c-bb23-f0885e766599?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/49ee415c-3023-4a87-b998-aa4d7c9ddfd0?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-ea0a956c044ed34cb3119f759ecaf783-beae6b903f513047-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "6e6070472ccafba4bb6887826b11ebc3", + "traceparent": "00-bd2f65762d94ff1e72c72c82ae10546f-09963415852d2730-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "ef48a672789be62b1398502dc2aa2bb3", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -353,31 +356,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:58:41 GMT", + "Date": "Mon, 20 Feb 2023 10:06:40 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "006325c7-3b73-443d-8aaf-76c7dae52237", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "2df620d4-cd0a-4110-aafe-26013eaa19d5", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T085842Z:006325c7-3b73-443d-8aaf-76c7dae52237" + "x-ms-correlation-request-id": "d7c8933c-546e-4681-8265-f9c57b13937e", + "x-ms-ratelimit-remaining-subscription-reads": "11938", + "x-ms-request-id": "9a81d9b1-f4ec-43ca-8b91-0dd6ffe0ee3a", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T100640Z:d7c8933c-546e-4681-8265-f9c57b13937e" }, "ResponseBody": { - "name": "63cd06cd-fd94-3c4f-bb23-f0885e766599", + "name": "5c41ee49-2330-874a-b998-aa4d7c9ddfd0", "status": "InProgress", - "startTime": "2022-11-28T08:58:36.1433308Z" + "startTime": "2023-02-20T10:06:34.7102827Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/cd06cd63-94fd-4f3c-bb23-f0885e766599?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/49ee415c-3023-4a87-b998-aa4d7c9ddfd0?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-ea0a956c044ed34cb3119f759ecaf783-41df6e7365833b44-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "0187100d01d910b08057da3c91945d09", + "traceparent": "00-bd2f65762d94ff1e72c72c82ae10546f-8a05953e94851d2f-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "ca8673a23e4b985f5cbdefb7c7ce47d9", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -386,31 +389,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:58:44 GMT", + "Date": "Mon, 20 Feb 2023 10:06:42 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "fc0e200a-07ec-4614-8d3f-71fbd293f3ef", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "72c67a16-7878-4348-a9a4-5e89cf85dc0d", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T085844Z:fc0e200a-07ec-4614-8d3f-71fbd293f3ef" + "x-ms-correlation-request-id": "ca976bee-d72c-4aa2-a966-ae50e5833198", + "x-ms-ratelimit-remaining-subscription-reads": "11937", + "x-ms-request-id": "c987ae8b-334d-4658-a889-3e29cea59d12", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T100642Z:ca976bee-d72c-4aa2-a966-ae50e5833198" }, "ResponseBody": { - "name": "63cd06cd-fd94-3c4f-bb23-f0885e766599", + "name": "5c41ee49-2330-874a-b998-aa4d7c9ddfd0", "status": "InProgress", - "startTime": "2022-11-28T08:58:36.1433308Z" + "startTime": "2023-02-20T10:06:34.7102827Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/cd06cd63-94fd-4f3c-bb23-f0885e766599?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/49ee415c-3023-4a87-b998-aa4d7c9ddfd0?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-ea0a956c044ed34cb3119f759ecaf783-4d51c6ec5bbd1740-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "c3e6891a314a4441132274ed5c34bd12", + "traceparent": "00-bd2f65762d94ff1e72c72c82ae10546f-aa05b278d700e835-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "1c73995884e4b19fed0bbdfe4d6185da", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -419,31 +422,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:58:48 GMT", + "Date": "Mon, 20 Feb 2023 10:06:46 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "5b21dc2a-b5f2-4e4b-992d-8d3c219634ed", - "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "f0d760c6-3911-4fb6-a57a-022898d7346e", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T085848Z:5b21dc2a-b5f2-4e4b-992d-8d3c219634ed" + "x-ms-correlation-request-id": "1ed5a9aa-e1d9-4bd4-b97e-e5e30b35effc", + "x-ms-ratelimit-remaining-subscription-reads": "11936", + "x-ms-request-id": "c453b1b7-f20f-4909-b38b-a7211ac8bad8", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T100647Z:1ed5a9aa-e1d9-4bd4-b97e-e5e30b35effc" }, "ResponseBody": { - "name": "63cd06cd-fd94-3c4f-bb23-f0885e766599", + "name": "5c41ee49-2330-874a-b998-aa4d7c9ddfd0", "status": "InProgress", - "startTime": "2022-11-28T08:58:36.1433308Z" + "startTime": "2023-02-20T10:06:34.7102827Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/cd06cd63-94fd-4f3c-bb23-f0885e766599?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/49ee415c-3023-4a87-b998-aa4d7c9ddfd0?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-ea0a956c044ed34cb3119f759ecaf783-3a1c7a6497d84a45-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "6b1c16ec9bb845e2bf4fee7251676a26", + "traceparent": "00-bd2f65762d94ff1e72c72c82ae10546f-4cee61e729620525-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "39190e3a008834c346af93de88731f45", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -452,31 +455,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:58:56 GMT", + "Date": "Mon, 20 Feb 2023 10:06:54 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "89a2bf90-e1cd-4163-bea2-c10c85bbbd19", - "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "7cf2be73-b10b-4d04-a3ba-1f37b393da1a", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T085857Z:89a2bf90-e1cd-4163-bea2-c10c85bbbd19" + "x-ms-correlation-request-id": "ca0a6e5b-3a45-45fa-a65d-9695fb5cc9c6", + "x-ms-ratelimit-remaining-subscription-reads": "11935", + "x-ms-request-id": "6a870cda-ee39-4306-b919-6f24fb332ced", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T100655Z:ca0a6e5b-3a45-45fa-a65d-9695fb5cc9c6" }, "ResponseBody": { - "name": "63cd06cd-fd94-3c4f-bb23-f0885e766599", + "name": "5c41ee49-2330-874a-b998-aa4d7c9ddfd0", "status": "InProgress", - "startTime": "2022-11-28T08:58:36.1433308Z" + "startTime": "2023-02-20T10:06:34.7102827Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/cd06cd63-94fd-4f3c-bb23-f0885e766599?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/49ee415c-3023-4a87-b998-aa4d7c9ddfd0?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-ea0a956c044ed34cb3119f759ecaf783-2c6e44890a0be74e-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "e2687d0b282bdc79ce43edb68dc3b34c", + "traceparent": "00-bd2f65762d94ff1e72c72c82ae10546f-0583a6c7ea87da43-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "28d576510e361eced4d5dc3f80614bfa", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -485,31 +488,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:59:12 GMT", + "Date": "Mon, 20 Feb 2023 10:07:10 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "076dc44a-6ae1-4b36-9ee9-2188cdcb90ab", - "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-request-id": "90dc8699-cc08-4e26-b38c-3ed2d21982b2", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T085913Z:076dc44a-6ae1-4b36-9ee9-2188cdcb90ab" + "x-ms-correlation-request-id": "cb3336fd-bf4f-4e59-8c79-6dd47a42d47d", + "x-ms-ratelimit-remaining-subscription-reads": "11934", + "x-ms-request-id": "5e72c19a-946f-4664-ae18-ee571b6992ce", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T100711Z:cb3336fd-bf4f-4e59-8c79-6dd47a42d47d" }, "ResponseBody": { - "name": "63cd06cd-fd94-3c4f-bb23-f0885e766599", + "name": "5c41ee49-2330-874a-b998-aa4d7c9ddfd0", "status": "InProgress", - "startTime": "2022-11-28T08:58:36.1433308Z" + "startTime": "2023-02-20T10:06:34.7102827Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/cd06cd63-94fd-4f3c-bb23-f0885e766599?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/49ee415c-3023-4a87-b998-aa4d7c9ddfd0?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-ea0a956c044ed34cb3119f759ecaf783-ffcdf891b3ad4046-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "7a50c89af2787e51a7a004fa42cef2ac", + "traceparent": "00-bd2f65762d94ff1e72c72c82ae10546f-f549e985ce0e1e83-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "b87d15370eb45851d63ed635f0c1287a", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -518,31 +521,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:59:45 GMT", + "Date": "Mon, 20 Feb 2023 10:07:43 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "94650de5-680b-40c1-ab7b-f808598c65f8", - "x-ms-ratelimit-remaining-subscription-reads": "11986", - "x-ms-request-id": "e2d6e582-befb-4d67-93d1-c52324cc2eb4", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T085945Z:94650de5-680b-40c1-ab7b-f808598c65f8" + "x-ms-correlation-request-id": "973b7076-0289-416b-a8c7-22b8fc5752bc", + "x-ms-ratelimit-remaining-subscription-reads": "11933", + "x-ms-request-id": "1d186a9c-c58a-440a-b2d1-acba79569e3e", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T100744Z:973b7076-0289-416b-a8c7-22b8fc5752bc" }, "ResponseBody": { - "name": "63cd06cd-fd94-3c4f-bb23-f0885e766599", + "name": "5c41ee49-2330-874a-b998-aa4d7c9ddfd0", "status": "InProgress", - "startTime": "2022-11-28T08:58:36.1433308Z" + "startTime": "2023-02-20T10:06:34.7102827Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/cd06cd63-94fd-4f3c-bb23-f0885e766599?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/49ee415c-3023-4a87-b998-aa4d7c9ddfd0?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-ea0a956c044ed34cb3119f759ecaf783-c68437ff468ea844-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "dfe14db7dbcbc4e69d409c75ad2bb8fb", + "traceparent": "00-bd2f65762d94ff1e72c72c82ae10546f-85c6f7e806b08bf3-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "d6ad77ec5d8c2ba33ffa64b22383b3e5", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -551,31 +554,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:00:17 GMT", + "Date": "Mon, 20 Feb 2023 10:08:15 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "a7dc0e57-d6a2-4611-843f-abf12e462215", - "x-ms-ratelimit-remaining-subscription-reads": "11985", - "x-ms-request-id": "699c0270-064d-47d1-933d-8ec9860ec0b2", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T090018Z:a7dc0e57-d6a2-4611-843f-abf12e462215" + "x-ms-correlation-request-id": "fca0e336-756b-4a6c-a864-faaa7e2c0ef1", + "x-ms-ratelimit-remaining-subscription-reads": "11932", + "x-ms-request-id": "2b876239-2c4d-4d2c-acb0-78e1902dc837", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T100816Z:fca0e336-756b-4a6c-a864-faaa7e2c0ef1" }, "ResponseBody": { - "name": "63cd06cd-fd94-3c4f-bb23-f0885e766599", + "name": "5c41ee49-2330-874a-b998-aa4d7c9ddfd0", "status": "InProgress", - "startTime": "2022-11-28T08:58:36.1433308Z" + "startTime": "2023-02-20T10:06:34.7102827Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/cd06cd63-94fd-4f3c-bb23-f0885e766599?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/49ee415c-3023-4a87-b998-aa4d7c9ddfd0?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-ea0a956c044ed34cb3119f759ecaf783-690097dd0368b94d-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "88d8a19bef1618ae2cea3a8b247e9900", + "traceparent": "00-bd2f65762d94ff1e72c72c82ae10546f-31dd01fecaa5e35d-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "73a6986466f64390257c52f838992d13", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -584,31 +587,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:00:49 GMT", + "Date": "Mon, 20 Feb 2023 10:08:49 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "b8acc3a1-a809-4715-8f3a-342356371f3f", - "x-ms-ratelimit-remaining-subscription-reads": "11984", - "x-ms-request-id": "7f2f4d44-3160-4905-9667-accade9c160d", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T090050Z:b8acc3a1-a809-4715-8f3a-342356371f3f" + "x-ms-correlation-request-id": "d1c627d4-bce7-4577-862f-0b9ec0f4d616", + "x-ms-ratelimit-remaining-subscription-reads": "11931", + "x-ms-request-id": "e0ff6e4c-44ff-4828-b850-6789a293b8d0", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T100850Z:d1c627d4-bce7-4577-862f-0b9ec0f4d616" }, "ResponseBody": { - "name": "63cd06cd-fd94-3c4f-bb23-f0885e766599", + "name": "5c41ee49-2330-874a-b998-aa4d7c9ddfd0", "status": "InProgress", - "startTime": "2022-11-28T08:58:36.1433308Z" + "startTime": "2023-02-20T10:06:34.7102827Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/cd06cd63-94fd-4f3c-bb23-f0885e766599?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/49ee415c-3023-4a87-b998-aa4d7c9ddfd0?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-ea0a956c044ed34cb3119f759ecaf783-3796259dd9a9bd45-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "3ffe4150d4e1be80e28cdd3756dbd07b", + "traceparent": "00-bd2f65762d94ff1e72c72c82ae10546f-0a6e7d4cd70b2a60-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "095262ac74b3da6e715179baa99e3552", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -617,66 +620,64 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:01:22 GMT", + "Date": "Mon, 20 Feb 2023 10:09:22 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "b0cbee15-ae8f-491a-bec9-6fa2c3f53f14", - "x-ms-ratelimit-remaining-subscription-reads": "11983", - "x-ms-request-id": "1731e123-9877-4292-bba9-bd9970daa86a", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T090122Z:b0cbee15-ae8f-491a-bec9-6fa2c3f53f14" + "x-ms-correlation-request-id": "bb5349c6-4790-4c2b-8b17-2804ab4d9828", + "x-ms-ratelimit-remaining-subscription-reads": "11930", + "x-ms-request-id": "7eea8636-adba-49da-83b0-384e6fe4d6f0", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T100922Z:bb5349c6-4790-4c2b-8b17-2804ab4d9828" }, "ResponseBody": { - "name": "63cd06cd-fd94-3c4f-bb23-f0885e766599", + "name": "5c41ee49-2330-874a-b998-aa4d7c9ddfd0", "status": "InProgress", - "startTime": "2022-11-28T08:58:36.1433308Z" + "startTime": "2023-02-20T10:06:34.7102827Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/cd06cd63-94fd-4f3c-bb23-f0885e766599?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/49ee415c-3023-4a87-b998-aa4d7c9ddfd0?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "Connection": "close", - "traceparent": "00-ea0a956c044ed34cb3119f759ecaf783-6cd2c2f1cc69ce4f-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "a15e08e76af6c8959ec9b3e1a05b9f1e", + "traceparent": "00-bd2f65762d94ff1e72c72c82ae10546f-9050d0ad29c2a952-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "58d0f18ab51a8684e76ab00f0aabf3a5", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Connection": "close", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:01:55 GMT", + "Date": "Mon, 20 Feb 2023 10:09:53 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "29677703-2d24-4001-b14d-4acd362b857f", - "x-ms-ratelimit-remaining-subscription-reads": "11982", - "x-ms-request-id": "43c71134-2ced-4d25-9368-3e6c6c28cb3f", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T090155Z:29677703-2d24-4001-b14d-4acd362b857f" + "x-ms-correlation-request-id": "495b0988-06c8-41ff-86ae-f17b7d0e347a", + "x-ms-ratelimit-remaining-subscription-reads": "11929", + "x-ms-request-id": "ba5b6711-4406-422e-967f-a565fa696640", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T100954Z:495b0988-06c8-41ff-86ae-f17b7d0e347a" }, "ResponseBody": { - "name": "63cd06cd-fd94-3c4f-bb23-f0885e766599", + "name": "5c41ee49-2330-874a-b998-aa4d7c9ddfd0", "status": "InProgress", - "startTime": "2022-11-28T08:58:36.1433308Z" + "startTime": "2023-02-20T10:06:34.7102827Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/cd06cd63-94fd-4f3c-bb23-f0885e766599?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/49ee415c-3023-4a87-b998-aa4d7c9ddfd0?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-ea0a956c044ed34cb3119f759ecaf783-e2c1c3f8b42b8241-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "6c249ba6782cc7192119a68a1276c250", + "traceparent": "00-bd2f65762d94ff1e72c72c82ae10546f-60dafb7b4d6d010e-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "c00651cdaa31ef3129cb01a4edd69987", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -685,31 +686,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:02:28 GMT", + "Date": "Mon, 20 Feb 2023 10:10:26 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "fa90e675-a84d-479c-8b67-8e1726187825", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "885957ad-a3c1-46a3-8dbf-2847c07c3a54", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T090228Z:fa90e675-a84d-479c-8b67-8e1726187825" + "x-ms-correlation-request-id": "1d947908-1804-4947-aec7-c6dcbeb03e0b", + "x-ms-ratelimit-remaining-subscription-reads": "11928", + "x-ms-request-id": "fef1d97c-978a-4673-b6c2-3f8b89a73fec", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T101027Z:1d947908-1804-4947-aec7-c6dcbeb03e0b" }, "ResponseBody": { - "name": "63cd06cd-fd94-3c4f-bb23-f0885e766599", + "name": "5c41ee49-2330-874a-b998-aa4d7c9ddfd0", "status": "InProgress", - "startTime": "2022-11-28T08:58:36.1433308Z" + "startTime": "2023-02-20T10:06:34.7102827Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/cd06cd63-94fd-4f3c-bb23-f0885e766599?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/49ee415c-3023-4a87-b998-aa4d7c9ddfd0?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-ea0a956c044ed34cb3119f759ecaf783-08592ee92f0a8944-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "1ba3be19f820e609ac36a018219f1e87", + "traceparent": "00-bd2f65762d94ff1e72c72c82ae10546f-49b89bd3a0c681f0-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "466dff46d4c9f6f8ddcc2149c45fcfc5", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -718,31 +719,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:03:00 GMT", + "Date": "Mon, 20 Feb 2023 10:10:58 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "7b866fe3-92bf-4a65-9651-1dd83a402e05", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "f73e9b15-d2ab-4eaa-b784-b90195a58102", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T090300Z:7b866fe3-92bf-4a65-9651-1dd83a402e05" + "x-ms-correlation-request-id": "36737f0d-4dec-4d58-ba3f-5158813994ff", + "x-ms-ratelimit-remaining-subscription-reads": "11927", + "x-ms-request-id": "f04a1943-1ceb-4fda-b6c4-25ceb4b90cc2", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T101059Z:36737f0d-4dec-4d58-ba3f-5158813994ff" }, "ResponseBody": { - "name": "63cd06cd-fd94-3c4f-bb23-f0885e766599", + "name": "5c41ee49-2330-874a-b998-aa4d7c9ddfd0", "status": "InProgress", - "startTime": "2022-11-28T08:58:36.1433308Z" + "startTime": "2023-02-20T10:06:34.7102827Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/cd06cd63-94fd-4f3c-bb23-f0885e766599?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/49ee415c-3023-4a87-b998-aa4d7c9ddfd0?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-ea0a956c044ed34cb3119f759ecaf783-1ee7ce0f5fd63940-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "ba91bfec64b66e4fef9780dcc30ab527", + "traceparent": "00-bd2f65762d94ff1e72c72c82ae10546f-0ec231795e61dcee-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "57ecd35d7498e021c0e02f4eb4df9810", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -751,66 +752,66 @@ "Cache-Control": "no-cache", "Content-Length": "170", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:03:32 GMT", + "Date": "Mon, 20 Feb 2023 10:11:31 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "5c5089fc-7cb8-4966-ae94-b414ce415f74", - "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-request-id": "e27c8013-571f-45d8-a247-b5002437f8aa", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T090333Z:5c5089fc-7cb8-4966-ae94-b414ce415f74" + "x-ms-correlation-request-id": "10feb596-802f-4514-bb4c-856a7848ee92", + "x-ms-ratelimit-remaining-subscription-reads": "11926", + "x-ms-request-id": "5781b5a7-1bdf-4411-a921-0a2d56842282", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T101131Z:10feb596-802f-4514-bb4c-856a7848ee92" }, "ResponseBody": { - "name": "63cd06cd-fd94-3c4f-bb23-f0885e766599", + "name": "5c41ee49-2330-874a-b998-aa4d7c9ddfd0", "status": "Succeeded", - "startTime": "2022-11-28T08:58:36.1433308Z", - "endTime": "2022-11-28T09:03:09.9252718Z" + "startTime": "2023-02-20T10:06:34.7102827Z", + "endTime": "2023-02-20T10:11:10.7562523Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg8855/providers/Microsoft.ContainerService/managedClusters/akscluster5420?api-version=2022-09-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg6847/providers/Microsoft.ContainerService/managedClusters/akscluster3592?api-version=2022-11-02-preview", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-ea0a956c044ed34cb3119f759ecaf783-89551ea39426b747-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "e1c7630784b7adfe913ebff5d800a581", + "traceparent": "00-bd2f65762d94ff1e72c72c82ae10546f-37ec32567542df91-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "0bc829d0ad3df8dc590fe26488e82bca", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "3019", + "Content-Length": "3120", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:03:33 GMT", + "Date": "Mon, 20 Feb 2023 10:11:32 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "a54dc5b2-288e-4ff2-9602-85305cb7d421", - "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-request-id": "16b20b3f-0d9b-4a4d-be39-fba9a8bcf1fc", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T090334Z:a54dc5b2-288e-4ff2-9602-85305cb7d421" + "x-ms-correlation-request-id": "ee2aa415-4efc-4330-93e0-61d29c240ba1", + "x-ms-ratelimit-remaining-subscription-reads": "11925", + "x-ms-request-id": "d621ee5c-39b9-444c-ba7a-50a7d963f9ad", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T101132Z:ee2aa415-4efc-4330-93e0-61d29c240ba1" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testaksrg8855/providers/Microsoft.ContainerService/managedClusters/akscluster5420", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testaksrg6847/providers/Microsoft.ContainerService/managedClusters/akscluster3592", "location": "eastus", - "name": "akscluster5420", + "name": "akscluster3592", "type": "Microsoft.ContainerService/ManagedClusters", "properties": { "provisioningState": "Succeeded", "powerState": { "code": "Running" }, - "kubernetesVersion": "1.23.12", - "currentKubernetesVersion": "1.23.12", + "kubernetesVersion": "1.24.9", + "currentKubernetesVersion": "1.24.9", "dnsPrefix": "aksdotnetsdk", - "fqdn": "aksdotnetsdk-a0ea4b5b.hcp.eastus.azmk8s.io", - "azurePortalFQDN": "aksdotnetsdk-a0ea4b5b.portal.hcp.eastus.azmk8s.io", + "fqdn": "aksdotnetsdk-1e2fcb86.hcp.eastus.azmk8s.io", + "azurePortalFQDN": "aksdotnetsdk-1e2fcb86.portal.hcp.eastus.azmk8s.io", "agentPoolProfiles": [ { "name": "aksagent", @@ -825,19 +826,19 @@ "powerState": { "code": "Running" }, - "orchestratorVersion": "1.23.12", - "currentOrchestratorVersion": "1.23.12", + "orchestratorVersion": "1.24.9", + "currentOrchestratorVersion": "1.24.9", "mode": "System", "osType": "Linux", "osSKU": "Ubuntu", - "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2022.11.02", + "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2023.01.26", "enableFIPS": false } ], "servicePrincipalProfile": { "clientId": "msi" }, - "nodeResourceGroup": "MC_testaksrg8855_akscluster5420_eastus", + "nodeResourceGroup": "MC_testaksrg6847_akscluster3592_eastus", "enableRBAC": true, "networkProfile": { "networkPlugin": "kubenet", @@ -848,9 +849,10 @@ }, "effectiveOutboundIPs": [ { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/MC_testaksrg8855_akscluster5420_eastus/providers/Microsoft.Network/publicIPAddresses/ee01113c-4696-4dcb-b704-60f6de242cc1" + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/MC_testaksrg6847_akscluster3592_eastus/providers/Microsoft.Network/publicIPAddresses/4a19ffc9-dc0d-4bb9-b484-8fc9c61ecacd" } - ] + ], + "backendPoolType": "nodeIPConfiguration" }, "podCidr": "10.244.0.0/16", "serviceCidr": "10.0.0.0/16", @@ -870,15 +872,16 @@ "maxAgentPools": 100, "identityProfile": { "kubeletidentity": { - "resourceId": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/MC_testaksrg8855_akscluster5420_eastus/providers/Microsoft.ManagedIdentity/userAssignedIdentities/akscluster5420-agentpool", - "clientId": "4e9cfb97-ce2c-4919-bb50-854c4e76048c", - "objectId": "87844797-7368-4b0f-9578-7c3e3c0f734f" + "resourceId": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/MC_testaksrg6847_akscluster3592_eastus/providers/Microsoft.ManagedIdentity/userAssignedIdentities/akscluster3592-agentpool", + "clientId": "3b878fb1-4cb9-4f22-b502-4a7d6836857f", + "objectId": "6d6d2351-f067-49db-b19c-1aac7fd86f5c" } }, "securityProfile": {}, "storageProfile": { "diskCSIDriver": { - "enabled": true + "enabled": true, + "version": "v1" }, "fileCSIDriver": { "enabled": true @@ -889,11 +892,12 @@ }, "oidcIssuerProfile": { "enabled": false - } + }, + "workloadAutoScalerProfile": {} }, "identity": { "type": "SystemAssigned", - "principalId": "c0da9507-8669-4abc-8ea3-cf7d1a79ce82", + "principalId": "59ad294b-4888-45c6-8098-bf3a89b14348", "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47" }, "sku": { @@ -903,50 +907,49 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg8855/providers/Microsoft.ContainerService/managedClusters?api-version=2022-09-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg6847/providers/Microsoft.ContainerService/managedClusters?api-version=2022-11-02-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-11c310b8646d654c96405b0f25e53d4e-07d4dde2c35c0644-00", - "User-Agent": "azsdk-net-ResourceManager.ContainerService/1.1.0-alpha.20221128.1 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "539e1ffb07e5b5996f342b88782d22a1", + "User-Agent": "azsdk-net-ResourceManager.ContainerService/1.2.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "19463cfc42ead2efde8d86e8a5a942fe", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "3252", + "Content-Length": "3359", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:03:34 GMT", + "Date": "Mon, 20 Feb 2023 10:11:33 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "523dc732-e9eb-4580-abd6-587a67ab9173", - "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "a6f70cc1-a137-452b-9087-824fdbf4d932", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T090334Z:523dc732-e9eb-4580-abd6-587a67ab9173" + "x-ms-correlation-request-id": "6e0c8678-15de-49e7-a110-4d112004e33e", + "x-ms-ratelimit-remaining-subscription-reads": "11924", + "x-ms-request-id": "b044f222-94af-4b5f-a029-665830b48b63", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T101133Z:6e0c8678-15de-49e7-a110-4d112004e33e" }, "ResponseBody": { "value": [ { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testaksrg8855/providers/Microsoft.ContainerService/managedClusters/akscluster5420", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testaksrg6847/providers/Microsoft.ContainerService/managedClusters/akscluster3592", "location": "eastus", - "name": "akscluster5420", + "name": "akscluster3592", "type": "Microsoft.ContainerService/ManagedClusters", "properties": { "provisioningState": "Succeeded", "powerState": { "code": "Running" }, - "kubernetesVersion": "1.23.12", - "currentKubernetesVersion": "1.23.12", + "kubernetesVersion": "1.24.9", + "currentKubernetesVersion": "1.24.9", "dnsPrefix": "aksdotnetsdk", - "fqdn": "aksdotnetsdk-a0ea4b5b.hcp.eastus.azmk8s.io", - "azurePortalFQDN": "aksdotnetsdk-a0ea4b5b.portal.hcp.eastus.azmk8s.io", + "fqdn": "aksdotnetsdk-1e2fcb86.hcp.eastus.azmk8s.io", + "azurePortalFQDN": "aksdotnetsdk-1e2fcb86.portal.hcp.eastus.azmk8s.io", "agentPoolProfiles": [ { "name": "aksagent", @@ -961,19 +964,19 @@ "powerState": { "code": "Running" }, - "orchestratorVersion": "1.23.12", - "currentOrchestratorVersion": "1.23.12", + "orchestratorVersion": "1.24.9", + "currentOrchestratorVersion": "1.24.9", "mode": "System", "osType": "Linux", "osSKU": "Ubuntu", - "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2022.11.02", + "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2023.01.26", "enableFIPS": false } ], "servicePrincipalProfile": { "clientId": "msi" }, - "nodeResourceGroup": "MC_testaksrg8855_akscluster5420_eastus", + "nodeResourceGroup": "MC_testaksrg6847_akscluster3592_eastus", "enableRBAC": true, "networkProfile": { "networkPlugin": "kubenet", @@ -984,9 +987,10 @@ }, "effectiveOutboundIPs": [ { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/MC_testaksrg8855_akscluster5420_eastus/providers/Microsoft.Network/publicIPAddresses/ee01113c-4696-4dcb-b704-60f6de242cc1" + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/MC_testaksrg6847_akscluster3592_eastus/providers/Microsoft.Network/publicIPAddresses/4a19ffc9-dc0d-4bb9-b484-8fc9c61ecacd" } - ] + ], + "backendPoolType": "nodeIPConfiguration" }, "podCidr": "10.244.0.0/16", "serviceCidr": "10.0.0.0/16", @@ -1006,15 +1010,16 @@ "maxAgentPools": 100, "identityProfile": { "kubeletidentity": { - "resourceId": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/MC_testaksrg8855_akscluster5420_eastus/providers/Microsoft.ManagedIdentity/userAssignedIdentities/akscluster5420-agentpool", - "clientId": "4e9cfb97-ce2c-4919-bb50-854c4e76048c", - "objectId": "87844797-7368-4b0f-9578-7c3e3c0f734f" + "resourceId": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/MC_testaksrg6847_akscluster3592_eastus/providers/Microsoft.ManagedIdentity/userAssignedIdentities/akscluster3592-agentpool", + "clientId": "3b878fb1-4cb9-4f22-b502-4a7d6836857f", + "objectId": "6d6d2351-f067-49db-b19c-1aac7fd86f5c" } }, "securityProfile": {}, "storageProfile": { "diskCSIDriver": { - "enabled": true + "enabled": true, + "version": "v1" }, "fileCSIDriver": { "enabled": true @@ -1025,11 +1030,12 @@ }, "oidcIssuerProfile": { "enabled": false - } + }, + "workloadAutoScalerProfile": {} }, "identity": { "type": "SystemAssigned", - "principalId": "c0da9507-8669-4abc-8ea3-cf7d1a79ce82", + "principalId": "59ad294b-4888-45c6-8098-bf3a89b14348", "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47" }, "sku": { @@ -1041,48 +1047,48 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg8855/providers/Microsoft.ContainerService/managedClusters/akscluster5420?api-version=2022-09-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg6847/providers/Microsoft.ContainerService/managedClusters/akscluster3592?api-version=2022-11-02-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-cf4ee4bca5db674ca41e8d5b0cb954cd-44a15a464f9ea146-00", - "User-Agent": "azsdk-net-ResourceManager.ContainerService/1.1.0-alpha.20221128.1 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "be1178813cd768cfc0e42878a45996ee", + "traceparent": "00-ab7138024eadfcb149e94cc428fdde06-412529bac082be99-00", + "User-Agent": "azsdk-net-ResourceManager.ContainerService/1.2.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "9a781134c496b087f7f3fd8891bc57d7", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "3019", + "Content-Length": "3120", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:03:35 GMT", + "Date": "Mon, 20 Feb 2023 10:11:34 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "0144a177-413b-463a-ae31-2a3c87e01eae", - "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "03d034c0-159a-4cc5-9a25-f0f9a0f233c7", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T090336Z:0144a177-413b-463a-ae31-2a3c87e01eae" + "x-ms-correlation-request-id": "1be99f78-793a-4817-ba4f-1b91ed57d65f", + "x-ms-ratelimit-remaining-subscription-reads": "11923", + "x-ms-request-id": "73782f4e-6ce7-497d-b73d-1aa0779f9ba3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T101134Z:1be99f78-793a-4817-ba4f-1b91ed57d65f" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testaksrg8855/providers/Microsoft.ContainerService/managedClusters/akscluster5420", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testaksrg6847/providers/Microsoft.ContainerService/managedClusters/akscluster3592", "location": "eastus", - "name": "akscluster5420", + "name": "akscluster3592", "type": "Microsoft.ContainerService/ManagedClusters", "properties": { "provisioningState": "Succeeded", "powerState": { "code": "Running" }, - "kubernetesVersion": "1.23.12", - "currentKubernetesVersion": "1.23.12", + "kubernetesVersion": "1.24.9", + "currentKubernetesVersion": "1.24.9", "dnsPrefix": "aksdotnetsdk", - "fqdn": "aksdotnetsdk-a0ea4b5b.hcp.eastus.azmk8s.io", - "azurePortalFQDN": "aksdotnetsdk-a0ea4b5b.portal.hcp.eastus.azmk8s.io", + "fqdn": "aksdotnetsdk-1e2fcb86.hcp.eastus.azmk8s.io", + "azurePortalFQDN": "aksdotnetsdk-1e2fcb86.portal.hcp.eastus.azmk8s.io", "agentPoolProfiles": [ { "name": "aksagent", @@ -1097,19 +1103,19 @@ "powerState": { "code": "Running" }, - "orchestratorVersion": "1.23.12", - "currentOrchestratorVersion": "1.23.12", + "orchestratorVersion": "1.24.9", + "currentOrchestratorVersion": "1.24.9", "mode": "System", "osType": "Linux", "osSKU": "Ubuntu", - "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2022.11.02", + "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2023.01.26", "enableFIPS": false } ], "servicePrincipalProfile": { "clientId": "msi" }, - "nodeResourceGroup": "MC_testaksrg8855_akscluster5420_eastus", + "nodeResourceGroup": "MC_testaksrg6847_akscluster3592_eastus", "enableRBAC": true, "networkProfile": { "networkPlugin": "kubenet", @@ -1120,9 +1126,10 @@ }, "effectiveOutboundIPs": [ { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/MC_testaksrg8855_akscluster5420_eastus/providers/Microsoft.Network/publicIPAddresses/ee01113c-4696-4dcb-b704-60f6de242cc1" + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/MC_testaksrg6847_akscluster3592_eastus/providers/Microsoft.Network/publicIPAddresses/4a19ffc9-dc0d-4bb9-b484-8fc9c61ecacd" } - ] + ], + "backendPoolType": "nodeIPConfiguration" }, "podCidr": "10.244.0.0/16", "serviceCidr": "10.0.0.0/16", @@ -1142,15 +1149,16 @@ "maxAgentPools": 100, "identityProfile": { "kubeletidentity": { - "resourceId": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/MC_testaksrg8855_akscluster5420_eastus/providers/Microsoft.ManagedIdentity/userAssignedIdentities/akscluster5420-agentpool", - "clientId": "4e9cfb97-ce2c-4919-bb50-854c4e76048c", - "objectId": "87844797-7368-4b0f-9578-7c3e3c0f734f" + "resourceId": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/MC_testaksrg6847_akscluster3592_eastus/providers/Microsoft.ManagedIdentity/userAssignedIdentities/akscluster3592-agentpool", + "clientId": "3b878fb1-4cb9-4f22-b502-4a7d6836857f", + "objectId": "6d6d2351-f067-49db-b19c-1aac7fd86f5c" } }, "securityProfile": {}, "storageProfile": { "diskCSIDriver": { - "enabled": true + "enabled": true, + "version": "v1" }, "fileCSIDriver": { "enabled": true @@ -1161,11 +1169,12 @@ }, "oidcIssuerProfile": { "enabled": false - } + }, + "workloadAutoScalerProfile": {} }, "identity": { "type": "SystemAssigned", - "principalId": "c0da9507-8669-4abc-8ea3-cf7d1a79ce82", + "principalId": "59ad294b-4888-45c6-8098-bf3a89b14348", "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47" }, "sku": { @@ -1175,77 +1184,44 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg8855/providers/Microsoft.ContainerService/managedClusters/akscluster5420?api-version=2022-09-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg6847/providers/Microsoft.ContainerService/managedClusters/akscluster3592?api-version=2022-11-02-preview", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-3c1905e9f658514db1e16d8fb826d232-35a7e0b3b402ab4e-00", - "User-Agent": "azsdk-net-ResourceManager.ContainerService/1.1.0-alpha.20221128.1 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "a4e1fef1626cff42c911728258753564", + "traceparent": "00-891c205e51d75c640d2886b5a9f2ed82-6cdbe12c9aed6960-00", + "User-Agent": "azsdk-net-ResourceManager.ContainerService/1.2.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "775264b57f998e263af62cb026f353af", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a0de09fc-e91e-4005-9591-39ab066df5d5?api-version=2017-08-31", + "azure-asyncoperation": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/132c5898-e2b6-4c15-b5ac-e4fb015ec260?api-version=2017-08-31", "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 28 Nov 2022 09:03:37 GMT", + "Date": "Mon, 20 Feb 2023 10:11:35 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operationresults/a0de09fc-e91e-4005-9591-39ab066df5d5?api-version=2017-08-31", + "Location": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operationresults/132c5898-e2b6-4c15-b5ac-e4fb015ec260?api-version=2017-08-31", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "671a82af-8c04-4e20-b5ae-c56d4bb88ee1", - "x-ms-ratelimit-remaining-subscription-deletes": "14999", - "x-ms-request-id": "a0de09fc-e91e-4005-9591-39ab066df5d5", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T090338Z:671a82af-8c04-4e20-b5ae-c56d4bb88ee1" + "x-ms-correlation-request-id": "b56ff14c-dcc3-46b2-bba9-093fdcc33dbc", + "x-ms-ratelimit-remaining-subscription-deletes": "14998", + "x-ms-request-id": "132c5898-e2b6-4c15-b5ac-e4fb015ec260", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T101136Z:b56ff14c-dcc3-46b2-bba9-093fdcc33dbc" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a0de09fc-e91e-4005-9591-39ab066df5d5?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-3c1905e9f658514db1e16d8fb826d232-7388be2250bc5246-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "7a973d9e7d4c1e353611f4c5ca4c104a", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "126", - "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:03:38 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "1e58c463-7516-4d66-be4c-debb5f7d2fde", - "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-request-id": "be48112a-993e-4717-acb8-12b9da9299af", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T090338Z:1e58c463-7516-4d66-be4c-debb5f7d2fde" - }, - "ResponseBody": { - "name": "fc09dea0-1ee9-0540-9591-39ab066df5d5", - "status": "InProgress", - "startTime": "2022-11-28T09:03:38.2372218Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a0de09fc-e91e-4005-9591-39ab066df5d5?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/132c5898-e2b6-4c15-b5ac-e4fb015ec260?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-3c1905e9f658514db1e16d8fb826d232-a2dea4d45a2f8c40-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "865bc3ae37e50aff53225436cf4120a8", + "traceparent": "00-891c205e51d75c640d2886b5a9f2ed82-6a3531881da62c1f-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "4033ae36ca57b464eaea609f98d78a04", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1254,31 +1230,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:03:39 GMT", + "Date": "Mon, 20 Feb 2023 10:11:36 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "164c2266-c5da-48df-b032-f7ee8c364b92", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "515c0350-6af7-4958-8b10-94970274fed8", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T090340Z:164c2266-c5da-48df-b032-f7ee8c364b92" + "x-ms-correlation-request-id": "a6321218-d61f-4949-8744-0291fd0a3c1f", + "x-ms-ratelimit-remaining-subscription-reads": "11922", + "x-ms-request-id": "5c004117-b844-4588-901e-650b11226e59", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T101136Z:a6321218-d61f-4949-8744-0291fd0a3c1f" }, "ResponseBody": { - "name": "fc09dea0-1ee9-0540-9591-39ab066df5d5", + "name": "98582c13-b6e2-154c-b5ac-e4fb015ec260", "status": "InProgress", - "startTime": "2022-11-28T09:03:38.2372218Z" + "startTime": "2023-02-20T10:11:36.1470237Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a0de09fc-e91e-4005-9591-39ab066df5d5?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/132c5898-e2b6-4c15-b5ac-e4fb015ec260?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-3c1905e9f658514db1e16d8fb826d232-e40c91126794254c-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "1be45c00bade9e18e85529def2e4f403", + "traceparent": "00-891c205e51d75c640d2886b5a9f2ed82-5bdbf0b03054dd30-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "acbc4da0df8c2468301ac3035d2f49d4", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1287,31 +1263,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:03:40 GMT", + "Date": "Mon, 20 Feb 2023 10:11:37 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "d6506256-0065-4158-9222-07e649100faf", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "fb076a37-7428-4ff0-9ce8-131afc05ec6e", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T090341Z:d6506256-0065-4158-9222-07e649100faf" + "x-ms-correlation-request-id": "f9681556-9474-4fbf-bed9-15ceed6aee64", + "x-ms-ratelimit-remaining-subscription-reads": "11921", + "x-ms-request-id": "e36fcae4-86f5-4f3b-acc3-60d85148a1a8", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T101138Z:f9681556-9474-4fbf-bed9-15ceed6aee64" }, "ResponseBody": { - "name": "fc09dea0-1ee9-0540-9591-39ab066df5d5", + "name": "98582c13-b6e2-154c-b5ac-e4fb015ec260", "status": "InProgress", - "startTime": "2022-11-28T09:03:38.2372218Z" + "startTime": "2023-02-20T10:11:36.1470237Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a0de09fc-e91e-4005-9591-39ab066df5d5?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/132c5898-e2b6-4c15-b5ac-e4fb015ec260?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-3c1905e9f658514db1e16d8fb826d232-31abfde309c6e94f-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "1a5247258bc566303d8d262929fe4ff4", + "traceparent": "00-891c205e51d75c640d2886b5a9f2ed82-421ae6bd74458ea0-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "77790ab612bf02587f7b8c8430949fdc", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1320,31 +1296,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:03:42 GMT", + "Date": "Mon, 20 Feb 2023 10:11:38 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "ac4a14da-acb3-4bd3-86a9-e3e7ea7c9c83", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "977e201d-6c72-42a0-87b5-7c5a0e4a96d5", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T090342Z:ac4a14da-acb3-4bd3-86a9-e3e7ea7c9c83" + "x-ms-correlation-request-id": "6db34093-a2c9-4315-964a-452ba5f0370c", + "x-ms-ratelimit-remaining-subscription-reads": "11920", + "x-ms-request-id": "65c8aabd-9fe3-4ba5-a767-8f1e06d6c6f6", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T101139Z:6db34093-a2c9-4315-964a-452ba5f0370c" }, "ResponseBody": { - "name": "fc09dea0-1ee9-0540-9591-39ab066df5d5", + "name": "98582c13-b6e2-154c-b5ac-e4fb015ec260", "status": "InProgress", - "startTime": "2022-11-28T09:03:38.2372218Z" + "startTime": "2023-02-20T10:11:36.1470237Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a0de09fc-e91e-4005-9591-39ab066df5d5?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/132c5898-e2b6-4c15-b5ac-e4fb015ec260?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-3c1905e9f658514db1e16d8fb826d232-ba31d7ae6438f444-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "6dc54cf0f467f46cabbc9d8f0e20176f", + "traceparent": "00-891c205e51d75c640d2886b5a9f2ed82-8683f93a770e72cf-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "f6561d0b93aa5695460f103c066157bb", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1353,31 +1329,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:03:44 GMT", + "Date": "Mon, 20 Feb 2023 10:11:39 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "6fc3cbc3-9683-4d88-8936-2bff83f2f179", - "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "3ccc5817-a6e8-426d-9bfb-a2148f9d1071", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T090345Z:6fc3cbc3-9683-4d88-8936-2bff83f2f179" + "x-ms-correlation-request-id": "8e7ee943-29c5-4e7d-b254-6cb187ce9c95", + "x-ms-ratelimit-remaining-subscription-reads": "11919", + "x-ms-request-id": "59b7b14f-b2aa-4cd9-8337-3c8c39c42a8b", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T101140Z:8e7ee943-29c5-4e7d-b254-6cb187ce9c95" }, "ResponseBody": { - "name": "fc09dea0-1ee9-0540-9591-39ab066df5d5", + "name": "98582c13-b6e2-154c-b5ac-e4fb015ec260", "status": "InProgress", - "startTime": "2022-11-28T09:03:38.2372218Z" + "startTime": "2023-02-20T10:11:36.1470237Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a0de09fc-e91e-4005-9591-39ab066df5d5?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/132c5898-e2b6-4c15-b5ac-e4fb015ec260?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-3c1905e9f658514db1e16d8fb826d232-345236a7b9d91e44-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "8711502d05ef75e22c7edd5094ee75ea", + "traceparent": "00-891c205e51d75c640d2886b5a9f2ed82-e63634c1ec7cceea-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "8de98ca0125d8e44f5ba2c1153e3f39c", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1386,31 +1362,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:03:48 GMT", + "Date": "Mon, 20 Feb 2023 10:11:42 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "d637c794-7eef-4029-94f3-9742591a7f6a", - "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "12ed192c-0c06-4c8f-9308-02839483e70a", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T090349Z:d637c794-7eef-4029-94f3-9742591a7f6a" + "x-ms-correlation-request-id": "bc7fe9df-f37e-413e-9b08-ec3cadf34fd1", + "x-ms-ratelimit-remaining-subscription-reads": "11918", + "x-ms-request-id": "9db99e0c-4fd7-4526-be60-38f3d4d668ad", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T101143Z:bc7fe9df-f37e-413e-9b08-ec3cadf34fd1" }, "ResponseBody": { - "name": "fc09dea0-1ee9-0540-9591-39ab066df5d5", + "name": "98582c13-b6e2-154c-b5ac-e4fb015ec260", "status": "InProgress", - "startTime": "2022-11-28T09:03:38.2372218Z" + "startTime": "2023-02-20T10:11:36.1470237Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a0de09fc-e91e-4005-9591-39ab066df5d5?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/132c5898-e2b6-4c15-b5ac-e4fb015ec260?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-3c1905e9f658514db1e16d8fb826d232-ec55b9bedebaaf43-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "a6ed3406861f319cda5d6f08eda0581c", + "traceparent": "00-891c205e51d75c640d2886b5a9f2ed82-439c2de2da5734f8-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "3ff7e77a52d92229752331b0011bfb1e", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1419,31 +1395,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:03:57 GMT", + "Date": "Mon, 20 Feb 2023 10:11:46 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "c5d32c3d-87c2-4c55-b6a0-5f659304a3e1", - "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-request-id": "af82826f-cda4-4d21-b605-1006443dc293", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T090357Z:c5d32c3d-87c2-4c55-b6a0-5f659304a3e1" + "x-ms-correlation-request-id": "cb512a7d-0ef6-442a-bf56-84ab850ce8a2", + "x-ms-ratelimit-remaining-subscription-reads": "11917", + "x-ms-request-id": "7436b9a1-b274-48e5-a6dd-1f516cfcbd4c", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T101147Z:cb512a7d-0ef6-442a-bf56-84ab850ce8a2" }, "ResponseBody": { - "name": "fc09dea0-1ee9-0540-9591-39ab066df5d5", + "name": "98582c13-b6e2-154c-b5ac-e4fb015ec260", "status": "InProgress", - "startTime": "2022-11-28T09:03:38.2372218Z" + "startTime": "2023-02-20T10:11:36.1470237Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a0de09fc-e91e-4005-9591-39ab066df5d5?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/132c5898-e2b6-4c15-b5ac-e4fb015ec260?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-3c1905e9f658514db1e16d8fb826d232-f68693b3938bb047-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "d8fbb776c7edea05695041e9171c60bc", + "traceparent": "00-891c205e51d75c640d2886b5a9f2ed82-9cdedc9c0f3f4c28-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "a4e3d12312abf97ed9c701f066830362", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1452,31 +1428,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:04:13 GMT", + "Date": "Mon, 20 Feb 2023 10:11:55 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "b18ca966-e3ae-4389-b441-ea968a3b41b4", - "x-ms-ratelimit-remaining-subscription-reads": "11986", - "x-ms-request-id": "ac549a0c-2207-44cd-a302-1a4ea5c07253", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T090414Z:b18ca966-e3ae-4389-b441-ea968a3b41b4" + "x-ms-correlation-request-id": "44b0ba47-8858-4637-aee1-9745e9be620e", + "x-ms-ratelimit-remaining-subscription-reads": "11916", + "x-ms-request-id": "33c13955-c5b8-409c-b2ce-4bde3b2f29fd", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T101155Z:44b0ba47-8858-4637-aee1-9745e9be620e" }, "ResponseBody": { - "name": "fc09dea0-1ee9-0540-9591-39ab066df5d5", + "name": "98582c13-b6e2-154c-b5ac-e4fb015ec260", "status": "InProgress", - "startTime": "2022-11-28T09:03:38.2372218Z" + "startTime": "2023-02-20T10:11:36.1470237Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a0de09fc-e91e-4005-9591-39ab066df5d5?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/132c5898-e2b6-4c15-b5ac-e4fb015ec260?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-3c1905e9f658514db1e16d8fb826d232-b0cbf6f9dc2dfe4f-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "d989b2477033a750b4e0ad9196da878b", + "traceparent": "00-891c205e51d75c640d2886b5a9f2ed82-c5760b776f40b4c2-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "1fc1741b186a4ee162c6183ae0948cd9", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1485,31 +1461,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:04:45 GMT", + "Date": "Mon, 20 Feb 2023 10:12:11 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "3c8cfe9c-bd72-4339-82da-379d2885bd51", - "x-ms-ratelimit-remaining-subscription-reads": "11985", - "x-ms-request-id": "f416bffa-f63c-4ad4-8e5a-36cdd2167b3c", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T090446Z:3c8cfe9c-bd72-4339-82da-379d2885bd51" + "x-ms-correlation-request-id": "eb841332-7d49-49d3-ba97-032a2a879230", + "x-ms-ratelimit-remaining-subscription-reads": "11915", + "x-ms-request-id": "dbc68f5b-9ce4-4b1e-bb34-472a748088bc", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T101212Z:eb841332-7d49-49d3-ba97-032a2a879230" }, "ResponseBody": { - "name": "fc09dea0-1ee9-0540-9591-39ab066df5d5", + "name": "98582c13-b6e2-154c-b5ac-e4fb015ec260", "status": "InProgress", - "startTime": "2022-11-28T09:03:38.2372218Z" + "startTime": "2023-02-20T10:11:36.1470237Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a0de09fc-e91e-4005-9591-39ab066df5d5?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/132c5898-e2b6-4c15-b5ac-e4fb015ec260?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-3c1905e9f658514db1e16d8fb826d232-256b966c57c0db47-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "dddac0259cf33ffd2f023dce44b219be", + "traceparent": "00-891c205e51d75c640d2886b5a9f2ed82-9a0729e83ce9870b-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "81ed0ebe4fff68f068fd66115139bcf1", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1518,31 +1494,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:05:18 GMT", + "Date": "Mon, 20 Feb 2023 10:12:44 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "08245d19-fc51-40e4-a477-9d396d00e9ab", - "x-ms-ratelimit-remaining-subscription-reads": "11984", - "x-ms-request-id": "e72ce2a5-fbaa-4a1a-8110-2a9a34ba1d28", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T090519Z:08245d19-fc51-40e4-a477-9d396d00e9ab" + "x-ms-correlation-request-id": "563a0553-1afc-44e7-9f19-80c1d6462ac4", + "x-ms-ratelimit-remaining-subscription-reads": "11914", + "x-ms-request-id": "44fd75d7-c012-4d80-a537-739729aa18a4", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T101244Z:563a0553-1afc-44e7-9f19-80c1d6462ac4" }, "ResponseBody": { - "name": "fc09dea0-1ee9-0540-9591-39ab066df5d5", + "name": "98582c13-b6e2-154c-b5ac-e4fb015ec260", "status": "InProgress", - "startTime": "2022-11-28T09:03:38.2372218Z" + "startTime": "2023-02-20T10:11:36.1470237Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a0de09fc-e91e-4005-9591-39ab066df5d5?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/132c5898-e2b6-4c15-b5ac-e4fb015ec260?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-3c1905e9f658514db1e16d8fb826d232-4090904bc14d744b-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "3bc1b3fd7f1705e96654240d1a73548e", + "traceparent": "00-891c205e51d75c640d2886b5a9f2ed82-532200cfbd4a12ab-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "8d95ce1fdb590ab3ef9541e5fa441845", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1551,31 +1527,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:05:51 GMT", + "Date": "Mon, 20 Feb 2023 10:13:16 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "74bbd607-81f7-464e-8b60-c42f4ab8e0a4", - "x-ms-ratelimit-remaining-subscription-reads": "11983", - "x-ms-request-id": "80175c79-dadf-442a-ba37-661be616e823", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T090551Z:74bbd607-81f7-464e-8b60-c42f4ab8e0a4" + "x-ms-correlation-request-id": "cbe69133-5818-48f0-b604-e146e855e0b2", + "x-ms-ratelimit-remaining-subscription-reads": "11913", + "x-ms-request-id": "5abf39a0-0fcc-4b68-830a-59c928c1543a", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T101316Z:cbe69133-5818-48f0-b604-e146e855e0b2" }, "ResponseBody": { - "name": "fc09dea0-1ee9-0540-9591-39ab066df5d5", + "name": "98582c13-b6e2-154c-b5ac-e4fb015ec260", "status": "InProgress", - "startTime": "2022-11-28T09:03:38.2372218Z" + "startTime": "2023-02-20T10:11:36.1470237Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a0de09fc-e91e-4005-9591-39ab066df5d5?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/132c5898-e2b6-4c15-b5ac-e4fb015ec260?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-3c1905e9f658514db1e16d8fb826d232-ce6c84af57554f48-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "56c3b6c98341abc9b549a93033816201", + "traceparent": "00-891c205e51d75c640d2886b5a9f2ed82-eeabd3f68fab3729-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "5731273a8195cb638359b66cb2cffc28", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1584,31 +1560,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:06:23 GMT", + "Date": "Mon, 20 Feb 2023 10:13:49 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "b33b1ff9-0dee-4ea2-a543-43b46878f638", - "x-ms-ratelimit-remaining-subscription-reads": "11982", - "x-ms-request-id": "8efda4bc-0420-42fa-adb0-987355857ab9", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T090623Z:b33b1ff9-0dee-4ea2-a543-43b46878f638" + "x-ms-correlation-request-id": "9cd65138-1742-4443-8671-1e292cb6a31d", + "x-ms-ratelimit-remaining-subscription-reads": "11912", + "x-ms-request-id": "f89d68a8-7497-448a-855d-44fa62cbff25", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T101349Z:9cd65138-1742-4443-8671-1e292cb6a31d" }, "ResponseBody": { - "name": "fc09dea0-1ee9-0540-9591-39ab066df5d5", + "name": "98582c13-b6e2-154c-b5ac-e4fb015ec260", "status": "InProgress", - "startTime": "2022-11-28T09:03:38.2372218Z" + "startTime": "2023-02-20T10:11:36.1470237Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a0de09fc-e91e-4005-9591-39ab066df5d5?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/132c5898-e2b6-4c15-b5ac-e4fb015ec260?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-3c1905e9f658514db1e16d8fb826d232-87addbc32e647745-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "e394eec64b18a674d7d5769e78f025bc", + "traceparent": "00-891c205e51d75c640d2886b5a9f2ed82-aee0e9487f3b5764-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "121a260afeffe37f5be392690e0b6e24", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1617,66 +1593,64 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:06:55 GMT", + "Date": "Mon, 20 Feb 2023 10:14:21 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "8a77bb85-0c63-4845-9a2d-12223a729bc9", - "x-ms-ratelimit-remaining-subscription-reads": "11981", - "x-ms-request-id": "d126c02f-9ef0-4b88-9db6-6f5955d996c7", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T090656Z:8a77bb85-0c63-4845-9a2d-12223a729bc9" + "x-ms-correlation-request-id": "cf100ab4-5a25-4116-81c4-991d888ceff0", + "x-ms-ratelimit-remaining-subscription-reads": "11911", + "x-ms-request-id": "83350ba7-7449-43a9-997d-67a6febd79ef", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T101422Z:cf100ab4-5a25-4116-81c4-991d888ceff0" }, "ResponseBody": { - "name": "fc09dea0-1ee9-0540-9591-39ab066df5d5", + "name": "98582c13-b6e2-154c-b5ac-e4fb015ec260", "status": "InProgress", - "startTime": "2022-11-28T09:03:38.2372218Z" + "startTime": "2023-02-20T10:11:36.1470237Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a0de09fc-e91e-4005-9591-39ab066df5d5?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/132c5898-e2b6-4c15-b5ac-e4fb015ec260?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "Connection": "close", - "traceparent": "00-3c1905e9f658514db1e16d8fb826d232-7de3a192ae81bb41-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "8e05aeaec3ee7a7cea1585cdd5b8d1e5", + "traceparent": "00-891c205e51d75c640d2886b5a9f2ed82-41b3c10d64f4feb5-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "29d720e564089e5b6bc90a002446581f", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Connection": "close", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:07:27 GMT", + "Date": "Mon, 20 Feb 2023 10:14:54 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "dbf5d349-a75e-4ae5-8fac-d74b29f6346d", - "x-ms-ratelimit-remaining-subscription-reads": "11980", - "x-ms-request-id": "5c57c8c0-35de-43ba-ad2e-b81993c7f46d", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T090728Z:dbf5d349-a75e-4ae5-8fac-d74b29f6346d" + "x-ms-correlation-request-id": "bdb1dae7-381d-441c-a5b7-f754d90579b4", + "x-ms-ratelimit-remaining-subscription-reads": "11910", + "x-ms-request-id": "b8859c44-6913-4ff4-abe6-358094819b5a", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T101455Z:bdb1dae7-381d-441c-a5b7-f754d90579b4" }, "ResponseBody": { - "name": "fc09dea0-1ee9-0540-9591-39ab066df5d5", + "name": "98582c13-b6e2-154c-b5ac-e4fb015ec260", "status": "InProgress", - "startTime": "2022-11-28T09:03:38.2372218Z" + "startTime": "2023-02-20T10:11:36.1470237Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a0de09fc-e91e-4005-9591-39ab066df5d5?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/132c5898-e2b6-4c15-b5ac-e4fb015ec260?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-3c1905e9f658514db1e16d8fb826d232-abda4199c27dbe43-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "2b4622f271df7d76411d7f6c0c2a33c5", + "traceparent": "00-891c205e51d75c640d2886b5a9f2ed82-4443416a13fedf8c-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "d3db1899062a3b46a84efcb2eef9bd77", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1685,161 +1659,62 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:08:00 GMT", + "Date": "Mon, 20 Feb 2023 10:15:26 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "0bdad1d7-73fb-420a-a42c-9a0d22db6001", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "741483f8-5bf6-42ba-a83c-e73dfd1cbcbd", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T090801Z:0bdad1d7-73fb-420a-a42c-9a0d22db6001" + "x-ms-correlation-request-id": "7805008d-2b45-46c8-986f-6817b87599c9", + "x-ms-ratelimit-remaining-subscription-reads": "11909", + "x-ms-request-id": "d8c1c2d2-d8fd-43a3-9563-fbf06552f1e2", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T101527Z:7805008d-2b45-46c8-986f-6817b87599c9" }, "ResponseBody": { - "name": "fc09dea0-1ee9-0540-9591-39ab066df5d5", + "name": "98582c13-b6e2-154c-b5ac-e4fb015ec260", "status": "InProgress", - "startTime": "2022-11-28T09:03:38.2372218Z" + "startTime": "2023-02-20T10:11:36.1470237Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a0de09fc-e91e-4005-9591-39ab066df5d5?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/132c5898-e2b6-4c15-b5ac-e4fb015ec260?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-3c1905e9f658514db1e16d8fb826d232-8001370e1e0dad48-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "8482ed24d37b03127119f903c6a7d11e", + "traceparent": "00-891c205e51d75c640d2886b5a9f2ed82-a6cbdb2b4fb65d2c-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "918792ead2f8a520ca7ba635f47ebe14", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "126", - "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:08:33 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "d5546a4e-c8d3-473e-9070-9fb7beb0fed9", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "1f007c9b-517b-4e9e-a812-0615ab00eb7e", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T090834Z:d5546a4e-c8d3-473e-9070-9fb7beb0fed9" - }, - "ResponseBody": { - "name": "fc09dea0-1ee9-0540-9591-39ab066df5d5", - "status": "InProgress", - "startTime": "2022-11-28T09:03:38.2372218Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a0de09fc-e91e-4005-9591-39ab066df5d5?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-3c1905e9f658514db1e16d8fb826d232-56007fa4f5ae3942-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "55ac9103f9a93ddc38884cd143106dbf", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "126", - "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:09:05 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "4af97566-34ed-448d-8a89-a7afac388472", - "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-request-id": "16028c0b-bcd8-465e-9be3-a723978ee676", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T090906Z:4af97566-34ed-448d-8a89-a7afac388472" - }, - "ResponseBody": { - "name": "fc09dea0-1ee9-0540-9591-39ab066df5d5", - "status": "InProgress", - "startTime": "2022-11-28T09:03:38.2372218Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a0de09fc-e91e-4005-9591-39ab066df5d5?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-3c1905e9f658514db1e16d8fb826d232-71c85f99dd321d40-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "e7a8c0e24d361e690f43b9c57873b79a", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "126", - "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:09:37 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "1b324590-8554-44a8-98dc-59de1dc9fe7e", - "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-request-id": "ed6cf1f8-2ef1-4b94-8798-e47d68da543d", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T090938Z:1b324590-8554-44a8-98dc-59de1dc9fe7e" - }, - "ResponseBody": { - "name": "fc09dea0-1ee9-0540-9591-39ab066df5d5", - "status": "InProgress", - "startTime": "2022-11-28T09:03:38.2372218Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a0de09fc-e91e-4005-9591-39ab066df5d5?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-3c1905e9f658514db1e16d8fb826d232-faeb5788b9630049-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "7b69614bdd7e2a1c10444cf38641bf61", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "169", + "Content-Length": "170", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:10:10 GMT", + "Date": "Mon, 20 Feb 2023 10:15:59 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "a962c8b7-622c-4ea6-a063-c25cbf7229dc", - "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "dd84e1ac-d273-447b-807a-de1d91873b01", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T091011Z:a962c8b7-622c-4ea6-a063-c25cbf7229dc" + "x-ms-correlation-request-id": "c837fdab-1e58-4a8b-87e3-ea08bdc7a177", + "x-ms-ratelimit-remaining-subscription-reads": "11908", + "x-ms-request-id": "e942bb20-0cf8-4e52-8c06-e098bfedea3c", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T101559Z:c837fdab-1e58-4a8b-87e3-ea08bdc7a177" }, "ResponseBody": { - "name": "fc09dea0-1ee9-0540-9591-39ab066df5d5", + "name": "98582c13-b6e2-154c-b5ac-e4fb015ec260", "status": "Succeeded", - "startTime": "2022-11-28T09:03:38.2372218Z", - "endTime": "2022-11-28T09:10:01.262733Z" + "startTime": "2023-02-20T10:11:36.1470237Z", + "endTime": "2023-02-20T10:15:32.9600111Z" } } ], "Variables": { "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com", - "RandomSeed": "877401615", - "RESOURCE_MANAGER_URL": null, + "RandomSeed": "2051979974", + "RESOURCE_MANAGER_URL": "https://management.azure.com/", "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" } } diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/tests/SessionRecords/ContainerServiceCollectionTests/GetCredentials().json b/sdk/containerservice/Azure.ResourceManager.ContainerService/tests/SessionRecords/ContainerServiceCollectionTests/GetCredentials().json index 9bc9f347c0882..7d5447281f15b 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/tests/SessionRecords/ContainerServiceCollectionTests/GetCredentials().json +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/tests/SessionRecords/ContainerServiceCollectionTests/GetCredentials().json @@ -6,9 +6,9 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-ead604ac278da74bb89c36de95386ef7-5e3dd44bc0f0ba40-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "a1ab81ae228dea740dbea2091e1240e4", + "traceparent": "00-ea9f7ab31e7d414ce503374a1146c2f9-1cd8194d39ad9251-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "d4b7f4d0ed7f955dfd6195e94348e556", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -17,15 +17,15 @@ "Cache-Control": "no-cache", "Content-Length": "748", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 28 Nov 2022 08:25:25 GMT", + "Date": "Mon, 20 Feb 2023 09:36:20 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "a123de4e-01da-463f-a92a-55092c719725", - "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-request-id": "a123de4e-01da-463f-a92a-55092c719725", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T082526Z:a123de4e-01da-463f-a92a-55092c719725" + "x-ms-correlation-request-id": "7ff3a940-aa04-45f6-b9d9-3da69f19950f", + "x-ms-ratelimit-remaining-subscription-reads": "11963", + "x-ms-request-id": "7ff3a940-aa04-45f6-b9d9-3da69f19950f", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T093620Z:7ff3a940-aa04-45f6-b9d9-3da69f19950f" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", @@ -56,16 +56,16 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testaksrg3300?api-version=**", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testaksrg468?api-version=**", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "21", "Content-Type": "application/json", - "traceparent": "00-69a9781f5a026b44bc71182cd75ad899-1de9b23d9d98184b-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "e062fef614b4c3adaa1353f0bd950042", + "traceparent": "00-a56ea94e0050d94b118fbe67a35bea57-c517578cfb731322-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "8172d2aaaa586326957f0fae4827c15f", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -74,21 +74,21 @@ "StatusCode": 201, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "223", + "Content-Length": "221", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 28 Nov 2022 08:25:28 GMT", + "Date": "Mon, 20 Feb 2023 09:36:21 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "c22ba03d-212e-4973-8614-629a497dd0f2", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "c22ba03d-212e-4973-8614-629a497dd0f2", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T082529Z:c22ba03d-212e-4973-8614-629a497dd0f2" + "x-ms-correlation-request-id": "c51b7c66-18b3-49fc-8379-6984df833ddf", + "x-ms-ratelimit-remaining-subscription-writes": "1197", + "x-ms-request-id": "c51b7c66-18b3-49fc-8379-6984df833ddf", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T093622Z:c51b7c66-18b3-49fc-8379-6984df833ddf" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg3300", - "name": "testaksrg3300", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg468", + "name": "testaksrg468", "type": "Microsoft.Resources/resourceGroups", "location": "eastus", "properties": { @@ -97,16 +97,16 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg3300/providers/Microsoft.ContainerService/managedClusters/akscluster8501?api-version=2022-09-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg468/providers/Microsoft.ContainerService/managedClusters/akscluster6301?api-version=2022-11-02-preview", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "205", "Content-Type": "application/json", - "traceparent": "00-2056253843e72c41af2db356c591ddae-9fe85fffa91a384e-00", - "User-Agent": "azsdk-net-ResourceManager.ContainerService/1.1.0-alpha.20221128.1 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "14bfd408a9b6fada5a6fdfe42100590e", + "traceparent": "00-6ffb0ff5a4526d73f3d100b3b9fc9c8a-57ed0a27ab0768dd-00", + "User-Agent": "azsdk-net-ResourceManager.ContainerService/1.2.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "f723711e0d0d80bd13533ebf5442ff66", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -129,36 +129,36 @@ }, "StatusCode": 201, "ResponseHeaders": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/225e7fdc-85fd-4df0-a72f-4a0f59c05c38?api-version=2017-08-31", + "azure-asyncoperation": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/03fe1aa7-973c-48ab-a9f6-4c5a5f365192?api-version=2017-08-31", "Cache-Control": "no-cache", - "Content-Length": "2372", + "Content-Length": "2471", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:25:41 GMT", + "Date": "Mon, 20 Feb 2023 09:36:32 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "bf34d1d3-0734-47a5-9bdf-8b90bacf3437", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "225e7fdc-85fd-4df0-a72f-4a0f59c05c38", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T082542Z:bf34d1d3-0734-47a5-9bdf-8b90bacf3437" + "x-ms-correlation-request-id": "a17dfc33-9630-47eb-a055-15ab849ecf63", + "x-ms-ratelimit-remaining-subscription-writes": "1196", + "x-ms-request-id": "03fe1aa7-973c-48ab-a9f6-4c5a5f365192", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T093633Z:a17dfc33-9630-47eb-a055-15ab849ecf63" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testaksrg3300/providers/Microsoft.ContainerService/managedClusters/akscluster8501", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testaksrg468/providers/Microsoft.ContainerService/managedClusters/akscluster6301", "location": "eastus", - "name": "akscluster8501", + "name": "akscluster6301", "type": "Microsoft.ContainerService/ManagedClusters", "properties": { "provisioningState": "Creating", "powerState": { "code": "Running" }, - "kubernetesVersion": "1.23.12", - "currentKubernetesVersion": "1.23.12", + "kubernetesVersion": "1.24.9", + "currentKubernetesVersion": "1.24.9", "dnsPrefix": "aksdotnetsdk", - "fqdn": "aksdotnetsdk-11ae9ff9.hcp.eastus.azmk8s.io", - "azurePortalFQDN": "aksdotnetsdk-11ae9ff9.portal.hcp.eastus.azmk8s.io", + "fqdn": "aksdotnetsdk-e25b096a.hcp.eastus.azmk8s.io", + "azurePortalFQDN": "aksdotnetsdk-e25b096a.portal.hcp.eastus.azmk8s.io", "agentPoolProfiles": [ { "name": "aksagent", @@ -173,19 +173,19 @@ "powerState": { "code": "Running" }, - "orchestratorVersion": "1.23.12", - "currentOrchestratorVersion": "1.23.12", + "orchestratorVersion": "1.24.9", + "currentOrchestratorVersion": "1.24.9", "mode": "System", "osType": "Linux", "osSKU": "Ubuntu", - "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2022.11.02", + "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2023.01.26", "enableFIPS": false } ], "servicePrincipalProfile": { "clientId": "msi" }, - "nodeResourceGroup": "MC_testaksrg3300_akscluster8501_eastus", + "nodeResourceGroup": "MC_testaksrg468_akscluster6301_eastus", "enableRBAC": true, "networkProfile": { "networkPlugin": "kubenet", @@ -193,7 +193,8 @@ "loadBalancerProfile": { "managedOutboundIPs": { "count": 1 - } + }, + "backendPoolType": "nodeIPConfiguration" }, "podCidr": "10.244.0.0/16", "serviceCidr": "10.0.0.0/16", @@ -214,7 +215,8 @@ "securityProfile": {}, "storageProfile": { "diskCSIDriver": { - "enabled": true + "enabled": true, + "version": "v1" }, "fileCSIDriver": { "enabled": true @@ -225,11 +227,12 @@ }, "oidcIssuerProfile": { "enabled": false - } + }, + "workloadAutoScalerProfile": {} }, "identity": { "type": "SystemAssigned", - "principalId": "a7abbc1b-0d25-42c9-80b5-48b629af8b76", + "principalId": "9a4e927d-a3a3-4b09-9d9a-ab6e1aefcc13", "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47" }, "sku": { @@ -239,13 +242,13 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/225e7fdc-85fd-4df0-a72f-4a0f59c05c38?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/03fe1aa7-973c-48ab-a9f6-4c5a5f365192?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-2056253843e72c41af2db356c591ddae-b7fd230ab4d48042-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "6b0a60c6fd25543f88e65aa5cedf8912", + "traceparent": "00-6ffb0ff5a4526d73f3d100b3b9fc9c8a-938c4e1abd6d0dc4-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "7329f289bd32c49db5014456e7a3413c", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -254,31 +257,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:25:41 GMT", + "Date": "Mon, 20 Feb 2023 09:36:33 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "79fea5da-8a12-4441-b215-56a1ae1d385a", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "904b2b22-46c4-433d-a493-101357700a4d", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T082542Z:79fea5da-8a12-4441-b215-56a1ae1d385a" + "x-ms-correlation-request-id": "9d8140b3-52b8-4e08-8533-807c5fc802de", + "x-ms-ratelimit-remaining-subscription-reads": "11962", + "x-ms-request-id": "f3c4ee7a-562d-453f-aefd-b107e051eeab", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T093633Z:9d8140b3-52b8-4e08-8533-807c5fc802de" }, "ResponseBody": { - "name": "dc7f5e22-fd85-f04d-a72f-4a0f59c05c38", + "name": "a71afe03-3c97-ab48-a9f6-4c5a5f365192", "status": "InProgress", - "startTime": "2022-11-28T08:25:41.3764724Z" + "startTime": "2023-02-20T09:36:31.9035489Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/225e7fdc-85fd-4df0-a72f-4a0f59c05c38?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/03fe1aa7-973c-48ab-a9f6-4c5a5f365192?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-2056253843e72c41af2db356c591ddae-47f9b2302f83a94f-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "4802e1fa4ba10fe567c035d39bb9ff0a", + "traceparent": "00-6ffb0ff5a4526d73f3d100b3b9fc9c8a-2ec608e2f2ed5b6c-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "13be480fc8e7a6a5279285239f6e995f", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -287,31 +290,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:25:43 GMT", + "Date": "Mon, 20 Feb 2023 09:36:34 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "0e0e9fbb-5325-42d6-a468-3680fbfdefe8", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "fcecc8ac-0009-421f-bcb7-fc3d3bca4d7d", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T082544Z:0e0e9fbb-5325-42d6-a468-3680fbfdefe8" + "x-ms-correlation-request-id": "1cde3e2f-9469-4900-8861-afd360ff9d7d", + "x-ms-ratelimit-remaining-subscription-reads": "11961", + "x-ms-request-id": "6bd497c9-e9f1-4f84-ab29-335b10d91135", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T093635Z:1cde3e2f-9469-4900-8861-afd360ff9d7d" }, "ResponseBody": { - "name": "dc7f5e22-fd85-f04d-a72f-4a0f59c05c38", + "name": "a71afe03-3c97-ab48-a9f6-4c5a5f365192", "status": "InProgress", - "startTime": "2022-11-28T08:25:41.3764724Z" + "startTime": "2023-02-20T09:36:31.9035489Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/225e7fdc-85fd-4df0-a72f-4a0f59c05c38?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/03fe1aa7-973c-48ab-a9f6-4c5a5f365192?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-2056253843e72c41af2db356c591ddae-e1d0597496772745-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "c01d3d46edf6bde80d0a6df19fc730fe", + "traceparent": "00-6ffb0ff5a4526d73f3d100b3b9fc9c8a-9767ad8463334c0f-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "61356a198c19cd337614e1a933f3a9cd", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -320,31 +323,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:25:44 GMT", + "Date": "Mon, 20 Feb 2023 09:36:35 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "7691d42c-9c27-4e04-af1c-37969b6a070e", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "5ce57272-925f-4975-9a3c-e0044690a37c", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T082545Z:7691d42c-9c27-4e04-af1c-37969b6a070e" + "x-ms-correlation-request-id": "cf70b0ed-7759-4694-a410-acd7a3786990", + "x-ms-ratelimit-remaining-subscription-reads": "11960", + "x-ms-request-id": "a993d7ab-30da-433e-8423-ac425e03ab63", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T093636Z:cf70b0ed-7759-4694-a410-acd7a3786990" }, "ResponseBody": { - "name": "dc7f5e22-fd85-f04d-a72f-4a0f59c05c38", + "name": "a71afe03-3c97-ab48-a9f6-4c5a5f365192", "status": "InProgress", - "startTime": "2022-11-28T08:25:41.3764724Z" + "startTime": "2023-02-20T09:36:31.9035489Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/225e7fdc-85fd-4df0-a72f-4a0f59c05c38?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/03fe1aa7-973c-48ab-a9f6-4c5a5f365192?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-2056253843e72c41af2db356c591ddae-6ea425a0c62b7e4a-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "1826fc59e04d7b007afa0365c76cb8cf", + "traceparent": "00-6ffb0ff5a4526d73f3d100b3b9fc9c8a-29b1fe8625bc6bff-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "9d3e31a826f5c1ec4d824b9f37792546", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -353,31 +356,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:25:45 GMT", + "Date": "Mon, 20 Feb 2023 09:36:37 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "ac3de56c-4168-43ea-b28f-c8d2c27d7044", - "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "0bfbd023-ff33-4a65-8381-a113734e30cf", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T082546Z:ac3de56c-4168-43ea-b28f-c8d2c27d7044" + "x-ms-correlation-request-id": "925319af-06cc-4579-8057-48f077e6b90e", + "x-ms-ratelimit-remaining-subscription-reads": "11959", + "x-ms-request-id": "447d28f2-2148-4ffa-abb4-929070873673", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T093637Z:925319af-06cc-4579-8057-48f077e6b90e" }, "ResponseBody": { - "name": "dc7f5e22-fd85-f04d-a72f-4a0f59c05c38", + "name": "a71afe03-3c97-ab48-a9f6-4c5a5f365192", "status": "InProgress", - "startTime": "2022-11-28T08:25:41.3764724Z" + "startTime": "2023-02-20T09:36:31.9035489Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/225e7fdc-85fd-4df0-a72f-4a0f59c05c38?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/03fe1aa7-973c-48ab-a9f6-4c5a5f365192?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-2056253843e72c41af2db356c591ddae-986e02947193d949-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "905e4fe6c8c10d1bf9453a96def46fa0", + "traceparent": "00-6ffb0ff5a4526d73f3d100b3b9fc9c8a-416abde83aebe645-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "7d3de467e06d832214f19dd3e7fb7234", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -386,31 +389,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:25:49 GMT", + "Date": "Mon, 20 Feb 2023 09:36:39 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "200b8448-0cac-4f57-acd0-3d0f0a73bb7f", - "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "0317273a-7f08-4bc4-bbcb-3a116b408448", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T082549Z:200b8448-0cac-4f57-acd0-3d0f0a73bb7f" + "x-ms-correlation-request-id": "c4cad1fc-615e-4d71-8fa5-7243783318c5", + "x-ms-ratelimit-remaining-subscription-reads": "11958", + "x-ms-request-id": "786725cd-4732-4e50-acf7-bf823497afc7", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T093640Z:c4cad1fc-615e-4d71-8fa5-7243783318c5" }, "ResponseBody": { - "name": "dc7f5e22-fd85-f04d-a72f-4a0f59c05c38", + "name": "a71afe03-3c97-ab48-a9f6-4c5a5f365192", "status": "InProgress", - "startTime": "2022-11-28T08:25:41.3764724Z" + "startTime": "2023-02-20T09:36:31.9035489Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/225e7fdc-85fd-4df0-a72f-4a0f59c05c38?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/03fe1aa7-973c-48ab-a9f6-4c5a5f365192?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-2056253843e72c41af2db356c591ddae-951c442d27b62b45-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "9f793790e79265bd3da245fce983f5a0", + "traceparent": "00-6ffb0ff5a4526d73f3d100b3b9fc9c8a-e7492c5457344de8-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "6d7bb8e9fb30f3697d741396409396fc", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -419,31 +422,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:25:53 GMT", + "Date": "Mon, 20 Feb 2023 09:36:44 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "84bef31a-dccd-4fc4-b738-f2370376579b", - "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-request-id": "66c540ef-4bf5-4076-8285-34858926c46d", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T082553Z:84bef31a-dccd-4fc4-b738-f2370376579b" + "x-ms-correlation-request-id": "576938d3-40cb-47ac-b5f4-f3b6c75b57a5", + "x-ms-ratelimit-remaining-subscription-reads": "11957", + "x-ms-request-id": "0dd7353a-2ffe-4f90-8097-aa2e1ac0d1c9", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T093644Z:576938d3-40cb-47ac-b5f4-f3b6c75b57a5" }, "ResponseBody": { - "name": "dc7f5e22-fd85-f04d-a72f-4a0f59c05c38", + "name": "a71afe03-3c97-ab48-a9f6-4c5a5f365192", "status": "InProgress", - "startTime": "2022-11-28T08:25:41.3764724Z" + "startTime": "2023-02-20T09:36:31.9035489Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/225e7fdc-85fd-4df0-a72f-4a0f59c05c38?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/03fe1aa7-973c-48ab-a9f6-4c5a5f365192?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-2056253843e72c41af2db356c591ddae-752d023ff699ab48-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "500b9d529f68913de0181f07a5699c86", + "traceparent": "00-6ffb0ff5a4526d73f3d100b3b9fc9c8a-48cec3c876ff9b67-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "4e419bef2cb6c85f0fba88048819d951", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -452,31 +455,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:26:01 GMT", + "Date": "Mon, 20 Feb 2023 09:36:52 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "4add8697-d329-4254-abad-27cc2cbaae86", - "x-ms-ratelimit-remaining-subscription-reads": "11986", - "x-ms-request-id": "412be9cd-11e9-498b-b967-da70dfaaa3e3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T082601Z:4add8697-d329-4254-abad-27cc2cbaae86" + "x-ms-correlation-request-id": "9a589b15-d044-453f-8a89-97a2c3946176", + "x-ms-ratelimit-remaining-subscription-reads": "11956", + "x-ms-request-id": "983f06cd-b6d8-4e25-974a-ebf117b1dd0d", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T093653Z:9a589b15-d044-453f-8a89-97a2c3946176" }, "ResponseBody": { - "name": "dc7f5e22-fd85-f04d-a72f-4a0f59c05c38", + "name": "a71afe03-3c97-ab48-a9f6-4c5a5f365192", "status": "InProgress", - "startTime": "2022-11-28T08:25:41.3764724Z" + "startTime": "2023-02-20T09:36:31.9035489Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/225e7fdc-85fd-4df0-a72f-4a0f59c05c38?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/03fe1aa7-973c-48ab-a9f6-4c5a5f365192?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-2056253843e72c41af2db356c591ddae-84a4a2978f2c0046-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "90d4638a19f3fe3c91f8531f831f2375", + "traceparent": "00-6ffb0ff5a4526d73f3d100b3b9fc9c8a-c588f56d148db83a-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "7eb6170fb7fe6c157b49fff8cc8b4281", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -485,31 +488,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:26:17 GMT", + "Date": "Mon, 20 Feb 2023 09:37:08 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "6439b3d4-3538-4c77-9c3f-d5c8805a36dc", - "x-ms-ratelimit-remaining-subscription-reads": "11985", - "x-ms-request-id": "3ff3861c-b816-4950-9ad4-9f5d09a558aa", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T082618Z:6439b3d4-3538-4c77-9c3f-d5c8805a36dc" + "x-ms-correlation-request-id": "b3eb2112-e56c-4f68-ba5e-aa7cc9bbe064", + "x-ms-ratelimit-remaining-subscription-reads": "11955", + "x-ms-request-id": "65f3d8ef-0495-48d2-bc49-cfc23853cf83", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T093709Z:b3eb2112-e56c-4f68-ba5e-aa7cc9bbe064" }, "ResponseBody": { - "name": "dc7f5e22-fd85-f04d-a72f-4a0f59c05c38", + "name": "a71afe03-3c97-ab48-a9f6-4c5a5f365192", "status": "InProgress", - "startTime": "2022-11-28T08:25:41.3764724Z" + "startTime": "2023-02-20T09:36:31.9035489Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/225e7fdc-85fd-4df0-a72f-4a0f59c05c38?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/03fe1aa7-973c-48ab-a9f6-4c5a5f365192?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-2056253843e72c41af2db356c591ddae-843d048878090d41-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "40449a4f1fe9f037f9e8bf79c8b5bfd3", + "traceparent": "00-6ffb0ff5a4526d73f3d100b3b9fc9c8a-5df80550c5f01ec3-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "4ce4a15a24babc7d59b25e7572646a64", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -518,31 +521,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:26:49 GMT", + "Date": "Mon, 20 Feb 2023 09:37:41 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "bb44daa8-51c9-46e9-bbf1-50a8af70cca5", - "x-ms-ratelimit-remaining-subscription-reads": "11984", - "x-ms-request-id": "6d774869-9ad9-4caa-97e0-d5152539ac08", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T082650Z:bb44daa8-51c9-46e9-bbf1-50a8af70cca5" + "x-ms-correlation-request-id": "bc694039-35d3-4a5c-a938-1412ce674913", + "x-ms-ratelimit-remaining-subscription-reads": "11954", + "x-ms-request-id": "e42fc533-45d3-4ab0-9fa8-7748071a4964", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T093741Z:bc694039-35d3-4a5c-a938-1412ce674913" }, "ResponseBody": { - "name": "dc7f5e22-fd85-f04d-a72f-4a0f59c05c38", + "name": "a71afe03-3c97-ab48-a9f6-4c5a5f365192", "status": "InProgress", - "startTime": "2022-11-28T08:25:41.3764724Z" + "startTime": "2023-02-20T09:36:31.9035489Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/225e7fdc-85fd-4df0-a72f-4a0f59c05c38?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/03fe1aa7-973c-48ab-a9f6-4c5a5f365192?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-2056253843e72c41af2db356c591ddae-d1fce95ddbc87843-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "8671bf0565ae38ad610cbe6f4b1d0ec0", + "traceparent": "00-6ffb0ff5a4526d73f3d100b3b9fc9c8a-6e8a79b0c733feee-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "2887c29b17dd37fd85d5d36c2c66fb83", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -551,66 +554,64 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:27:23 GMT", + "Date": "Mon, 20 Feb 2023 09:38:13 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "2c819be6-38a9-4a4b-8a1a-c050f53876da", - "x-ms-ratelimit-remaining-subscription-reads": "11983", - "x-ms-request-id": "9abe29d4-aac1-48fa-80cb-0db5f665bd11", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T082723Z:2c819be6-38a9-4a4b-8a1a-c050f53876da" + "x-ms-correlation-request-id": "df64a59f-01f8-4007-a364-1a9d82944791", + "x-ms-ratelimit-remaining-subscription-reads": "11953", + "x-ms-request-id": "11b1925f-f88b-4d4c-8798-100897b8c1fb", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T093814Z:df64a59f-01f8-4007-a364-1a9d82944791" }, "ResponseBody": { - "name": "dc7f5e22-fd85-f04d-a72f-4a0f59c05c38", + "name": "a71afe03-3c97-ab48-a9f6-4c5a5f365192", "status": "InProgress", - "startTime": "2022-11-28T08:25:41.3764724Z" + "startTime": "2023-02-20T09:36:31.9035489Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/225e7fdc-85fd-4df0-a72f-4a0f59c05c38?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/03fe1aa7-973c-48ab-a9f6-4c5a5f365192?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "Connection": "close", - "traceparent": "00-2056253843e72c41af2db356c591ddae-53727a4fbaaab84b-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "0bb8a9f55c246b9d2be3960a5ac236db", + "traceparent": "00-6ffb0ff5a4526d73f3d100b3b9fc9c8a-63fff2d107361631-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "e7aa07788d34eb979af9254b59a0f916", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Connection": "close", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:27:55 GMT", + "Date": "Mon, 20 Feb 2023 09:38:45 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "711a9205-a614-460d-948a-b2e2aef0a63c", - "x-ms-ratelimit-remaining-subscription-reads": "11982", - "x-ms-request-id": "9d2efb98-02ca-477f-9b82-6a1b6e06e77a", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T082756Z:711a9205-a614-460d-948a-b2e2aef0a63c" + "x-ms-correlation-request-id": "e6ac7f68-e388-4b62-b1b0-4381ebdd85eb", + "x-ms-ratelimit-remaining-subscription-reads": "11952", + "x-ms-request-id": "5fb4de69-61a1-4fe1-b9d0-8fe22126560d", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T093846Z:e6ac7f68-e388-4b62-b1b0-4381ebdd85eb" }, "ResponseBody": { - "name": "dc7f5e22-fd85-f04d-a72f-4a0f59c05c38", + "name": "a71afe03-3c97-ab48-a9f6-4c5a5f365192", "status": "InProgress", - "startTime": "2022-11-28T08:25:41.3764724Z" + "startTime": "2023-02-20T09:36:31.9035489Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/225e7fdc-85fd-4df0-a72f-4a0f59c05c38?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/03fe1aa7-973c-48ab-a9f6-4c5a5f365192?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-2056253843e72c41af2db356c591ddae-9b567632c5b68e4f-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "c31a80399daee9c6ec0bdfdc60c7a5dc", + "traceparent": "00-6ffb0ff5a4526d73f3d100b3b9fc9c8a-bc062a30526bf02f-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "095d9bde190442a3a3adc7e4501090f2", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -619,31 +620,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:28:27 GMT", + "Date": "Mon, 20 Feb 2023 09:39:19 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "c0944b70-b0f7-472a-ab21-0661b465b994", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "7ef36e8d-6ae1-4c53-bd08-cfed121932b8", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T082828Z:c0944b70-b0f7-472a-ab21-0661b465b994" + "x-ms-correlation-request-id": "1c0a1f97-1f6e-4d1a-983f-6117f371487c", + "x-ms-ratelimit-remaining-subscription-reads": "11951", + "x-ms-request-id": "231c8851-6dd1-4de2-8641-c79c973b4cc6", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T093919Z:1c0a1f97-1f6e-4d1a-983f-6117f371487c" }, "ResponseBody": { - "name": "dc7f5e22-fd85-f04d-a72f-4a0f59c05c38", + "name": "a71afe03-3c97-ab48-a9f6-4c5a5f365192", "status": "InProgress", - "startTime": "2022-11-28T08:25:41.3764724Z" + "startTime": "2023-02-20T09:36:31.9035489Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/225e7fdc-85fd-4df0-a72f-4a0f59c05c38?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/03fe1aa7-973c-48ab-a9f6-4c5a5f365192?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-2056253843e72c41af2db356c591ddae-3a7075d82c5e0c4c-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "1e84fedab4fda9ae21055acbcfa2de9e", + "traceparent": "00-6ffb0ff5a4526d73f3d100b3b9fc9c8a-66bcc7b4058cf1f3-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "6afddbb783ba0e2f2b9b8ee3f2b1dde4", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -652,31 +653,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:29:00 GMT", + "Date": "Mon, 20 Feb 2023 09:39:51 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "e4adf405-f942-4708-af4c-78cf1c31778e", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "03652c75-78b5-4946-95fa-789ba608e140", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T082901Z:e4adf405-f942-4708-af4c-78cf1c31778e" + "x-ms-correlation-request-id": "2cd9c3e1-3105-43c7-b2e9-f60854b77bef", + "x-ms-ratelimit-remaining-subscription-reads": "11950", + "x-ms-request-id": "fe5b9a46-e5e7-4a8b-aaf9-44ff0fd29cde", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T093952Z:2cd9c3e1-3105-43c7-b2e9-f60854b77bef" }, "ResponseBody": { - "name": "dc7f5e22-fd85-f04d-a72f-4a0f59c05c38", + "name": "a71afe03-3c97-ab48-a9f6-4c5a5f365192", "status": "InProgress", - "startTime": "2022-11-28T08:25:41.3764724Z" + "startTime": "2023-02-20T09:36:31.9035489Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/225e7fdc-85fd-4df0-a72f-4a0f59c05c38?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/03fe1aa7-973c-48ab-a9f6-4c5a5f365192?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-2056253843e72c41af2db356c591ddae-55982feff409974e-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "cb36e3d64a035812e3ce1e187dc00a63", + "traceparent": "00-6ffb0ff5a4526d73f3d100b3b9fc9c8a-0062db2f92805d7c-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "908ebddbf2085e7e64674387c5b29a89", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -685,31 +686,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:29:33 GMT", + "Date": "Mon, 20 Feb 2023 09:40:24 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "778b709a-6b90-4e15-8a6c-347a90d24d9e", - "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-request-id": "2a452cf2-79c0-45da-a9e5-bff44dd5dcbb", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T082933Z:778b709a-6b90-4e15-8a6c-347a90d24d9e" + "x-ms-correlation-request-id": "54d2eb9f-9ced-4ced-b829-ff4d5901008f", + "x-ms-ratelimit-remaining-subscription-reads": "11949", + "x-ms-request-id": "6f2026b5-2a53-4c68-a730-7d6ce60262e7", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T094024Z:54d2eb9f-9ced-4ced-b829-ff4d5901008f" }, "ResponseBody": { - "name": "dc7f5e22-fd85-f04d-a72f-4a0f59c05c38", + "name": "a71afe03-3c97-ab48-a9f6-4c5a5f365192", "status": "InProgress", - "startTime": "2022-11-28T08:25:41.3764724Z" + "startTime": "2023-02-20T09:36:31.9035489Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/225e7fdc-85fd-4df0-a72f-4a0f59c05c38?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/03fe1aa7-973c-48ab-a9f6-4c5a5f365192?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-2056253843e72c41af2db356c591ddae-834aae3bbdf07645-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "5c30b93e183e84ded171a2a842fb1a4a", + "traceparent": "00-6ffb0ff5a4526d73f3d100b3b9fc9c8a-6386548f00e515ec-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "7e9432698ea25a5b6c4fde698bc050f1", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -718,305 +719,64 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:30:05 GMT", + "Date": "Mon, 20 Feb 2023 09:40:56 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "55bf6498-023e-420d-a0df-6754a8584a5e", - "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-request-id": "43d84297-a219-49f0-a432-74e5eb47adc7", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T083005Z:55bf6498-023e-420d-a0df-6754a8584a5e" + "x-ms-correlation-request-id": "3783f254-8a18-42ab-ab75-4743569a469e", + "x-ms-ratelimit-remaining-subscription-reads": "11948", + "x-ms-request-id": "861ffae4-2b8b-44b5-b702-47d788f10802", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T094057Z:3783f254-8a18-42ab-ab75-4743569a469e" }, "ResponseBody": { - "name": "dc7f5e22-fd85-f04d-a72f-4a0f59c05c38", + "name": "a71afe03-3c97-ab48-a9f6-4c5a5f365192", "status": "InProgress", - "startTime": "2022-11-28T08:25:41.3764724Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/225e7fdc-85fd-4df0-a72f-4a0f59c05c38?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-2056253843e72c41af2db356c591ddae-b9351a9623196f4a-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "7d06402dd99090d9ec2c3b2e95952b60", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "170", - "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:30:37 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "60c601e7-3209-4843-a994-5fca963415a7", - "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "2b239162-9164-42b5-9850-c292a2f5ffed", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T083038Z:60c601e7-3209-4843-a994-5fca963415a7" - }, - "ResponseBody": { - "name": "dc7f5e22-fd85-f04d-a72f-4a0f59c05c38", - "status": "Succeeded", - "startTime": "2022-11-28T08:25:41.3764724Z", - "endTime": "2022-11-28T08:30:25.4336844Z" + "startTime": "2023-02-20T09:36:31.9035489Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg3300/providers/Microsoft.ContainerService/managedClusters/akscluster8501?api-version=2022-09-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/03fe1aa7-973c-48ab-a9f6-4c5a5f365192?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-2056253843e72c41af2db356c591ddae-da2069686dffa943-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "158cf6fb8271bd5f04b2fa92a86916e7", + "traceparent": "00-6ffb0ff5a4526d73f3d100b3b9fc9c8a-ad7331ac77d3fc4a-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "9309e2d0ff82c4e95c9f065340a84879", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "3019", - "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:30:38 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "87f91b1c-b8af-4568-ad1c-c69b97d60a24", - "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "516a3956-7985-4408-a35d-34528d3a7996", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T083039Z:87f91b1c-b8af-4568-ad1c-c69b97d60a24" - }, - "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testaksrg3300/providers/Microsoft.ContainerService/managedClusters/akscluster8501", - "location": "eastus", - "name": "akscluster8501", - "type": "Microsoft.ContainerService/ManagedClusters", - "properties": { - "provisioningState": "Succeeded", - "powerState": { - "code": "Running" - }, - "kubernetesVersion": "1.23.12", - "currentKubernetesVersion": "1.23.12", - "dnsPrefix": "aksdotnetsdk", - "fqdn": "aksdotnetsdk-11ae9ff9.hcp.eastus.azmk8s.io", - "azurePortalFQDN": "aksdotnetsdk-11ae9ff9.portal.hcp.eastus.azmk8s.io", - "agentPoolProfiles": [ - { - "name": "aksagent", - "count": 1, - "vmSize": "Standard_D2s_v3", - "osDiskSizeGB": 128, - "osDiskType": "Managed", - "kubeletDiskType": "OS", - "maxPods": 110, - "type": "VirtualMachineScaleSets", - "provisioningState": "Succeeded", - "powerState": { - "code": "Running" - }, - "orchestratorVersion": "1.23.12", - "currentOrchestratorVersion": "1.23.12", - "mode": "System", - "osType": "Linux", - "osSKU": "Ubuntu", - "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2022.11.02", - "enableFIPS": false - } - ], - "servicePrincipalProfile": { - "clientId": "msi" - }, - "nodeResourceGroup": "MC_testaksrg3300_akscluster8501_eastus", - "enableRBAC": true, - "networkProfile": { - "networkPlugin": "kubenet", - "loadBalancerSku": "Standard", - "loadBalancerProfile": { - "managedOutboundIPs": { - "count": 1 - }, - "effectiveOutboundIPs": [ - { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/MC_testaksrg3300_akscluster8501_eastus/providers/Microsoft.Network/publicIPAddresses/12b49302-2b45-4835-8be9-2c74dec932a8" - } - ] - }, - "podCidr": "10.244.0.0/16", - "serviceCidr": "10.0.0.0/16", - "dnsServiceIP": "10.0.0.10", - "dockerBridgeCidr": "172.17.0.1/16", - "outboundType": "loadBalancer", - "podCidrs": [ - "10.244.0.0/16" - ], - "serviceCidrs": [ - "10.0.0.0/16" - ], - "ipFamilies": [ - "IPv4" - ] - }, - "maxAgentPools": 100, - "identityProfile": { - "kubeletidentity": { - "resourceId": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/MC_testaksrg3300_akscluster8501_eastus/providers/Microsoft.ManagedIdentity/userAssignedIdentities/akscluster8501-agentpool", - "clientId": "a95c5531-9f00-4904-aec6-460adea5e558", - "objectId": "7c4b3199-d4bd-4d9b-ad05-ec6392602975" - } - }, - "securityProfile": {}, - "storageProfile": { - "diskCSIDriver": { - "enabled": true - }, - "fileCSIDriver": { - "enabled": true - }, - "snapshotController": { - "enabled": true - } - }, - "oidcIssuerProfile": { - "enabled": false - } - }, - "identity": { - "type": "SystemAssigned", - "principalId": "a7abbc1b-0d25-42c9-80b5-48b629af8b76", - "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47" - }, - "sku": { - "name": "Basic", - "tier": "Free" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg3300/providers/Microsoft.ContainerService/managedClusters/akscluster8501/listClusterAdminCredential?api-version=2022-09-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "traceparent": "00-bb5733d0b407c143938b3a46f5a32f6b-34f9985f899b574a-00", - "User-Agent": "azsdk-net-ResourceManager.ContainerService/1.1.0-alpha.20221128.1 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "3cebd4b48dba64d3e0a06f12ddb0ef3b", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "13045", - "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:30:40 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "7378e374-df98-4100-8b75-00bbdfb6403d", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "9f81d05c-fd2f-434d-90e8-5cc28040ad6c", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T083040Z:7378e374-df98-4100-8b75-00bbdfb6403d" - }, - "ResponseBody": { - "kubeconfigs": [ - { - "name": "clusterAdmin", - "value": "YXBpVmVyc2lvbjogdjEKY2x1c3RlcnM6Ci0gY2x1c3RlcjoKICAgIGNlcnRpZmljYXRlLWF1dGhvcml0eS1kYXRhOiBMUzB0TFMxQ1JVZEpUaUJEUlZKVVNVWkpRMEZVUlMwdExTMHRDazFKU1VVMlJFTkRRWFJEWjBGM1NVSkJaMGxSUjIxcGJtaHJPVGt5Y2s5VU1sUlJVVlpUVVVwMWVrRk9RbWRyY1docmFVYzVkekJDUVZGelJrRkVRVTRLVFZGemQwTlJXVVJXVVZGRVJYZEthbGxVUVdkR2R6QjVUV3BGZUUxcVozZFBSRVV5VFdwYVlVZEJPSGxOUkZWNVRWUkZlVTlFUVRSTmFsbDVUbXh2ZHdwRVZFVk1UVUZyUjBFeFZVVkJlRTFEV1RKRmQyZG5TV2xOUVRCSFExTnhSMU5KWWpORVVVVkNRVkZWUVVFMFNVTkVkMEYzWjJkSlMwRnZTVU5CVVVOM0NubDNhV3RHVlU1cmNWSlhjMUF2YzFKSmIzWTBlV3d2VUU1VGJVcGtTazFoV1dGUWQxRTRTVXh5YzJkQlJHSlNjblJ6TVRkTVJuZzBXa3hOVjBVd1FVd0tLMjE1TmtRM1puRm9kRUZQSzFsYVVEVmpVbEVyYlZwQlluQllXa0UzY1hSTVVFRTJSVVZJV0ZaVVVIWTNjbTgyUzNoa1JEUTBZa3RCY1ZkR1VVRlRWUXBEWnpKbWNFcGFaV2RKTTJWalRUbFlRa0ZsYTNNdmVqUkdLMlI1VFZwT09ESkpjbmt3WmpsNmJEQldNVEJxZGtGSlJIVmFTRE50ZFZWQlVHY3pVRlJ0Q21odWNIRXphR05QZW1Sckt6QTBWbGxCV2paNWRtTkdSbWRrUVVWeVl6Tm5RVTVoUTNsMWNIZzRVRWxwU2sxaVNVeEhkbTV4VWxGcWNFUTFZalF3UW5NS0x5OXJhR0pVYzFBNVZWQXliRlJoTVRkV2JrOXBkbTVFVFhGU2VrUm5NQ3RyTVRGRWNXOHpSSGxKU21sQ1FXaFpOa3REYzBZM09HWmhhVmMwYkZad1pncDNRM0I2ZUVWTlZtSlFhekZ6WW5JemNIbHZMM2xWWlZSeFpYTlBWMUJET0cxUUwyUXZlbXN5VVZOU1QzWXJlQzhyVTAxSVRVVkNNakpUWmtSQloxTlNDbmh3ZWxOeVYyaENNVEJtWVhaaWNUQXdPV1psUmtGUU1rczVMMlY2VUZWaGJTdHlPVEpTTkhWWGJHZEpMMU5vV1dvNVVIZEhabFJNVFZoSFpXUjRSM0VLSzFWT2RYWlJPR0pGY0dkWGRFSm5kRzU1ZW5KWVdrSjBVM2h4UkV4ME1VUnNaRWxWYjBvMU5UZDZVV1I2ZW5RMVdteHlLemRwZEhwUlRtTmpUa2w1VXdvNVF6VnBaR0oxT0RSMVlsSm1UV1o2TTFSNmMyTnRaalJNZFV4d0wzcFlNekJDUkZoQmMyOTJhbU5WTlhwWFJYWmhXSFIyVkV4UmFXTlhhVTVKT0ZOakNrNW9NRTVIZEVWcVlUbEJXRXB0VkdadGVWUTBaeko2T1RGcVREaGpWVWRpUzIxRlFWaGlaWFJtTm1rMVRtMUdMM05hTVVKRVZXVTRkMkpDUlhoS1pHRUtXRWxFY2t4clIzVnpaelY2S3pWdFozTjJRa1kzYkhBNVNrSmxibWQ0TjBNdk5uWlFaRmxRVFhwM1NVUkJVVUZDYnpCSmQxRkVRVTlDWjA1V1NGRTRRZ3BCWmpoRlFrRk5RMEZ4VVhkRWQxbEVWbEl3VkVGUlNDOUNRVlYzUVhkRlFpOTZRV1JDWjA1V1NGRTBSVVpuVVZWNVlqRlJOVkptVERnMFdIcENVMWhGQ2s1eFlUaDRORVpPYjBwWmQwUlJXVXBMYjFwSmFIWmpUa0ZSUlV4Q1VVRkVaMmRKUWtGQ2IxVk9SRkoxT0RoUmVsbHRiM0ZWTjBkMk5GUlZWMlJwVDBzS1RXb3lkbkF6VjI0cmVtaFRTR3BIUWpWRlNWbFNVMEZVVjBSRllXczVXVlpzWmxKRk1GTnZaR2R6ZEhodFpVcGxSRW8wTDNjNWMwNXNLMmR0U3lzM013cFJaRGRpV0RSUVZEWnJSVmN3TUVrdmMwWlRlQ3RhZUdZM2RuaDBOVUpoY1d0SE5UWm9Xamt5WkZjelRGSnlSRFJuZEU5dVpHUlRSRkZ6VmxOcFpYZGpDa1ZUYVhGa05qVkZURkJ1YVZBd2IwRnVWVkpXT0ZsUmNFbzFUVTB3TDNWRGNHeDVVVTFGV2xsSldHOUdOVU5qYzJac09HMWFSVkV6YTFWM1RYRXhibmNLYkd4elVFNTNUM2g0YWpaSVRYZDRZbkIxVUVJeE4waE9PVzExUjJ4M1VtRXhPV2hPTUVSMFR6TXpPRTVJTUhwWmEwODRRakJ4WWtwSFFVVjRWM2cwVndwU015dDVSMlY1YUdaVloybHZPVVJyUTA1WFdIRlNTR1JPTWxGVGFEZFNXVUpuTTI1NE5WSlZhRWgyYVZJcmN6aHlVbTlMUzJwR1pXTllkbU0yYmpkVENqTTBXVUZYYm5OSldHTmFibXBHVW5kUmVIRldNbUYyWmxodFZHUkJXbGhQUlhsNVJHTkthMUZRYVhFM2NXcFRjVlJZU1dsVkwzRlNjVE42Tmk5WFZWTUtUWFJRVkdoR1VXMUNiMVJTVkhjME5uaFpjakpITVVWWVdYZEJVVm81UVdJMFVHNDFRVE5aZG5sbmQyeG9TblJMZHpSd2JYVkdWVmhPVldKdVZGbEJad3BuVFdFMlZWaEhPVzlSWVRWV2NucE9WWFpMUnpRNWVqRndZemxoTTNJeFZYWXphVGh3VkhVd1YzWjNaRzVrTjJRd2VsaHVNV05DT1ZaeVJrZFZTbFV5Q2sxUk5rY3dTMjF4U0RaeWNURlZWMUZMTDJKWlUxVndjV0p6TTFkQlFUbGtWMGhQVldkRk5uZE1kaXRJTjBKMFJETnViVVpFUVdVeVNGcFdTM2RYYjJnS1FtUkJZV1JTZWpGQmIweFFkWGhwWTFWbVowZFNVa2xETUdNMFNERTRTM29yU0VwNU5rVnZWWEJDU3pGTk5FeFFUSFpEVWs1Nk1FbEVTM1pKVEdWblRncFlibEl5SzJnemRtVmhaRzVNYmpZdkNpMHRMUzB0UlU1RUlFTkZVbFJKUmtsRFFWUkZMUzB0TFMwSwogICAgc2VydmVyOiBodHRwczovL2Frc2RvdG5ldHNkay0xMWFlOWZmOS5oY3AuZWFzdHVzLmF6bWs4cy5pbzo0NDMKICBuYW1lOiBha3NjbHVzdGVyODUwMQpjb250ZXh0czoKLSBjb250ZXh0OgogICAgY2x1c3RlcjogYWtzY2x1c3Rlcjg1MDEKICAgIHVzZXI6IGNsdXN0ZXJBZG1pbl90ZXN0YWtzcmczMzAwX2Frc2NsdXN0ZXI4NTAxCiAgbmFtZTogYWtzY2x1c3Rlcjg1MDEKY3VycmVudC1jb250ZXh0OiBha3NjbHVzdGVyODUwMQpraW5kOiBDb25maWcKcHJlZmVyZW5jZXM6IHt9CnVzZXJzOgotIG5hbWU6IGNsdXN0ZXJBZG1pbl90ZXN0YWtzcmczMzAwX2Frc2NsdXN0ZXI4NTAxCiAgdXNlcjoKICAgIGNsaWVudC1jZXJ0aWZpY2F0ZS1kYXRhOiBMUzB0TFMxQ1JVZEpUaUJEUlZKVVNVWkpRMEZVUlMwdExTMHRDazFKU1VaSWFrTkRRWGRoWjBGM1NVSkJaMGxTUVU4NVl6ZDFNR1J6VlRrNFFrczRVV1pOUzFka1pFbDNSRkZaU2t0dldrbG9kbU5PUVZGRlRFSlJRWGNLUkZSRlRFMUJhMGRCTVZWRlFYaE5RMWt5UlhkSWFHTk9UV3BKZUUxVVNUUk5SR2Q0VG1wSk1sZG9ZMDVOYWxGNFRWUkpORTFFWjNsT2Fra3lWMnBCZHdwTlVtTjNSbEZaUkZaUlVVdEZkelY2WlZoT01GcFhNRFppVjBaNlpFZFdlV042UlZaTlFrMUhRVEZWUlVGNFRVMWlWMFo2WkVkV2VWa3llSEJhVnpVd0NrMUpTVU5KYWtGT1FtZHJjV2hyYVVjNWR6QkNRVkZGUmtGQlQwTkJaemhCVFVsSlEwTm5TME5CWjBWQmRubGpVbk52TDNJME0zaFRaelprWVhSdGNFNEtLM28zWm1KRVIxUnRTR28wV2pOd01HOXBVM2RoVUdodWFDOXliRGxGVDJ0aWNtWkpaR2RNUVZOaEwweDNNV1pNZG1nM00wMWhhWGhxYlhoaE1UQk9OZ3BwYTFCaVptdHpjVk5JZFdzMUsxSXdjVVJwUW01aFJXSjRRMk5VWVU5Sk1UTTBjMnBTZDNnMVlVczBNVlozTmpRMGFERkxSMEl2VVZsYWVYWnRLMVl6Q2pWNVRWVktXSFowYlNzNFZEaG9ia0pyTmt0cGEzaHNVVXAzVDAxVlZtUlNRM1p0T0ZkV2RtVkxVM0p4VTI5dlZVeE1jblIwTW5sNGRIZHdjRXd6TDBNS01YSlNkSEpFTVRKdEwwazNObE5EWmtKQ2RVUkpLekkwYXpoVmNWWnBVbWhxVW1Ka2FsbG5ZMU5ITkdGRmFrNXJXVmREWW5JMk0waEhlR3huYUhwaFJ3cEJaV2RGZUc1bGFtd3phVVZYVEU1bGJteFpLekJ1Ym5ac0t6TlRkRmR5UVNzd1IzTnVXSGR0ZVVWRlIzTkdRV2g2V0RCQmFVcElSek5WV0ZselNGWnpDbXB0VldZck1IaHdPSFZqWjNsMVdrTTJRVnBIVkU1TlNVWklUVzVzTWxRd2QzbHdNV2h1VmtkMFpWQkNZbEZYSzBGR2VGVkJWM2sxVURjMmMwZGFkMDhLZVc1YU1TOUtkazFQYW1GRVQycHJjbXN2ZGpKVk56Z3lOalE1WVZGdmNXSmliall6VTJzM2FuWTVLM0Z3TWxaR1NXZHlZVVJ3VFdJNGMybDBVSEJyWWdwR04wRm1iR1oxUVZCUmRXcFNSRTkyT0U0MlprOTBhR2QxVm5vd1pIRlpWMGMwUmpNM1dHSkpOR1ZWTnpoWFRreFdhME5DTURWM1ZtaHlXbXhZWWtsU0NuZ3hLMnhyZVRrckt6VlJaVTF5TlVkaU56TnJRM0kyZERsYWJIWTRSeXRsVW1wdldXOUNSSFpzWW1oNldWcExMMDlRVFdsdmQxSlRjekJXTldkTFZra0tSREJZVFU1UFZVTkhWR2hyWjNkMFJtdGtVemxKYmxkWGEzZDNSbVV5UjNCdVFrVlZlVlZ3UVVWTFZrcDNORlUxY0dab2VUQnVRMjFyU2xScFRVaHNUQXAzYzNKUldVVk5UQ3RtZFdvd2RYQkphM1JKTVhSeE1FTkJkMFZCUVdGT1YwMUdVWGRFWjFsRVZsSXdVRUZSU0M5Q1FWRkVRV2RYWjAxQ1RVZEJNVlZrQ2twUlVVMU5RVzlIUTBOelIwRlJWVVpDZDAxRFRVRjNSMEV4VldSRmQwVkNMM2RSUTAxQlFYZElkMWxFVmxJd2FrSkNaM2RHYjBGVmVXSXhVVFZTWmt3S09EUllla0pUV0VWT2NXRTRlRFJHVG05S1dYZEVVVmxLUzI5YVNXaDJZMDVCVVVWTVFsRkJSR2RuU1VKQlNXRnFVRkZ2UTJ0aWNUTnlZMmgwVkZwaGNBcHVUbWd2YVZKNlRYa3dUVWQ1U2xrNE4yWktla2swUlN0SlJXbDVRbVZuY1ZGRk1IQkxaM1VyWkdacGRqbFhaalV3TTBwdGJXSlRObGhXWkhaQ1YwZ3lDa2RzV1RKUFIzTlBOa1JoYW5kaVNWbFNXRlJrV2pWR1IwcFVVVUV4YTIxWE5YcHJTRTFpYTB4MkwxTnFhVWcxUTI5QkwybDRNMFJUYjJscVMwbEVUMjhLYlU5dk9WTnRXRFZWWkhVeVVXZElTVXhxWWpobE9ETnZNWEp4V2xFNGRDOUJZVVlyYVZObWNGcEZTalJUVld4d1JWVXlTbkZVS3pOWmJWRXdlRTRyU1Fwck9UaHVUR0pKTm5NNGRIUndabWxRWVhsS04zWm9jWFp6WWpKSGRHOUZZazlvTkZoNGJXVm5VSGwwVEM4dlVUSTJTbTFtVW5SVk5VWlFZa2N3YmpWTkNrZE1iSEEwY2pGME5rSkJNaTgwZEc1R1FtTjFNeTg1Y25SVU1XbERNRk41VW5rMmJqQnVSRWsyTkVwdVlUWkZSMDVaT0ZONFFVaFZTazB2YW0xd1l6VUtkMVpGWTBSM1MwcGxORVZaWVdoYVQydENNVTU2VWpSQmMzSlljazk1WW5aMGFETlJSRVZqUTI5TWJVNTJTREpGVTJkaWVsYzVSMDFQZWtzM1UwOVNhQXAzUVhrNVkwTktkbGRUUkU5U1VXbE9kR3BYUjBkeGNXTk1hRWN3VmxaME1GcFBjRTB2TlUxSVUwbHBXVTFLV0RWUWVtSllXVVpLSzJRNFdVSnRlV3RzQ2xjNWNUWnlVV0ZIWTFscFdqSkNWa0ZHU3pjelNYbGhkeko0VjJ4SWJWYzJWRnBtZEVSUlIxcDJUMDFGUkV4RVpWaGlOM05VWW1ab1JFWXZSRXhuWkM4S1ZraEJRV0pKTmtWYVJtVnBRWFpFVm1kVk9HWmFVR2wyWTFSVU9FaG1TR1ZxYWsweWNtTkxVMUJJTXpWTE0xZE5NelV2TXpCR0sybzBXbUZoUmt0bFpRcDJMMWhZVm1Wc09GbGFVVXhUUVVKdlV6ZFhiRUZCV1RoTGN6RldTRko2VkdOTmExZzVURGcxVkcxTVZGVlpabE5XWmxremJ6TlVTRlpvTW05d2N5dGtDbnBNYXpaWGJuZzNRbGxNYUV4WWJraEZLM1ZUY214SmJ3b3RMUzB0TFVWT1JDQkRSVkpVU1VaSlEwRlVSUzB0TFMwdENnPT0KICAgIGNsaWVudC1rZXktZGF0YTogTFMwdExTMUNSVWRKVGlCU1UwRWdVRkpKVmtGVVJTQkxSVmt0TFMwdExRcE5TVWxLUzBGSlFrRkJTME5CWjBWQmRubGpVbk52TDNJME0zaFRaelprWVhSdGNFNHJlamRtWWtSSFZHMUlhalJhTTNBd2IybFRkMkZRYUc1b0wzSnNDamxGVDJ0aWNtWkpaR2RNUVZOaEwweDNNV1pNZG1nM00wMWhhWGhxYlhoaE1UQk9ObWxyVUdKbWEzTnhVMGgxYXpVclVqQnhSR2xDYm1GRlluaERZMVFLWVU5Sk1UTTBjMnBTZDNnMVlVczBNVlozTmpRMGFERkxSMEl2VVZsYWVYWnRLMVl6TlhsTlZVcFlkblJ0S3poVU9HaHVRbXMyUzJscmVHeFJTbmRQVFFwVlZtUlNRM1p0T0ZkV2RtVkxVM0p4VTI5dlZVeE1jblIwTW5sNGRIZHdjRXd6TDBNeGNsSjBja1F4TW0wdlNUYzJVME5tUWtKMVJFa3JNalJyT0ZWeENsWnBVbWhxVW1Ka2FsbG5ZMU5ITkdGRmFrNXJXVmREWW5JMk0waEhlR3huYUhwaFIwRmxaMFY0Ym1WcWJETnBSVmRNVG1WdWJGa3JNRzV1ZG13ck0xTUtkRmR5UVNzd1IzTnVXSGR0ZVVWRlIzTkdRV2g2V0RCQmFVcElSek5WV0ZselNGWnphbTFWWmlzd2VIQTRkV05uZVhWYVF6WkJXa2RVVGsxSlJraE5iZ3BzTWxRd2QzbHdNV2h1VmtkMFpWQkNZbEZYSzBGR2VGVkJWM2sxVURjMmMwZGFkMDk1YmxveEwwcDJUVTlxWVVSUGFtdHlheTkyTWxVM09ESTJORGxoQ2xGdmNXSmliall6VTJzM2FuWTVLM0Z3TWxaR1NXZHlZVVJ3VFdJNGMybDBVSEJyWWtZM1FXWnNablZCVUZGMWFsSkVUM1k0VGpabVQzUm9aM1ZXZWpBS1pIRlpWMGMwUmpNM1dHSkpOR1ZWTnpoWFRreFdhME5DTURWM1ZtaHlXbXhZWWtsU2VERXJiR3Q1T1Nzck5WRmxUWEkxUjJJM00ydERjalowT1Zwc2RnbzRSeXRsVW1wdldXOUNSSFpzWW1oNldWcExMMDlRVFdsdmQxSlRjekJXTldkTFZrbEVNRmhOVGs5VlEwZFVhR3RuZDNSR2EyUlRPVWx1VjFkcmQzZEdDbVV5UjNCdVFrVlZlVlZ3UVVWTFZrcDNORlUxY0dab2VUQnVRMjFyU2xScFRVaHNUSGR6Y2xGWlJVMU1LMloxYWpCMWNFbHJkRWt4ZEhFd1EwRjNSVUVLUVZGTFEwRm5RVnBpVFhadk1GVllValo2TldGaWJ6aGtVbXRTTjBRMlJFOUdhMWxKWlUxaGNHeE9jMmR0Wm5GM05qWkdlSEk0YVZsV1kzSjNVWGhsZUFwM2NXNXhOSGwzWVVodWNHMUliRFZKZURaU1pWTnJSa2M0Y0ROQkswVmxaMjg0VkV4QlZUaHpNMUJGTjFWMFJFTnpObEZ4TUdaMU9UZHhRekY2UWpjd0NrY3dLMjEzWXpCelpVUlFWazQwYjJOaVZtSmtUazlqVTNWR1NHSmtORzQ1Wkd3NWFsb3dhR2swYkZGcFJ5OWhPVEZDWTJGTFZtMXViRUpMWldkQ2Mza0tWVFJ5V1U1UVNWY3laMnBYTjJ0SmFVeEtNM2wwTjNKSU5qVnNlSG95ZG5KQ1pqTmFkbW95UkhjMlowTTVkRzVhYkVsM1FtTTJPSFUyUVZoc2NUQXpjUXAyYkdwemRGZENXVmhYWlZSdlJFd3hRMmR6Tm5GdlVuaFdObTgxV2t4QlJqWm1TR3BsY3pnemMxSjJOM1ZaVEM5dlpVcG9aR1YxV2pNNGIzUlpWVE5vQ2xsS2MxUTVZbTgzUWpFeVNIQkpTRWR4U1ZWdU9URjBZMFpVU2t3dk0zVXZUalJIVVd0SVkyTXJiR1o0YldGalV6VkxRelZRUWpCb2FVazRUSEZPWjFrS01VVmpLMk5zZEdOVWQwaDJXVGhHWjFKalR6Y3lLemRHWW14dVVqWkdiMUpRV1doT2JFaDFjazFhWkZOWWVrVmpjMDlaUTNJMGFEUk5LMmxITmxCSU1RcHhhbEZxYmxKalRqWjViVEo2TW5SMmRHbENhRWRQZFVONlVIZHdNR2hhVURaWkszcEJlREpZSzFORVJYRXZhRXRUYXk5VFVVMDFRMkp4UlZsbFIwRk1DalpCVUU5cFFTdDFZVFJHYW1aak9UVTRRaXRvVHpaRFZGSkxNV0pYVVdkRmFrRlNSekE0ZFhWNEswSlZNWGhLUW5ad2EzQjVVMUZCVEdVeWJ6UmFaWFVLWjBsVVoySnBURTlxWm1aR1RVVlVOa05YUjBwQ1FqRnBVbEVyU1hvMk5uVmxhVmM1ZVhCNFEwaGlia3BxWldoeFVtOHdMeTlXT1dSRFprWlpiMmxqS3dwbWVuZFhTVTFFV0ZKQ2FYa3JObWt3WVhBemRIVnhOSEphU1hONE9VaHNSVmczU0RST1RIbFJjRTVoYkVSUmFqRnZVVXREUVZGRlFURmtSM0ZVWkdaeENteG1iV3hFVEhaRGMzbDJlbU5ZVFdvMlJFVldaR2x2TlM5aWJWZFVSa1pIVVVwa00yNHZRMkZFYjNkaVJUSm9OblpLYjFSeFlrWklkelpVTW5ONk0wb0tOMkYxTTA1WGJrbG5UakIyWkdJNFdXeDNaMFZwUjJWUU9FVkdUMjV4YkZsQloxSnJRa2x2TXpKV2NURkxlRGxXWlcxM1QzRjFObXRNVDBvNVExZFhTZ3BZVDNGNWNHd3hTMjVUUjBSWlNHRkdialpXZFU1NFlsUkVjUzl5YW13NVNtY3dLMGw0YlRGSGMxWlhWVGRqZURBMVpVcHlPSEl5ZDJzMFdVVjZaMnQxQ2psb2VsVjVUVlpsVldKMVJtNW1kREpNZW0xUFdYWk9WbGdyV2tOaVZFeE9NV2x3YlhaSGNIVktjblV2Tm1Sb00wNHlUVnBMWjNFMlpUYzFjSFJMZUhnS01HbFFOa0pEUXpKcmVXbE9WV1ZSWVRBMFJDczVlbFJSWW1wTmFXVjZUamh0VjJjM2JIUnVNVXBTZVZVeFYwNWpkRGN5VURKb1FrUlhPSFp2ZDNOblJBcENXVUZ6U1hobVdVOVVkM1ZvVVV0RFFWRkZRVFZPZVhwYWFHeEdRbEZNYzIxVFptZDNlVFIyYTJVM1FVeGlNRXhuUlhKSVkwSjROalJuYURWbVRVZG1DbnAzZVRoRFlUY3JkVVp0VUhob2VYTlVMMUZUWlc5NFptUnZSUzk0Yld4clVXdFJhR1JJYm5Cc1NYRk1UR04xZG5KcU9YRnJXblJ2ZVZGNUsyUjNkellLWTFwSFdWUTRlRU5wY0habGRXOVJibVpNYmpkSFRUUXdVMjUyVm1oUk9EZERkR3hQYjFSUVEzVnNPRU13ZEVsQ2RtSkJUSEJLY0RadE5qWTViVWhSVXdvdkwxaGFWRFZsWmtSSVQyTXJlamxZY2xGelZXRkVkRE13ZW5sUk1tWlhjRmswVGxka1IwUm9OVGR1Y1c5T1FrdGpTbFZEVFRSMk1qVTFMelEzV1RSMUNrRk1UVmRuWm5GU2RtMTJlazgyUVZwWFdXWjBOemM1ZG1Wc1dGVTVPVkJNVVUxU1FqSlBTamxtT0RoUE0wSXlaM0JhWlVaVlNtbG1kRFZGY0Rac0swVUtlVzFaZEhaMk5UaDBWM1JRUjFoQk16UkJaVEZKVERkWVExUkxjbVp3TldWYU1YRTJZbXRaUlVOUlMwTkJVVVZCZWtKSlNUTmlWRWRyZHpoeFNrMVpUQXBLUjBFNVVEZHJjSFY0Uld4eU5YSk1jMFZ3ZUd4VVRUUjJjWE5TY0VKbVNtOVVjVGxIVEM5ME4wcFhUbFZNWWk5cVJUSnJiWGgyVFROellURXpRV1Y2Q2sxeVNtNHJjRkpDVkhSNE4waDNhbWRwZFdnMWRHUndaMUZqVTFwQ1VFRTJURE4wZDFRNVJHWkVla2RWY1dwWFRHZGlPVVZ2VkZKRlluVmpaRlJOVkdJS1ZYRTNTM0ZqVmxVNFZFczVlREY0UlZsak9ISklZak0xT1hCYWVFeDRhbUZyUzFCcGRWUmpZa1owUlUxUlEyZHNTVUpsV0M5SFJYUmlaak5GV2tRMWFncE1PVk4xZVZWS1dEUlBhVzgyWlRObFVFOUpValJvUkV3dllYbEpWWGx0ZEV0a1EyeGpVRmRHYVhSd1RrTlRRVzFNWWxwc1VYVm5WekZtTkRaUU4yaE9Da3RLVW1Gc1NqaEdjak5zT1ZoemEwMWhWRVJ4Y0haV1ZEVlZTbXBLVXpKMU1rSlhORkY0Vmt4U05UVnVZbXBPTlZwdFNuVkxORVZxZVZKek1HaFBXR01LUnpONFFqRlJTME5CVVVGVFZVOTBNbkF4TUZSMWNHdDFOVXhqYWxJNFdEZ3lkWFU0WmxZeU0xSmpWRk5ZZVZWcFp5dFZaRXNyTTJKU2VubG9WbU5WUkFwQlppOHdjbWRVU1ZoV1RrSlNXWGsyVldwMlJtRkdabWw1WTNOWWNFVTBhVmRxWjNKVlVuSmtVMmwzUVZCVWVsVnZiRll6T1RVeVVua3dTWGxYVEcxWENtMUZWSEZFYm5WUGFYUXZhWEV4V1dGQkwwVm9kR2RrVjNCbEsyRkVVMlIyWmxBd1pqTkVhbEpqYnpWeUwxRlZSa0Z4V1dZeGJVcFRORGt3YUdSd1VDOEtSR2d5Y0V0bVpXUllURFpyV0U5WlNraE9Za2MyZEdSRmNFcFZPWFZUWXpkUldFUmhjaTlFVmswNFpUWlZiVUpRVWpCc1NEQmtTWGx6YVV0RFFXOXBOUXBuWWtFd2RrZHdjVGxQYzBFdloxRjNLMVFyVkVkbWMzaFZjMDl0VmxCSlVWVlpWSGczZEd0V2FEVjJaWGxIWnpNMk9FVTRRbUZ5T1NzNVJqZGpTMmxSQ21GSFkzSk9VVlI2ZUVGdmJEbGpRVVk1TWpCelRrRmhRVXBSTWpSc05XWndRVzlKUWtGSWIyRkRPV1IwTDNsbU1sSnljMHRWTDJKRFduVXlVVlp1ZGtjS2VYUnpVWFFyZW1wSFdFeEhTRFpWWjJ0MVRqUkRlVTFrWm1kMFNtTndhV2xITmxOUmNtSlBUbWxwV2pKblNFSjNTWGxyUm13d2NGRklRMjlHYzNKcWJBcEdPRTFXUjJWd1ZrRlJlbmM0VkdoMFZEZzFZMlpyYTI1YVJ6UnhXRXhDUzJSelExSk9lRFUzS3pNMVVGbEZhVFpXZGxNelZEUm9SR3hJWmt4alN6aFFDbWMzUWsxV1dVMWthM05vZFZSSWRXMUhPRVYzTm10MVJXWkpTems1ZDNCRlpqUldUVkp4WnpoeVlrVkhRaTluU1hrdkswTXJOWFZsZWt0eFJtdHdRWGNLY0hjeWVsSmxSMWRrUnpaamVHaEtkUzlITWtwQmFVc3pTRlJ0WVZwWmFWVnJWRVJ3Um1STVlVMTRPSFJMYUcxV1luaEZUbXR6Ym5NM1FuQXlMMjF5TVFwUk5saDFNM1JzUXpKamVHbFpZVmt2YWpjd1FWRnNhMEpTWmt0emRYbFZNMFYyWlc1c2JURkhTRXAzVDFwcmFDczFVbmt6WWpKNFNucDJTVDBLTFMwdExTMUZUa1FnVWxOQklGQlNTVlpCVkVVZ1MwVlpMUzB0TFMwSwogICAgdG9rZW46IGIxZTEzNmIwNzU2NmI2ZTU1ODIzN2VlY2Q2NTJkYzIxZTYwNTQ3YWM1OTBlZjBhNmMwZmEwODliNmEwMGVkNDllNWIwNzFkNTVkMDRlNDhkYThlZjNkYjBmZWJmZGI3N2YxMjUzMjgzODk5ZjQ5MzgyYTE4ZDAyZjI4ZWEyZTdmCg==" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg3300/providers/Microsoft.ContainerService/managedClusters/akscluster8501/listClusterUserCredential?api-version=2022-09-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "0", - "traceparent": "00-0ceeed13c349064c9f4bb2db2555aa76-57fb7c47b98d7f4a-00", - "User-Agent": "azsdk-net-ResourceManager.ContainerService/1.1.0-alpha.20221128.1 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "4bad4145056fabd8e04878dedf47e783", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "13040", + "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:30:40 GMT", + "Date": "Mon, 20 Feb 2023 09:41:28 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "bf013685-c0e9-4bd0-893a-f3965222151b", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "529579e8-f2bc-4af2-bb10-ae0fffe68f5f", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T083040Z:bf013685-c0e9-4bd0-893a-f3965222151b" + "x-ms-correlation-request-id": "3b2b4fe3-7317-410a-9009-ec3883729772", + "x-ms-ratelimit-remaining-subscription-reads": "11947", + "x-ms-request-id": "a1fb142a-a6e9-4625-87d2-9d3f0aebd4f3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T094129Z:3b2b4fe3-7317-410a-9009-ec3883729772" }, "ResponseBody": { - "kubeconfigs": [ - { - "name": "clusterUser", - "value": "YXBpVmVyc2lvbjogdjEKY2x1c3RlcnM6Ci0gY2x1c3RlcjoKICAgIGNlcnRpZmljYXRlLWF1dGhvcml0eS1kYXRhOiBMUzB0TFMxQ1JVZEpUaUJEUlZKVVNVWkpRMEZVUlMwdExTMHRDazFKU1VVMlJFTkRRWFJEWjBGM1NVSkJaMGxSUjIxcGJtaHJPVGt5Y2s5VU1sUlJVVlpUVVVwMWVrRk9RbWRyY1docmFVYzVkekJDUVZGelJrRkVRVTRLVFZGemQwTlJXVVJXVVZGRVJYZEthbGxVUVdkR2R6QjVUV3BGZUUxcVozZFBSRVV5VFdwYVlVZEJPSGxOUkZWNVRWUkZlVTlFUVRSTmFsbDVUbXh2ZHdwRVZFVk1UVUZyUjBFeFZVVkJlRTFEV1RKRmQyZG5TV2xOUVRCSFExTnhSMU5KWWpORVVVVkNRVkZWUVVFMFNVTkVkMEYzWjJkSlMwRnZTVU5CVVVOM0NubDNhV3RHVlU1cmNWSlhjMUF2YzFKSmIzWTBlV3d2VUU1VGJVcGtTazFoV1dGUWQxRTRTVXh5YzJkQlJHSlNjblJ6TVRkTVJuZzBXa3hOVjBVd1FVd0tLMjE1TmtRM1puRm9kRUZQSzFsYVVEVmpVbEVyYlZwQlluQllXa0UzY1hSTVVFRTJSVVZJV0ZaVVVIWTNjbTgyUzNoa1JEUTBZa3RCY1ZkR1VVRlRWUXBEWnpKbWNFcGFaV2RKTTJWalRUbFlRa0ZsYTNNdmVqUkdLMlI1VFZwT09ESkpjbmt3WmpsNmJEQldNVEJxZGtGSlJIVmFTRE50ZFZWQlVHY3pVRlJ0Q21odWNIRXphR05QZW1Sckt6QTBWbGxCV2paNWRtTkdSbWRrUVVWeVl6Tm5RVTVoUTNsMWNIZzRVRWxwU2sxaVNVeEhkbTV4VWxGcWNFUTFZalF3UW5NS0x5OXJhR0pVYzFBNVZWQXliRlJoTVRkV2JrOXBkbTVFVFhGU2VrUm5NQ3RyTVRGRWNXOHpSSGxKU21sQ1FXaFpOa3REYzBZM09HWmhhVmMwYkZad1pncDNRM0I2ZUVWTlZtSlFhekZ6WW5JemNIbHZMM2xWWlZSeFpYTlBWMUJET0cxUUwyUXZlbXN5VVZOU1QzWXJlQzhyVTAxSVRVVkNNakpUWmtSQloxTlNDbmh3ZWxOeVYyaENNVEJtWVhaaWNUQXdPV1psUmtGUU1rczVMMlY2VUZWaGJTdHlPVEpTTkhWWGJHZEpMMU5vV1dvNVVIZEhabFJNVFZoSFpXUjRSM0VLSzFWT2RYWlJPR0pGY0dkWGRFSm5kRzU1ZW5KWVdrSjBVM2h4UkV4ME1VUnNaRWxWYjBvMU5UZDZVV1I2ZW5RMVdteHlLemRwZEhwUlRtTmpUa2w1VXdvNVF6VnBaR0oxT0RSMVlsSm1UV1o2TTFSNmMyTnRaalJNZFV4d0wzcFlNekJDUkZoQmMyOTJhbU5WTlhwWFJYWmhXSFIyVkV4UmFXTlhhVTVKT0ZOakNrNW9NRTVIZEVWcVlUbEJXRXB0VkdadGVWUTBaeko2T1RGcVREaGpWVWRpUzIxRlFWaGlaWFJtTm1rMVRtMUdMM05hTVVKRVZXVTRkMkpDUlhoS1pHRUtXRWxFY2t4clIzVnpaelY2S3pWdFozTjJRa1kzYkhBNVNrSmxibWQ0TjBNdk5uWlFaRmxRVFhwM1NVUkJVVUZDYnpCSmQxRkVRVTlDWjA1V1NGRTRRZ3BCWmpoRlFrRk5RMEZ4VVhkRWQxbEVWbEl3VkVGUlNDOUNRVlYzUVhkRlFpOTZRV1JDWjA1V1NGRTBSVVpuVVZWNVlqRlJOVkptVERnMFdIcENVMWhGQ2s1eFlUaDRORVpPYjBwWmQwUlJXVXBMYjFwSmFIWmpUa0ZSUlV4Q1VVRkVaMmRKUWtGQ2IxVk9SRkoxT0RoUmVsbHRiM0ZWTjBkMk5GUlZWMlJwVDBzS1RXb3lkbkF6VjI0cmVtaFRTR3BIUWpWRlNWbFNVMEZVVjBSRllXczVXVlpzWmxKRk1GTnZaR2R6ZEhodFpVcGxSRW8wTDNjNWMwNXNLMmR0U3lzM013cFJaRGRpV0RSUVZEWnJSVmN3TUVrdmMwWlRlQ3RhZUdZM2RuaDBOVUpoY1d0SE5UWm9Xamt5WkZjelRGSnlSRFJuZEU5dVpHUlRSRkZ6VmxOcFpYZGpDa1ZUYVhGa05qVkZURkJ1YVZBd2IwRnVWVkpXT0ZsUmNFbzFUVTB3TDNWRGNHeDVVVTFGV2xsSldHOUdOVU5qYzJac09HMWFSVkV6YTFWM1RYRXhibmNLYkd4elVFNTNUM2g0YWpaSVRYZDRZbkIxVUVJeE4waE9PVzExUjJ4M1VtRXhPV2hPTUVSMFR6TXpPRTVJTUhwWmEwODRRakJ4WWtwSFFVVjRWM2cwVndwU015dDVSMlY1YUdaVloybHZPVVJyUTA1WFdIRlNTR1JPTWxGVGFEZFNXVUpuTTI1NE5WSlZhRWgyYVZJcmN6aHlVbTlMUzJwR1pXTllkbU0yYmpkVENqTTBXVUZYYm5OSldHTmFibXBHVW5kUmVIRldNbUYyWmxodFZHUkJXbGhQUlhsNVJHTkthMUZRYVhFM2NXcFRjVlJZU1dsVkwzRlNjVE42Tmk5WFZWTUtUWFJRVkdoR1VXMUNiMVJTVkhjME5uaFpjakpITVVWWVdYZEJVVm81UVdJMFVHNDFRVE5aZG5sbmQyeG9TblJMZHpSd2JYVkdWVmhPVldKdVZGbEJad3BuVFdFMlZWaEhPVzlSWVRWV2NucE9WWFpMUnpRNWVqRndZemxoTTNJeFZYWXphVGh3VkhVd1YzWjNaRzVrTjJRd2VsaHVNV05DT1ZaeVJrZFZTbFV5Q2sxUk5rY3dTMjF4U0RaeWNURlZWMUZMTDJKWlUxVndjV0p6TTFkQlFUbGtWMGhQVldkRk5uZE1kaXRJTjBKMFJETnViVVpFUVdVeVNGcFdTM2RYYjJnS1FtUkJZV1JTZWpGQmIweFFkWGhwWTFWbVowZFNVa2xETUdNMFNERTRTM29yU0VwNU5rVnZWWEJDU3pGTk5FeFFUSFpEVWs1Nk1FbEVTM1pKVEdWblRncFlibEl5SzJnemRtVmhaRzVNYmpZdkNpMHRMUzB0UlU1RUlFTkZVbFJKUmtsRFFWUkZMUzB0TFMwSwogICAgc2VydmVyOiBodHRwczovL2Frc2RvdG5ldHNkay0xMWFlOWZmOS5oY3AuZWFzdHVzLmF6bWs4cy5pbzo0NDMKICBuYW1lOiBha3NjbHVzdGVyODUwMQpjb250ZXh0czoKLSBjb250ZXh0OgogICAgY2x1c3RlcjogYWtzY2x1c3Rlcjg1MDEKICAgIHVzZXI6IGNsdXN0ZXJVc2VyX3Rlc3Rha3NyZzMzMDBfYWtzY2x1c3Rlcjg1MDEKICBuYW1lOiBha3NjbHVzdGVyODUwMQpjdXJyZW50LWNvbnRleHQ6IGFrc2NsdXN0ZXI4NTAxCmtpbmQ6IENvbmZpZwpwcmVmZXJlbmNlczoge30KdXNlcnM6Ci0gbmFtZTogY2x1c3RlclVzZXJfdGVzdGFrc3JnMzMwMF9ha3NjbHVzdGVyODUwMQogIHVzZXI6CiAgICBjbGllbnQtY2VydGlmaWNhdGUtZGF0YTogTFMwdExTMUNSVWRKVGlCRFJWSlVTVVpKUTBGVVJTMHRMUzB0Q2sxSlNVWklha05EUVhkaFowRjNTVUpCWjBsU1FVODVZemQxTUdSelZUazRRa3M0VVdaTlMxZGtaRWwzUkZGWlNrdHZXa2xvZG1OT1FWRkZURUpSUVhjS1JGUkZURTFCYTBkQk1WVkZRWGhOUTFreVJYZElhR05PVFdwSmVFMVVTVFJOUkdkNFRtcEpNbGRvWTA1TmFsRjRUVlJKTkUxRVozbE9ha2t5VjJwQmR3cE5VbU4zUmxGWlJGWlJVVXRGZHpWNlpWaE9NRnBYTURaaVYwWjZaRWRXZVdONlJWWk5RazFIUVRGVlJVRjRUVTFpVjBaNlpFZFdlVmt5ZUhCYVZ6VXdDazFKU1VOSmFrRk9RbWRyY1docmFVYzVkekJDUVZGRlJrRkJUME5CWnpoQlRVbEpRME5uUzBOQlowVkJkbmxqVW5OdkwzSTBNM2hUWnpaa1lYUnRjRTRLSzNvM1ptSkVSMVJ0U0dvMFdqTndNRzlwVTNkaFVHaHVhQzl5YkRsRlQydGljbVpKWkdkTVFWTmhMMHgzTVdaTWRtZzNNMDFoYVhocWJYaGhNVEJPTmdwcGExQmlabXR6Y1ZOSWRXczFLMUl3Y1VScFFtNWhSV0o0UTJOVVlVOUpNVE0wYzJwU2QzZzFZVXMwTVZaM05qUTBhREZMUjBJdlVWbGFlWFp0SzFZekNqVjVUVlZLV0haMGJTczRWRGhvYmtKck5rdHBhM2hzVVVwM1QwMVZWbVJTUTNadE9GZFdkbVZMVTNKeFUyOXZWVXhNY25SME1ubDRkSGR3Y0V3ekwwTUtNWEpTZEhKRU1USnRMMGszTmxORFprSkNkVVJKS3pJMGF6aFZjVlpwVW1ocVVtSmthbGxuWTFOSE5HRkZhazVyV1ZkRFluSTJNMGhIZUd4bmFIcGhSd3BCWldkRmVHNWxhbXd6YVVWWFRFNWxibXhaS3pCdWJuWnNLek5UZEZkeVFTc3dSM051V0hkdGVVVkZSM05HUVdoNldEQkJhVXBJUnpOVldGbHpTRlp6Q21wdFZXWXJNSGh3T0hWalozbDFXa00yUVZwSFZFNU5TVVpJVFc1c01sUXdkM2x3TVdodVZrZDBaVkJDWWxGWEswRkdlRlZCVjNrMVVEYzJjMGRhZDA4S2VXNWFNUzlLZGsxUGFtRkVUMnByY21zdmRqSlZOemd5TmpRNVlWRnZjV0ppYmpZelUyczNhblk1SzNGd01sWkdTV2R5WVVSd1RXSTRjMmwwVUhCcllncEdOMEZtYkdaMVFWQlJkV3BTUkU5Mk9FNDJaazkwYUdkMVZub3daSEZaVjBjMFJqTTNXR0pKTkdWVk56aFhUa3hXYTBOQ01EVjNWbWh5V214WVlrbFNDbmd4SzJ4cmVUa3JLelZSWlUxeU5VZGlOek5yUTNJMmREbGFiSFk0Unl0bFVtcHZXVzlDUkhac1ltaDZXVnBMTDA5UVRXbHZkMUpUY3pCV05XZExWa2tLUkRCWVRVNVBWVU5IVkdoclozZDBSbXRrVXpsSmJsZFhhM2QzUm1VeVIzQnVRa1ZWZVZWd1FVVkxWa3AzTkZVMWNHWm9lVEJ1UTIxclNsUnBUVWhzVEFwM2MzSlJXVVZOVEN0bWRXb3dkWEJKYTNSSk1YUnhNRU5CZDBWQlFXRk9WMDFHVVhkRVoxbEVWbEl3VUVGUlNDOUNRVkZFUVdkWFowMUNUVWRCTVZWa0NrcFJVVTFOUVc5SFEwTnpSMEZSVlVaQ2QwMURUVUYzUjBFeFZXUkZkMFZDTDNkUlEwMUJRWGRJZDFsRVZsSXdha0pDWjNkR2IwRlZlV0l4VVRWU1prd0tPRFJZZWtKVFdFVk9jV0U0ZURSR1RtOUtXWGRFVVZsS1MyOWFTV2gyWTA1QlVVVk1RbEZCUkdkblNVSkJTV0ZxVUZGdlEydGljVE55WTJoMFZGcGhjQXB1VG1ndmFWSjZUWGt3VFVkNVNsazROMlpLZWtrMFJTdEpSV2w1UW1WbmNWRkZNSEJMWjNVclpHWnBkamxYWmpVd00wcHRiV0pUTmxoV1pIWkNWMGd5Q2tkc1dUSlBSM05QTmtSaGFuZGlTVmxTV0ZSa1dqVkdSMHBVVVVFeGEyMVhOWHByU0UxaWEweDJMMU5xYVVnMVEyOUJMMmw0TTBSVGIybHFTMGxFVDI4S2JVOXZPVk50V0RWVlpIVXlVV2RJU1V4cVlqaGxPRE52TVhKeFdsRTRkQzlCWVVZcmFWTm1jRnBGU2pSVFZXeHdSVlV5U25GVUt6TlpiVkV3ZUU0clNRcHJPVGh1VEdKSk5uTTRkSFJ3Wm1sUVlYbEtOM1pvY1haellqSkhkRzlGWWs5b05GaDRiV1ZuVUhsMFRDOHZVVEkyU20xbVVuUlZOVVpRWWtjd2JqVk5Da2RNYkhBMGNqRjBOa0pCTWk4MGRHNUdRbU4xTXk4NWNuUlVNV2xETUZONVVuazJiakJ1UkVrMk5FcHVZVFpGUjA1Wk9GTjRRVWhWU2swdmFtMXdZelVLZDFaRlkwUjNTMHBsTkVWWllXaGFUMnRDTVU1NlVqUkJjM0pZY2s5NVluWjBhRE5SUkVWalEyOU1iVTUyU0RKRlUyZGllbGM1UjAxUGVrczNVMDlTYUFwM1FYazVZME5LZGxkVFJFOVNVV2xPZEdwWFIwZHhjV05NYUVjd1ZsWjBNRnBQY0Uwdk5VMUlVMGxwV1UxS1dEVlFlbUpZV1VaS0syUTRXVUp0ZVd0c0NsYzVjVFp5VVdGSFkxbHBXakpDVmtGR1N6Y3pTWGxoZHpKNFYyeEliVmMyVkZwbWRFUlJSMXAyVDAxRlJFeEVaVmhpTjNOVVltWm9SRVl2UkV4blpDOEtWa2hCUVdKSk5rVmFSbVZwUVhaRVZtZFZPR1phVUdsMlkxUlVPRWhtU0dWcWFrMHljbU5MVTFCSU16VkxNMWROTXpVdk16QkdLMm8wV21GaFJrdGxaUXAyTDFoWVZtVnNPRmxhVVV4VFFVSnZVemRYYkVGQldUaExjekZXU0ZKNlZHTk5hMWc1VERnMVZHMU1WRlZaWmxOV1psa3piek5VU0Zab01tOXdjeXRrQ25wTWF6WlhibmczUWxsTWFFeFlia2hGSzNWVGNteEpid290TFMwdExVVk9SQ0JEUlZKVVNVWkpRMEZVUlMwdExTMHRDZz09CiAgICBjbGllbnQta2V5LWRhdGE6IExTMHRMUzFDUlVkSlRpQlNVMEVnVUZKSlZrRlVSU0JMUlZrdExTMHRMUXBOU1VsS1MwRkpRa0ZCUzBOQlowVkJkbmxqVW5OdkwzSTBNM2hUWnpaa1lYUnRjRTRyZWpkbVlrUkhWRzFJYWpSYU0zQXdiMmxUZDJGUWFHNW9MM0pzQ2psRlQydGljbVpKWkdkTVFWTmhMMHgzTVdaTWRtZzNNMDFoYVhocWJYaGhNVEJPTm1sclVHSm1hM054VTBoMWF6VXJVakJ4UkdsQ2JtRkZZbmhEWTFRS1lVOUpNVE0wYzJwU2QzZzFZVXMwTVZaM05qUTBhREZMUjBJdlVWbGFlWFp0SzFZek5YbE5WVXBZZG5SdEt6aFVPR2h1UW1zMlMybHJlR3hSU25kUFRRcFZWbVJTUTNadE9GZFdkbVZMVTNKeFUyOXZWVXhNY25SME1ubDRkSGR3Y0V3ekwwTXhjbEowY2tReE1tMHZTVGMyVTBObVFrSjFSRWtyTWpSck9GVnhDbFpwVW1ocVVtSmthbGxuWTFOSE5HRkZhazVyV1ZkRFluSTJNMGhIZUd4bmFIcGhSMEZsWjBWNGJtVnFiRE5wUlZkTVRtVnViRmtyTUc1dWRtd3JNMU1LZEZkeVFTc3dSM051V0hkdGVVVkZSM05HUVdoNldEQkJhVXBJUnpOVldGbHpTRlp6YW0xVlppc3dlSEE0ZFdObmVYVmFRelpCV2tkVVRrMUpSa2hOYmdwc01sUXdkM2x3TVdodVZrZDBaVkJDWWxGWEswRkdlRlZCVjNrMVVEYzJjMGRhZDA5NWJsb3hMMHAyVFU5cVlVUlBhbXR5YXk5Mk1sVTNPREkyTkRsaENsRnZjV0ppYmpZelUyczNhblk1SzNGd01sWkdTV2R5WVVSd1RXSTRjMmwwVUhCcllrWTNRV1pzWm5WQlVGRjFhbEpFVDNZNFRqWm1UM1JvWjNWV2VqQUtaSEZaVjBjMFJqTTNXR0pKTkdWVk56aFhUa3hXYTBOQ01EVjNWbWh5V214WVlrbFNlREVyYkd0NU9Tc3JOVkZsVFhJMVIySTNNMnREY2paME9WcHNkZ280Unl0bFVtcHZXVzlDUkhac1ltaDZXVnBMTDA5UVRXbHZkMUpUY3pCV05XZExWa2xFTUZoTlRrOVZRMGRVYUd0bmQzUkdhMlJUT1VsdVYxZHJkM2RHQ21VeVIzQnVRa1ZWZVZWd1FVVkxWa3AzTkZVMWNHWm9lVEJ1UTIxclNsUnBUVWhzVEhkemNsRlpSVTFNSzJaMWFqQjFjRWxyZEVreGRIRXdRMEYzUlVFS1FWRkxRMEZuUVZwaVRYWnZNRlZZVWpaNk5XRmliemhrVW10U04wUTJSRTlHYTFsSlpVMWhjR3hPYzJkdFpuRjNOalpHZUhJNGFWbFdZM0ozVVhobGVBcDNjVzV4TkhsM1lVaHVjRzFJYkRWSmVEWlNaVk5yUmtjNGNETkJLMFZsWjI4NFZFeEJWVGh6TTFCRk4xVjBSRU56TmxGeE1HWjFPVGR4UXpGNlFqY3dDa2N3SzIxM1l6QnpaVVJRVms0MGIyTmlWbUprVGs5alUzVkdTR0prTkc0NVpHdzVhbG93YUdrMGJGRnBSeTloT1RGQ1kyRkxWbTF1YkVKTFpXZENjM2tLVlRSeVdVNVFTVmN5WjJwWE4ydEphVXhLTTNsME4zSklOalZzZUhveWRuSkNaak5hZG1veVJIYzJaME01ZEc1YWJFbDNRbU0yT0hVMlFWaHNjVEF6Y1FwMmJHcHpkRmRDV1ZoWFpWUnZSRXd4UTJkek5uRnZVbmhXTm04MVdreEJSalptU0dwbGN6Z3pjMUoyTjNWWlRDOXZaVXBvWkdWMVdqTTRiM1JaVlROb0NsbEtjMVE1WW04M1FqRXlTSEJKU0VkeFNWVnVPVEYwWTBaVVNrd3ZNM1V2VGpSSFVXdElZMk1yYkdaNGJXRmpVelZMUXpWUVFqQm9hVWs0VEhGT1oxa0tNVVZqSzJOc2RHTlVkMGgyV1RoR1oxSmpUemN5S3pkR1lteHVValpHYjFKUVdXaE9iRWgxY2sxYVpGTllla1ZqYzA5WlEzSTBhRFJOSzJsSE5sQklNUXB4YWxGcWJsSmpUalo1YlRKNk1uUjJkR2xDYUVkUGRVTjZVSGR3TUdoYVVEWlpLM3BCZURKWUsxTkVSWEV2YUV0VGF5OVRVVTAxUTJKeFJWbGxSMEZNQ2paQlVFOXBRU3QxWVRSR2FtWmpPVFU0UWl0b1R6WkRWRkpMTVdKWFVXZEZha0ZTUnpBNGRYVjRLMEpWTVhoS1FuWndhM0I1VTFGQlRHVXlielJhWlhVS1owbFVaMkpwVEU5cVptWkdUVVZVTmtOWFIwcENRakZwVWxFclNYbzJOblZsYVZjNWVYQjRRMGhpYmtwcVpXaHhVbTh3THk5V09XUkRaa1paYjJsakt3cG1lbmRYU1UxRVdGSkNhWGtyTm1rd1lYQXpkSFZ4TkhKYVNYTjRPVWhzUlZnM1NEUk9USGxSY0U1aGJFUlJhakZ2VVV0RFFWRkZRVEZrUjNGVVpHWnhDbXhtYld4RVRIWkRjM2wyZW1OWVRXbzJSRVZXWkdsdk5TOWliVmRVUmtaSFVVcGtNMjR2UTJGRWIzZGlSVEpvTm5aS2IxUnhZa1pJZHpaVU1uTjZNMG9LTjJGMU0wNVhia2xuVGpCMlpHSTRXV3gzWjBWcFIyVlFPRVZHVDI1eGJGbEJaMUpyUWtsdk16SldjVEZMZURsV1pXMTNUM0YxTm10TVQwbzVRMWRYU2dwWVQzRjVjR3d4UzI1VFIwUlpTR0ZHYmpaV2RVNTRZbFJFY1M5eWFtdzVTbWN3SzBsNGJURkhjMVpYVlRkamVEQTFaVXB5T0hJeWQyczBXVVY2WjJ0MUNqbG9lbFY1VFZabFZXSjFSbTVtZERKTWVtMVBXWFpPVmxncldrTmlWRXhPTVdsd2JYWkhjSFZLY25Vdk5tUm9NMDR5VFZwTFozRTJaVGMxY0hSTGVIZ0tNR2xRTmtKRFF6SnJlV2xPVldWUllUQTBSQ3M1ZWxSUlltcE5hV1Y2VGpodFYyYzNiSFJ1TVVwU2VWVXhWMDVqZERjeVVESm9Ra1JYT0hadmQzTm5SQXBDV1VGelNYaG1XVTlVZDNWb1VVdERRVkZGUVRWT2VYcGFhR3hHUWxGTWMyMVRabWQzZVRSMmEyVTNRVXhpTUV4blJYSklZMEo0TmpSbmFEVm1UVWRtQ25wM2VUaERZVGNyZFVadFVIaG9lWE5VTDFGVFpXOTRabVJ2UlM5NGJXeHJVV3RSYUdSSWJuQnNTWEZNVEdOMWRuSnFPWEZyV25SdmVWRjVLMlIzZHpZS1kxcEhXVlE0ZUVOcGNIWmxkVzlSYm1aTWJqZEhUVFF3VTI1MlZtaFJPRGREZEd4UGIxUlFRM1ZzT0VNd2RFbENkbUpCVEhCS2NEWnROalk1YlVoUlV3b3ZMMWhhVkRWbFprUklUMk1yZWpsWWNsRnpWV0ZFZERNd2VubFJNbVpYY0ZrMFRsZGtSMFJvTlRkdWNXOU9Ra3RqU2xWRFRUUjJNalUxTHpRM1dUUjFDa0ZNVFZkblpuRlNkbTEyZWs4MlFWcFhXV1owTnpjNWRtVnNXRlU1T1ZCTVVVMVNRakpQU2psbU9EaFBNMEl5WjNCYVpVWlZTbWxtZERWRmNEWnNLMFVLZVcxWmRIWjJOVGgwVjNSUVIxaEJNelJCWlRGSlREZFlRMVJMY21ad05XVmFNWEUyWW10WlJVTlJTME5CVVVWQmVrSkpTVE5pVkVkcmR6aHhTazFaVEFwS1IwRTVVRGRyY0hWNFJXeHlOWEpNYzBWd2VHeFVUVFIyY1hOU2NFSm1TbTlVY1RsSFRDOTBOMHBYVGxWTVlpOXFSVEpyYlhoMlRUTnpZVEV6UVdWNkNrMXlTbTRyY0ZKQ1ZIUjROMGgzYW1kcGRXZzFkR1J3WjFGalUxcENVRUUyVEROMGQxUTVSR1pFZWtkVmNXcFhUR2RpT1VWdlZGSkZZblZqWkZSTlZHSUtWWEUzUzNGalZsVTRWRXM1ZURGNFJWbGpPSEpJWWpNMU9YQmFlRXg0YW1GclMxQnBkVlJqWWtaMFJVMVJRMmRzU1VKbFdDOUhSWFJpWmpORldrUTFhZ3BNT1ZOMWVWVktXRFJQYVc4MlpUTmxVRTlKVWpSb1JFd3ZZWGxKVlhsdGRFdGtRMnhqVUZkR2FYUndUa05UUVcxTVlscHNVWFZuVnpGbU5EWlFOMmhPQ2t0S1VtRnNTamhHY2pOc09WaHphMDFoVkVSeGNIWldWRFZWU21wS1V6SjFNa0pYTkZGNFZreFNOVFZ1WW1wT05WcHRTblZMTkVWcWVWSnpNR2hQV0dNS1J6TjRRakZSUzBOQlVVRlRWVTkwTW5BeE1GUjFjR3QxTlV4amFsSTRXRGd5ZFhVNFpsWXlNMUpqVkZOWWVWVnBaeXRWWkVzck0ySlNlbmxvVm1OVlJBcEJaaTh3Y21kVVNWaFdUa0pTV1hrMlZXcDJSbUZHWm1sNVkzTlljRVUwYVZkcVozSlZVbkprVTJsM1FWQlVlbFZ2YkZZek9UVXlVbmt3U1hsWFRHMVhDbTFGVkhGRWJuVlBhWFF2YVhFeFdXRkJMMFZvZEdka1YzQmxLMkZFVTJSMlpsQXdaak5FYWxKamJ6VnlMMUZWUmtGeFdXWXhiVXBUTkRrd2FHUndVQzhLUkdneWNFdG1aV1JZVERacldFOVpTa2hPWWtjMmRHUkZjRXBWT1hWVFl6ZFJXRVJoY2k5RVZrMDRaVFpWYlVKUVVqQnNTREJrU1hsemFVdERRVzlwTlFwbllrRXdka2R3Y1RsUGMwRXZaMUYzSzFRclZFZG1jM2hWYzA5dFZsQkpVVlZaVkhnM2RHdFdhRFYyWlhsSFp6TTJPRVU0UW1GeU9TczVSamRqUzJsUkNtRkhZM0pPVVZSNmVFRnZiRGxqUVVZNU1qQnpUa0ZoUVVwUk1qUnNOV1p3UVc5SlFrRkliMkZET1dSMEwzbG1NbEp5YzB0VkwySkRXblV5VVZadWRrY0tlWFJ6VVhRcmVtcEhXRXhIU0RaVloydDFUalJEZVUxa1ptZDBTbU53YVdsSE5sTlJjbUpQVG1scFdqSm5TRUozU1hsclJtd3djRkZJUTI5R2MzSnFiQXBHT0UxV1IyVndWa0ZSZW5jNFZHaDBWRGcxWTJacmEyNWFSelJ4V0V4Q1MyUnpRMUpPZURVM0t6TTFVRmxGYVRaV2RsTXpWRFJvUkd4SVpreGpTemhRQ21jM1FrMVdXVTFrYTNOb2RWUklkVzFIT0VWM05tdDFSV1pKU3prNWQzQkZaalJXVFZKeFp6aHlZa1ZIUWk5blNYa3ZLME1yTlhWbGVrdHhSbXR3UVhjS2NIY3llbEpsUjFka1J6WmplR2hLZFM5SE1rcEJhVXN6U0ZSdFlWcFphVlZyVkVSd1JtUk1ZVTE0T0hSTGFHMVdZbmhGVG10emJuTTNRbkF5TDIxeU1RcFJObGgxTTNSc1F6SmplR2xaWVZrdmFqY3dRVkZzYTBKU1prdHpkWGxWTTBWMlpXNXNiVEZIU0VwM1QxcHJhQ3MxVW5rellqSjRTbnAyU1QwS0xTMHRMUzFGVGtRZ1VsTkJJRkJTU1ZaQlZFVWdTMFZaTFMwdExTMEsKICAgIHRva2VuOiBjZjNmNjA3NmY1M2Y0ZDY0MDhiMDIxNTBkYmNlN2RlNTM5NDYxODA5NTBkMGExNzAxZmMxMDFkNzkwYjY3NjM4MjNlZmQ1YjJhMDA1YWIwMTRkYWU4MjQzZTNhN2UwNmYxMWQyYjRkMDg5MTg2M2E0ODgyNTVmZGIyZTcwZTM5Ygo=" - } - ] + "name": "a71afe03-3c97-ab48-a9f6-4c5a5f365192", + "status": "InProgress", + "startTime": "2023-02-20T09:36:31.9035489Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg3300/providers/Microsoft.ContainerService/managedClusters/akscluster8501?api-version=2022-09-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-71c5affa6783bc4fb1dd7faf97389e5e-46985ffd2bd97b43-00", - "User-Agent": "azsdk-net-ResourceManager.ContainerService/1.1.0-alpha.20221128.1 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "c1795316efaa6da6232735d1124de054", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/565bcf2e-43b7-48e6-9acf-9623d4cae60c?api-version=2017-08-31", - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 28 Nov 2022 08:30:42 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operationresults/565bcf2e-43b7-48e6-9acf-9623d4cae60c?api-version=2017-08-31", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "b2127839-a3fc-4da6-9cfb-93361233d8b2", - "x-ms-ratelimit-remaining-subscription-deletes": "14999", - "x-ms-request-id": "565bcf2e-43b7-48e6-9acf-9623d4cae60c", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T083042Z:b2127839-a3fc-4da6-9cfb-93361233d8b2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/565bcf2e-43b7-48e6-9acf-9623d4cae60c?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/03fe1aa7-973c-48ab-a9f6-4c5a5f365192?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-71c5affa6783bc4fb1dd7faf97389e5e-c1d5b51df3fe5144-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "89fbecb82d3655909b3f2747cf079893", + "traceparent": "00-6ffb0ff5a4526d73f3d100b3b9fc9c8a-6be55d335bb02fb6-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "c07a05005e1d4c42613324b91315d3a3", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1025,31 +785,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:30:43 GMT", + "Date": "Mon, 20 Feb 2023 09:42:01 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "17a5bae6-c2b7-4784-af8f-74c63a9008f0", - "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-request-id": "76218215-42d6-4955-a51f-21ef0f7b6dea", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T083043Z:17a5bae6-c2b7-4784-af8f-74c63a9008f0" + "x-ms-correlation-request-id": "9826eb61-26d3-47ed-bd8a-e733e5fa9b78", + "x-ms-ratelimit-remaining-subscription-reads": "11946", + "x-ms-request-id": "51c4351d-56da-4de0-a331-023e1df3ff2c", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T094201Z:9826eb61-26d3-47ed-bd8a-e733e5fa9b78" }, "ResponseBody": { - "name": "2ecf5b56-b743-e648-9acf-9623d4cae60c", + "name": "a71afe03-3c97-ab48-a9f6-4c5a5f365192", "status": "InProgress", - "startTime": "2022-11-28T08:30:42.5016608Z" + "startTime": "2023-02-20T09:36:31.9035489Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/565bcf2e-43b7-48e6-9acf-9623d4cae60c?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/03fe1aa7-973c-48ab-a9f6-4c5a5f365192?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-71c5affa6783bc4fb1dd7faf97389e5e-af199a5932385445-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "211b236781fa4bc7dacac66a9334592f", + "traceparent": "00-6ffb0ff5a4526d73f3d100b3b9fc9c8a-5212c2e0e095ec34-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "e3b7511607a9690748cf210388071ac3", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1058,31 +818,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:30:44 GMT", + "Date": "Mon, 20 Feb 2023 09:42:34 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "d6fd4d61-994a-4a19-afca-424851a6b328", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "5309f24d-79ea-43ef-a9a9-dd85ed6373b9", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T083044Z:d6fd4d61-994a-4a19-afca-424851a6b328" + "x-ms-correlation-request-id": "d8a0a619-a2a3-4a2d-9ca3-df09d0ab4ac5", + "x-ms-ratelimit-remaining-subscription-reads": "11945", + "x-ms-request-id": "076be7da-1fb4-467c-816b-1e45297aa869", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T094234Z:d8a0a619-a2a3-4a2d-9ca3-df09d0ab4ac5" }, "ResponseBody": { - "name": "2ecf5b56-b743-e648-9acf-9623d4cae60c", + "name": "a71afe03-3c97-ab48-a9f6-4c5a5f365192", "status": "InProgress", - "startTime": "2022-11-28T08:30:42.5016608Z" + "startTime": "2023-02-20T09:36:31.9035489Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/565bcf2e-43b7-48e6-9acf-9623d4cae60c?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/03fe1aa7-973c-48ab-a9f6-4c5a5f365192?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-71c5affa6783bc4fb1dd7faf97389e5e-9cc9bce33feece4e-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "26189ca25651941e2df7cb7ca330dff3", + "traceparent": "00-6ffb0ff5a4526d73f3d100b3b9fc9c8a-8e019e5b2376d8f8-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "85686506904671d4a0bc314fdb30b147", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1091,31 +851,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:30:45 GMT", + "Date": "Mon, 20 Feb 2023 09:43:08 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "1a7d5d51-d5ed-43bf-bde6-d59208a67235", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "7052e67d-a935-443c-ba4a-caaa0352cb87", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T083045Z:1a7d5d51-d5ed-43bf-bde6-d59208a67235" + "x-ms-correlation-request-id": "6d0b98f1-dcda-4b40-adc5-b397e8817490", + "x-ms-ratelimit-remaining-subscription-reads": "11944", + "x-ms-request-id": "e0a39f27-bd13-4e01-82a6-65c32fedec02", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T094308Z:6d0b98f1-dcda-4b40-adc5-b397e8817490" }, "ResponseBody": { - "name": "2ecf5b56-b743-e648-9acf-9623d4cae60c", + "name": "a71afe03-3c97-ab48-a9f6-4c5a5f365192", "status": "InProgress", - "startTime": "2022-11-28T08:30:42.5016608Z" + "startTime": "2023-02-20T09:36:31.9035489Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/565bcf2e-43b7-48e6-9acf-9623d4cae60c?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/03fe1aa7-973c-48ab-a9f6-4c5a5f365192?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-71c5affa6783bc4fb1dd7faf97389e5e-cbb9ad6f55d2c548-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "f10ac8a664d8379e25b0af6c6726c166", + "traceparent": "00-6ffb0ff5a4526d73f3d100b3b9fc9c8a-f0304088c83eb6b0-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "ee3d63cc65f0f9cffe10774d3d3fc45a", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1124,31 +884,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:30:47 GMT", + "Date": "Mon, 20 Feb 2023 09:43:40 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "ccc7c774-f7f0-4454-bea6-c46ac5bbe617", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "102dc53b-9852-4c89-ad58-52b6dd0c42d7", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T083047Z:ccc7c774-f7f0-4454-bea6-c46ac5bbe617" + "x-ms-correlation-request-id": "6f7bdd44-5eec-4097-9bed-61c186bf0829", + "x-ms-ratelimit-remaining-subscription-reads": "11943", + "x-ms-request-id": "1df77f91-ec84-450a-bcd3-2a110057c591", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T094341Z:6f7bdd44-5eec-4097-9bed-61c186bf0829" }, "ResponseBody": { - "name": "2ecf5b56-b743-e648-9acf-9623d4cae60c", + "name": "a71afe03-3c97-ab48-a9f6-4c5a5f365192", "status": "InProgress", - "startTime": "2022-11-28T08:30:42.5016608Z" + "startTime": "2023-02-20T09:36:31.9035489Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/565bcf2e-43b7-48e6-9acf-9623d4cae60c?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/03fe1aa7-973c-48ab-a9f6-4c5a5f365192?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-71c5affa6783bc4fb1dd7faf97389e5e-18329573e2b06946-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "33a5f8e672ef10410586f303b54aa7a9", + "traceparent": "00-6ffb0ff5a4526d73f3d100b3b9fc9c8a-3af9a50bb0eacdd8-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "adb260184dad865c7c4643ecd5b78e18", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1157,196 +917,308 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:30:49 GMT", + "Date": "Mon, 20 Feb 2023 09:44:13 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "7e1b1f4e-81e0-4c4e-9254-d582af76239b", - "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "220d4bd4-b477-4c05-87f0-674b90a12d5a", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T083049Z:7e1b1f4e-81e0-4c4e-9254-d582af76239b" + "x-ms-correlation-request-id": "34877018-86b7-43a7-81fe-2ef56f44c9d2", + "x-ms-ratelimit-remaining-subscription-reads": "11942", + "x-ms-request-id": "07274cec-e5bd-43aa-ac31-f3fd537f1a20", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T094413Z:34877018-86b7-43a7-81fe-2ef56f44c9d2" }, "ResponseBody": { - "name": "2ecf5b56-b743-e648-9acf-9623d4cae60c", + "name": "a71afe03-3c97-ab48-a9f6-4c5a5f365192", "status": "InProgress", - "startTime": "2022-11-28T08:30:42.5016608Z" + "startTime": "2023-02-20T09:36:31.9035489Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/565bcf2e-43b7-48e6-9acf-9623d4cae60c?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/03fe1aa7-973c-48ab-a9f6-4c5a5f365192?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-71c5affa6783bc4fb1dd7faf97389e5e-8e6ddc9d8ee7944e-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "cbc3d2ea672a3d56fde000a1a7b12d07", + "traceparent": "00-6ffb0ff5a4526d73f3d100b3b9fc9c8a-067b1c97b479c825-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "2436da1e2bcaa1d3956e873518873460", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "126", + "Content-Length": "170", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:30:53 GMT", + "Date": "Mon, 20 Feb 2023 09:44:45 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "481f34ec-00a7-4d5d-a424-9b5afbaa0f7e", - "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "da343f92-a7ea-4d73-9db8-1d7299570c5d", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T083053Z:481f34ec-00a7-4d5d-a424-9b5afbaa0f7e" + "x-ms-correlation-request-id": "3a93dfc2-9be0-4e57-8849-75ac4439178f", + "x-ms-ratelimit-remaining-subscription-reads": "11941", + "x-ms-request-id": "e71f3ab4-eeba-4fb1-bb34-b5625d728a1e", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T094445Z:3a93dfc2-9be0-4e57-8849-75ac4439178f" }, "ResponseBody": { - "name": "2ecf5b56-b743-e648-9acf-9623d4cae60c", - "status": "InProgress", - "startTime": "2022-11-28T08:30:42.5016608Z" + "name": "a71afe03-3c97-ab48-a9f6-4c5a5f365192", + "status": "Succeeded", + "startTime": "2023-02-20T09:36:31.9035489Z", + "endTime": "2023-02-20T09:44:20.2444433Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/565bcf2e-43b7-48e6-9acf-9623d4cae60c?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg468/providers/Microsoft.ContainerService/managedClusters/akscluster6301?api-version=2022-11-02-preview", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-71c5affa6783bc4fb1dd7faf97389e5e-07de8cc79d314e41-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "ab956435ab8a340387f9eb51709b81da", + "traceparent": "00-6ffb0ff5a4526d73f3d100b3b9fc9c8a-4d754590ca16ff9d-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "7a36d7f7037d7e9a06b671aa21e32446", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "126", + "Content-Length": "3116", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:31:01 GMT", + "Date": "Mon, 20 Feb 2023 09:44:45 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "4da6886e-9b62-45dd-a14b-c3f3abc39ad5", - "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-request-id": "d8a8a6e4-3833-42d8-802f-1c692bad9670", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T083102Z:4da6886e-9b62-45dd-a14b-c3f3abc39ad5" + "x-ms-correlation-request-id": "eb4855df-663d-4fff-b2d6-754455b7e26e", + "x-ms-ratelimit-remaining-subscription-reads": "11940", + "x-ms-request-id": "b13a7041-b5c3-47cb-889a-8505e1b94053", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T094446Z:eb4855df-663d-4fff-b2d6-754455b7e26e" }, "ResponseBody": { - "name": "2ecf5b56-b743-e648-9acf-9623d4cae60c", - "status": "InProgress", - "startTime": "2022-11-28T08:30:42.5016608Z" + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testaksrg468/providers/Microsoft.ContainerService/managedClusters/akscluster6301", + "location": "eastus", + "name": "akscluster6301", + "type": "Microsoft.ContainerService/ManagedClusters", + "properties": { + "provisioningState": "Succeeded", + "powerState": { + "code": "Running" + }, + "kubernetesVersion": "1.24.9", + "currentKubernetesVersion": "1.24.9", + "dnsPrefix": "aksdotnetsdk", + "fqdn": "aksdotnetsdk-e25b096a.hcp.eastus.azmk8s.io", + "azurePortalFQDN": "aksdotnetsdk-e25b096a.portal.hcp.eastus.azmk8s.io", + "agentPoolProfiles": [ + { + "name": "aksagent", + "count": 1, + "vmSize": "Standard_D2s_v3", + "osDiskSizeGB": 128, + "osDiskType": "Managed", + "kubeletDiskType": "OS", + "maxPods": 110, + "type": "VirtualMachineScaleSets", + "provisioningState": "Succeeded", + "powerState": { + "code": "Running" + }, + "orchestratorVersion": "1.24.9", + "currentOrchestratorVersion": "1.24.9", + "mode": "System", + "osType": "Linux", + "osSKU": "Ubuntu", + "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2023.01.26", + "enableFIPS": false + } + ], + "servicePrincipalProfile": { + "clientId": "msi" + }, + "nodeResourceGroup": "MC_testaksrg468_akscluster6301_eastus", + "enableRBAC": true, + "networkProfile": { + "networkPlugin": "kubenet", + "loadBalancerSku": "Standard", + "loadBalancerProfile": { + "managedOutboundIPs": { + "count": 1 + }, + "effectiveOutboundIPs": [ + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/MC_testaksrg468_akscluster6301_eastus/providers/Microsoft.Network/publicIPAddresses/6208f620-7f33-4c8a-9f9f-2f582c9044b8" + } + ], + "backendPoolType": "nodeIPConfiguration" + }, + "podCidr": "10.244.0.0/16", + "serviceCidr": "10.0.0.0/16", + "dnsServiceIP": "10.0.0.10", + "dockerBridgeCidr": "172.17.0.1/16", + "outboundType": "loadBalancer", + "podCidrs": [ + "10.244.0.0/16" + ], + "serviceCidrs": [ + "10.0.0.0/16" + ], + "ipFamilies": [ + "IPv4" + ] + }, + "maxAgentPools": 100, + "identityProfile": { + "kubeletidentity": { + "resourceId": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/MC_testaksrg468_akscluster6301_eastus/providers/Microsoft.ManagedIdentity/userAssignedIdentities/akscluster6301-agentpool", + "clientId": "455ca198-3772-4684-a861-094e01595ca1", + "objectId": "2cdbb234-13d4-49f9-9502-5866278f4fa9" + } + }, + "securityProfile": {}, + "storageProfile": { + "diskCSIDriver": { + "enabled": true, + "version": "v1" + }, + "fileCSIDriver": { + "enabled": true + }, + "snapshotController": { + "enabled": true + } + }, + "oidcIssuerProfile": { + "enabled": false + }, + "workloadAutoScalerProfile": {} + }, + "identity": { + "type": "SystemAssigned", + "principalId": "9a4e927d-a3a3-4b09-9d9a-ab6e1aefcc13", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47" + }, + "sku": { + "name": "Basic", + "tier": "Free" + } } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/565bcf2e-43b7-48e6-9acf-9623d4cae60c?api-version=2017-08-31", - "RequestMethod": "GET", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg468/providers/Microsoft.ContainerService/managedClusters/akscluster6301/listClusterAdminCredential?api-version=2022-11-02-preview", + "RequestMethod": "POST", "RequestHeaders": { + "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-71c5affa6783bc4fb1dd7faf97389e5e-52da0532f44b3147-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "95810509f6627e3ca168360e729f6953", + "Content-Length": "0", + "traceparent": "00-5a03a5db2bea9fe12325010a5b36daf1-5fb2d0e9df423e1a-00", + "User-Agent": "azsdk-net-ResourceManager.ContainerService/1.2.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "622f5f829f08ec8f8d10183ec6276df5", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "126", + "Content-Length": "13053", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:31:17 GMT", + "Date": "Mon, 20 Feb 2023 09:44:46 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "78fe44fb-6536-40fc-af7a-3ba70db28089", - "x-ms-ratelimit-remaining-subscription-reads": "11986", - "x-ms-request-id": "6e6cfb19-1794-47d9-a34f-0696fda363bf", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T083118Z:78fe44fb-6536-40fc-af7a-3ba70db28089" + "x-ms-correlation-request-id": "d2758c3f-b7a0-4c2e-88bc-28332dba0c33", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-request-id": "987e84f2-1903-4e0b-b6a3-55b611c16b1e", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T094447Z:d2758c3f-b7a0-4c2e-88bc-28332dba0c33" }, "ResponseBody": { - "name": "2ecf5b56-b743-e648-9acf-9623d4cae60c", - "status": "InProgress", - "startTime": "2022-11-28T08:30:42.5016608Z" + "kubeconfigs": [ + { + "name": "clusterAdmin", + "value": "YXBpVmVyc2lvbjogdjEKY2x1c3RlcnM6Ci0gY2x1c3RlcjoKICAgIGNlcnRpZmljYXRlLWF1dGhvcml0eS1kYXRhOiBMUzB0TFMxQ1JVZEpUaUJEUlZKVVNVWkpRMEZVUlMwdExTMHRDazFKU1VVMlJFTkRRWFJEWjBGM1NVSkJaMGxSWm5od1NEWkVWVmsxYUV3d0syd3hWa3hFWmt0a2FrRk9RbWRyY1docmFVYzVkekJDUVZGelJrRkVRVTRLVFZGemQwTlJXVVJXVVZGRVJYZEthbGxVUVdkR2R6QjVUWHBCZVUxcVFYZFBWRWt6VGtST1lVZEJPSGxOUkZWNlRVUkplVTFFUVRWTmVtTXdUVEZ2ZHdwRVZFVk1UVUZyUjBFeFZVVkJlRTFEV1RKRmQyZG5TV2xOUVRCSFExTnhSMU5KWWpORVVVVkNRVkZWUVVFMFNVTkVkMEYzWjJkSlMwRnZTVU5CVVVSeENtNDJja05QVG1ORVVrMDRTVlZtTUZWRWQwOUVaeXN6YUdwa1ZuRk9RemhwYzJvMGIzRnFkRmxhVnpORVdGbEVjbmhNYWtoTFFWVkhUbk41TVRVeFRHWUtSbWhoYTFsTFJtVk5NbE16UkZGeGVuVmlkVkU0U0ZBeU0wTlllbTl2TW0xSE9HeHJWMHhCTTNoRlNHeFJabmR6YkhWdGNqQjFjV2M1U2sxNmVFcHNhQXBTVUROaU0wTXJXbVJ2YUZGU1pYWnNjVGR5WjJkUlVrbERWelJIVTFJdmFUTjJSQzlHZDNsc1EwVkhZMVpNYUVObFkyUTRXWFJQUW5aMFpYQjNSMWN2Q25wamRqZDVRbnA2WVRSM1lYSXhTbkZaTWtkMmFVNHpNSE5wVEVaYU1HdEdOR1ZsWlROM1NUTlNUV3BEUldST2VHNVJRMnhzZWxKM01GTmpLMk5xTUhBS1IzZGxTM2x5UWtwNU5HdGxiV1ZXTTFwYWJVdHRjVkpIVlZoeU4xTkRVa3RaYVVObGN6VlJaM0E0YWtKMk4xbE1NbUZqT1RZMVJXMVNUVTkzVTBwaGR3cFBWMDlEVWtkT1NGaHFZeTlzVUdWV04xaFJWVkJMU1UxWVNtODNUbGs1UzNKa1MyTTVOblZXWmk5amRIcHdRM3BRUW1ScVkzTTRSRU52ZDNCMFIxWnlDa2hMVlZwSmFUSlZOMFJpWW05M01GRkxjVGt2TjJkUmFFZERZMFJ4VW1KalNHRllZM2N5V21SdmVVSjNVSE0xTDJFdlprZzBhSEZ3WmxFMGRVaENZUzhLY210M01qTlFiMUZPTUV4VWQxUXlaM0p0UTJSSVdHZHlaMGh6YjFBMk56WkNlSHBYWmtkWFF6SkdMMXBOVkdOS1pFRmtRa3RGVmt0clRsSkJObWhKYWdwV1dEQXJPSEpxVEZJMmFWUnlUVFYwWlZKNlFtaHVXR2N6TkcxdFFVUnFaemxqT0RkbWIxSllSREkwTm5oNEwzVjNOMUJtVmxoblRFRnhNM1IzY0U5ckNsSjRkWGgyYUdkeFZWcFBSbWhJZVU5bGIwUXdSVnB3U0ZkMFkxbGtOSE5GU1dwcU0wUm5OR2RzVjJ4dU16QlJTSFpLUldNMFFuSTVZa2hYTUZOR1dFSUtLMWxQYkVOUE56YzRjRkJ6UjBWUFptcFNSblZDZFZacEsxSjZXbk14V2xWVFYwMDRkMGR6Y1VSM1NVUkJVVUZDYnpCSmQxRkVRVTlDWjA1V1NGRTRRZ3BCWmpoRlFrRk5RMEZ4VVhkRWQxbEVWbEl3VkVGUlNDOUNRVlYzUVhkRlFpOTZRV1JDWjA1V1NGRTBSVVpuVVZWblMxcDVZa3RzTVhGdmRFeEZNM0p0Q21aVVNEbHpUakl4YWprNGQwUlJXVXBMYjFwSmFIWmpUa0ZSUlV4Q1VVRkVaMmRKUWtGRlpVWnJXSEJqU0hKYU1raHljVkZ3T0UxdU9HcFJkV3BFV25VS00wNXljVnAxUkdkRU5Ha3hZVFJ2U0ZZNFJVcEhjVmx6TmtzeFpXRTNZVFZuYWpNNFEyVk1SazQwY0U1alNYVm5TMGRuTlM4dlNtaHpiazFJVldoblZ3cENZbkZVVlV3NWNqWmFPSFIwV0hrMlIybHpkM0JaVmpaQ1dVMTRNMHROVERSbWVuRkdVRU5zT0RWQlowczJUVFpCVkVWRU5YcHNRMmhGY25CaVVEWjJDamx1VFVWVFkwOUpObmRITW5wU1JEY3hkVEJUUlhZeFJreEpjVzVyUVdSeWNFczNhemxKVW1sUlFVbGtSVzV3YTJoUFNTczFNV3hPUzB4UlpUZG5Ra3NLYldZclJXNTViRkJFTUVwaWFuUXhjamhFU214Uk4zaFpkVVJHUzNBM1NXaDVjMEpWTmpaMVF5dHhkRmRPYWpsR1VVeHpObUp5SzJzck9IbHpiM1J3TVFwdVlWUkRNRkprVlVkS2JtcGxXSFZqUm14RFdtVkxiWHBITmtGVGNYRjZkbFYxYkd4NlMweDJjemxPYkVsWFdFMVhTWEZaUldzNFdFc3hSR3RtZEdGUkNqVnBjaTh2YTFSWWRGVXJObmR3T0ZSTFpFaGtkRWt2ZFRCUlIyazBlWE5hZEhKblQyWm9TV1oxYWpoS1ZHVnNWMlJZVVZKUGIwMXpaamtyYzNGc1RsWUtaVUl6TVd0U1dERXpUWE5CWWpKUGIzcHRaMUk0YmtveU0ySlJNMHcwU0haWGRUSnhUM1o0UjJJd1YzaEhWelpTY0ZCWU5VSTFjVFV2WVN0UFZHcEtPQXBaTlZGdVEwSnRXV3BpUjJ0RVlqbHZlbTkyWnpFd01VMVpNRkZDU1VoWE9DOXpjekpzWkZGRFVYWjBWbE5PZDNFM2VUUlpOVW8xVTFoNFQwdE5TMHR2Q2xGdU5VSXpVMGhDV1Rjd1pqRmFTams1UTFReE5WZHJPV3N6VFhKS2QyZEpTa1F6VW5RMFdqRjRZblZLTWpWMlJVeHFRMkUxWjFsWGVUSTNOM2c1UW1JS2JFRnVlRmxuZW05dGJFSXlUbVpGU1RSUkwzZFRSVzVRVlRGT1lWcDJRV1ZLY0ZOR05rVkRRazE1TkdvMWVWUTVTa2s1SzBWV2JGSjRWRVJIVVhwSFJncHljelZuT0RjM2QwMDFNVmRKVmpoSkNpMHRMUzB0UlU1RUlFTkZVbFJKUmtsRFFWUkZMUzB0TFMwSwogICAgc2VydmVyOiBodHRwczovL2Frc2RvdG5ldHNkay1lMjViMDk2YS5oY3AuZWFzdHVzLmF6bWs4cy5pbzo0NDMKICBuYW1lOiBha3NjbHVzdGVyNjMwMQpjb250ZXh0czoKLSBjb250ZXh0OgogICAgY2x1c3RlcjogYWtzY2x1c3RlcjYzMDEKICAgIHVzZXI6IGNsdXN0ZXJBZG1pbl90ZXN0YWtzcmc0NjhfYWtzY2x1c3RlcjYzMDEKICBuYW1lOiBha3NjbHVzdGVyNjMwMQpjdXJyZW50LWNvbnRleHQ6IGFrc2NsdXN0ZXI2MzAxCmtpbmQ6IENvbmZpZwpwcmVmZXJlbmNlczoge30KdXNlcnM6Ci0gbmFtZTogY2x1c3RlckFkbWluX3Rlc3Rha3NyZzQ2OF9ha3NjbHVzdGVyNjMwMQogIHVzZXI6CiAgICBjbGllbnQtY2VydGlmaWNhdGUtZGF0YTogTFMwdExTMUNSVWRKVGlCRFJWSlVTVVpKUTBGVVJTMHRMUzB0Q2sxSlNVWklha05EUVhkaFowRjNTVUpCWjBsU1FVdG9SMUUzZUcwM2RtNXpiVXd2U0hwWk5GbzRlamgzUkZGWlNrdHZXa2xvZG1OT1FWRkZURUpSUVhjS1JGUkZURTFCYTBkQk1WVkZRWGhOUTFreVJYZElhR05PVFdwTmQwMXFTWGROUkd0NVRucFJlbGRvWTA1TmFsVjNUV3BKZDAxRWEzcE9lbEY2VjJwQmR3cE5VbU4zUmxGWlJGWlJVVXRGZHpWNlpWaE9NRnBYTURaaVYwWjZaRWRXZVdONlJWWk5RazFIUVRGVlJVRjRUVTFpVjBaNlpFZFdlVmt5ZUhCYVZ6VXdDazFKU1VOSmFrRk9RbWRyY1docmFVYzVkekJDUVZGRlJrRkJUME5CWnpoQlRVbEpRME5uUzBOQlowVkJNMWg0TUhGTFlsWlBaa2Q1UzBzNVJVZGxRbVVLY3l0RVlXRmxhVXhvYW1sNWN6aDFObk5QVWtVM1ZXUkZSV0o1UXpaWk0xaHhkbUZJYkhSQlZFTnpSbkphZGs5alFYaEVWbXN6Y0hCVlpsZEJlU3QyYXdveWJqVnVWVFF3U21WNFJYRjZXalI2TTNWUlNYaHJjMlJYTUdGSWNuWk5RMUZNWkU1UVVHOTFWelJtV2twaVFYbEVRVGxsVjA1QllXVmFNSEF2YUc5V0NsUnNUVkJWZEVndk0yMHZUMUpoVlhveVdGcHdSMWw2VjJaRVVYbDVUR3RIYUVRMWVERnBkMlJKTVZVd1dVMW1WV1psV2pZek4wSnZiRnBUVEdwdVpGZ0tiSFZ0VjJRMk1XMWhabGNyVG5kWVRtVnNTMlpuSzNabGRGQXhNbll5VEdoNE5GUmxPSGx5WVVkSFREZFlTRGxsWTNVemJXaFFhVFExTWxKUVFUZERhQXBzU25sVlVIRnJkMUJhVnpWQ1RuYzJUMlU0ZWtGclFuTkVha015VTIxeWFuQk9SbmhLYlUxbVJWaHdVVTB3TDFWRk4yZGlVMXBsTkVwWWVVZHdNV2xzQ2poUVNDOXpMemhSTVc5U1RrNUNiV1J2T0ZVd1pEVTBhMmRaY1ROaldtMXdXR0phVGt4U2VqSTFabUpvU2sxNVdIWTVVbU4zWm5kd1NpdDZjREZKVWxJS00ySmhkamRDWjNWeVRtWkpUVEFyUmpCRE9HNHdUVU56Vm1od05IVjZWVE5qU1dsQ1dqbERjMVJSVlhNeU5WSkNaRGx3ZDNWTGFsbGtXa0lyUW5KdU9BcHJlbGRMZFdwTlMxUk9XVlpTYWxkaFZFTkxLMmhhUkdabVdrZEZkVEZCU3k5eFRUVnVlRk5OT0VSTFdqaEJSRE42V0RGRWNFWm9WMmwyVjNFMldHNXNDbGsyTUZGNlpraDVkSFZYUmtsWVVVMUxVRXhxT0ZoTVMyOTBibE5pYUdScGVqSk1RbUpWV0VaV2JHWlZhWFoyWlZsSlJWcFliRFZ2V0VaSmVFUTRWMmNLVHlzeE4yZFNNMmcyYUhWaGJIVXdNR3B5ZDAxdFlUQmtXazkzVTFZMlducDVZWEphTW1sNVoya3hZVVprWW05RE1XODVkVk5GVEdONGVVNW9lVmxYYndwcFlUaENNakUwWTNwd1pEWnVUMFV6VXpOMFZWZHRZME5CZDBWQlFXRk9WMDFHVVhkRVoxbEVWbEl3VUVGUlNDOUNRVkZFUVdkWFowMUNUVWRCTVZWa0NrcFJVVTFOUVc5SFEwTnpSMEZSVlVaQ2QwMURUVUYzUjBFeFZXUkZkMFZDTDNkUlEwMUJRWGRJZDFsRVZsSXdha0pDWjNkR2IwRlZaMHRhZVdKTGJERUtjVzkwVEVVemNtMW1WRWc1YzA0eU1XbzVPSGRFVVZsS1MyOWFTV2gyWTA1QlVVVk1RbEZCUkdkblNVSkJTVmhNVDBwdUsxRldkVU5pZGtOR1UwbGlaZ3BYZDJnNGRpOVlZbEF2TlVndlpuaHBOWE4yTlVsSmFrczBla1oxU1RoUWQyUm5ZVmxWV2preE5HWXZSbEowWTFNd2FHTnZPVXBvWldOVUwyNUlaVEV3Q21KSWNtcE1Na1I0Wm0xVllsQTBhRUZPWlZGYVluZERURVE0SzBOQlpXeFVjMmROYkRsM05rTlRSMlE0UVRNd1Z6aDBSMlJaUkRSSU0xTjFiRXg2ZW5JS1JHMDFVVnBwWVZrNFRFaEhTMHgzVmt0TWQyZFZLMk5GU2s5UWJHaGhVRGsyY0RCUVdXUlZhMUpNV2t0UGRraHFOR0pUV1RGU1IyNXhNbFF4VWxjd1dRcGhaMVpEZVRCck4wSmpOM1UzY3pCR1ZsZHJNbFpLY0VKdU5EQmlOM0p6TjFZd1pVdzNXR05EV1dOMlkyVTBUbWxYTVhkaGNFRXZTMDFRVTFORFpsa3lDbmRVUm1oa1NWSnhUVE5JV21SbFEyODJNWFJJV0c0MUwwNW9NV3BFZUZrNGNtc3paR1J1YVZSeGJsUkRUa2h6ZG5kMmJsSlZNRTVSZUhwek1taHZNM1FLYjFGaGNuSlNRVkZyTVdjM2JHaHpTbkJxZVVKRlNYQnBZekIyTVdGcFFWSkdia0V2VURsS1NHMW1TR1ZTVldSeVNYQnNOVXRCT1hobFZIRlpWRzEwTHdwSE1qVkJkMmxYU25vdkwyUm9kQ3RLVDBwWlRVUTBXRGhhV0U0NVF6aFpkMWx5UzJoWFdVVjBjRko0ZDFsdVRrVkdhRzVrWVVvMGQxbHRWMkp6UzBkbUNrb3JUVk5XYkRSeU4ydGpiVVZ4Ykc4ck1rUkdiSGN6SzBOV2FFZFpaVFExWW5nd01XeFZSamRtZFhOS09FNXRZbVZPY25oWFQyVmlXbTk2WTBKUlprSUtNMkZNVkRVMFYyZHJibWhpU0hsd00xQXhTR0ZaT1c1dFRFczBWSFpCVkdFMmFscFZNVFJ1ZDNOQmVERnlURWhDWmtoNlZ6UnhZbWczUlU1eGNtb3dMd3BvT0ZWU2NVaFNOVGRpVW5wRlREZG1kMHBGYlVZclNUZ3hXV2RPWkdwQlp6aFZPWEYwWkdJMldsUkdZbTQyZDJ4a05UWk5UM2MwUjJ0YU4wY3dUVUo1Q200clpFTjBjRFl4UVV0VldGUmhWVWd4VjJweVkyVTRkQW90TFMwdExVVk9SQ0JEUlZKVVNVWkpRMEZVUlMwdExTMHRDZz09CiAgICBjbGllbnQta2V5LWRhdGE6IExTMHRMUzFDUlVkSlRpQlNVMEVnVUZKSlZrRlVSU0JMUlZrdExTMHRMUXBOU1VsS1MyZEpRa0ZCUzBOQlowVkJNMWg0TUhGTFlsWlBaa2Q1UzBzNVJVZGxRbVZ6SzBSaFlXVnBUR2hxYVhsek9IVTJjMDlTUlRkVlpFVkZZbmxEQ2paWk0xaHhkbUZJYkhSQlZFTnpSbkphZGs5alFYaEVWbXN6Y0hCVlpsZEJlU3QyYXpKdU5XNVZOREJLWlhoRmNYcGFOSG96ZFZGSmVHdHpaRmN3WVVnS2NuWk5RMUZNWkU1UVVHOTFWelJtV2twaVFYbEVRVGxsVjA1QllXVmFNSEF2YUc5V1ZHeE5VRlYwU0M4emJTOVBVbUZWZWpKWVduQkhXWHBYWmtSUmVRcDVUR3RIYUVRMWVERnBkMlJKTVZVd1dVMW1WV1psV2pZek4wSnZiRnBUVEdwdVpGaHNkVzFYWkRZeGJXRm1WeXRPZDFoT1pXeExabWNyZG1WMFVERXlDbll5VEdoNE5GUmxPSGx5WVVkSFREZFlTRGxsWTNVemJXaFFhVFExTWxKUVFUZERhR3hLZVZWUWNXdDNVRnBYTlVKT2R6WlBaVGg2UVd0Q2MwUnFReklLVTIxeWFuQk9SbmhLYlUxbVJWaHdVVTB3TDFWRk4yZGlVMXBsTkVwWWVVZHdNV2xzT0ZCSUwzTXZPRkV4YjFKT1RrSnRaRzg0VlRCa05UUnJaMWx4TXdwaldtMXdXR0phVGt4U2VqSTFabUpvU2sxNVdIWTVVbU4zWm5kd1NpdDZjREZKVWxJelltRjJOMEpuZFhKT1prbE5NQ3RHTUVNNGJqQk5RM05XYUhBMENuVjZWVE5qU1dsQ1dqbERjMVJSVlhNeU5WSkNaRGx3ZDNWTGFsbGtXa0lyUW5KdU9HdDZWMHQxYWsxTFZFNVpWbEpxVjJGVVEwc3JhRnBFWm1aYVIwVUtkVEZCU3k5eFRUVnVlRk5OT0VSTFdqaEJSRE42V0RGRWNFWm9WMmwyVjNFMldHNXNXVFl3VVhwbVNIbDBkVmRHU1ZoUlRVdFFUR280V0V4TGIzUnVVd3BpYUdScGVqSk1RbUpWV0VaV2JHWlZhWFoyWlZsSlJWcFliRFZ2V0VaSmVFUTRWMmRQS3pFM1oxSXphRFpvZFdGc2RUQXdhbkozVFcxaE1HUmFUM2RUQ2xZMlducDVZWEphTW1sNVoya3hZVVprWW05RE1XODVkVk5GVEdONGVVNW9lVmxYYjJsaE9FSXlNVFJqZW5Ca05tNVBSVE5UTTNSVlYyMWpRMEYzUlVFS1FWRkxRMEZuUVZCcGRXUkpNbTlTUjBRMk56TTJaWGt5WjBOa1JrdHFaRXBxVm1OV1RWTTVhRXhLTDB0UlFYRlRUMEpyVUhkYVNGTlFMMFIwWmpKV1pRcGpVRmRXU1V0UFpqQjFTMVV5U0RaVldHUmxPRTQyVlRGTGFsZHBSelZMTW5Fd1VVdEVaR1JoU0VseU5WUnFiRXhoVVZGRVdISjVkM2w2TjFOUFkzSkRDbmcySzNaSWNWcG1XR0pFTVZwaVMzbFBkRUpSZW01WFpUZHJaVzFsYlN0ME1sTjZRMlZGWjJGWVVrSTFXbnBVVXpWVE5EaEJlRWMxVVdweGVERjNkalFLUVhCd09ESXdURlZ6T1VVeWEwcEVOREUxUmxCU1pVSlNVRUpETm1ReVVHMTJRbFpsZUVNM015ODBSU3N6TUU1M1dqUklNbGt6T0UxNVUzbGpObkpqVndwcE1rSkpjVGxIUmpKVE5WRnNSamxFTXpSNGFVOUphazg0Ym5Nd1UxcFRhRzVSTDFWcmIyZHpWR2xSVERSeWVFdHZVMmt3UTJwclVXMWtWMngzUldwWUNtSTRaRVJYTjJvM1JVNVJTMGRxV2xsQlRIbGpZazVQY1U1TE9WbFRjMEZJTW13M1VYVkVhMWR4YnpSdGNtdERRbW96UkdjNFdqTjRXVTFhTjFwNmIwNEtUVTR5ZVV4U01raDRNRm8xWkZseU0zcEtOMkpCVVZBMk0waFFRbXAxU0VRM1JuZHlTR2xPVXk5U1dFRm5UR0UzZEZWYVl6UXlUM1J4YVhCR01qSTRTd3B4VDJaaFdFMVBjRFZHVkZoWGJHcElObFZIT1hGTlowWkNNRnBUT0daS0syWk5VMlpVUTNWUFJXWjZSRkF4TVRJeFVtbDFNbkExVTB4Qk0ySTBUbWxtQ25wRFZrTmFaRlJvU1N0UVUxSTBka0p3TVhwUFFrUnpWRGxJUjNRMWIyRlJObUo2UW5OQ1JHeEhhRUY1UjJKcFNtNVdiRTlNTnpVMk56QjViRnBJTTBnS1dHRlRjM1JMZW1sdGNFUmFhbUpyYVRneFpIaHplbkk0U0ZRck1XcEtZWGRKVGpCamNsWnlWREEyVUVsQmJTc3dPRVY1TjNGRlYxUmtZbmRXZG5ZeWNnbzJZbVE1YzNwU1RESmxXbFZEU0U1MmJ6UnpWRXBFU1ZaMGJtTm9ZMDlJYmt0MFR5dFFaelZSVDFkS05VMXhjMDVsVVV0RFFWRkZRVFZGWW1ORlpubGxDa1pDZVdGc1FrbDVia05pTldGVGNHdzVSMU52WkhGUUwwcFlZM1V3V0RGelZtOVpZVmtyT1hSUU0zYzRUMkpOZEZrdk16aFpRUzl2VGxORVVHTkdTamdLZWpoaVozSXdTamx6YTNjMkx6ZEJSbVV3VDBnNFRHMVZaVVIwZDJwSWVuVXlWMEZITjBOYWRrNHlURTVRZURsT2NsRjBlQ3RKVXpsRlkzUkVjbVZXVFFvNU1VSnZhVWxuUkRSelNubFZkMjFMTVRoVVNUbFpkR0V6U25sNWQxSm9WWGhRYTA5NFNYUjNNSFpHY1VFd1Iyd3hVelpUY1hWWmJtOU9XVGxuVlRKc0NsbEVka1ZVWlZoRldtcExNMnhzT0dac2MwZFplazVsYjNCUFUwbGFVVWR5V1dONVpUQm9aa1ZOTm05WWVraERUalI0YUVsTmNEbFVNeXR1UWt0M2NHOEtWakUzVFc1VmJGUmhVWE5CZUZCdU5FaG1ZVFJoVWxGQlMzRkdNbWgyYlVOclZXWTBWMGhpVlZSd1RrSnhkVEJ3YVc5V09EQXZPREZIVG5OMk5tZHlaZ3BhU1d4aFFrUktiRWw0VW1GNWQwdERRVkZGUVN0SFNqVm1NRmRYT1VSNE1saEtXVUpVZGsxbFYzbE9hbkJTVTNGS1kwZGtkRWwzVFZKWGJsVjNiVWxDQ2t4bGNuQmlhMk5zS3k5ek1GSkNSRUp5TVZGTmIwZ3lTV0ZwTTFORVdYZElPVkozWVVWMWNHVlJXa1IwT0ZkU01IbDNhMmhaWTFZNGVuUkVlVkZ0V0RjS1pFaGlTazlhUVc4elZEYzJUblpaT0RKSVFWZFFMMGczV1VWdWJYVk1VSFZQT1hkT1YxcHpNVlpUUm1kUldTdFhRM0JCWlhkVEswSjZRMGh4VjNWcWNBcE9XR1Z1UVhscVRtTnJaV3A0YlhCdWNGWk5iMDlGYmpGa1EzVkliVU0wVlU5NWVYTmxVRTlrV2xOTVNrUXJNMGxXVjNacGJXUmhjVFpJUjFwaFJXSmpDaTh4VjJFdldWTmpMMWd4U21WR2NraFBhWGhXSzFNM1dtOXZSa0YxV1ZOWGVTOVlkMVpTVkd0V1RqVXhiVmwzS3pkR2IzaHdVREkxWkdKUU4wZENSMllLYWtWc0sxcGFLMmRuWVVaemR6ZFhaVTVwWVhoRE1EUnBRMGxuWWtWMGJGQlhWbGRWYm5saUwxWlJTME5CVVVWQmIySnpVMk5EZG5GVk5WWjNZbnBtTVFwWk1uazFhVU5xYURCNVZEbDBhRU0yTVVoQ09GZDVMMmhqWlhaU1FuSjVOMU5vT1dKRVFWcEhVVzVJVVZCTU9FbGFXblUxV0VoelZYTnhSRlY2TVdKekNtUXdXa3hDY0hoUVVtVlhlV2x1Y25oR1lqUklTRFJJYTA0eE5IaHBWalI0Y21GMmVXWnhXbEJCYVhJMWRFaHNWeXQ1VW00M2RYaHRaVEZKWTNaYU5tY0tTV2xvYUd4NlRreHBNVTlCYWxoalQwTlFPVGhLYUVveUwwcGlORkEwWjB4b01taEVSVGgxVUVWc2NrMTZkMmRDVXpWS0sxRlFOR2xFVDNoTVUwZFdhQXB2U1dGUFV6VjBXbHBvV1VScVFqSXJMMmhTYzBScFVVRnhSMjEzYmtkcU5rOVRRbkJtUVRkRFpVRk1ZMHBCUml0RE1GbDRPV0Y1UzBGR2Vrb3llVmcwQ2xWd1VGcEdOMWREWkV4bk5FeDZjR05aT1daQ1oyZ3JSWGRwYldKaGFFaEhiVmRVTjFGWU5rWjZMelpFVldrclpVUjBORGhPUkZVdk1FcHlMMmszYlc4S2NtaElaSGRSUzBOQlVVVkJlV1pKYlc1c1psTkdPV3huTUc0MFZIRnJSRFJ0Vm1vMGJIbDBjQ3Q2UTJ0TVJITkNZbmcxVVc5WmNGWk5lVkZtYW1zelF3cHJSa1ExWldFeU1rTXZjbTFIVlZvelRuWjZlVWcxYlU5cWNtRXJZa1Z4Y0ZBNU1qVXhPVEkxU2paeVVYWldSak16UWpjclIxRlpXbTRyVGtWVU9IcHdDbkpLYVdKcWVuYzRNVU41ZEhGdFpuWXpZVmMwVGsxMk1rVnBNR3B1V1hOWWJscE9OVlV4VTA5NFVpOVJTVmh0YVhGdWJWbDBWR3hTUVhWMU5XMXNVQ3NLVm1JdmVGcEZlakl6S3k5M1lqTlBVMWxXVmxNNVYxQm9hSGR6V0ZneUsxTjBUSFpJYUZjdmNYaGhhbXh1TDFwMFJtNW1iVXB0V1ZoSlNFcFdhRmhJWndwM2FXbDJTaklyU0UwNFJVRldXWHBHTTJRMFFUVmtWSEpXWjBWeU1tTkZWM012YmpZeU1VTjJhVVJNT0RCbmVVbFZVelUwU2tkWFVIUjBkVFpNU2pOUkNsQm9WV3N2VTI5Wk4wTlphRWt2VUhWeU9HdGFWMmRZWkVGbFJWYzJVamh1TUZGTFEwRlJSVUZzYTNKNmNGQXZiakJLTW5WUU4yTlBNM1kzVkVOSmEwRUtkeXRDVHpKWlRWTkhkbWhuYmpOT2FYQnJha2xSWVhGaGFGZ3JORTVhTlhacFRVaHJSMWRxTWxCT2VXdFBTVU5YZVM5QmFERnlkM2R1ZFRoTGNYQlJPUXBQY1RneFRVNHhkazVNVUZGM0sycE5Za0ZaZUdSUVkyRmFibmR1UjJSbE5tOURVVmRKUWxObWNFdFVZUzlZYWt0cFMwNVRWVEpNVW5KaGJrUllURzR3Q2tsb09HeFdUVXh3UWxGT1oxSjJWWEF4VTJ0TVlYVk1hbXhLVTJWSGQzQnBZeTl1Y1d0R01rUXpVSHBIUms1a1RURkVNMU5OUTNwWFFVcEZRV3BrZERjS2NpOW5jbmRJVVhOTFJXOTZlbmxCU0VveU1IcHdjM0pFUVRaWksyZDRMMGRWUWxkTE5DdFZRMjQwYWtkT01XOUZRa1ZHU25WUlZXRjBRM2xUZDJSRVpnbzRWbmg1WkV0aU5XWk1UV3h4Ums5bWNrOUdiRWQ2U2k5MVYyUkRNbE0yTW1kamJYazFURWsxVm1SWmFqTmxRMHhTUjBsWFRIaEpSREYwVDJsbFFUMDlDaTB0TFMwdFJVNUVJRkpUUVNCUVVrbFdRVlJGSUV0RldTMHRMUzB0Q2c9PQogICAgdG9rZW46IDVhYTkyZmExMzRjNDRjNzRhYzY4MmI5YzA5OTI4ZjNkYzkzMjhkOGNkYmVjOThlMGZlMTJmODMwMGI1OWZjNmM5YjI2YjRmZDAzZGZiMjZlYmRkNGZlYTQzZGY0YjdlYWJjZDdiOTBkMzIwNmE5YjAwMDkwOTUwYzc1ZWRiZjNmCg==" + } + ] } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/565bcf2e-43b7-48e6-9acf-9623d4cae60c?api-version=2017-08-31", - "RequestMethod": "GET", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg468/providers/Microsoft.ContainerService/managedClusters/akscluster6301/listClusterUserCredential?api-version=2022-11-02-preview", + "RequestMethod": "POST", "RequestHeaders": { + "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-71c5affa6783bc4fb1dd7faf97389e5e-2d48e4ed9dd4cd41-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "50ceec59fcb53e1ece8f44317b04cd62", + "Content-Length": "0", + "traceparent": "00-86157f7032ec848c74a9ecdc6626ff3d-0a0e9a251e425e28-00", + "User-Agent": "azsdk-net-ResourceManager.ContainerService/1.2.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "fdf5e21213811a9a3fb71e13ba2880b2", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "126", + "Content-Length": "13048", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:31:50 GMT", + "Date": "Mon, 20 Feb 2023 09:44:47 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "74a1e14c-a5ad-41af-b205-f1a88b384b94", - "x-ms-ratelimit-remaining-subscription-reads": "11985", - "x-ms-request-id": "ddbd0f80-1dce-4221-bc15-5e62902749b3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T083150Z:74a1e14c-a5ad-41af-b205-f1a88b384b94" + "x-ms-correlation-request-id": "bc17cb64-bd61-4230-a5de-f9792fef4333", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-request-id": "dc25407d-d580-4571-9d2e-21f02f7b29f1", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T094448Z:bc17cb64-bd61-4230-a5de-f9792fef4333" }, "ResponseBody": { - "name": "2ecf5b56-b743-e648-9acf-9623d4cae60c", - "status": "InProgress", - "startTime": "2022-11-28T08:30:42.5016608Z" + "kubeconfigs": [ + { + "name": "clusterUser", + "value": "YXBpVmVyc2lvbjogdjEKY2x1c3RlcnM6Ci0gY2x1c3RlcjoKICAgIGNlcnRpZmljYXRlLWF1dGhvcml0eS1kYXRhOiBMUzB0TFMxQ1JVZEpUaUJEUlZKVVNVWkpRMEZVUlMwdExTMHRDazFKU1VVMlJFTkRRWFJEWjBGM1NVSkJaMGxSWm5od1NEWkVWVmsxYUV3d0syd3hWa3hFWmt0a2FrRk9RbWRyY1docmFVYzVkekJDUVZGelJrRkVRVTRLVFZGemQwTlJXVVJXVVZGRVJYZEthbGxVUVdkR2R6QjVUWHBCZVUxcVFYZFBWRWt6VGtST1lVZEJPSGxOUkZWNlRVUkplVTFFUVRWTmVtTXdUVEZ2ZHdwRVZFVk1UVUZyUjBFeFZVVkJlRTFEV1RKRmQyZG5TV2xOUVRCSFExTnhSMU5KWWpORVVVVkNRVkZWUVVFMFNVTkVkMEYzWjJkSlMwRnZTVU5CVVVSeENtNDJja05QVG1ORVVrMDRTVlZtTUZWRWQwOUVaeXN6YUdwa1ZuRk9RemhwYzJvMGIzRnFkRmxhVnpORVdGbEVjbmhNYWtoTFFWVkhUbk41TVRVeFRHWUtSbWhoYTFsTFJtVk5NbE16UkZGeGVuVmlkVkU0U0ZBeU0wTlllbTl2TW0xSE9HeHJWMHhCTTNoRlNHeFJabmR6YkhWdGNqQjFjV2M1U2sxNmVFcHNhQXBTVUROaU0wTXJXbVJ2YUZGU1pYWnNjVGR5WjJkUlVrbERWelJIVTFJdmFUTjJSQzlHZDNsc1EwVkhZMVpNYUVObFkyUTRXWFJQUW5aMFpYQjNSMWN2Q25wamRqZDVRbnA2WVRSM1lYSXhTbkZaTWtkMmFVNHpNSE5wVEVaYU1HdEdOR1ZsWlROM1NUTlNUV3BEUldST2VHNVJRMnhzZWxKM01GTmpLMk5xTUhBS1IzZGxTM2x5UWtwNU5HdGxiV1ZXTTFwYWJVdHRjVkpIVlZoeU4xTkRVa3RaYVVObGN6VlJaM0E0YWtKMk4xbE1NbUZqT1RZMVJXMVNUVTkzVTBwaGR3cFBWMDlEVWtkT1NGaHFZeTlzVUdWV04xaFJWVkJMU1UxWVNtODNUbGs1UzNKa1MyTTVOblZXWmk5amRIcHdRM3BRUW1ScVkzTTRSRU52ZDNCMFIxWnlDa2hMVlZwSmFUSlZOMFJpWW05M01GRkxjVGt2TjJkUmFFZERZMFJ4VW1KalNHRllZM2N5V21SdmVVSjNVSE0xTDJFdlprZzBhSEZ3WmxFMGRVaENZUzhLY210M01qTlFiMUZPTUV4VWQxUXlaM0p0UTJSSVdHZHlaMGh6YjFBMk56WkNlSHBYWmtkWFF6SkdMMXBOVkdOS1pFRmtRa3RGVmt0clRsSkJObWhKYWdwV1dEQXJPSEpxVEZJMmFWUnlUVFYwWlZKNlFtaHVXR2N6TkcxdFFVUnFaemxqT0RkbWIxSllSREkwTm5oNEwzVjNOMUJtVmxoblRFRnhNM1IzY0U5ckNsSjRkWGgyYUdkeFZWcFBSbWhJZVU5bGIwUXdSVnB3U0ZkMFkxbGtOSE5GU1dwcU0wUm5OR2RzVjJ4dU16QlJTSFpLUldNMFFuSTVZa2hYTUZOR1dFSUtLMWxQYkVOUE56YzRjRkJ6UjBWUFptcFNSblZDZFZacEsxSjZXbk14V2xWVFYwMDRkMGR6Y1VSM1NVUkJVVUZDYnpCSmQxRkVRVTlDWjA1V1NGRTRRZ3BCWmpoRlFrRk5RMEZ4VVhkRWQxbEVWbEl3VkVGUlNDOUNRVlYzUVhkRlFpOTZRV1JDWjA1V1NGRTBSVVpuVVZWblMxcDVZa3RzTVhGdmRFeEZNM0p0Q21aVVNEbHpUakl4YWprNGQwUlJXVXBMYjFwSmFIWmpUa0ZSUlV4Q1VVRkVaMmRKUWtGRlpVWnJXSEJqU0hKYU1raHljVkZ3T0UxdU9HcFJkV3BFV25VS00wNXljVnAxUkdkRU5Ha3hZVFJ2U0ZZNFJVcEhjVmx6TmtzeFpXRTNZVFZuYWpNNFEyVk1SazQwY0U1alNYVm5TMGRuTlM4dlNtaHpiazFJVldoblZ3cENZbkZVVlV3NWNqWmFPSFIwV0hrMlIybHpkM0JaVmpaQ1dVMTRNMHROVERSbWVuRkdVRU5zT0RWQlowczJUVFpCVkVWRU5YcHNRMmhGY25CaVVEWjJDamx1VFVWVFkwOUpObmRITW5wU1JEY3hkVEJUUlhZeFJreEpjVzVyUVdSeWNFczNhemxKVW1sUlFVbGtSVzV3YTJoUFNTczFNV3hPUzB4UlpUZG5Ra3NLYldZclJXNTViRkJFTUVwaWFuUXhjamhFU214Uk4zaFpkVVJHUzNBM1NXaDVjMEpWTmpaMVF5dHhkRmRPYWpsR1VVeHpObUp5SzJzck9IbHpiM1J3TVFwdVlWUkRNRkprVlVkS2JtcGxXSFZqUm14RFdtVkxiWHBITmtGVGNYRjZkbFYxYkd4NlMweDJjemxPYkVsWFdFMVhTWEZaUldzNFdFc3hSR3RtZEdGUkNqVnBjaTh2YTFSWWRGVXJObmR3T0ZSTFpFaGtkRWt2ZFRCUlIyazBlWE5hZEhKblQyWm9TV1oxYWpoS1ZHVnNWMlJZVVZKUGIwMXpaamtyYzNGc1RsWUtaVUl6TVd0U1dERXpUWE5CWWpKUGIzcHRaMUk0YmtveU0ySlJNMHcwU0haWGRUSnhUM1o0UjJJd1YzaEhWelpTY0ZCWU5VSTFjVFV2WVN0UFZHcEtPQXBaTlZGdVEwSnRXV3BpUjJ0RVlqbHZlbTkyWnpFd01VMVpNRkZDU1VoWE9DOXpjekpzWkZGRFVYWjBWbE5PZDNFM2VUUlpOVW8xVTFoNFQwdE5TMHR2Q2xGdU5VSXpVMGhDV1Rjd1pqRmFTams1UTFReE5WZHJPV3N6VFhKS2QyZEpTa1F6VW5RMFdqRjRZblZLTWpWMlJVeHFRMkUxWjFsWGVUSTNOM2c1UW1JS2JFRnVlRmxuZW05dGJFSXlUbVpGU1RSUkwzZFRSVzVRVlRGT1lWcDJRV1ZLY0ZOR05rVkRRazE1TkdvMWVWUTVTa2s1SzBWV2JGSjRWRVJIVVhwSFJncHljelZuT0RjM2QwMDFNVmRKVmpoSkNpMHRMUzB0UlU1RUlFTkZVbFJKUmtsRFFWUkZMUzB0TFMwSwogICAgc2VydmVyOiBodHRwczovL2Frc2RvdG5ldHNkay1lMjViMDk2YS5oY3AuZWFzdHVzLmF6bWs4cy5pbzo0NDMKICBuYW1lOiBha3NjbHVzdGVyNjMwMQpjb250ZXh0czoKLSBjb250ZXh0OgogICAgY2x1c3RlcjogYWtzY2x1c3RlcjYzMDEKICAgIHVzZXI6IGNsdXN0ZXJVc2VyX3Rlc3Rha3NyZzQ2OF9ha3NjbHVzdGVyNjMwMQogIG5hbWU6IGFrc2NsdXN0ZXI2MzAxCmN1cnJlbnQtY29udGV4dDogYWtzY2x1c3RlcjYzMDEKa2luZDogQ29uZmlnCnByZWZlcmVuY2VzOiB7fQp1c2VyczoKLSBuYW1lOiBjbHVzdGVyVXNlcl90ZXN0YWtzcmc0NjhfYWtzY2x1c3RlcjYzMDEKICB1c2VyOgogICAgY2xpZW50LWNlcnRpZmljYXRlLWRhdGE6IExTMHRMUzFDUlVkSlRpQkRSVkpVU1VaSlEwRlVSUzB0TFMwdENrMUpTVVpJYWtORFFYZGhaMEYzU1VKQlowbFNRVXRvUjFFM2VHMDNkbTV6YlV3dlNIcFpORm80ZWpoM1JGRlpTa3R2V2tsb2RtTk9RVkZGVEVKUlFYY0tSRlJGVEUxQmEwZEJNVlZGUVhoTlExa3lSWGRJYUdOT1RXcE5kMDFxU1hkTlJHdDVUbnBSZWxkb1kwNU5hbFYzVFdwSmQwMUVhM3BPZWxGNlYycEJkd3BOVW1OM1JsRlpSRlpSVVV0RmR6VjZaVmhPTUZwWE1EWmlWMFo2WkVkV2VXTjZSVlpOUWsxSFFURlZSVUY0VFUxaVYwWjZaRWRXZVZreWVIQmFWelV3Q2sxSlNVTkpha0ZPUW1kcmNXaHJhVWM1ZHpCQ1FWRkZSa0ZCVDBOQlp6aEJUVWxKUTBOblMwTkJaMFZCTTFoNE1IRkxZbFpQWmtkNVMwczVSVWRsUW1VS2N5dEVZV0ZsYVV4b2FtbDVjemgxTm5OUFVrVTNWV1JGUldKNVF6WlpNMWh4ZG1GSWJIUkJWRU56Um5KYWRrOWpRWGhFVm1zemNIQlZabGRCZVN0MmF3b3lialZ1VlRRd1NtVjRSWEY2V2pSNk0zVlJTWGhyYzJSWE1HRkljblpOUTFGTVpFNVFVRzkxVnpSbVdrcGlRWGxFUVRsbFYwNUJZV1ZhTUhBdmFHOVdDbFJzVFZCVmRFZ3ZNMjB2VDFKaFZYb3lXRnB3UjFsNlYyWkVVWGw1VEd0SGFFUTFlREZwZDJSSk1WVXdXVTFtVldabFdqWXpOMEp2YkZwVFRHcHVaRmdLYkhWdFYyUTJNVzFoWmxjclRuZFlUbVZzUzJabkszWmxkRkF4TW5ZeVRHaDRORlJsT0hseVlVZEhURGRZU0RsbFkzVXpiV2hRYVRRMU1sSlFRVGREYUFwc1NubFZVSEZyZDFCYVZ6VkNUbmMyVDJVNGVrRnJRbk5FYWtNeVUyMXlhbkJPUm5oS2JVMW1SVmh3VVUwd0wxVkZOMmRpVTFwbE5FcFllVWR3TVdsc0NqaFFTQzl6THpoUk1XOVNUazVDYldSdk9GVXdaRFUwYTJkWmNUTmpXbTF3V0dKYVRreFNlakkxWm1Kb1NrMTVXSFk1VW1OM1puZHdTaXQ2Y0RGSlVsSUtNMkpoZGpkQ1ozVnlUbVpKVFRBclJqQkRPRzR3VFVOelZtaHdOSFY2VlROalNXbENXamxEYzFSUlZYTXlOVkpDWkRsd2QzVkxhbGxrV2tJclFuSnVPQXByZWxkTGRXcE5TMVJPV1ZaU2FsZGhWRU5MSzJoYVJHWm1Xa2RGZFRGQlN5OXhUVFZ1ZUZOTk9FUkxXamhCUkRONldERkVjRVpvVjJsMlYzRTJXRzVzQ2xrMk1GRjZaa2g1ZEhWWFJrbFlVVTFMVUV4cU9GaE1TMjkwYmxOaWFHUnBlakpNUW1KVldFWldiR1pWYVhaMlpWbEpSVnBZYkRWdldFWkplRVE0VjJjS1R5c3hOMmRTTTJnMmFIVmhiSFV3TUdweWQwMXRZVEJrV2s5M1UxWTJXbnA1WVhKYU1tbDVaMmt4WVVaa1ltOURNVzg1ZFZORlRHTjRlVTVvZVZsWGJ3cHBZVGhDTWpFMFkzcHdaRFp1VDBVelV6TjBWVmR0WTBOQmQwVkJRV0ZPVjAxR1VYZEVaMWxFVmxJd1VFRlJTQzlDUVZGRVFXZFhaMDFDVFVkQk1WVmtDa3BSVVUxTlFXOUhRME56UjBGUlZVWkNkMDFEVFVGM1IwRXhWV1JGZDBWQ0wzZFJRMDFCUVhkSWQxbEVWbEl3YWtKQ1ozZEdiMEZWWjB0YWVXSkxiREVLY1c5MFRFVXpjbTFtVkVnNWMwNHlNV281T0hkRVVWbEtTMjlhU1doMlkwNUJVVVZNUWxGQlJHZG5TVUpCU1ZoTVQwcHVLMUZXZFVOaWRrTkdVMGxpWmdwWGQyZzRkaTlZWWxBdk5VZ3ZabmhwTlhOMk5VbEpha3MwZWtaMVNUaFFkMlJuWVZsVldqa3hOR1l2UmxKMFkxTXdhR052T1Vwb1pXTlVMMjVJWlRFd0NtSkljbXBNTWtSNFptMVZZbEEwYUVGT1pWRmFZbmREVEVRNEswTkJaV3hVYzJkTmJEbDNOa05UUjJRNFFUTXdWemgwUjJSWlJEUklNMU4xYkV4NmVuSUtSRzAxVVZwcFlWazRURWhIUzB4M1ZrdE1kMmRWSzJORlNrOVFiR2hoVURrMmNEQlFXV1JWYTFKTVdrdFBka2hxTkdKVFdURlNSMjV4TWxReFVsY3dXUXBoWjFaRGVUQnJOMEpqTjNVM2N6QkdWbGRyTWxaS2NFSnVOREJpTjNKek4xWXdaVXczV0dORFdXTjJZMlUwVG1sWE1YZGhjRUV2UzAxUVUxTkRabGt5Q25kVVJtaGtTVkp4VFROSVdtUmxRMjgyTVhSSVdHNDFMMDVvTVdwRWVGazRjbXN6WkdSdWFWUnhibFJEVGtoemRuZDJibEpWTUU1UmVIcHpNbWh2TTNRS2IxRmhjbkpTUVZGck1XYzNiR2h6U25CcWVVSkZTWEJwWXpCMk1XRnBRVkpHYmtFdlVEbEtTRzFtU0dWU1ZXUnlTWEJzTlV0Qk9YaGxWSEZaVkcxMEx3cEhNalZCZDJsWFNub3ZMMlJvZEN0S1QwcFpUVVEwV0RoYVdFNDVRemhaZDFseVMyaFhXVVYwY0ZKNGQxbHVUa1ZHYUc1a1lVbzBkMWx0VjJKelMwZG1Da29yVFZOV2JEUnlOMnRqYlVWeGJHOHJNa1JHYkhjekswTldhRWRaWlRRMVluZ3dNV3hWUmpkbWRYTktPRTV0WW1WT2NuaFhUMlZpV205NlkwSlJaa0lLTTJGTVZEVTBWMmRyYm1oaVNIbHdNMUF4U0dGWk9XNXRURXMwVkhaQlZHRTJhbHBWTVRSdWQzTkJlREZ5VEVoQ1praDZWelJ4WW1nM1JVNXhjbW93THdwb09GVlNjVWhTTlRkaVVucEZURGRtZDBwRmJVWXJTVGd4V1dkT1pHcEJaemhWT1hGMFpHSTJXbFJHWW00MmQyeGtOVFpOVDNjMFIydGFOMGN3VFVKNUNtNHJaRU4wY0RZeFFVdFZXRlJoVlVneFYycHlZMlU0ZEFvdExTMHRMVVZPUkNCRFJWSlVTVVpKUTBGVVJTMHRMUzB0Q2c9PQogICAgY2xpZW50LWtleS1kYXRhOiBMUzB0TFMxQ1JVZEpUaUJTVTBFZ1VGSkpWa0ZVUlNCTFJWa3RMUzB0TFFwTlNVbEtTMmRKUWtGQlMwTkJaMFZCTTFoNE1IRkxZbFpQWmtkNVMwczVSVWRsUW1WekswUmhZV1ZwVEdocWFYbHpPSFUyYzA5U1JUZFZaRVZGWW5sRENqWlpNMWh4ZG1GSWJIUkJWRU56Um5KYWRrOWpRWGhFVm1zemNIQlZabGRCZVN0MmF6SnVOVzVWTkRCS1pYaEZjWHBhTkhvemRWRkplR3R6WkZjd1lVZ0tjblpOUTFGTVpFNVFVRzkxVnpSbVdrcGlRWGxFUVRsbFYwNUJZV1ZhTUhBdmFHOVdWR3hOVUZWMFNDOHpiUzlQVW1GVmVqSllXbkJIV1hwWFprUlJlUXA1VEd0SGFFUTFlREZwZDJSSk1WVXdXVTFtVldabFdqWXpOMEp2YkZwVFRHcHVaRmhzZFcxWFpEWXhiV0ZtVnl0T2QxaE9aV3hMWm1jcmRtVjBVREV5Q25ZeVRHaDRORlJsT0hseVlVZEhURGRZU0RsbFkzVXpiV2hRYVRRMU1sSlFRVGREYUd4S2VWVlFjV3QzVUZwWE5VSk9kelpQWlRoNlFXdENjMFJxUXpJS1UyMXlhbkJPUm5oS2JVMW1SVmh3VVUwd0wxVkZOMmRpVTFwbE5FcFllVWR3TVdsc09GQklMM012T0ZFeGIxSk9Ua0p0Wkc4NFZUQmtOVFJyWjFseE13cGpXbTF3V0dKYVRreFNlakkxWm1Kb1NrMTVXSFk1VW1OM1puZHdTaXQ2Y0RGSlVsSXpZbUYyTjBKbmRYSk9aa2xOTUN0R01FTTRiakJOUTNOV2FIQTBDblY2VlROalNXbENXamxEYzFSUlZYTXlOVkpDWkRsd2QzVkxhbGxrV2tJclFuSnVPR3Q2VjB0MWFrMUxWRTVaVmxKcVYyRlVRMHNyYUZwRVptWmFSMFVLZFRGQlN5OXhUVFZ1ZUZOTk9FUkxXamhCUkRONldERkVjRVpvVjJsMlYzRTJXRzVzV1RZd1VYcG1TSGwwZFZkR1NWaFJUVXRRVEdvNFdFeExiM1J1VXdwaWFHUnBlakpNUW1KVldFWldiR1pWYVhaMlpWbEpSVnBZYkRWdldFWkplRVE0VjJkUEt6RTNaMUl6YURab2RXRnNkVEF3YW5KM1RXMWhNR1JhVDNkVENsWTJXbnA1WVhKYU1tbDVaMmt4WVVaa1ltOURNVzg1ZFZORlRHTjRlVTVvZVZsWGIybGhPRUl5TVRSamVuQmtObTVQUlROVE0zUlZWMjFqUTBGM1JVRUtRVkZMUTBGblFWQnBkV1JKTW05U1IwUTJOek0yWlhreVowTmtSa3RxWkVwcVZtTldUVk01YUV4S0wwdFJRWEZUVDBKclVIZGFTRk5RTDBSMFpqSldaUXBqVUZkV1NVdFBaakIxUzFVeVNEWlZXR1JsT0U0MlZURkxhbGRwUnpWTE1uRXdVVXRFWkdSaFNFbHlOVlJxYkV4aFVWRkVXSEo1ZDNsNk4xTlBZM0pEQ25nMkszWkljVnBtV0dKRU1WcGlTM2xQZEVKUmVtNVhaVGRyWlcxbGJTdDBNbE42UTJWRloyRllVa0kxV25wVVV6VlRORGhCZUVjMVVXcHhlREYzZGpRS1FYQndPREl3VEZWek9VVXlhMHBFTkRFMVJsQlNaVUpTVUVKRE5tUXlVRzEyUWxabGVFTTNNeTgwUlNzek1FNTNXalJJTWxrek9FMTVVM2xqTm5KalZ3cHBNa0pKY1RsSFJqSlROVkZzUmpsRU16UjRhVTlKYWs4NGJuTXdVMXBUYUc1UkwxVnJiMmR6VkdsUlREUnllRXR2VTJrd1EycHJVVzFrVjJ4M1JXcFlDbUk0WkVSWE4ybzNSVTVSUzBkcVdsbEJUSGxqWWs1UGNVNUxPVmxUYzBGSU1tdzNVWFZFYTFkeGJ6UnRjbXREUW1velJHYzRXak40V1UxYU4xcDZiMDRLVFU0eWVVeFNNa2g0TUZvMVpGbHlNM3BLTjJKQlVWQTJNMGhRUW1wMVNFUTNSbmR5U0dsT1V5OVNXRUZuVEdFM2RGVmFZelF5VDNSeGFYQkdNakk0U3dweFQyWmhXRTFQY0RWR1ZGaFhiR3BJTmxWSE9YRk5aMFpDTUZwVE9HWktLMlpOVTJaVVEzVlBSV1o2UkZBeE1USXhVbWwxTW5BMVUweEJNMkkwVG1sbUNucERWa05hWkZSb1NTdFFVMUkwZGtKd01YcFBRa1J6VkRsSVIzUTFiMkZSTm1KNlFuTkNSR3hIYUVGNVIySnBTbTVXYkU5TU56VTJOekI1YkZwSU0wZ0tXR0ZUYzNSTGVtbHRjRVJhYW1KcmFUZ3haSGh6ZW5JNFNGUXJNV3BLWVhkSlRqQmpjbFp5VkRBMlVFbEJiU3N3T0VWNU4zRkZWMVJrWW5kV2RuWXljZ28yWW1RNWMzcFNUREpsV2xWRFNFNTJielJ6VkVwRVNWWjBibU5vWTA5SWJrdDBUeXRRWnpWUlQxZEtOVTF4YzA1bFVVdERRVkZGUVRWRlltTkZabmxsQ2taQ2VXRnNRa2w1YmtOaU5XRlRjR3c1UjFOdlpIRlFMMHBZWTNVd1dERnpWbTlaWVZrck9YUlFNM2M0VDJKTmRGa3ZNemhaUVM5dlRsTkVVR05HU2pnS2VqaGlaM0l3U2psemEzYzJMemRCUm1Vd1QwZzRURzFWWlVSMGQycEllblV5VjBGSE4wTmFkazR5VEU1UWVEbE9jbEYwZUN0SlV6bEZZM1JFY21WV1RRbzVNVUp2YVVsblJEUnpTbmxWZDIxTE1UaFVTVGxaZEdFelNubDVkMUpvVlhoUWEwOTRTWFIzTUhaR2NVRXdSMnd4VXpaVGNYVlpibTlPV1RsblZUSnNDbGxFZGtWVVpWaEZXbXBMTTJ4c09HWnNjMGRaZWs1bGIzQlBVMGxhVVVkeVdXTjVaVEJvWmtWTk5tOVlla2hEVGpSNGFFbE5jRGxVTXl0dVFrdDNjRzhLVmpFM1RXNVZiRlJoVVhOQmVGQnVORWhtWVRSaFVsRkJTM0ZHTW1oMmJVTnJWV1kwVjBoaVZWUndUa0p4ZFRCd2FXOVdPREF2T0RGSFRuTjJObWR5WmdwYVNXeGhRa1JLYkVsNFVtRjVkMHREUVZGRlFTdEhTalZtTUZkWE9VUjRNbGhLV1VKVWRrMWxWM2xPYW5CU1UzRktZMGRrZEVsM1RWSlhibFYzYlVsQ0NreGxjbkJpYTJOc0t5OXpNRkpDUkVKeU1WRk5iMGd5U1dGcE0xTkVXWGRJT1ZKM1lVVjFjR1ZSV2tSME9GZFNNSGwzYTJoWlkxWTRlblJFZVZGdFdEY0taRWhpU2s5YVFXOHpWRGMyVG5aWk9ESklRVmRRTDBnM1dVVnViWFZNVUhWUE9YZE9WMXB6TVZaVFJtZFJXU3RYUTNCQlpYZFRLMEo2UTBoeFYzVnFjQXBPV0dWdVFYbHFUbU5yWldwNGJYQnVjRlpOYjA5RmJqRmtRM1ZJYlVNMFZVOTVlWE5sVUU5a1dsTk1Ta1FyTTBsV1YzWnBiV1JoY1RaSVIxcGhSV0pqQ2k4eFYyRXZXVk5qTDFneFNtVkdja2hQYVhoV0sxTTNXbTl2UmtGMVdWTlhlUzlZZDFaU1ZHdFdUalV4YlZsM0t6ZEdiM2h3VURJMVpHSlFOMGRDUjJZS2FrVnNLMXBhSzJkbllVWnpkemRYWlU1cFlYaERNRFJwUTBsbllrVjBiRkJYVmxkVmJubGlMMVpSUzBOQlVVVkJiMkp6VTJORGRuRlZOVlozWW5wbU1RcFpNbmsxYVVOcWFEQjVWRGwwYUVNMk1VaENPRmQ1TDJoalpYWlNRbko1TjFOb09XSkVRVnBIVVc1SVVWQk1PRWxhV25VMVdFaHpWWE54UkZWNk1XSnpDbVF3V2t4Q2NIaFFVbVZYZVdsdWNuaEdZalJJU0RSSWEwNHhOSGhwVmpSNGNtRjJlV1p4V2xCQmFYSTFkRWhzVnl0NVVtNDNkWGh0WlRGSlkzWmFObWNLU1dsb2FHeDZUa3hwTVU5QmFsaGpUME5RT1RoS2FFb3lMMHBpTkZBMFoweG9NbWhFUlRoMVVFVnNjazE2ZDJkQ1V6VktLMUZRTkdsRVQzaE1VMGRXYUFwdlNXRlBVelYwV2xwb1dVUnFRaklyTDJoU2MwUnBVVUZ4UjIxM2JrZHFOazlUUW5CbVFUZERaVUZNWTBwQlJpdERNRmw0T1dGNVMwRkdla295ZVZnMENsVndVRnBHTjFkRFpFeG5ORXg2Y0dOWk9XWkNaMmdyUlhkcGJXSmhhRWhIYlZkVU4xRllOa1o2THpaRVZXa3JaVVIwTkRoT1JGVXZNRXB5TDJrM2JXOEtjbWhJWkhkUlMwTkJVVVZCZVdaSmJXNXNabE5HT1d4bk1HNDBWSEZyUkRSdFZtbzBiSGwwY0N0NlEydE1SSE5DWW5nMVVXOVpjRlpOZVZGbWFtc3pRd3ByUmtRMVpXRXlNa012Y20xSFZWb3pUblo2ZVVnMWJVOXFjbUVyWWtWeGNGQTVNalV4T1RJMVNqWnlVWFpXUmpNelFqY3JSMUZaV200clRrVlVPSHB3Q25KS2FXSnFlbmM0TVVONWRIRnRabll6WVZjMFRrMTJNa1ZwTUdwdVdYTllibHBPTlZVeFUwOTRVaTlSU1ZodGFYRnViVmwwVkd4U1FYVjFOVzFzVUNzS1ZtSXZlRnBGZWpJekt5OTNZak5QVTFsV1ZsTTVWMUJvYUhkeldGZ3lLMU4wVEhaSWFGY3ZjWGhoYW14dUwxcDBSbTVtYlVwdFdWaEpTRXBXYUZoSVp3cDNhV2wyU2pJclNFMDRSVUZXV1hwR00yUTBRVFZrVkhKV1owVnlNbU5GVjNNdmJqWXlNVU4yYVVSTU9EQm5lVWxWVXpVMFNrZFhVSFIwZFRaTVNqTlJDbEJvVldzdlUyOVpOME5aYUVrdlVIVnlPR3RhVjJkWVpFRmxSVmMyVWpodU1GRkxRMEZSUlVGc2EzSjZjRkF2YmpCS01uVlFOMk5QTTNZM1ZFTkphMEVLZHl0Q1R6SlpUVk5IZG1obmJqTk9hWEJyYWtsUllYRmhhRmdyTkU1YU5YWnBUVWhyUjFkcU1sQk9lV3RQU1VOWGVTOUJhREZ5ZDNkdWRUaExjWEJST1FwUGNUZ3hUVTR4ZGs1TVVGRjNLMnBOWWtGWmVHUlFZMkZhYm5kdVIyUmxObTlEVVZkSlFsTm1jRXRVWVM5WWFrdHBTMDVUVlRKTVVuSmhia1JZVEc0d0NrbG9PR3hXVFV4d1FsRk9aMUoyVlhBeFUydE1ZWFZNYW14S1UyVkhkM0JwWXk5dWNXdEdNa1F6VUhwSFJrNWtUVEZFTTFOTlEzcFhRVXBGUVdwa2REY0tjaTluY25kSVVYTkxSVzk2ZW5sQlNFb3lNSHB3YzNKRVFUWlpLMmQ0TDBkVlFsZExOQ3RWUTI0MGFrZE9NVzlGUWtWR1NuVlJWV0YwUTNsVGQyUkVaZ280Vm5oNVpFdGlOV1pNVFd4eFJrOW1jazlHYkVkNlNpOTFWMlJETWxNMk1tZGpiWGsxVEVrMVZtUlphak5sUTB4U1IwbFhUSGhKUkRGMFQybGxRVDA5Q2kwdExTMHRSVTVFSUZKVFFTQlFVa2xXUVZSRklFdEZXUzB0TFMwdENnPT0KICAgIHRva2VuOiA1NzY4N2Y1MGE0YzE5NDA5NmRkN2JiN2QwODQ5MzYyYWEyM2JkMmMyZjdkMDY2ODdmYjQ3OTY0MTcxYzc3YjExODAwYTc5YmRlOGI1MDgzMDExMWI1NTBmNWFlN2EwNWY0Y2U0NzQyOTQ5NGM5MWYwNTA5ZDU1ZGE5NDVjOTIyZgo=" + } + ] } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/565bcf2e-43b7-48e6-9acf-9623d4cae60c?api-version=2017-08-31", - "RequestMethod": "GET", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg468/providers/Microsoft.ContainerService/managedClusters/akscluster6301?api-version=2022-11-02-preview", + "RequestMethod": "DELETE", "RequestHeaders": { + "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-71c5affa6783bc4fb1dd7faf97389e5e-8ccebf8d67a0c74e-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "a198265f982f3ea42816092275f5c1e7", + "traceparent": "00-b5fb72abe3c4d44e18f6c6b69aceed32-5fa7d9296aed5188-00", + "User-Agent": "azsdk-net-ResourceManager.ContainerService/1.2.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "b9b34049d15857584749ec6deb5bb8df", "x-ms-return-client-request-id": "true" }, "RequestBody": null, - "StatusCode": 200, + "StatusCode": 202, "ResponseHeaders": { + "azure-asyncoperation": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/6d1c8776-96d1-42d2-99b0-f59d17907fba?api-version=2017-08-31", "Cache-Control": "no-cache", - "Content-Length": "126", - "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:32:23 GMT", + "Content-Length": "0", + "Date": "Mon, 20 Feb 2023 09:44:48 GMT", "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operationresults/6d1c8776-96d1-42d2-99b0-f59d17907fba?api-version=2017-08-31", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "5767428e-5810-42b9-bed9-748f6a583060", - "x-ms-ratelimit-remaining-subscription-reads": "11984", - "x-ms-request-id": "e93e30d6-d04d-4995-aac4-e3ad2ed3b262", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T083223Z:5767428e-5810-42b9-bed9-748f6a583060" + "x-ms-correlation-request-id": "6013be96-7bdb-4d25-bb6f-6a87ecf850cd", + "x-ms-ratelimit-remaining-subscription-deletes": "14998", + "x-ms-request-id": "6d1c8776-96d1-42d2-99b0-f59d17907fba", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T094449Z:6013be96-7bdb-4d25-bb6f-6a87ecf850cd" }, - "ResponseBody": { - "name": "2ecf5b56-b743-e648-9acf-9623d4cae60c", - "status": "InProgress", - "startTime": "2022-11-28T08:30:42.5016608Z" - } + "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/565bcf2e-43b7-48e6-9acf-9623d4cae60c?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/6d1c8776-96d1-42d2-99b0-f59d17907fba?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-71c5affa6783bc4fb1dd7faf97389e5e-b254be050b95ce45-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "84f8988f30cd0c25e743c6d2b20a039c", + "traceparent": "00-b5fb72abe3c4d44e18f6c6b69aceed32-8ba59ac99ab93a8d-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "85f56590b474409d899db637262c2ee4", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1355,31 +1227,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:32:54 GMT", + "Date": "Mon, 20 Feb 2023 09:44:48 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "ff657f4c-4b3d-4ccf-ba69-2e3b1db467f7", - "x-ms-ratelimit-remaining-subscription-reads": "11983", - "x-ms-request-id": "8e70da31-fac2-4cf1-8a20-dd7370d37281", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T083255Z:ff657f4c-4b3d-4ccf-ba69-2e3b1db467f7" + "x-ms-correlation-request-id": "1da3f837-3b29-485a-ae46-4973e55bd668", + "x-ms-ratelimit-remaining-subscription-reads": "11939", + "x-ms-request-id": "4b564550-be32-4af8-bf08-80592b202413", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T094449Z:1da3f837-3b29-485a-ae46-4973e55bd668" }, "ResponseBody": { - "name": "2ecf5b56-b743-e648-9acf-9623d4cae60c", + "name": "76871c6d-d196-d242-99b0-f59d17907fba", "status": "InProgress", - "startTime": "2022-11-28T08:30:42.5016608Z" + "startTime": "2023-02-20T09:44:49.3403446Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/565bcf2e-43b7-48e6-9acf-9623d4cae60c?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/6d1c8776-96d1-42d2-99b0-f59d17907fba?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-71c5affa6783bc4fb1dd7faf97389e5e-815d18ec8485074a-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "4bafd39ac707c124478f279ef2fbc8d9", + "traceparent": "00-b5fb72abe3c4d44e18f6c6b69aceed32-0fceb432f85d182d-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "3dcb3ffe409022c47b44f443ae07d6cb", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1388,66 +1260,64 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:33:27 GMT", + "Date": "Mon, 20 Feb 2023 09:44:50 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "3b1de14c-aa5d-4b11-b622-939991703897", - "x-ms-ratelimit-remaining-subscription-reads": "11982", - "x-ms-request-id": "c043074d-ee1f-462f-b3c0-6dd1eea027ef", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T083328Z:3b1de14c-aa5d-4b11-b622-939991703897" + "x-ms-correlation-request-id": "901a9913-400c-4c1b-9c09-33639fe9686d", + "x-ms-ratelimit-remaining-subscription-reads": "11938", + "x-ms-request-id": "58bfde3f-3d88-40e8-bcd8-3fb0a8590ee0", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T094451Z:901a9913-400c-4c1b-9c09-33639fe9686d" }, "ResponseBody": { - "name": "2ecf5b56-b743-e648-9acf-9623d4cae60c", + "name": "76871c6d-d196-d242-99b0-f59d17907fba", "status": "InProgress", - "startTime": "2022-11-28T08:30:42.5016608Z" + "startTime": "2023-02-20T09:44:49.3403446Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/565bcf2e-43b7-48e6-9acf-9623d4cae60c?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/6d1c8776-96d1-42d2-99b0-f59d17907fba?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "Connection": "close", - "traceparent": "00-71c5affa6783bc4fb1dd7faf97389e5e-386e0e70fab1f943-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "e3a15ccd480c2e95008bbaecd1d18c1d", + "traceparent": "00-b5fb72abe3c4d44e18f6c6b69aceed32-6276a3e5f963ffe7-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "86dd88173366946adf57b54f708d4898", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Connection": "close", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:34:00 GMT", + "Date": "Mon, 20 Feb 2023 09:44:51 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "ad63ed74-6121-4e6b-a5bc-b784ff399bae", - "x-ms-ratelimit-remaining-subscription-reads": "11981", - "x-ms-request-id": "e5209cc1-fe70-4323-b124-83d27d310546", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T083401Z:ad63ed74-6121-4e6b-a5bc-b784ff399bae" + "x-ms-correlation-request-id": "9bc6ad1f-591a-4717-a09f-0c93251e542d", + "x-ms-ratelimit-remaining-subscription-reads": "11937", + "x-ms-request-id": "4a3fd8a1-4edf-465e-b501-de54025598bf", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T094452Z:9bc6ad1f-591a-4717-a09f-0c93251e542d" }, "ResponseBody": { - "name": "2ecf5b56-b743-e648-9acf-9623d4cae60c", + "name": "76871c6d-d196-d242-99b0-f59d17907fba", "status": "InProgress", - "startTime": "2022-11-28T08:30:42.5016608Z" + "startTime": "2023-02-20T09:44:49.3403446Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/565bcf2e-43b7-48e6-9acf-9623d4cae60c?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/6d1c8776-96d1-42d2-99b0-f59d17907fba?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-71c5affa6783bc4fb1dd7faf97389e5e-53127c2e598b6a4c-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "a1886d137546c7df74363c3d088719eb", + "traceparent": "00-b5fb72abe3c4d44e18f6c6b69aceed32-347acaf1564c312c-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "41513ee6f4b04fd4a0d2092fc05a9181", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1456,31 +1326,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:34:33 GMT", + "Date": "Mon, 20 Feb 2023 09:44:53 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "6362e54d-f641-48bb-bc93-2511041bc027", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "3166cd19-50f5-4416-ab16-7a3168012c4c", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T083434Z:6362e54d-f641-48bb-bc93-2511041bc027" + "x-ms-correlation-request-id": "51fecb68-3b51-417b-a968-87502ea01630", + "x-ms-ratelimit-remaining-subscription-reads": "11936", + "x-ms-request-id": "9eb6b09b-59d6-433f-b317-c62978ee3ef7", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T094453Z:51fecb68-3b51-417b-a968-87502ea01630" }, "ResponseBody": { - "name": "2ecf5b56-b743-e648-9acf-9623d4cae60c", + "name": "76871c6d-d196-d242-99b0-f59d17907fba", "status": "InProgress", - "startTime": "2022-11-28T08:30:42.5016608Z" + "startTime": "2023-02-20T09:44:49.3403446Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/565bcf2e-43b7-48e6-9acf-9623d4cae60c?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/6d1c8776-96d1-42d2-99b0-f59d17907fba?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-71c5affa6783bc4fb1dd7faf97389e5e-843121b09c4cbe4e-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "5505ed7a1f69528f3e804b7c0d37ef75", + "traceparent": "00-b5fb72abe3c4d44e18f6c6b69aceed32-7e3c492982fc1829-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "9e20eac7a84fcb7ed4375e388a75b2ee", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1489,31 +1359,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:35:06 GMT", + "Date": "Mon, 20 Feb 2023 09:44:56 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "ee615a7b-1d1f-4071-8ca0-c3c702153584", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "8f69bba6-f124-4b03-aed9-715e30f7f1e4", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T083506Z:ee615a7b-1d1f-4071-8ca0-c3c702153584" + "x-ms-correlation-request-id": "5fc88808-fd88-4e7f-a9ca-4a952c6ea69e", + "x-ms-ratelimit-remaining-subscription-reads": "11935", + "x-ms-request-id": "f78b5aac-90d8-43b7-9298-1f5596ad63f6", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T094456Z:5fc88808-fd88-4e7f-a9ca-4a952c6ea69e" }, "ResponseBody": { - "name": "2ecf5b56-b743-e648-9acf-9623d4cae60c", + "name": "76871c6d-d196-d242-99b0-f59d17907fba", "status": "InProgress", - "startTime": "2022-11-28T08:30:42.5016608Z" + "startTime": "2023-02-20T09:44:49.3403446Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/565bcf2e-43b7-48e6-9acf-9623d4cae60c?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/6d1c8776-96d1-42d2-99b0-f59d17907fba?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-71c5affa6783bc4fb1dd7faf97389e5e-bd58803951134941-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "858a0a02277358927cd96fd60b572579", + "traceparent": "00-b5fb72abe3c4d44e18f6c6b69aceed32-1f6e802f536a874b-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "705c5bfb94b6221bb38de594293ad384", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1522,31 +1392,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:35:38 GMT", + "Date": "Mon, 20 Feb 2023 09:45:00 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "0263b9b2-d829-4869-9a5c-91fc500da281", - "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-request-id": "c1b12e4e-3879-448f-911f-aa6918582ae9", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T083539Z:0263b9b2-d829-4869-9a5c-91fc500da281" + "x-ms-correlation-request-id": "a7770bc0-2b92-4f93-86b8-6fe7f09eecf4", + "x-ms-ratelimit-remaining-subscription-reads": "11934", + "x-ms-request-id": "11e5b579-92dc-44b7-825c-6e509b446496", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T094500Z:a7770bc0-2b92-4f93-86b8-6fe7f09eecf4" }, "ResponseBody": { - "name": "2ecf5b56-b743-e648-9acf-9623d4cae60c", + "name": "76871c6d-d196-d242-99b0-f59d17907fba", "status": "InProgress", - "startTime": "2022-11-28T08:30:42.5016608Z" + "startTime": "2023-02-20T09:44:49.3403446Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/565bcf2e-43b7-48e6-9acf-9623d4cae60c?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/6d1c8776-96d1-42d2-99b0-f59d17907fba?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-71c5affa6783bc4fb1dd7faf97389e5e-7daa99061281d149-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "e471cf7137ccf4b4dd3562c52a63ba3c", + "traceparent": "00-b5fb72abe3c4d44e18f6c6b69aceed32-6d2b793cd1051fe3-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "868834c6a96d3d48bf866d79969bc42b", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1555,31 +1425,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:36:10 GMT", + "Date": "Mon, 20 Feb 2023 09:45:09 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "cb867bab-b35e-438b-80be-45a7f9f4251a", - "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-request-id": "f48cced0-504a-4d3d-b775-0daa6390248f", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T083611Z:cb867bab-b35e-438b-80be-45a7f9f4251a" + "x-ms-correlation-request-id": "229e3b52-2c98-4802-8b1c-08febb06d617", + "x-ms-ratelimit-remaining-subscription-reads": "11933", + "x-ms-request-id": "45bd9397-d3f5-4421-b4e4-3aa6ee6f6405", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T094509Z:229e3b52-2c98-4802-8b1c-08febb06d617" }, "ResponseBody": { - "name": "2ecf5b56-b743-e648-9acf-9623d4cae60c", + "name": "76871c6d-d196-d242-99b0-f59d17907fba", "status": "InProgress", - "startTime": "2022-11-28T08:30:42.5016608Z" + "startTime": "2023-02-20T09:44:49.3403446Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/565bcf2e-43b7-48e6-9acf-9623d4cae60c?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/6d1c8776-96d1-42d2-99b0-f59d17907fba?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-71c5affa6783bc4fb1dd7faf97389e5e-75b6833f96e1ff40-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "fe3bc74694fc53775aadd88fafb946e7", + "traceparent": "00-b5fb72abe3c4d44e18f6c6b69aceed32-0b5eebb2e435e1fe-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "64341b1f20fd33cbcffeeac1c3eaa199", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1588,31 +1458,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:36:43 GMT", + "Date": "Mon, 20 Feb 2023 09:45:25 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "80693a43-171a-4b16-aad2-a775809dc552", - "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "c5b921d5-8d7b-4cb8-bfcc-3c6d975a15d2", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T083643Z:80693a43-171a-4b16-aad2-a775809dc552" + "x-ms-correlation-request-id": "8936c56b-14fb-4e3a-ad83-bc8158bcddb4", + "x-ms-ratelimit-remaining-subscription-reads": "11932", + "x-ms-request-id": "7e43f8a3-9283-405c-b2bc-a8f6616a0d04", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T094525Z:8936c56b-14fb-4e3a-ad83-bc8158bcddb4" }, "ResponseBody": { - "name": "2ecf5b56-b743-e648-9acf-9623d4cae60c", + "name": "76871c6d-d196-d242-99b0-f59d17907fba", "status": "InProgress", - "startTime": "2022-11-28T08:30:42.5016608Z" + "startTime": "2023-02-20T09:44:49.3403446Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/565bcf2e-43b7-48e6-9acf-9623d4cae60c?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/6d1c8776-96d1-42d2-99b0-f59d17907fba?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-71c5affa6783bc4fb1dd7faf97389e5e-f5d8612e3c2b1c49-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "3e0ad15a0bc6cba95595a83dc4cd2d19", + "traceparent": "00-b5fb72abe3c4d44e18f6c6b69aceed32-be81793ea115878d-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "5672d9632bed5281121fb02f26a18c17", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1621,31 +1491,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:37:15 GMT", + "Date": "Mon, 20 Feb 2023 09:45:57 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "de4eeaeb-8aeb-413c-b4f3-4170e133a2ae", - "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "3ebb6984-8edd-43d2-bca5-ab0bf98044c4", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T083716Z:de4eeaeb-8aeb-413c-b4f3-4170e133a2ae" + "x-ms-correlation-request-id": "574f9593-63e7-4788-939a-feff50707969", + "x-ms-ratelimit-remaining-subscription-reads": "11931", + "x-ms-request-id": "ba65808e-503f-4f71-9b21-840353500c97", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T094558Z:574f9593-63e7-4788-939a-feff50707969" }, "ResponseBody": { - "name": "2ecf5b56-b743-e648-9acf-9623d4cae60c", + "name": "76871c6d-d196-d242-99b0-f59d17907fba", "status": "InProgress", - "startTime": "2022-11-28T08:30:42.5016608Z" + "startTime": "2023-02-20T09:44:49.3403446Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/565bcf2e-43b7-48e6-9acf-9623d4cae60c?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/6d1c8776-96d1-42d2-99b0-f59d17907fba?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-71c5affa6783bc4fb1dd7faf97389e5e-ddf8ba7e6c071948-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "448f331f261bdd7d571e8a1f5e254423", + "traceparent": "00-b5fb72abe3c4d44e18f6c6b69aceed32-6160fd01207a396e-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "0d74b9c96f06a5876854b76ebf877ad5", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1654,31 +1524,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:37:47 GMT", + "Date": "Mon, 20 Feb 2023 09:47:18 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "085ea33d-57e5-4ba3-a6d5-694c44cd382c", - "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-request-id": "5ede7361-b574-4530-96cb-842951620ced", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T083748Z:085ea33d-57e5-4ba3-a6d5-694c44cd382c" + "x-ms-correlation-request-id": "13c0e988-8d70-440d-b34a-0415512f050d", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-request-id": "f96148c9-1da6-45b2-aca4-3394e1475071", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T094719Z:13c0e988-8d70-440d-b34a-0415512f050d" }, "ResponseBody": { - "name": "2ecf5b56-b743-e648-9acf-9623d4cae60c", + "name": "76871c6d-d196-d242-99b0-f59d17907fba", "status": "InProgress", - "startTime": "2022-11-28T08:30:42.5016608Z" + "startTime": "2023-02-20T09:44:49.3403446Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/565bcf2e-43b7-48e6-9acf-9623d4cae60c?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/6d1c8776-96d1-42d2-99b0-f59d17907fba?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-71c5affa6783bc4fb1dd7faf97389e5e-11a88076d1db644d-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "596a7bef7c593b761e6fa966eb3a8f8d", + "traceparent": "00-b5fb72abe3c4d44e18f6c6b69aceed32-ad5f12f461a2190f-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "bc16d4e46d29f43e9ae251dd709b0c2d", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1687,31 +1557,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:38:20 GMT", + "Date": "Mon, 20 Feb 2023 09:47:51 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "b8dfba01-5e86-47e0-8f5b-0f8a2ed5d222", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "88c64fa4-4ad4-4f59-a8a3-9268a1463b90", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T083820Z:b8dfba01-5e86-47e0-8f5b-0f8a2ed5d222" + "x-ms-correlation-request-id": "c6e57adf-7ac9-4882-9530-b45a64fce9c5", + "x-ms-ratelimit-remaining-subscription-reads": "11998", + "x-ms-request-id": "0a59bf1c-d7d5-4006-97fd-c0bff2ce9480", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T094752Z:c6e57adf-7ac9-4882-9530-b45a64fce9c5" }, "ResponseBody": { - "name": "2ecf5b56-b743-e648-9acf-9623d4cae60c", + "name": "76871c6d-d196-d242-99b0-f59d17907fba", "status": "InProgress", - "startTime": "2022-11-28T08:30:42.5016608Z" + "startTime": "2023-02-20T09:44:49.3403446Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/565bcf2e-43b7-48e6-9acf-9623d4cae60c?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/6d1c8776-96d1-42d2-99b0-f59d17907fba?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-71c5affa6783bc4fb1dd7faf97389e5e-19fe4456dd76f24c-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "7c70bf7f012934cb532ce6a780896d30", + "traceparent": "00-b5fb72abe3c4d44e18f6c6b69aceed32-1bc8230158604ec1-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "09f8d2729376f49251ccee987412928b", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1720,31 +1590,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:38:52 GMT", + "Date": "Mon, 20 Feb 2023 09:48:23 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "3cfcdb74-854e-43b8-a1ce-3d7cd0f683e2", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "d5a97915-0a4d-44c8-ab80-58636b521e67", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T083853Z:3cfcdb74-854e-43b8-a1ce-3d7cd0f683e2" + "x-ms-correlation-request-id": "4464408c-cc1d-4995-96e4-5322e62a2c7e", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-request-id": "8f1c9e57-401d-406c-a1e6-bd30489f5dc2", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T094824Z:4464408c-cc1d-4995-96e4-5322e62a2c7e" }, "ResponseBody": { - "name": "2ecf5b56-b743-e648-9acf-9623d4cae60c", + "name": "76871c6d-d196-d242-99b0-f59d17907fba", "status": "InProgress", - "startTime": "2022-11-28T08:30:42.5016608Z" + "startTime": "2023-02-20T09:44:49.3403446Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/565bcf2e-43b7-48e6-9acf-9623d4cae60c?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/6d1c8776-96d1-42d2-99b0-f59d17907fba?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-71c5affa6783bc4fb1dd7faf97389e5e-092143b59df12648-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "484d8551d362a2c0bd5426ac7d16f21d", + "traceparent": "00-b5fb72abe3c4d44e18f6c6b69aceed32-a2290efae316df7c-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "524bdba4cf8a5bee7b8073241daa35cc", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1753,29 +1623,29 @@ "Cache-Control": "no-cache", "Content-Length": "170", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:39:25 GMT", + "Date": "Mon, 20 Feb 2023 09:48:56 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "793a5551-5f25-4b0b-b501-64ecf471699e", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "a087fc5a-6f6b-4e3e-8be4-c1287dc5b509", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T083926Z:793a5551-5f25-4b0b-b501-64ecf471699e" + "x-ms-correlation-request-id": "e5ad7206-1099-4bf6-9b07-9ccb0defb81a", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-request-id": "0fe6971f-2d00-4d93-8b0c-d789249578df", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T094856Z:e5ad7206-1099-4bf6-9b07-9ccb0defb81a" }, "ResponseBody": { - "name": "2ecf5b56-b743-e648-9acf-9623d4cae60c", + "name": "76871c6d-d196-d242-99b0-f59d17907fba", "status": "Succeeded", - "startTime": "2022-11-28T08:30:42.5016608Z", - "endTime": "2022-11-28T08:38:53.9635345Z" + "startTime": "2023-02-20T09:44:49.3403446Z", + "endTime": "2023-02-20T09:48:41.8276051Z" } } ], "Variables": { "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com", - "RandomSeed": "791203093", - "RESOURCE_MANAGER_URL": null, + "RandomSeed": "353419038", + "RESOURCE_MANAGER_URL": "https://management.azure.com/", "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" } } diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/tests/SessionRecords/ContainerServiceCollectionTests/GetCredentials()Async.json b/sdk/containerservice/Azure.ResourceManager.ContainerService/tests/SessionRecords/ContainerServiceCollectionTests/GetCredentials()Async.json index 5a71629bcbab0..1bd32fe1fbd9c 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/tests/SessionRecords/ContainerServiceCollectionTests/GetCredentials()Async.json +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/tests/SessionRecords/ContainerServiceCollectionTests/GetCredentials()Async.json @@ -6,9 +6,9 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-37abf4ecba26cd43b7e290c8ae403ac6-b91cfafd01218c43-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "f0fb76d44702967ffcaa25682d997676", + "traceparent": "00-68bba37db02bdeb0e701a20582bfae4a-abb37b2f176920af-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "e3820f7ec271fd71a97f3af326d16448", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -17,15 +17,15 @@ "Cache-Control": "no-cache", "Content-Length": "748", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 28 Nov 2022 09:10:18 GMT", + "Date": "Mon, 20 Feb 2023 10:16:06 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "83194035-c621-4cf2-98f0-120edd143f35", - "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "83194035-c621-4cf2-98f0-120edd143f35", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T091019Z:83194035-c621-4cf2-98f0-120edd143f35" + "x-ms-correlation-request-id": "6ca9694d-8f9a-4f67-8dde-a7344c4e5046", + "x-ms-ratelimit-remaining-subscription-reads": "11907", + "x-ms-request-id": "6ca9694d-8f9a-4f67-8dde-a7344c4e5046", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T101607Z:6ca9694d-8f9a-4f67-8dde-a7344c4e5046" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", @@ -56,16 +56,16 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testaksrg7977?api-version=**", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testaksrg7455?api-version=**", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "21", "Content-Type": "application/json", - "traceparent": "00-575a6fcbc83e884dab9fec2b0056633a-0300b4c55df9f64f-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "ae1ccf6cf4be9fd88ed4ca93cc30277a", + "traceparent": "00-cc665c58e2c3dc6f379cad4d3c7fa298-1a1619c6879dafee-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "2da3be61a25b10ac84bcce907766f474", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -76,19 +76,19 @@ "Cache-Control": "no-cache", "Content-Length": "223", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 28 Nov 2022 09:10:21 GMT", + "Date": "Mon, 20 Feb 2023 10:16:08 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "0a969234-bfc4-45e7-9b15-ace28d32adf2", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "0a969234-bfc4-45e7-9b15-ace28d32adf2", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T091022Z:0a969234-bfc4-45e7-9b15-ace28d32adf2" + "x-ms-correlation-request-id": "eb5c5bf8-0f75-43e5-a2a2-f1d92e31e49b", + "x-ms-ratelimit-remaining-subscription-writes": "1194", + "x-ms-request-id": "eb5c5bf8-0f75-43e5-a2a2-f1d92e31e49b", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T101608Z:eb5c5bf8-0f75-43e5-a2a2-f1d92e31e49b" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg7977", - "name": "testaksrg7977", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg7455", + "name": "testaksrg7455", "type": "Microsoft.Resources/resourceGroups", "location": "eastus", "properties": { @@ -97,16 +97,16 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg7977/providers/Microsoft.ContainerService/managedClusters/akscluster3007?api-version=2022-09-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg7455/providers/Microsoft.ContainerService/managedClusters/akscluster9990?api-version=2022-11-02-preview", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "205", "Content-Type": "application/json", - "traceparent": "00-f3090e91c842344eacda661fd1944b55-136a493acf17ab46-00", - "User-Agent": "azsdk-net-ResourceManager.ContainerService/1.1.0-alpha.20221128.1 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "90b64e694efbb428dc2d24fa0d5f48fc", + "traceparent": "00-82b1b729acf8e2a56343f82cc38018b9-95a991a05eb42045-00", + "User-Agent": "azsdk-net-ResourceManager.ContainerService/1.2.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "7b169705c4395007a87da5d0c7f0f514", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -129,36 +129,36 @@ }, "StatusCode": 201, "ResponseHeaders": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a04912ff-0ce0-4284-a87a-37c9f0866607?api-version=2017-08-31", + "azure-asyncoperation": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/337f26fd-d38d-42fa-ae44-0c230cd16e46?api-version=2017-08-31", "Cache-Control": "no-cache", - "Content-Length": "2372", + "Content-Length": "2473", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:10:34 GMT", + "Date": "Mon, 20 Feb 2023 10:16:17 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "118e8a3b-78be-4f2f-8ed2-ab68bb4a4f70", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "a04912ff-0ce0-4284-a87a-37c9f0866607", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T091035Z:118e8a3b-78be-4f2f-8ed2-ab68bb4a4f70" + "x-ms-correlation-request-id": "d9c748a7-b87a-457d-982d-c41c22615c06", + "x-ms-ratelimit-remaining-subscription-writes": "1193", + "x-ms-request-id": "337f26fd-d38d-42fa-ae44-0c230cd16e46", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T101618Z:d9c748a7-b87a-457d-982d-c41c22615c06" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testaksrg7977/providers/Microsoft.ContainerService/managedClusters/akscluster3007", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testaksrg7455/providers/Microsoft.ContainerService/managedClusters/akscluster9990", "location": "eastus", - "name": "akscluster3007", + "name": "akscluster9990", "type": "Microsoft.ContainerService/ManagedClusters", "properties": { "provisioningState": "Creating", "powerState": { "code": "Running" }, - "kubernetesVersion": "1.23.12", - "currentKubernetesVersion": "1.23.12", + "kubernetesVersion": "1.24.9", + "currentKubernetesVersion": "1.24.9", "dnsPrefix": "aksdotnetsdk", - "fqdn": "aksdotnetsdk-535b183a.hcp.eastus.azmk8s.io", - "azurePortalFQDN": "aksdotnetsdk-535b183a.portal.hcp.eastus.azmk8s.io", + "fqdn": "aksdotnetsdk-6ab604e5.hcp.eastus.azmk8s.io", + "azurePortalFQDN": "aksdotnetsdk-6ab604e5.portal.hcp.eastus.azmk8s.io", "agentPoolProfiles": [ { "name": "aksagent", @@ -173,19 +173,19 @@ "powerState": { "code": "Running" }, - "orchestratorVersion": "1.23.12", - "currentOrchestratorVersion": "1.23.12", + "orchestratorVersion": "1.24.9", + "currentOrchestratorVersion": "1.24.9", "mode": "System", "osType": "Linux", "osSKU": "Ubuntu", - "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2022.11.02", + "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2023.01.26", "enableFIPS": false } ], "servicePrincipalProfile": { "clientId": "msi" }, - "nodeResourceGroup": "MC_testaksrg7977_akscluster3007_eastus", + "nodeResourceGroup": "MC_testaksrg7455_akscluster9990_eastus", "enableRBAC": true, "networkProfile": { "networkPlugin": "kubenet", @@ -193,7 +193,8 @@ "loadBalancerProfile": { "managedOutboundIPs": { "count": 1 - } + }, + "backendPoolType": "nodeIPConfiguration" }, "podCidr": "10.244.0.0/16", "serviceCidr": "10.0.0.0/16", @@ -214,7 +215,8 @@ "securityProfile": {}, "storageProfile": { "diskCSIDriver": { - "enabled": true + "enabled": true, + "version": "v1" }, "fileCSIDriver": { "enabled": true @@ -225,11 +227,12 @@ }, "oidcIssuerProfile": { "enabled": false - } + }, + "workloadAutoScalerProfile": {} }, "identity": { "type": "SystemAssigned", - "principalId": "df0b0215-0f37-437e-a22a-b5afcf614c5f", + "principalId": "3dfa8d44-d993-4b25-a7fc-112fed0a9192", "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47" }, "sku": { @@ -239,13 +242,13 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a04912ff-0ce0-4284-a87a-37c9f0866607?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/337f26fd-d38d-42fa-ae44-0c230cd16e46?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-f3090e91c842344eacda661fd1944b55-3e30f9a38cb83a4d-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "283079ee5bbf8171f4fae1c7b4a58075", + "traceparent": "00-82b1b729acf8e2a56343f82cc38018b9-03a6729aa70c3c38-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "cccbb07f2a32fa289bdcb2240740bccc", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -254,31 +257,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:10:35 GMT", + "Date": "Mon, 20 Feb 2023 10:16:17 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "d18a810d-e85d-44c3-831e-9e76831e6f71", - "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-request-id": "c201292c-746b-40b2-9845-24de3fccf191", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T091035Z:d18a810d-e85d-44c3-831e-9e76831e6f71" + "x-ms-correlation-request-id": "39a6f17e-35b8-4777-b8c3-e71e99f67b82", + "x-ms-ratelimit-remaining-subscription-reads": "11906", + "x-ms-request-id": "b1fc4aff-3fca-4dd3-ad36-85fdffc5375e", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T101618Z:39a6f17e-35b8-4777-b8c3-e71e99f67b82" }, "ResponseBody": { - "name": "ff1249a0-e00c-8442-a87a-37c9f0866607", + "name": "fd267f33-8dd3-fa42-ae44-0c230cd16e46", "status": "InProgress", - "startTime": "2022-11-28T09:10:34.0655545Z" + "startTime": "2023-02-20T10:16:16.9591949Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a04912ff-0ce0-4284-a87a-37c9f0866607?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/337f26fd-d38d-42fa-ae44-0c230cd16e46?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-f3090e91c842344eacda661fd1944b55-79fa9c4eda53b041-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "948097819f3d53d7cc933f87da72b1ac", + "traceparent": "00-82b1b729acf8e2a56343f82cc38018b9-11ba28f47e1afe18-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "fb2a7cd97f1de2572b40a94cbe64e477", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -287,31 +290,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:10:36 GMT", + "Date": "Mon, 20 Feb 2023 10:16:19 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "791cd351-8b7d-4ba3-89b4-f58112492563", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "481d63f3-1df6-48b6-bdea-df5381fc9641", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T091037Z:791cd351-8b7d-4ba3-89b4-f58112492563" + "x-ms-correlation-request-id": "1b51f37e-a192-4eac-9680-f1dbba074dcb", + "x-ms-ratelimit-remaining-subscription-reads": "11905", + "x-ms-request-id": "154b9e2e-66bf-4af3-a649-9b08e9c65668", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T101620Z:1b51f37e-a192-4eac-9680-f1dbba074dcb" }, "ResponseBody": { - "name": "ff1249a0-e00c-8442-a87a-37c9f0866607", + "name": "fd267f33-8dd3-fa42-ae44-0c230cd16e46", "status": "InProgress", - "startTime": "2022-11-28T09:10:34.0655545Z" + "startTime": "2023-02-20T10:16:16.9591949Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a04912ff-0ce0-4284-a87a-37c9f0866607?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/337f26fd-d38d-42fa-ae44-0c230cd16e46?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-f3090e91c842344eacda661fd1944b55-e866fb6eb8ce6a46-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "930c26b3202fef3c2a68e7e134ba6fac", + "traceparent": "00-82b1b729acf8e2a56343f82cc38018b9-4f79f19281bc41be-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "17515f65282422e143dd59417147ce91", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -320,31 +323,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:10:37 GMT", + "Date": "Mon, 20 Feb 2023 10:16:20 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "651de159-3e00-449a-b131-7dbee51b94bd", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "5a02cf07-237b-43d0-ba26-885bbb0e2f7f", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T091038Z:651de159-3e00-449a-b131-7dbee51b94bd" + "x-ms-correlation-request-id": "c92fda4d-2257-4ebd-ac75-e98d21199540", + "x-ms-ratelimit-remaining-subscription-reads": "11904", + "x-ms-request-id": "a7ba74de-4da4-4f9a-bdab-188be1717224", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T101621Z:c92fda4d-2257-4ebd-ac75-e98d21199540" }, "ResponseBody": { - "name": "ff1249a0-e00c-8442-a87a-37c9f0866607", + "name": "fd267f33-8dd3-fa42-ae44-0c230cd16e46", "status": "InProgress", - "startTime": "2022-11-28T09:10:34.0655545Z" + "startTime": "2023-02-20T10:16:16.9591949Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a04912ff-0ce0-4284-a87a-37c9f0866607?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/337f26fd-d38d-42fa-ae44-0c230cd16e46?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-f3090e91c842344eacda661fd1944b55-d3e285864fb5be4b-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "6c33fdf2e4af4ec0a2dc5b2b1ce9a681", + "traceparent": "00-82b1b729acf8e2a56343f82cc38018b9-78e1f33decb8d286-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "efca39301d07002858e9a1f181db3c37", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -353,31 +356,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:10:39 GMT", + "Date": "Mon, 20 Feb 2023 10:16:21 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "4d6390a4-533e-4d68-890f-15c58fda270d", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "a6301812-ccd7-4a38-8d74-2ea72d41c7f7", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T091039Z:4d6390a4-533e-4d68-890f-15c58fda270d" + "x-ms-correlation-request-id": "e5b4d226-6035-4d37-a2a1-a73e3b08f233", + "x-ms-ratelimit-remaining-subscription-reads": "11903", + "x-ms-request-id": "f266851a-7433-4160-b2b9-ab4035cf094d", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T101622Z:e5b4d226-6035-4d37-a2a1-a73e3b08f233" }, "ResponseBody": { - "name": "ff1249a0-e00c-8442-a87a-37c9f0866607", + "name": "fd267f33-8dd3-fa42-ae44-0c230cd16e46", "status": "InProgress", - "startTime": "2022-11-28T09:10:34.0655545Z" + "startTime": "2023-02-20T10:16:16.9591949Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a04912ff-0ce0-4284-a87a-37c9f0866607?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/337f26fd-d38d-42fa-ae44-0c230cd16e46?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-f3090e91c842344eacda661fd1944b55-c2e0a02d76d82743-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "8d133549ed9861455a916ad4b8f51f11", + "traceparent": "00-82b1b729acf8e2a56343f82cc38018b9-ccb563d843636c5d-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "a7bf3af8a5efb0a89a07b83f251670e3", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -386,31 +389,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:10:41 GMT", + "Date": "Mon, 20 Feb 2023 10:16:24 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "739621b8-b2b1-4cf1-b2e5-9540afcc4759", - "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "6521b57a-538e-4b9e-9135-4775174b18e5", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T091042Z:739621b8-b2b1-4cf1-b2e5-9540afcc4759" + "x-ms-correlation-request-id": "9b38d657-90d6-423f-a0f9-e4d5ce206409", + "x-ms-ratelimit-remaining-subscription-reads": "11902", + "x-ms-request-id": "9ea11d27-6635-4c8f-9e17-c9b6f24c9c9a", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T101625Z:9b38d657-90d6-423f-a0f9-e4d5ce206409" }, "ResponseBody": { - "name": "ff1249a0-e00c-8442-a87a-37c9f0866607", + "name": "fd267f33-8dd3-fa42-ae44-0c230cd16e46", "status": "InProgress", - "startTime": "2022-11-28T09:10:34.0655545Z" + "startTime": "2023-02-20T10:16:16.9591949Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a04912ff-0ce0-4284-a87a-37c9f0866607?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/337f26fd-d38d-42fa-ae44-0c230cd16e46?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-f3090e91c842344eacda661fd1944b55-3e7783e174a14a42-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "dd949224453ecffd66bdf152c411d341", + "traceparent": "00-82b1b729acf8e2a56343f82cc38018b9-513a15a67ece2d2a-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "841c1772f49a48703751be3a87efa168", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -419,31 +422,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:10:45 GMT", + "Date": "Mon, 20 Feb 2023 10:16:29 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "970e765c-68db-49c0-ab4e-09303fe68b60", - "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "b4ddaa84-0656-412b-b6c8-c39983d73800", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T091046Z:970e765c-68db-49c0-ab4e-09303fe68b60" + "x-ms-correlation-request-id": "7f4d8337-718a-47b4-91b2-62d2b7c52dc9", + "x-ms-ratelimit-remaining-subscription-reads": "11901", + "x-ms-request-id": "3ea7030e-2dd0-42fb-bbbb-d7bd0cfcb3ad", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T101629Z:7f4d8337-718a-47b4-91b2-62d2b7c52dc9" }, "ResponseBody": { - "name": "ff1249a0-e00c-8442-a87a-37c9f0866607", + "name": "fd267f33-8dd3-fa42-ae44-0c230cd16e46", "status": "InProgress", - "startTime": "2022-11-28T09:10:34.0655545Z" + "startTime": "2023-02-20T10:16:16.9591949Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a04912ff-0ce0-4284-a87a-37c9f0866607?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/337f26fd-d38d-42fa-ae44-0c230cd16e46?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-f3090e91c842344eacda661fd1944b55-6520fcea466e0c4f-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "fe9865c2e1a70513b7d2111d7aeb96ac", + "traceparent": "00-82b1b729acf8e2a56343f82cc38018b9-2a7a5e1a079d3158-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "364921a126888aa2911954ff64e8da42", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -452,31 +455,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:10:54 GMT", + "Date": "Mon, 20 Feb 2023 10:16:37 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "165e07ad-b621-4fe3-a139-9f2939fa943d", - "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-request-id": "5015fc45-5212-48c9-a150-0f0846f558b7", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T091054Z:165e07ad-b621-4fe3-a139-9f2939fa943d" + "x-ms-correlation-request-id": "8a3becff-3a39-4e31-85ee-0a725d371f2d", + "x-ms-ratelimit-remaining-subscription-reads": "11900", + "x-ms-request-id": "c0e6f7a5-e0ee-4f1c-a363-a2768f2981b2", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T101638Z:8a3becff-3a39-4e31-85ee-0a725d371f2d" }, "ResponseBody": { - "name": "ff1249a0-e00c-8442-a87a-37c9f0866607", + "name": "fd267f33-8dd3-fa42-ae44-0c230cd16e46", "status": "InProgress", - "startTime": "2022-11-28T09:10:34.0655545Z" + "startTime": "2023-02-20T10:16:16.9591949Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a04912ff-0ce0-4284-a87a-37c9f0866607?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/337f26fd-d38d-42fa-ae44-0c230cd16e46?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-f3090e91c842344eacda661fd1944b55-583e11b73b4a8645-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "890649bdc9540442384427dbfbf39d48", + "traceparent": "00-82b1b729acf8e2a56343f82cc38018b9-553e06aedc3ee31e-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "697fbd79b7be039dca766f9ee66d29ab", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -485,31 +488,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:11:10 GMT", + "Date": "Mon, 20 Feb 2023 10:16:53 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "a4171e15-341d-4c33-99fb-58126329ae1c", - "x-ms-ratelimit-remaining-subscription-reads": "11986", - "x-ms-request-id": "1168e470-893d-426e-adb9-aee3581e6e0e", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T091111Z:a4171e15-341d-4c33-99fb-58126329ae1c" + "x-ms-correlation-request-id": "64101b3e-37fa-459e-9674-c7df9708c7ea", + "x-ms-ratelimit-remaining-subscription-reads": "11899", + "x-ms-request-id": "afca0b93-5556-4094-88c8-e5699ec4360e", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T101654Z:64101b3e-37fa-459e-9674-c7df9708c7ea" }, "ResponseBody": { - "name": "ff1249a0-e00c-8442-a87a-37c9f0866607", + "name": "fd267f33-8dd3-fa42-ae44-0c230cd16e46", "status": "InProgress", - "startTime": "2022-11-28T09:10:34.0655545Z" + "startTime": "2023-02-20T10:16:16.9591949Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a04912ff-0ce0-4284-a87a-37c9f0866607?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/337f26fd-d38d-42fa-ae44-0c230cd16e46?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-f3090e91c842344eacda661fd1944b55-836439ed9f1e284d-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "521228be205d436a7f8f256c33df547b", + "traceparent": "00-82b1b729acf8e2a56343f82cc38018b9-eabbab84eb898b41-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "049e4f663acd4c5b7592f2809f71e34f", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -518,31 +521,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:11:43 GMT", + "Date": "Mon, 20 Feb 2023 10:17:26 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "03406e91-cffd-4969-86da-a86d61f46685", - "x-ms-ratelimit-remaining-subscription-reads": "11985", - "x-ms-request-id": "f0f57f1c-0a6e-4f99-9dd9-7cb2d8dc8b15", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T091143Z:03406e91-cffd-4969-86da-a86d61f46685" + "x-ms-correlation-request-id": "101ed888-39f3-48a8-ac54-ec6968acf4c2", + "x-ms-ratelimit-remaining-subscription-reads": "11898", + "x-ms-request-id": "09addb0f-a05c-413b-88a9-06df0f2f4565", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T101726Z:101ed888-39f3-48a8-ac54-ec6968acf4c2" }, "ResponseBody": { - "name": "ff1249a0-e00c-8442-a87a-37c9f0866607", + "name": "fd267f33-8dd3-fa42-ae44-0c230cd16e46", "status": "InProgress", - "startTime": "2022-11-28T09:10:34.0655545Z" + "startTime": "2023-02-20T10:16:16.9591949Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a04912ff-0ce0-4284-a87a-37c9f0866607?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/337f26fd-d38d-42fa-ae44-0c230cd16e46?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-f3090e91c842344eacda661fd1944b55-4faa4b9096102343-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "7a944427490bf8ec2394c662ba3709c4", + "traceparent": "00-82b1b729acf8e2a56343f82cc38018b9-f77ba441c92a68b6-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "c9c17c763770e9a984456c12b603a324", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -551,31 +554,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:12:15 GMT", + "Date": "Mon, 20 Feb 2023 10:17:58 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "6d562216-6495-4c14-8862-0207d2f92236", - "x-ms-ratelimit-remaining-subscription-reads": "11984", - "x-ms-request-id": "7d9b9a40-4bcc-4175-abbd-f62b43ec9b69", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T091215Z:6d562216-6495-4c14-8862-0207d2f92236" + "x-ms-correlation-request-id": "b5602886-7a35-4de3-b110-ba040ec41b87", + "x-ms-ratelimit-remaining-subscription-reads": "11897", + "x-ms-request-id": "fb93e8fa-8c6e-430a-80ac-75cdd5b69a4a", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T101759Z:b5602886-7a35-4de3-b110-ba040ec41b87" }, "ResponseBody": { - "name": "ff1249a0-e00c-8442-a87a-37c9f0866607", + "name": "fd267f33-8dd3-fa42-ae44-0c230cd16e46", "status": "InProgress", - "startTime": "2022-11-28T09:10:34.0655545Z" + "startTime": "2023-02-20T10:16:16.9591949Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a04912ff-0ce0-4284-a87a-37c9f0866607?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/337f26fd-d38d-42fa-ae44-0c230cd16e46?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-f3090e91c842344eacda661fd1944b55-04dc1fae57afb94d-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "515fc83444d89d4fdfc309c5a4d5d058", + "traceparent": "00-82b1b729acf8e2a56343f82cc38018b9-c80d2fac905fd95c-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "1498a9f0d6493f746232f42cc51d6459", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -584,66 +587,64 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:12:47 GMT", + "Date": "Mon, 20 Feb 2023 10:19:04 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "d5ea05a4-018e-466c-8511-be98c180e05f", - "x-ms-ratelimit-remaining-subscription-reads": "11983", - "x-ms-request-id": "a06072be-1c3f-488d-ae67-2eab7e4e3f23", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T091248Z:d5ea05a4-018e-466c-8511-be98c180e05f" + "x-ms-correlation-request-id": "66d31792-aec4-48e0-b241-c7ddcf8902fc", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-request-id": "603d616a-b907-499a-8adf-d869d699cba5", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T101904Z:66d31792-aec4-48e0-b241-c7ddcf8902fc" }, "ResponseBody": { - "name": "ff1249a0-e00c-8442-a87a-37c9f0866607", + "name": "fd267f33-8dd3-fa42-ae44-0c230cd16e46", "status": "InProgress", - "startTime": "2022-11-28T09:10:34.0655545Z" + "startTime": "2023-02-20T10:16:16.9591949Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a04912ff-0ce0-4284-a87a-37c9f0866607?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/337f26fd-d38d-42fa-ae44-0c230cd16e46?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "Connection": "close", - "traceparent": "00-f3090e91c842344eacda661fd1944b55-e46f953af5207f4a-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "b7b4acef225e753d3c1a2ec859078847", + "traceparent": "00-82b1b729acf8e2a56343f82cc38018b9-b1adeb4ab3c94c71-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "692720925fac2e3aa6b57f88cd499571", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Connection": "close", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:13:19 GMT", + "Date": "Mon, 20 Feb 2023 10:19:36 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "1104d154-5791-400a-b212-5785eea8d379", - "x-ms-ratelimit-remaining-subscription-reads": "11982", - "x-ms-request-id": "33441b2a-4e30-476d-9591-3c138d336900", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T091320Z:1104d154-5791-400a-b212-5785eea8d379" + "x-ms-correlation-request-id": "b5e6eb14-3783-451c-8097-48183d3be5cb", + "x-ms-ratelimit-remaining-subscription-reads": "11998", + "x-ms-request-id": "295c15c7-57bb-4a0a-8a42-37724700e245", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T101936Z:b5e6eb14-3783-451c-8097-48183d3be5cb" }, "ResponseBody": { - "name": "ff1249a0-e00c-8442-a87a-37c9f0866607", + "name": "fd267f33-8dd3-fa42-ae44-0c230cd16e46", "status": "InProgress", - "startTime": "2022-11-28T09:10:34.0655545Z" + "startTime": "2023-02-20T10:16:16.9591949Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a04912ff-0ce0-4284-a87a-37c9f0866607?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/337f26fd-d38d-42fa-ae44-0c230cd16e46?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-f3090e91c842344eacda661fd1944b55-26f12e3abc46674c-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "6a3760850380e2a2f5f79b473f27544d", + "traceparent": "00-82b1b729acf8e2a56343f82cc38018b9-5b2be18aad910013-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "f58fceeeced8a0060882673d437d2467", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -652,31 +653,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:13:53 GMT", + "Date": "Mon, 20 Feb 2023 10:20:08 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "49378be1-dd7c-4bc6-b6c9-4bccf320d93b", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "ef55fa9e-2299-40e9-8b97-1c21a92bfb38", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T091353Z:49378be1-dd7c-4bc6-b6c9-4bccf320d93b" + "x-ms-correlation-request-id": "a50477e8-1552-483b-9a13-fd0381d8e1da", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-request-id": "4c3d8962-1547-44dd-96cf-dcac3f6e704a", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T102009Z:a50477e8-1552-483b-9a13-fd0381d8e1da" }, "ResponseBody": { - "name": "ff1249a0-e00c-8442-a87a-37c9f0866607", + "name": "fd267f33-8dd3-fa42-ae44-0c230cd16e46", "status": "InProgress", - "startTime": "2022-11-28T09:10:34.0655545Z" + "startTime": "2023-02-20T10:16:16.9591949Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a04912ff-0ce0-4284-a87a-37c9f0866607?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/337f26fd-d38d-42fa-ae44-0c230cd16e46?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-f3090e91c842344eacda661fd1944b55-83e0c89f39fdef48-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "0e736ec3528312658aea15be158643d7", + "traceparent": "00-82b1b729acf8e2a56343f82cc38018b9-3ef1602c642bde50-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "957f13e03adb90776e6a6e9456ec7119", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -685,31 +686,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:14:25 GMT", + "Date": "Mon, 20 Feb 2023 10:20:41 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "189d705d-ffd6-4637-8125-750612ff066c", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "9b4c77cc-2d2f-4e81-8db5-08001f450145", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T091426Z:189d705d-ffd6-4637-8125-750612ff066c" + "x-ms-correlation-request-id": "02d46fe7-04aa-4d22-bc1d-3386eae26fb6", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-request-id": "6128ab22-1534-4534-ae9a-9ece3c6f0f93", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T102041Z:02d46fe7-04aa-4d22-bc1d-3386eae26fb6" }, "ResponseBody": { - "name": "ff1249a0-e00c-8442-a87a-37c9f0866607", + "name": "fd267f33-8dd3-fa42-ae44-0c230cd16e46", "status": "InProgress", - "startTime": "2022-11-28T09:10:34.0655545Z" + "startTime": "2023-02-20T10:16:16.9591949Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a04912ff-0ce0-4284-a87a-37c9f0866607?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/337f26fd-d38d-42fa-ae44-0c230cd16e46?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-f3090e91c842344eacda661fd1944b55-310b2ca2c2f6144c-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "433fc13a659decd709d1c16787f63514", + "traceparent": "00-82b1b729acf8e2a56343f82cc38018b9-efaf241e46586689-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "f63d829c6e8dc4801a86612af8fdea28", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -718,31 +719,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:14:58 GMT", + "Date": "Mon, 20 Feb 2023 10:21:13 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "abb1cf77-8682-4185-ab3c-78b288231995", - "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-request-id": "5e4a7330-ba97-441e-b09c-4bde3cb9c514", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T091458Z:abb1cf77-8682-4185-ab3c-78b288231995" + "x-ms-correlation-request-id": "e493be80-596d-4828-97b3-427f9f67be90", + "x-ms-ratelimit-remaining-subscription-reads": "11995", + "x-ms-request-id": "f4991bdb-a7be-4109-bf19-e81ac80b51ec", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T102114Z:e493be80-596d-4828-97b3-427f9f67be90" }, "ResponseBody": { - "name": "ff1249a0-e00c-8442-a87a-37c9f0866607", + "name": "fd267f33-8dd3-fa42-ae44-0c230cd16e46", "status": "InProgress", - "startTime": "2022-11-28T09:10:34.0655545Z" + "startTime": "2023-02-20T10:16:16.9591949Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a04912ff-0ce0-4284-a87a-37c9f0866607?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/337f26fd-d38d-42fa-ae44-0c230cd16e46?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-f3090e91c842344eacda661fd1944b55-7089496385882a45-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "eb04e0c57a9432c4fb25df96ede4cd6e", + "traceparent": "00-82b1b729acf8e2a56343f82cc38018b9-3a18b6f15f9aabac-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "baa71891ffcab49657ff876d5f724a1b", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -751,99 +752,165 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:15:29 GMT", + "Date": "Mon, 20 Feb 2023 10:21:45 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "5c47d07a-2c71-4b3b-a7b2-baecc442dede", - "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-request-id": "53b9207c-53f4-42f8-a537-0b0e3e768325", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T091530Z:5c47d07a-2c71-4b3b-a7b2-baecc442dede" + "x-ms-correlation-request-id": "f0bdfa94-32af-4cf6-9fff-41a0091e5dbe", + "x-ms-ratelimit-remaining-subscription-reads": "11994", + "x-ms-request-id": "cbd02dcb-f478-41b7-9eeb-8eeb7cf5c4c4", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T102146Z:f0bdfa94-32af-4cf6-9fff-41a0091e5dbe" }, "ResponseBody": { - "name": "ff1249a0-e00c-8442-a87a-37c9f0866607", + "name": "fd267f33-8dd3-fa42-ae44-0c230cd16e46", "status": "InProgress", - "startTime": "2022-11-28T09:10:34.0655545Z" + "startTime": "2023-02-20T10:16:16.9591949Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a04912ff-0ce0-4284-a87a-37c9f0866607?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/337f26fd-d38d-42fa-ae44-0c230cd16e46?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-f3090e91c842344eacda661fd1944b55-ee93e3f141dda14f-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "7d0cc3b311e75eaf968605b290fe8b94", + "traceparent": "00-82b1b729acf8e2a56343f82cc38018b9-fe7611056f427b98-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "c1a04e102d3f71d992ba7b55d84d9871", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "169", + "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:16:02 GMT", + "Date": "Mon, 20 Feb 2023 10:22:17 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "c9700183-4b76-4733-8258-1d5be727a45c", - "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "c2aa8ee2-2a9a-44e1-986a-20d4f205d10a", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T091603Z:c9700183-4b76-4733-8258-1d5be727a45c" + "x-ms-correlation-request-id": "cb63204d-ab0e-4d87-8743-83f4fe3a6c74", + "x-ms-ratelimit-remaining-subscription-reads": "11993", + "x-ms-request-id": "0d3de895-10de-4d8f-a7f3-d098a203b8c3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T102218Z:cb63204d-ab0e-4d87-8743-83f4fe3a6c74" + }, + "ResponseBody": { + "name": "fd267f33-8dd3-fa42-ae44-0c230cd16e46", + "status": "InProgress", + "startTime": "2023-02-20T10:16:16.9591949Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/337f26fd-d38d-42fa-ae44-0c230cd16e46?api-version=2017-08-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-82b1b729acf8e2a56343f82cc38018b9-b8e37515663d59ee-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "3d02467fb6449c4fec899f8ee71364a8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "126", + "Content-Type": "application/json", + "Date": "Mon, 20 Feb 2023 10:22:50 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "nginx", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f5683ac1-2195-4d8f-b84b-d37f474e6efd", + "x-ms-ratelimit-remaining-subscription-reads": "11992", + "x-ms-request-id": "4735d8c3-9103-4fe4-95d3-c45eb3296734", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T102251Z:f5683ac1-2195-4d8f-b84b-d37f474e6efd" }, "ResponseBody": { - "name": "ff1249a0-e00c-8442-a87a-37c9f0866607", + "name": "fd267f33-8dd3-fa42-ae44-0c230cd16e46", + "status": "InProgress", + "startTime": "2023-02-20T10:16:16.9591949Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/337f26fd-d38d-42fa-ae44-0c230cd16e46?api-version=2017-08-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-82b1b729acf8e2a56343f82cc38018b9-c4992b91bf4fee5a-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "aa19453c285c63e83f35270f8440db09", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "170", + "Content-Type": "application/json", + "Date": "Mon, 20 Feb 2023 10:23:23 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "nginx", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ff5d4ce4-976c-4173-98e3-d55a7bd4c491", + "x-ms-ratelimit-remaining-subscription-reads": "11991", + "x-ms-request-id": "7b9f63ea-9858-43d3-9bdf-3d0cdf1cc90f", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T102323Z:ff5d4ce4-976c-4173-98e3-d55a7bd4c491" + }, + "ResponseBody": { + "name": "fd267f33-8dd3-fa42-ae44-0c230cd16e46", "status": "Succeeded", - "startTime": "2022-11-28T09:10:34.0655545Z", - "endTime": "2022-11-28T09:15:37.440056Z" + "startTime": "2023-02-20T10:16:16.9591949Z", + "endTime": "2023-02-20T10:23:13.6950412Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg7977/providers/Microsoft.ContainerService/managedClusters/akscluster3007?api-version=2022-09-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg7455/providers/Microsoft.ContainerService/managedClusters/akscluster9990?api-version=2022-11-02-preview", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-f3090e91c842344eacda661fd1944b55-fdaa20db11b79642-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "34f800b45881c042fd0d47788641ff24", + "traceparent": "00-82b1b729acf8e2a56343f82cc38018b9-3bcc5f12a04d6572-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "19ed15660c6f5ad6fe04d5b68e4b8a7f", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "3019", + "Content-Length": "3120", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:16:04 GMT", + "Date": "Mon, 20 Feb 2023 10:23:24 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "fd74d624-ed4a-4fce-ac73-a465cad09806", - "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "320cee86-9a15-4db4-9927-4bfeecc27f86", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T091604Z:fd74d624-ed4a-4fce-ac73-a465cad09806" + "x-ms-correlation-request-id": "3d8559e6-4485-4186-b733-e01770ba9327", + "x-ms-ratelimit-remaining-subscription-reads": "11990", + "x-ms-request-id": "2810ac51-791f-443b-a62c-bd59a65e6926", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T102325Z:3d8559e6-4485-4186-b733-e01770ba9327" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testaksrg7977/providers/Microsoft.ContainerService/managedClusters/akscluster3007", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testaksrg7455/providers/Microsoft.ContainerService/managedClusters/akscluster9990", "location": "eastus", - "name": "akscluster3007", + "name": "akscluster9990", "type": "Microsoft.ContainerService/ManagedClusters", "properties": { "provisioningState": "Succeeded", "powerState": { "code": "Running" }, - "kubernetesVersion": "1.23.12", - "currentKubernetesVersion": "1.23.12", + "kubernetesVersion": "1.24.9", + "currentKubernetesVersion": "1.24.9", "dnsPrefix": "aksdotnetsdk", - "fqdn": "aksdotnetsdk-535b183a.hcp.eastus.azmk8s.io", - "azurePortalFQDN": "aksdotnetsdk-535b183a.portal.hcp.eastus.azmk8s.io", + "fqdn": "aksdotnetsdk-6ab604e5.hcp.eastus.azmk8s.io", + "azurePortalFQDN": "aksdotnetsdk-6ab604e5.portal.hcp.eastus.azmk8s.io", "agentPoolProfiles": [ { "name": "aksagent", @@ -858,19 +925,19 @@ "powerState": { "code": "Running" }, - "orchestratorVersion": "1.23.12", - "currentOrchestratorVersion": "1.23.12", + "orchestratorVersion": "1.24.9", + "currentOrchestratorVersion": "1.24.9", "mode": "System", "osType": "Linux", "osSKU": "Ubuntu", - "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2022.11.02", + "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2023.01.26", "enableFIPS": false } ], "servicePrincipalProfile": { "clientId": "msi" }, - "nodeResourceGroup": "MC_testaksrg7977_akscluster3007_eastus", + "nodeResourceGroup": "MC_testaksrg7455_akscluster9990_eastus", "enableRBAC": true, "networkProfile": { "networkPlugin": "kubenet", @@ -881,9 +948,10 @@ }, "effectiveOutboundIPs": [ { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/MC_testaksrg7977_akscluster3007_eastus/providers/Microsoft.Network/publicIPAddresses/70d22d5c-f54f-47ac-843a-370458a63d15" + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/MC_testaksrg7455_akscluster9990_eastus/providers/Microsoft.Network/publicIPAddresses/359ac81c-9afa-4f45-8605-9670f7d59968" } - ] + ], + "backendPoolType": "nodeIPConfiguration" }, "podCidr": "10.244.0.0/16", "serviceCidr": "10.0.0.0/16", @@ -903,15 +971,16 @@ "maxAgentPools": 100, "identityProfile": { "kubeletidentity": { - "resourceId": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/MC_testaksrg7977_akscluster3007_eastus/providers/Microsoft.ManagedIdentity/userAssignedIdentities/akscluster3007-agentpool", - "clientId": "81da7590-ac8e-4d70-85c0-ffbf42bbd58d", - "objectId": "08daf975-eefb-400d-a4c5-59805ad028b3" + "resourceId": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/MC_testaksrg7455_akscluster9990_eastus/providers/Microsoft.ManagedIdentity/userAssignedIdentities/akscluster9990-agentpool", + "clientId": "a87daa13-f60d-4882-bae9-5eab5b3adf7b", + "objectId": "f586658d-ea3b-4838-a312-4ce77b724a76" } }, "securityProfile": {}, "storageProfile": { "diskCSIDriver": { - "enabled": true + "enabled": true, + "version": "v1" }, "fileCSIDriver": { "enabled": true @@ -922,11 +991,12 @@ }, "oidcIssuerProfile": { "enabled": false - } + }, + "workloadAutoScalerProfile": {} }, "identity": { "type": "SystemAssigned", - "principalId": "df0b0215-0f37-437e-a22a-b5afcf614c5f", + "principalId": "3dfa8d44-d993-4b25-a7fc-112fed0a9192", "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47" }, "sku": { @@ -936,15 +1006,15 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg7977/providers/Microsoft.ContainerService/managedClusters/akscluster3007/listClusterAdminCredential?api-version=2022-09-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg7455/providers/Microsoft.ContainerService/managedClusters/akscluster9990/listClusterAdminCredential?api-version=2022-11-02-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "0", - "traceparent": "00-67cde212b6b8cf48a587a4b088f97024-4362dc4b1b349d46-00", - "User-Agent": "azsdk-net-ResourceManager.ContainerService/1.1.0-alpha.20221128.1 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "c3b35303b8e9b32c30a6540e7411a2fd", + "traceparent": "00-b96d44267c79fe1af251a119f9829eab-8026269ffe4bcbb2-00", + "User-Agent": "azsdk-net-ResourceManager.ContainerService/1.2.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "9218d356ee3356155d9ffe0f8e3f18ab", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -953,36 +1023,36 @@ "Cache-Control": "no-cache", "Content-Length": "13045", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:16:04 GMT", + "Date": "Mon, 20 Feb 2023 10:23:25 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "489d7369-b148-4044-ac3c-68a4ec1c6071", + "x-ms-correlation-request-id": "1da7b465-7842-4bba-a49b-c2974b3446f7", "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "f0e8221c-425e-44f4-b33f-be912b905a5c", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T091605Z:489d7369-b148-4044-ac3c-68a4ec1c6071" + "x-ms-request-id": "6dd3422f-f17f-4ebe-b315-b92ead123b16", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T102326Z:1da7b465-7842-4bba-a49b-c2974b3446f7" }, "ResponseBody": { "kubeconfigs": [ { "name": "clusterAdmin", - "value": "YXBpVmVyc2lvbjogdjEKY2x1c3RlcnM6Ci0gY2x1c3RlcjoKICAgIGNlcnRpZmljYXRlLWF1dGhvcml0eS1kYXRhOiBMUzB0TFMxQ1JVZEpUaUJEUlZKVVNVWkpRMEZVUlMwdExTMHRDazFKU1VVMlJFTkRRWFJEWjBGM1NVSkJaMGxSV214WGJsbHJUazF6UnpaSWFFaHRWRmszVG5KMlJFRk9RbWRyY1docmFVYzVkekJDUVZGelJrRkVRVTRLVFZGemQwTlJXVVJXVVZGRVJYZEthbGxVUVdkR2R6QjVUV3BGZUUxcVozZFBWRUY0VFdwT1lVZEJPSGxOUkZWNVRWUkZlVTlFUVRWTlZFVjVUVEZ2ZHdwRVZFVk1UVUZyUjBFeFZVVkJlRTFEV1RKRmQyZG5TV2xOUVRCSFExTnhSMU5KWWpORVVVVkNRVkZWUVVFMFNVTkVkMEYzWjJkSlMwRnZTVU5CVVVNckNrWlpXVnB1TkVrMWVtZHBjbU5JZFRWaWVDc3ZkMllyV1RaSVozcGpaMlEwVkV4a1V5dDRlaTk1Y21OUGVGTlBiMUZWUWxWTlYyWnBRelpKUVZORVJrUUtSVEpDUTFabVRXeHNOeTlDTm5WMUsyZGxWVmhHUTAxTGVrSlVMMnhEV1dRclVWbGpSa2gwV1Uxb1ZrOUxaMVJQWVdoSmVIb3JRWEYzWmpGVlIzbDJXUXBSTTJoVEwxRkVVRk5oVlROTVRsSlNhbXhZYW5GRlZsbDZVbEYwTWpKUlZFNVBSekJVTkdkbU1ubDVhamxOTjFock5FVlpia1pMWkhwemJqUk9VRkJrQ214WFMxbFpPREU1TjBOSlZtbzVPVXN6TW5GRVZHZHVWSFF6TlM4M2JYRm1WU3RHTTFBd1RGaFVlSHBpZFZReFJFRlZjVmxsVVZsMk56ZE1WakozUWprS0syNUhNRk5IUTNWaFNVUTBkWEpRTTBOSVJGTTNNVkYyVjBkWmNFRTBaVkpxTm5KWE9FcEtOMUpxU2sxd1p6SnNZVUpCTVhWQk1HWjZSM1YwYm14NmFncEtTek5XZVZoR2FISk9OV1JJVjBKdFRFMHhUbkp5U1hKVVVrRXliblUxUkRWbE5ub3ZTMVpKYkN0NGVGRTVZa1JPVkVGcU0waEZVMlpMWVd4clVqaHpDblU0TnpKWVpYaHpOSHBPTmpSemF6UXJabXBHVVZCcWRYQk5aMUpzTmpCRUszQXJSRXhtWVRoT2RFVmxXbVpSTTI1NGExb3hPSGhFUlM5WVFqbEVjRmNLVTBoeVdsTk1MMFJ3WmxSNGExcEpUelprTDBGSk5WZ3dORzVDWnpORVpqZHFRelE0Y25rMlRXNHlWSHBWSzJ0RFpuSklRMU5CWVV4dlNESkJlVWhFZHdwVVkyRTBURXB2VTB3dlRIZFRjVVJFUlhGek0yZGpia2xEVkZoSVQzYzVZMmxqZGpaRmNFcGtlamRYYjNGR1FWTm9LMlJIVERaU2VVUXdRamMxYUdWNUNqRXJLME5HUVdKYVFYQlpkSFE1TUdkVVNUQnVXWFp5VldocGJ6aFRVMG80TUcwMFZrbzRObFI1T1dGbFNHMTRlaTlNUTFSUGRtZERUV3N5WlV4alZVd0tja2hhSzB0elVVOWtNSEl4TkRKdGJUaEVPVFppTmtwb1FsWkNlamhuVUhaSllUbHhXVmM1VFhWM1NVUkJVVUZDYnpCSmQxRkVRVTlDWjA1V1NGRTRRZ3BCWmpoRlFrRk5RMEZ4VVhkRWQxbEVWbEl3VkVGUlNDOUNRVlYzUVhkRlFpOTZRV1JDWjA1V1NGRTBSVVpuVVZWQlRISnZLMWR6ZWpGQmJuZFZSRmg0Q2sxT1ltRmFjM0p5TTFKemQwUlJXVXBMYjFwSmFIWmpUa0ZSUlV4Q1VVRkVaMmRKUWtGR2EzcE9aWE55Wm00eVVVRnVOR1U0U25wSlpYTnJSRlJJVVZBS2FEbFhTMDFsTlVkV2MwdFJNRFZqUlRsWWNqWmpSMDF3VEV0UGF6aFhlbnBuTlRsVllsTjFRa3hHWWpkYVZuTm9UelpDV0hFeE5IUkhSMmh5YXpsR2VBcDRRaTlFUm1kS2FsUTVjbXhQYzJ4eVduSmtNVXhZVFZvMlRqbFdjVlpyYjBONFR6QjBhRUoxVUZwc1IyY3JMM0pVY1M5RldWWTFkVWhTTTFObmMzVXlDbVUyWVZGTlpEZGplR1JNTTNOa01UQkhWazVHY0dSVFVVbDVOVGRDT1hVNFFXRktaMjVxUTNKNFJ6UlpWMk5OYW1ZM05FOWFibklyUkRkUVZqSkhla2NLYkZoQ1oxSjNZMnQzT0ZsSFZYVnliRmxVZFU0d2JVWkhOMm81VW5oelltTm5hMHhETDFWVmVFZDJORlo2Tmtod2QxWjBXV0pVWVRsSFQwaEhjME5KTlFvNE9HUTFNVmN3SzFCbksyVllPWGRMTlV3NVRHZFhjV2RETTNCQ2RFMVFabU1yU3pRMFJrTTJiVlZsZVdoQlkyZE5RMncxUmxGTlNuRTBjMVpKVG01SUNuQklZMHQ1TUVkbWJEQnZOM1lyVHpCMFZVeGlOSEk1YWtreVdVTkZUWEZEZEdwbE5HZFVhbTVIUWtGNFJERXhjVmxqVkdsR1RIRjVjVlJvUjBGRmFHMEtUWEIzY1VOSFQydHhiMGx2Y214bU9VNXVRbWxUZDFsekwyVkVVRUpDVmpSWlJFSlJka1pVVm1WTk5URnRWamxJV1VwTk1WTTVOVFJJTW1ONGEyUnNWd3BHUmxoNWVuQkxlbmhsTTIxWU0wZFFhMGxhZDBKdGVqa3ljSEZ3YjFKS00yRkplVFV4Y0VSMGIzRmFTelJDVUhGV2JtMXZTRkZqUVc1dGNsRnBWVFJrQ25wdFpXOVZNMFZuVGpoWk5EQTRWakJTYUc4MU1YRjRia1JOVDIxUk9GRnZibXBFZHpCaFZtTTNSVTVJWlhkUWJISk5iMEZVVVhWTGNETldkV0pPT1hJS1ZGcFpORkkyVld0SVQxRkpkMk5LZVdSMFFXbEJiRWN5VW1JM1owOXdUR3N5UVdSRVNXbFBaelJVZDBOWlpXNWljMkp1ZEdGclZXOXFja0U0UlRsSk9RbzFNbVkwTmxrNFZrSlRSVVZxSzJJeUNpMHRMUzB0UlU1RUlFTkZVbFJKUmtsRFFWUkZMUzB0TFMwSwogICAgc2VydmVyOiBodHRwczovL2Frc2RvdG5ldHNkay01MzViMTgzYS5oY3AuZWFzdHVzLmF6bWs4cy5pbzo0NDMKICBuYW1lOiBha3NjbHVzdGVyMzAwNwpjb250ZXh0czoKLSBjb250ZXh0OgogICAgY2x1c3RlcjogYWtzY2x1c3RlcjMwMDcKICAgIHVzZXI6IGNsdXN0ZXJBZG1pbl90ZXN0YWtzcmc3OTc3X2Frc2NsdXN0ZXIzMDA3CiAgbmFtZTogYWtzY2x1c3RlcjMwMDcKY3VycmVudC1jb250ZXh0OiBha3NjbHVzdGVyMzAwNwpraW5kOiBDb25maWcKcHJlZmVyZW5jZXM6IHt9CnVzZXJzOgotIG5hbWU6IGNsdXN0ZXJBZG1pbl90ZXN0YWtzcmc3OTc3X2Frc2NsdXN0ZXIzMDA3CiAgdXNlcjoKICAgIGNsaWVudC1jZXJ0aWZpY2F0ZS1kYXRhOiBMUzB0TFMxQ1JVZEpUaUJEUlZKVVNVWkpRMEZVUlMwdExTMHRDazFKU1VaSVZFTkRRWGRYWjBGM1NVSkJaMGxSV1c5SVlUQkdSVkpWYmpOSWVqUnhjbmh4UjFJNGFrRk9RbWRyY1docmFVYzVkekJDUVZGelJrRkVRVTRLVFZGemQwTlJXVVJXVVZGRVJYZEthbGxVUVdWR2R6QjVUV3BGZUUxcVozZFBWRUY0VFdwT1lVWjNNSGxPUkVWNFRXcG5kMDlVUlhoTmFrNWhUVVJCZUFwR2VrRldRbWRPVmtKQmIxUkViazQxWXpOU2JHSlVjSFJaV0U0d1dsaEtlazFTVlhkRmQxbEVWbEZSUkVWM2VIUlpXRTR3V2xoS2FtSkhiR3hpYmxGM0NtZG5TV2xOUVRCSFExTnhSMU5KWWpORVVVVkNRVkZWUVVFMFNVTkVkMEYzWjJkSlMwRnZTVU5CVVVNMVIyWXpNMmRFUWpKMFkwdGxkMUkzT1U5VWJsRUtTbXgyZEdoemJHcHJha2hCYUhCaGRUSkRjRmx1TVVNemF6UjVPVGhITDJkUVIxTnJUMUZ1VjB0T1puZHJiVlJaY2pkdlQyVnVXSE5RWjBGRlRIVldUUXAzWjA5RllUQmtabmxpYm5ka1QyMXJOMUI2WkZSa0sydEljVmxpVDNWblkwSlBXRTVXYVRRd1prRmhhMEZIZURSVVJYUnVhM1ZaTkVSck5FNUtNVTlxQ25aaVlYSTVUblo1ZUhwbk0wTkNTVFoyWm1kdVdYQmxXRWRFYVVSTllrd3dTbEZaWm0xeVR6Z3ljbFF6YnpOdEwwSmFlVGhpVDBaNVJGWjJaRUY0VUVrS1dqRTViMWhHYmpkMVVsVjNSVlV2ZEhrcmJUWk5ZeloyVkM5NVNIbEJXa1poUVdSbE5uVm9iMGxWTWxabGRFOVhNRUphTWxKM1MwVkxTSE40VUc1WFZRbzFTazVpVmxndmF6TkVZV3N6YWs4eFpXWlpUMEp1V0dORVJ6Wm1VR2xzY1M5aGJtRjNNVWxGVTBKVGJFeENUME4zZFhsSGJUbFpTMGh2SzFkdFIwNUNDbFYwVERSTlRFTTVSVU5sTmtKTldVdFVaRXRVVjI1MllVNTBXa0pWTkhWaVRFNXBNM0YwVFdGdFNsZE9hWEpWSzNZd2VITnFXUzgwVVhGc1ZWSnBhRGtLUnpSWlRERnRhVFJUZWxCcUsyWTBTM056U25Fdll6ZFhZelZLZG1OWlZtcGxRVFYwVFN0MU1XVmtURFJOTTFsWlNVSnZTVXRhUXpNeFVYaEhkVEV3Y0FvMWNUVm1lV1pCVld3dlMxbFpSa3hFWmpOU2FIWkplalpOWkc1UFNIcFRUMjlNTW1GaVNUUm9OVFpXWXpOU1MxVnFTbmxWVFV4cWEwTjNRamxPV25OcUNrSnpjM0UxVDNaaU1rUmFlVVpNV2t0Wk5XbEJielJwY205Wk9GTmphM1Z1VkhGSE1WWkJlVVZFTTNSR1kxSkNZaTkyZW1GR1dGZFdWbXBOUkdOdE5qa0tUMjlKWlhCeE1YWnhTV3g2UWs5Nk5FUnBiaTlhTjNGRGRYRTBPVmRHU1VoaFRVcFhTa1owU0ZKUldIZERWVkJRVFdzeE4xWjJjMWwwYWxoV1NXOU9Vd3B6VGpWeE9XYzJhbTFJUm1GQ1RWa3hVVGw1ZVVKUlNVUkJVVUZDYnpGWmQxWkVRVTlDWjA1V1NGRTRRa0ZtT0VWQ1FVMURRbUZCZDBWM1dVUldVakJzQ2tKQmQzZERaMWxKUzNkWlFrSlJWVWhCZDBsM1JFRlpSRlpTTUZSQlVVZ3ZRa0ZKZDBGRVFXWkNaMDVXU0ZOTlJVZEVRVmRuUWxGQmRYVnFOV0Y2VUZVS1EyWkNVVTVtUlhjeGRIQnRlWFYyWkVkNlFVNUNaMnR4YUd0cFJ6bDNNRUpCVVhOR1FVRlBRMEZuUlVGclZVNTFhRVoxT0VkeldHbE1SbFIyYURSR1FncElVWE00WkdoWlNITXlORmxVZG5RNE0zazBXRkEyY0hGVmVWSllZbnBvWTBwT05HMDBkV0pOUTJSQmQwcFhaRkZZV2xWU2NWbHVOMHQwWjNoSWFHOTJDa2dyUjAweVRsSkVhRzV0VTNkNGRVeGFVbWxDT0dGUFYyNWhZekZMVVhOTFNEaHpaMU13UVdwbFYwdDNZVmhTYzAxM01IZHpRbFJwZHpCRU9VbGhiRFFLTVVVNVpYZHJVbkZLU0VJNGIwbEROVlp4VVRoWVVsQndNMWswWVZoWGRESktNVUZHUkU1ek4zUmFTRXd6YVd0U1ZEQmpNbmgyWlhWNmJWUm5WMFJuY3dwaGFFSllZM3BVYTJkTlQydExSMnhyUzFCbEsxaGlaR2RoY1ZaWE5VVTNPVkpNVG5SVVZ5OXZXRTl3YjBGcE1EaEJTSHBXZGpWNmFHZHNTazFuWWxGUUNqbHhWV1JIWmt0VVZsVkdVbVpZUlRsbWFVVXZZVXRtVjNKc1RIRnhlWGt5VHpsbllYTlRTV1ZHTW01RE5rUndPWEU0YTJocGF6WkVkRTlVTXpWdmQyb0tlak5hU0dwdmNtcENOMHgxYjJGbU5UVndSR2hKYVZoRWMwUkxaQ3R0WW1seFZEQnRTa3RxVW1zMEwyaHlWaXRPV0V4dmIwMHJLM05EUzNsek5GRlRZZ292Y1VsWVlYbHlVbE5NVlc1NmMwbExUbWxLWmtwNlEzcExURUpJYmtaSlpERXdXWEpGT1ZKSlpEWkhhV3QzWkVremRYaHNPRFZsTjFCS2VXeHNkR2swQ25GSVltaElUeloyYWpkWmIyZ3pabHBWVGs1V2FrUnpabWN2T0RoUVRFSlJUV295ZFZSVVNVbG9iSEZyU0Zsc1lWUXZSamwxY1RGMlQxcFpXRmRYWjFrS2NsWXpOemhHY1RCWVZVTmxhelJqYjJGSlZFaE9iMmR6V0RSbWJGWkZiU3R1VldKTFYzVnNSMnh6V2tGVE5sVnRkVFEyT0UxS0wybHRRMGswV0U5WVRncFZVblZPZVhKMlVTdFVNbGx1VVdKMGNVTXpiMGh0Y1RkNlowOU9SSFo2VTBFMmNEZGllVVIyYWs0eE0yRXpNamhqVlRWM1JERXlMMUYyVWs5YU5XZE9DbkY1U1hnMmJDOUhjRFJXU2podk5VMVRSbXh6YTNwWlBRb3RMUzB0TFVWT1JDQkRSVkpVU1VaSlEwRlVSUzB0TFMwdENnPT0KICAgIGNsaWVudC1rZXktZGF0YTogTFMwdExTMUNSVWRKVGlCU1UwRWdVRkpKVmtGVVJTQkxSVmt0TFMwdExRcE5TVWxLUzFGSlFrRkJTME5CWjBWQmRWSnVPVGswUVhka2NsaERibk5GWlM5VWF6VXdRMXBpTjFsaVNsazFTWGgzU1dGWGNuUm5jVmRLT1ZGME5VOU5DblptUW5ZMFJIaHJjRVJyU2pGcGFsZzRTa3ByTWtzck5rUnVjREUzUkRSQlFrTTNiRlJOU1VSb1IzUklXRGh0TlRoSVZIQndUM280TTFVelpuQkNObTBLUjNweWIwaEJWR3g2VmxsMVRraDNSM0JCUW5ObFJYaE1XalZNYlU5Qk5VOUVVMlJVYnpjeU1uRXZWR0k0YzJNMFRuZG5VMDl5TXpSS01rdFliSGhuTkFwbmVrZDVPVU5WUjBnMWNYcDJUbkV3T1RaT05YWjNWMk4yUjNwb1kyY3hZak5SVFZSNVIyUm1ZVVo0V2lzM2ExWk5Ra1pRTjJOMmNIVnFTRTl5TUM4NENtZzRaMGRTVjJkSVdIVnliMkZEUms1c1dISlViSFJCVjJSclkwTm9RMmczVFZRMU1XeFBVMVJYTVZZdk5VNTNNbkJPTkhwMFdHNHlSR2RhTVROQmVIVUtibm8wY0dGMk1uQXljMDVUUWtWblZYQlRkMVJuYzB4emFIQjJWME5vTmxCc2NHaHFVVlpNVXl0RVEzZDJVa0Z1ZFdkVVIwTnJNMU5yTVhBM01tcGlWd3BSVms5TWJYbDZXWFEyY2xSSGNHbFdhbGx4TVZCeU9VMWlTVEpRSzBWTGNGWkZXVzltVW5WSFF6bGFiM1ZGYzNvMEwyNHJRM0pNUTJGMk0wOHhiazlUQ21JelIwWlpNMmRQWWxSUWNuUllibE1yUkU0eVIwTkJZVU5EYlZGME9WVk5VbkowWkV0bFlYVllPRzUzUmtwbWVXMUhRbE4zTXprd1dXSjVUU3RxU0ZvS2VtZzRNR3B4UXpsdGJYbFBTV1ZsYkZoT01GTnNTWGxqYkVSRE5EVkJjMEZtVkZkaVNYZGlURXQxVkhJeU9XY3lZMmhUTWxOdFQxbG5TMDlKY1RaSFVBcEZia3BNY0RBMmFIUldVVTFvUVRrM1VsaEZVVmN2TnpneWFGWXhiRlpaZWtFelNuVjJWSEZEU0hGaGRHSTJhVXBqZDFSekswRTBjQzh5WlRabmNuRjFDbEJXYUZOQ01tcERWbWxTWWxJd1ZVWTRRV3hFZW5wS1RtVXhZamRIVEZreE1WTkxSRlZ5UkdWaGRsbFBielZvZUZkblZFZE9WVkJqYzJkVlEwRjNSVUVLUVZGTFEwRm5SVUYwVWs5dlZIbGpiMUZtYTNSdGQwSjRkMGRpY2tZMlZuVTJURFpwTlV4V2RqRnNabFJ6VG1adVJsTjBSbGN4UlUxeVowMDBZbkpUYkFvdk9FZE5lbVZVUnpKeFJtSTFiRFpEVGxGbE0zUktVWGxxSzFWUmFrUmhRVWRzY1ZsVFEzbG1jVmwxTVhoYVNGSkVUek5TYVd0M2VGVjRTV1JZYzNWeUNuY3lVVGRpZW5sc1oyMXhibk5yWkhkMlRFbEpXbGMwV2tSUFZXSXZWMHh4UVU4MVdTOVFaa2hHYnpkbGVHNW9keXR3WVVsc1ZtTnpZMkYwT0RGVWIya0tPREptZW5wU2VHNVVTbkYyZW5nNEsxcFdXbVZrWVZJM05sbHVTa2xLVGk4d2FXZEhTSGx5UVdZelZuZExPRVF2ZEZKYWEybDZlRVZZZEVKbE1HbGphUXBxYzJobE9IWTRhRlp6YjBKck9XVmtTV0ptTVhwcVQwd3dTRU0xZEdnMmJIbFJUM0pUWTJacU4xRlZlWE5MV0U4dk5HeDVXWGRKUjJSbFNIQjNja1JGQ2t0VE5VdFlZMWhzTjBjNWFEVjBiWEJoVlZkd04yUjRXSFUwY2pSRVNsTm1jR0ZPV1c1VVRrbDJRM0E0V0VaMFQyZzNhRmRxWkRONVNFMTJXVVlyUkRVS1ZYWnhRVkkwWkVVek5XdElNVXBzY1hRekswRmlTRVZWZW5sb1oybFRVVkJPYkN0Sk9WRkNWQ3N2YlRobloweFFaSFZuU0UxTFRGZ3ZiR1JHYTIxYVR3cHhOMnAyV1Zsc1NIZDFaWFZCUzI5d1pWUkVZM3BPZUcxMmRuSkVNVFJwZDBkSlFVSjRUemxpUzNSc0t6Z3JiRkJ3VVhsbmRUSk1XV1JrYlhkMlVWbHVDa1FyVUdNclpraGhTVWR4U0U5UGRUZzRVM2t2YmsxVWJsRmxiSEJRUTI1SFkyMUZNRUYyYzNOTE9YVnRhV3d5WldWQ1l6bEtUSEpCVFcxclZYTkRWR2tLTDJkaVQwcElTRUZzYTFSYVFVUTBhVms0VERaR2RVMTRVVnBTUmpkMFZqa3lSRFJyVDNOdVIyMWhRMnBzVGtsNEwxSjRNVVZLTVRWSE1HRTRUamx0YVFwTVVsVlBlUzgyYTB0VVUyUlFSVlU1ZG5WQmIydHpkSEpyTmxFclptRlRObXM1YzFCcU16SkVValpYVDBOemNVeFBRVVZEWjJkRlFrRlBaMjR3VWtsYUNpOXVjVFY2V25SM1JEQklMMmQzVm5ScGJYaFpVamswTkRWUVoxb3pVMUZrWjNOdlZWRXJNVTV0TDFwRVkzUTNWV0ZDY1VkVlZFcGtlV0pxZVRaNFlWSUtWVzExZUhGQmQyOUxNSE01WkdKaU9XTjBlR294SzJwU2IxbFVibnBvVldoVk1XbE5VbTlGTlZkVU5WTTFjVEJwZG5FeFJ6Wlpha2hJTVZobmFscDFjd3BqV0dGdmN5czNLMlJuYkc1V09FTlpPVk0xWTJaM2IyeGhabVIwTVRCaU5HY3dWVlI1VVdoelpFMW1lR1YwS3pFMlpESnhWMjVIYzJGd2JYcGFlRkZ0Q2tGT05rbFFZMnRrVTFRekwyWnZia2x6ZEV4VFRDOVJSemhQUzI5SU0wRmlWR2t5VjB0NlZFRlZVWGRVU2t4d1RuQXhiV2RJVFRSQk0wd3lPRzg1U1dRS1MweHVielJRTkdWUGRtWnphMnM0UlVWbVkyVjFTMGhDY0dOcVdIY3JOWFpqTlVObFNIQldWbTE1VWxsT2JHcHhUSGg2YXpCemVHWkpabE0zWWt0V1pRcGxWMFV6VG5KWVdGVjNhMnhYUjFWRFoyZEZRa0ZOZDJNNVpXNXFWMElyV1dsblRFTTBabWwwY2xabFRqY3pOVmRaYml0dVUwOTJTSGxFTUhCUFVHUnZDbUZHY0RjNWFtWnBVVmRPWjJWWmFreGhOWGRTUTFKeVRHWXJTa2h2WVV0dGRYRkVhRlV4TURaUEsyY3hRbElyZEU1eE5ucE9WR2d6U0U1S2JWY3dTbXdLYjFwc1FUTllUMjlqTTI5eVlWTXllWFZwV1dReU55OWlOelJHU0VsYUwwcGlOMDVLV1RGa0wybElPWEJsYkhsd1prSXhiVGx1UmxWU2FrOXVRVmx1YXdwUVZqaFJZVFZrTlRKdWJrVTFNa0U1VVZrMlMyeGtia0p0Um1STWRqVkpUM0JpY2tFMlVuVTFVRGR5WVRSdmNpOUtaWGRSVjJVdk1HeDZSbW95Uld4bUNuSkJSelkyUlhOQ1JsaDVSRzlxYm1aMlZXcFpPRTk2U0RKcmRWbzRPVXBTZFVGTVltcDFMMEZvZDNGV2NsaExWRlZTWlZWcGFYVmFhVXh1ZFZGRFNWb0tNVGszWVdoaVIxcG5ibGxXUkdFMFJqQlJVRFF2Y0VobWNqRlBkRmxEV1c5aE5XZDNjaXR3UW5sVFJVTm5aMFZCVGtKSGVVZzNaelo2YmxoaUszRXZkd3BxUTBoME1XZHlVMnREYUdkMmFWQlBibmxNVmpaaFRFRXdaV2R1YzBKTVNFWjZNMkpvYzFSdVRVbFFUblJHYXpaNFJVOW1ia3RyZEdKclFXcGhPRFpoQ201Nk5rTndNamxFUlhSR1JpOU5OeTk0YUhCcWNUTlBWa05RWnpGWVFXaHllbk5IZWxGVlVGbDBiVFpCVGtwQ1RXOHJkRUZrTldvcmRtUnNjWFZuUkZNS2IzQjBUMGxGUm5WU1JqWXdhelppSzJ4SFRreGtTSGxMYmt4VGNWVjZlRmxIVUhjNVZHVXlNRXhYV20wNFRGZ3lSblJGV2todWFrUnRlVmM1YW1Rd1J3cHlNbEZrYTI1UE1GQXZjWEZxVEZnNU1IbG9XVWhOU0ZSRlFVSjBXVzFDT0VSU1VrTkhXazFRU2s1bU0yWm1SRTVyWWxNNGJsbFRlWFpNWmxKMGN6QTJDamx3TlZZeGJXdFpVMjB2VjJjeGF6Sm5UWGc0UVc0NU1qQlJibFl6UkV0bFNVWkhNSEJ6Tm01clNHZ3lSM2xhTDB4REwxcFdNa2hSU1ZwRVRITlpPVUVLTjFnd01YcFJTME5CVVVWQmVIZ3hTbFk0ZVV3emRXRjZWekZaTld0d2JqWnBNM0pQYzNaUllWTnRWWEZaWW1kWGQyNU9RVTk2YjBNNGNVbFROSGhyTkFweFNGVnZiV2xYTWpaQ2VFZFJXR3hpVnpaYU9Vc3ljSGxxVW1KRFpVTlBhVFZVWTNwMFJqaEtRbEYxVmxVeWRpOUdaRVE0U0ZveEwwMTZNWFo1Y1M4NUNsWnhVMkZwYUZoalQyVnlUM2RET0ZKVFdTOVhXVlZZYTFSWlZ6a3ZNVVpQUjNRd1QyNVBOVXBSV0ZZM01qZHdWMk5ZVkhSeU1VdFVLeTlVVFhkSmQwTUtZMDRyUVhoM1ZqWjFhell2VDBKdUwxQnpiVXRNUkZaV2RuZFZTbGxvTkc4MlYwMHhkRVp4U3pVcmNHSnJhRmROYlVsWVMweEhia1ZLYW5aeE9UWkJjZ3BGWW1odWRsRldhVnBZYjJOTVUwRlpPVGM1VEdReFVqUnhXRVE1TUhsNVFtb3ZXRXh4WjFoRlEySnFRbmRTTmxwdWNXVnZjMHAwT1ZaemVtUjBkemhHQ210aFQyZEpTemxVTkhkbk0ySndOVVJNZFVodE9XUktaMmMyY1dKTlZ6ZFVaMUZMUTBGUlFYVnBUekYzVkVwcVJtaGhiWEF6TVhndlRWZGFiM1EyVTFvS2JreERWRGM1ZWtKSWR6ZzFOR1ZKTVdJeU1ERm5OWGhTYjNWU0wwcGxXa1prYlhvMFpreENjMnB0ZG5GU1drZGtkak5TTHk5MmRGQmFURFJSVUd3eFpncDFWMEoyVjNGTGRFaFNhRkZxVVdkUVZHWnRlblkxTkZSUVIxTk9ORFp0UzBONGVFNTNjWFYwZEZKMVNtOXdjR3hWVGtSNGJ6QkVSRGx3U3pKeGNIRk1DbXRPYVRaNlRETnVaRGd2TkZrNVkySjNWMmR2VjFKb2NFUmlSMGsxZFhSRlQwWmthMGs0WWpSV2QyRmtkV0pQYm5kUEwzSkdiMU40TVhOb1owTlNNWFlLTUdKbWVVZFROMGRTYTFKUE5qaFBOREZVUVd4MmRWbE5ZbGRpYlRCd1V6VlNRVTFMYUROM2QzQjFOVFZyYjBoc1dTdHRVVWhNWkVReWRVRnliMjF6VEFwNFYxTlpjSE5PUkcxRlpVRnNTRUZxUlVJeFpqUnRaVWhOVjJRMlVVSnRaSGhYYldGd1EwMTBPVVJKTVVsMGJYRlVkVXBpZEdSSFlXNWtRM0lLTFMwdExTMUZUa1FnVWxOQklGQlNTVlpCVkVVZ1MwVlpMUzB0TFMwSwogICAgdG9rZW46IGFkZDg4ZmVmNGUyZTM5YTk5ZmI4NjMyZDg3NTUxMTNiODJhNzg4YjRmYjU2YmEwZWZiODE0YmI0ZGJiZWViZjFkMjA0MjI0ZmVjOWI1MGJkZjM5MzFmMTI2NTdmNzNkN2M0ZDUwZTdkMWQwOWI3YzU4YmI1MmY3OGQyMTVjZGQ4Cg==" + "value": "YXBpVmVyc2lvbjogdjEKY2x1c3RlcnM6Ci0gY2x1c3RlcjoKICAgIGNlcnRpZmljYXRlLWF1dGhvcml0eS1kYXRhOiBMUzB0TFMxQ1JVZEpUaUJEUlZKVVNVWkpRMEZVUlMwdExTMHRDazFKU1VVMlJFTkRRWFJEWjBGM1NVSkJaMGxSVFVOWWVGaFRZbXhWVVhwTlRVNUhla2s0YUd4aVZFRk9RbWRyY1docmFVYzVkekJDUVZGelJrRkVRVTRLVFZGemQwTlJXVVJXVVZGRVJYZEthbGxVUVdkR2R6QjVUWHBCZVUxcVFYaE5SRUV6VFVSV1lVZEJPSGxOUkZWNlRVUkplVTFFUlhkTlZHTjNUbFp2ZHdwRVZFVk1UVUZyUjBFeFZVVkJlRTFEV1RKRmQyZG5TV2xOUVRCSFExTnhSMU5KWWpORVVVVkNRVkZWUVVFMFNVTkVkMEYzWjJkSlMwRnZTVU5CVVVSTkNuaGhiRXg2U1dRd2FtZHpjV0pJUzJSRFppOXhUemRwUW1Rd1FYRkVUWEJyYld4aVpWaHRVMHBoYm1Fck1tSjNjRnBXTUUxR05IcEJVakY2ZVdSWmIyc0tNM1JFYkVKd1QxUnlXakoxYkM5cWNFbEpjVkJtVFhoaFNEbFBPRUp3U2sxT2RXTjNVRU5zY2taNE5VVnZhRmhHU1cxWmIwcHFSa0pFWVcweVZtTkJTQXBWT1VGQ1MweEVMMlJvWWtGWk4zaG5kM1pCV1Vsb2MySTBVV2hYYVM4NWFGUlNUemh1Ynpab1FYcEtPVVV5VXpsNE1VdG1XRE5QUlROclUzUk9NVTlSQ2xaNE1GaEJURUV6ZWtoVlIyUnpZMXA1UjA1NE9HdFhiMVoyT1dwV1ZpdFFLMlYxWkUxd09FUnZZU3RwWkVSSFEwb3dPVlppU2t3eUswZFhRVnA2ZFdzS1ZuQlplQzk1U2k5cU0wUXhTMnBXZEVoWGNYTkRRVE5QU2xsWFRIQXZXVVJoYUN0T2VWWTVSU3N5UjJnelJYbHBWWEkyYVVoV2NsbFlNRkZMT1ZKVE5ncGFhRVZ1WlhKbmVuZGphWEZHTVZGRmFYcHFVa2RGWWxOdWF6UmlTemxFYUZoRWJsVTRNMDltYlRFeGVtSnRTMUJsYTBWRVMyTndiMjFvYzFSaFdURXpDa1JuYVZweWVUSjZXV1JCY21KM1V5c3pOM0J1VFM4eU1tTndTM0ZJVWxadFlsRm5hbE54YjBWMGVsQkNOVWdyUTNsQlEwTkxObk5NSzNJclFWZFpXVmdLVm1wbWRsWTRVMW92YUM5RGNXaDZWV0pyWjBWMVdIUk9VbkIwYldoNVlXMU5jMjFTVFhaSmExbzJiVnAyVEhsUk5tZHlNMFU0VVc5Rk5VUlJhR2RwTlFwYVRsYzFkVzFCZG5ORlZtRkxXRWREZEV0TGF6WlZjSGxuU1ZBeVRGVktNbE13WjB0U04ydHFhbmx4YTJGYUx6bExabGxIYlRnNU9FVlZLMDlEV1hsaUNtaGFiVlp5VUhKaVRVNVdlVE50Y0RKR1JYVkxZbVZ5ZURWdVNEWktSV3B5VVcxWEszSmllbFZUVkVKMU5FaFNUa3QzYUN0UmJtMUhiMnBqYW1aSEszUUthRGhLWkV0aFNFWnpVRWt4YUVoMk0yOXdNbmxyUzNvM1JFTkZZU3R3T0hsNVkyMHZTazFTZHpWM1NVUkJVVUZDYnpCSmQxRkVRVTlDWjA1V1NGRTRRZ3BCWmpoRlFrRk5RMEZ4VVhkRWQxbEVWbEl3VkVGUlNDOUNRVlYzUVhkRlFpOTZRV1JDWjA1V1NGRTBSVVpuVVZWc2NIQjFaak42YjJWdE9VZ3dSelpTQ2pCTFVtRklWSEJaUkhaM2QwUlJXVXBMYjFwSmFIWmpUa0ZSUlV4Q1VVRkVaMmRKUWtGR1JYSmhObFp1YlhKdGVGUnpheTkyTmk4eWNtMXdXVkpUVDFvS1RXUkRLMlp2ZEdad1FUWnVlV0ZuTDBkRFZHVlBhMFJwYzBkQlVreDVjbFZRYzNVdlNFVlhhMmczV2l0aFRsRnZRVE5hZVZjNGNFRnhVVTVPSzBkd1ZncFJRamx2TmtkVFZrdE5SMGxvUkZablZWVlNUelIyTUVZd01WcGxNMFl2UkVsT2VXaG5Va0pEYlRaTWNETndNall3ZGxrd1owaFpkREJ4YVZoRVRrSnZDamhxVW1FNVJuSjVXRmN3ZHpsRVMyTkllRkpsVVVjeU5HMUlNMlZJTTBWUVFtcG1RVXhCTWpWYVRWRTNhMjR5VUdsWlpWY3ZNbVJQWkhGR1FYTXZaRTRLZW5KaFUwWXhTM05YYUdaMFMwcEpVemhKWm14R1NreGhlV1kwV0RsV1dYSm9kRFZQVm1VcmVFcHpXR2REZDNvMVlXZGtWbGMwWlZFd0x5c3dRalp0TmdwdkswMDVUVXN4YmxKa1Z6aExNVVJ1VDJzclRIQnZOSFIyTkROT1NVdG5PWFZzWVVab2JUQlplRVZSVFdrdlJHeGlMMnBoVjA1eVRtMXRaR1JhVFVjMUNsZHhiSFJaYVZOWlIxSXZhMmd4WW5CRVZ6VkxVRVk0YlZkWFMyVm5ORXhDYkV4NGFtbHZSWHBHTVVwdFNXYzBTMU5tYVZGWWNuRkdWVEJDVmxORVIyOEtObXRYVEV0M1lXSjVNWE5yUVVOTmJsVkJTbFowUVZCaWJXUkZhVkpqU0RadFpsUTFWV0ZuU0V4V01WSnZNSGxwY0Vac09TODFOVUZ4YVdrekswZFFNZ3B6VEV4SVpXeFJWMDVMWlVnNE4xWkNMMmM0T1ZOM2FEVlFORzk2VTA1dGMxUlFkMjVsTlRrd01FTjFSRzlKZVRNM2FtRmFVVkoyUkVwVWFXSmFXa0YyQ21sa1JrTkJSV1pDV0RVelkweGtabll4SzB0bk1ubFZWekZNWVhSNWVXNVhWRWhUU2tKUE1uTTNNSEZaVUVWRE5sVkNVVzFxVTBvMlJtMWFkalpYVTBnS2NESkthbEpMVlc4eFIwUTNaM0JQYzNCSE55OVVkbUoxTTB0cGRWVjRRek5tYzBodllVNW1aSHBET1ZKTFQwaDRTbTE0Y0hNd2NXeE9lVGxUYldaaU5RcDZWamx0ZEhwMk9UTlBNSEF3UjNSbkNpMHRMUzB0UlU1RUlFTkZVbFJKUmtsRFFWUkZMUzB0TFMwSwogICAgc2VydmVyOiBodHRwczovL2Frc2RvdG5ldHNkay02YWI2MDRlNS5oY3AuZWFzdHVzLmF6bWs4cy5pbzo0NDMKICBuYW1lOiBha3NjbHVzdGVyOTk5MApjb250ZXh0czoKLSBjb250ZXh0OgogICAgY2x1c3RlcjogYWtzY2x1c3Rlcjk5OTAKICAgIHVzZXI6IGNsdXN0ZXJBZG1pbl90ZXN0YWtzcmc3NDU1X2Frc2NsdXN0ZXI5OTkwCiAgbmFtZTogYWtzY2x1c3Rlcjk5OTAKY3VycmVudC1jb250ZXh0OiBha3NjbHVzdGVyOTk5MApraW5kOiBDb25maWcKcHJlZmVyZW5jZXM6IHt9CnVzZXJzOgotIG5hbWU6IGNsdXN0ZXJBZG1pbl90ZXN0YWtzcmc3NDU1X2Frc2NsdXN0ZXI5OTkwCiAgdXNlcjoKICAgIGNsaWVudC1jZXJ0aWZpY2F0ZS1kYXRhOiBMUzB0TFMxQ1JVZEpUaUJEUlZKVVNVWkpRMEZVUlMwdExTMHRDazFKU1VaSWFrTkRRWGRoWjBGM1NVSkJaMGxTUVV4V1ZqQjFZblpZVms1WlRIVnNhMmxVWmxKdk9HdDNSRkZaU2t0dldrbG9kbU5PUVZGRlRFSlJRWGNLUkZSRlRFMUJhMGRCTVZWRlFYaE5RMWt5UlhkSWFHTk9UV3BOZDAxcVNYZE5WRUYzVG5wQk1sZG9ZMDVOYWxWM1RXcEpkMDFVUVhoT2VrRXlWMnBCZHdwTlVtTjNSbEZaUkZaUlVVdEZkelY2WlZoT01GcFhNRFppVjBaNlpFZFdlV042UlZaTlFrMUhRVEZWUlVGNFRVMWlWMFo2WkVkV2VWa3llSEJhVnpVd0NrMUpTVU5KYWtGT1FtZHJjV2hyYVVjNWR6QkNRVkZGUmtGQlQwTkJaemhCVFVsSlEwTm5TME5CWjBWQk1qUjNLMFJ3V0VaMloyYzNRVXhsVVV3NWNuQUthRFozUXpoWGRHa3JlbmxMUzFVMVNrMVJSWGszYW1OVE5qRm5TV1ZvY0RCbmFWQkJVREZxTlhnMFVtUmtSazF1YWxwTkwzVmtlbXB6TXpWUlNHSllaUXBzVkRSVVRVSjJkbTlaVGpaM2FrRkZVM05zY0dzemEzWXpValZJY2pGVVdVNU5VRVZKZEdSbU0ydHVjRWRHT1hjeFV6WnJZakZIT1ZaQ1dIUjNTbE5DQ2t4SmJXNUtaRUl5TDFGMmQwaEtkMU00Ym1KQmRWUlhaMEV4VGtSMVJuVnpUWFJwV25WUWQwSTFVRzVUVm5GNk1WbG9hMVUxZEZKelp6STNOVWR3V0dzS1NUSnpRMnBRTlU5RlZIRlNRV2RxUzFaTlRHeHBWMGx5V1hoMFNqbEphR3BXVDAxamJtbFRjRTUwWWtKV01WWjZaSFY0ZUdaek9FTXJhMDE1VDI1Tlp3cEVPRzVrWW1WYUsyVklTMFJPTVZkM00ydHdRa0kzYjFod2JTdG5iRzgyYkdOcFpFUmlhVTh2SzIxeFlsWkhTbGRTTkZaUk1HNUdhemh1UkVWT1lXSkhDamhxUlRGdlYwaFJiQ3RCT0dOYWNrOXZNbVU0ZDBKc2RHNVROemxxUTBNeFVYaEhTREpsY0ZwclRYcE1hMjFxUVROWVdFVmhabU42V1ZOR2QzUlVObk1LS3pKVFJuRkxiMGs0T1VOdVptRktNMGx0VVZSbWNVcDVZM0YzV0ZkVE56bDBabXMyVUdKdVlUY3hSR3gwZW1wSVpqbGhhMWRLYzFobksyOXRVRGR1WndwaFVWTkRhWGh2UlhwU09UZDRXV1p4WlZsRE16QmxiU3RqZUcwNGNFSjRMMEk0ZGpsTGJ5dHFRV2xSZVZGMGNpdEpXRVF5WWtFeWFISklSbmhoZGswMkNsZHhhR2xrYXpkU1VHUkRUMHg0WVdsRlVUWkdXa0VyY1Rjck1tVXdTV3AzVkV4clQwUk5Va2hJTlVoQk0wVklNV0UxV0cxSVQxWk1lVkpaU0hKWlVVNEtjMDFuUlZCTFkyUldZa2xGVkZoSE1scE5SVXRyVGtkTFYwUmxkazlzYlVsMWF5c3hXR04xVlVKaU16aEdhRmxqVldKQkwxVTNNMmxXT0d0WUwwa3lXZ3BaUnlzM1FraExiVFo2VWpKSWJqTTFTSGhhZDFaS1ZVTkJkMFZCUVdGT1YwMUdVWGRFWjFsRVZsSXdVRUZSU0M5Q1FWRkVRV2RYWjAxQ1RVZEJNVlZrQ2twUlVVMU5RVzlIUTBOelIwRlJWVVpDZDAxRFRVRjNSMEV4VldSRmQwVkNMM2RSUTAxQlFYZElkMWxFVmxJd2FrSkNaM2RHYjBGVmJIQndkV1l6ZW04S1pXMDVTREJITmxJd1MxSmhTRlJ3V1VSMmQzZEVVVmxLUzI5YVNXaDJZMDVCVVVWTVFsRkJSR2RuU1VKQlMxWktiMk5DY0RaWE5WRnFjbXN5YTA5RmRRcEZWRTlCWkhSbGRsWnhPVU5SVDJ0dmFVaE9SRkprWW10R2VFZ3dUMllyY0ROalZEbHJNazF1Ym1aSWJrOU9Oamt4ZVdWdVFYb3lSVXhCVGxKWVpWcE5DakZ2ZFVsWk5qWjZWMGxPUnpCek1FMTJXR1Z6VkZOa0syaHlLMGN3VEU5bGRUWTBiVnBPTkVscVdIUnBNbFZXUzJzdkwzazFkVmt6U25OWllXNUNkV3dLUkZOa1prcGxPVzgwZUd0SWREVldWMUE1TWtjNVJFTlhjMjVIVkdobWNrNVNOMEZRTkVRd1pYTk1LMEZLWTJSVVMzZEdVRVJWVWpGeE9GZzVZWHBpVVFwUVFreGxTRlZSUVZOTlVrUlROSFJQWXk5MVJXeGFTMHRxWVhkRWFWcEhjakZaU2k5UGMzWm1NVk14Tm1SU01VNWpkVVpMTkRka1JHZDBNSGxvYm1SRkNtNVlkWE14YWpKS0wwNVRhVTl6Y25RdmNUbDJiSEJwWTFRMlQyVjVORXBVVVZKbFZFRXpZbXhtUTNsMU1WTm9aQ3MxVVV0ak4yVnRaazRyT1dsNmVWY0thVzlFVlc4MGExZEpSWFZOWlV4SVlXNVhiV2haTW1VemVFVnFjMHN3Y20xc1RIZ3JZVU5WTkdGdUwydFBWMk12WlhKbldsSnFOMkZVY1U5MVZteEpMd3B4WmxselFrUnZSMEUyWkRSMU1WZ3lUM2xVVDNBd1dFaDVaR3RNYm5nNWRVWkZTemx4T0ZWVFNraFNiazVrVjNCYVQxRmliMW80WkhKUk5HUk1WR1V3Q2tWdWRVVklkekJFUVRWWWNtMXdRUzlzT1drM1JHSm1VakpuTVZaVVVsQk5kM1Z3TkhVMVVITTFTMGRJUkVWaFFWRkpjMU5VUzFweFNtUjFTemhTVERnS1NteDNjV3RXYzBsSGFHZGlSRFF5VW1oNFFsQjNkWHBsV0hkT1dEZEZXWGxFUTJvNWN5OXlLMkZwWlhoT1UyOXROR0l5UWxOMFRYaHFOM040U0RSak13b3hVekV6VVRRemFHdEdjblUyWjBSeVNVODBSekJpWTI0eVVWZDNURUZvZVVScVYxaE5iWFZOU2xaWk4wNVFkVXRKWldnMFZuaG9NVEJxVlU1Q1oyVlVDbkphVUVseVNtZzRSREJFTDFwalYxVlZNbXhrVWxFMVNnb3RMUzB0TFVWT1JDQkRSVkpVU1VaSlEwRlVSUzB0TFMwdENnPT0KICAgIGNsaWVudC1rZXktZGF0YTogTFMwdExTMUNSVWRKVGlCU1UwRWdVRkpKVmtGVVJTQkxSVmt0TFMwdExRcE5TVWxLUzBGSlFrRkJTME5CWjBWQk1qUjNLMFJ3V0VaMloyYzNRVXhsVVV3NWNuQm9ObmRET0ZkMGFTdDZlVXRMVlRWS1RWRkZlVGRxWTFNMk1XZEpDbVZvY0RCbmFWQkJVREZxTlhnMFVtUmtSazF1YWxwTkwzVmtlbXB6TXpWUlNHSllaV3hVTkZSTlFuWjJiMWxPTm5kcVFVVlRjMnh3YXpOcmRqTlNOVWdLY2pGVVdVNU5VRVZKZEdSbU0ydHVjRWRHT1hjeFV6WnJZakZIT1ZaQ1dIUjNTbE5DVEVsdGJrcGtRakl2VVhaM1NFcDNVemh1WWtGMVZGZG5RVEZPUkFwMVJuVnpUWFJwV25WUWQwSTFVRzVUVm5GNk1WbG9hMVUxZEZKelp6STNOVWR3V0d0Sk1uTkRhbEExVDBWVWNWSkJaMnBMVmsxTWJHbFhTWEpaZUhSS0NqbEphR3BXVDAxamJtbFRjRTUwWWtKV01WWjZaSFY0ZUdaek9FTXJhMDE1VDI1TlowUTRibVJpWlZvclpVaExSRTR4VjNjemEzQkNRamR2V0hCdEsyY0tiRzgyYkdOcFpFUmlhVTh2SzIxeFlsWkhTbGRTTkZaUk1HNUdhemh1UkVWT1lXSkhPR3BGTVc5WFNGRnNLMEU0WTFweVQyOHlaVGgzUW14MGJsTTNPUXBxUTBNeFVYaEhTREpsY0ZwclRYcE1hMjFxUVROWVdFVmhabU42V1ZOR2QzUlVObk1yTWxOR2NVdHZTVGc1UTI1bVlVb3pTVzFSVkdaeFNubGpjWGRZQ2xkVE56bDBabXMyVUdKdVlUY3hSR3gwZW1wSVpqbGhhMWRLYzFobksyOXRVRGR1WjJGUlUwTnBlRzlGZWxJNU4zaFpabkZsV1VNek1HVnRLMk40YlRnS2NFSjRMMEk0ZGpsTGJ5dHFRV2xSZVZGMGNpdEpXRVF5WWtFeWFISklSbmhoZGswMlYzRm9hV1JyTjFKUVpFTlBUSGhoYVVWUk5rWmFRU3R4TnlzeVpRb3dTV3AzVkV4clQwUk5Va2hJTlVoQk0wVklNV0UxV0cxSVQxWk1lVkpaU0hKWlVVNXpUV2RGVUV0alpGWmlTVVZVV0VjeVdrMUZTMnRPUjB0WFJHVjJDazlzYlVsMWF5c3hXR04xVlVKaU16aEdhRmxqVldKQkwxVTNNMmxXT0d0WUwwa3lXbGxIS3pkQ1NFdHRObnBTTWtodU16VkllRnAzVmtwVlEwRjNSVUVLUVZGTFEwRm5SVUYzYldOb1VVTnlkM2xRT1dsME5WUlVUVkI2U0RCeFNFZHFWakZKWWxONlJFeHBXWEVyZVVOVWNEUnVUM29yVUVsNFl6Uk9TVzUwYWdweVVGRjBXVXhVWkZJM1lXMUVSaXMxYVhWMVJVZEthMlJsWlVacU9GbFVaekp5VjNnM04wOU1hazB5Vm5veE9HWm9SREZJTWpaVlNGWnpTbkpITDFoS0NrSkJlblo2T1ZwclpETmtlbGwxUjBaTGVXdFhNalZFTjFWSk5YVXZlUzgwWlV0NGNEUkdSMnN3VFVOSGNXNXVjVEV4VldKc2FsbDRabVJ3TWpGVFRXc0tiM281UzNOcFZtZFZaVEpsTjNKc1JUTTRlSHBPWTB0aVFYbGFPSFEzZGpKeE1FRXpaMngyTkhOUVRqRnlZVFZUVERrNWEybGpTazVNZVVab2VUTlhOd3BFYmtaeFFVdDNVekJVUmxOS05XcG5UM0ZuTVdVNFRIRm9RVlZUS3poblJYTldOM0V4T1RaWFVDOVpOWGRsZGtGUU5GcFNhMDFtUWxNckswNXZiRWxSQ2tSRlVFNXdORU5yWjBGcUwxZDRPRFpZVFRKYU1VYzVlak5uYjB0dFEwTkVNekl4VUhKTVdFeFdjVXBDTUZaRk1XbFVhVEJoTXpVMlJtNHhXV3d3UWtZS1NEVTVjMmRFTlRGQ00yRlJkRVI0WVU0M2RFeDJRbTFsY1c1VVpXdEpkU3R1ZWpWelUwSlVObmhYSzFGNU1EZzVkMHRMYUd0YWIyZDZPRlZNYWpjek53cHdUWFp1ZG1zMFpuUjZXWFo2V2xkSFYwZHBSM1IwTDJocGRXdDBNbVY0UTB4cGVHWXhlVVZWYlZCdmJHOVFUa0Z1ZVVGVGIwMHlZMDVTVnpWT1RXdFZDa05aV0V0VmRISllVa2RQV25oWlkwWkZVVUl4V1ZOd2JWaHdhelJ1VVVaMmVWUmxjVFJITDBwQ09IVlJSV2xyVlRrMWNYUkphVGRWUjBOVVZWcEJlazhLTDBrd2RtTjVVbnBxTkhwUGNISnZRbmhRZHpFNWIwRTVTazl1ZURobE4yWjFNM00zZDI4NGEwVm5Va1JoWnpWWUsyUm9MM2hHWjBGcWQwTXpXRUZKS3dwTmJXZFFkVnBUYnk5aGF6WTBhRkJ6YzFwU2RHZFRabTlaU0RkQlFYUXJUa2RvTUZVM1dXdEJhME0yVWpsbWFEaFVNa1ZEWjJkRlFrRlBiWEUyTW5sbUNraEpkbXhrV20xWlpIWm5PR0UyVm5FNWR6bG5hRXR0VEhVdmR5OWtObEZKUW1WRGFtOURiRTlYWVc5dVVrcHZLMUl4Y0haVVNIZHVZelJsYVhKU056QUtZM05aWWxGSmFsTkRWVTlEZDBkT1ZtTXhVekJ4WlZWQ1RVSmFaRGQ0U0dkRVVqQTFRVFJMVVRreFZDOHhWakZuYlZrd1IwaG5XRk5KUzNsNFZHWkZWUW94Tld4R1dqYzNSa3BDTmtSNU4wUXdRVVZXU1RnNE5tRmhVeTlqYlcxRWFqaG1kRmMzUlc1RmJ5OTJVazVKVmtsU1RERmpZbFJvWkVseFEySnlZbVpQQ2preGR6QkdOVVZvWms5bWIzcGxSbFZyUVVWUlJWbDJhblZsYWpoRlEydGtVVFJHYVZOWE5tZzJUMFF2YW1KVlVrbFlZbnBxTVZrMmFVUk5lRmMzVmxJS1NFdFBNR3MxZGtaclJsRnplRUYzTUNzcmNYbHVPR1F5V2paUWFrMVhLM05ZZVhWalV6ZzRUeXRsWWpFMldtazRaVkoxTHpsR1RURjFZMDQ0UW05alF3cE5UMWhYTkdVM2VETlhkMnRXU210RFoyZEZRa0ZRUTBneU1XdHhUREpZVkd4V0wyUndTRWQ0ZUZobU5sVmljVkpKU2xCMU5sRnJSM05JVDJ0SVQzUk1DbUV3U2poaWNpdElXaTlHVVM5Q1pHTllNbVVyVGxBMFprcFdUR3B4ZEVRM2VqVlRWVGN5YldFNGIxVXhlRFpQTVRGNmJucERlazl0V0RjclFTdHBSa3dLTlc5Q1JrZGpNM1ZFVkZKNVJERTFhR2hPVW1KbVNscFNZblV4YVVKbWJWRldRbWhPVkZCeU15OU5ZeXM1SzFVelNIWjFjWGRqWWs0MFNWVm1aRGhEY1FwMmMxRlhaRVJJVEVkeWVXazFTR0pZUlVSMU5YY3hObTR2YTFwd1Z6RlRNa0o1TTA1ek1USlFWMFYwYm5wNU9XVkhUWFkzYkhkdE9YQktZV2MyVG5CdENuUTBMM3BGVERsbVFtSXpURGxpZGxvdlpqQkdhMWx6WkcweGJWSklieXQxZWs5M2NEVlJkRkU0YTB4NldsbEZSMUZ4Ylc1VVJqVXlSR2xQTkZreGVXa0tlbkZuTldwWk4yZFFORzR6WWtoV01sQlhhRXAxZVhWWlkyRjJZblpHVEU1MWJGVm9lbFpxVWtGV01FTm5aMFZCVURsSk4wMTRVRk5VUkU5RlFqQjFjQXBWZFhaT2VYZFRTVXhzT0VOWVVIbGFaamRCYlVWV2RGQnVObVZTVjNwaVdFeHhOVVJCYnpNMFJuazVTRU5NU1U0d1FVbFRiblF6VG1FeVlVOUlaRU5uQ2xSNGQzSlNMMXBUTldSUWFXY3pXSEp0U0VKWWJEazFSMDV5UlZnd1JsZG1LMFYwV1VRMFZVODJORWM0VDFsTVNFRmxVRGRyWkd4TVpXTlhTRXhKWmxRS09HSkhNWFJOVFhkUU4zaEtUM2xxV21sblZVczVWMUJOSzBGVmNIcEpkekEzWkdGaFRHSXdjbUZVTUZKYU9DdHZXVmt5YW5sUmVIbGhNME5sTjNwcWFRcFZUVlUxVm1zMGRXUjBkbGx5ZDJsdlFXOWhNazB3VTFjMU5GQmpOSEZoSzFsS1dITk5iMUpZVXpWSlEyMUdObk5VU3poNWFWUmtObEozZUZCT1RVTnNDbEo0YUdwQk5rdEdSeTlzYkhkeGEwbGlZVGRyUm1Ob1UzaHBjVTlYYVU5U1FtaEJjMjFXWTBKRVVqbEZjMGRYUVUwelFuZHdMMlJzVHpaSFVsaENOR0lLYVVOdU1FbFJTME5CVVVKUlNHRkNWa2RpVlVJMFRFTXZXbkUzZDFrM2MxaFdSbmhIYmxSS1VuTXJSVkUzV2xveVdHcEtNM1ZRTkRNdloxSlNZbFZQVlFvMFJtMXVWMnhCTkRKUFZVUjNPVWxHZDNWc1VtaEtOVWR4YW1vMFdIWkVjWEE1WjJkVmJVRnRORU53WVVGTksyaHNUVGczY1daR1ZIaHFRbkpLUTBKdUNqSktiaTgwVGtkRFptaHhTVmwzVm10emFVc3hWbTV3T0ZGaWMycFhUbWh6WTFNdlYzWkVOVzl4ZURaNVNHbzNjbVZIYWtZeGRHMUdjazFxTVVWUFlVNEtPRVl2VTNGYU1uaHNlRlphUVZCSGVpdEZTRUZtU1ZReGJqWTVablZZUVRaYVdrSm5RV0ZMVjNoMU1IWkNSMmtyT1RCbE15OHdRMnBDVGpSUFRVSk9WUXBtV1hkVVJIWkJTR2xCVWt4YWQyZHZiRU54ZFhoNFZtZHJReTlJVkdsWWVsbFBhblJUWlRKSldISTBWVTVLVWxCR05IRlpMekl5UVVsUVRtbHdTbFJzQ2xkdVJsbDVjRW96YlhnNWNIcFFVVWgyTUVGRFFVbzFVVE4wY0hJcksyNU9RVzlKUWtGRUwxQklja052U1VOT2QwcEVXVlJ3UjJOUksxVmhNWFZoU2pVS01XTklOMFIyTTNOR1JscEpORE14Um5KdloyaEtRV2MxZG1GRmNsWjNjVmhSTTJ0YVZ6VjFXbUV2TlU0MFpVOU5WbVJaTTNsd1ptVnRiamNyZDBjMEt3cHNXa1p0WjBKb1prcFNTbE5IUTBoQmFucFZZWEZPYVdFMmF5OVBRM0ZOYjFaMlEwTTFka0UzVG5oSlNtdG5VM0JIZWpSR1lVMVlSa1F2VUZOSVpEaHJDbTF4VHpWRU4zZEpUSGhYVlhGTmFYQlJPVkpOWld4S1kwTklTa3A0YWtaVGVFSjRTMWR0TlVaMlRsQm9NSG81TWxKeGN6RnpXVzlwU3pJNWVITTFNRVlLZWtKcFZIbHlWVEY0ZUV4VVZWUkxhekZIYmpCa1FtWlZlbEJoWWpWNFJ6RXJZVEpyUW1saFVUZ3haVEJaYTI4M2MzYzRabFJ4VFZaYVFsSXhjRWhDWVFwMFdGWlNkVEpFWlVrelZUTlRXalJQY2pJeVUwWktSRVJSV0ZvcmNXRXZXVVV3ZWpsb2VGcHpXakY1VFRseUswWndaMHBvT0dVNFdVODFiejBLTFMwdExTMUZUa1FnVWxOQklGQlNTVlpCVkVVZ1MwVlpMUzB0TFMwSwogICAgdG9rZW46IDgwMmQ3NDg2NzY3YmFiYjRkODk1ZGJlY2Q1MGE0Y2M5MzcxNDMyZmY3OWFkMTNjNDhjZDhkNzc0ZWQ2ODk3MzBmM2U5YTdlODFkYTk0NGRmZmFlYjYyMGNiMmIyNDQ5NGQyMjU4MGE0ZWQ2M2IwNmFlNTAzY2ZkYjgxOTQzMTdiCg==" } ] } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg7977/providers/Microsoft.ContainerService/managedClusters/akscluster3007/listClusterUserCredential?api-version=2022-09-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg7455/providers/Microsoft.ContainerService/managedClusters/akscluster9990/listClusterUserCredential?api-version=2022-11-02-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "0", - "traceparent": "00-630e8a5596ec254ea7dbc569257dc41c-ee975816207e1e45-00", - "User-Agent": "azsdk-net-ResourceManager.ContainerService/1.1.0-alpha.20221128.1 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "ece14a9a98eb5bed804c7fdac937d854", + "traceparent": "00-04d705552e3c572931ed8931501ddc2a-8d3a78cc29dc50b3-00", + "User-Agent": "azsdk-net-ResourceManager.ContainerService/1.2.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "d22795ad4a252f386ebfab585332d4f3", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -991,164 +1061,65 @@ "Cache-Control": "no-cache", "Content-Length": "13040", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:16:05 GMT", + "Date": "Mon, 20 Feb 2023 10:23:26 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "fa35ba87-9b99-441c-8612-4264a7c71e3d", + "x-ms-correlation-request-id": "f1502a21-2f04-4f31-9c7b-8b3a9b056102", "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "ac40bce5-9c5d-48e5-98af-af27c71c2f32", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T091605Z:fa35ba87-9b99-441c-8612-4264a7c71e3d" + "x-ms-request-id": "cc9d7ee4-9448-4aa1-8c25-8748d003db1c", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T102326Z:f1502a21-2f04-4f31-9c7b-8b3a9b056102" }, "ResponseBody": { "kubeconfigs": [ { "name": "clusterUser", - "value": "YXBpVmVyc2lvbjogdjEKY2x1c3RlcnM6Ci0gY2x1c3RlcjoKICAgIGNlcnRpZmljYXRlLWF1dGhvcml0eS1kYXRhOiBMUzB0TFMxQ1JVZEpUaUJEUlZKVVNVWkpRMEZVUlMwdExTMHRDazFKU1VVMlJFTkRRWFJEWjBGM1NVSkJaMGxSV214WGJsbHJUazF6UnpaSWFFaHRWRmszVG5KMlJFRk9RbWRyY1docmFVYzVkekJDUVZGelJrRkVRVTRLVFZGemQwTlJXVVJXVVZGRVJYZEthbGxVUVdkR2R6QjVUV3BGZUUxcVozZFBWRUY0VFdwT1lVZEJPSGxOUkZWNVRWUkZlVTlFUVRWTlZFVjVUVEZ2ZHdwRVZFVk1UVUZyUjBFeFZVVkJlRTFEV1RKRmQyZG5TV2xOUVRCSFExTnhSMU5KWWpORVVVVkNRVkZWUVVFMFNVTkVkMEYzWjJkSlMwRnZTVU5CVVVNckNrWlpXVnB1TkVrMWVtZHBjbU5JZFRWaWVDc3ZkMllyV1RaSVozcGpaMlEwVkV4a1V5dDRlaTk1Y21OUGVGTlBiMUZWUWxWTlYyWnBRelpKUVZORVJrUUtSVEpDUTFabVRXeHNOeTlDTm5WMUsyZGxWVmhHUTAxTGVrSlVMMnhEV1dRclVWbGpSa2gwV1Uxb1ZrOUxaMVJQWVdoSmVIb3JRWEYzWmpGVlIzbDJXUXBSTTJoVEwxRkVVRk5oVlROTVRsSlNhbXhZYW5GRlZsbDZVbEYwTWpKUlZFNVBSekJVTkdkbU1ubDVhamxOTjFock5FVlpia1pMWkhwemJqUk9VRkJrQ214WFMxbFpPREU1TjBOSlZtbzVPVXN6TW5GRVZHZHVWSFF6TlM4M2JYRm1WU3RHTTFBd1RGaFVlSHBpZFZReFJFRlZjVmxsVVZsMk56ZE1WakozUWprS0syNUhNRk5IUTNWaFNVUTBkWEpRTTBOSVJGTTNNVkYyVjBkWmNFRTBaVkpxTm5KWE9FcEtOMUpxU2sxd1p6SnNZVUpCTVhWQk1HWjZSM1YwYm14NmFncEtTek5XZVZoR2FISk9OV1JJVjBKdFRFMHhUbkp5U1hKVVVrRXliblUxUkRWbE5ub3ZTMVpKYkN0NGVGRTVZa1JPVkVGcU0waEZVMlpMWVd4clVqaHpDblU0TnpKWVpYaHpOSHBPTmpSemF6UXJabXBHVVZCcWRYQk5aMUpzTmpCRUszQXJSRXhtWVRoT2RFVmxXbVpSTTI1NGExb3hPSGhFUlM5WVFqbEVjRmNLVTBoeVdsTk1MMFJ3WmxSNGExcEpUelprTDBGSk5WZ3dORzVDWnpORVpqZHFRelE0Y25rMlRXNHlWSHBWSzJ0RFpuSklRMU5CWVV4dlNESkJlVWhFZHdwVVkyRTBURXB2VTB3dlRIZFRjVVJFUlhGek0yZGpia2xEVkZoSVQzYzVZMmxqZGpaRmNFcGtlamRYYjNGR1FWTm9LMlJIVERaU2VVUXdRamMxYUdWNUNqRXJLME5HUVdKYVFYQlpkSFE1TUdkVVNUQnVXWFp5VldocGJ6aFRVMG80TUcwMFZrbzRObFI1T1dGbFNHMTRlaTlNUTFSUGRtZERUV3N5WlV4alZVd0tja2hhSzB0elVVOWtNSEl4TkRKdGJUaEVPVFppTmtwb1FsWkNlamhuVUhaSllUbHhXVmM1VFhWM1NVUkJVVUZDYnpCSmQxRkVRVTlDWjA1V1NGRTRRZ3BCWmpoRlFrRk5RMEZ4VVhkRWQxbEVWbEl3VkVGUlNDOUNRVlYzUVhkRlFpOTZRV1JDWjA1V1NGRTBSVVpuVVZWQlRISnZLMWR6ZWpGQmJuZFZSRmg0Q2sxT1ltRmFjM0p5TTFKemQwUlJXVXBMYjFwSmFIWmpUa0ZSUlV4Q1VVRkVaMmRKUWtGR2EzcE9aWE55Wm00eVVVRnVOR1U0U25wSlpYTnJSRlJJVVZBS2FEbFhTMDFsTlVkV2MwdFJNRFZqUlRsWWNqWmpSMDF3VEV0UGF6aFhlbnBuTlRsVllsTjFRa3hHWWpkYVZuTm9UelpDV0hFeE5IUkhSMmh5YXpsR2VBcDRRaTlFUm1kS2FsUTVjbXhQYzJ4eVduSmtNVXhZVFZvMlRqbFdjVlpyYjBONFR6QjBhRUoxVUZwc1IyY3JMM0pVY1M5RldWWTFkVWhTTTFObmMzVXlDbVUyWVZGTlpEZGplR1JNTTNOa01UQkhWazVHY0dSVFVVbDVOVGRDT1hVNFFXRktaMjVxUTNKNFJ6UlpWMk5OYW1ZM05FOWFibklyUkRkUVZqSkhla2NLYkZoQ1oxSjNZMnQzT0ZsSFZYVnliRmxVZFU0d2JVWkhOMm81VW5oelltTm5hMHhETDFWVmVFZDJORlo2Tmtod2QxWjBXV0pVWVRsSFQwaEhjME5KTlFvNE9HUTFNVmN3SzFCbksyVllPWGRMTlV3NVRHZFhjV2RETTNCQ2RFMVFabU1yU3pRMFJrTTJiVlZsZVdoQlkyZE5RMncxUmxGTlNuRTBjMVpKVG01SUNuQklZMHQ1TUVkbWJEQnZOM1lyVHpCMFZVeGlOSEk1YWtreVdVTkZUWEZEZEdwbE5HZFVhbTVIUWtGNFJERXhjVmxqVkdsR1RIRjVjVlJvUjBGRmFHMEtUWEIzY1VOSFQydHhiMGx2Y214bU9VNXVRbWxUZDFsekwyVkVVRUpDVmpSWlJFSlJka1pVVm1WTk5URnRWamxJV1VwTk1WTTVOVFJJTW1ONGEyUnNWd3BHUmxoNWVuQkxlbmhsTTIxWU0wZFFhMGxhZDBKdGVqa3ljSEZ3YjFKS00yRkplVFV4Y0VSMGIzRmFTelJDVUhGV2JtMXZTRkZqUVc1dGNsRnBWVFJrQ25wdFpXOVZNMFZuVGpoWk5EQTRWakJTYUc4MU1YRjRia1JOVDIxUk9GRnZibXBFZHpCaFZtTTNSVTVJWlhkUWJISk5iMEZVVVhWTGNETldkV0pPT1hJS1ZGcFpORkkyVld0SVQxRkpkMk5LZVdSMFFXbEJiRWN5VW1JM1owOXdUR3N5UVdSRVNXbFBaelJVZDBOWlpXNWljMkp1ZEdGclZXOXFja0U0UlRsSk9RbzFNbVkwTmxrNFZrSlRSVVZxSzJJeUNpMHRMUzB0UlU1RUlFTkZVbFJKUmtsRFFWUkZMUzB0TFMwSwogICAgc2VydmVyOiBodHRwczovL2Frc2RvdG5ldHNkay01MzViMTgzYS5oY3AuZWFzdHVzLmF6bWs4cy5pbzo0NDMKICBuYW1lOiBha3NjbHVzdGVyMzAwNwpjb250ZXh0czoKLSBjb250ZXh0OgogICAgY2x1c3RlcjogYWtzY2x1c3RlcjMwMDcKICAgIHVzZXI6IGNsdXN0ZXJVc2VyX3Rlc3Rha3NyZzc5NzdfYWtzY2x1c3RlcjMwMDcKICBuYW1lOiBha3NjbHVzdGVyMzAwNwpjdXJyZW50LWNvbnRleHQ6IGFrc2NsdXN0ZXIzMDA3CmtpbmQ6IENvbmZpZwpwcmVmZXJlbmNlczoge30KdXNlcnM6Ci0gbmFtZTogY2x1c3RlclVzZXJfdGVzdGFrc3JnNzk3N19ha3NjbHVzdGVyMzAwNwogIHVzZXI6CiAgICBjbGllbnQtY2VydGlmaWNhdGUtZGF0YTogTFMwdExTMUNSVWRKVGlCRFJWSlVTVVpKUTBGVVJTMHRMUzB0Q2sxSlNVWklWRU5EUVhkWFowRjNTVUpCWjBsUldXOUlZVEJHUlZKVmJqTkllalJ4Y25oeFIxSTRha0ZPUW1kcmNXaHJhVWM1ZHpCQ1FWRnpSa0ZFUVU0S1RWRnpkME5SV1VSV1VWRkVSWGRLYWxsVVFXVkdkekI1VFdwRmVFMXFaM2RQVkVGNFRXcE9ZVVozTUhsT1JFVjRUV3BuZDA5VVJYaE5hazVoVFVSQmVBcEdla0ZXUW1kT1ZrSkJiMVJFYms0MVl6TlNiR0pVY0hSWldFNHdXbGhLZWsxU1ZYZEZkMWxFVmxGUlJFVjNlSFJaV0U0d1dsaEthbUpIYkd4aWJsRjNDbWRuU1dsTlFUQkhRMU54UjFOSllqTkVVVVZDUVZGVlFVRTBTVU5FZDBGM1oyZEpTMEZ2U1VOQlVVTTFSMll6TTJkRVFqSjBZMHRsZDFJM09VOVVibEVLU214MmRHaHpiR3ByYWtoQmFIQmhkVEpEY0ZsdU1VTXphelI1T1RoSEwyZFFSMU5yVDFGdVYwdE9abmRyYlZSWmNqZHZUMlZ1V0hOUVowRkZUSFZXVFFwM1owOUZZVEJrWm5saWJuZGtUMjFyTjFCNlpGUmtLMnRJY1ZsaVQzVm5ZMEpQV0U1V2FUUXdaa0ZoYTBGSGVEUlVSWFJ1YTNWWk5FUnJORTVLTVU5cUNuWmlZWEk1VG5aNWVIcG5NME5DU1RaMlptZHVXWEJsV0VkRWFVUk5Za3d3U2xGWlptMXlUemd5Y2xRemJ6TnRMMEphZVRoaVQwWjVSRloyWkVGNFVFa0tXakU1YjFoR2JqZDFVbFYzUlZVdmRIa3JiVFpOWXpaMlZDOTVTSGxCV2taaFFXUmxOblZvYjBsVk1sWmxkRTlYTUVKYU1sSjNTMFZMU0hONFVHNVhWUW8xU2s1aVZsZ3Zhek5FWVdzemFrOHhaV1paVDBKdVdHTkVSelptVUdsc2NTOWhibUYzTVVsRlUwSlRiRXhDVDBOM2RYbEhiVGxaUzBodksxZHRSMDVDQ2xWMFREUk5URU01UlVObE5rSk5XVXRVWkV0VVYyNTJZVTUwV2tKVk5IVmlURTVwTTNGMFRXRnRTbGRPYVhKVkszWXdlSE5xV1M4MFVYRnNWVkpwYURrS1J6UlpUREZ0YVRSVGVsQnFLMlkwUzNOelNuRXZZemRYWXpWS2RtTlpWbXBsUVRWMFRTdDFNV1ZrVERSTk0xbFpTVUp2U1V0YVF6TXhVWGhIZFRFd2NBbzFjVFZtZVdaQlZXd3ZTMWxaUmt4RVpqTlNhSFpKZWpaTlpHNVBTSHBUVDI5TU1tRmlTVFJvTlRaV1l6TlNTMVZxU25sVlRVeHFhME4zUWpsT1duTnFDa0p6YzNFMVQzWmlNa1JhZVVaTVdrdFpOV2xCYnpScGNtOVpPRk5qYTNWdVZIRkhNVlpCZVVWRU0zUkdZMUpDWWk5MmVtRkdXRmRXVm1wTlJHTnROamtLVDI5SlpYQnhNWFp4U1d4NlFrOTZORVJwYmk5YU4zRkRkWEUwT1ZkR1NVaGhUVXBYU2taMFNGSlJXSGREVlZCUVRXc3hOMVoyYzFsMGFsaFdTVzlPVXdwelRqVnhPV2MyYW0xSVJtRkNUVmt4VVRsNWVVSlJTVVJCVVVGQ2J6RlpkMVpFUVU5Q1owNVdTRkU0UWtGbU9FVkNRVTFEUW1GQmQwVjNXVVJXVWpCc0NrSkJkM2REWjFsSlMzZFpRa0pSVlVoQmQwbDNSRUZaUkZaU01GUkJVVWd2UWtGSmQwRkVRV1pDWjA1V1NGTk5SVWRFUVZkblFsRkJkWFZxTldGNlVGVUtRMlpDVVU1bVJYY3hkSEJ0ZVhWMlpFZDZRVTVDWjJ0eGFHdHBSemwzTUVKQlVYTkdRVUZQUTBGblJVRnJWVTUxYUVaMU9FZHpXR2xNUmxSMmFEUkdRZ3BJVVhNNFpHaFpTSE15TkZsVWRuUTRNM2swV0ZBMmNIRlZlVkpZWW5wb1kwcE9ORzAwZFdKTlEyUkJkMHBYWkZGWVdsVlNjVmx1TjB0MFozaElhRzkyQ2tnclIwMHlUbEpFYUc1dFUzZDRkVXhhVW1sQ09HRlBWMjVoWXpGTFVYTkxTRGh6WjFNd1FXcGxWMHQzWVZoU2MwMTNNSGR6UWxScGR6QkVPVWxoYkRRS01VVTVaWGRyVW5GS1NFSTRiMGxETlZaeFVUaFlVbEJ3TTFrMFlWaFhkREpLTVVGR1JFNXpOM1JhU0V3emFXdFNWREJqTW5oMlpYVjZiVlJuVjBSbmN3cGhhRUpZWTNwVWEyZE5UMnRMUjJ4clMxQmxLMWhpWkdkaGNWWlhOVVUzT1ZKTVRuUlVWeTl2V0U5d2IwRnBNRGhCU0hwV2RqVjZhR2RzU2sxbllsRlFDamx4VldSSFprdFVWbFZHVW1aWVJUbG1hVVV2WVV0bVYzSnNUSEZ4ZVhreVR6bG5ZWE5UU1dWR01tNUROa1J3T1hFNGEyaHBhelpFZEU5VU16VnZkMm9LZWpOYVNHcHZjbXBDTjB4MWIyRm1OVFZ3UkdoSmFWaEVjMFJMWkN0dFltbHhWREJ0U2t0cVVtczBMMmh5Vml0T1dFeHZiMDBySzNORFMzbHpORkZUWWdvdmNVbFlZWGx5VWxOTVZXNTZjMGxMVG1sS1prcDZRM3BMVEVKSWJrWkpaREV3V1hKRk9WSkpaRFpIYVd0M1pFa3pkWGhzT0RWbE4xQktlV3hzZEdrMENuRklZbWhJVHpaMmFqZFpiMmd6WmxwVlRrNVdha1J6Wm1jdk9EaFFURUpSVFdveWRWUlVTVWxvYkhGclNGbHNZVlF2UmpsMWNURjJUMXBaV0ZkWFoxa0tjbFl6TnpoR2NUQllWVU5sYXpSamIyRkpWRWhPYjJkeldEUm1iRlpGYlN0dVZXSkxWM1ZzUjJ4eldrRlRObFZ0ZFRRMk9FMUtMMmx0UTBrMFdFOVlUZ3BWVW5WT2VYSjJVU3RVTWxsdVVXSjBjVU16YjBodGNUZDZaMDlPUkhaNlUwRTJjRGRpZVVSMmFrNHhNMkV6TWpoalZUVjNSREV5TDFGMlVrOWFOV2RPQ25GNVNYZzJiQzlIY0RSV1NqaHZOVTFUUm14emEzcFpQUW90TFMwdExVVk9SQ0JEUlZKVVNVWkpRMEZVUlMwdExTMHRDZz09CiAgICBjbGllbnQta2V5LWRhdGE6IExTMHRMUzFDUlVkSlRpQlNVMEVnVUZKSlZrRlVSU0JMUlZrdExTMHRMUXBOU1VsS1MxRkpRa0ZCUzBOQlowVkJkVkp1T1RrMFFYZGtjbGhEYm5ORlpTOVVhelV3UTFwaU4xbGlTbGsxU1hoM1NXRlhjblJuY1ZkS09WRjBOVTlOQ25abVFuWTBSSGhyY0VSclNqRnBhbGc0U2twck1rc3JOa1J1Y0RFM1JEUkJRa00zYkZSTlNVUm9SM1JJV0RodE5UaElWSEJ3VDNvNE0xVXpabkJDTm0wS1IzcHliMGhCVkd4NlZsbDFUa2gzUjNCQlFuTmxSWGhNV2pWTWJVOUJOVTlFVTJSVWJ6Y3lNbkV2VkdJNGMyTTBUbmRuVTA5eU16UktNa3RZYkhobk5BcG5la2Q1T1VOVlIwZzFjWHAyVG5Fd09UWk9OWFozVjJOMlIzcG9ZMmN4WWpOUlRWUjVSMlJtWVVaNFdpczNhMVpOUWtaUU4yTjJjSFZxU0U5eU1DODRDbWc0WjBkU1YyZElXSFZ5YjJGRFJrNXNXSEpVYkhSQlYyUnJZME5vUTJnM1RWUTFNV3hQVTFSWE1WWXZOVTUzTW5CT05IcDBXRzR5UkdkYU1UTkJlSFVLYm5vMGNHRjJNbkF5YzA1VFFrVm5WWEJUZDFSbmMweHphSEIyVjBOb05sQnNjR2hxVVZaTVV5dEVRM2QyVWtGdWRXZFVSME5yTTFOck1YQTNNbXBpVndwUlZrOU1iWGw2V1hRMmNsUkhjR2xXYWxseE1WQnlPVTFpU1RKUUswVkxjRlpGV1c5bVVuVkhRemxhYjNWRmMzbzBMMjRyUTNKTVEyRjJNMDh4Yms5VENtSXpSMFpaTTJkUFlsUlFjblJZYmxNclJFNHlSME5CWVVORGJWRjBPVlZOVW5KMFpFdGxZWFZZT0c1M1JrcG1lVzFIUWxOM016a3dXV0o1VFN0cVNGb0tlbWc0TUdweFF6bHRiWGxQU1dWbGJGaE9NRk5zU1hsamJFUkRORFZCYzBGbVZGZGlTWGRpVEV0MVZISXlPV2N5WTJoVE1sTnRUMWxuUzA5SmNUWkhVQXBGYmtwTWNEQTJhSFJXVVUxb1FUazNVbGhGVVZjdk56Z3lhRll4YkZaWmVrRXpTblYyVkhGRFNIRmhkR0kyYVVwamQxUnpLMEUwY0M4eVpUWm5jbkYxQ2xCV2FGTkNNbXBEVm1sU1lsSXdWVVk0UVd4RWVucEtUbVV4WWpkSFRGa3hNVk5MUkZWeVJHVmhkbGxQYnpWb2VGZG5WRWRPVlZCamMyZFZRMEYzUlVFS1FWRkxRMEZuUlVGMFVrOXZWSGxqYjFGbWEzUnRkMEo0ZDBkaWNrWTJWblUyVERacE5VeFdkakZzWmxSelRtWnVSbE4wUmxjeFJVMXlaMDAwWW5KVGJBb3ZPRWROZW1WVVJ6SnhSbUkxYkRaRFRsRmxNM1JLVVhscUsxVlJha1JoUVVkc2NWbFRRM2xtY1ZsMU1YaGFTRkpFVHpOU2FXdDNlRlY0U1dSWWMzVnlDbmN5VVRkaWVubHNaMjF4Ym5OclpIZDJURWxKV2xjMFdrUlBWV0l2VjB4eFFVODFXUzlRWmtoR2J6ZGxlRzVvZHl0d1lVbHNWbU56WTJGME9ERlViMmtLT0RKbWVucFNlRzVVU25GMmVuZzRLMXBXV21Wa1lWSTNObGx1U2tsS1RpOHdhV2RIU0hseVFXWXpWbmRMT0VRdmRGSmFhMmw2ZUVWWWRFSmxNR2xqYVFwcWMyaGxPSFk0YUZaemIwSnJPV1ZrU1dKbU1YcHFUMHd3U0VNMWRHZzJiSGxSVDNKVFkyWnFOMUZWZVhOTFdFOHZOR3g1V1hkSlIyUmxTSEIzY2tSRkNrdFROVXRZWTFoc04wYzVhRFYwYlhCaFZWZHdOMlI0V0hVMGNqUkVTbE5tY0dGT1dXNVVUa2wyUTNBNFdFWjBUMmczYUZkcVpETjVTRTEyV1VZclJEVUtWWFp4UVZJMFpFVXpOV3RJTVVwc2NYUXpLMEZpU0VWVmVubG9aMmxUVVZCT2JDdEpPVkZDVkNzdmJUaG5aMHhRWkhWblNFMUxURmd2YkdSR2EyMWFUd3B4TjJwMldWbHNTSGQxWlhWQlMyOXdaVlJFWTNwT2VHMTJkbkpFTVRScGQwZEpRVUo0VHpsaVMzUnNLemdyYkZCd1VYbG5kVEpNV1dSa2JYZDJVVmx1Q2tRclVHTXJaa2hoU1VkeFNFOVBkVGc0VTNrdmJrMVVibEZsYkhCUVEyNUhZMjFGTUVGMmMzTkxPWFZ0YVd3eVpXVkNZemxLVEhKQlRXMXJWWE5EVkdrS0wyZGlUMHBJU0VGc2ExUmFRVVEwYVZrNFREWkdkVTE0VVZwU1JqZDBWamt5UkRSclQzTnVSMjFoUTJwc1RrbDRMMUo0TVVWS01UVkhNR0U0VGpsdGFRcE1VbFZQZVM4MmEwdFVVMlJRUlZVNWRuVkJiMnR6ZEhKck5sRXJabUZUTm1zNWMxQnFNekpFVWpaWFQwTnpjVXhQUVVWRFoyZEZRa0ZQWjI0d1VrbGFDaTl1Y1RWNlduUjNSREJJTDJkM1ZuUnBiWGhaVWprME5EVlFaMW96VTFGa1ozTnZWVkVyTVU1dEwxcEVZM1EzVldGQ2NVZFZWRXBrZVdKcWVUWjRZVklLVlcxMWVIRkJkMjlMTUhNNVpHSmlPV04wZUdveEsycFNiMWxVYm5wb1ZXaFZNV2xOVW05Rk5WZFVOVk0xY1RCcGRuRXhSelpaYWtoSU1WaG5hbHAxY3dwaldHRnZjeXMzSzJSbmJHNVdPRU5aT1ZNMVkyWjNiMnhoWm1SME1UQmlOR2N3VlZSNVVXaHpaRTFtZUdWMEt6RTJaREp4VjI1SGMyRndiWHBhZUZGdENrRk9Oa2xRWTJ0a1UxUXpMMlp2YmtsemRFeFRUQzlSUnpoUFMyOUlNMEZpVkdreVYwdDZWRUZWVVhkVVNreHdUbkF4YldkSVRUUkJNMHd5T0c4NVNXUUtTMHh1YnpSUU5HVlBkbVp6YTJzNFJVVm1ZMlYxUzBoQ2NHTnFXSGNyTlhaak5VTmxTSEJXVm0xNVVsbE9iR3B4VEhoNmF6QnplR1pKWmxNM1lrdFdaUXBsVjBVelRuSllXRlYzYTJ4WFIxVkRaMmRGUWtGTmQyTTVaVzVxVjBJcldXbG5URU0wWm1sMGNsWmxUamN6TlZkWmJpdHVVMDkyU0hsRU1IQlBVR1J2Q21GR2NEYzVhbVpwVVZkT1oyVlpha3hoTlhkU1ExSnlUR1lyU2todllVdHRkWEZFYUZVeE1EWlBLMmN4UWxJcmRFNXhObnBPVkdnelNFNUtiVmN3U213S2IxcHNRVE5ZVDI5ak0yOXlZVk15ZVhWcFdXUXlOeTlpTnpSR1NFbGFMMHBpTjA1S1dURmtMMmxJT1hCbGJIbHdaa0l4YlRsdVJsVlNhazl1UVZsdWF3cFFWamhSWVRWa05USnVia1UxTWtFNVVWazJTMnhrYmtKdFJtUk1kalZKVDNCaWNrRTJVblUxVURkeVlUUnZjaTlLWlhkUlYyVXZNR3g2Um1veVJXeG1DbkpCUnpZMlJYTkNSbGg1Ukc5cWJtWjJWV3BaT0U5NlNESnJkVm80T1VwU2RVRk1ZbXAxTDBGb2QzRldjbGhMVkZWU1pWVnBhWFZhYVV4dWRWRkRTVm9LTVRrM1lXaGlSMXBuYmxsV1JHRTBSakJSVURRdmNFaG1jakZQZEZsRFdXOWhOV2QzY2l0d1FubFRSVU5uWjBWQlRrSkhlVWczWnpaNmJsaGlLM0V2ZHdwcVEwaDBNV2R5VTJ0RGFHZDJhVkJQYm5sTVZqWmhURUV3WldkdWMwSk1TRVo2TTJKb2MxUnVUVWxRVG5SR2F6WjRSVTltYmt0cmRHSnJRV3BoT0RaaENtNTZOa053TWpsRVJYUkdSaTlOTnk5NGFIQnFjVE5QVmtOUVp6RllRV2h5ZW5OSGVsRlZVRmwwYlRaQlRrcENUVzhyZEVGa05Xb3JkbVJzY1hWblJGTUtiM0IwVDBsRlJuVlNSall3YXpaaUsyeEhUa3hrU0hsTGJreFRjVlY2ZUZsSFVIYzVWR1V5TUV4WFdtMDRURmd5Um5SRldraHVha1J0ZVZjNWFtUXdSd3B5TWxGa2EyNVBNRkF2Y1hGcVRGZzVNSGxvV1VoTlNGUkZRVUowV1cxQ09FUlNVa05IV2sxUVNrNW1NMlptUkU1cllsTTRibGxUZVhaTVpsSjBjekEyQ2psd05WWXhiV3RaVTIwdlYyY3hhekpuVFhnNFFXNDVNakJSYmxZelJFdGxTVVpITUhCek5tNXJTR2d5UjNsYUwweERMMXBXTWtoUlNWcEVUSE5aT1VFS04xZ3dNWHBSUzBOQlVVVkJlSGd4U2xZNGVVd3pkV0Y2VnpGWk5XdHdialpwTTNKUGMzWlJZVk50VlhGWlltZFhkMjVPUVU5NmIwTTRjVWxUTkhock5BcHhTRlZ2YldsWE1qWkNlRWRSV0d4aVZ6WmFPVXN5Y0hscVVtSkRaVU5QYVRWVVkzcDBSamhLUWxGMVZsVXlkaTlHWkVRNFNGb3hMMDE2TVhaNWNTODVDbFp4VTJGcGFGaGpUMlZ5VDNkRE9GSlRXUzlYV1ZWWWExUlpWemt2TVVaUFIzUXdUMjVQTlVwUldGWTNNamR3VjJOWVZIUnlNVXRVS3k5VVRYZEpkME1LWTA0clFYaDNWaloxYXpZdlQwSnVMMUJ6YlV0TVJGWldkbmRWU2xsb05HODJWMDB4ZEVaeFN6VXJjR0pyYUZkTmJVbFlTMHhIYmtWS2FuWnhPVFpCY2dwRlltaHVkbEZXYVZwWWIyTk1VMEZaT1RjNVRHUXhValJ4V0VRNU1IbDVRbW92V0V4eFoxaEZRMkpxUW5kU05scHVjV1Z2YzBwME9WWnplbVIwZHpoR0NtdGhUMmRKU3psVU5IZG5NMkp3TlVSTWRVaHRPV1JLWjJjMmNXSk5WemRVWjFGTFEwRlJRWFZwVHpGM1ZFcHFSbWhoYlhBek1YZ3ZUVmRhYjNRMlUxb0tia3hEVkRjNWVrSklkemcxTkdWSk1XSXlNREZuTlhoU2IzVlNMMHBsV2taa2JYbzBaa3hDYzJwdGRuRlNXa2RrZGpOU0x5OTJkRkJhVERSUlVHd3haZ3AxVjBKMlYzRkxkRWhTYUZGcVVXZFFWR1p0ZW5ZMU5GUlFSMU5PTkRadFMwTjRlRTUzY1hWMGRGSjFTbTl3Y0d4VlRrUjRiekJFUkRsd1N6SnhjSEZNQ210T2FUWjZURE51WkRndk5GazVZMkozVjJkdlYxSm9jRVJpUjBrMWRYUkZUMFprYTBrNFlqUldkMkZrZFdKUGJuZFBMM0pHYjFONE1YTm9aME5TTVhZS01HSm1lVWRUTjBkU2ExSlBOamhQTkRGVVFXeDJkVmxOWWxkaWJUQndVelZTUVUxTGFETjNkM0IxTlRWcmIwaHNXU3R0VVVoTVpFUXlkVUZ5YjIxelRBcDRWMU5aY0hOT1JHMUZaVUZzU0VGcVJVSXhaalJ0WlVoTlYyUTJVVUp0WkhoWGJXRndRMDEwT1VSSk1VbDBiWEZVZFVwaWRHUkhZVzVrUTNJS0xTMHRMUzFGVGtRZ1VsTkJJRkJTU1ZaQlZFVWdTMFZaTFMwdExTMEsKICAgIHRva2VuOiAzNjU4MGNmMjNmYWRiZDJkNWM4OGM4OWM4NmVjZTJkYjhmNWU5MzA3Njk5YzBkZjI3M2RlZWYxZmVlODNiMDBjMTRiNDkyZmNiNDMxNjcwMzE5ZDdhNWY3YjMzMWExZmMwZDQwOGYwY2NjZTE0YzAzZDhjYjJjNjNlNDg2NTAxNQo=" + "value": "YXBpVmVyc2lvbjogdjEKY2x1c3RlcnM6Ci0gY2x1c3RlcjoKICAgIGNlcnRpZmljYXRlLWF1dGhvcml0eS1kYXRhOiBMUzB0TFMxQ1JVZEpUaUJEUlZKVVNVWkpRMEZVUlMwdExTMHRDazFKU1VVMlJFTkRRWFJEWjBGM1NVSkJaMGxSVFVOWWVGaFRZbXhWVVhwTlRVNUhla2s0YUd4aVZFRk9RbWRyY1docmFVYzVkekJDUVZGelJrRkVRVTRLVFZGemQwTlJXVVJXVVZGRVJYZEthbGxVUVdkR2R6QjVUWHBCZVUxcVFYaE5SRUV6VFVSV1lVZEJPSGxOUkZWNlRVUkplVTFFUlhkTlZHTjNUbFp2ZHdwRVZFVk1UVUZyUjBFeFZVVkJlRTFEV1RKRmQyZG5TV2xOUVRCSFExTnhSMU5KWWpORVVVVkNRVkZWUVVFMFNVTkVkMEYzWjJkSlMwRnZTVU5CVVVSTkNuaGhiRXg2U1dRd2FtZHpjV0pJUzJSRFppOXhUemRwUW1Rd1FYRkVUWEJyYld4aVpWaHRVMHBoYm1Fck1tSjNjRnBXTUUxR05IcEJVakY2ZVdSWmIyc0tNM1JFYkVKd1QxUnlXakoxYkM5cWNFbEpjVkJtVFhoaFNEbFBPRUp3U2sxT2RXTjNVRU5zY2taNE5VVnZhRmhHU1cxWmIwcHFSa0pFWVcweVZtTkJTQXBWT1VGQ1MweEVMMlJvWWtGWk4zaG5kM1pCV1Vsb2MySTBVV2hYYVM4NWFGUlNUemh1Ynpab1FYcEtPVVV5VXpsNE1VdG1XRE5QUlROclUzUk9NVTlSQ2xaNE1GaEJURUV6ZWtoVlIyUnpZMXA1UjA1NE9HdFhiMVoyT1dwV1ZpdFFLMlYxWkUxd09FUnZZU3RwWkVSSFEwb3dPVlppU2t3eUswZFhRVnA2ZFdzS1ZuQlplQzk1U2k5cU0wUXhTMnBXZEVoWGNYTkRRVE5QU2xsWFRIQXZXVVJoYUN0T2VWWTVSU3N5UjJnelJYbHBWWEkyYVVoV2NsbFlNRkZMT1ZKVE5ncGFhRVZ1WlhKbmVuZGphWEZHTVZGRmFYcHFVa2RGWWxOdWF6UmlTemxFYUZoRWJsVTRNMDltYlRFeGVtSnRTMUJsYTBWRVMyTndiMjFvYzFSaFdURXpDa1JuYVZweWVUSjZXV1JCY21KM1V5c3pOM0J1VFM4eU1tTndTM0ZJVWxadFlsRm5hbE54YjBWMGVsQkNOVWdyUTNsQlEwTkxObk5NSzNJclFWZFpXVmdLVm1wbWRsWTRVMW92YUM5RGNXaDZWV0pyWjBWMVdIUk9VbkIwYldoNVlXMU5jMjFTVFhaSmExbzJiVnAyVEhsUk5tZHlNMFU0VVc5Rk5VUlJhR2RwTlFwYVRsYzFkVzFCZG5ORlZtRkxXRWREZEV0TGF6WlZjSGxuU1ZBeVRGVktNbE13WjB0U04ydHFhbmx4YTJGYUx6bExabGxIYlRnNU9FVlZLMDlEV1hsaUNtaGFiVlp5VUhKaVRVNVdlVE50Y0RKR1JYVkxZbVZ5ZURWdVNEWktSV3B5VVcxWEszSmllbFZUVkVKMU5FaFNUa3QzYUN0UmJtMUhiMnBqYW1aSEszUUthRGhLWkV0aFNFWnpVRWt4YUVoMk0yOXdNbmxyUzNvM1JFTkZZU3R3T0hsNVkyMHZTazFTZHpWM1NVUkJVVUZDYnpCSmQxRkVRVTlDWjA1V1NGRTRRZ3BCWmpoRlFrRk5RMEZ4VVhkRWQxbEVWbEl3VkVGUlNDOUNRVlYzUVhkRlFpOTZRV1JDWjA1V1NGRTBSVVpuVVZWc2NIQjFaak42YjJWdE9VZ3dSelpTQ2pCTFVtRklWSEJaUkhaM2QwUlJXVXBMYjFwSmFIWmpUa0ZSUlV4Q1VVRkVaMmRKUWtGR1JYSmhObFp1YlhKdGVGUnpheTkyTmk4eWNtMXdXVkpUVDFvS1RXUkRLMlp2ZEdad1FUWnVlV0ZuTDBkRFZHVlBhMFJwYzBkQlVreDVjbFZRYzNVdlNFVlhhMmczV2l0aFRsRnZRVE5hZVZjNGNFRnhVVTVPSzBkd1ZncFJRamx2TmtkVFZrdE5SMGxvUkZablZWVlNUelIyTUVZd01WcGxNMFl2UkVsT2VXaG5Va0pEYlRaTWNETndNall3ZGxrd1owaFpkREJ4YVZoRVRrSnZDamhxVW1FNVJuSjVXRmN3ZHpsRVMyTkllRkpsVVVjeU5HMUlNMlZJTTBWUVFtcG1RVXhCTWpWYVRWRTNhMjR5VUdsWlpWY3ZNbVJQWkhGR1FYTXZaRTRLZW5KaFUwWXhTM05YYUdaMFMwcEpVemhKWm14R1NreGhlV1kwV0RsV1dYSm9kRFZQVm1VcmVFcHpXR2REZDNvMVlXZGtWbGMwWlZFd0x5c3dRalp0TmdwdkswMDVUVXN4YmxKa1Z6aExNVVJ1VDJzclRIQnZOSFIyTkROT1NVdG5PWFZzWVVab2JUQlplRVZSVFdrdlJHeGlMMnBoVjA1eVRtMXRaR1JhVFVjMUNsZHhiSFJaYVZOWlIxSXZhMmd4WW5CRVZ6VkxVRVk0YlZkWFMyVm5ORXhDYkV4NGFtbHZSWHBHTVVwdFNXYzBTMU5tYVZGWWNuRkdWVEJDVmxORVIyOEtObXRYVEV0M1lXSjVNWE5yUVVOTmJsVkJTbFowUVZCaWJXUkZhVkpqU0RadFpsUTFWV0ZuU0V4V01WSnZNSGxwY0Vac09TODFOVUZ4YVdrekswZFFNZ3B6VEV4SVpXeFJWMDVMWlVnNE4xWkNMMmM0T1ZOM2FEVlFORzk2VTA1dGMxUlFkMjVsTlRrd01FTjFSRzlKZVRNM2FtRmFVVkoyUkVwVWFXSmFXa0YyQ21sa1JrTkJSV1pDV0RVelkweGtabll4SzB0bk1ubFZWekZNWVhSNWVXNVhWRWhUU2tKUE1uTTNNSEZaVUVWRE5sVkNVVzFxVTBvMlJtMWFkalpYVTBnS2NESkthbEpMVlc4eFIwUTNaM0JQYzNCSE55OVVkbUoxTTB0cGRWVjRRek5tYzBodllVNW1aSHBET1ZKTFQwaDRTbTE0Y0hNd2NXeE9lVGxUYldaaU5RcDZWamx0ZEhwMk9UTlBNSEF3UjNSbkNpMHRMUzB0UlU1RUlFTkZVbFJKUmtsRFFWUkZMUzB0TFMwSwogICAgc2VydmVyOiBodHRwczovL2Frc2RvdG5ldHNkay02YWI2MDRlNS5oY3AuZWFzdHVzLmF6bWs4cy5pbzo0NDMKICBuYW1lOiBha3NjbHVzdGVyOTk5MApjb250ZXh0czoKLSBjb250ZXh0OgogICAgY2x1c3RlcjogYWtzY2x1c3Rlcjk5OTAKICAgIHVzZXI6IGNsdXN0ZXJVc2VyX3Rlc3Rha3NyZzc0NTVfYWtzY2x1c3Rlcjk5OTAKICBuYW1lOiBha3NjbHVzdGVyOTk5MApjdXJyZW50LWNvbnRleHQ6IGFrc2NsdXN0ZXI5OTkwCmtpbmQ6IENvbmZpZwpwcmVmZXJlbmNlczoge30KdXNlcnM6Ci0gbmFtZTogY2x1c3RlclVzZXJfdGVzdGFrc3JnNzQ1NV9ha3NjbHVzdGVyOTk5MAogIHVzZXI6CiAgICBjbGllbnQtY2VydGlmaWNhdGUtZGF0YTogTFMwdExTMUNSVWRKVGlCRFJWSlVTVVpKUTBGVVJTMHRMUzB0Q2sxSlNVWklha05EUVhkaFowRjNTVUpCWjBsU1FVeFdWakIxWW5aWVZrNVpUSFZzYTJsVVpsSnZPR3QzUkZGWlNrdHZXa2xvZG1OT1FWRkZURUpSUVhjS1JGUkZURTFCYTBkQk1WVkZRWGhOUTFreVJYZElhR05PVFdwTmQwMXFTWGROVkVGM1RucEJNbGRvWTA1TmFsVjNUV3BKZDAxVVFYaE9la0V5VjJwQmR3cE5VbU4zUmxGWlJGWlJVVXRGZHpWNlpWaE9NRnBYTURaaVYwWjZaRWRXZVdONlJWWk5RazFIUVRGVlJVRjRUVTFpVjBaNlpFZFdlVmt5ZUhCYVZ6VXdDazFKU1VOSmFrRk9RbWRyY1docmFVYzVkekJDUVZGRlJrRkJUME5CWnpoQlRVbEpRME5uUzBOQlowVkJNalIzSzBSd1dFWjJaMmMzUVV4bFVVdzVjbkFLYURaM1F6aFhkR2tyZW5sTFMxVTFTazFSUlhrM2FtTlROakZuU1dWb2NEQm5hVkJCVURGcU5YZzBVbVJrUmsxdWFscE5MM1ZrZW1wek16VlJTR0pZWlFwc1ZEUlVUVUoyZG05WlRqWjNha0ZGVTNOc2NHc3phM1l6VWpWSWNqRlVXVTVOVUVWSmRHUm1NMnR1Y0VkR09YY3hVelpyWWpGSE9WWkNXSFIzU2xOQ0NreEpiVzVLWkVJeUwxRjJkMGhLZDFNNGJtSkJkVlJYWjBFeFRrUjFSblZ6VFhScFduVlFkMEkxVUc1VFZuRjZNVmxvYTFVMWRGSnpaekkzTlVkd1dHc0tTVEp6UTJwUU5VOUZWSEZTUVdkcVMxWk5UR3hwVjBseVdYaDBTamxKYUdwV1QwMWpibWxUY0U1MFlrSldNVlo2WkhWNGVHWnpPRU1yYTAxNVQyNU5ad3BFT0c1a1ltVmFLMlZJUzBST01WZDNNMnR3UWtJM2IxaHdiU3RuYkc4MmJHTnBaRVJpYVU4dksyMXhZbFpIU2xkU05GWlJNRzVHYXpodVJFVk9ZV0pIQ2pocVJURnZWMGhSYkN0Qk9HTmFjazl2TW1VNGQwSnNkRzVUTnpscVEwTXhVWGhIU0RKbGNGcHJUWHBNYTIxcVFUTllXRVZoWm1ONldWTkdkM1JVTm5NS0t6SlRSbkZMYjBrNE9VTnVabUZLTTBsdFVWUm1jVXA1WTNGM1dGZFROemwwWm1zMlVHSnVZVGN4Ukd4MGVtcElaamxoYTFkS2MxaG5LMjl0VURkdVp3cGhVVk5EYVhodlJYcFNPVGQ0V1daeFpWbERNekJsYlN0amVHMDRjRUo0TDBJNGRqbExieXRxUVdsUmVWRjBjaXRKV0VReVlrRXlhSEpJUm5oaGRrMDJDbGR4YUdsa2F6ZFNVR1JEVDB4NFlXbEZVVFpHV2tFcmNUY3JNbVV3U1dwM1ZFeHJUMFJOVWtoSU5VaEJNMFZJTVdFMVdHMUlUMVpNZVZKWlNISlpVVTRLYzAxblJWQkxZMlJXWWtsRlZGaEhNbHBOUlV0clRrZExWMFJsZGs5c2JVbDFheXN4V0dOMVZVSmlNemhHYUZsalZXSkJMMVUzTTJsV09HdFlMMGt5V2dwWlJ5czNRa2hMYlRaNlVqSkliak0xU0hoYWQxWktWVU5CZDBWQlFXRk9WMDFHVVhkRVoxbEVWbEl3VUVGUlNDOUNRVkZFUVdkWFowMUNUVWRCTVZWa0NrcFJVVTFOUVc5SFEwTnpSMEZSVlVaQ2QwMURUVUYzUjBFeFZXUkZkMFZDTDNkUlEwMUJRWGRJZDFsRVZsSXdha0pDWjNkR2IwRlZiSEJ3ZFdZemVtOEtaVzA1U0RCSE5sSXdTMUpoU0ZSd1dVUjJkM2RFVVZsS1MyOWFTV2gyWTA1QlVVVk1RbEZCUkdkblNVSkJTMVpLYjJOQ2NEWlhOVkZxY21zeWEwOUZkUXBGVkU5QlpIUmxkbFp4T1VOUlQydHZhVWhPUkZKa1ltdEdlRWd3VDJZcmNETmpWRGxyTWsxdWJtWkliazlPTmpreGVXVnVRWG95UlV4QlRsSllaVnBOQ2pGdmRVbFpOalo2VjBsT1J6QnpNRTEyV0dWelZGTmtLMmh5SzBjd1RFOWxkVFkwYlZwT05FbHFXSFJwTWxWV1Myc3ZMM2sxZFZrelNuTlpZVzVDZFd3S1JGTmtaa3BsT1c4MGVHdElkRFZXVjFBNU1rYzVSRU5YYzI1SFZHaG1jazVTTjBGUU5FUXdaWE5NSzBGS1kyUlVTM2RHVUVSVlVqRnhPRmc1WVhwaVVRcFFRa3hsU0ZWUlFWTk5Va1JUTkhSUFl5OTFSV3hhUzB0cVlYZEVhVnBIY2pGWlNpOVBjM1ptTVZNeE5tUlNNVTVqZFVaTE5EZGtSR2QwTUhsb2JtUkZDbTVZZFhNeGFqSktMMDVUYVU5emNuUXZjVGwyYkhCcFkxUTJUMlY1TkVwVVVWSmxWRUV6WW14bVEzbDFNVk5vWkNzMVVVdGpOMlZ0Wms0ck9XbDZlVmNLYVc5RVZXODBhMWRKUlhWTlpVeElZVzVYYldoWk1tVXplRVZxYzBzd2NtMXNUSGdyWVVOVk5HRnVMMnRQVjJNdlpYSm5XbEpxTjJGVWNVOTFWbXhKTHdweFpsbHpRa1J2UjBFMlpEUjFNVmd5VDNsVVQzQXdXRWg1Wkd0TWJuZzVkVVpGU3pseE9GVlRTa2hTYms1a1YzQmFUMUZpYjFvNFpISlJOR1JNVkdVd0NrVnVkVVZJZHpCRVFUVlljbTF3UVM5c09XazNSR0ptVWpKbk1WWlVVbEJOZDNWd05IVTFVSE0xUzBkSVJFVmhRVkZKYzFOVVMxcHhTbVIxU3poU1REZ0tTbXgzY1d0V2MwbEhhR2RpUkRReVVtaDRRbEIzZFhwbFdIZE9XRGRGV1hsRVEybzVjeTl5SzJGcFpYaE9VMjl0TkdJeVFsTjBUWGhxTjNONFNEUmpNd294VXpFelVUUXphR3RHY25VMlowUnlTVTgwUnpCaVkyNHlVVmQzVEVGb2VVUnFWMWhOYlhWTlNsWlpOMDVRZFV0SlpXZzBWbmhvTVRCcVZVNUNaMlZVQ25KYVVFbHlTbWc0UkRCRUwxcGpWMVZWTW14a1VsRTFTZ290TFMwdExVVk9SQ0JEUlZKVVNVWkpRMEZVUlMwdExTMHRDZz09CiAgICBjbGllbnQta2V5LWRhdGE6IExTMHRMUzFDUlVkSlRpQlNVMEVnVUZKSlZrRlVSU0JMUlZrdExTMHRMUXBOU1VsS1MwRkpRa0ZCUzBOQlowVkJNalIzSzBSd1dFWjJaMmMzUVV4bFVVdzVjbkJvTm5kRE9GZDBhU3Q2ZVV0TFZUVktUVkZGZVRkcVkxTTJNV2RKQ21Wb2NEQm5hVkJCVURGcU5YZzBVbVJrUmsxdWFscE5MM1ZrZW1wek16VlJTR0pZWld4VU5GUk5RbloyYjFsT05uZHFRVVZUYzJ4d2F6TnJkak5TTlVnS2NqRlVXVTVOVUVWSmRHUm1NMnR1Y0VkR09YY3hVelpyWWpGSE9WWkNXSFIzU2xOQ1RFbHRia3BrUWpJdlVYWjNTRXAzVXpodVlrRjFWRmRuUVRGT1JBcDFSblZ6VFhScFduVlFkMEkxVUc1VFZuRjZNVmxvYTFVMWRGSnpaekkzTlVkd1dHdEpNbk5EYWxBMVQwVlVjVkpCWjJwTFZrMU1iR2xYU1hKWmVIUktDamxKYUdwV1QwMWpibWxUY0U1MFlrSldNVlo2WkhWNGVHWnpPRU1yYTAxNVQyNU5aMFE0Ym1SaVpWb3JaVWhMUkU0eFYzY3phM0JDUWpkdldIQnRLMmNLYkc4MmJHTnBaRVJpYVU4dksyMXhZbFpIU2xkU05GWlJNRzVHYXpodVJFVk9ZV0pIT0dwRk1XOVhTRkZzSzBFNFkxcHlUMjh5WlRoM1FteDBibE0zT1FwcVEwTXhVWGhIU0RKbGNGcHJUWHBNYTIxcVFUTllXRVZoWm1ONldWTkdkM1JVTm5Nck1sTkdjVXR2U1RnNVEyNW1ZVW96U1cxUlZHWnhTbmxqY1hkWUNsZFROemwwWm1zMlVHSnVZVGN4Ukd4MGVtcElaamxoYTFkS2MxaG5LMjl0VURkdVoyRlJVME5wZUc5RmVsSTVOM2haWm5GbFdVTXpNR1Z0SzJONGJUZ0tjRUo0TDBJNGRqbExieXRxUVdsUmVWRjBjaXRKV0VReVlrRXlhSEpJUm5oaGRrMDJWM0ZvYVdSck4xSlFaRU5QVEhoaGFVVlJOa1phUVN0eE55c3laUW93U1dwM1ZFeHJUMFJOVWtoSU5VaEJNMFZJTVdFMVdHMUlUMVpNZVZKWlNISlpVVTV6VFdkRlVFdGpaRlppU1VWVVdFY3lXazFGUzJ0T1IwdFhSR1YyQ2s5c2JVbDFheXN4V0dOMVZVSmlNemhHYUZsalZXSkJMMVUzTTJsV09HdFlMMGt5V2xsSEt6ZENTRXR0Tm5wU01raHVNelZJZUZwM1ZrcFZRMEYzUlVFS1FWRkxRMEZuUlVGM2JXTm9VVU55ZDNsUU9XbDBOVlJVVFZCNlNEQnhTRWRxVmpGSllsTjZSRXhwV1hFcmVVTlVjRFJ1VDNvclVFbDRZelJPU1c1MGFncHlVRkYwV1V4VVpGSTNZVzFFUmlzMWFYVjFSVWRLYTJSbFpVWnFPRmxVWnpKeVYzZzNOMDlNYWsweVZub3hPR1pvUkRGSU1qWlZTRlp6U25KSEwxaEtDa0pCZW5aNk9WcHJaRE5rZWxsMVIwWkxlV3RYTWpWRU4xVkpOWFV2ZVM4MFpVdDRjRFJHUjJzd1RVTkhjVzV1Y1RFeFZXSnNhbGw0Wm1Sd01qRlRUV3NLYjNvNVMzTnBWbWRWWlRKbE4zSnNSVE00ZUhwT1kwdGlRWGxhT0hRM2RqSnhNRUV6WjJ4Mk5ITlFUakZ5WVRWVFREazVhMmxqU2s1TWVVWm9lVE5YTndwRWJrWnhRVXQzVXpCVVJsTktOV3BuVDNGbk1XVTRUSEZvUVZWVEt6aG5SWE5XTjNFeE9UWlhVQzlaTlhkbGRrRlFORnBTYTAxbVFsTXJLMDV2YkVsUkNrUkZVRTV3TkVOclowRnFMMWQ0T0RaWVRUSmFNVWM1ZWpObmIwdHRRME5FTXpJeFVISk1XRXhXY1VwQ01GWkZNV2xVYVRCaE16VTJSbTR4V1d3d1FrWUtTRFU1YzJkRU5URkNNMkZSZEVSNFlVNDNkRXgyUW0xbGNXNVVaV3RKZFN0dWVqVnpVMEpVTm5oWEsxRjVNRGc1ZDB0TGFHdGFiMmQ2T0ZWTWFqY3pOd3B3VFhadWRtczBablI2V1haNldsZEhWMGRwUjNSMEwyaHBkV3QwTW1WNFEweHBlR1l4ZVVWVmJWQnZiRzlRVGtGdWVVRlRiMDB5WTA1U1Z6Vk9UV3RWQ2tOWldFdFZkSEpZVWtkUFduaFpZMFpGVVVJeFdWTndiVmh3YXpSdVVVWjJlVlJsY1RSSEwwcENPSFZSUldsclZUazFjWFJKYVRkVlIwTlVWVnBCZWs4S0wwa3dkbU41VW5wcU5IcFBjSEp2UW5oUWR6RTViMEU1U2s5dWVEaGxOMloxTTNNM2QyODRhMFZuVWtSaFp6VllLMlJvTDNoR1owRnFkME16V0VGSkt3cE5iV2RRZFZwVGJ5OWhhelkwYUZCemMxcFNkR2RUWm05WlNEZEJRWFFyVGtkb01GVTNXV3RCYTBNMlVqbG1hRGhVTWtWRFoyZEZRa0ZQYlhFMk1ubG1Da2hKZG14a1dtMVpaSFpuT0dFMlZuRTVkemxuYUV0dFRIVXZkeTlrTmxGSlFtVkRhbTlEYkU5WFlXOXVVa3B2SzFJeGNIWlVTSGR1WXpSbGFYSlNOekFLWTNOWllsRkphbE5EVlU5RGQwZE9WbU14VXpCeFpWVkNUVUphWkRkNFNHZEVVakExUVRSTFVUa3hWQzh4VmpGbmJWa3dSMGhuV0ZOSlMzbDRWR1pGVlFveE5XeEdXamMzUmtwQ05rUjVOMFF3UVVWV1NUZzRObUZoVXk5amJXMUVhamhtZEZjM1JXNUZieTkyVWs1SlZrbFNUREZqWWxSb1pFbHhRMkp5WW1aUENqa3hkekJHTlVWb1prOW1iM3BsUmxWclFVVlJSVmwyYW5WbGFqaEZRMnRrVVRSR2FWTlhObWcyVDBRdmFtSlZVa2xZWW5wcU1WazJhVVJOZUZjM1ZsSUtTRXRQTUdzMWRrWnJSbEZ6ZUVGM01Dc3JjWGx1T0dReVdqWlFhazFYSzNOWWVYVmpVemc0VHl0bFlqRTJXbWs0WlZKMUx6bEdUVEYxWTA0NFFtOWpRd3BOVDFoWE5HVTNlRE5YZDJ0V1NtdERaMmRGUWtGUVEwZ3lNV3R4VERKWVZHeFdMMlJ3U0VkNGVGaG1ObFZpY1ZKSlNsQjFObEZyUjNOSVQydElUM1JNQ21Fd1NqaGljaXRJV2k5R1VTOUNaR05ZTW1VclRsQTBaa3BXVEdweGRFUTNlalZUVlRjeWJXRTRiMVV4ZURaUE1URjZibnBEZWs5dFdEY3JRU3RwUmt3S05XOUNSa2RqTTNWRVZGSjVSREUxYUdoT1VtSm1TbHBTWW5VeGFVSm1iVkZXUW1oT1ZGQnlNeTlOWXlzNUsxVXpTSFoxY1hkallrNDBTVlZtWkRoRGNRcDJjMUZYWkVSSVRFZHllV2sxU0dKWVJVUjFOWGN4Tm00dmExcHdWekZUTWtKNU0wNXpNVEpRVjBWMGJucDVPV1ZIVFhZM2JIZHRPWEJLWVdjMlRuQnRDblEwTDNwRlREbG1RbUl6VERsaWRsb3ZaakJHYTFselpHMHhiVkpJYnl0MWVrOTNjRFZSZEZFNGEweDZXbGxGUjFGeGJXNVVSalV5UkdsUE5Ga3hlV2tLZW5Gbk5XcFpOMmRRTkc0ellraFdNbEJYYUVwMWVYVlpZMkYyWW5aR1RFNTFiRlZvZWxacVVrRldNRU5uWjBWQlVEbEpOMDE0VUZOVVJFOUZRakIxY0FwVmRYWk9lWGRUU1V4c09FTllVSGxhWmpkQmJVVldkRkJ1Tm1WU1YzcGlXRXh4TlVSQmJ6TTBSbms1U0VOTVNVNHdRVWxUYm5RelRtRXlZVTlJWkVObkNsUjRkM0pTTDFwVE5XUlFhV2N6V0hKdFNFSlliRGsxUjA1eVJWZ3dSbGRtSzBWMFdVUTBWVTgyTkVjNFQxbE1TRUZsVURkclpHeE1aV05YU0V4SlpsUUtPR0pITVhSTlRYZFFOM2hLVDNscVdtbG5WVXM1VjFCTkswRlZjSHBKZHpBM1pHRmhUR0l3Y21GVU1GSmFPQ3R2V1ZreWFubFJlSGxoTTBObE4zcHFhUXBWVFZVMVZtczBkV1IwZGxseWQybHZRVzloTWswd1UxYzFORkJqTkhGaEsxbEtXSE5OYjFKWVV6VkpRMjFHTm5OVVN6aDVhVlJrTmxKM2VGQk9UVU5zQ2xKNGFHcEJOa3RHUnk5c2JIZHhhMGxpWVRkclJtTm9VM2hwY1U5WGFVOVNRbWhCYzIxV1kwSkVVamxGYzBkWFFVMHpRbmR3TDJSc1R6WkhVbGhDTkdJS2FVTnVNRWxSUzBOQlVVSlJTR0ZDVmtkaVZVSTBURU12V25FM2QxazNjMWhXUm5oSGJsUktVbk1yUlZFM1dsb3lXR3BLTTNWUU5ETXZaMUpTWWxWUFZRbzBSbTF1VjJ4Qk5ESlBWVVIzT1VsR2QzVnNVbWhLTlVkeGFtbzBXSFpFY1hBNVoyZFZiVUZ0TkVOd1lVRk5LMmhzVFRnM2NXWkdWSGhxUW5KS1EwSnVDakpLYmk4MFRrZERabWh4U1ZsM1ZtdHphVXN4Vm01d09GRmljMnBYVG1oelkxTXZWM1pFTlc5eGVEWjVTR28zY21WSGFrWXhkRzFHY2sxcU1VVlBZVTRLT0VZdlUzRmFNbmhzZUZaYVFWQkhlaXRGU0VGbVNWUXhialk1Wm5WWVFUWmFXa0puUVdGTFYzaDFNSFpDUjJrck9UQmxNeTh3UTJwQ1RqUlBUVUpPVlFwbVdYZFVSSFpCU0dsQlVreGFkMmR2YkVOeGRYaDRWbWRyUXk5SVZHbFllbGxQYW5SVFpUSkpXSEkwVlU1S1VsQkdOSEZaTHpJeVFVbFFUbWx3U2xSc0NsZHVSbGw1Y0VvemJYZzVjSHBRVVVoMk1FRkRRVW8xVVROMGNISXJLMjVPUVc5SlFrRkVMMUJJY2tOdlNVTk9kMHBFV1ZSd1IyTlJLMVZoTVhWaFNqVUtNV05JTjBSMk0zTkdSbHBKTkRNeFJuSnZaMmhLUVdjMWRtRkZjbFozY1ZoUk0ydGFWelYxV21Fdk5VNDBaVTlOVm1SWk0zbHdabVZ0YmpjcmQwYzBLd3BzV2tadFowSm9aa3BTU2xOSFEwaEJhbnBWWVhGT2FXRTJheTlQUTNGTmIxWjJRME0xZGtFM1RuaEpTbXRuVTNCSGVqUkdZVTFZUmtRdlVGTklaRGhyQ20xeFR6VkVOM2RKVEhoWFZYRk5hWEJST1ZKTlpXeEtZME5JU2twNGFrWlRlRUo0UzFkdE5VWjJUbEJvTUhvNU1sSnhjekZ6V1c5cFN6STVlSE0xTUVZS2VrSnBWSGx5VlRGNGVFeFVWVlJMYXpGSGJqQmtRbVpWZWxCaFlqVjRSekVyWVRKclFtbGhVVGd4WlRCWmEyODNjM2M0WmxSeFRWWmFRbEl4Y0VoQ1lRcDBXRlpTZFRKRVpVa3pWVE5UV2pSUGNqSXlVMFpLUkVSUldGb3JjV0V2V1VVd2VqbG9lRnB6V2pGNVRUbHlLMFp3WjBwb09HVTRXVTgxYnowS0xTMHRMUzFGVGtRZ1VsTkJJRkJTU1ZaQlZFVWdTMFZaTFMwdExTMEsKICAgIHRva2VuOiA2NjkzMjdhYjIzY2M3YmQ4Zjc3MDA3Mzc1NjY1Y2JlODA3MjRjMjlmZDkyMTAzOTY0ZDU2NDU4MGI5MTUzNmViMTkzY2YzYzJhMzA2YzVkMzQ3OGQ2ZTA4OWRjMThjYjU3NGJkYWVlZDZiZjdkMmUzM2YzMmZlZWM2YjEyOTU1ZQo=" } ] } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg7977/providers/Microsoft.ContainerService/managedClusters/akscluster3007?api-version=2022-09-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg7455/providers/Microsoft.ContainerService/managedClusters/akscluster9990?api-version=2022-11-02-preview", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-350158af22b0314ebf9ef6197c79922d-8a04eb1ca67df849-00", - "User-Agent": "azsdk-net-ResourceManager.ContainerService/1.1.0-alpha.20221128.1 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "3dafe087c74afcabd34403da03344bec", + "traceparent": "00-5e2753ee097e333196393b7381d5962f-320a15957a7896f8-00", + "User-Agent": "azsdk-net-ResourceManager.ContainerService/1.2.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "b0b8a8ab492878d5ff96bccf0ec7cbbf", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/58837644-bfce-4ad7-907c-7ecf33f7f331?api-version=2017-08-31", + "azure-asyncoperation": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/cbc7642f-7c31-4f4a-83cc-6368218d490a?api-version=2017-08-31", "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 28 Nov 2022 09:16:07 GMT", + "Date": "Mon, 20 Feb 2023 10:23:27 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operationresults/58837644-bfce-4ad7-907c-7ecf33f7f331?api-version=2017-08-31", + "Location": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operationresults/cbc7642f-7c31-4f4a-83cc-6368218d490a?api-version=2017-08-31", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "2ae46407-dce0-454a-a584-6b47b2408ba7", + "x-ms-correlation-request-id": "558f073b-794d-44b9-b1ad-bfe619f6016e", "x-ms-ratelimit-remaining-subscription-deletes": "14999", - "x-ms-request-id": "58837644-bfce-4ad7-907c-7ecf33f7f331", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T091607Z:2ae46407-dce0-454a-a584-6b47b2408ba7" + "x-ms-request-id": "cbc7642f-7c31-4f4a-83cc-6368218d490a", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T102328Z:558f073b-794d-44b9-b1ad-bfe619f6016e" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/58837644-bfce-4ad7-907c-7ecf33f7f331?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-350158af22b0314ebf9ef6197c79922d-a86df59f54d8964a-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "948600ce6462d2b29fe418a69512584c", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "126", - "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:16:07 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "78eb536d-9974-438d-84b9-101234599c3c", - "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-request-id": "e6cf9972-d0cb-4b81-bf50-b05030f67c8e", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T091607Z:78eb536d-9974-438d-84b9-101234599c3c" - }, - "ResponseBody": { - "name": "44768358-cebf-d74a-907c-7ecf33f7f331", - "status": "InProgress", - "startTime": "2022-11-28T09:16:07.3314418Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/58837644-bfce-4ad7-907c-7ecf33f7f331?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-350158af22b0314ebf9ef6197c79922d-008d279d1e8f5449-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "7f6f93009c5975f3a744d7f2850ec481", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "126", - "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:16:08 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "c03c6609-eda0-4f78-8a06-fd957a2282de", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "5a19fb0a-ea95-483e-83cd-6d0f66b73018", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T091609Z:c03c6609-eda0-4f78-8a06-fd957a2282de" - }, - "ResponseBody": { - "name": "44768358-cebf-d74a-907c-7ecf33f7f331", - "status": "InProgress", - "startTime": "2022-11-28T09:16:07.3314418Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/58837644-bfce-4ad7-907c-7ecf33f7f331?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-350158af22b0314ebf9ef6197c79922d-59af95de2940b446-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "020c0a5ab7ad0689970b9b7cf991d554", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "126", - "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:16:10 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "93ed7cdd-f5b8-41a7-8cd6-eba3c61e2167", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "3f588ca7-3867-4861-913c-f3079f439a80", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T091610Z:93ed7cdd-f5b8-41a7-8cd6-eba3c61e2167" - }, - "ResponseBody": { - "name": "44768358-cebf-d74a-907c-7ecf33f7f331", - "status": "InProgress", - "startTime": "2022-11-28T09:16:07.3314418Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/58837644-bfce-4ad7-907c-7ecf33f7f331?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/cbc7642f-7c31-4f4a-83cc-6368218d490a?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-350158af22b0314ebf9ef6197c79922d-c0e5dea7cc02dd46-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "a59cf6ff6ae231a00c11ec1e8dc04d90", + "traceparent": "00-5e2753ee097e333196393b7381d5962f-be05e701eb8cef11-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "e6630aca68866482c0afd28e8d6920a7", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1157,64 +1128,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:16:11 GMT", + "Date": "Mon, 20 Feb 2023 10:23:28 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "da73fa8a-a739-4e45-9723-2d206d2db0d9", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "d323e82f-2dc6-45d5-b7c5-76d745d3718d", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T091611Z:da73fa8a-a739-4e45-9723-2d206d2db0d9" - }, - "ResponseBody": { - "name": "44768358-cebf-d74a-907c-7ecf33f7f331", - "status": "InProgress", - "startTime": "2022-11-28T09:16:07.3314418Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/58837644-bfce-4ad7-907c-7ecf33f7f331?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-350158af22b0314ebf9ef6197c79922d-ec97f408be95094b-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "8a4c97205605499e0969e74d01777b16", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "126", - "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:16:13 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "40932e59-8e67-409e-8509-6f69a943784e", + "x-ms-correlation-request-id": "aeae1f44-9a6b-41a5-a48f-25bea7555ca8", "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "debf8dcb-dd0d-4ff3-859c-2d9b03370cfa", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T091614Z:40932e59-8e67-409e-8509-6f69a943784e" + "x-ms-request-id": "83c054e8-bb0b-44a7-b2f9-a63dd5973a81", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T102328Z:aeae1f44-9a6b-41a5-a48f-25bea7555ca8" }, "ResponseBody": { - "name": "44768358-cebf-d74a-907c-7ecf33f7f331", + "name": "2f64c7cb-317c-4a4f-83cc-6368218d490a", "status": "InProgress", - "startTime": "2022-11-28T09:16:07.3314418Z" + "startTime": "2023-02-20T10:23:28.0512404Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/58837644-bfce-4ad7-907c-7ecf33f7f331?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/cbc7642f-7c31-4f4a-83cc-6368218d490a?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-350158af22b0314ebf9ef6197c79922d-89aa6d62ec3c904d-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "8ef3836e1e72f09f6adaf69bcb6b78d6", + "traceparent": "00-5e2753ee097e333196393b7381d5962f-7390c24d661bad8c-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "286cecf4dc28f3d04ead153e25613442", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1223,31 +1161,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:16:18 GMT", + "Date": "Mon, 20 Feb 2023 10:23:29 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "77b468b6-1cac-476a-8f0c-6add519a93e6", + "x-ms-correlation-request-id": "45dc4f6e-1f03-42fa-ba9a-195618a07c6f", "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "dc399d7b-8065-440c-ac55-d757c5b880aa", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T091618Z:77b468b6-1cac-476a-8f0c-6add519a93e6" + "x-ms-request-id": "30f1b3a4-3f4f-4a0b-83cf-aacb2a2ef7e5", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T102329Z:45dc4f6e-1f03-42fa-ba9a-195618a07c6f" }, "ResponseBody": { - "name": "44768358-cebf-d74a-907c-7ecf33f7f331", + "name": "2f64c7cb-317c-4a4f-83cc-6368218d490a", "status": "InProgress", - "startTime": "2022-11-28T09:16:07.3314418Z" + "startTime": "2023-02-20T10:23:28.0512404Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/58837644-bfce-4ad7-907c-7ecf33f7f331?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/cbc7642f-7c31-4f4a-83cc-6368218d490a?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-350158af22b0314ebf9ef6197c79922d-776c46cf0b755e49-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "625b0abe4a45a94e57539b7882523094", + "traceparent": "00-5e2753ee097e333196393b7381d5962f-a37abc58c90cf2ff-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "03049193e4638338a7a43873e5cc7d31", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1256,31 +1194,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:16:26 GMT", + "Date": "Mon, 20 Feb 2023 10:23:30 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "09b60f72-55e7-4c2e-84db-d9c39f1c54bd", + "x-ms-correlation-request-id": "a68fc38a-470a-4fe0-9153-01359977bdcc", "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-request-id": "4c037b44-f5d2-40c3-925e-73fd341a9c4b", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T091626Z:09b60f72-55e7-4c2e-84db-d9c39f1c54bd" + "x-ms-request-id": "f21105d2-2451-48a9-862f-6617f96c77df", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T102331Z:a68fc38a-470a-4fe0-9153-01359977bdcc" }, "ResponseBody": { - "name": "44768358-cebf-d74a-907c-7ecf33f7f331", + "name": "2f64c7cb-317c-4a4f-83cc-6368218d490a", "status": "InProgress", - "startTime": "2022-11-28T09:16:07.3314418Z" + "startTime": "2023-02-20T10:23:28.0512404Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/58837644-bfce-4ad7-907c-7ecf33f7f331?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/cbc7642f-7c31-4f4a-83cc-6368218d490a?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-350158af22b0314ebf9ef6197c79922d-a3664031efaf2c4c-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "0aafd696becd011ef75b202b5f027e9d", + "traceparent": "00-5e2753ee097e333196393b7381d5962f-8c25cf5cad157de1-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "56807cc8da50ee023a7098d952443e5e", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1289,31 +1227,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:16:42 GMT", + "Date": "Mon, 20 Feb 2023 10:23:32 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "589e89bd-c3d1-48cf-9ef7-417422a849f3", + "x-ms-correlation-request-id": "0fc0f33b-326f-45ba-99f4-05505176c60c", "x-ms-ratelimit-remaining-subscription-reads": "11986", - "x-ms-request-id": "40c4c140-62e2-45d0-a61e-1ffa3c84ce20", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T091643Z:589e89bd-c3d1-48cf-9ef7-417422a849f3" + "x-ms-request-id": "b25691bd-55d0-4bba-b0b2-5eefb27392cf", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T102332Z:0fc0f33b-326f-45ba-99f4-05505176c60c" }, "ResponseBody": { - "name": "44768358-cebf-d74a-907c-7ecf33f7f331", + "name": "2f64c7cb-317c-4a4f-83cc-6368218d490a", "status": "InProgress", - "startTime": "2022-11-28T09:16:07.3314418Z" + "startTime": "2023-02-20T10:23:28.0512404Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/58837644-bfce-4ad7-907c-7ecf33f7f331?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/cbc7642f-7c31-4f4a-83cc-6368218d490a?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-350158af22b0314ebf9ef6197c79922d-a9b8624926aff949-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "f68f10f0191c23d03549371e82266d17", + "traceparent": "00-5e2753ee097e333196393b7381d5962f-1e1c032cb307bf78-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "fcfa907a1c640f43b4e98183a35d0e82", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1322,31 +1260,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:17:14 GMT", + "Date": "Mon, 20 Feb 2023 10:23:34 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "41d468e3-4daa-4e20-bafb-a7896827ee59", + "x-ms-correlation-request-id": "f2062494-5498-4dd5-975d-b8b9ef47842a", "x-ms-ratelimit-remaining-subscription-reads": "11985", - "x-ms-request-id": "5dfe1eac-470c-4592-86f5-e67ffb4ef4c7", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T091715Z:41d468e3-4daa-4e20-bafb-a7896827ee59" + "x-ms-request-id": "767491de-13bb-48a5-b568-2fa6dc96859d", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T102335Z:f2062494-5498-4dd5-975d-b8b9ef47842a" }, "ResponseBody": { - "name": "44768358-cebf-d74a-907c-7ecf33f7f331", + "name": "2f64c7cb-317c-4a4f-83cc-6368218d490a", "status": "InProgress", - "startTime": "2022-11-28T09:16:07.3314418Z" + "startTime": "2023-02-20T10:23:28.0512404Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/58837644-bfce-4ad7-907c-7ecf33f7f331?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/cbc7642f-7c31-4f4a-83cc-6368218d490a?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-350158af22b0314ebf9ef6197c79922d-6642161c96793d4e-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "f40561a96ebbff09eb596ae92a224954", + "traceparent": "00-5e2753ee097e333196393b7381d5962f-a9b0f51861b52a0c-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "a876e32fdee1b8f18f16c9f34c5e3063", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1355,31 +1293,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:17:47 GMT", + "Date": "Mon, 20 Feb 2023 10:23:38 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "184ed4f2-fd65-4f08-a228-05251b3d3eff", + "x-ms-correlation-request-id": "6392758c-e3c1-4460-b207-08098f7154be", "x-ms-ratelimit-remaining-subscription-reads": "11984", - "x-ms-request-id": "de12dada-74ac-49f3-9bd3-ec398b54e154", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T091748Z:184ed4f2-fd65-4f08-a228-05251b3d3eff" + "x-ms-request-id": "22b60d69-92d3-46e4-b041-3fb42d0a03d2", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T102339Z:6392758c-e3c1-4460-b207-08098f7154be" }, "ResponseBody": { - "name": "44768358-cebf-d74a-907c-7ecf33f7f331", + "name": "2f64c7cb-317c-4a4f-83cc-6368218d490a", "status": "InProgress", - "startTime": "2022-11-28T09:16:07.3314418Z" + "startTime": "2023-02-20T10:23:28.0512404Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/58837644-bfce-4ad7-907c-7ecf33f7f331?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/cbc7642f-7c31-4f4a-83cc-6368218d490a?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-350158af22b0314ebf9ef6197c79922d-f0e6e45d0f58204c-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "7188fed53ac27d78058cd58387007fd1", + "traceparent": "00-5e2753ee097e333196393b7381d5962f-b5efc34b19d3262f-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "54f8d96681d1abcd3970a266597e4adc", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1388,31 +1326,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:18:20 GMT", + "Date": "Mon, 20 Feb 2023 10:23:47 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "0100baa2-e365-466a-bb90-284b88c49d1b", + "x-ms-correlation-request-id": "21d10a30-c0d8-4d14-90a0-b6fd39b76d95", "x-ms-ratelimit-remaining-subscription-reads": "11983", - "x-ms-request-id": "cdb618ed-dde0-465c-a199-68244962e8c8", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T091820Z:0100baa2-e365-466a-bb90-284b88c49d1b" + "x-ms-request-id": "1679722c-90cc-4fe3-9e2e-0e4465a1eb9b", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T102347Z:21d10a30-c0d8-4d14-90a0-b6fd39b76d95" }, "ResponseBody": { - "name": "44768358-cebf-d74a-907c-7ecf33f7f331", + "name": "2f64c7cb-317c-4a4f-83cc-6368218d490a", "status": "InProgress", - "startTime": "2022-11-28T09:16:07.3314418Z" + "startTime": "2023-02-20T10:23:28.0512404Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/58837644-bfce-4ad7-907c-7ecf33f7f331?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/cbc7642f-7c31-4f4a-83cc-6368218d490a?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-350158af22b0314ebf9ef6197c79922d-be7524a40d6cf947-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "fe8209ee89fd82e207900ac2aee6f912", + "traceparent": "00-5e2753ee097e333196393b7381d5962f-ef35da47cc6264f8-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "6eaa166295ce9c7d9e426d4d534fc355", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1421,66 +1359,64 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:18:52 GMT", + "Date": "Mon, 20 Feb 2023 10:24:03 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "8ac0ab2e-15c9-47f9-943b-19b83ebdad46", + "x-ms-correlation-request-id": "11123248-ccae-44a1-a8f5-ec0c4dc3aaa3", "x-ms-ratelimit-remaining-subscription-reads": "11982", - "x-ms-request-id": "8969b586-d9a0-4f40-b6fa-0dc57f528dcf", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T091853Z:8ac0ab2e-15c9-47f9-943b-19b83ebdad46" + "x-ms-request-id": "8ee4800d-6173-4063-b299-e61441b471b3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T102404Z:11123248-ccae-44a1-a8f5-ec0c4dc3aaa3" }, "ResponseBody": { - "name": "44768358-cebf-d74a-907c-7ecf33f7f331", + "name": "2f64c7cb-317c-4a4f-83cc-6368218d490a", "status": "InProgress", - "startTime": "2022-11-28T09:16:07.3314418Z" + "startTime": "2023-02-20T10:23:28.0512404Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/58837644-bfce-4ad7-907c-7ecf33f7f331?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/cbc7642f-7c31-4f4a-83cc-6368218d490a?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "Connection": "close", - "traceparent": "00-350158af22b0314ebf9ef6197c79922d-b8f174213bf91946-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "8449e200fb9e6e55e988ee2f998578eb", + "traceparent": "00-5e2753ee097e333196393b7381d5962f-a3d192e0ce8b61db-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "c91d1db9b964adb116ca6f703b8a5e10", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Connection": "close", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:19:25 GMT", + "Date": "Mon, 20 Feb 2023 10:24:36 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "87d3aefb-a6a2-40e9-8f4d-c734aacef853", + "x-ms-correlation-request-id": "01d893cf-d073-414c-9b42-650acde82742", "x-ms-ratelimit-remaining-subscription-reads": "11981", - "x-ms-request-id": "aba72233-aef0-465f-80e8-536a07cae090", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T091925Z:87d3aefb-a6a2-40e9-8f4d-c734aacef853" + "x-ms-request-id": "f7cdc4e6-7a30-483e-b4b9-1c3bfa30e30c", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T102436Z:01d893cf-d073-414c-9b42-650acde82742" }, "ResponseBody": { - "name": "44768358-cebf-d74a-907c-7ecf33f7f331", + "name": "2f64c7cb-317c-4a4f-83cc-6368218d490a", "status": "InProgress", - "startTime": "2022-11-28T09:16:07.3314418Z" + "startTime": "2023-02-20T10:23:28.0512404Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/58837644-bfce-4ad7-907c-7ecf33f7f331?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/cbc7642f-7c31-4f4a-83cc-6368218d490a?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-350158af22b0314ebf9ef6197c79922d-d707c9ec4b0b484e-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "21fb99da4ba04b571c056a3230b5ce1f", + "traceparent": "00-5e2753ee097e333196393b7381d5962f-15e1731328b3859d-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "3690ecccc1b3d0955c5bb68e148058e9", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1489,31 +1425,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:19:58 GMT", + "Date": "Mon, 20 Feb 2023 10:25:08 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "4183c3c8-092d-403a-97b1-c105bdd11a6f", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "7374fcb8-890a-43d7-9149-946fd477823b", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T091959Z:4183c3c8-092d-403a-97b1-c105bdd11a6f" + "x-ms-correlation-request-id": "657c8fe8-0cde-4cf6-b1f6-98d93ebdc6e0", + "x-ms-ratelimit-remaining-subscription-reads": "11980", + "x-ms-request-id": "d6393931-b7ef-40cb-9fd1-ac688844e0e3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T102508Z:657c8fe8-0cde-4cf6-b1f6-98d93ebdc6e0" }, "ResponseBody": { - "name": "44768358-cebf-d74a-907c-7ecf33f7f331", + "name": "2f64c7cb-317c-4a4f-83cc-6368218d490a", "status": "InProgress", - "startTime": "2022-11-28T09:16:07.3314418Z" + "startTime": "2023-02-20T10:23:28.0512404Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/58837644-bfce-4ad7-907c-7ecf33f7f331?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/cbc7642f-7c31-4f4a-83cc-6368218d490a?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-350158af22b0314ebf9ef6197c79922d-c5617ad9aba7ee4f-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "a483c293fab6f233b31314759ab2e881", + "traceparent": "00-5e2753ee097e333196393b7381d5962f-5c7b6be3c7b68fd5-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "3cad4dad8060a97864fc5803260c6113", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1522,31 +1458,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:20:30 GMT", + "Date": "Mon, 20 Feb 2023 10:25:40 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "b132aaa5-04b4-4b52-9349-96f2d0bb52d2", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "7695c8f6-c0ed-4e82-a181-dbbb91a91f1a", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T092031Z:b132aaa5-04b4-4b52-9349-96f2d0bb52d2" + "x-ms-correlation-request-id": "fdf2582b-6851-4ff7-9ed8-b91e7386ba91", + "x-ms-ratelimit-remaining-subscription-reads": "11979", + "x-ms-request-id": "51a7072c-e244-4b9e-b2a9-d97cd6b1e667", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T102541Z:fdf2582b-6851-4ff7-9ed8-b91e7386ba91" }, "ResponseBody": { - "name": "44768358-cebf-d74a-907c-7ecf33f7f331", + "name": "2f64c7cb-317c-4a4f-83cc-6368218d490a", "status": "InProgress", - "startTime": "2022-11-28T09:16:07.3314418Z" + "startTime": "2023-02-20T10:23:28.0512404Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/58837644-bfce-4ad7-907c-7ecf33f7f331?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/cbc7642f-7c31-4f4a-83cc-6368218d490a?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-350158af22b0314ebf9ef6197c79922d-1c7972bb05a0d943-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "15e81e17d8eab5728bfd689891223e34", + "traceparent": "00-5e2753ee097e333196393b7381d5962f-b9d28ddc0c2e96f4-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "66815ce48cbff7a1884d6d0902229996", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1555,31 +1491,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:21:03 GMT", + "Date": "Mon, 20 Feb 2023 10:26:13 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "15f8cc58-de6d-4fb5-9ab5-1d2a13cacf0f", - "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-request-id": "43dfd68d-8327-40c8-bc04-070082dd8002", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T092103Z:15f8cc58-de6d-4fb5-9ab5-1d2a13cacf0f" + "x-ms-correlation-request-id": "5e23be3a-b47f-4911-a2ad-88b983946902", + "x-ms-ratelimit-remaining-subscription-reads": "11978", + "x-ms-request-id": "dec2611c-d5cd-4b39-8a9b-2ece0ca548f9", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T102613Z:5e23be3a-b47f-4911-a2ad-88b983946902" }, "ResponseBody": { - "name": "44768358-cebf-d74a-907c-7ecf33f7f331", + "name": "2f64c7cb-317c-4a4f-83cc-6368218d490a", "status": "InProgress", - "startTime": "2022-11-28T09:16:07.3314418Z" + "startTime": "2023-02-20T10:23:28.0512404Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/58837644-bfce-4ad7-907c-7ecf33f7f331?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/cbc7642f-7c31-4f4a-83cc-6368218d490a?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-350158af22b0314ebf9ef6197c79922d-a31ed53d914e094f-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "d79ccfb9d302df3566086d8c36e2b169", + "traceparent": "00-5e2753ee097e333196393b7381d5962f-eb1559fa984d3e93-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "edc3867122dc4bb074e7d1b76991a94f", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1588,31 +1524,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:21:35 GMT", + "Date": "Mon, 20 Feb 2023 10:26:45 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "1906bbb7-d681-4259-8f36-b3d0e2cb3a30", - "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-request-id": "b5843235-f939-41de-b3ef-b526292deb11", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T092136Z:1906bbb7-d681-4259-8f36-b3d0e2cb3a30" + "x-ms-correlation-request-id": "c7cc868b-9403-4b62-b6d0-d991868ac497", + "x-ms-ratelimit-remaining-subscription-reads": "11977", + "x-ms-request-id": "12bd2ad2-7984-4c0e-abad-79d6397bea67", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T102645Z:c7cc868b-9403-4b62-b6d0-d991868ac497" }, "ResponseBody": { - "name": "44768358-cebf-d74a-907c-7ecf33f7f331", + "name": "2f64c7cb-317c-4a4f-83cc-6368218d490a", "status": "InProgress", - "startTime": "2022-11-28T09:16:07.3314418Z" + "startTime": "2023-02-20T10:23:28.0512404Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/58837644-bfce-4ad7-907c-7ecf33f7f331?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/cbc7642f-7c31-4f4a-83cc-6368218d490a?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-350158af22b0314ebf9ef6197c79922d-fd0da9958e383d49-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "121be81cb9cdba344fcd19b8929a6191", + "traceparent": "00-5e2753ee097e333196393b7381d5962f-e3907d02bb6f62ac-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "b8aaa2f9f2fe202aabb6b313136ea642", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1621,29 +1557,29 @@ "Cache-Control": "no-cache", "Content-Length": "170", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:22:07 GMT", + "Date": "Mon, 20 Feb 2023 10:27:18 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "3e5b6b67-48c4-447c-8e60-0554c5e8f34a", - "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "abbda69d-25b4-4d79-b73e-2d17a0c8ca9c", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T092208Z:3e5b6b67-48c4-447c-8e60-0554c5e8f34a" + "x-ms-correlation-request-id": "9b3a12a8-2906-4355-832b-7a0734ad4f44", + "x-ms-ratelimit-remaining-subscription-reads": "11976", + "x-ms-request-id": "8071f536-be7d-442c-9088-411d44137adc", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T102718Z:9b3a12a8-2906-4355-832b-7a0734ad4f44" }, "ResponseBody": { - "name": "44768358-cebf-d74a-907c-7ecf33f7f331", + "name": "2f64c7cb-317c-4a4f-83cc-6368218d490a", "status": "Succeeded", - "startTime": "2022-11-28T09:16:07.3314418Z", - "endTime": "2022-11-28T09:21:37.6129394Z" + "startTime": "2023-02-20T10:23:28.0512404Z", + "endTime": "2023-02-20T10:27:08.8474651Z" } } ], "Variables": { "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com", - "RandomSeed": "698143080", - "RESOURCE_MANAGER_URL": null, + "RandomSeed": "1690989895", + "RESOURCE_MANAGER_URL": "https://management.azure.com/", "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" } } diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/tests/SessionRecords/ContainerServiceCollectionTests/Update().json b/sdk/containerservice/Azure.ResourceManager.ContainerService/tests/SessionRecords/ContainerServiceCollectionTests/Update().json index ff45a772c901e..376f5e1d3aa38 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/tests/SessionRecords/ContainerServiceCollectionTests/Update().json +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/tests/SessionRecords/ContainerServiceCollectionTests/Update().json @@ -6,9 +6,9 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-229a99c435d3d649a6c9a48b9c8b3fba-7320caa68826d243-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "a89d181067b25ec74a272bdcbcfc8dab", + "traceparent": "00-dcbb694481575f73dd7755405c67db4d-716d287fc618e383-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "39bb35df8ab6cd898688f1f86b74384d", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -17,15 +17,15 @@ "Cache-Control": "no-cache", "Content-Length": "748", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 28 Nov 2022 08:39:33 GMT", + "Date": "Mon, 20 Feb 2023 09:49:03 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "7f6eb7b4-752b-425c-b781-dcc19eb0adf1", - "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "7f6eb7b4-752b-425c-b781-dcc19eb0adf1", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T083934Z:7f6eb7b4-752b-425c-b781-dcc19eb0adf1" + "x-ms-correlation-request-id": "3fef78c5-647f-4aa0-92a3-77c35c02e829", + "x-ms-ratelimit-remaining-subscription-reads": "11995", + "x-ms-request-id": "3fef78c5-647f-4aa0-92a3-77c35c02e829", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T094903Z:3fef78c5-647f-4aa0-92a3-77c35c02e829" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", @@ -56,16 +56,16 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testaksrg5920?api-version=**", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testaksrg8866?api-version=**", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "21", "Content-Type": "application/json", - "traceparent": "00-6b7db4abe19b464f996fbe5f85b51c15-dfc89cbaa6ff1e40-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "7f1b0c7ee11c969e440e5baa06d0c1d2", + "traceparent": "00-8bcee6150f9bc839ea427915dc82dcad-fbefde47d1df3ac3-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "4e41e15cd0d1c8bcb2ea1122d8d88d7a", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -76,19 +76,19 @@ "Cache-Control": "no-cache", "Content-Length": "223", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 28 Nov 2022 08:39:37 GMT", + "Date": "Mon, 20 Feb 2023 09:49:06 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "4845e2dc-ab46-4dd5-bdb4-b13e8f84c459", + "x-ms-correlation-request-id": "e5233c70-58cd-457b-9e4e-7fed663bae71", "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "4845e2dc-ab46-4dd5-bdb4-b13e8f84c459", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T083938Z:4845e2dc-ab46-4dd5-bdb4-b13e8f84c459" + "x-ms-request-id": "e5233c70-58cd-457b-9e4e-7fed663bae71", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T094906Z:e5233c70-58cd-457b-9e4e-7fed663bae71" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg5920", - "name": "testaksrg5920", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg8866", + "name": "testaksrg8866", "type": "Microsoft.Resources/resourceGroups", "location": "eastus", "properties": { @@ -97,16 +97,16 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg5920/providers/Microsoft.ContainerService/managedClusters/akscluster4563?api-version=2022-09-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg8866/providers/Microsoft.ContainerService/managedClusters/akscluster8364?api-version=2022-11-02-preview", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "205", "Content-Type": "application/json", - "traceparent": "00-1ed102cdc6359049a1a15cac5f5509eb-3cc59757d82f1244-00", - "User-Agent": "azsdk-net-ResourceManager.ContainerService/1.1.0-alpha.20221128.1 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "37e6ecf0cdd0e84345ab9ac46b0a2991", + "traceparent": "00-1eb694d1b091e5b6effced78c7aec8f4-f2aec1fcdc155ca3-00", + "User-Agent": "azsdk-net-ResourceManager.ContainerService/1.2.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "85261146bb8d073d77709dc006d4570b", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -129,36 +129,36 @@ }, "StatusCode": 201, "ResponseHeaders": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/452342f6-328a-449f-bf39-1b523cd042fb?api-version=2017-08-31", + "azure-asyncoperation": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/3877f7ce-25d7-4e3f-b6f6-f4b895a7a53e?api-version=2017-08-31", "Cache-Control": "no-cache", - "Content-Length": "2372", + "Content-Length": "2473", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:39:51 GMT", + "Date": "Mon, 20 Feb 2023 09:49:21 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "70c63096-bb05-4e4f-9a41-0447d4a0f398", + "x-ms-correlation-request-id": "8d5a61cd-b361-436c-ba30-470b5f8d27f8", "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "452342f6-328a-449f-bf39-1b523cd042fb", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T083952Z:70c63096-bb05-4e4f-9a41-0447d4a0f398" + "x-ms-request-id": "3877f7ce-25d7-4e3f-b6f6-f4b895a7a53e", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T094921Z:8d5a61cd-b361-436c-ba30-470b5f8d27f8" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testaksrg5920/providers/Microsoft.ContainerService/managedClusters/akscluster4563", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testaksrg8866/providers/Microsoft.ContainerService/managedClusters/akscluster8364", "location": "eastus", - "name": "akscluster4563", + "name": "akscluster8364", "type": "Microsoft.ContainerService/ManagedClusters", "properties": { "provisioningState": "Creating", "powerState": { "code": "Running" }, - "kubernetesVersion": "1.23.12", - "currentKubernetesVersion": "1.23.12", + "kubernetesVersion": "1.24.9", + "currentKubernetesVersion": "1.24.9", "dnsPrefix": "aksdotnetsdk", - "fqdn": "aksdotnetsdk-07f9495a.hcp.eastus.azmk8s.io", - "azurePortalFQDN": "aksdotnetsdk-07f9495a.portal.hcp.eastus.azmk8s.io", + "fqdn": "aksdotnetsdk-d4008782.hcp.eastus.azmk8s.io", + "azurePortalFQDN": "aksdotnetsdk-d4008782.portal.hcp.eastus.azmk8s.io", "agentPoolProfiles": [ { "name": "aksagent", @@ -173,19 +173,19 @@ "powerState": { "code": "Running" }, - "orchestratorVersion": "1.23.12", - "currentOrchestratorVersion": "1.23.12", + "orchestratorVersion": "1.24.9", + "currentOrchestratorVersion": "1.24.9", "mode": "System", "osType": "Linux", "osSKU": "Ubuntu", - "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2022.11.02", + "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2023.01.26", "enableFIPS": false } ], "servicePrincipalProfile": { "clientId": "msi" }, - "nodeResourceGroup": "MC_testaksrg5920_akscluster4563_eastus", + "nodeResourceGroup": "MC_testaksrg8866_akscluster8364_eastus", "enableRBAC": true, "networkProfile": { "networkPlugin": "kubenet", @@ -193,7 +193,8 @@ "loadBalancerProfile": { "managedOutboundIPs": { "count": 1 - } + }, + "backendPoolType": "nodeIPConfiguration" }, "podCidr": "10.244.0.0/16", "serviceCidr": "10.0.0.0/16", @@ -214,7 +215,8 @@ "securityProfile": {}, "storageProfile": { "diskCSIDriver": { - "enabled": true + "enabled": true, + "version": "v1" }, "fileCSIDriver": { "enabled": true @@ -225,11 +227,12 @@ }, "oidcIssuerProfile": { "enabled": false - } + }, + "workloadAutoScalerProfile": {} }, "identity": { "type": "SystemAssigned", - "principalId": "2ded45fb-dbfc-411a-9cb2-928ed2e782d0", + "principalId": "83b33467-b1b5-4e00-97b5-95667f4c376a", "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47" }, "sku": { @@ -239,13 +242,13 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/452342f6-328a-449f-bf39-1b523cd042fb?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/3877f7ce-25d7-4e3f-b6f6-f4b895a7a53e?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-1ed102cdc6359049a1a15cac5f5509eb-4d368390d12dca42-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "a10c1b0a5cc43faed797d73603d2d903", + "traceparent": "00-1eb694d1b091e5b6effced78c7aec8f4-df63ed18d7faddfc-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "262ee77d352726ce0347595f1e08ab16", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -254,31 +257,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:39:51 GMT", + "Date": "Mon, 20 Feb 2023 09:49:21 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "e6621933-f5ec-4256-9785-22771012fb07", - "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "da2c355c-7db3-41e5-851c-54bb7835bef1", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T083952Z:e6621933-f5ec-4256-9785-22771012fb07" + "x-ms-correlation-request-id": "5e97e2a4-20e2-4a5b-a16e-13a8cb0184ea", + "x-ms-ratelimit-remaining-subscription-reads": "11994", + "x-ms-request-id": "135be24a-c8d9-4e69-a379-ff728040800d", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T094922Z:5e97e2a4-20e2-4a5b-a16e-13a8cb0184ea" }, "ResponseBody": { - "name": "f6422345-8a32-9f44-bf39-1b523cd042fb", + "name": "cef77738-d725-3f4e-b6f6-f4b895a7a53e", "status": "InProgress", - "startTime": "2022-11-28T08:39:50.8457283Z" + "startTime": "2023-02-20T09:49:17.5417338Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/452342f6-328a-449f-bf39-1b523cd042fb?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/3877f7ce-25d7-4e3f-b6f6-f4b895a7a53e?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-1ed102cdc6359049a1a15cac5f5509eb-047845be53cc1641-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "281219327d6dfc41b5e7256274d83401", + "traceparent": "00-1eb694d1b091e5b6effced78c7aec8f4-0020f8ff21931de0-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "4aab17b95adc38ecab26148a1ac55cc9", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -287,31 +290,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:39:53 GMT", + "Date": "Mon, 20 Feb 2023 09:49:23 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "e97c517e-7be1-4a24-85c2-9757973698c3", - "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-request-id": "5a5ffb21-c4ea-4fc3-b541-e7081eb2f75d", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T083953Z:e97c517e-7be1-4a24-85c2-9757973698c3" + "x-ms-correlation-request-id": "2ddff7c8-a81e-474b-a1be-292dd9f9555b", + "x-ms-ratelimit-remaining-subscription-reads": "11993", + "x-ms-request-id": "5c85989c-0428-4595-8e9b-aec7f8b11c37", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T094923Z:2ddff7c8-a81e-474b-a1be-292dd9f9555b" }, "ResponseBody": { - "name": "f6422345-8a32-9f44-bf39-1b523cd042fb", + "name": "cef77738-d725-3f4e-b6f6-f4b895a7a53e", "status": "InProgress", - "startTime": "2022-11-28T08:39:50.8457283Z" + "startTime": "2023-02-20T09:49:17.5417338Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/452342f6-328a-449f-bf39-1b523cd042fb?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/3877f7ce-25d7-4e3f-b6f6-f4b895a7a53e?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-1ed102cdc6359049a1a15cac5f5509eb-b0f9f19e64aca140-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "50b9305388fe98cdf9147cc91b00fb3f", + "traceparent": "00-1eb694d1b091e5b6effced78c7aec8f4-e95b0750b293efce-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "1f4238c030a5f7e3be8a1c50b305e168", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -320,31 +323,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:39:54 GMT", + "Date": "Mon, 20 Feb 2023 09:49:24 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "457526ed-62ba-4460-8a39-046d561db2ec", - "x-ms-ratelimit-remaining-subscription-reads": "11986", - "x-ms-request-id": "c8b42199-718e-49a0-9c92-dda718b493a2", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T083955Z:457526ed-62ba-4460-8a39-046d561db2ec" + "x-ms-correlation-request-id": "e0c66522-b3d8-4155-a329-0ea6e945aa47", + "x-ms-ratelimit-remaining-subscription-reads": "11992", + "x-ms-request-id": "a84397e6-1024-404a-b593-57724516aada", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T094925Z:e0c66522-b3d8-4155-a329-0ea6e945aa47" }, "ResponseBody": { - "name": "f6422345-8a32-9f44-bf39-1b523cd042fb", + "name": "cef77738-d725-3f4e-b6f6-f4b895a7a53e", "status": "InProgress", - "startTime": "2022-11-28T08:39:50.8457283Z" + "startTime": "2023-02-20T09:49:17.5417338Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/452342f6-328a-449f-bf39-1b523cd042fb?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/3877f7ce-25d7-4e3f-b6f6-f4b895a7a53e?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-1ed102cdc6359049a1a15cac5f5509eb-321699ea14934d40-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "9a3955942f318cfcda0fecdc364bcaff", + "traceparent": "00-1eb694d1b091e5b6effced78c7aec8f4-d3feef25453c49ae-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "93be895765032388fbf57a0120440b3e", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -353,31 +356,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:39:55 GMT", + "Date": "Mon, 20 Feb 2023 09:49:26 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "7ebfb691-ac61-4627-80f4-5c506c21339b", - "x-ms-ratelimit-remaining-subscription-reads": "11985", - "x-ms-request-id": "a3d06160-5913-4042-87a2-b5865da9a0e1", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T083956Z:7ebfb691-ac61-4627-80f4-5c506c21339b" + "x-ms-correlation-request-id": "03dd4db3-d63d-4649-bed7-27a68e4a074e", + "x-ms-ratelimit-remaining-subscription-reads": "11991", + "x-ms-request-id": "867a5121-6704-43e0-9956-3a347341345d", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T094926Z:03dd4db3-d63d-4649-bed7-27a68e4a074e" }, "ResponseBody": { - "name": "f6422345-8a32-9f44-bf39-1b523cd042fb", + "name": "cef77738-d725-3f4e-b6f6-f4b895a7a53e", "status": "InProgress", - "startTime": "2022-11-28T08:39:50.8457283Z" + "startTime": "2023-02-20T09:49:17.5417338Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/452342f6-328a-449f-bf39-1b523cd042fb?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/3877f7ce-25d7-4e3f-b6f6-f4b895a7a53e?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-1ed102cdc6359049a1a15cac5f5509eb-8cdfe8a419994d47-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "d3e3d5628918a9054b792e580177e0b4", + "traceparent": "00-1eb694d1b091e5b6effced78c7aec8f4-bda764d120706365-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "e69f90ea8cc5887033b38c513d9b84a6", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -386,31 +389,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:39:57 GMT", + "Date": "Mon, 20 Feb 2023 09:49:28 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "fe200f68-a57c-4ccc-8fdb-200b71b251e4", - "x-ms-ratelimit-remaining-subscription-reads": "11984", - "x-ms-request-id": "12aafd40-d98f-40e1-b2c8-d14397280bdb", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T083958Z:fe200f68-a57c-4ccc-8fdb-200b71b251e4" + "x-ms-correlation-request-id": "79a6427c-8690-4965-8b9e-610335865027", + "x-ms-ratelimit-remaining-subscription-reads": "11990", + "x-ms-request-id": "781da32b-6539-4cdf-8cdc-0b6f0d670db3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T094929Z:79a6427c-8690-4965-8b9e-610335865027" }, "ResponseBody": { - "name": "f6422345-8a32-9f44-bf39-1b523cd042fb", + "name": "cef77738-d725-3f4e-b6f6-f4b895a7a53e", "status": "InProgress", - "startTime": "2022-11-28T08:39:50.8457283Z" + "startTime": "2023-02-20T09:49:17.5417338Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/452342f6-328a-449f-bf39-1b523cd042fb?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/3877f7ce-25d7-4e3f-b6f6-f4b895a7a53e?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-1ed102cdc6359049a1a15cac5f5509eb-9181df6d20f94c47-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "1fcde5ec999e24d0332d75ef9cf161ad", + "traceparent": "00-1eb694d1b091e5b6effced78c7aec8f4-808eaf21172a3789-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "9032ac45c8065ac5af1e23afb5e2d779", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -419,31 +422,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:40:03 GMT", + "Date": "Mon, 20 Feb 2023 09:49:33 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "8ca011fc-0491-4778-aaf9-5eede169cc06", - "x-ms-ratelimit-remaining-subscription-reads": "11983", - "x-ms-request-id": "6f4ec0ad-9d1a-43a2-b6fd-d7c6a4331624", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T084003Z:8ca011fc-0491-4778-aaf9-5eede169cc06" + "x-ms-correlation-request-id": "1d30573c-9027-4924-b4ee-90723b739bd2", + "x-ms-ratelimit-remaining-subscription-reads": "11989", + "x-ms-request-id": "a3c65d34-1251-4aa4-b173-de914147d12d", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T094934Z:1d30573c-9027-4924-b4ee-90723b739bd2" }, "ResponseBody": { - "name": "f6422345-8a32-9f44-bf39-1b523cd042fb", + "name": "cef77738-d725-3f4e-b6f6-f4b895a7a53e", "status": "InProgress", - "startTime": "2022-11-28T08:39:50.8457283Z" + "startTime": "2023-02-20T09:49:17.5417338Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/452342f6-328a-449f-bf39-1b523cd042fb?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/3877f7ce-25d7-4e3f-b6f6-f4b895a7a53e?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-1ed102cdc6359049a1a15cac5f5509eb-7000863ab96b8540-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "45677c4a271d0b27508f4eb701a48b62", + "traceparent": "00-1eb694d1b091e5b6effced78c7aec8f4-b40225771d8f92fb-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "2365de7ffa65caa219366050d937e660", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -452,31 +455,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:40:11 GMT", + "Date": "Mon, 20 Feb 2023 09:49:42 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "416d7f42-9c9a-4f8c-874f-ba9280761b87", - "x-ms-ratelimit-remaining-subscription-reads": "11982", - "x-ms-request-id": "67b16f1d-9bed-426f-b58f-839cd407db33", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T084011Z:416d7f42-9c9a-4f8c-874f-ba9280761b87" + "x-ms-correlation-request-id": "6f827420-33cb-4e91-acef-3fd16991bb94", + "x-ms-ratelimit-remaining-subscription-reads": "11988", + "x-ms-request-id": "6ba47551-2d38-45bb-9763-3326aa20cb6a", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T094942Z:6f827420-33cb-4e91-acef-3fd16991bb94" }, "ResponseBody": { - "name": "f6422345-8a32-9f44-bf39-1b523cd042fb", + "name": "cef77738-d725-3f4e-b6f6-f4b895a7a53e", "status": "InProgress", - "startTime": "2022-11-28T08:39:50.8457283Z" + "startTime": "2023-02-20T09:49:17.5417338Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/452342f6-328a-449f-bf39-1b523cd042fb?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/3877f7ce-25d7-4e3f-b6f6-f4b895a7a53e?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-1ed102cdc6359049a1a15cac5f5509eb-261b41cb57553d47-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "50ef372eaa7ec86105bea0eb13160d5a", + "traceparent": "00-1eb694d1b091e5b6effced78c7aec8f4-d0df7d15c7d88382-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "74bcd4717a112237ca4536a669c0d251", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -485,31 +488,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:40:27 GMT", + "Date": "Mon, 20 Feb 2023 09:49:58 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "766224a2-d67b-4371-9c8a-ab8b65e7b380", - "x-ms-ratelimit-remaining-subscription-reads": "11981", - "x-ms-request-id": "c427aa22-0494-476c-aa04-f87546ec5c2b", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T084027Z:766224a2-d67b-4371-9c8a-ab8b65e7b380" + "x-ms-correlation-request-id": "942ccf1e-7b5a-4f95-837e-107e293d372c", + "x-ms-ratelimit-remaining-subscription-reads": "11987", + "x-ms-request-id": "12f1e066-0f1b-41fa-863a-2dc7e14474b8", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T094958Z:942ccf1e-7b5a-4f95-837e-107e293d372c" }, "ResponseBody": { - "name": "f6422345-8a32-9f44-bf39-1b523cd042fb", + "name": "cef77738-d725-3f4e-b6f6-f4b895a7a53e", "status": "InProgress", - "startTime": "2022-11-28T08:39:50.8457283Z" + "startTime": "2023-02-20T09:49:17.5417338Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/452342f6-328a-449f-bf39-1b523cd042fb?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/3877f7ce-25d7-4e3f-b6f6-f4b895a7a53e?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-1ed102cdc6359049a1a15cac5f5509eb-e235fa60c5996847-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "840e80179a10c497bec1ce0e4a19228f", + "traceparent": "00-1eb694d1b091e5b6effced78c7aec8f4-77f89beee0e36f40-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "5fd112dc60354a40096877d068758178", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -518,31 +521,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:41:00 GMT", + "Date": "Mon, 20 Feb 2023 09:50:30 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "a8be97e3-f143-4239-8768-725f4ca394dd", - "x-ms-ratelimit-remaining-subscription-reads": "11980", - "x-ms-request-id": "95f00f17-e38d-40c3-bea2-148a06063ece", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T084100Z:a8be97e3-f143-4239-8768-725f4ca394dd" + "x-ms-correlation-request-id": "348c8bc8-4ea2-49eb-b60f-5d60d79f7be3", + "x-ms-ratelimit-remaining-subscription-reads": "11986", + "x-ms-request-id": "ef52907d-14fb-4d49-bdad-f696c200731a", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T095031Z:348c8bc8-4ea2-49eb-b60f-5d60d79f7be3" }, "ResponseBody": { - "name": "f6422345-8a32-9f44-bf39-1b523cd042fb", + "name": "cef77738-d725-3f4e-b6f6-f4b895a7a53e", "status": "InProgress", - "startTime": "2022-11-28T08:39:50.8457283Z" + "startTime": "2023-02-20T09:49:17.5417338Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/452342f6-328a-449f-bf39-1b523cd042fb?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/3877f7ce-25d7-4e3f-b6f6-f4b895a7a53e?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-1ed102cdc6359049a1a15cac5f5509eb-8a4ede96ca20e74c-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "64c012a211019f2f1b9e405e873bf83a", + "traceparent": "00-1eb694d1b091e5b6effced78c7aec8f4-f56c1eaf74d0b73e-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "e13ec33862260468a6435820c4fb6158", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -551,31 +554,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:41:31 GMT", + "Date": "Mon, 20 Feb 2023 09:51:03 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "55c3a20e-62ed-4097-89bc-a08b0280c3a8", - "x-ms-ratelimit-remaining-subscription-reads": "11979", - "x-ms-request-id": "e2b9f458-891d-4d79-baea-fae03ee72d6d", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T084132Z:55c3a20e-62ed-4097-89bc-a08b0280c3a8" + "x-ms-correlation-request-id": "9799b9f1-1345-4004-a6b3-82da45ce416a", + "x-ms-ratelimit-remaining-subscription-reads": "11985", + "x-ms-request-id": "0b8c0c03-121e-43b4-b21e-a734992a616b", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T095103Z:9799b9f1-1345-4004-a6b3-82da45ce416a" }, "ResponseBody": { - "name": "f6422345-8a32-9f44-bf39-1b523cd042fb", + "name": "cef77738-d725-3f4e-b6f6-f4b895a7a53e", "status": "InProgress", - "startTime": "2022-11-28T08:39:50.8457283Z" + "startTime": "2023-02-20T09:49:17.5417338Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/452342f6-328a-449f-bf39-1b523cd042fb?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/3877f7ce-25d7-4e3f-b6f6-f4b895a7a53e?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-1ed102cdc6359049a1a15cac5f5509eb-1cd0fc9c92f2d640-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "809ff48206959352a02a91bcdc527deb", + "traceparent": "00-1eb694d1b091e5b6effced78c7aec8f4-fa3236123065cba7-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "c6740f638665102a93716ba90266ba54", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -584,31 +587,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:42:04 GMT", + "Date": "Mon, 20 Feb 2023 09:51:34 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00af306b-c3e0-4ceb-ae39-b473252451f4", - "x-ms-ratelimit-remaining-subscription-reads": "11978", - "x-ms-request-id": "b06818d7-a3f5-466b-a884-9e7db2336566", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T084204Z:00af306b-c3e0-4ceb-ae39-b473252451f4" + "x-ms-correlation-request-id": "0f58b513-284c-4808-9290-a9a93fd3728e", + "x-ms-ratelimit-remaining-subscription-reads": "11984", + "x-ms-request-id": "9a1cc666-ebb2-46f9-a6ad-d33b0d328244", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T095135Z:0f58b513-284c-4808-9290-a9a93fd3728e" }, "ResponseBody": { - "name": "f6422345-8a32-9f44-bf39-1b523cd042fb", + "name": "cef77738-d725-3f4e-b6f6-f4b895a7a53e", "status": "InProgress", - "startTime": "2022-11-28T08:39:50.8457283Z" + "startTime": "2023-02-20T09:49:17.5417338Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/452342f6-328a-449f-bf39-1b523cd042fb?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/3877f7ce-25d7-4e3f-b6f6-f4b895a7a53e?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-1ed102cdc6359049a1a15cac5f5509eb-6657e44985626c4b-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "0049119ba9550659516e69715a383d83", + "traceparent": "00-1eb694d1b091e5b6effced78c7aec8f4-ef557315f5f5dd98-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "a56ebdc3f082792ba9cdb8f20820850d", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -617,31 +620,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:42:37 GMT", + "Date": "Mon, 20 Feb 2023 09:52:07 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "1309f47e-7594-4a7d-85e5-75260b526ba4", - "x-ms-ratelimit-remaining-subscription-reads": "11977", - "x-ms-request-id": "93c76c3e-b6a4-4b01-b800-775d98db26f7", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T084237Z:1309f47e-7594-4a7d-85e5-75260b526ba4" + "x-ms-correlation-request-id": "baae18fa-c190-4448-8f69-367e4581d258", + "x-ms-ratelimit-remaining-subscription-reads": "11983", + "x-ms-request-id": "189979da-d05c-4765-a8d4-e0b1509be718", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T095208Z:baae18fa-c190-4448-8f69-367e4581d258" }, "ResponseBody": { - "name": "f6422345-8a32-9f44-bf39-1b523cd042fb", + "name": "cef77738-d725-3f4e-b6f6-f4b895a7a53e", "status": "InProgress", - "startTime": "2022-11-28T08:39:50.8457283Z" + "startTime": "2023-02-20T09:49:17.5417338Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/452342f6-328a-449f-bf39-1b523cd042fb?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/3877f7ce-25d7-4e3f-b6f6-f4b895a7a53e?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-1ed102cdc6359049a1a15cac5f5509eb-f1e0e636bd23784a-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "568c94c9a2799cf9c02cc3d67f72c3c9", + "traceparent": "00-1eb694d1b091e5b6effced78c7aec8f4-9d11804110c2c64d-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "596c1f06ba01b213992e4eb4f7bf013f", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -650,31 +653,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:43:09 GMT", + "Date": "Mon, 20 Feb 2023 09:52:39 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "a4d0136d-e6a3-41ff-9925-d6bdd50e9a7c", - "x-ms-ratelimit-remaining-subscription-reads": "11976", - "x-ms-request-id": "4d07bf71-6754-46e6-91b5-cd4d8ab2689c", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T084309Z:a4d0136d-e6a3-41ff-9925-d6bdd50e9a7c" + "x-ms-correlation-request-id": "53fd3fda-2c08-45ea-bbc9-63acc3781a51", + "x-ms-ratelimit-remaining-subscription-reads": "11982", + "x-ms-request-id": "817513c6-befc-4442-9f3c-6c07e1c759a9", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T095240Z:53fd3fda-2c08-45ea-bbc9-63acc3781a51" }, "ResponseBody": { - "name": "f6422345-8a32-9f44-bf39-1b523cd042fb", + "name": "cef77738-d725-3f4e-b6f6-f4b895a7a53e", "status": "InProgress", - "startTime": "2022-11-28T08:39:50.8457283Z" + "startTime": "2023-02-20T09:49:17.5417338Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/452342f6-328a-449f-bf39-1b523cd042fb?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/3877f7ce-25d7-4e3f-b6f6-f4b895a7a53e?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-1ed102cdc6359049a1a15cac5f5509eb-70460ba9a3f0f44f-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "75c25421f7f2d9e49a992f279ce03968", + "traceparent": "00-1eb694d1b091e5b6effced78c7aec8f4-581572b89c2d7426-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "075c0489bc8d73d6e3fa1c98cd370872", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -683,31 +686,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:43:41 GMT", + "Date": "Mon, 20 Feb 2023 09:53:13 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "14e0dcde-7390-41af-bd0f-d98e92fc593a", - "x-ms-ratelimit-remaining-subscription-reads": "11975", - "x-ms-request-id": "c495b991-ad4e-4b10-9aa2-7452195b5ba2", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T084342Z:14e0dcde-7390-41af-bd0f-d98e92fc593a" + "x-ms-correlation-request-id": "af36230e-6068-41a5-91ca-368c99c24679", + "x-ms-ratelimit-remaining-subscription-reads": "11981", + "x-ms-request-id": "294e5d40-b9c0-499c-bbb2-a7321ef1e78d", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T095313Z:af36230e-6068-41a5-91ca-368c99c24679" }, "ResponseBody": { - "name": "f6422345-8a32-9f44-bf39-1b523cd042fb", + "name": "cef77738-d725-3f4e-b6f6-f4b895a7a53e", "status": "InProgress", - "startTime": "2022-11-28T08:39:50.8457283Z" + "startTime": "2023-02-20T09:49:17.5417338Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/452342f6-328a-449f-bf39-1b523cd042fb?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/3877f7ce-25d7-4e3f-b6f6-f4b895a7a53e?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-1ed102cdc6359049a1a15cac5f5509eb-1e8d6b28966c0342-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "47f20eed26c5f97218ad3f28e58387de", + "traceparent": "00-1eb694d1b091e5b6effced78c7aec8f4-a3e9d21eda799065-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "e3a25dec61fa0853a9bc0b54a27781ea", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -716,101 +719,99 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:44:15 GMT", + "Date": "Mon, 20 Feb 2023 09:53:45 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "4d581f54-9aef-412c-b642-e0d6ae02d812", - "x-ms-ratelimit-remaining-subscription-reads": "11974", - "x-ms-request-id": "59ba87af-3cf6-492e-a03c-7ca49b727a9d", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T084415Z:4d581f54-9aef-412c-b642-e0d6ae02d812" + "x-ms-correlation-request-id": "e45af3fb-bfeb-496c-b845-ee0c083d2137", + "x-ms-ratelimit-remaining-subscription-reads": "11980", + "x-ms-request-id": "dcace819-9c15-4431-9514-5c918bb82d35", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T095346Z:e45af3fb-bfeb-496c-b845-ee0c083d2137" }, "ResponseBody": { - "name": "f6422345-8a32-9f44-bf39-1b523cd042fb", + "name": "cef77738-d725-3f4e-b6f6-f4b895a7a53e", "status": "InProgress", - "startTime": "2022-11-28T08:39:50.8457283Z" + "startTime": "2023-02-20T09:49:17.5417338Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/452342f6-328a-449f-bf39-1b523cd042fb?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/3877f7ce-25d7-4e3f-b6f6-f4b895a7a53e?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "Connection": "close", - "traceparent": "00-1ed102cdc6359049a1a15cac5f5509eb-a35c13df23de7546-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "054f9fabc775d190afb3bce073d1ffdf", + "traceparent": "00-1eb694d1b091e5b6effced78c7aec8f4-a8a680b8a11048db-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "036979cb7ec34a8049f975069e7be461", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Connection": "close", "Content-Length": "170", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:44:46 GMT", + "Date": "Mon, 20 Feb 2023 09:54:17 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "f9bd375f-6e0a-4c0b-a121-448fcb8a3e97", - "x-ms-ratelimit-remaining-subscription-reads": "11973", - "x-ms-request-id": "6f917cd1-e818-406b-b8d5-25d105fa9895", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T084447Z:f9bd375f-6e0a-4c0b-a121-448fcb8a3e97" + "x-ms-correlation-request-id": "3bafc25f-e632-4101-af56-63f84c7da2dd", + "x-ms-ratelimit-remaining-subscription-reads": "11979", + "x-ms-request-id": "55995096-e3c4-46c9-b3ac-84c97a9d6ce7", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T095418Z:3bafc25f-e632-4101-af56-63f84c7da2dd" }, "ResponseBody": { - "name": "f6422345-8a32-9f44-bf39-1b523cd042fb", + "name": "cef77738-d725-3f4e-b6f6-f4b895a7a53e", "status": "Succeeded", - "startTime": "2022-11-28T08:39:50.8457283Z", - "endTime": "2022-11-28T08:44:37.4091656Z" + "startTime": "2023-02-20T09:49:17.5417338Z", + "endTime": "2023-02-20T09:53:52.4241871Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg5920/providers/Microsoft.ContainerService/managedClusters/akscluster4563?api-version=2022-09-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg8866/providers/Microsoft.ContainerService/managedClusters/akscluster8364?api-version=2022-11-02-preview", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-1ed102cdc6359049a1a15cac5f5509eb-7ad7a7eaafaf2d48-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "70e95bf37b80fb03e2c95d45b8bcf317", + "traceparent": "00-1eb694d1b091e5b6effced78c7aec8f4-4ef4e8a69fc1678a-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "9ac7db251e1c2845b0545dd1b081d06c", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "3019", + "Content-Length": "3120", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:44:49 GMT", + "Date": "Mon, 20 Feb 2023 09:54:18 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "d2a28180-a0d0-42e6-bf88-78403549f6bd", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "22d54c38-3bca-4e5f-ae45-1113471589db", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T084449Z:d2a28180-a0d0-42e6-bf88-78403549f6bd" + "x-ms-correlation-request-id": "664c8098-5163-4078-b907-48491e4395a4", + "x-ms-ratelimit-remaining-subscription-reads": "11978", + "x-ms-request-id": "e9297862-bae5-4da9-8575-ba1ebb577fa8", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T095419Z:664c8098-5163-4078-b907-48491e4395a4" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testaksrg5920/providers/Microsoft.ContainerService/managedClusters/akscluster4563", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testaksrg8866/providers/Microsoft.ContainerService/managedClusters/akscluster8364", "location": "eastus", - "name": "akscluster4563", + "name": "akscluster8364", "type": "Microsoft.ContainerService/ManagedClusters", "properties": { "provisioningState": "Succeeded", "powerState": { "code": "Running" }, - "kubernetesVersion": "1.23.12", - "currentKubernetesVersion": "1.23.12", + "kubernetesVersion": "1.24.9", + "currentKubernetesVersion": "1.24.9", "dnsPrefix": "aksdotnetsdk", - "fqdn": "aksdotnetsdk-07f9495a.hcp.eastus.azmk8s.io", - "azurePortalFQDN": "aksdotnetsdk-07f9495a.portal.hcp.eastus.azmk8s.io", + "fqdn": "aksdotnetsdk-d4008782.hcp.eastus.azmk8s.io", + "azurePortalFQDN": "aksdotnetsdk-d4008782.portal.hcp.eastus.azmk8s.io", "agentPoolProfiles": [ { "name": "aksagent", @@ -825,19 +826,19 @@ "powerState": { "code": "Running" }, - "orchestratorVersion": "1.23.12", - "currentOrchestratorVersion": "1.23.12", + "orchestratorVersion": "1.24.9", + "currentOrchestratorVersion": "1.24.9", "mode": "System", "osType": "Linux", "osSKU": "Ubuntu", - "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2022.11.02", + "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2023.01.26", "enableFIPS": false } ], "servicePrincipalProfile": { "clientId": "msi" }, - "nodeResourceGroup": "MC_testaksrg5920_akscluster4563_eastus", + "nodeResourceGroup": "MC_testaksrg8866_akscluster8364_eastus", "enableRBAC": true, "networkProfile": { "networkPlugin": "kubenet", @@ -848,9 +849,10 @@ }, "effectiveOutboundIPs": [ { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/MC_testaksrg5920_akscluster4563_eastus/providers/Microsoft.Network/publicIPAddresses/d0bf0bc5-3ffa-488b-88bd-d419159ef528" + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/MC_testaksrg8866_akscluster8364_eastus/providers/Microsoft.Network/publicIPAddresses/8579213c-956c-4abc-869e-ad15cb426453" } - ] + ], + "backendPoolType": "nodeIPConfiguration" }, "podCidr": "10.244.0.0/16", "serviceCidr": "10.0.0.0/16", @@ -870,15 +872,16 @@ "maxAgentPools": 100, "identityProfile": { "kubeletidentity": { - "resourceId": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/MC_testaksrg5920_akscluster4563_eastus/providers/Microsoft.ManagedIdentity/userAssignedIdentities/akscluster4563-agentpool", - "clientId": "4e487c77-4a99-4f85-8c5d-87b553e8fb0c", - "objectId": "955e90b9-8e8d-401c-bfd3-463ee067080b" + "resourceId": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/MC_testaksrg8866_akscluster8364_eastus/providers/Microsoft.ManagedIdentity/userAssignedIdentities/akscluster8364-agentpool", + "clientId": "faeedb3d-08f6-4086-88d0-0e732a1b1f0c", + "objectId": "d84ce136-5139-44a3-b9b3-119be0f071e8" } }, "securityProfile": {}, "storageProfile": { "diskCSIDriver": { - "enabled": true + "enabled": true, + "version": "v1" }, "fileCSIDriver": { "enabled": true @@ -889,11 +892,12 @@ }, "oidcIssuerProfile": { "enabled": false - } + }, + "workloadAutoScalerProfile": {} }, "identity": { "type": "SystemAssigned", - "principalId": "2ded45fb-dbfc-411a-9cb2-928ed2e782d0", + "principalId": "83b33467-b1b5-4e00-97b5-95667f4c376a", "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47" }, "sku": { @@ -903,16 +907,16 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg5920/providers/Microsoft.ContainerService/managedClusters/akscluster4563?api-version=2022-09-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg8866/providers/Microsoft.ContainerService/managedClusters/akscluster8364?api-version=2022-11-02-preview", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "Content-Length": "1724", + "Content-Length": "1808", "Content-Type": "application/json", - "traceparent": "00-f075e8273e3bdd49b525409f9650e4fc-3906bff3ddc4f342-00", - "User-Agent": "azsdk-net-ResourceManager.ContainerService/1.1.0-alpha.20221128.1 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "fc7c5012349125f27d2098116a918546", + "traceparent": "00-38b95208c56a447e72675840c1eeb842-f827a994a9dbe4c8-00", + "User-Agent": "azsdk-net-ResourceManager.ContainerService/1.2.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "54cd317904ce6eaedd579a01ec4c6a2e", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -925,7 +929,7 @@ }, "location": "eastus", "properties": { - "kubernetesVersion": "1.23.12", + "kubernetesVersion": "1.24.9", "dnsPrefix": "aksdotnetsdk", "agentPoolProfiles": [ { @@ -940,7 +944,7 @@ "osSKU": "Ubuntu", "type": "VirtualMachineScaleSets", "mode": "System", - "orchestratorVersion": "1.23.12", + "orchestratorVersion": "1.24.9", "powerState": { "code": "Running" }, @@ -953,7 +957,7 @@ "oidcIssuerProfile": { "enabled": false }, - "nodeResourceGroup": "MC_testaksrg5920_akscluster4563_eastus", + "nodeResourceGroup": "MC_testaksrg8866_akscluster8364_eastus", "enableRBAC": true, "networkProfile": { "networkPlugin": "kubenet", @@ -969,9 +973,10 @@ }, "effectiveOutboundIPs": [ { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/MC_testaksrg5920_akscluster4563_eastus/providers/Microsoft.Network/publicIPAddresses/d0bf0bc5-3ffa-488b-88bd-d419159ef528" + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/MC_testaksrg8866_akscluster8364_eastus/providers/Microsoft.Network/publicIPAddresses/8579213c-956c-4abc-869e-ad15cb426453" } - ] + ], + "backendPoolType": "nodeIPConfiguration" }, "podCidrs": [ "10.244.0.0/16" @@ -985,15 +990,16 @@ }, "identityProfile": { "kubeletidentity": { - "resourceId": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/MC_testaksrg5920_akscluster4563_eastus/providers/Microsoft.ManagedIdentity/userAssignedIdentities/akscluster4563-agentpool", - "clientId": "4e487c77-4a99-4f85-8c5d-87b553e8fb0c", - "objectId": "955e90b9-8e8d-401c-bfd3-463ee067080b" + "resourceId": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/MC_testaksrg8866_akscluster8364_eastus/providers/Microsoft.ManagedIdentity/userAssignedIdentities/akscluster8364-agentpool", + "clientId": "faeedb3d-08f6-4086-88d0-0e732a1b1f0c", + "objectId": "d84ce136-5139-44a3-b9b3-119be0f071e8" } }, "securityProfile": {}, "storageProfile": { "diskCSIDriver": { - "enabled": true + "enabled": true, + "version": "v1" }, "fileCSIDriver": { "enabled": true @@ -1001,41 +1007,42 @@ "snapshotController": { "enabled": true } - } + }, + "workloadAutoScalerProfile": {} } }, "StatusCode": 200, "ResponseHeaders": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/93b9c25b-d87f-430a-9fe6-b89e60e6488a?api-version=2017-08-31", + "azure-asyncoperation": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/df40a658-bd2a-461c-a2f4-613f8b778842?api-version=2017-08-31", "Cache-Control": "no-cache", - "Content-Length": "3015", + "Content-Length": "3151", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:44:59 GMT", + "Date": "Mon, 20 Feb 2023 09:54:28 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "dccd8b4d-8d25-4ca5-9ace-d8885623e141", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "93b9c25b-d87f-430a-9fe6-b89e60e6488a", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T084459Z:dccd8b4d-8d25-4ca5-9ace-d8885623e141" + "x-ms-correlation-request-id": "4abfbfa0-68d6-4a28-a95a-4067c220ea51", + "x-ms-ratelimit-remaining-subscription-writes": "1197", + "x-ms-request-id": "df40a658-bd2a-461c-a2f4-613f8b778842", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T095428Z:4abfbfa0-68d6-4a28-a95a-4067c220ea51" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testaksrg5920/providers/Microsoft.ContainerService/managedClusters/akscluster4563", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testaksrg8866/providers/Microsoft.ContainerService/managedClusters/akscluster8364", "location": "eastus", - "name": "akscluster4563", + "name": "akscluster8364", "type": "Microsoft.ContainerService/ManagedClusters", "properties": { "provisioningState": "Scaling", "powerState": { "code": "Running" }, - "kubernetesVersion": "1.23.12", - "currentKubernetesVersion": "1.23.12", + "kubernetesVersion": "1.24.9", + "currentKubernetesVersion": "1.24.9", "dnsPrefix": "aksdotnetsdk", - "fqdn": "aksdotnetsdk-07f9495a.hcp.eastus.azmk8s.io", - "azurePortalFQDN": "aksdotnetsdk-07f9495a.portal.hcp.eastus.azmk8s.io", + "fqdn": "aksdotnetsdk-d4008782.hcp.eastus.azmk8s.io", + "azurePortalFQDN": "aksdotnetsdk-d4008782.portal.hcp.eastus.azmk8s.io", "agentPoolProfiles": [ { "name": "aksagent", @@ -1050,19 +1057,20 @@ "powerState": { "code": "Running" }, - "orchestratorVersion": "1.23.12", - "currentOrchestratorVersion": "1.23.12", + "orchestratorVersion": "1.24.9", + "currentOrchestratorVersion": "1.24.9", + "enableCustomCATrust": false, "mode": "System", "osType": "Linux", "osSKU": "Ubuntu", - "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2022.11.02", + "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2023.01.26", "enableFIPS": false } ], "servicePrincipalProfile": { "clientId": "msi" }, - "nodeResourceGroup": "MC_testaksrg5920_akscluster4563_eastus", + "nodeResourceGroup": "MC_testaksrg8866_akscluster8364_eastus", "enableRBAC": true, "networkProfile": { "networkPlugin": "kubenet", @@ -1073,9 +1081,10 @@ }, "effectiveOutboundIPs": [ { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/MC_testaksrg5920_akscluster4563_eastus/providers/Microsoft.Network/publicIPAddresses/d0bf0bc5-3ffa-488b-88bd-d419159ef528" + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/MC_testaksrg8866_akscluster8364_eastus/providers/Microsoft.Network/publicIPAddresses/8579213c-956c-4abc-869e-ad15cb426453" } - ] + ], + "backendPoolType": "nodeIPConfiguration" }, "podCidr": "10.244.0.0/16", "serviceCidr": "10.0.0.0/16", @@ -1095,15 +1104,16 @@ "maxAgentPools": 100, "identityProfile": { "kubeletidentity": { - "resourceId": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/MC_testaksrg5920_akscluster4563_eastus/providers/Microsoft.ManagedIdentity/userAssignedIdentities/akscluster4563-agentpool", - "clientId": "4e487c77-4a99-4f85-8c5d-87b553e8fb0c", - "objectId": "955e90b9-8e8d-401c-bfd3-463ee067080b" + "resourceId": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/MC_testaksrg8866_akscluster8364_eastus/providers/Microsoft.ManagedIdentity/userAssignedIdentities/akscluster8364-agentpool", + "clientId": "faeedb3d-08f6-4086-88d0-0e732a1b1f0c", + "objectId": "d84ce136-5139-44a3-b9b3-119be0f071e8" } }, "securityProfile": {}, "storageProfile": { "diskCSIDriver": { - "enabled": true + "enabled": true, + "version": "v1" }, "fileCSIDriver": { "enabled": true @@ -1114,11 +1124,12 @@ }, "oidcIssuerProfile": { "enabled": false - } + }, + "workloadAutoScalerProfile": {} }, "identity": { "type": "SystemAssigned", - "principalId": "2ded45fb-dbfc-411a-9cb2-928ed2e782d0", + "principalId": "83b33467-b1b5-4e00-97b5-95667f4c376a", "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47" }, "sku": { @@ -1128,13 +1139,13 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/93b9c25b-d87f-430a-9fe6-b89e60e6488a?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/df40a658-bd2a-461c-a2f4-613f8b778842?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-f075e8273e3bdd49b525409f9650e4fc-bae7071694ce8949-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "23cea4bf0255be4e69c3f35fe3f29050", + "traceparent": "00-38b95208c56a447e72675840c1eeb842-8c3805318244ee94-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "6c8d08298fae21922c59bdc483443c64", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1143,64 +1154,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:44:59 GMT", + "Date": "Mon, 20 Feb 2023 09:54:28 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "8902fd2b-09c3-461f-be1b-c4857e413610", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "cd826028-9404-413e-8420-02d321b09127", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T084459Z:8902fd2b-09c3-461f-be1b-c4857e413610" - }, - "ResponseBody": { - "name": "5bc2b993-7fd8-0a43-9fe6-b89e60e6488a", - "status": "InProgress", - "startTime": "2022-11-28T08:44:56.5178612Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/93b9c25b-d87f-430a-9fe6-b89e60e6488a?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-f075e8273e3bdd49b525409f9650e4fc-77d12b38119ff14f-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "579717436a86fb7df14d603c1145bc32", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "126", - "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:45:00 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "e6a1304d-ab99-4c40-92a5-8aa670d7b5c0", - "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-request-id": "4239484d-6241-46bf-96ef-f37da1a0e4dd", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T084501Z:e6a1304d-ab99-4c40-92a5-8aa670d7b5c0" + "x-ms-correlation-request-id": "79188b88-9e84-4b21-a5fb-4c8253e0f282", + "x-ms-ratelimit-remaining-subscription-reads": "11977", + "x-ms-request-id": "10717b3d-70f9-43fa-8836-a9213832bad7", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T095428Z:79188b88-9e84-4b21-a5fb-4c8253e0f282" }, "ResponseBody": { - "name": "5bc2b993-7fd8-0a43-9fe6-b89e60e6488a", + "name": "58a640df-2abd-1c46-a2f4-613f8b778842", "status": "InProgress", - "startTime": "2022-11-28T08:44:56.5178612Z" + "startTime": "2023-02-20T09:54:26.2126277Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/93b9c25b-d87f-430a-9fe6-b89e60e6488a?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/df40a658-bd2a-461c-a2f4-613f8b778842?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-f075e8273e3bdd49b525409f9650e4fc-2a69a79c6bf81b4c-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "c552a40762c3aaf0117720d623ff4ba9", + "traceparent": "00-38b95208c56a447e72675840c1eeb842-5ef5a5b19d3f0b6a-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "06f92fe9085392bd6320208db13f4d2e", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1209,31 +1187,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:45:02 GMT", + "Date": "Mon, 20 Feb 2023 09:54:30 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "554d86b6-6080-45ff-ba1b-8828caa4229f", - "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-request-id": "45bfde94-596e-4823-ab0f-8960d6951ccc", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T084502Z:554d86b6-6080-45ff-ba1b-8828caa4229f" + "x-ms-correlation-request-id": "d9cc4868-ed0a-4886-93b2-eb4b7b0b41a0", + "x-ms-ratelimit-remaining-subscription-reads": "11976", + "x-ms-request-id": "fbf948d3-a4a0-4573-be14-33345cd17548", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T095430Z:d9cc4868-ed0a-4886-93b2-eb4b7b0b41a0" }, "ResponseBody": { - "name": "5bc2b993-7fd8-0a43-9fe6-b89e60e6488a", + "name": "58a640df-2abd-1c46-a2f4-613f8b778842", "status": "InProgress", - "startTime": "2022-11-28T08:44:56.5178612Z" + "startTime": "2023-02-20T09:54:26.2126277Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/93b9c25b-d87f-430a-9fe6-b89e60e6488a?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/df40a658-bd2a-461c-a2f4-613f8b778842?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-f075e8273e3bdd49b525409f9650e4fc-cf796674eac8ca4b-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "5168d1c3c2b3556d26d23108a212ac23", + "traceparent": "00-38b95208c56a447e72675840c1eeb842-9721c315596083de-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "e3d8d3bdfebe477f170d9b55290928ef", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1242,31 +1220,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:45:05 GMT", + "Date": "Mon, 20 Feb 2023 09:54:31 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "a1f213fc-a741-4bcc-98e7-c66b398b6834", - "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "f0a80402-7c72-4939-9a72-f514050e7f86", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T084505Z:a1f213fc-a741-4bcc-98e7-c66b398b6834" + "x-ms-correlation-request-id": "6f18be06-77f2-4238-90c5-11b00ffb7999", + "x-ms-ratelimit-remaining-subscription-reads": "11975", + "x-ms-request-id": "96d861af-309d-4b8c-9830-e1ad2eedebe4", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T095431Z:6f18be06-77f2-4238-90c5-11b00ffb7999" }, "ResponseBody": { - "name": "5bc2b993-7fd8-0a43-9fe6-b89e60e6488a", + "name": "58a640df-2abd-1c46-a2f4-613f8b778842", "status": "InProgress", - "startTime": "2022-11-28T08:44:56.5178612Z" + "startTime": "2023-02-20T09:54:26.2126277Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/93b9c25b-d87f-430a-9fe6-b89e60e6488a?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/df40a658-bd2a-461c-a2f4-613f8b778842?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-f075e8273e3bdd49b525409f9650e4fc-f45837795d3d5f42-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "3e58c006cba0e08d27ed460f4aa6d8f2", + "traceparent": "00-38b95208c56a447e72675840c1eeb842-4773ed51d2c0e3a4-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "f186ee0494b520744afb088e6e046fed", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1275,31 +1253,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:45:07 GMT", + "Date": "Mon, 20 Feb 2023 09:54:32 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "0c45a321-ebb8-461c-85bd-b55e3a4e16a3", - "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "2c81e7e9-8861-46ea-a9b6-9d17280058ab", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T084508Z:0c45a321-ebb8-461c-85bd-b55e3a4e16a3" + "x-ms-correlation-request-id": "4c175f3b-e7d7-49a0-ae7a-26052594d6e3", + "x-ms-ratelimit-remaining-subscription-reads": "11974", + "x-ms-request-id": "aee872a3-fa3a-496f-afd7-d8ce4b25546c", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T095432Z:4c175f3b-e7d7-49a0-ae7a-26052594d6e3" }, "ResponseBody": { - "name": "5bc2b993-7fd8-0a43-9fe6-b89e60e6488a", + "name": "58a640df-2abd-1c46-a2f4-613f8b778842", "status": "InProgress", - "startTime": "2022-11-28T08:44:56.5178612Z" + "startTime": "2023-02-20T09:54:26.2126277Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/93b9c25b-d87f-430a-9fe6-b89e60e6488a?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/df40a658-bd2a-461c-a2f4-613f8b778842?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-f075e8273e3bdd49b525409f9650e4fc-6599f1199015e64f-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "4078b6016adc457e37fc9ef031e708ff", + "traceparent": "00-38b95208c56a447e72675840c1eeb842-d5c494daf19211a4-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "b0068f0c586ceba5afb1ee456d68685a", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1308,31 +1286,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:45:11 GMT", + "Date": "Mon, 20 Feb 2023 09:54:35 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "eaf07e6c-2622-4696-8691-516c9dc858e3", - "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-request-id": "53fe244d-9699-497d-97f1-03fcbdb02d04", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T084512Z:eaf07e6c-2622-4696-8691-516c9dc858e3" + "x-ms-correlation-request-id": "b3c76cfb-75bf-4fb2-ada9-93a3bd4f4d5f", + "x-ms-ratelimit-remaining-subscription-reads": "11973", + "x-ms-request-id": "f83e0c4c-b8b1-42b8-be73-454e4c123174", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T095435Z:b3c76cfb-75bf-4fb2-ada9-93a3bd4f4d5f" }, "ResponseBody": { - "name": "5bc2b993-7fd8-0a43-9fe6-b89e60e6488a", + "name": "58a640df-2abd-1c46-a2f4-613f8b778842", "status": "InProgress", - "startTime": "2022-11-28T08:44:56.5178612Z" + "startTime": "2023-02-20T09:54:26.2126277Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/93b9c25b-d87f-430a-9fe6-b89e60e6488a?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/df40a658-bd2a-461c-a2f4-613f8b778842?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-f075e8273e3bdd49b525409f9650e4fc-f201d29d0f73c144-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "62d0fcca0ca7f80944882ac67b5d0a80", + "traceparent": "00-38b95208c56a447e72675840c1eeb842-b5e75c819ee66317-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "c38931f75bb829785eb799c3f5f1d812", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1341,31 +1319,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:45:20 GMT", + "Date": "Mon, 20 Feb 2023 09:54:39 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "a07bd12e-6e7b-4fe7-a013-8202d2c29f61", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "c285531b-3258-4b45-8039-760154edeffe", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T084520Z:a07bd12e-6e7b-4fe7-a013-8202d2c29f61" + "x-ms-correlation-request-id": "556ac55d-053a-45a4-8dde-7f0800b35b98", + "x-ms-ratelimit-remaining-subscription-reads": "11972", + "x-ms-request-id": "0c880e75-641f-4e66-8c5c-6bc67be9689d", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T095439Z:556ac55d-053a-45a4-8dde-7f0800b35b98" }, "ResponseBody": { - "name": "5bc2b993-7fd8-0a43-9fe6-b89e60e6488a", + "name": "58a640df-2abd-1c46-a2f4-613f8b778842", "status": "InProgress", - "startTime": "2022-11-28T08:44:56.5178612Z" + "startTime": "2023-02-20T09:54:26.2126277Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/93b9c25b-d87f-430a-9fe6-b89e60e6488a?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/df40a658-bd2a-461c-a2f4-613f8b778842?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-f075e8273e3bdd49b525409f9650e4fc-64d6865aacf3ed47-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "eb073ffa6c999c46411307a32c9caf3f", + "traceparent": "00-38b95208c56a447e72675840c1eeb842-6be206d6db9d98cb-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "9a48ad9d7702ac83489b4203a52eb2e1", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1374,31 +1352,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:45:36 GMT", + "Date": "Mon, 20 Feb 2023 09:54:47 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "95cc2459-ce07-414e-9a34-e3f75c562942", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "9f729323-1b53-4479-890b-767ee9dc30dd", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T084537Z:95cc2459-ce07-414e-9a34-e3f75c562942" + "x-ms-correlation-request-id": "8d41b5f9-2b74-45ad-b403-d87cedbb85c0", + "x-ms-ratelimit-remaining-subscription-reads": "11971", + "x-ms-request-id": "27aec7f2-807a-436b-9f88-3c154d80899f", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T095448Z:8d41b5f9-2b74-45ad-b403-d87cedbb85c0" }, "ResponseBody": { - "name": "5bc2b993-7fd8-0a43-9fe6-b89e60e6488a", + "name": "58a640df-2abd-1c46-a2f4-613f8b778842", "status": "InProgress", - "startTime": "2022-11-28T08:44:56.5178612Z" + "startTime": "2023-02-20T09:54:26.2126277Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/93b9c25b-d87f-430a-9fe6-b89e60e6488a?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/df40a658-bd2a-461c-a2f4-613f8b778842?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-f075e8273e3bdd49b525409f9650e4fc-a1e0256bb431d445-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "4d4546e475d6f44aac80fc543fb8c9d9", + "traceparent": "00-38b95208c56a447e72675840c1eeb842-e416212d55a0d072-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "3d96ae92ac7bb13416dd51b4bee2f5bd", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1407,31 +1385,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:46:09 GMT", + "Date": "Mon, 20 Feb 2023 09:55:03 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "99c015ce-ec3b-4646-b3ae-2cb8667bb95f", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "fb6d2200-ce25-43ea-9947-3d058a9e9c3b", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T084609Z:99c015ce-ec3b-4646-b3ae-2cb8667bb95f" + "x-ms-correlation-request-id": "bc70c964-e131-4256-a31b-9458dea9d9de", + "x-ms-ratelimit-remaining-subscription-reads": "11970", + "x-ms-request-id": "e11ba949-851d-49c6-af28-9947624b9d2e", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T095504Z:bc70c964-e131-4256-a31b-9458dea9d9de" }, "ResponseBody": { - "name": "5bc2b993-7fd8-0a43-9fe6-b89e60e6488a", + "name": "58a640df-2abd-1c46-a2f4-613f8b778842", "status": "InProgress", - "startTime": "2022-11-28T08:44:56.5178612Z" + "startTime": "2023-02-20T09:54:26.2126277Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/93b9c25b-d87f-430a-9fe6-b89e60e6488a?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/df40a658-bd2a-461c-a2f4-613f8b778842?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-f075e8273e3bdd49b525409f9650e4fc-7e49d3562a6cf648-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "f2f61ef11ce05d66b63320940566cca7", + "traceparent": "00-38b95208c56a447e72675840c1eeb842-baf3c1a1bf6af440-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "bfa7dbd8ce1f7f57addc7a1d18758330", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1440,31 +1418,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:46:41 GMT", + "Date": "Mon, 20 Feb 2023 09:55:36 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "7a844d53-c07f-4819-ab8b-cbbe3c85bf6b", - "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "0e2c87fb-76f0-4edb-9828-befb28210fd9", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T084642Z:7a844d53-c07f-4819-ab8b-cbbe3c85bf6b" + "x-ms-correlation-request-id": "1f8c4e99-9fe9-4e5c-b724-11f24440c679", + "x-ms-ratelimit-remaining-subscription-reads": "11969", + "x-ms-request-id": "e877525f-d2da-4cfb-b008-8874872cbabd", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T095536Z:1f8c4e99-9fe9-4e5c-b724-11f24440c679" }, "ResponseBody": { - "name": "5bc2b993-7fd8-0a43-9fe6-b89e60e6488a", + "name": "58a640df-2abd-1c46-a2f4-613f8b778842", "status": "InProgress", - "startTime": "2022-11-28T08:44:56.5178612Z" + "startTime": "2023-02-20T09:54:26.2126277Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/93b9c25b-d87f-430a-9fe6-b89e60e6488a?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/df40a658-bd2a-461c-a2f4-613f8b778842?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-f075e8273e3bdd49b525409f9650e4fc-a639048ba114594f-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "35e1ead8bc1884a9f4123e1970f15c89", + "traceparent": "00-38b95208c56a447e72675840c1eeb842-7e5f22c751c1a0cd-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "4730b7049b5bf1967997842525cfed65", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1473,31 +1451,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:47:14 GMT", + "Date": "Mon, 20 Feb 2023 09:56:08 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "4e5b6afc-0b90-4621-a336-021b808a54b5", - "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "f7a4f205-c8bf-4ec4-ba8a-fa3b3d129834", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T084714Z:4e5b6afc-0b90-4621-a336-021b808a54b5" + "x-ms-correlation-request-id": "8a5be643-b99f-4926-bd59-bbe964656365", + "x-ms-ratelimit-remaining-subscription-reads": "11968", + "x-ms-request-id": "a707581c-d388-4a6e-9f27-35aaa409beef", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T095609Z:8a5be643-b99f-4926-bd59-bbe964656365" }, "ResponseBody": { - "name": "5bc2b993-7fd8-0a43-9fe6-b89e60e6488a", + "name": "58a640df-2abd-1c46-a2f4-613f8b778842", "status": "InProgress", - "startTime": "2022-11-28T08:44:56.5178612Z" + "startTime": "2023-02-20T09:54:26.2126277Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/93b9c25b-d87f-430a-9fe6-b89e60e6488a?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/df40a658-bd2a-461c-a2f4-613f8b778842?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-f075e8273e3bdd49b525409f9650e4fc-aa52932bd3b04b41-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "0db12d49bda5c85ee0e797a255b6ef46", + "traceparent": "00-38b95208c56a447e72675840c1eeb842-e710ae9be88f84bc-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "c92a85a5f386c4c25716909f311699a1", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1506,31 +1484,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:47:46 GMT", + "Date": "Mon, 20 Feb 2023 09:56:41 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "753dc390-356b-412c-97d9-383c832237b0", - "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-request-id": "c8e1edd9-3439-49f0-93d7-ceb2b7d5ef23", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T084746Z:753dc390-356b-412c-97d9-383c832237b0" + "x-ms-correlation-request-id": "a4bdb34b-a737-4bb2-a300-a0426b45f0ad", + "x-ms-ratelimit-remaining-subscription-reads": "11967", + "x-ms-request-id": "1942a737-d46c-4ba7-9f5d-629568c1b589", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T095641Z:a4bdb34b-a737-4bb2-a300-a0426b45f0ad" }, "ResponseBody": { - "name": "5bc2b993-7fd8-0a43-9fe6-b89e60e6488a", + "name": "58a640df-2abd-1c46-a2f4-613f8b778842", "status": "InProgress", - "startTime": "2022-11-28T08:44:56.5178612Z" + "startTime": "2023-02-20T09:54:26.2126277Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/93b9c25b-d87f-430a-9fe6-b89e60e6488a?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/df40a658-bd2a-461c-a2f4-613f8b778842?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-f075e8273e3bdd49b525409f9650e4fc-13f35335e66fb24c-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "547c54b494d634c07572fecedd4cedc4", + "traceparent": "00-38b95208c56a447e72675840c1eeb842-f127573880981c12-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "07af2159adb13d6145b646884a3159de", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1539,31 +1517,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:48:19 GMT", + "Date": "Mon, 20 Feb 2023 09:57:13 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "934e5232-c03e-41aa-82ba-9c491ed4b472", - "x-ms-ratelimit-remaining-subscription-reads": "11986", - "x-ms-request-id": "d98238b9-44be-492b-9c6f-75f35c1c9d58", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T084819Z:934e5232-c03e-41aa-82ba-9c491ed4b472" + "x-ms-correlation-request-id": "bcf0af4f-4f22-43bc-852e-3b51a9eef4f5", + "x-ms-ratelimit-remaining-subscription-reads": "11966", + "x-ms-request-id": "c7fbe88b-e56b-4259-bcdc-75942434001c", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T095713Z:bcf0af4f-4f22-43bc-852e-3b51a9eef4f5" }, "ResponseBody": { - "name": "5bc2b993-7fd8-0a43-9fe6-b89e60e6488a", + "name": "58a640df-2abd-1c46-a2f4-613f8b778842", "status": "InProgress", - "startTime": "2022-11-28T08:44:56.5178612Z" + "startTime": "2023-02-20T09:54:26.2126277Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/93b9c25b-d87f-430a-9fe6-b89e60e6488a?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/df40a658-bd2a-461c-a2f4-613f8b778842?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-f075e8273e3bdd49b525409f9650e4fc-d42df57645511a49-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "d84a96d7beb51a018c19543125062e3d", + "traceparent": "00-38b95208c56a447e72675840c1eeb842-1f91aeb5230d9b0b-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "927814efba4a11a9f56bf0440bf7bf62", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1572,229 +1550,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:48:50 GMT", + "Date": "Mon, 20 Feb 2023 09:57:45 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "60d8b12e-aa97-4bad-acda-e745d3fd7c93", - "x-ms-ratelimit-remaining-subscription-reads": "11985", - "x-ms-request-id": "a46e2a09-c41c-4492-a2c6-8636c96f2bfa", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T084851Z:60d8b12e-aa97-4bad-acda-e745d3fd7c93" + "x-ms-correlation-request-id": "02d28cce-0230-449b-83de-465fe51f20a8", + "x-ms-ratelimit-remaining-subscription-reads": "11965", + "x-ms-request-id": "c08e71a7-c82f-4519-919c-8a0f7e3b5f15", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T095746Z:02d28cce-0230-449b-83de-465fe51f20a8" }, "ResponseBody": { - "name": "5bc2b993-7fd8-0a43-9fe6-b89e60e6488a", + "name": "58a640df-2abd-1c46-a2f4-613f8b778842", "status": "InProgress", - "startTime": "2022-11-28T08:44:56.5178612Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/93b9c25b-d87f-430a-9fe6-b89e60e6488a?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-f075e8273e3bdd49b525409f9650e4fc-7e777a11f2785d40-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "1b65f8230775b5b26c7c9833bf90ea93", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "170", - "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:49:23 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "3b26351a-bb74-40f8-a844-58143ed6a0b2", - "x-ms-ratelimit-remaining-subscription-reads": "11984", - "x-ms-request-id": "35d33f92-7f5c-4598-8e8b-32c62e406e1e", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T084923Z:3b26351a-bb74-40f8-a844-58143ed6a0b2" - }, - "ResponseBody": { - "name": "5bc2b993-7fd8-0a43-9fe6-b89e60e6488a", - "status": "Succeeded", - "startTime": "2022-11-28T08:44:56.5178612Z", - "endTime": "2022-11-28T08:49:17.2356689Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg5920/providers/Microsoft.ContainerService/managedClusters/akscluster4563?api-version=2022-09-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-f075e8273e3bdd49b525409f9650e4fc-2c3ca5bee78c0645-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "becbd3fa166bf5915361c8bd3f8f0f6e", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "3019", - "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:49:24 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "f8a82220-f960-418d-943c-a4c0ef238340", - "x-ms-ratelimit-remaining-subscription-reads": "11983", - "x-ms-request-id": "b78adabf-b996-421b-8278-a249f3008203", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T084925Z:f8a82220-f960-418d-943c-a4c0ef238340" - }, - "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testaksrg5920/providers/Microsoft.ContainerService/managedClusters/akscluster4563", - "location": "eastus", - "name": "akscluster4563", - "type": "Microsoft.ContainerService/ManagedClusters", - "properties": { - "provisioningState": "Succeeded", - "powerState": { - "code": "Running" - }, - "kubernetesVersion": "1.23.12", - "currentKubernetesVersion": "1.23.12", - "dnsPrefix": "aksdotnetsdk", - "fqdn": "aksdotnetsdk-07f9495a.hcp.eastus.azmk8s.io", - "azurePortalFQDN": "aksdotnetsdk-07f9495a.portal.hcp.eastus.azmk8s.io", - "agentPoolProfiles": [ - { - "name": "aksagent", - "count": 2, - "vmSize": "Standard_D2s_v3", - "osDiskSizeGB": 128, - "osDiskType": "Managed", - "kubeletDiskType": "OS", - "maxPods": 110, - "type": "VirtualMachineScaleSets", - "provisioningState": "Succeeded", - "powerState": { - "code": "Running" - }, - "orchestratorVersion": "1.23.12", - "currentOrchestratorVersion": "1.23.12", - "mode": "System", - "osType": "Linux", - "osSKU": "Ubuntu", - "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2022.11.02", - "enableFIPS": false - } - ], - "servicePrincipalProfile": { - "clientId": "msi" - }, - "nodeResourceGroup": "MC_testaksrg5920_akscluster4563_eastus", - "enableRBAC": true, - "networkProfile": { - "networkPlugin": "kubenet", - "loadBalancerSku": "Standard", - "loadBalancerProfile": { - "managedOutboundIPs": { - "count": 1 - }, - "effectiveOutboundIPs": [ - { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/MC_testaksrg5920_akscluster4563_eastus/providers/Microsoft.Network/publicIPAddresses/d0bf0bc5-3ffa-488b-88bd-d419159ef528" - } - ] - }, - "podCidr": "10.244.0.0/16", - "serviceCidr": "10.0.0.0/16", - "dnsServiceIP": "10.0.0.10", - "dockerBridgeCidr": "172.17.0.1/16", - "outboundType": "loadBalancer", - "podCidrs": [ - "10.244.0.0/16" - ], - "serviceCidrs": [ - "10.0.0.0/16" - ], - "ipFamilies": [ - "IPv4" - ] - }, - "maxAgentPools": 100, - "identityProfile": { - "kubeletidentity": { - "resourceId": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/MC_testaksrg5920_akscluster4563_eastus/providers/Microsoft.ManagedIdentity/userAssignedIdentities/akscluster4563-agentpool", - "clientId": "4e487c77-4a99-4f85-8c5d-87b553e8fb0c", - "objectId": "955e90b9-8e8d-401c-bfd3-463ee067080b" - } - }, - "securityProfile": {}, - "storageProfile": { - "diskCSIDriver": { - "enabled": true - }, - "fileCSIDriver": { - "enabled": true - }, - "snapshotController": { - "enabled": true - } - }, - "oidcIssuerProfile": { - "enabled": false - } - }, - "identity": { - "type": "SystemAssigned", - "principalId": "2ded45fb-dbfc-411a-9cb2-928ed2e782d0", - "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47" - }, - "sku": { - "name": "Basic", - "tier": "Free" - } + "startTime": "2023-02-20T09:54:26.2126277Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg5920/providers/Microsoft.ContainerService/managedClusters/akscluster4563?api-version=2022-09-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-9dc1e11dbba46347ae73f6680c7362bd-a0d483e0e93aa94d-00", - "User-Agent": "azsdk-net-ResourceManager.ContainerService/1.1.0-alpha.20221128.1 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "e5abc044d1e7cf4ee4946c3825ce5bfb", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a4f80ad6-c071-441c-ae7e-998c19e3dd6c?api-version=2017-08-31", - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 28 Nov 2022 08:49:26 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operationresults/a4f80ad6-c071-441c-ae7e-998c19e3dd6c?api-version=2017-08-31", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "2256106c-3fff-41f7-b8c0-795d0674cf6d", - "x-ms-ratelimit-remaining-subscription-deletes": "14999", - "x-ms-request-id": "a4f80ad6-c071-441c-ae7e-998c19e3dd6c", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T084927Z:2256106c-3fff-41f7-b8c0-795d0674cf6d" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a4f80ad6-c071-441c-ae7e-998c19e3dd6c?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/df40a658-bd2a-461c-a2f4-613f8b778842?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-9dc1e11dbba46347ae73f6680c7362bd-0b70f9d335fc2147-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "ffef2a6c04e428ab84fbdad6aa58cf85", + "traceparent": "00-38b95208c56a447e72675840c1eeb842-294f5ea2ec73ba32-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "04cce2fee61ff7b423ec84d0ad397a25", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1803,31 +1583,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:49:27 GMT", + "Date": "Mon, 20 Feb 2023 09:58:18 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "8d135d35-3589-4984-bf98-7e8d6d7419a1", - "x-ms-ratelimit-remaining-subscription-reads": "11982", - "x-ms-request-id": "e39e319c-1f87-4343-8c18-5df6d1a11a40", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T084927Z:8d135d35-3589-4984-bf98-7e8d6d7419a1" + "x-ms-correlation-request-id": "6b86e011-a22b-44a4-93cd-4012490d8867", + "x-ms-ratelimit-remaining-subscription-reads": "11964", + "x-ms-request-id": "f03736b7-acc3-4d3c-be4a-7c9e2371a2be", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T095818Z:6b86e011-a22b-44a4-93cd-4012490d8867" }, "ResponseBody": { - "name": "d60af8a4-71c0-1c44-ae7e-998c19e3dd6c", + "name": "58a640df-2abd-1c46-a2f4-613f8b778842", "status": "InProgress", - "startTime": "2022-11-28T08:49:27.3460778Z" + "startTime": "2023-02-20T09:54:26.2126277Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a4f80ad6-c071-441c-ae7e-998c19e3dd6c?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/df40a658-bd2a-461c-a2f4-613f8b778842?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-9dc1e11dbba46347ae73f6680c7362bd-5e528f4c72da4b4d-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "7e8ecd06be58d333ee9e7e78093b91ee", + "traceparent": "00-38b95208c56a447e72675840c1eeb842-83b3608a4c1ca4d5-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "1cafb1bd069e9e56779e1146bd1d324d", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1836,31 +1616,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:49:28 GMT", + "Date": "Mon, 20 Feb 2023 09:58:50 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "73f49b60-bce1-4c7e-b9a6-a6face290f89", - "x-ms-ratelimit-remaining-subscription-reads": "11981", - "x-ms-request-id": "63f21172-93fc-4cf8-b0d1-b4af2a867165", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T084929Z:73f49b60-bce1-4c7e-b9a6-a6face290f89" + "x-ms-correlation-request-id": "6aee08ac-cb61-4d22-9f07-785391c2562c", + "x-ms-ratelimit-remaining-subscription-reads": "11963", + "x-ms-request-id": "2d223fbe-2b8b-41a8-a3d3-02dfdd05c0b6", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T095851Z:6aee08ac-cb61-4d22-9f07-785391c2562c" }, "ResponseBody": { - "name": "d60af8a4-71c0-1c44-ae7e-998c19e3dd6c", + "name": "58a640df-2abd-1c46-a2f4-613f8b778842", "status": "InProgress", - "startTime": "2022-11-28T08:49:27.3460778Z" + "startTime": "2023-02-20T09:54:26.2126277Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a4f80ad6-c071-441c-ae7e-998c19e3dd6c?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/df40a658-bd2a-461c-a2f4-613f8b778842?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-9dc1e11dbba46347ae73f6680c7362bd-ca4b69efd22c0543-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "fbcc8f1e5cdf2a16150ecd3f95fa620f", + "traceparent": "00-38b95208c56a447e72675840c1eeb842-8de6e9c502e70739-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "678ae3f6556408bf60806e5d35d964bb", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1869,31 +1649,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:49:29 GMT", + "Date": "Mon, 20 Feb 2023 09:59:31 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "05ea85f6-afad-4947-8d16-beb08e1caac7", - "x-ms-ratelimit-remaining-subscription-reads": "11980", - "x-ms-request-id": "4191d2f9-ed69-41ba-892b-c052bc19da0c", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T084930Z:05ea85f6-afad-4947-8d16-beb08e1caac7" + "x-ms-correlation-request-id": "7540c88c-7cc9-441a-b096-d95e95ffcdf8", + "x-ms-ratelimit-remaining-subscription-reads": "11962", + "x-ms-request-id": "c38e4c83-b6f6-467b-83b4-b5b8a1fd1199", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T095931Z:7540c88c-7cc9-441a-b096-d95e95ffcdf8" }, "ResponseBody": { - "name": "d60af8a4-71c0-1c44-ae7e-998c19e3dd6c", + "name": "58a640df-2abd-1c46-a2f4-613f8b778842", "status": "InProgress", - "startTime": "2022-11-28T08:49:27.3460778Z" + "startTime": "2023-02-20T09:54:26.2126277Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a4f80ad6-c071-441c-ae7e-998c19e3dd6c?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/df40a658-bd2a-461c-a2f4-613f8b778842?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-9dc1e11dbba46347ae73f6680c7362bd-24d414a26a399a4a-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "710d439ff767ae84f71b104686331f49", + "traceparent": "00-38b95208c56a447e72675840c1eeb842-512e62e424de4785-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "5987caf1a248f7c48c2d8c80d46e3a06", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1902,31 +1682,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:49:31 GMT", + "Date": "Mon, 20 Feb 2023 10:00:02 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "8de345c9-d68e-45db-b65a-b20ef18d99ef", - "x-ms-ratelimit-remaining-subscription-reads": "11979", - "x-ms-request-id": "742771d6-795e-4240-8466-9551bbdf1530", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T084931Z:8de345c9-d68e-45db-b65a-b20ef18d99ef" + "x-ms-correlation-request-id": "3a2c58de-3777-4802-8e76-114cebfd24a5", + "x-ms-ratelimit-remaining-subscription-reads": "11961", + "x-ms-request-id": "6ba6fd7c-c312-4e60-a112-6576f029a9e1", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T100003Z:3a2c58de-3777-4802-8e76-114cebfd24a5" }, "ResponseBody": { - "name": "d60af8a4-71c0-1c44-ae7e-998c19e3dd6c", + "name": "58a640df-2abd-1c46-a2f4-613f8b778842", "status": "InProgress", - "startTime": "2022-11-28T08:49:27.3460778Z" + "startTime": "2023-02-20T09:54:26.2126277Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a4f80ad6-c071-441c-ae7e-998c19e3dd6c?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/df40a658-bd2a-461c-a2f4-613f8b778842?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-9dc1e11dbba46347ae73f6680c7362bd-ee682421b88e904e-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "1bb8eb6ad48baaa5b664694af0f33df3", + "traceparent": "00-38b95208c56a447e72675840c1eeb842-7e539f2644dbb8b1-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "c9d937ba13ae67c0f2a6bb1e97f8699e", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1935,31 +1715,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:49:33 GMT", + "Date": "Mon, 20 Feb 2023 10:00:35 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "10ab817e-8b2b-4d0b-9b2e-9ba88410730d", - "x-ms-ratelimit-remaining-subscription-reads": "11978", - "x-ms-request-id": "4521e012-6a4c-435d-8ccb-27e97d3c78b1", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T084934Z:10ab817e-8b2b-4d0b-9b2e-9ba88410730d" + "x-ms-correlation-request-id": "b27152f4-4163-4a70-9b5b-16abecbe1875", + "x-ms-ratelimit-remaining-subscription-reads": "11960", + "x-ms-request-id": "268c5ec3-4205-4669-b971-17392aac2267", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T100036Z:b27152f4-4163-4a70-9b5b-16abecbe1875" }, "ResponseBody": { - "name": "d60af8a4-71c0-1c44-ae7e-998c19e3dd6c", + "name": "58a640df-2abd-1c46-a2f4-613f8b778842", "status": "InProgress", - "startTime": "2022-11-28T08:49:27.3460778Z" + "startTime": "2023-02-20T09:54:26.2126277Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a4f80ad6-c071-441c-ae7e-998c19e3dd6c?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/df40a658-bd2a-461c-a2f4-613f8b778842?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-9dc1e11dbba46347ae73f6680c7362bd-7625e3be3522864e-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "c5d96e3c1f2d27870a1d04c34bd0a3e2", + "traceparent": "00-38b95208c56a447e72675840c1eeb842-5ab16ed7d2a39f00-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "f354553ad99553051f92da37c83e34f2", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1968,132 +1748,233 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:49:37 GMT", + "Date": "Mon, 20 Feb 2023 10:01:08 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "06908af6-1a04-4c31-9831-2d5664f14971", - "x-ms-ratelimit-remaining-subscription-reads": "11977", - "x-ms-request-id": "56385d1a-ffff-4396-b03a-11dd6a8ac72a", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T084938Z:06908af6-1a04-4c31-9831-2d5664f14971" + "x-ms-correlation-request-id": "8012b29e-77c5-4c1d-9a99-c2367047af6e", + "x-ms-ratelimit-remaining-subscription-reads": "11959", + "x-ms-request-id": "4bdd50bf-5e89-4ad8-8628-9df77d882add", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T100108Z:8012b29e-77c5-4c1d-9a99-c2367047af6e" }, "ResponseBody": { - "name": "d60af8a4-71c0-1c44-ae7e-998c19e3dd6c", + "name": "58a640df-2abd-1c46-a2f4-613f8b778842", "status": "InProgress", - "startTime": "2022-11-28T08:49:27.3460778Z" + "startTime": "2023-02-20T09:54:26.2126277Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a4f80ad6-c071-441c-ae7e-998c19e3dd6c?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/df40a658-bd2a-461c-a2f4-613f8b778842?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-9dc1e11dbba46347ae73f6680c7362bd-a52b099966c56043-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "a9d583ee4742ca839d63bb028d3abd03", + "traceparent": "00-38b95208c56a447e72675840c1eeb842-482642ced3a829ab-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "fea368469a00dd0d091f66a1e6a56094", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "126", + "Content-Length": "170", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:49:46 GMT", + "Date": "Mon, 20 Feb 2023 10:01:40 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "35626a4e-b598-457f-bac8-2ce9123c5d48", - "x-ms-ratelimit-remaining-subscription-reads": "11976", - "x-ms-request-id": "1456e32c-75ab-405c-b63f-4f6170d8105d", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T084947Z:35626a4e-b598-457f-bac8-2ce9123c5d48" + "x-ms-correlation-request-id": "aaff1d12-7732-4dbf-b7f5-a4dd72ec48e1", + "x-ms-ratelimit-remaining-subscription-reads": "11958", + "x-ms-request-id": "3296d9cc-f2f4-4787-97f1-bd9027f7cf60", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T100140Z:aaff1d12-7732-4dbf-b7f5-a4dd72ec48e1" }, "ResponseBody": { - "name": "d60af8a4-71c0-1c44-ae7e-998c19e3dd6c", - "status": "InProgress", - "startTime": "2022-11-28T08:49:27.3460778Z" + "name": "58a640df-2abd-1c46-a2f4-613f8b778842", + "status": "Succeeded", + "startTime": "2023-02-20T09:54:26.2126277Z", + "endTime": "2023-02-20T10:01:13.8338178Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a4f80ad6-c071-441c-ae7e-998c19e3dd6c?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg8866/providers/Microsoft.ContainerService/managedClusters/akscluster8364?api-version=2022-11-02-preview", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "Connection": "close", - "traceparent": "00-9dc1e11dbba46347ae73f6680c7362bd-916df3ebea136b4c-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "18091cdd59594a1b6490106dd0e25ee5", + "traceparent": "00-38b95208c56a447e72675840c1eeb842-93c52924d4478114-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "7e46eec44619e1703285aa1c39899fb4", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Connection": "close", - "Content-Length": "126", + "Content-Length": "3155", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:50:03 GMT", + "Date": "Mon, 20 Feb 2023 10:01:41 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "0681655d-264f-4a54-977b-f3e565513a71", - "x-ms-ratelimit-remaining-subscription-reads": "11975", - "x-ms-request-id": "f6247266-9f6c-442c-a937-e940e0cb42dc", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T085003Z:0681655d-264f-4a54-977b-f3e565513a71" + "x-ms-correlation-request-id": "12bf81b7-c1bb-4069-87d5-7d9824b4deb8", + "x-ms-ratelimit-remaining-subscription-reads": "11957", + "x-ms-request-id": "cbd0c505-fbd5-428d-a8f3-1ec4af3c5d00", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T100141Z:12bf81b7-c1bb-4069-87d5-7d9824b4deb8" }, "ResponseBody": { - "name": "d60af8a4-71c0-1c44-ae7e-998c19e3dd6c", - "status": "InProgress", - "startTime": "2022-11-28T08:49:27.3460778Z" + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testaksrg8866/providers/Microsoft.ContainerService/managedClusters/akscluster8364", + "location": "eastus", + "name": "akscluster8364", + "type": "Microsoft.ContainerService/ManagedClusters", + "properties": { + "provisioningState": "Succeeded", + "powerState": { + "code": "Running" + }, + "kubernetesVersion": "1.24.9", + "currentKubernetesVersion": "1.24.9", + "dnsPrefix": "aksdotnetsdk", + "fqdn": "aksdotnetsdk-d4008782.hcp.eastus.azmk8s.io", + "azurePortalFQDN": "aksdotnetsdk-d4008782.portal.hcp.eastus.azmk8s.io", + "agentPoolProfiles": [ + { + "name": "aksagent", + "count": 2, + "vmSize": "Standard_D2s_v3", + "osDiskSizeGB": 128, + "osDiskType": "Managed", + "kubeletDiskType": "OS", + "maxPods": 110, + "type": "VirtualMachineScaleSets", + "provisioningState": "Succeeded", + "powerState": { + "code": "Running" + }, + "orchestratorVersion": "1.24.9", + "currentOrchestratorVersion": "1.24.9", + "enableCustomCATrust": false, + "mode": "System", + "osType": "Linux", + "osSKU": "Ubuntu", + "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2023.01.26", + "enableFIPS": false + } + ], + "servicePrincipalProfile": { + "clientId": "msi" + }, + "nodeResourceGroup": "MC_testaksrg8866_akscluster8364_eastus", + "enableRBAC": true, + "networkProfile": { + "networkPlugin": "kubenet", + "loadBalancerSku": "Standard", + "loadBalancerProfile": { + "managedOutboundIPs": { + "count": 1 + }, + "effectiveOutboundIPs": [ + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/MC_testaksrg8866_akscluster8364_eastus/providers/Microsoft.Network/publicIPAddresses/8579213c-956c-4abc-869e-ad15cb426453" + } + ], + "backendPoolType": "nodeIPConfiguration" + }, + "podCidr": "10.244.0.0/16", + "serviceCidr": "10.0.0.0/16", + "dnsServiceIP": "10.0.0.10", + "dockerBridgeCidr": "172.17.0.1/16", + "outboundType": "loadBalancer", + "podCidrs": [ + "10.244.0.0/16" + ], + "serviceCidrs": [ + "10.0.0.0/16" + ], + "ipFamilies": [ + "IPv4" + ] + }, + "maxAgentPools": 100, + "identityProfile": { + "kubeletidentity": { + "resourceId": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/MC_testaksrg8866_akscluster8364_eastus/providers/Microsoft.ManagedIdentity/userAssignedIdentities/akscluster8364-agentpool", + "clientId": "faeedb3d-08f6-4086-88d0-0e732a1b1f0c", + "objectId": "d84ce136-5139-44a3-b9b3-119be0f071e8" + } + }, + "securityProfile": {}, + "storageProfile": { + "diskCSIDriver": { + "enabled": true, + "version": "v1" + }, + "fileCSIDriver": { + "enabled": true + }, + "snapshotController": { + "enabled": true + } + }, + "oidcIssuerProfile": { + "enabled": false + }, + "workloadAutoScalerProfile": {} + }, + "identity": { + "type": "SystemAssigned", + "principalId": "83b33467-b1b5-4e00-97b5-95667f4c376a", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47" + }, + "sku": { + "name": "Basic", + "tier": "Free" + } } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a4f80ad6-c071-441c-ae7e-998c19e3dd6c?api-version=2017-08-31", - "RequestMethod": "GET", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg8866/providers/Microsoft.ContainerService/managedClusters/akscluster8364?api-version=2022-11-02-preview", + "RequestMethod": "DELETE", "RequestHeaders": { + "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-9dc1e11dbba46347ae73f6680c7362bd-5f47c6b2c367b34b-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "6c5b87c0941ef5b1eb0e28ca648499d0", + "traceparent": "00-33107cd276450128ba76e842d00110a1-abc0a9674c2f482c-00", + "User-Agent": "azsdk-net-ResourceManager.ContainerService/1.2.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "2fd8c9726a55a09e4877e97672646c79", "x-ms-return-client-request-id": "true" }, "RequestBody": null, - "StatusCode": 200, + "StatusCode": 202, "ResponseHeaders": { + "azure-asyncoperation": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/318791b4-c893-4cac-b1de-103493b10f43?api-version=2017-08-31", "Cache-Control": "no-cache", - "Content-Length": "126", - "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:50:36 GMT", + "Content-Length": "0", + "Date": "Mon, 20 Feb 2023 10:01:42 GMT", "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operationresults/318791b4-c893-4cac-b1de-103493b10f43?api-version=2017-08-31", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "ab27eb85-506a-42c7-9b73-1d7e1c241849", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "2de6b7d1-fea6-493c-a403-c7db0c03ee26", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T085036Z:ab27eb85-506a-42c7-9b73-1d7e1c241849" + "x-ms-correlation-request-id": "a9241320-75e5-4695-a5c2-3819de1a46d8", + "x-ms-ratelimit-remaining-subscription-deletes": "14999", + "x-ms-request-id": "318791b4-c893-4cac-b1de-103493b10f43", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T100143Z:a9241320-75e5-4695-a5c2-3819de1a46d8" }, - "ResponseBody": { - "name": "d60af8a4-71c0-1c44-ae7e-998c19e3dd6c", - "status": "InProgress", - "startTime": "2022-11-28T08:49:27.3460778Z" - } + "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a4f80ad6-c071-441c-ae7e-998c19e3dd6c?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/318791b4-c893-4cac-b1de-103493b10f43?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-9dc1e11dbba46347ae73f6680c7362bd-3ef734e630780248-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "2fe600608bc69488688a45b23615fabb", + "traceparent": "00-33107cd276450128ba76e842d00110a1-68b33e0ac7a5fb62-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "1d2eb28030cd593e50a635a15cfa6ecd", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -2102,31 +1983,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:51:08 GMT", + "Date": "Mon, 20 Feb 2023 10:01:43 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "e9736bbd-2a7f-4a4b-ba68-f9cd9cbe42d2", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "4ad6f55f-26d0-4169-9a6d-ddbba71fd395", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T085109Z:e9736bbd-2a7f-4a4b-ba68-f9cd9cbe42d2" + "x-ms-correlation-request-id": "e9c3b61b-9634-4159-a5a4-30e7cda9f64a", + "x-ms-ratelimit-remaining-subscription-reads": "11956", + "x-ms-request-id": "f169e2b7-e292-4c8b-8320-4a4fbb705a28", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T100143Z:e9c3b61b-9634-4159-a5a4-30e7cda9f64a" }, "ResponseBody": { - "name": "d60af8a4-71c0-1c44-ae7e-998c19e3dd6c", + "name": "b4918731-93c8-ac4c-b1de-103493b10f43", "status": "InProgress", - "startTime": "2022-11-28T08:49:27.3460778Z" + "startTime": "2023-02-20T10:01:43.4151502Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a4f80ad6-c071-441c-ae7e-998c19e3dd6c?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/318791b4-c893-4cac-b1de-103493b10f43?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-9dc1e11dbba46347ae73f6680c7362bd-857215805b30d146-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "0641d50450de49e56b142d4b3150e6df", + "traceparent": "00-33107cd276450128ba76e842d00110a1-1a16915ec17e4e1b-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "f2e93118c516bcbcefd938929e23b057", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -2135,31 +2016,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:51:41 GMT", + "Date": "Mon, 20 Feb 2023 10:01:44 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "6f2424d6-33aa-4b13-a21b-b2f0bce03c3e", - "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-request-id": "d906b8ed-45d5-4bbd-a55e-92425e35581e", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T085141Z:6f2424d6-33aa-4b13-a21b-b2f0bce03c3e" + "x-ms-correlation-request-id": "87d75372-4a69-4aa8-a1d7-27d83ff1525e", + "x-ms-ratelimit-remaining-subscription-reads": "11955", + "x-ms-request-id": "349a9edd-7a5d-4e18-9d7d-3e65b2bdb8d0", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T100145Z:87d75372-4a69-4aa8-a1d7-27d83ff1525e" }, "ResponseBody": { - "name": "d60af8a4-71c0-1c44-ae7e-998c19e3dd6c", + "name": "b4918731-93c8-ac4c-b1de-103493b10f43", "status": "InProgress", - "startTime": "2022-11-28T08:49:27.3460778Z" + "startTime": "2023-02-20T10:01:43.4151502Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a4f80ad6-c071-441c-ae7e-998c19e3dd6c?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/318791b4-c893-4cac-b1de-103493b10f43?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-9dc1e11dbba46347ae73f6680c7362bd-dfe32ca82fdbfb40-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "cf0d3ff72ffb351ffec704944effbed5", + "traceparent": "00-33107cd276450128ba76e842d00110a1-87cdcfe7894aab49-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "bff56ad34f3502ac071989518038a2fc", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -2168,31 +2049,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:52:13 GMT", + "Date": "Mon, 20 Feb 2023 10:01:45 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "a2706216-c1e0-4887-b4ae-bb1f662dc5f7", - "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-request-id": "cb0a9eae-7b6e-4787-b1ae-53673834e690", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T085213Z:a2706216-c1e0-4887-b4ae-bb1f662dc5f7" + "x-ms-correlation-request-id": "b49de579-42c2-45a2-99bf-969c6a37f037", + "x-ms-ratelimit-remaining-subscription-reads": "11954", + "x-ms-request-id": "8cf37581-4796-4769-9c6f-ccd57a5b2370", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T100146Z:b49de579-42c2-45a2-99bf-969c6a37f037" }, "ResponseBody": { - "name": "d60af8a4-71c0-1c44-ae7e-998c19e3dd6c", + "name": "b4918731-93c8-ac4c-b1de-103493b10f43", "status": "InProgress", - "startTime": "2022-11-28T08:49:27.3460778Z" + "startTime": "2023-02-20T10:01:43.4151502Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a4f80ad6-c071-441c-ae7e-998c19e3dd6c?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/318791b4-c893-4cac-b1de-103493b10f43?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-9dc1e11dbba46347ae73f6680c7362bd-dd1f95ef99762e49-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "8ec56d1392420ff11b9dc3b15e3c6317", + "traceparent": "00-33107cd276450128ba76e842d00110a1-6e735dbe5c36903d-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "be61fe53b107bb69f6712ef3f7acba2c", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -2201,31 +2082,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:52:45 GMT", + "Date": "Mon, 20 Feb 2023 10:01:47 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "8293601e-0ebe-4f82-8de8-5fb5ba9a8ac4", - "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "ce916057-1400-46b9-b366-53ccc4dd5e7a", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T085246Z:8293601e-0ebe-4f82-8de8-5fb5ba9a8ac4" + "x-ms-correlation-request-id": "e1061382-d15d-46fe-b891-3352e984a874", + "x-ms-ratelimit-remaining-subscription-reads": "11953", + "x-ms-request-id": "7f2ba4d3-9bb0-47fb-8821-4ac30444a42e", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T100148Z:e1061382-d15d-46fe-b891-3352e984a874" }, "ResponseBody": { - "name": "d60af8a4-71c0-1c44-ae7e-998c19e3dd6c", + "name": "b4918731-93c8-ac4c-b1de-103493b10f43", "status": "InProgress", - "startTime": "2022-11-28T08:49:27.3460778Z" + "startTime": "2023-02-20T10:01:43.4151502Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a4f80ad6-c071-441c-ae7e-998c19e3dd6c?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/318791b4-c893-4cac-b1de-103493b10f43?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-9dc1e11dbba46347ae73f6680c7362bd-30320d1d0c896b49-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "f6bb65a32a08d5bfb60c07174c51fa6c", + "traceparent": "00-33107cd276450128ba76e842d00110a1-c2c0a86638eff607-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "f2cdddf5af04c99884e7ebfd3b6a3cb6", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -2234,31 +2115,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:53:17 GMT", + "Date": "Mon, 20 Feb 2023 10:01:49 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "7a1105e3-a2c7-4b3e-8b72-e8c1c12c4064", - "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "04f5b674-3706-4fbe-b182-d8736a0af6ec", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T085318Z:7a1105e3-a2c7-4b3e-8b72-e8c1c12c4064" + "x-ms-correlation-request-id": "07c80dcf-8925-4039-9ce0-2b07f485ca14", + "x-ms-ratelimit-remaining-subscription-reads": "11952", + "x-ms-request-id": "ff222041-afe6-4c0c-abd0-df259be0a22d", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T100150Z:07c80dcf-8925-4039-9ce0-2b07f485ca14" }, "ResponseBody": { - "name": "d60af8a4-71c0-1c44-ae7e-998c19e3dd6c", + "name": "b4918731-93c8-ac4c-b1de-103493b10f43", "status": "InProgress", - "startTime": "2022-11-28T08:49:27.3460778Z" + "startTime": "2023-02-20T10:01:43.4151502Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a4f80ad6-c071-441c-ae7e-998c19e3dd6c?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/318791b4-c893-4cac-b1de-103493b10f43?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-9dc1e11dbba46347ae73f6680c7362bd-cfde1aee3a2d1547-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "c3385756578b649d4efdb45e6b6dd7c2", + "traceparent": "00-33107cd276450128ba76e842d00110a1-9b78a92278662fb0-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "a03f3c36f2c12150013ac8c420b80a5b", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -2267,31 +2148,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:53:50 GMT", + "Date": "Mon, 20 Feb 2023 10:01:54 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "aa3fd5fa-2964-4db9-85dc-f843d1d3fd1a", - "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-request-id": "68f2843b-83fc-4873-bf18-0192978812cb", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T085350Z:aa3fd5fa-2964-4db9-85dc-f843d1d3fd1a" + "x-ms-correlation-request-id": "bb804879-8850-4d21-a21f-a90e643c0735", + "x-ms-ratelimit-remaining-subscription-reads": "11951", + "x-ms-request-id": "1ac1b0b5-e42a-4df6-862f-ac05d091b0d9", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T100154Z:bb804879-8850-4d21-a21f-a90e643c0735" }, "ResponseBody": { - "name": "d60af8a4-71c0-1c44-ae7e-998c19e3dd6c", + "name": "b4918731-93c8-ac4c-b1de-103493b10f43", "status": "InProgress", - "startTime": "2022-11-28T08:49:27.3460778Z" + "startTime": "2023-02-20T10:01:43.4151502Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a4f80ad6-c071-441c-ae7e-998c19e3dd6c?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/318791b4-c893-4cac-b1de-103493b10f43?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-9dc1e11dbba46347ae73f6680c7362bd-d1117a27b3512549-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "e9f0ec64c743e8ccaef0d8368bdac3c9", + "traceparent": "00-33107cd276450128ba76e842d00110a1-cf3cb9f27ca00d79-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "a25c5d5eaf6aa3f765983920c66b808c", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -2300,31 +2181,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:54:22 GMT", + "Date": "Mon, 20 Feb 2023 10:02:02 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "ecc01ad1-f76d-4432-9005-789a792cfbf0", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "ac0d9cdd-3031-45d1-93f3-ff1ef8f60fce", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T085423Z:ecc01ad1-f76d-4432-9005-789a792cfbf0" + "x-ms-correlation-request-id": "18c459cb-7678-4528-bc43-04846916380f", + "x-ms-ratelimit-remaining-subscription-reads": "11950", + "x-ms-request-id": "0f0169cd-7ef2-460f-8a8e-df3c9b70b020", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T100203Z:18c459cb-7678-4528-bc43-04846916380f" }, "ResponseBody": { - "name": "d60af8a4-71c0-1c44-ae7e-998c19e3dd6c", + "name": "b4918731-93c8-ac4c-b1de-103493b10f43", "status": "InProgress", - "startTime": "2022-11-28T08:49:27.3460778Z" + "startTime": "2023-02-20T10:01:43.4151502Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a4f80ad6-c071-441c-ae7e-998c19e3dd6c?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/318791b4-c893-4cac-b1de-103493b10f43?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-9dc1e11dbba46347ae73f6680c7362bd-153adcb0f4375f41-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "065a57a29f044b8cc856a80a76606949", + "traceparent": "00-33107cd276450128ba76e842d00110a1-c95231ab8fb0d1c2-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "bbbd77351a6c026a8dabf1cae6d4a9cc", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -2333,31 +2214,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:54:55 GMT", + "Date": "Mon, 20 Feb 2023 10:03:00 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "097252eb-8737-47a6-ab2d-d91631e6313d", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "30605868-21f7-4fe3-bf80-0d12fb12809c", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T085455Z:097252eb-8737-47a6-ab2d-d91631e6313d" + "x-ms-correlation-request-id": "2d267e2c-9da6-4181-9884-56d754df1e1e", + "x-ms-ratelimit-remaining-subscription-reads": "11949", + "x-ms-request-id": "a2ec1d63-5fb0-4a61-ba6c-0fbd44b3f954", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T100300Z:2d267e2c-9da6-4181-9884-56d754df1e1e" }, "ResponseBody": { - "name": "d60af8a4-71c0-1c44-ae7e-998c19e3dd6c", + "name": "b4918731-93c8-ac4c-b1de-103493b10f43", "status": "InProgress", - "startTime": "2022-11-28T08:49:27.3460778Z" + "startTime": "2023-02-20T10:01:43.4151502Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a4f80ad6-c071-441c-ae7e-998c19e3dd6c?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/318791b4-c893-4cac-b1de-103493b10f43?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-9dc1e11dbba46347ae73f6680c7362bd-bc217c85f2edbe43-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "5fb3453511608f288b4f159b7f67d873", + "traceparent": "00-33107cd276450128ba76e842d00110a1-9d2d4e39392a2354-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "dd9e8fdc990d874c449b3a29b92f5b95", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -2366,66 +2247,64 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:55:27 GMT", + "Date": "Mon, 20 Feb 2023 10:03:32 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "a899086e-5165-4445-9518-7409dba5fc75", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "c33f0afa-ae81-487e-a79a-f444d5f3fb63", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T085527Z:a899086e-5165-4445-9518-7409dba5fc75" + "x-ms-correlation-request-id": "6a55c2eb-084f-42f9-919c-52ae15266905", + "x-ms-ratelimit-remaining-subscription-reads": "11948", + "x-ms-request-id": "950d4df2-dded-4df8-992c-1941525c596c", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T100333Z:6a55c2eb-084f-42f9-919c-52ae15266905" }, "ResponseBody": { - "name": "d60af8a4-71c0-1c44-ae7e-998c19e3dd6c", + "name": "b4918731-93c8-ac4c-b1de-103493b10f43", "status": "InProgress", - "startTime": "2022-11-28T08:49:27.3460778Z" + "startTime": "2023-02-20T10:01:43.4151502Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a4f80ad6-c071-441c-ae7e-998c19e3dd6c?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/318791b4-c893-4cac-b1de-103493b10f43?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "Connection": "close", - "traceparent": "00-9dc1e11dbba46347ae73f6680c7362bd-e2035d1dac70fd49-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "14bbea3ad012c4be60a421ec1ec2724d", + "traceparent": "00-33107cd276450128ba76e842d00110a1-6fe3c8eacd5d7da7-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "a88e3cba4efb44eef35a15bebd2dbd91", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Connection": "close", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:56:00 GMT", + "Date": "Mon, 20 Feb 2023 10:04:04 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "dbfab9ac-66b4-4974-8729-c473eb9a6f92", - "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "f2e0c894-62b3-4d93-b87a-853638a52090", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T085600Z:dbfab9ac-66b4-4974-8729-c473eb9a6f92" + "x-ms-correlation-request-id": "53eb3ace-c285-43be-a2dc-5ae161dcd669", + "x-ms-ratelimit-remaining-subscription-reads": "11947", + "x-ms-request-id": "321aac54-6f57-4e2a-a349-63ec8f83b735", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T100405Z:53eb3ace-c285-43be-a2dc-5ae161dcd669" }, "ResponseBody": { - "name": "d60af8a4-71c0-1c44-ae7e-998c19e3dd6c", + "name": "b4918731-93c8-ac4c-b1de-103493b10f43", "status": "InProgress", - "startTime": "2022-11-28T08:49:27.3460778Z" + "startTime": "2023-02-20T10:01:43.4151502Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a4f80ad6-c071-441c-ae7e-998c19e3dd6c?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/318791b4-c893-4cac-b1de-103493b10f43?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-9dc1e11dbba46347ae73f6680c7362bd-6b7a0a642b5e8144-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "46018f86632791692ecb7bb48af1cc60", + "traceparent": "00-33107cd276450128ba76e842d00110a1-1de29ff84a34da1e-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "36436cefa2cc9b7e2b3577d1df40485d", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -2434,31 +2313,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:56:33 GMT", + "Date": "Mon, 20 Feb 2023 10:04:37 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "f3790ac7-7f0c-4fa5-87f3-3b698b3bd66d", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "8ed62d0f-c080-4235-b244-c30a1331a202", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T085633Z:f3790ac7-7f0c-4fa5-87f3-3b698b3bd66d" + "x-ms-correlation-request-id": "f9ad9499-8bec-4fc6-8486-fb4764e9f24b", + "x-ms-ratelimit-remaining-subscription-reads": "11946", + "x-ms-request-id": "0b52dc8c-a9fd-4505-b265-5fd2d69420dd", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T100437Z:f9ad9499-8bec-4fc6-8486-fb4764e9f24b" }, "ResponseBody": { - "name": "d60af8a4-71c0-1c44-ae7e-998c19e3dd6c", + "name": "b4918731-93c8-ac4c-b1de-103493b10f43", "status": "InProgress", - "startTime": "2022-11-28T08:49:27.3460778Z" + "startTime": "2023-02-20T10:01:43.4151502Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a4f80ad6-c071-441c-ae7e-998c19e3dd6c?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/318791b4-c893-4cac-b1de-103493b10f43?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-9dc1e11dbba46347ae73f6680c7362bd-24992bd5f391a540-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "8bd0357e55a4643686eeffbcef3b71c9", + "traceparent": "00-33107cd276450128ba76e842d00110a1-52a981ce99279c38-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "a9105c5000458ed1a15aeab3848dc917", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -2467,31 +2346,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:57:05 GMT", + "Date": "Mon, 20 Feb 2023 10:05:10 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "b1375971-2d9f-46d3-b4dd-8d11fedd26a8", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "8bf414af-3492-4edf-9fce-47e77b1e2625", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T085705Z:b1375971-2d9f-46d3-b4dd-8d11fedd26a8" + "x-ms-correlation-request-id": "bc8aeaa6-909c-40d2-8cee-88a6cf6301ec", + "x-ms-ratelimit-remaining-subscription-reads": "11945", + "x-ms-request-id": "fb81913d-9aa9-4bbc-a56c-1fc6be841609", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T100510Z:bc8aeaa6-909c-40d2-8cee-88a6cf6301ec" }, "ResponseBody": { - "name": "d60af8a4-71c0-1c44-ae7e-998c19e3dd6c", + "name": "b4918731-93c8-ac4c-b1de-103493b10f43", "status": "InProgress", - "startTime": "2022-11-28T08:49:27.3460778Z" + "startTime": "2023-02-20T10:01:43.4151502Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a4f80ad6-c071-441c-ae7e-998c19e3dd6c?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/318791b4-c893-4cac-b1de-103493b10f43?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-9dc1e11dbba46347ae73f6680c7362bd-a168b37dd9bc264a-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "f014c7dd9265d64b812ae547550a3a6f", + "traceparent": "00-33107cd276450128ba76e842d00110a1-bc97a0ae068779bc-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "4c3aa8de24eb17c9bef37dc5d71c64b2", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -2500,31 +2379,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:57:37 GMT", + "Date": "Mon, 20 Feb 2023 10:05:41 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "bdde525b-39fe-4d9d-af16-c0239add972f", - "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-request-id": "54ad140c-a037-4c8f-b9bf-53bf94e76513", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T085738Z:bdde525b-39fe-4d9d-af16-c0239add972f" + "x-ms-correlation-request-id": "c58dc0e4-5209-4f43-9624-8e922c10be84", + "x-ms-ratelimit-remaining-subscription-reads": "11944", + "x-ms-request-id": "db81d562-cac6-4b1f-bd9d-22f64f6db4c2", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T100542Z:c58dc0e4-5209-4f43-9624-8e922c10be84" }, "ResponseBody": { - "name": "d60af8a4-71c0-1c44-ae7e-998c19e3dd6c", + "name": "b4918731-93c8-ac4c-b1de-103493b10f43", "status": "InProgress", - "startTime": "2022-11-28T08:49:27.3460778Z" + "startTime": "2023-02-20T10:01:43.4151502Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/a4f80ad6-c071-441c-ae7e-998c19e3dd6c?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/318791b4-c893-4cac-b1de-103493b10f43?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-9dc1e11dbba46347ae73f6680c7362bd-32af3871c1095340-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "e86ec0d8e6f131a9589dbf3964aca1f3", + "traceparent": "00-33107cd276450128ba76e842d00110a1-412cbff33fd300a0-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "616eb711131cee4c9bb59571b8cb169d", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -2533,29 +2412,29 @@ "Cache-Control": "no-cache", "Content-Length": "170", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 08:58:09 GMT", + "Date": "Mon, 20 Feb 2023 10:06:14 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "4dade5b3-ed19-4806-925c-40197ca6c6eb", - "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-request-id": "f8f2470e-451c-4526-b69a-746033791724", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T085810Z:4dade5b3-ed19-4806-925c-40197ca6c6eb" + "x-ms-correlation-request-id": "36a538cf-6694-4696-88e1-f100127423dc", + "x-ms-ratelimit-remaining-subscription-reads": "11943", + "x-ms-request-id": "fa673ecf-36ce-4133-b2e3-5048859f16c4", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T100614Z:36a538cf-6694-4696-88e1-f100127423dc" }, "ResponseBody": { - "name": "d60af8a4-71c0-1c44-ae7e-998c19e3dd6c", + "name": "b4918731-93c8-ac4c-b1de-103493b10f43", "status": "Succeeded", - "startTime": "2022-11-28T08:49:27.3460778Z", - "endTime": "2022-11-28T08:58:00.0745145Z" + "startTime": "2023-02-20T10:01:43.4151502Z", + "endTime": "2023-02-20T10:06:07.6022701Z" } } ], "Variables": { "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com", - "RandomSeed": "913184168", - "RESOURCE_MANAGER_URL": null, + "RandomSeed": "140285416", + "RESOURCE_MANAGER_URL": "https://management.azure.com/", "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" } } diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/tests/SessionRecords/ContainerServiceCollectionTests/Update()Async.json b/sdk/containerservice/Azure.ResourceManager.ContainerService/tests/SessionRecords/ContainerServiceCollectionTests/Update()Async.json index 5f4ee63b1afda..1fd81dc4bafda 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/tests/SessionRecords/ContainerServiceCollectionTests/Update()Async.json +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/tests/SessionRecords/ContainerServiceCollectionTests/Update()Async.json @@ -6,9 +6,9 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-901db1c6ba1b8f4b997a8e712156bd04-93fc42cb95ab064e-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "fcb71f796c9b42ea5b3cbcbac1280407", + "traceparent": "00-48337ac23aea6a024f1030e2d147c9df-ddc11a8f022fa787-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "b883a52de96245d21b7bda92428e3f09", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -17,15 +17,15 @@ "Cache-Control": "no-cache", "Content-Length": "748", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 28 Nov 2022 09:22:16 GMT", + "Date": "Mon, 20 Feb 2023 10:27:24 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "1316adec-4e62-4e51-8dfd-3b2682f92fc8", - "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "1316adec-4e62-4e51-8dfd-3b2682f92fc8", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T092216Z:1316adec-4e62-4e51-8dfd-3b2682f92fc8" + "x-ms-correlation-request-id": "90ea2e2a-732f-4481-ae1c-098febb46f87", + "x-ms-ratelimit-remaining-subscription-reads": "11975", + "x-ms-request-id": "90ea2e2a-732f-4481-ae1c-098febb46f87", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T102724Z:90ea2e2a-732f-4481-ae1c-098febb46f87" }, "ResponseBody": { "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", @@ -56,16 +56,16 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testaksrg8261?api-version=**", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testaksrg8192?api-version=**", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "21", "Content-Type": "application/json", - "traceparent": "00-a53993593ff4a4479e237dd0334734de-a52c51a5cdbaeb4d-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "0ccd133a028e15c3e38d85afa7ddd134", + "traceparent": "00-f7576a96ca506d3570208dc511742224-cb85d9ee7fcaee01-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "b3a60c4c7d7cdd1341e94154fc7798ac", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -76,19 +76,19 @@ "Cache-Control": "no-cache", "Content-Length": "223", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 28 Nov 2022 09:22:20 GMT", + "Date": "Mon, 20 Feb 2023 10:27:28 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "1b257894-665b-462b-9ee1-9c4cde6c9d85", + "x-ms-correlation-request-id": "81d34956-f60d-454a-97db-c99c46eb0a5c", "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "1b257894-665b-462b-9ee1-9c4cde6c9d85", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T092221Z:1b257894-665b-462b-9ee1-9c4cde6c9d85" + "x-ms-request-id": "81d34956-f60d-454a-97db-c99c46eb0a5c", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T102729Z:81d34956-f60d-454a-97db-c99c46eb0a5c" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg8261", - "name": "testaksrg8261", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg8192", + "name": "testaksrg8192", "type": "Microsoft.Resources/resourceGroups", "location": "eastus", "properties": { @@ -97,16 +97,16 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg8261/providers/Microsoft.ContainerService/managedClusters/akscluster6091?api-version=2022-09-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg8192/providers/Microsoft.ContainerService/managedClusters/akscluster4775?api-version=2022-11-02-preview", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", "Content-Length": "205", "Content-Type": "application/json", - "traceparent": "00-96e08230e2580f42927bc43b5756abb4-f104c33450e8164a-00", - "User-Agent": "azsdk-net-ResourceManager.ContainerService/1.1.0-alpha.20221128.1 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "0a49b60db42dae89780adfdd3a91c245", + "traceparent": "00-efdf745755524ca6cc9a8e688d47f4d6-489e89fa8df5fdc2-00", + "User-Agent": "azsdk-net-ResourceManager.ContainerService/1.2.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "8e42cf009dd2f9d8e4346d580e0fe51c", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -129,36 +129,36 @@ }, "StatusCode": 201, "ResponseHeaders": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/e85ff47a-66e3-40cf-9e3e-f4305b5357fc?api-version=2017-08-31", + "azure-asyncoperation": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/3f7cd40c-23e9-4be9-afda-5aa5cad3c899?api-version=2017-08-31", "Cache-Control": "no-cache", - "Content-Length": "2372", + "Content-Length": "2473", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:22:34 GMT", + "Date": "Mon, 20 Feb 2023 10:27:40 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "3939b0fc-474d-4cfb-8675-f222d14cfef3", + "x-ms-correlation-request-id": "5b2a031d-afec-44b0-8000-40f253b40f67", "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "e85ff47a-66e3-40cf-9e3e-f4305b5357fc", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T092234Z:3939b0fc-474d-4cfb-8675-f222d14cfef3" + "x-ms-request-id": "3f7cd40c-23e9-4be9-afda-5aa5cad3c899", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T102740Z:5b2a031d-afec-44b0-8000-40f253b40f67" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testaksrg8261/providers/Microsoft.ContainerService/managedClusters/akscluster6091", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testaksrg8192/providers/Microsoft.ContainerService/managedClusters/akscluster4775", "location": "eastus", - "name": "akscluster6091", + "name": "akscluster4775", "type": "Microsoft.ContainerService/ManagedClusters", "properties": { "provisioningState": "Creating", "powerState": { "code": "Running" }, - "kubernetesVersion": "1.23.12", - "currentKubernetesVersion": "1.23.12", + "kubernetesVersion": "1.24.9", + "currentKubernetesVersion": "1.24.9", "dnsPrefix": "aksdotnetsdk", - "fqdn": "aksdotnetsdk-27bda621.hcp.eastus.azmk8s.io", - "azurePortalFQDN": "aksdotnetsdk-27bda621.portal.hcp.eastus.azmk8s.io", + "fqdn": "aksdotnetsdk-55664203.hcp.eastus.azmk8s.io", + "azurePortalFQDN": "aksdotnetsdk-55664203.portal.hcp.eastus.azmk8s.io", "agentPoolProfiles": [ { "name": "aksagent", @@ -173,19 +173,19 @@ "powerState": { "code": "Running" }, - "orchestratorVersion": "1.23.12", - "currentOrchestratorVersion": "1.23.12", + "orchestratorVersion": "1.24.9", + "currentOrchestratorVersion": "1.24.9", "mode": "System", "osType": "Linux", "osSKU": "Ubuntu", - "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2022.11.02", + "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2023.01.26", "enableFIPS": false } ], "servicePrincipalProfile": { "clientId": "msi" }, - "nodeResourceGroup": "MC_testaksrg8261_akscluster6091_eastus", + "nodeResourceGroup": "MC_testaksrg8192_akscluster4775_eastus", "enableRBAC": true, "networkProfile": { "networkPlugin": "kubenet", @@ -193,7 +193,8 @@ "loadBalancerProfile": { "managedOutboundIPs": { "count": 1 - } + }, + "backendPoolType": "nodeIPConfiguration" }, "podCidr": "10.244.0.0/16", "serviceCidr": "10.0.0.0/16", @@ -214,7 +215,8 @@ "securityProfile": {}, "storageProfile": { "diskCSIDriver": { - "enabled": true + "enabled": true, + "version": "v1" }, "fileCSIDriver": { "enabled": true @@ -225,11 +227,12 @@ }, "oidcIssuerProfile": { "enabled": false - } + }, + "workloadAutoScalerProfile": {} }, "identity": { "type": "SystemAssigned", - "principalId": "4b7b6314-8f2c-4f01-bcc2-cd287818738e", + "principalId": "c2a3415d-5671-494e-a138-379233ca75f8", "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47" }, "sku": { @@ -239,578 +242,642 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/e85ff47a-66e3-40cf-9e3e-f4305b5357fc?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/3f7cd40c-23e9-4be9-afda-5aa5cad3c899?api-version=2017-08-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-efdf745755524ca6cc9a8e688d47f4d6-d8b7372f8c276c92-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "708d76e553c66e7aceba9749a68433d9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "126", + "Content-Type": "application/json", + "Date": "Mon, 20 Feb 2023 10:27:40 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "nginx", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ac4f8bf3-804b-482b-b286-27a26822037a", + "x-ms-ratelimit-remaining-subscription-reads": "11974", + "x-ms-request-id": "f15dd704-af28-4af0-8bab-c61b4c44044a", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T102741Z:ac4f8bf3-804b-482b-b286-27a26822037a" + }, + "ResponseBody": { + "name": "0cd47c3f-e923-e94b-afda-5aa5cad3c899", + "status": "InProgress", + "startTime": "2023-02-20T10:27:39.4410658Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/3f7cd40c-23e9-4be9-afda-5aa5cad3c899?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-96e08230e2580f42927bc43b5756abb4-7cc8fcdd837fea4e-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "4e1b88857cbd5e0d445d15f8e437a8fb", + "traceparent": "00-efdf745755524ca6cc9a8e688d47f4d6-8fcb45860240f4f1-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "844d385b695b4fd0a7d2b3b19d4608c5", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "125", + "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:22:34 GMT", + "Date": "Mon, 20 Feb 2023 10:27:42 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "814a1fd9-3fee-4fae-8283-cb500ac1455c", - "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-request-id": "d54faf90-44bc-45ad-8e06-d05283e71434", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T092235Z:814a1fd9-3fee-4fae-8283-cb500ac1455c" + "x-ms-correlation-request-id": "07baa73e-8861-4b6e-bdc1-05774faeca28", + "x-ms-ratelimit-remaining-subscription-reads": "11973", + "x-ms-request-id": "b2f98c9c-667d-4ff6-8da4-45e5b1ad6350", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T102743Z:07baa73e-8861-4b6e-bdc1-05774faeca28" }, "ResponseBody": { - "name": "7af45fe8-e366-cf40-9e3e-f4305b5357fc", + "name": "0cd47c3f-e923-e94b-afda-5aa5cad3c899", "status": "InProgress", - "startTime": "2022-11-28T09:22:33.503578Z" + "startTime": "2023-02-20T10:27:39.4410658Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/e85ff47a-66e3-40cf-9e3e-f4305b5357fc?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/3f7cd40c-23e9-4be9-afda-5aa5cad3c899?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-96e08230e2580f42927bc43b5756abb4-0aae66332d367f40-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "41536ac285df23b799562375d5241cc4", + "traceparent": "00-efdf745755524ca6cc9a8e688d47f4d6-67e589ea2faf3cdb-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "97722b2f75815b5578cf744019dec856", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "125", + "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:22:36 GMT", + "Date": "Mon, 20 Feb 2023 10:27:43 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "23f60d11-8d61-4f5f-a26b-bc79b7b0f131", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "56d07ea8-3d42-408e-9a76-81b711f0e765", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T092236Z:23f60d11-8d61-4f5f-a26b-bc79b7b0f131" + "x-ms-correlation-request-id": "20ed4ce5-3b94-4494-909b-d6a020278093", + "x-ms-ratelimit-remaining-subscription-reads": "11972", + "x-ms-request-id": "bdb9768a-4867-4e2b-9513-2058c7f02b45", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T102744Z:20ed4ce5-3b94-4494-909b-d6a020278093" }, "ResponseBody": { - "name": "7af45fe8-e366-cf40-9e3e-f4305b5357fc", + "name": "0cd47c3f-e923-e94b-afda-5aa5cad3c899", "status": "InProgress", - "startTime": "2022-11-28T09:22:33.503578Z" + "startTime": "2023-02-20T10:27:39.4410658Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/e85ff47a-66e3-40cf-9e3e-f4305b5357fc?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/3f7cd40c-23e9-4be9-afda-5aa5cad3c899?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-96e08230e2580f42927bc43b5756abb4-9d65f5f98bf41941-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "b257f4ab7376d7878e926a24d4240eaf", + "traceparent": "00-efdf745755524ca6cc9a8e688d47f4d6-efb22ba6897ddb88-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "b83526ed80d27be6a63ec8f3a0c9d087", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "125", + "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:22:37 GMT", + "Date": "Mon, 20 Feb 2023 10:27:45 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "373490ed-b203-45d9-be8e-cf7c8ba317e8", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "abe9f1ab-e594-448b-9d77-88de9fa0b149", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T092237Z:373490ed-b203-45d9-be8e-cf7c8ba317e8" + "x-ms-correlation-request-id": "2457b905-0d6b-4a1a-aa6c-ee946d616962", + "x-ms-ratelimit-remaining-subscription-reads": "11971", + "x-ms-request-id": "b2942399-6af1-4024-93cd-408ae0228b94", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T102745Z:2457b905-0d6b-4a1a-aa6c-ee946d616962" }, "ResponseBody": { - "name": "7af45fe8-e366-cf40-9e3e-f4305b5357fc", + "name": "0cd47c3f-e923-e94b-afda-5aa5cad3c899", "status": "InProgress", - "startTime": "2022-11-28T09:22:33.503578Z" + "startTime": "2023-02-20T10:27:39.4410658Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/e85ff47a-66e3-40cf-9e3e-f4305b5357fc?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/3f7cd40c-23e9-4be9-afda-5aa5cad3c899?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-96e08230e2580f42927bc43b5756abb4-680b745f64cfd545-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "27a2e20f1d60ff0bd1f7b56659978820", + "traceparent": "00-efdf745755524ca6cc9a8e688d47f4d6-429c125a87b2ff89-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "7b19d2b19b12e657e2f10c8bf58f36c8", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "125", + "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:22:38 GMT", + "Date": "Mon, 20 Feb 2023 10:27:47 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "cd78aacf-4fe9-4e6a-8dd1-03720c78e7c7", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "8014e98f-a030-4b7a-90ee-4468dfdaa99c", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T092239Z:cd78aacf-4fe9-4e6a-8dd1-03720c78e7c7" + "x-ms-correlation-request-id": "c52e4600-2d2c-4f7a-afc6-cd740341877b", + "x-ms-ratelimit-remaining-subscription-reads": "11970", + "x-ms-request-id": "70e9b1f3-70da-46a3-a2fb-c6cac402d870", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T102748Z:c52e4600-2d2c-4f7a-afc6-cd740341877b" }, "ResponseBody": { - "name": "7af45fe8-e366-cf40-9e3e-f4305b5357fc", + "name": "0cd47c3f-e923-e94b-afda-5aa5cad3c899", "status": "InProgress", - "startTime": "2022-11-28T09:22:33.503578Z" + "startTime": "2023-02-20T10:27:39.4410658Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/e85ff47a-66e3-40cf-9e3e-f4305b5357fc?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/3f7cd40c-23e9-4be9-afda-5aa5cad3c899?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-96e08230e2580f42927bc43b5756abb4-48fb829a807b904d-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "f04c5140f6e04f84e27cb24d1b924e74", + "traceparent": "00-efdf745755524ca6cc9a8e688d47f4d6-093cb59daefd3761-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "77c35d0a5011aff344f6f143ac61baae", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "125", + "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:22:41 GMT", + "Date": "Mon, 20 Feb 2023 10:27:51 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "1355312f-cf8c-4ae6-b008-20061f204cfe", - "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "35de6a5b-b3b1-452d-81ea-ed36f89c0713", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T092241Z:1355312f-cf8c-4ae6-b008-20061f204cfe" + "x-ms-correlation-request-id": "629c6ae7-9de4-495b-9780-c2b7a9a03a03", + "x-ms-ratelimit-remaining-subscription-reads": "11969", + "x-ms-request-id": "acbaae41-b14b-4386-9f1d-699379708cbc", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T102752Z:629c6ae7-9de4-495b-9780-c2b7a9a03a03" }, "ResponseBody": { - "name": "7af45fe8-e366-cf40-9e3e-f4305b5357fc", + "name": "0cd47c3f-e923-e94b-afda-5aa5cad3c899", "status": "InProgress", - "startTime": "2022-11-28T09:22:33.503578Z" + "startTime": "2023-02-20T10:27:39.4410658Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/e85ff47a-66e3-40cf-9e3e-f4305b5357fc?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/3f7cd40c-23e9-4be9-afda-5aa5cad3c899?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-96e08230e2580f42927bc43b5756abb4-fb10461c2e4a4547-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "f3667347f4818e64e957e07fbd207ef6", + "traceparent": "00-efdf745755524ca6cc9a8e688d47f4d6-fbec2305040cea2d-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "468eecfe4dc55243ce4ed5e0745a8617", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "125", + "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:22:45 GMT", + "Date": "Mon, 20 Feb 2023 10:28:00 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "18586c64-d650-4d49-9ddd-aad0e7ab28a2", - "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "5e8def8a-c27c-41cc-907b-241d16e071c6", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T092245Z:18586c64-d650-4d49-9ddd-aad0e7ab28a2" + "x-ms-correlation-request-id": "38fdcc76-1020-4bdd-9e63-655e90a3bb32", + "x-ms-ratelimit-remaining-subscription-reads": "11968", + "x-ms-request-id": "63557932-1035-497a-82fd-e82d37e849db", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T102800Z:38fdcc76-1020-4bdd-9e63-655e90a3bb32" }, "ResponseBody": { - "name": "7af45fe8-e366-cf40-9e3e-f4305b5357fc", + "name": "0cd47c3f-e923-e94b-afda-5aa5cad3c899", "status": "InProgress", - "startTime": "2022-11-28T09:22:33.503578Z" + "startTime": "2023-02-20T10:27:39.4410658Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/e85ff47a-66e3-40cf-9e3e-f4305b5357fc?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/3f7cd40c-23e9-4be9-afda-5aa5cad3c899?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-96e08230e2580f42927bc43b5756abb4-c7bca9d5bed4254d-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "83e34a091ed818ce5d5244e46abde43e", + "traceparent": "00-efdf745755524ca6cc9a8e688d47f4d6-dda9a500277a7534-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "43e9000859056176df69361baa143a81", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "125", + "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:22:53 GMT", + "Date": "Mon, 20 Feb 2023 10:28:16 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "776a542f-8df2-4ba7-a8a0-56d505a4f5df", - "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-request-id": "065b6e32-d7fb-4d63-b03c-0108f7cbf73c", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T092254Z:776a542f-8df2-4ba7-a8a0-56d505a4f5df" + "x-ms-correlation-request-id": "1da3f8ee-8f94-4803-9bf3-bb4de13fbb3d", + "x-ms-ratelimit-remaining-subscription-reads": "11967", + "x-ms-request-id": "14c9fb47-c08e-4b0a-94e4-3241797b1dfd", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T102817Z:1da3f8ee-8f94-4803-9bf3-bb4de13fbb3d" }, "ResponseBody": { - "name": "7af45fe8-e366-cf40-9e3e-f4305b5357fc", + "name": "0cd47c3f-e923-e94b-afda-5aa5cad3c899", "status": "InProgress", - "startTime": "2022-11-28T09:22:33.503578Z" + "startTime": "2023-02-20T10:27:39.4410658Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/e85ff47a-66e3-40cf-9e3e-f4305b5357fc?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/3f7cd40c-23e9-4be9-afda-5aa5cad3c899?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-96e08230e2580f42927bc43b5756abb4-3822ed5de43d3d49-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "e51e41a995314c9eecbe0789160591c1", + "traceparent": "00-efdf745755524ca6cc9a8e688d47f4d6-528635e55f87e1f1-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "098d5d36ef00bc031970a8c27a133be9", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "125", + "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:23:10 GMT", + "Date": "Mon, 20 Feb 2023 10:28:49 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "8472d412-7b86-4b61-98be-685a0a3c5273", - "x-ms-ratelimit-remaining-subscription-reads": "11986", - "x-ms-request-id": "fb5c44be-c7ff-4648-90e5-798a84b4ba61", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T092310Z:8472d412-7b86-4b61-98be-685a0a3c5273" + "x-ms-correlation-request-id": "3a886ed9-e425-443e-a403-055246cd0dfe", + "x-ms-ratelimit-remaining-subscription-reads": "11966", + "x-ms-request-id": "495653f9-0671-41af-9044-1a1fb11c8170", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T102849Z:3a886ed9-e425-443e-a403-055246cd0dfe" }, "ResponseBody": { - "name": "7af45fe8-e366-cf40-9e3e-f4305b5357fc", + "name": "0cd47c3f-e923-e94b-afda-5aa5cad3c899", "status": "InProgress", - "startTime": "2022-11-28T09:22:33.503578Z" + "startTime": "2023-02-20T10:27:39.4410658Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/e85ff47a-66e3-40cf-9e3e-f4305b5357fc?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/3f7cd40c-23e9-4be9-afda-5aa5cad3c899?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-96e08230e2580f42927bc43b5756abb4-5d3d1ce684860748-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "d044bcfdcaaf299ca44d952eaf80232b", + "traceparent": "00-efdf745755524ca6cc9a8e688d47f4d6-18b6f2adf35f23e6-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "ac3bd9707778a5a8762d675b1727a8ba", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "125", + "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:23:42 GMT", + "Date": "Mon, 20 Feb 2023 10:29:21 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "4897f207-206e-4c8c-b17e-27657831328e", - "x-ms-ratelimit-remaining-subscription-reads": "11985", - "x-ms-request-id": "597e8488-896e-4ccc-b66d-282c100b0f20", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T092343Z:4897f207-206e-4c8c-b17e-27657831328e" + "x-ms-correlation-request-id": "8321de95-d004-462d-bb95-fecb7c52c49a", + "x-ms-ratelimit-remaining-subscription-reads": "11965", + "x-ms-request-id": "1c837f90-e578-4ae6-be20-bac28593b36f", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T102921Z:8321de95-d004-462d-bb95-fecb7c52c49a" }, "ResponseBody": { - "name": "7af45fe8-e366-cf40-9e3e-f4305b5357fc", + "name": "0cd47c3f-e923-e94b-afda-5aa5cad3c899", "status": "InProgress", - "startTime": "2022-11-28T09:22:33.503578Z" + "startTime": "2023-02-20T10:27:39.4410658Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/e85ff47a-66e3-40cf-9e3e-f4305b5357fc?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/3f7cd40c-23e9-4be9-afda-5aa5cad3c899?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-96e08230e2580f42927bc43b5756abb4-4252404b8b74ea4e-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "7cd5a272980173c5ac96961916450257", + "traceparent": "00-efdf745755524ca6cc9a8e688d47f4d6-b879482e21c09c5c-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "16a954147dcd1816fc2d2994b1b4e6cb", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "125", + "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:24:14 GMT", + "Date": "Mon, 20 Feb 2023 10:29:53 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "e99d98be-bb7b-4ec7-be4e-b8b2b9f8133d", - "x-ms-ratelimit-remaining-subscription-reads": "11984", - "x-ms-request-id": "79ae336d-ce51-40e7-950b-15309ffe250c", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T092415Z:e99d98be-bb7b-4ec7-be4e-b8b2b9f8133d" + "x-ms-correlation-request-id": "f2ea8373-b826-473e-83ae-4676f85eec2a", + "x-ms-ratelimit-remaining-subscription-reads": "11964", + "x-ms-request-id": "850e8338-91fe-40a6-bfe6-aa3a3c48f87e", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T102954Z:f2ea8373-b826-473e-83ae-4676f85eec2a" }, "ResponseBody": { - "name": "7af45fe8-e366-cf40-9e3e-f4305b5357fc", + "name": "0cd47c3f-e923-e94b-afda-5aa5cad3c899", "status": "InProgress", - "startTime": "2022-11-28T09:22:33.503578Z" + "startTime": "2023-02-20T10:27:39.4410658Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/e85ff47a-66e3-40cf-9e3e-f4305b5357fc?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/3f7cd40c-23e9-4be9-afda-5aa5cad3c899?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-96e08230e2580f42927bc43b5756abb4-7ea5bf5a35a91244-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "aee682c11379de8ea5f540e4ff6f9c6c", + "traceparent": "00-efdf745755524ca6cc9a8e688d47f4d6-64d9993a4607aae8-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "d0ab4c2e8dd9bf09b4e792d387a7a4f2", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "125", + "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:24:47 GMT", + "Date": "Mon, 20 Feb 2023 10:30:26 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "43bb82bf-03a2-4b30-80f1-b9fc2909a539", - "x-ms-ratelimit-remaining-subscription-reads": "11983", - "x-ms-request-id": "cfe880cf-2e5e-44c2-b1f9-506b1d9843d7", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T092447Z:43bb82bf-03a2-4b30-80f1-b9fc2909a539" + "x-ms-correlation-request-id": "021d8945-7336-4c1c-965f-a4166c066541", + "x-ms-ratelimit-remaining-subscription-reads": "11963", + "x-ms-request-id": "467af7ef-b222-41ad-b877-ffe047cb0669", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T103026Z:021d8945-7336-4c1c-965f-a4166c066541" }, "ResponseBody": { - "name": "7af45fe8-e366-cf40-9e3e-f4305b5357fc", + "name": "0cd47c3f-e923-e94b-afda-5aa5cad3c899", "status": "InProgress", - "startTime": "2022-11-28T09:22:33.503578Z" + "startTime": "2023-02-20T10:27:39.4410658Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/e85ff47a-66e3-40cf-9e3e-f4305b5357fc?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/3f7cd40c-23e9-4be9-afda-5aa5cad3c899?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "Connection": "close", - "traceparent": "00-96e08230e2580f42927bc43b5756abb4-262c03b1eb661948-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "7316dc9a143064bff6d024183382125f", + "traceparent": "00-efdf745755524ca6cc9a8e688d47f4d6-977be606c8f6294c-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "26adeec82469f31bc222af4a4e14f4c2", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Connection": "close", - "Content-Length": "125", + "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:25:19 GMT", + "Date": "Mon, 20 Feb 2023 10:30:58 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "a8efb99e-bc01-4d53-899b-ea5b482f8ebc", - "x-ms-ratelimit-remaining-subscription-reads": "11982", - "x-ms-request-id": "cc87b99a-db5e-4472-a71e-b5d3247a0c73", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T092520Z:a8efb99e-bc01-4d53-899b-ea5b482f8ebc" + "x-ms-correlation-request-id": "21e4cca8-ad79-467e-acb5-01eb7dbde63e", + "x-ms-ratelimit-remaining-subscription-reads": "11962", + "x-ms-request-id": "a06004a5-4499-4f4b-87c9-0bcd83b133d7", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T103059Z:21e4cca8-ad79-467e-acb5-01eb7dbde63e" }, "ResponseBody": { - "name": "7af45fe8-e366-cf40-9e3e-f4305b5357fc", + "name": "0cd47c3f-e923-e94b-afda-5aa5cad3c899", "status": "InProgress", - "startTime": "2022-11-28T09:22:33.503578Z" + "startTime": "2023-02-20T10:27:39.4410658Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/e85ff47a-66e3-40cf-9e3e-f4305b5357fc?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/3f7cd40c-23e9-4be9-afda-5aa5cad3c899?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-96e08230e2580f42927bc43b5756abb4-0655a74c82971343-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "2c6d3d4a75995fb213f6d70c58e1733d", + "traceparent": "00-efdf745755524ca6cc9a8e688d47f4d6-fdea4f10d4092370-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "cb2d9b46d77c86e14bea62e6ea439054", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "125", + "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:25:53 GMT", + "Date": "Mon, 20 Feb 2023 10:31:31 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "a74b67d1-e31e-4c31-b36e-7a340e9bf37b", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "6efd3b4b-87b1-4d89-8d73-891e8e0fc789", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T092554Z:a74b67d1-e31e-4c31-b36e-7a340e9bf37b" + "x-ms-correlation-request-id": "514f7197-cedf-4611-ab56-7e197a7e434d", + "x-ms-ratelimit-remaining-subscription-reads": "11961", + "x-ms-request-id": "409a83b5-b432-46df-91f3-e4d58645ff67", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T103131Z:514f7197-cedf-4611-ab56-7e197a7e434d" }, "ResponseBody": { - "name": "7af45fe8-e366-cf40-9e3e-f4305b5357fc", + "name": "0cd47c3f-e923-e94b-afda-5aa5cad3c899", "status": "InProgress", - "startTime": "2022-11-28T09:22:33.503578Z" + "startTime": "2023-02-20T10:27:39.4410658Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/e85ff47a-66e3-40cf-9e3e-f4305b5357fc?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/3f7cd40c-23e9-4be9-afda-5aa5cad3c899?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-96e08230e2580f42927bc43b5756abb4-696d76fb9e7e474c-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "3a7e2afa8e2eac27c281b7a8ef76aa22", + "traceparent": "00-efdf745755524ca6cc9a8e688d47f4d6-bfaaeee69e3169f0-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "c3cc3788c006096230b70db6debe70a0", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "125", + "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:26:25 GMT", + "Date": "Mon, 20 Feb 2023 10:32:03 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "bb5d42be-3dcf-491e-88ce-9dff4a5012ea", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "6e4b4f70-4fdf-4624-867a-391edf88ce15", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T092626Z:bb5d42be-3dcf-491e-88ce-9dff4a5012ea" + "x-ms-correlation-request-id": "e4a201ba-8d29-4559-9190-66e000d1f0ed", + "x-ms-ratelimit-remaining-subscription-reads": "11960", + "x-ms-request-id": "6d80d08b-a963-480e-ac56-061a4bf0fa0f", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T103203Z:e4a201ba-8d29-4559-9190-66e000d1f0ed" }, "ResponseBody": { - "name": "7af45fe8-e366-cf40-9e3e-f4305b5357fc", + "name": "0cd47c3f-e923-e94b-afda-5aa5cad3c899", "status": "InProgress", - "startTime": "2022-11-28T09:22:33.503578Z" + "startTime": "2023-02-20T10:27:39.4410658Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/e85ff47a-66e3-40cf-9e3e-f4305b5357fc?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/3f7cd40c-23e9-4be9-afda-5aa5cad3c899?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-96e08230e2580f42927bc43b5756abb4-7f0d73f4e8e56e48-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "c199e0e26f0125d22ab760393db30c15", + "traceparent": "00-efdf745755524ca6cc9a8e688d47f4d6-27b4acae04e9044c-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "eb8cd0f3d97af1750c27db7fc235087f", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "125", + "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:26:58 GMT", + "Date": "Mon, 20 Feb 2023 10:32:36 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "6028aaf1-1487-4bda-8981-c29319562541", - "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-request-id": "ccd6e9d1-585f-4ea8-97df-a3f6d9a4b4fb", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T092658Z:6028aaf1-1487-4bda-8981-c29319562541" + "x-ms-correlation-request-id": "1b1621f3-1622-44d8-9abe-6b0179f3509e", + "x-ms-ratelimit-remaining-subscription-reads": "11959", + "x-ms-request-id": "1052df7c-19b0-4c68-a3d8-df1f7a9fefdd", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T103236Z:1b1621f3-1622-44d8-9abe-6b0179f3509e" }, "ResponseBody": { - "name": "7af45fe8-e366-cf40-9e3e-f4305b5357fc", + "name": "0cd47c3f-e923-e94b-afda-5aa5cad3c899", "status": "InProgress", - "startTime": "2022-11-28T09:22:33.503578Z" + "startTime": "2023-02-20T10:27:39.4410658Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/e85ff47a-66e3-40cf-9e3e-f4305b5357fc?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/3f7cd40c-23e9-4be9-afda-5aa5cad3c899?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-96e08230e2580f42927bc43b5756abb4-94fe6145a795b449-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "091ee75cd803bc3016c06918be096f9c", + "traceparent": "00-efdf745755524ca6cc9a8e688d47f4d6-a412799e91e5df10-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "16c25a92314786bb39239ac4ca2ba88d", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "169", + "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:27:30 GMT", + "Date": "Mon, 20 Feb 2023 10:33:08 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "085eab5d-3258-4a5f-96fe-cbfccc6765e1", - "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-request-id": "a19a48c7-84df-44dd-a95a-d1993550adc3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T092731Z:085eab5d-3258-4a5f-96fe-cbfccc6765e1" + "x-ms-correlation-request-id": "e68c8659-b7ee-4a28-a6de-49e1352ab05b", + "x-ms-ratelimit-remaining-subscription-reads": "11958", + "x-ms-request-id": "0bc5388a-825b-4c2b-8fae-2ab343ffe8b6", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T103309Z:e68c8659-b7ee-4a28-a6de-49e1352ab05b" }, "ResponseBody": { - "name": "7af45fe8-e366-cf40-9e3e-f4305b5357fc", + "name": "0cd47c3f-e923-e94b-afda-5aa5cad3c899", + "status": "InProgress", + "startTime": "2023-02-20T10:27:39.4410658Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/3f7cd40c-23e9-4be9-afda-5aa5cad3c899?api-version=2017-08-31", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-efdf745755524ca6cc9a8e688d47f4d6-c2a0e3ca9a412973-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "1af2c179a4b6aedac1dab6dfe4e247fa", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "170", + "Content-Type": "application/json", + "Date": "Mon, 20 Feb 2023 10:33:41 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "nginx", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "094b9979-a008-46aa-97eb-04b9bb5db314", + "x-ms-ratelimit-remaining-subscription-reads": "11957", + "x-ms-request-id": "404b4ea3-8cee-47c0-8c9e-32f28ff7bd66", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T103341Z:094b9979-a008-46aa-97eb-04b9bb5db314" + }, + "ResponseBody": { + "name": "0cd47c3f-e923-e94b-afda-5aa5cad3c899", "status": "Succeeded", - "startTime": "2022-11-28T09:22:33.503578Z", - "endTime": "2022-11-28T09:27:10.3254575Z" + "startTime": "2023-02-20T10:27:39.4410658Z", + "endTime": "2023-02-20T10:33:33.8441855Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg8261/providers/Microsoft.ContainerService/managedClusters/akscluster6091?api-version=2022-09-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg8192/providers/Microsoft.ContainerService/managedClusters/akscluster4775?api-version=2022-11-02-preview", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-96e08230e2580f42927bc43b5756abb4-3fe9227705595348-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "772ab44cb1478a3b575910772dee6f0f", + "traceparent": "00-efdf745755524ca6cc9a8e688d47f4d6-8a18978842ed329d-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "83248eaf5afbc2581406b1573fb127e1", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "3019", + "Content-Length": "3120", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:27:31 GMT", + "Date": "Mon, 20 Feb 2023 10:33:42 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "06a66754-8d83-407f-b65f-15a12568b432", - "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "c079f69b-3099-43a8-a486-868566edcf58", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T092732Z:06a66754-8d83-407f-b65f-15a12568b432" + "x-ms-correlation-request-id": "d6774096-f19c-40fe-8dfa-6dcd98532268", + "x-ms-ratelimit-remaining-subscription-reads": "11956", + "x-ms-request-id": "d7a86d44-1790-4d65-9a87-ff3fc11825ab", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T103342Z:d6774096-f19c-40fe-8dfa-6dcd98532268" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testaksrg8261/providers/Microsoft.ContainerService/managedClusters/akscluster6091", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testaksrg8192/providers/Microsoft.ContainerService/managedClusters/akscluster4775", "location": "eastus", - "name": "akscluster6091", + "name": "akscluster4775", "type": "Microsoft.ContainerService/ManagedClusters", "properties": { "provisioningState": "Succeeded", "powerState": { "code": "Running" }, - "kubernetesVersion": "1.23.12", - "currentKubernetesVersion": "1.23.12", + "kubernetesVersion": "1.24.9", + "currentKubernetesVersion": "1.24.9", "dnsPrefix": "aksdotnetsdk", - "fqdn": "aksdotnetsdk-27bda621.hcp.eastus.azmk8s.io", - "azurePortalFQDN": "aksdotnetsdk-27bda621.portal.hcp.eastus.azmk8s.io", + "fqdn": "aksdotnetsdk-55664203.hcp.eastus.azmk8s.io", + "azurePortalFQDN": "aksdotnetsdk-55664203.portal.hcp.eastus.azmk8s.io", "agentPoolProfiles": [ { "name": "aksagent", @@ -825,19 +892,19 @@ "powerState": { "code": "Running" }, - "orchestratorVersion": "1.23.12", - "currentOrchestratorVersion": "1.23.12", + "orchestratorVersion": "1.24.9", + "currentOrchestratorVersion": "1.24.9", "mode": "System", "osType": "Linux", "osSKU": "Ubuntu", - "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2022.11.02", + "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2023.01.26", "enableFIPS": false } ], "servicePrincipalProfile": { "clientId": "msi" }, - "nodeResourceGroup": "MC_testaksrg8261_akscluster6091_eastus", + "nodeResourceGroup": "MC_testaksrg8192_akscluster4775_eastus", "enableRBAC": true, "networkProfile": { "networkPlugin": "kubenet", @@ -848,9 +915,10 @@ }, "effectiveOutboundIPs": [ { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/MC_testaksrg8261_akscluster6091_eastus/providers/Microsoft.Network/publicIPAddresses/f25890c2-20dc-4591-aac7-61880a662dbb" + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/MC_testaksrg8192_akscluster4775_eastus/providers/Microsoft.Network/publicIPAddresses/b08df931-183d-4530-a075-c8252d7e3898" } - ] + ], + "backendPoolType": "nodeIPConfiguration" }, "podCidr": "10.244.0.0/16", "serviceCidr": "10.0.0.0/16", @@ -870,15 +938,16 @@ "maxAgentPools": 100, "identityProfile": { "kubeletidentity": { - "resourceId": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/MC_testaksrg8261_akscluster6091_eastus/providers/Microsoft.ManagedIdentity/userAssignedIdentities/akscluster6091-agentpool", - "clientId": "12d3c884-ef4e-441e-9c32-77aa17decfba", - "objectId": "fc9054b1-ae93-419e-992c-7ec0f5c1c309" + "resourceId": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/MC_testaksrg8192_akscluster4775_eastus/providers/Microsoft.ManagedIdentity/userAssignedIdentities/akscluster4775-agentpool", + "clientId": "bd7b266c-ab72-40d0-9a85-ec7d31f676b4", + "objectId": "14a3cf06-d92e-420b-b030-5eccfbbde9d4" } }, "securityProfile": {}, "storageProfile": { "diskCSIDriver": { - "enabled": true + "enabled": true, + "version": "v1" }, "fileCSIDriver": { "enabled": true @@ -889,11 +958,12 @@ }, "oidcIssuerProfile": { "enabled": false - } + }, + "workloadAutoScalerProfile": {} }, "identity": { "type": "SystemAssigned", - "principalId": "4b7b6314-8f2c-4f01-bcc2-cd287818738e", + "principalId": "c2a3415d-5671-494e-a138-379233ca75f8", "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47" }, "sku": { @@ -903,16 +973,16 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg8261/providers/Microsoft.ContainerService/managedClusters/akscluster6091?api-version=2022-09-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg8192/providers/Microsoft.ContainerService/managedClusters/akscluster4775?api-version=2022-11-02-preview", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "Content-Length": "1724", + "Content-Length": "1808", "Content-Type": "application/json", - "traceparent": "00-f7cf3ab41273ce41ad4b784e97412baf-35bd8258aee91f40-00", - "User-Agent": "azsdk-net-ResourceManager.ContainerService/1.1.0-alpha.20221128.1 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "084ca174a057091eb0ddab4105ba6720", + "traceparent": "00-47ac0eb5be5cf49f0d6811332a4a892a-6d281c653a925c92-00", + "User-Agent": "azsdk-net-ResourceManager.ContainerService/1.2.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "00064e7eee43edc88014556d7adca157", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -925,7 +995,7 @@ }, "location": "eastus", "properties": { - "kubernetesVersion": "1.23.12", + "kubernetesVersion": "1.24.9", "dnsPrefix": "aksdotnetsdk", "agentPoolProfiles": [ { @@ -940,7 +1010,7 @@ "osSKU": "Ubuntu", "type": "VirtualMachineScaleSets", "mode": "System", - "orchestratorVersion": "1.23.12", + "orchestratorVersion": "1.24.9", "powerState": { "code": "Running" }, @@ -953,7 +1023,7 @@ "oidcIssuerProfile": { "enabled": false }, - "nodeResourceGroup": "MC_testaksrg8261_akscluster6091_eastus", + "nodeResourceGroup": "MC_testaksrg8192_akscluster4775_eastus", "enableRBAC": true, "networkProfile": { "networkPlugin": "kubenet", @@ -969,9 +1039,10 @@ }, "effectiveOutboundIPs": [ { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/MC_testaksrg8261_akscluster6091_eastus/providers/Microsoft.Network/publicIPAddresses/f25890c2-20dc-4591-aac7-61880a662dbb" + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/MC_testaksrg8192_akscluster4775_eastus/providers/Microsoft.Network/publicIPAddresses/b08df931-183d-4530-a075-c8252d7e3898" } - ] + ], + "backendPoolType": "nodeIPConfiguration" }, "podCidrs": [ "10.244.0.0/16" @@ -985,15 +1056,16 @@ }, "identityProfile": { "kubeletidentity": { - "resourceId": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/MC_testaksrg8261_akscluster6091_eastus/providers/Microsoft.ManagedIdentity/userAssignedIdentities/akscluster6091-agentpool", - "clientId": "12d3c884-ef4e-441e-9c32-77aa17decfba", - "objectId": "fc9054b1-ae93-419e-992c-7ec0f5c1c309" + "resourceId": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/MC_testaksrg8192_akscluster4775_eastus/providers/Microsoft.ManagedIdentity/userAssignedIdentities/akscluster4775-agentpool", + "clientId": "bd7b266c-ab72-40d0-9a85-ec7d31f676b4", + "objectId": "14a3cf06-d92e-420b-b030-5eccfbbde9d4" } }, "securityProfile": {}, "storageProfile": { "diskCSIDriver": { - "enabled": true + "enabled": true, + "version": "v1" }, "fileCSIDriver": { "enabled": true @@ -1001,41 +1073,42 @@ "snapshotController": { "enabled": true } - } + }, + "workloadAutoScalerProfile": {} } }, "StatusCode": 200, "ResponseHeaders": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/b72d1d62-e0db-4b6a-b867-df6efd810933?api-version=2017-08-31", + "azure-asyncoperation": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/6eb326e4-4713-4c47-b1af-e20aabd6e488?api-version=2017-08-31", "Cache-Control": "no-cache", - "Content-Length": "3015", + "Content-Length": "3151", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:27:40 GMT", + "Date": "Mon, 20 Feb 2023 10:33:50 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "ee675b3b-eedc-46cc-85c7-5eef2226cfb4", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "b72d1d62-e0db-4b6a-b867-df6efd810933", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T092741Z:ee675b3b-eedc-46cc-85c7-5eef2226cfb4" + "x-ms-correlation-request-id": "6b66bb68-431c-4749-abd8-784d0bf4f5d1", + "x-ms-ratelimit-remaining-subscription-writes": "1197", + "x-ms-request-id": "6eb326e4-4713-4c47-b1af-e20aabd6e488", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T103350Z:6b66bb68-431c-4749-abd8-784d0bf4f5d1" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testaksrg8261/providers/Microsoft.ContainerService/managedClusters/akscluster6091", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testaksrg8192/providers/Microsoft.ContainerService/managedClusters/akscluster4775", "location": "eastus", - "name": "akscluster6091", + "name": "akscluster4775", "type": "Microsoft.ContainerService/ManagedClusters", "properties": { "provisioningState": "Scaling", "powerState": { "code": "Running" }, - "kubernetesVersion": "1.23.12", - "currentKubernetesVersion": "1.23.12", + "kubernetesVersion": "1.24.9", + "currentKubernetesVersion": "1.24.9", "dnsPrefix": "aksdotnetsdk", - "fqdn": "aksdotnetsdk-27bda621.hcp.eastus.azmk8s.io", - "azurePortalFQDN": "aksdotnetsdk-27bda621.portal.hcp.eastus.azmk8s.io", + "fqdn": "aksdotnetsdk-55664203.hcp.eastus.azmk8s.io", + "azurePortalFQDN": "aksdotnetsdk-55664203.portal.hcp.eastus.azmk8s.io", "agentPoolProfiles": [ { "name": "aksagent", @@ -1050,19 +1123,20 @@ "powerState": { "code": "Running" }, - "orchestratorVersion": "1.23.12", - "currentOrchestratorVersion": "1.23.12", + "orchestratorVersion": "1.24.9", + "currentOrchestratorVersion": "1.24.9", + "enableCustomCATrust": false, "mode": "System", "osType": "Linux", "osSKU": "Ubuntu", - "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2022.11.02", + "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2023.01.26", "enableFIPS": false } ], "servicePrincipalProfile": { "clientId": "msi" }, - "nodeResourceGroup": "MC_testaksrg8261_akscluster6091_eastus", + "nodeResourceGroup": "MC_testaksrg8192_akscluster4775_eastus", "enableRBAC": true, "networkProfile": { "networkPlugin": "kubenet", @@ -1073,9 +1147,10 @@ }, "effectiveOutboundIPs": [ { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/MC_testaksrg8261_akscluster6091_eastus/providers/Microsoft.Network/publicIPAddresses/f25890c2-20dc-4591-aac7-61880a662dbb" + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/MC_testaksrg8192_akscluster4775_eastus/providers/Microsoft.Network/publicIPAddresses/b08df931-183d-4530-a075-c8252d7e3898" } - ] + ], + "backendPoolType": "nodeIPConfiguration" }, "podCidr": "10.244.0.0/16", "serviceCidr": "10.0.0.0/16", @@ -1095,15 +1170,16 @@ "maxAgentPools": 100, "identityProfile": { "kubeletidentity": { - "resourceId": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/MC_testaksrg8261_akscluster6091_eastus/providers/Microsoft.ManagedIdentity/userAssignedIdentities/akscluster6091-agentpool", - "clientId": "12d3c884-ef4e-441e-9c32-77aa17decfba", - "objectId": "fc9054b1-ae93-419e-992c-7ec0f5c1c309" + "resourceId": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/MC_testaksrg8192_akscluster4775_eastus/providers/Microsoft.ManagedIdentity/userAssignedIdentities/akscluster4775-agentpool", + "clientId": "bd7b266c-ab72-40d0-9a85-ec7d31f676b4", + "objectId": "14a3cf06-d92e-420b-b030-5eccfbbde9d4" } }, "securityProfile": {}, "storageProfile": { "diskCSIDriver": { - "enabled": true + "enabled": true, + "version": "v1" }, "fileCSIDriver": { "enabled": true @@ -1114,11 +1190,12 @@ }, "oidcIssuerProfile": { "enabled": false - } + }, + "workloadAutoScalerProfile": {} }, "identity": { "type": "SystemAssigned", - "principalId": "4b7b6314-8f2c-4f01-bcc2-cd287818738e", + "principalId": "c2a3415d-5671-494e-a138-379233ca75f8", "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47" }, "sku": { @@ -1128,13 +1205,13 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/b72d1d62-e0db-4b6a-b867-df6efd810933?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/6eb326e4-4713-4c47-b1af-e20aabd6e488?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-f7cf3ab41273ce41ad4b784e97412baf-788387eff45e7a4b-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "1ca35a5167bcab459520c76a06f9849d", + "traceparent": "00-47ac0eb5be5cf49f0d6811332a4a892a-9d44775eef1c2ac4-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "9660d4b347dcc0b7c53602e705eb4738", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1143,31 +1220,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:27:41 GMT", + "Date": "Mon, 20 Feb 2023 10:33:50 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "7c75e6d2-d3c4-467d-9ad1-c8c383315794", - "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "1a1cc32d-c812-440a-adbb-5a8ee1695c41", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T092741Z:7c75e6d2-d3c4-467d-9ad1-c8c383315794" + "x-ms-correlation-request-id": "a09a87d6-5366-45ca-baf9-1f9d479ae739", + "x-ms-ratelimit-remaining-subscription-reads": "11955", + "x-ms-request-id": "11b226ce-34e1-4c7f-a64d-06744a1c752e", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T103351Z:a09a87d6-5366-45ca-baf9-1f9d479ae739" }, "ResponseBody": { - "name": "621d2db7-dbe0-6a4b-b867-df6efd810933", + "name": "e426b36e-1347-474c-b1af-e20aabd6e488", "status": "InProgress", - "startTime": "2022-11-28T09:27:38.5037821Z" + "startTime": "2023-02-20T10:33:48.6905562Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/b72d1d62-e0db-4b6a-b867-df6efd810933?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/6eb326e4-4713-4c47-b1af-e20aabd6e488?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-f7cf3ab41273ce41ad4b784e97412baf-0bbf7ad11d64b745-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "6a2feff2e501e087d3a15cc3ee7442f7", + "traceparent": "00-47ac0eb5be5cf49f0d6811332a4a892a-920c7704670c6c43-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "9f7b5a64eb9c59dabce69613e817fafe", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1176,31 +1253,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:27:42 GMT", + "Date": "Mon, 20 Feb 2023 10:33:51 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "76c30506-a0f7-4de6-b105-ca95b2cea07e", - "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-request-id": "003ede01-c82e-4456-bec1-493ff40cf136", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T092743Z:76c30506-a0f7-4de6-b105-ca95b2cea07e" + "x-ms-correlation-request-id": "d4136d54-82b8-4f76-9efc-69976890f362", + "x-ms-ratelimit-remaining-subscription-reads": "11954", + "x-ms-request-id": "3da5af5a-10d7-43a9-9135-ab94056ffe2d", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T103352Z:d4136d54-82b8-4f76-9efc-69976890f362" }, "ResponseBody": { - "name": "621d2db7-dbe0-6a4b-b867-df6efd810933", + "name": "e426b36e-1347-474c-b1af-e20aabd6e488", "status": "InProgress", - "startTime": "2022-11-28T09:27:38.5037821Z" + "startTime": "2023-02-20T10:33:48.6905562Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/b72d1d62-e0db-4b6a-b867-df6efd810933?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/6eb326e4-4713-4c47-b1af-e20aabd6e488?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-f7cf3ab41273ce41ad4b784e97412baf-87abeb8f4cfc6e4b-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "abf0834e4a16e0647e41f368cd63a4b2", + "traceparent": "00-47ac0eb5be5cf49f0d6811332a4a892a-2872fe04c87286a5-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "a6b944a40b7b947ae85476d022a91a7e", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1209,31 +1286,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:27:43 GMT", + "Date": "Mon, 20 Feb 2023 10:33:53 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "1dbc408a-f70a-46ba-801f-8e4a70b4588e", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "cd2fcc65-81f4-469b-a551-214b2aa698fc", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T092744Z:1dbc408a-f70a-46ba-801f-8e4a70b4588e" + "x-ms-correlation-request-id": "a9bf515d-5e4d-439f-a74c-ba7a00ae09a8", + "x-ms-ratelimit-remaining-subscription-reads": "11953", + "x-ms-request-id": "5a1d44a4-8f0c-452b-8f1f-e457ae9c6e58", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T103353Z:a9bf515d-5e4d-439f-a74c-ba7a00ae09a8" }, "ResponseBody": { - "name": "621d2db7-dbe0-6a4b-b867-df6efd810933", + "name": "e426b36e-1347-474c-b1af-e20aabd6e488", "status": "InProgress", - "startTime": "2022-11-28T09:27:38.5037821Z" + "startTime": "2023-02-20T10:33:48.6905562Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/b72d1d62-e0db-4b6a-b867-df6efd810933?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/6eb326e4-4713-4c47-b1af-e20aabd6e488?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-f7cf3ab41273ce41ad4b784e97412baf-0016b2d629ca7b40-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "d7b7140f24896b26d3c3491a0b81bc20", + "traceparent": "00-47ac0eb5be5cf49f0d6811332a4a892a-005d00008d998163-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "984ccde8d007c873f906d9f5b0a4d7ad", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1242,31 +1319,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:27:45 GMT", + "Date": "Mon, 20 Feb 2023 10:33:54 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "c55c8a30-eef2-4e68-8d36-6994af614524", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "eb119309-79d3-4963-a2de-20ba36c21a83", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T092745Z:c55c8a30-eef2-4e68-8d36-6994af614524" + "x-ms-correlation-request-id": "c671c376-fe71-4c65-8755-9de254e0dfc9", + "x-ms-ratelimit-remaining-subscription-reads": "11952", + "x-ms-request-id": "ebd469b3-d83a-4998-8901-0a389f3edee5", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T103355Z:c671c376-fe71-4c65-8755-9de254e0dfc9" }, "ResponseBody": { - "name": "621d2db7-dbe0-6a4b-b867-df6efd810933", + "name": "e426b36e-1347-474c-b1af-e20aabd6e488", "status": "InProgress", - "startTime": "2022-11-28T09:27:38.5037821Z" + "startTime": "2023-02-20T10:33:48.6905562Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/b72d1d62-e0db-4b6a-b867-df6efd810933?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/6eb326e4-4713-4c47-b1af-e20aabd6e488?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-f7cf3ab41273ce41ad4b784e97412baf-a614e74cb7a2a641-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "821bcfded809a8878b4febbff21e126f", + "traceparent": "00-47ac0eb5be5cf49f0d6811332a4a892a-3cbb47d7300fd178-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "c042043ca13158bcdfe6b647740a3713", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1275,31 +1352,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:27:47 GMT", + "Date": "Mon, 20 Feb 2023 10:33:57 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "f4ad325f-fbfc-4832-a6ff-80ca3ee06b59", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "ebf76689-e021-4aeb-9da7-67be7e855cc6", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T092748Z:f4ad325f-fbfc-4832-a6ff-80ca3ee06b59" + "x-ms-correlation-request-id": "30bda64a-5e2a-4154-b9e1-bedea210c46c", + "x-ms-ratelimit-remaining-subscription-reads": "11951", + "x-ms-request-id": "956b289d-48d4-416d-9aad-79e4560b4368", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T103358Z:30bda64a-5e2a-4154-b9e1-bedea210c46c" }, "ResponseBody": { - "name": "621d2db7-dbe0-6a4b-b867-df6efd810933", + "name": "e426b36e-1347-474c-b1af-e20aabd6e488", "status": "InProgress", - "startTime": "2022-11-28T09:27:38.5037821Z" + "startTime": "2023-02-20T10:33:48.6905562Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/b72d1d62-e0db-4b6a-b867-df6efd810933?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/6eb326e4-4713-4c47-b1af-e20aabd6e488?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-f7cf3ab41273ce41ad4b784e97412baf-4fab65cdaf64fa44-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "d9b4a9fd6abd2a6d5c85d8520049d4fc", + "traceparent": "00-47ac0eb5be5cf49f0d6811332a4a892a-f1f46110dbf09029-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "1b2a18cc61cbd4f6d1f1ac743284e444", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1308,31 +1385,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:27:51 GMT", + "Date": "Mon, 20 Feb 2023 10:34:01 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "ea01f21e-091b-4c8d-80d9-f2c8963b6cc7", - "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "60f229c4-d24a-455d-b7b9-20d1ef6dd5a2", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T092752Z:ea01f21e-091b-4c8d-80d9-f2c8963b6cc7" + "x-ms-correlation-request-id": "69ef2574-b7ec-4b56-80a8-a1df36dcf1bb", + "x-ms-ratelimit-remaining-subscription-reads": "11950", + "x-ms-request-id": "8b88f2a4-876b-4ca5-b468-986bbee66393", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T103402Z:69ef2574-b7ec-4b56-80a8-a1df36dcf1bb" }, "ResponseBody": { - "name": "621d2db7-dbe0-6a4b-b867-df6efd810933", + "name": "e426b36e-1347-474c-b1af-e20aabd6e488", "status": "InProgress", - "startTime": "2022-11-28T09:27:38.5037821Z" + "startTime": "2023-02-20T10:33:48.6905562Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/b72d1d62-e0db-4b6a-b867-df6efd810933?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/6eb326e4-4713-4c47-b1af-e20aabd6e488?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-f7cf3ab41273ce41ad4b784e97412baf-a24ba6e4542ffc47-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "fd89d284214736a98d0f4c39386679b4", + "traceparent": "00-47ac0eb5be5cf49f0d6811332a4a892a-e1a251ea07c7d6cb-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "1e93c87d5a66474c10f3b820192c53ef", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1341,31 +1418,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:28:00 GMT", + "Date": "Mon, 20 Feb 2023 10:34:10 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "cd2110b8-f879-41df-8bf6-9eba2e49168e", - "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "87b92688-6a56-4d49-8d17-7aa5b60e491c", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T092801Z:cd2110b8-f879-41df-8bf6-9eba2e49168e" + "x-ms-correlation-request-id": "15af9b1d-6f5f-47fc-aa66-bdb8ba66a3f2", + "x-ms-ratelimit-remaining-subscription-reads": "11949", + "x-ms-request-id": "7c14746d-26d2-4c39-bd19-c99f7fba9936", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T103411Z:15af9b1d-6f5f-47fc-aa66-bdb8ba66a3f2" }, "ResponseBody": { - "name": "621d2db7-dbe0-6a4b-b867-df6efd810933", + "name": "e426b36e-1347-474c-b1af-e20aabd6e488", "status": "InProgress", - "startTime": "2022-11-28T09:27:38.5037821Z" + "startTime": "2023-02-20T10:33:48.6905562Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/b72d1d62-e0db-4b6a-b867-df6efd810933?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/6eb326e4-4713-4c47-b1af-e20aabd6e488?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-f7cf3ab41273ce41ad4b784e97412baf-30560b9091b52142-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "611dd9b1e3cd736362f025840034a741", + "traceparent": "00-47ac0eb5be5cf49f0d6811332a4a892a-05e4c9a0125ccf4c-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "9729c6cfbc79dae10d6eef40f448265b", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1374,31 +1451,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:28:16 GMT", + "Date": "Mon, 20 Feb 2023 10:35:25 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "2c778609-9cd1-4113-98f9-21cba7172289", - "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-request-id": "a8c6a047-0c1d-4b58-ae70-a5bc124fef24", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T092817Z:2c778609-9cd1-4113-98f9-21cba7172289" + "x-ms-correlation-request-id": "80cd29e0-287e-467c-9e30-96ef8051750d", + "x-ms-ratelimit-remaining-subscription-reads": "11948", + "x-ms-request-id": "b23a3385-2463-4e4b-8c2f-e6e32b308c01", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T103526Z:80cd29e0-287e-467c-9e30-96ef8051750d" }, "ResponseBody": { - "name": "621d2db7-dbe0-6a4b-b867-df6efd810933", + "name": "e426b36e-1347-474c-b1af-e20aabd6e488", "status": "InProgress", - "startTime": "2022-11-28T09:27:38.5037821Z" + "startTime": "2023-02-20T10:33:48.6905562Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/b72d1d62-e0db-4b6a-b867-df6efd810933?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/6eb326e4-4713-4c47-b1af-e20aabd6e488?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-f7cf3ab41273ce41ad4b784e97412baf-932c62f443e34447-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "1f3bee7b1495db27007e4cae1e34f2f6", + "traceparent": "00-47ac0eb5be5cf49f0d6811332a4a892a-960a7bcbc0f5f6cf-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "abca7102197672accce30ad8a9d6baa4", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1407,31 +1484,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:28:48 GMT", + "Date": "Mon, 20 Feb 2023 10:35:59 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "4353e701-86a6-4de0-8e4b-eea7e42ddf07", - "x-ms-ratelimit-remaining-subscription-reads": "11986", - "x-ms-request-id": "df1b3ed5-c526-4ae3-a881-54bd9fbda6c1", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T092849Z:4353e701-86a6-4de0-8e4b-eea7e42ddf07" + "x-ms-correlation-request-id": "ce4b3024-2d3e-4567-a9ef-ef318e944eae", + "x-ms-ratelimit-remaining-subscription-reads": "11947", + "x-ms-request-id": "f27f54b9-ccc9-4a02-b415-b444fc24bbd2", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T103559Z:ce4b3024-2d3e-4567-a9ef-ef318e944eae" }, "ResponseBody": { - "name": "621d2db7-dbe0-6a4b-b867-df6efd810933", + "name": "e426b36e-1347-474c-b1af-e20aabd6e488", "status": "InProgress", - "startTime": "2022-11-28T09:27:38.5037821Z" + "startTime": "2023-02-20T10:33:48.6905562Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/b72d1d62-e0db-4b6a-b867-df6efd810933?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/6eb326e4-4713-4c47-b1af-e20aabd6e488?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-f7cf3ab41273ce41ad4b784e97412baf-313ffb13db399847-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "27a1240c732ca12f6f169b56fc243659", + "traceparent": "00-47ac0eb5be5cf49f0d6811332a4a892a-a9a7febdf9370426-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "6ba5bd9d4c5bc0cbe7b810f86b0b53c8", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1440,31 +1517,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:29:21 GMT", + "Date": "Mon, 20 Feb 2023 10:36:31 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "464ff305-1b60-483e-b7b6-7de2fe88100e", - "x-ms-ratelimit-remaining-subscription-reads": "11985", - "x-ms-request-id": "2e3dd91b-698d-4ed2-8dea-3546c5710b4d", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T092922Z:464ff305-1b60-483e-b7b6-7de2fe88100e" + "x-ms-correlation-request-id": "81a70863-b5c6-4304-aa69-04d2d7b7acd8", + "x-ms-ratelimit-remaining-subscription-reads": "11946", + "x-ms-request-id": "14594f9e-b4f9-40d1-9035-e0fe9dbb6596", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T103632Z:81a70863-b5c6-4304-aa69-04d2d7b7acd8" }, "ResponseBody": { - "name": "621d2db7-dbe0-6a4b-b867-df6efd810933", + "name": "e426b36e-1347-474c-b1af-e20aabd6e488", "status": "InProgress", - "startTime": "2022-11-28T09:27:38.5037821Z" + "startTime": "2023-02-20T10:33:48.6905562Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/b72d1d62-e0db-4b6a-b867-df6efd810933?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/6eb326e4-4713-4c47-b1af-e20aabd6e488?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-f7cf3ab41273ce41ad4b784e97412baf-f5f6644604b6124e-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "4abe0a67592b9c1eb141604f96b4552d", + "traceparent": "00-47ac0eb5be5cf49f0d6811332a4a892a-aa7cb634bcbd6a41-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "a71e5dcca761b57819b7cb95b1093037", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1473,31 +1550,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:29:53 GMT", + "Date": "Mon, 20 Feb 2023 10:37:05 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "7a17e69e-ac8f-47a7-961f-4125544d5677", - "x-ms-ratelimit-remaining-subscription-reads": "11984", - "x-ms-request-id": "32303ee7-d582-4070-a556-1e8bea606e16", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T092954Z:7a17e69e-ac8f-47a7-961f-4125544d5677" + "x-ms-correlation-request-id": "b1eca75a-3b03-4215-a954-b64fe1d472d5", + "x-ms-ratelimit-remaining-subscription-reads": "11945", + "x-ms-request-id": "153de323-cd9e-492a-959b-a3c5ffa61c56", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T103705Z:b1eca75a-3b03-4215-a954-b64fe1d472d5" }, "ResponseBody": { - "name": "621d2db7-dbe0-6a4b-b867-df6efd810933", + "name": "e426b36e-1347-474c-b1af-e20aabd6e488", "status": "InProgress", - "startTime": "2022-11-28T09:27:38.5037821Z" + "startTime": "2023-02-20T10:33:48.6905562Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/b72d1d62-e0db-4b6a-b867-df6efd810933?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/6eb326e4-4713-4c47-b1af-e20aabd6e488?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-f7cf3ab41273ce41ad4b784e97412baf-714a27ab030ae54a-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "db782ffe80930715be99af7e78d0dfdc", + "traceparent": "00-47ac0eb5be5cf49f0d6811332a4a892a-1ab2b16d73d52a3a-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "36a24ab3baa2b500a609c4bd08b306c0", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1506,66 +1583,64 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:30:26 GMT", + "Date": "Mon, 20 Feb 2023 10:37:37 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "f129761d-1d3a-4dbf-9549-6de66eae7f2f", - "x-ms-ratelimit-remaining-subscription-reads": "11983", - "x-ms-request-id": "e4c06e61-432c-4a43-a9e7-3c8a704b28ae", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T093026Z:f129761d-1d3a-4dbf-9549-6de66eae7f2f" + "x-ms-correlation-request-id": "a62d679a-f545-4a6a-9255-99979f90dd2c", + "x-ms-ratelimit-remaining-subscription-reads": "11944", + "x-ms-request-id": "645acbf3-0cfa-44af-8a99-8321ed17dd63", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T103738Z:a62d679a-f545-4a6a-9255-99979f90dd2c" }, "ResponseBody": { - "name": "621d2db7-dbe0-6a4b-b867-df6efd810933", + "name": "e426b36e-1347-474c-b1af-e20aabd6e488", "status": "InProgress", - "startTime": "2022-11-28T09:27:38.5037821Z" + "startTime": "2023-02-20T10:33:48.6905562Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/b72d1d62-e0db-4b6a-b867-df6efd810933?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/6eb326e4-4713-4c47-b1af-e20aabd6e488?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "Connection": "close", - "traceparent": "00-f7cf3ab41273ce41ad4b784e97412baf-f017f4034fab1644-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "1346f347a875b2ca050475eb12e00abb", + "traceparent": "00-47ac0eb5be5cf49f0d6811332a4a892a-a048f504f3bf9bd1-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "4c0b429012b8f64245ef52a380350fdd", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Connection": "close", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:30:58 GMT", + "Date": "Mon, 20 Feb 2023 10:38:09 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "f1ca6c61-3700-4a7d-87cf-78bc47039ffc", - "x-ms-ratelimit-remaining-subscription-reads": "11982", - "x-ms-request-id": "0cae9bd8-8472-44ad-be56-aa5109d79cb3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T093059Z:f1ca6c61-3700-4a7d-87cf-78bc47039ffc" + "x-ms-correlation-request-id": "69de4d14-089b-47b6-bfb9-4ed9daff545c", + "x-ms-ratelimit-remaining-subscription-reads": "11943", + "x-ms-request-id": "b9245894-3a16-47bf-9f2c-c089199544b6", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T103810Z:69de4d14-089b-47b6-bfb9-4ed9daff545c" }, "ResponseBody": { - "name": "621d2db7-dbe0-6a4b-b867-df6efd810933", + "name": "e426b36e-1347-474c-b1af-e20aabd6e488", "status": "InProgress", - "startTime": "2022-11-28T09:27:38.5037821Z" + "startTime": "2023-02-20T10:33:48.6905562Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/b72d1d62-e0db-4b6a-b867-df6efd810933?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/6eb326e4-4713-4c47-b1af-e20aabd6e488?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-f7cf3ab41273ce41ad4b784e97412baf-ce9cb74cc6abd147-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "cc586dc05aace7c5f5b68b92aaa023e1", + "traceparent": "00-47ac0eb5be5cf49f0d6811332a4a892a-bb60141c53dab8e9-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "2044d9871c6911255d680158e2baad65", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1574,31 +1649,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:31:31 GMT", + "Date": "Mon, 20 Feb 2023 10:38:42 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "836cfe4d-5313-41f9-a0b4-a91acd54c058", - "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-request-id": "ed9786fd-13ae-4551-bc47-461ed6c609fd", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T093132Z:836cfe4d-5313-41f9-a0b4-a91acd54c058" + "x-ms-correlation-request-id": "ddb6e9dc-bc35-47f1-b739-786ef7b06740", + "x-ms-ratelimit-remaining-subscription-reads": "11942", + "x-ms-request-id": "2f7b948f-2c65-4e8f-97ec-ea4f6a5c8d0b", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T103843Z:ddb6e9dc-bc35-47f1-b739-786ef7b06740" }, "ResponseBody": { - "name": "621d2db7-dbe0-6a4b-b867-df6efd810933", + "name": "e426b36e-1347-474c-b1af-e20aabd6e488", "status": "InProgress", - "startTime": "2022-11-28T09:27:38.5037821Z" + "startTime": "2023-02-20T10:33:48.6905562Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/b72d1d62-e0db-4b6a-b867-df6efd810933?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/6eb326e4-4713-4c47-b1af-e20aabd6e488?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-f7cf3ab41273ce41ad4b784e97412baf-c471504bebc79a41-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "a3078461426d56b865c5d58e0b29f5de", + "traceparent": "00-47ac0eb5be5cf49f0d6811332a4a892a-8ec28aa0b51f8114-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "6f050bb0e4fea07e07acf1b3685c3470", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1607,66 +1682,66 @@ "Cache-Control": "no-cache", "Content-Length": "170", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:32:04 GMT", + "Date": "Mon, 20 Feb 2023 10:39:15 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "1b6728b7-494c-432b-8b99-246d19926f63", - "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "ff6cfd23-8ef7-4ff4-9bb1-b023f71be736", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T093204Z:1b6728b7-494c-432b-8b99-246d19926f63" + "x-ms-correlation-request-id": "77245cd7-cd31-4f6d-a5fd-90f0ebae0e66", + "x-ms-ratelimit-remaining-subscription-reads": "11941", + "x-ms-request-id": "157c7374-ad6c-45b5-b2c3-b034fa46c3f4", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T103915Z:77245cd7-cd31-4f6d-a5fd-90f0ebae0e66" }, "ResponseBody": { - "name": "621d2db7-dbe0-6a4b-b867-df6efd810933", + "name": "e426b36e-1347-474c-b1af-e20aabd6e488", "status": "Succeeded", - "startTime": "2022-11-28T09:27:38.5037821Z", - "endTime": "2022-11-28T09:31:40.0076258Z" + "startTime": "2023-02-20T10:33:48.6905562Z", + "endTime": "2023-02-20T10:38:50.2966612Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg8261/providers/Microsoft.ContainerService/managedClusters/akscluster6091?api-version=2022-09-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg8192/providers/Microsoft.ContainerService/managedClusters/akscluster4775?api-version=2022-11-02-preview", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-f7cf3ab41273ce41ad4b784e97412baf-9081d6f44e82444d-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "0abef48e1378ec2f2d5f1dbe1c370865", + "traceparent": "00-47ac0eb5be5cf49f0d6811332a4a892a-2bb7a8bf34f12fd7-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "2f35e7fae56f73571cf9ef5011ea138a", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "3019", + "Content-Length": "3155", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:32:05 GMT", + "Date": "Mon, 20 Feb 2023 10:39:16 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "bd192a90-a49e-4943-a86a-7d70b6fa8be0", - "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "3cfdf2c2-d1f1-4cca-8c39-58235d50daea", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T093205Z:bd192a90-a49e-4943-a86a-7d70b6fa8be0" + "x-ms-correlation-request-id": "60e1a309-0c5b-4460-a238-0797b3ddf75b", + "x-ms-ratelimit-remaining-subscription-reads": "11940", + "x-ms-request-id": "960f78d4-76c7-4030-9780-5ec3e4e70ea8", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T103916Z:60e1a309-0c5b-4460-a238-0797b3ddf75b" }, "ResponseBody": { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testaksrg8261/providers/Microsoft.ContainerService/managedClusters/akscluster6091", + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testaksrg8192/providers/Microsoft.ContainerService/managedClusters/akscluster4775", "location": "eastus", - "name": "akscluster6091", + "name": "akscluster4775", "type": "Microsoft.ContainerService/ManagedClusters", "properties": { "provisioningState": "Succeeded", "powerState": { "code": "Running" }, - "kubernetesVersion": "1.23.12", - "currentKubernetesVersion": "1.23.12", + "kubernetesVersion": "1.24.9", + "currentKubernetesVersion": "1.24.9", "dnsPrefix": "aksdotnetsdk", - "fqdn": "aksdotnetsdk-27bda621.hcp.eastus.azmk8s.io", - "azurePortalFQDN": "aksdotnetsdk-27bda621.portal.hcp.eastus.azmk8s.io", + "fqdn": "aksdotnetsdk-55664203.hcp.eastus.azmk8s.io", + "azurePortalFQDN": "aksdotnetsdk-55664203.portal.hcp.eastus.azmk8s.io", "agentPoolProfiles": [ { "name": "aksagent", @@ -1681,19 +1756,20 @@ "powerState": { "code": "Running" }, - "orchestratorVersion": "1.23.12", - "currentOrchestratorVersion": "1.23.12", + "orchestratorVersion": "1.24.9", + "currentOrchestratorVersion": "1.24.9", + "enableCustomCATrust": false, "mode": "System", "osType": "Linux", "osSKU": "Ubuntu", - "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2022.11.02", + "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2023.01.26", "enableFIPS": false } ], "servicePrincipalProfile": { "clientId": "msi" }, - "nodeResourceGroup": "MC_testaksrg8261_akscluster6091_eastus", + "nodeResourceGroup": "MC_testaksrg8192_akscluster4775_eastus", "enableRBAC": true, "networkProfile": { "networkPlugin": "kubenet", @@ -1704,9 +1780,10 @@ }, "effectiveOutboundIPs": [ { - "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/MC_testaksrg8261_akscluster6091_eastus/providers/Microsoft.Network/publicIPAddresses/f25890c2-20dc-4591-aac7-61880a662dbb" + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/MC_testaksrg8192_akscluster4775_eastus/providers/Microsoft.Network/publicIPAddresses/b08df931-183d-4530-a075-c8252d7e3898" } - ] + ], + "backendPoolType": "nodeIPConfiguration" }, "podCidr": "10.244.0.0/16", "serviceCidr": "10.0.0.0/16", @@ -1726,15 +1803,16 @@ "maxAgentPools": 100, "identityProfile": { "kubeletidentity": { - "resourceId": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/MC_testaksrg8261_akscluster6091_eastus/providers/Microsoft.ManagedIdentity/userAssignedIdentities/akscluster6091-agentpool", - "clientId": "12d3c884-ef4e-441e-9c32-77aa17decfba", - "objectId": "fc9054b1-ae93-419e-992c-7ec0f5c1c309" + "resourceId": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/MC_testaksrg8192_akscluster4775_eastus/providers/Microsoft.ManagedIdentity/userAssignedIdentities/akscluster4775-agentpool", + "clientId": "bd7b266c-ab72-40d0-9a85-ec7d31f676b4", + "objectId": "14a3cf06-d92e-420b-b030-5eccfbbde9d4" } }, "securityProfile": {}, "storageProfile": { "diskCSIDriver": { - "enabled": true + "enabled": true, + "version": "v1" }, "fileCSIDriver": { "enabled": true @@ -1745,11 +1823,12 @@ }, "oidcIssuerProfile": { "enabled": false - } + }, + "workloadAutoScalerProfile": {} }, "identity": { "type": "SystemAssigned", - "principalId": "4b7b6314-8f2c-4f01-bcc2-cd287818738e", + "principalId": "c2a3415d-5671-494e-a138-379233ca75f8", "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47" }, "sku": { @@ -1759,209 +1838,44 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg8261/providers/Microsoft.ContainerService/managedClusters/akscluster6091?api-version=2022-09-01", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testaksrg8192/providers/Microsoft.ContainerService/managedClusters/akscluster4775?api-version=2022-11-02-preview", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-a97a1390a55066459dc77acfa5bf0e96-80b68e8c9840b94a-00", - "User-Agent": "azsdk-net-ResourceManager.ContainerService/1.1.0-alpha.20221128.1 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "8d8a94e067d97e4db50167e68537dbcc", + "traceparent": "00-f308e02c229c48c16f64c1c4381a1e5b-7b38cc76970ced95-00", + "User-Agent": "azsdk-net-ResourceManager.ContainerService/1.2.0-alpha.20230220.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "75f2ec42a030a3de5aa319bc2b72a900", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/b32b59e9-50a1-4df2-a35b-f652fe4f5ecc?api-version=2017-08-31", + "azure-asyncoperation": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/04686173-1567-44ef-b351-a0ebd324d741?api-version=2017-08-31", "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 28 Nov 2022 09:32:07 GMT", + "Date": "Mon, 20 Feb 2023 10:39:17 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operationresults/b32b59e9-50a1-4df2-a35b-f652fe4f5ecc?api-version=2017-08-31", + "Location": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operationresults/04686173-1567-44ef-b351-a0ebd324d741?api-version=2017-08-31", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "77f9cf6e-040c-4980-a53f-c04fae3e004c", - "x-ms-ratelimit-remaining-subscription-deletes": "14999", - "x-ms-request-id": "b32b59e9-50a1-4df2-a35b-f652fe4f5ecc", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T093207Z:77f9cf6e-040c-4980-a53f-c04fae3e004c" + "x-ms-correlation-request-id": "8e1421d9-c78b-42b7-9b96-9d61b3798eef", + "x-ms-ratelimit-remaining-subscription-deletes": "14998", + "x-ms-request-id": "04686173-1567-44ef-b351-a0ebd324d741", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T103918Z:8e1421d9-c78b-42b7-9b96-9d61b3798eef" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/b32b59e9-50a1-4df2-a35b-f652fe4f5ecc?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-a97a1390a55066459dc77acfa5bf0e96-be697913a9e4a44f-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "77ae70bd689f2705a73f5577ab4967f5", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "126", - "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:32:07 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "3b105021-b521-43e6-abe8-a64a644a4c77", - "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-request-id": "1cfb071b-76c7-4a31-895f-df5184fffced", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T093207Z:3b105021-b521-43e6-abe8-a64a644a4c77" - }, - "ResponseBody": { - "name": "e9592bb3-a150-f24d-a35b-f652fe4f5ecc", - "status": "InProgress", - "startTime": "2022-11-28T09:32:07.4570971Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/b32b59e9-50a1-4df2-a35b-f652fe4f5ecc?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-a97a1390a55066459dc77acfa5bf0e96-e641a0cec5ef7d48-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "70fd51845233c7832b3c38bef03f5abc", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "126", - "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:32:09 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "4be14979-56e0-436a-b8b9-1b434c306449", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "a48b1498-f3b4-4db4-bb38-2904751661d6", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T093209Z:4be14979-56e0-436a-b8b9-1b434c306449" - }, - "ResponseBody": { - "name": "e9592bb3-a150-f24d-a35b-f652fe4f5ecc", - "status": "InProgress", - "startTime": "2022-11-28T09:32:07.4570971Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/b32b59e9-50a1-4df2-a35b-f652fe4f5ecc?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-a97a1390a55066459dc77acfa5bf0e96-4a43d89f370d4f4c-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "142839c76489582da7dc0ea2c3f0a20b", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "126", - "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:32:10 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "03a89a53-4183-47d4-8078-adc7634a083c", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "4834f228-9b3a-4d0f-a9f9-122d40091afb", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T093210Z:03a89a53-4183-47d4-8078-adc7634a083c" - }, - "ResponseBody": { - "name": "e9592bb3-a150-f24d-a35b-f652fe4f5ecc", - "status": "InProgress", - "startTime": "2022-11-28T09:32:07.4570971Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/b32b59e9-50a1-4df2-a35b-f652fe4f5ecc?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-a97a1390a55066459dc77acfa5bf0e96-18feb5c06fb22642-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "d28980b2c9fb6af9ece64b622f463668", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "126", - "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:32:11 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "d642a8ec-e858-4758-98c8-50efaba6aeaa", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "cc155b18-5fe0-41c0-8652-8b2205f9d813", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T093212Z:d642a8ec-e858-4758-98c8-50efaba6aeaa" - }, - "ResponseBody": { - "name": "e9592bb3-a150-f24d-a35b-f652fe4f5ecc", - "status": "InProgress", - "startTime": "2022-11-28T09:32:07.4570971Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/b32b59e9-50a1-4df2-a35b-f652fe4f5ecc?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-a97a1390a55066459dc77acfa5bf0e96-38ddf76e0524394a-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "72b098e453201f6c24a5c85744e0033b", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "126", - "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:32:14 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "69013678-e968-4408-a018-20eee2be7214", - "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "e0c6bb1b-559a-4428-986c-8c99e11549f2", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T093214Z:69013678-e968-4408-a018-20eee2be7214" - }, - "ResponseBody": { - "name": "e9592bb3-a150-f24d-a35b-f652fe4f5ecc", - "status": "InProgress", - "startTime": "2022-11-28T09:32:07.4570971Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/b32b59e9-50a1-4df2-a35b-f652fe4f5ecc?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/04686173-1567-44ef-b351-a0ebd324d741?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-a97a1390a55066459dc77acfa5bf0e96-332a30d7c6ce384b-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "6f0b2c9a88b5fdc140be28a219ca2961", + "traceparent": "00-f308e02c229c48c16f64c1c4381a1e5b-553067dc0daca0b2-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "7c716699bf6a5a3f0892d5cbcc9a48a9", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -1970,31 +1884,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:32:18 GMT", + "Date": "Mon, 20 Feb 2023 10:39:18 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "2cb45650-9855-4e04-9bd2-4b08c6acd09f", - "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "1f79cd7f-dc52-4580-85b2-13cb10b46c56", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T093218Z:2cb45650-9855-4e04-9bd2-4b08c6acd09f" + "x-ms-correlation-request-id": "a6d4e151-2b46-4dfd-b2b5-98bfeb21d9af", + "x-ms-ratelimit-remaining-subscription-reads": "11939", + "x-ms-request-id": "a40de7e3-b3ea-4fcb-98ed-bb10002ae7fd", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T103918Z:a6d4e151-2b46-4dfd-b2b5-98bfeb21d9af" }, "ResponseBody": { - "name": "e9592bb3-a150-f24d-a35b-f652fe4f5ecc", + "name": "73616804-6715-ef44-b351-a0ebd324d741", "status": "InProgress", - "startTime": "2022-11-28T09:32:07.4570971Z" + "startTime": "2023-02-20T10:39:17.8609603Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/b32b59e9-50a1-4df2-a35b-f652fe4f5ecc?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/04686173-1567-44ef-b351-a0ebd324d741?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-a97a1390a55066459dc77acfa5bf0e96-9078aedce40a2d40-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "2abda5a52f405feb136aad5601a1250b", + "traceparent": "00-f308e02c229c48c16f64c1c4381a1e5b-626b35652aab3e6e-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "801cef50188cc406f527c19f4dd9ae2c", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -2003,31 +1917,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:32:26 GMT", + "Date": "Mon, 20 Feb 2023 10:39:19 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "6a81c03e-e90d-473f-81a1-b0fcadda2bd4", - "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-request-id": "fb1fe7b6-4d3b-4c9d-a40e-857ad1550f01", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T093227Z:6a81c03e-e90d-473f-81a1-b0fcadda2bd4" + "x-ms-correlation-request-id": "886866cb-7551-4f45-8683-20f27ea5d9cc", + "x-ms-ratelimit-remaining-subscription-reads": "11938", + "x-ms-request-id": "d293e45f-b012-4d5a-ba1e-6d291a168be3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T103919Z:886866cb-7551-4f45-8683-20f27ea5d9cc" }, "ResponseBody": { - "name": "e9592bb3-a150-f24d-a35b-f652fe4f5ecc", + "name": "73616804-6715-ef44-b351-a0ebd324d741", "status": "InProgress", - "startTime": "2022-11-28T09:32:07.4570971Z" + "startTime": "2023-02-20T10:39:17.8609603Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/b32b59e9-50a1-4df2-a35b-f652fe4f5ecc?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/04686173-1567-44ef-b351-a0ebd324d741?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-a97a1390a55066459dc77acfa5bf0e96-05184605d496ef4c-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "02c810e3c73a5cb3d7b231612aca065a", + "traceparent": "00-f308e02c229c48c16f64c1c4381a1e5b-fc0d46a4a503c74a-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "c423fd142c0173965104f2f2a82bfe19", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -2036,31 +1950,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:32:42 GMT", + "Date": "Mon, 20 Feb 2023 10:39:20 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "19530a8d-db29-4900-b7af-4134f97974df", - "x-ms-ratelimit-remaining-subscription-reads": "11986", - "x-ms-request-id": "b32c2780-4628-437c-a2b1-48b102253039", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T093243Z:19530a8d-db29-4900-b7af-4134f97974df" + "x-ms-correlation-request-id": "d74153aa-0dd4-451a-8cc0-37bb912aad0e", + "x-ms-ratelimit-remaining-subscription-reads": "11937", + "x-ms-request-id": "c748e018-e5b7-477f-b79a-f1c12882c9a0", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T103921Z:d74153aa-0dd4-451a-8cc0-37bb912aad0e" }, "ResponseBody": { - "name": "e9592bb3-a150-f24d-a35b-f652fe4f5ecc", + "name": "73616804-6715-ef44-b351-a0ebd324d741", "status": "InProgress", - "startTime": "2022-11-28T09:32:07.4570971Z" + "startTime": "2023-02-20T10:39:17.8609603Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/b32b59e9-50a1-4df2-a35b-f652fe4f5ecc?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/04686173-1567-44ef-b351-a0ebd324d741?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-a97a1390a55066459dc77acfa5bf0e96-cb380e7809441d45-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "9fb2677bd8226afa40ac5b4bda6bfb9e", + "traceparent": "00-f308e02c229c48c16f64c1c4381a1e5b-35ff71b80e394d8d-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "05b4a9480e11809060ac8642fe9f0d2f", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -2069,31 +1983,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:33:14 GMT", + "Date": "Mon, 20 Feb 2023 10:39:22 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "fffffdfc-09f6-47dc-80f6-7331001229f7", - "x-ms-ratelimit-remaining-subscription-reads": "11985", - "x-ms-request-id": "8c6dd6d0-2fb7-49f3-b1a4-f5e4506b4f08", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T093315Z:fffffdfc-09f6-47dc-80f6-7331001229f7" + "x-ms-correlation-request-id": "95b80264-8bad-4d14-9f9c-c55726cf4825", + "x-ms-ratelimit-remaining-subscription-reads": "11936", + "x-ms-request-id": "9b964562-5224-4c13-a6c8-d1e671a84342", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T103922Z:95b80264-8bad-4d14-9f9c-c55726cf4825" }, "ResponseBody": { - "name": "e9592bb3-a150-f24d-a35b-f652fe4f5ecc", + "name": "73616804-6715-ef44-b351-a0ebd324d741", "status": "InProgress", - "startTime": "2022-11-28T09:32:07.4570971Z" + "startTime": "2023-02-20T10:39:17.8609603Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/b32b59e9-50a1-4df2-a35b-f652fe4f5ecc?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/04686173-1567-44ef-b351-a0ebd324d741?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-a97a1390a55066459dc77acfa5bf0e96-56299020d8893b41-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "08bf1c982602de26f261538efe893449", + "traceparent": "00-f308e02c229c48c16f64c1c4381a1e5b-64dd81d6a49d3e50-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "cfb6a8e3837723a858a82f8826141cca", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -2102,31 +2016,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:33:49 GMT", + "Date": "Mon, 20 Feb 2023 10:39:24 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "fd0975f3-2bd3-4af1-bb74-5e2987b8a16a", - "x-ms-ratelimit-remaining-subscription-reads": "11984", - "x-ms-request-id": "9bd05988-7997-42f7-ab14-e1834f692a62", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T093349Z:fd0975f3-2bd3-4af1-bb74-5e2987b8a16a" + "x-ms-correlation-request-id": "f240a756-3313-4667-a9b7-9e59e321a725", + "x-ms-ratelimit-remaining-subscription-reads": "11935", + "x-ms-request-id": "51a8746b-c9c5-48fc-a498-b71cc7837393", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T103924Z:f240a756-3313-4667-a9b7-9e59e321a725" }, "ResponseBody": { - "name": "e9592bb3-a150-f24d-a35b-f652fe4f5ecc", + "name": "73616804-6715-ef44-b351-a0ebd324d741", "status": "InProgress", - "startTime": "2022-11-28T09:32:07.4570971Z" + "startTime": "2023-02-20T10:39:17.8609603Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/b32b59e9-50a1-4df2-a35b-f652fe4f5ecc?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/04686173-1567-44ef-b351-a0ebd324d741?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-a97a1390a55066459dc77acfa5bf0e96-f39513e9ed5fb840-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "9ada536386ef0ae9155dc18e6b67826c", + "traceparent": "00-f308e02c229c48c16f64c1c4381a1e5b-23ac1c8001de4a44-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "a357a728a825061a6ca26455a55375b1", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -2135,31 +2049,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:34:21 GMT", + "Date": "Mon, 20 Feb 2023 10:39:28 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "bf79e009-4674-4b1f-bde5-442d3c91dfd0", - "x-ms-ratelimit-remaining-subscription-reads": "11983", - "x-ms-request-id": "d60fb42f-38c2-47a4-b120-1a135919570c", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T093421Z:bf79e009-4674-4b1f-bde5-442d3c91dfd0" + "x-ms-correlation-request-id": "7c02e1f4-9bce-45ff-9e11-1c3784cfacd2", + "x-ms-ratelimit-remaining-subscription-reads": "11934", + "x-ms-request-id": "b3665936-0964-43bf-b88c-646540be37e1", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T103929Z:7c02e1f4-9bce-45ff-9e11-1c3784cfacd2" }, "ResponseBody": { - "name": "e9592bb3-a150-f24d-a35b-f652fe4f5ecc", + "name": "73616804-6715-ef44-b351-a0ebd324d741", "status": "InProgress", - "startTime": "2022-11-28T09:32:07.4570971Z" + "startTime": "2023-02-20T10:39:17.8609603Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/b32b59e9-50a1-4df2-a35b-f652fe4f5ecc?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/04686173-1567-44ef-b351-a0ebd324d741?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-a97a1390a55066459dc77acfa5bf0e96-c81bfe5d7b7f2140-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "0ec993b6fd0b555840d4acc1856c6cb7", + "traceparent": "00-f308e02c229c48c16f64c1c4381a1e5b-55d4657173edc88c-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "ff0ec2f72f75c4a20190ad68df075a4b", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -2168,31 +2082,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:34:53 GMT", + "Date": "Mon, 20 Feb 2023 10:39:36 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "7b3e6b72-a253-4ed2-9379-4816e083edc4", - "x-ms-ratelimit-remaining-subscription-reads": "11982", - "x-ms-request-id": "d4492b54-0890-4df1-bcb4-7328a02f073e", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T093454Z:7b3e6b72-a253-4ed2-9379-4816e083edc4" + "x-ms-correlation-request-id": "71105554-a613-4c94-99da-82be94da8545", + "x-ms-ratelimit-remaining-subscription-reads": "11933", + "x-ms-request-id": "41aa8161-1aed-41ed-ad0b-87f7de28116f", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T103937Z:71105554-a613-4c94-99da-82be94da8545" }, "ResponseBody": { - "name": "e9592bb3-a150-f24d-a35b-f652fe4f5ecc", + "name": "73616804-6715-ef44-b351-a0ebd324d741", "status": "InProgress", - "startTime": "2022-11-28T09:32:07.4570971Z" + "startTime": "2023-02-20T10:39:17.8609603Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/b32b59e9-50a1-4df2-a35b-f652fe4f5ecc?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/04686173-1567-44ef-b351-a0ebd324d741?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-a97a1390a55066459dc77acfa5bf0e96-c3b880c81839d94f-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "86e71277619011ae33b5f2a46498728a", + "traceparent": "00-f308e02c229c48c16f64c1c4381a1e5b-5ec318e049288fb1-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "5619bc8f69483b098eb062d41f527d04", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -2201,31 +2115,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:35:26 GMT", + "Date": "Mon, 20 Feb 2023 10:39:54 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "1cea1cd6-721e-4c46-9f74-578b6c0c19fb", - "x-ms-ratelimit-remaining-subscription-reads": "11981", - "x-ms-request-id": "d2c85cf9-391c-47ce-b7ea-bc47656e1811", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T093526Z:1cea1cd6-721e-4c46-9f74-578b6c0c19fb" + "x-ms-correlation-request-id": "ded488a4-fe25-4c76-9ad0-518f8663d8d9", + "x-ms-ratelimit-remaining-subscription-reads": "11932", + "x-ms-request-id": "f501b784-34e4-482a-a723-efc766165d8e", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T103954Z:ded488a4-fe25-4c76-9ad0-518f8663d8d9" }, "ResponseBody": { - "name": "e9592bb3-a150-f24d-a35b-f652fe4f5ecc", + "name": "73616804-6715-ef44-b351-a0ebd324d741", "status": "InProgress", - "startTime": "2022-11-28T09:32:07.4570971Z" + "startTime": "2023-02-20T10:39:17.8609603Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/b32b59e9-50a1-4df2-a35b-f652fe4f5ecc?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/04686173-1567-44ef-b351-a0ebd324d741?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-a97a1390a55066459dc77acfa5bf0e96-6f5218a0f353d644-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "6ad7e7de25c0653efb84591bda2784a9", + "traceparent": "00-f308e02c229c48c16f64c1c4381a1e5b-27eb1c84601e3651-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "63917d331d06f9540592a294fbb12665", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -2234,31 +2148,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:35:58 GMT", + "Date": "Mon, 20 Feb 2023 10:40:26 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "bd98033e-41c3-450d-8256-b351fff8ff87", - "x-ms-ratelimit-remaining-subscription-reads": "11980", - "x-ms-request-id": "57c30c6e-9378-470a-a233-7b9aae9c86e5", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T093558Z:bd98033e-41c3-450d-8256-b351fff8ff87" + "x-ms-correlation-request-id": "4bc835d5-0bbe-40d9-b9dc-0f6db42083da", + "x-ms-ratelimit-remaining-subscription-reads": "11931", + "x-ms-request-id": "d59f7b65-fd38-4e1a-8701-7e389a88b98a", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T104027Z:4bc835d5-0bbe-40d9-b9dc-0f6db42083da" }, "ResponseBody": { - "name": "e9592bb3-a150-f24d-a35b-f652fe4f5ecc", + "name": "73616804-6715-ef44-b351-a0ebd324d741", "status": "InProgress", - "startTime": "2022-11-28T09:32:07.4570971Z" + "startTime": "2023-02-20T10:39:17.8609603Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/b32b59e9-50a1-4df2-a35b-f652fe4f5ecc?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/04686173-1567-44ef-b351-a0ebd324d741?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-a97a1390a55066459dc77acfa5bf0e96-d48c448a2a01004d-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "59160af1fb8054dbe4b7db560ab3f0a8", + "traceparent": "00-f308e02c229c48c16f64c1c4381a1e5b-ec2cd64d476caca2-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "e9c619471e3a8d69b9d270c4cdcda5ae", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -2267,66 +2181,64 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:36:30 GMT", + "Date": "Mon, 20 Feb 2023 10:40:58 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "468bb6f3-ef7b-4d4c-9f39-2666548bc063", - "x-ms-ratelimit-remaining-subscription-reads": "11979", - "x-ms-request-id": "d0ed8b4d-3d8e-412b-af89-3929698295fd", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T093631Z:468bb6f3-ef7b-4d4c-9f39-2666548bc063" + "x-ms-correlation-request-id": "a74da4de-58f5-413d-978b-075bcac66044", + "x-ms-ratelimit-remaining-subscription-reads": "11930", + "x-ms-request-id": "40707605-fcc3-4814-a214-9071971d6aa2", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T104059Z:a74da4de-58f5-413d-978b-075bcac66044" }, "ResponseBody": { - "name": "e9592bb3-a150-f24d-a35b-f652fe4f5ecc", + "name": "73616804-6715-ef44-b351-a0ebd324d741", "status": "InProgress", - "startTime": "2022-11-28T09:32:07.4570971Z" + "startTime": "2023-02-20T10:39:17.8609603Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/b32b59e9-50a1-4df2-a35b-f652fe4f5ecc?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/04686173-1567-44ef-b351-a0ebd324d741?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "Connection": "close", - "traceparent": "00-a97a1390a55066459dc77acfa5bf0e96-44c4e4f3af8d284d-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "9ee22161019452f6d3818b0b0892370b", + "traceparent": "00-f308e02c229c48c16f64c1c4381a1e5b-ec91ae82562fa00d-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "6135a812f7767245672051b5c67540dd", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Connection": "close", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:37:02 GMT", + "Date": "Mon, 20 Feb 2023 10:41:31 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "3ef6dc95-2299-4a35-a9f0-0616e0effe30", - "x-ms-ratelimit-remaining-subscription-reads": "11978", - "x-ms-request-id": "722d12ef-e194-42ea-b613-aba3ff74dc4e", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T093703Z:3ef6dc95-2299-4a35-a9f0-0616e0effe30" + "x-ms-correlation-request-id": "40c31227-c2cf-4c79-b8bb-5d4237640b32", + "x-ms-ratelimit-remaining-subscription-reads": "11929", + "x-ms-request-id": "2377f103-401c-4791-a1e4-c9792b61bcfd", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T104131Z:40c31227-c2cf-4c79-b8bb-5d4237640b32" }, "ResponseBody": { - "name": "e9592bb3-a150-f24d-a35b-f652fe4f5ecc", + "name": "73616804-6715-ef44-b351-a0ebd324d741", "status": "InProgress", - "startTime": "2022-11-28T09:32:07.4570971Z" + "startTime": "2023-02-20T10:39:17.8609603Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/b32b59e9-50a1-4df2-a35b-f652fe4f5ecc?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/04686173-1567-44ef-b351-a0ebd324d741?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-a97a1390a55066459dc77acfa5bf0e96-4ff894201064224d-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "59b349301982e30a0b8285094ae85a47", + "traceparent": "00-f308e02c229c48c16f64c1c4381a1e5b-0dfb2b37737b7460-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "058dfd89948c15ca1403aa33ac8f2b37", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -2335,31 +2247,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:37:36 GMT", + "Date": "Mon, 20 Feb 2023 10:42:03 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "1a1b7eef-aa03-4edb-85c1-69f1456e3bcd", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "30392631-0b7d-4398-be30-4c831f07c810", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T093737Z:1a1b7eef-aa03-4edb-85c1-69f1456e3bcd" + "x-ms-correlation-request-id": "64b16500-641d-4792-8b8f-98ed6f40245c", + "x-ms-ratelimit-remaining-subscription-reads": "11928", + "x-ms-request-id": "a8a91c02-4665-46a4-b19f-ad48349d6c0a", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T104204Z:64b16500-641d-4792-8b8f-98ed6f40245c" }, "ResponseBody": { - "name": "e9592bb3-a150-f24d-a35b-f652fe4f5ecc", + "name": "73616804-6715-ef44-b351-a0ebd324d741", "status": "InProgress", - "startTime": "2022-11-28T09:32:07.4570971Z" + "startTime": "2023-02-20T10:39:17.8609603Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/b32b59e9-50a1-4df2-a35b-f652fe4f5ecc?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/04686173-1567-44ef-b351-a0ebd324d741?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-a97a1390a55066459dc77acfa5bf0e96-35d6ebc11d2a974a-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "b8bab193e644ef1514c485fe70cf4c51", + "traceparent": "00-f308e02c229c48c16f64c1c4381a1e5b-d7f3d6f84e8b72af-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "5381f4edc57c50eed353811accb3c743", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -2368,31 +2280,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:38:08 GMT", + "Date": "Mon, 20 Feb 2023 10:42:35 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "7a78487c-681a-4247-964e-22768c6ffbbd", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "6181aa07-5d27-4f2d-83f9-46f9fb80932f", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T093809Z:7a78487c-681a-4247-964e-22768c6ffbbd" + "x-ms-correlation-request-id": "babd901f-4835-4978-98ec-37959fcd52f1", + "x-ms-ratelimit-remaining-subscription-reads": "11927", + "x-ms-request-id": "7f152e10-33d5-431e-b7af-6f7874558430", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T104236Z:babd901f-4835-4978-98ec-37959fcd52f1" }, "ResponseBody": { - "name": "e9592bb3-a150-f24d-a35b-f652fe4f5ecc", + "name": "73616804-6715-ef44-b351-a0ebd324d741", "status": "InProgress", - "startTime": "2022-11-28T09:32:07.4570971Z" + "startTime": "2023-02-20T10:39:17.8609603Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/b32b59e9-50a1-4df2-a35b-f652fe4f5ecc?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/04686173-1567-44ef-b351-a0ebd324d741?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-a97a1390a55066459dc77acfa5bf0e96-6074a5eb7615f74a-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "c125cf809700472617ff92117ced07eb", + "traceparent": "00-f308e02c229c48c16f64c1c4381a1e5b-c84fcff933ef6933-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "d03b93929f407d21dd204d724c11c5d7", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -2401,31 +2313,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:38:41 GMT", + "Date": "Mon, 20 Feb 2023 10:43:08 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "930aab45-800f-4bd7-b21f-d866424eac44", - "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-request-id": "f779f5ae-37ed-4997-bb83-69a8ce4ec0f8", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T093841Z:930aab45-800f-4bd7-b21f-d866424eac44" + "x-ms-correlation-request-id": "550e91fe-27e2-4cb7-b483-d8baa8f95735", + "x-ms-ratelimit-remaining-subscription-reads": "11926", + "x-ms-request-id": "dd51ffdb-3cf6-41fd-9d37-71ed49b8af26", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T104308Z:550e91fe-27e2-4cb7-b483-d8baa8f95735" }, "ResponseBody": { - "name": "e9592bb3-a150-f24d-a35b-f652fe4f5ecc", + "name": "73616804-6715-ef44-b351-a0ebd324d741", "status": "InProgress", - "startTime": "2022-11-28T09:32:07.4570971Z" + "startTime": "2023-02-20T10:39:17.8609603Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/b32b59e9-50a1-4df2-a35b-f652fe4f5ecc?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/04686173-1567-44ef-b351-a0ebd324d741?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-a97a1390a55066459dc77acfa5bf0e96-515352948842a74f-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "577743277ed849c633c445bd940c733b", + "traceparent": "00-f308e02c229c48c16f64c1c4381a1e5b-da1c4dcb18c227ed-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "d2c71af4ecf3c3600e3c323913b04860", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -2434,31 +2346,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:39:13 GMT", + "Date": "Mon, 20 Feb 2023 10:43:40 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "b3c21d0a-1548-4e24-be3d-718851900f88", - "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-request-id": "f33add0b-37e9-4562-acf3-ac6ce5885592", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T093914Z:b3c21d0a-1548-4e24-be3d-718851900f88" + "x-ms-correlation-request-id": "1e06c40d-b7c9-4dc4-85fd-6f94edad1d9d", + "x-ms-ratelimit-remaining-subscription-reads": "11925", + "x-ms-request-id": "2716144f-5962-42fa-a6a3-ab20e2592d27", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T104341Z:1e06c40d-b7c9-4dc4-85fd-6f94edad1d9d" }, "ResponseBody": { - "name": "e9592bb3-a150-f24d-a35b-f652fe4f5ecc", + "name": "73616804-6715-ef44-b351-a0ebd324d741", "status": "InProgress", - "startTime": "2022-11-28T09:32:07.4570971Z" + "startTime": "2023-02-20T10:39:17.8609603Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/b32b59e9-50a1-4df2-a35b-f652fe4f5ecc?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/04686173-1567-44ef-b351-a0ebd324d741?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-a97a1390a55066459dc77acfa5bf0e96-d72c44eee2753147-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "7a88333598c2fc478a72a14554037326", + "traceparent": "00-f308e02c229c48c16f64c1c4381a1e5b-a07872e1fbf38ff8-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "18a1663c5b544df7d203755b777b03c1", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -2467,31 +2379,31 @@ "Cache-Control": "no-cache", "Content-Length": "126", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:39:46 GMT", + "Date": "Mon, 20 Feb 2023 10:44:13 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "e73ccc2f-6d91-4d1c-9c4e-9be179231b8a", - "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "6774a081-e398-4a9b-b193-424316141105", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T093946Z:e73ccc2f-6d91-4d1c-9c4e-9be179231b8a" + "x-ms-correlation-request-id": "ead0f742-ef9e-438f-8577-197d76c875a0", + "x-ms-ratelimit-remaining-subscription-reads": "11924", + "x-ms-request-id": "84241219-4bee-404b-a329-f0be938b7538", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T104413Z:ead0f742-ef9e-438f-8577-197d76c875a0" }, "ResponseBody": { - "name": "e9592bb3-a150-f24d-a35b-f652fe4f5ecc", + "name": "73616804-6715-ef44-b351-a0ebd324d741", "status": "InProgress", - "startTime": "2022-11-28T09:32:07.4570971Z" + "startTime": "2023-02-20T10:39:17.8609603Z" } }, { - "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/b32b59e9-50a1-4df2-a35b-f652fe4f5ecc?api-version=2017-08-31", + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/providers/Microsoft.ContainerService/locations/eastus/operations/04686173-1567-44ef-b351-a0ebd324d741?api-version=2017-08-31", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", - "traceparent": "00-a97a1390a55066459dc77acfa5bf0e96-55acf0a53827ec40-00", - "User-Agent": "azsdk-net-ResourceManager/1.3.2 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.19045 )", - "x-ms-client-request-id": "2cd799bcf557017908dc8d3c5168b30b", + "traceparent": "00-f308e02c229c48c16f64c1c4381a1e5b-775f0ea4a506769f-00", + "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "b226a98df5eba5503277c1046de86a2d", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -2500,29 +2412,29 @@ "Cache-Control": "no-cache", "Content-Length": "170", "Content-Type": "application/json", - "Date": "Mon, 28 Nov 2022 09:40:18 GMT", + "Date": "Mon, 20 Feb 2023 10:44:46 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "nginx", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "8c80972d-10d0-4742-8862-9a9c231fc1e2", - "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "58652200-7b1b-431e-b22e-b35dad24bbf5", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221128T094018Z:8c80972d-10d0-4742-8862-9a9c231fc1e2" + "x-ms-correlation-request-id": "aaeb4963-7143-4cbe-b542-b2043596df82", + "x-ms-ratelimit-remaining-subscription-reads": "11923", + "x-ms-request-id": "7d3b4cca-42d4-48f2-8294-81cae8686d05", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230220T104446Z:aaeb4963-7143-4cbe-b542-b2043596df82" }, "ResponseBody": { - "name": "e9592bb3-a150-f24d-a35b-f652fe4f5ecc", + "name": "73616804-6715-ef44-b351-a0ebd324d741", "status": "Succeeded", - "startTime": "2022-11-28T09:32:07.4570971Z", - "endTime": "2022-11-28T09:39:57.3528293Z" + "startTime": "2023-02-20T10:39:17.8609603Z", + "endTime": "2023-02-20T10:44:14.6358558Z" } } ], "Variables": { "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com", - "RandomSeed": "935637425", - "RESOURCE_MANAGER_URL": null, + "RandomSeed": "1812643490", + "RESOURCE_MANAGER_URL": "https://management.azure.com/", "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c" } } From 273cb7496771b61eea8f4a7b2576b7234cbcbf21 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Tue, 21 Feb 2023 08:09:59 -0500 Subject: [PATCH 43/72] Increment version for containerapps releases (#34412) Increment package version after release of Azure.ResourceManager.AppContainers --- .../Azure.ResourceManager.AppContainers/CHANGELOG.md | 10 ++++++++++ .../src/Azure.ResourceManager.AppContainers.csproj | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/CHANGELOG.md b/sdk/containerapps/Azure.ResourceManager.AppContainers/CHANGELOG.md index 6d2b435fe8a8a..b940cb30869ae 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/CHANGELOG.md +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.1.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.0.2 (2023-02-21) ### Other Changes diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Azure.ResourceManager.AppContainers.csproj b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Azure.ResourceManager.AppContainers.csproj index 063a1e993abbd..5c78fd82d594d 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Azure.ResourceManager.AppContainers.csproj +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Azure.ResourceManager.AppContainers.csproj @@ -1,8 +1,8 @@ - 1.0.2 + 1.1.0-beta.1 - 1.0.1 + 1.0.2 Azure.ResourceManager.AppContainers Microsoft Azure Resource Manager client SDK for Azure resource provider Microsoft.App。 azure;management;arm;resource manager;appcontainers From 8a8d790e382443ebb02a9c48cdf2487e8d8b0430 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Tue, 21 Feb 2023 08:32:27 -0500 Subject: [PATCH 44/72] Increment version for containerservice releases (#34413) Increment package version after release of Azure.ResourceManager.ContainerService --- .../CHANGELOG.md | 10 ++++++++++ .../src/Azure.ResourceManager.ContainerService.csproj | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/CHANGELOG.md b/sdk/containerservice/Azure.ResourceManager.ContainerService/CHANGELOG.md index 65d7f27ffea18..323de1e4f3cdd 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/CHANGELOG.md +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.2.0-beta.2 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.2.0-beta.1 (2023-02-21) ### Features Added diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Azure.ResourceManager.ContainerService.csproj b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Azure.ResourceManager.ContainerService.csproj index a15bb22359390..d1f07e42319c7 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Azure.ResourceManager.ContainerService.csproj +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Azure.ResourceManager.ContainerService.csproj @@ -1,6 +1,6 @@ - 1.2.0-beta.1 + 1.2.0-beta.2 1.1.0 Azure.ResourceManager.ContainerService From c54f494e9a4d34065290a0d329120eb5da4d8075 Mon Sep 17 00:00:00 2001 From: Tom Longhurst Date: Tue, 21 Feb 2023 14:15:36 +0000 Subject: [PATCH 45/72] Missing DI `IKeyEncryptionKeyResolver` registration in `ProtectKeysWithAzureKeyVault` methods (#34411) Co-authored-by: Tom Longhurst --- ...ureDataProtectionKeyVaultKeyBuilderExtensions.cs | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/sdk/extensions/Azure.Extensions.AspNetCore.DataProtection.Keys/src/AzureDataProtectionKeyVaultKeyBuilderExtensions.cs b/sdk/extensions/Azure.Extensions.AspNetCore.DataProtection.Keys/src/AzureDataProtectionKeyVaultKeyBuilderExtensions.cs index 5c322226cf3d0..d0367836720a9 100644 --- a/sdk/extensions/Azure.Extensions.AspNetCore.DataProtection.Keys/src/AzureDataProtectionKeyVaultKeyBuilderExtensions.cs +++ b/sdk/extensions/Azure.Extensions.AspNetCore.DataProtection.Keys/src/AzureDataProtectionKeyVaultKeyBuilderExtensions.cs @@ -71,9 +71,11 @@ public static IDataProtectionBuilder ProtectKeysWithAzureKeyVault(this IDataProt builder.Services.AddSingleton(); + builder.Services.AddSingleton(keyResolverFactory); + builder.Services.AddSingleton(sp => { - var keyResolver = keyResolverFactory(sp); + var keyResolver = sp.GetRequiredService(); return new AzureKeyVaultXmlEncryptor(keyResolver, keyIdentifier); }); @@ -97,10 +99,15 @@ public static IDataProtectionBuilder ProtectKeysWithAzureKeyVault(this IDataProt builder.Services.AddSingleton(); - builder.Services.AddSingleton(sp => + builder.Services.AddSingleton(sp => { var tokenCredential = tokenCredentialFactory(sp); - var keyResolver = new KeyResolver(tokenCredential); + return new KeyResolver(tokenCredential); + }); + + builder.Services.AddSingleton(sp => + { + var keyResolver = sp.GetRequiredService(); return new AzureKeyVaultXmlEncryptor(keyResolver, keyIdentifier); }); From ac9432c9292e902c31ed1ffda7acf2436ad23736 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Tue, 21 Feb 2023 10:05:35 -0500 Subject: [PATCH 46/72] Increment package version after release of Azure.ResourceManager.Automanage (#34418) --- .../Azure.ResourceManager.Automanage/CHANGELOG.md | 10 ++++++++++ .../src/Azure.ResourceManager.Automanage.csproj | 4 +++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/CHANGELOG.md b/sdk/automanage/Azure.ResourceManager.Automanage/CHANGELOG.md index 43541f1dd9035..e704b5dbbca22 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/CHANGELOG.md +++ b/sdk/automanage/Azure.ResourceManager.Automanage/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.1.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.0.0 (2023-02-21) This is the first stable release of the Azure Automanage management library. diff --git a/sdk/automanage/Azure.ResourceManager.Automanage/src/Azure.ResourceManager.Automanage.csproj b/sdk/automanage/Azure.ResourceManager.Automanage/src/Azure.ResourceManager.Automanage.csproj index 3d69a38eeef4f..6c12605a41c9c 100644 --- a/sdk/automanage/Azure.ResourceManager.Automanage/src/Azure.ResourceManager.Automanage.csproj +++ b/sdk/automanage/Azure.ResourceManager.Automanage/src/Azure.ResourceManager.Automanage.csproj @@ -1,6 +1,8 @@ - 1.0.0 + 1.1.0-beta.1 + + 1.0.0 Azure.ResourceManager.Automanage Microsoft Azure Resource Manager client SDK for Azure resource provider Microsoft.Automanage. azure;management;arm;resource manager;automanage From 6e4344fcda7da34a477fa232595d0c097a7eb781 Mon Sep 17 00:00:00 2001 From: Arthur Ma Date: Tue, 21 Feb 2023 23:22:33 +0800 Subject: [PATCH 47/72] Initial Azure.ResourceManager.ResourceHealth for first beta (#34369) --- .vscode/cspell.json | 6 + .../CHANGELOG.md | 11 +- .../src/Azure.ResourceManager.Purview.csproj | 2 +- .../Azure.ResourceManager.ResourceHealth.sln | 65 ++ .../CHANGELOG.md | 17 + .../Directory.Build.props | 6 + .../README.md | 80 +++ ...ceManager.ResourceHealth.netstandard2.0.cs | 661 ++++++++++++++++++ ...ourceManager.ResourceHealth.Samples.csproj | 10 + .../Sample_AvailabilityStatusResource.cs | 49 ++ ...ample_EmergingIssuesGetResultCollection.cs | 111 +++ .../Sample_EmergingIssuesGetResultResource.cs | 49 ++ .../Sample_MetadataEntityCollection.cs | 110 +++ .../Samples/Sample_MetadataEntityResource.cs | 48 ++ .../Sample_SubscriptionEventCollection.cs | 123 ++++ .../Sample_SubscriptionEventResource.cs | 111 +++ ...tionResourceHealthEventImpactedResource.cs | 50 ++ ...ceHealthEventImpactedResourceCollection.cs | 120 ++++ .../Samples/Sample_TenantEventCollection.cs | 116 +++ .../Samples/Sample_TenantEventResource.cs | 108 +++ ...nantResourceHealthEventImpactedResource.cs | 49 ++ ...ceHealthEventImpactedResourceCollection.cs | 117 ++++ .../samples/autorest.tests.md | 13 + ...zure.ResourceManager.ResourceHealth.csproj | 8 + .../ArmResourceHealthModelFactory.cs | 361 ++++++++++ .../src/Generated/AvailabilityStatusData.cs | 40 ++ .../Generated/AvailabilityStatusResource.cs | 157 +++++ .../EmergingIssuesGetResultCollection.cs | 244 +++++++ .../Generated/EmergingIssuesGetResultData.cs | 48 ++ .../EmergingIssuesGetResultResource.cs | 155 ++++ .../src/Generated/EventData.cs | 157 +++++ .../Generated/EventImpactedResourceData.cs | 50 ++ .../Extensions/ArmResourceExtensionClient.cs | 41 ++ .../Extensions/ResourceHealthExtensions.cs | 428 ++++++++++++ .../SubscriptionResourceExtensionClient.cs | 41 ++ .../TenantResourceExtensionClient.cs | 55 ++ .../src/Generated/MetadataEntityCollection.cs | 259 +++++++ .../src/Generated/MetadataEntityData.cs | 52 ++ .../src/Generated/MetadataEntityResource.cs | 154 ++++ .../Models/AvailabilityStateValue.cs | 57 ++ .../AvailabilityStatusData.Serialization.cs | 76 ++ ...ilabilityStatusListResult.Serialization.cs | 42 ++ .../Models/AvailabilityStatusListResult.cs | 43 ++ ...ilabilityStatusProperties.Serialization.cs | 194 +++++ .../Models/AvailabilityStatusProperties.cs | 106 +++ ...ropertiesRecentlyResolved.Serialization.cs | 52 ++ ...abilityStatusPropertiesRecentlyResolved.cs | 38 + .../EmergingIssueImpact.Serialization.cs | 52 ++ .../Generated/Models/EmergingIssueImpact.cs | 40 ++ .../EmergingIssueListResult.Serialization.cs | 47 ++ .../Models/EmergingIssueListResult.cs | 37 + ...ergingIssuesGetResultData.Serialization.cs | 111 +++ .../Models/EventData.Serialization.cs | 345 +++++++++ ...EventImpactedResourceData.Serialization.cs | 101 +++ ...mpactedResourceListResult.Serialization.cs | 42 ++ .../Models/EventImpactedResourceListResult.cs | 43 ++ .../src/Generated/Models/EventLevelValue.cs | 57 ++ ...tiesAdditionalInformation.Serialization.cs | 29 + .../EventPropertiesAdditionalInformation.cs | 28 + .../EventPropertiesArticle.Serialization.cs | 29 + .../Models/EventPropertiesArticle.cs | 28 + ...pertiesRecommendedActions.Serialization.cs | 52 ++ .../EventPropertiesRecommendedActions.cs | 40 ++ ...iesRecommendedActionsItem.Serialization.cs | 40 ++ .../EventPropertiesRecommendedActionsItem.cs | 32 + .../src/Generated/Models/EventSourceValue.cs | 51 ++ .../src/Generated/Models/EventStatusValue.cs | 51 ++ .../src/Generated/Models/EventTypeValue.cs | 63 ++ .../Generated/Models/Events.Serialization.cs | 42 ++ .../src/Generated/Models/Events.cs | 43 ++ .../src/Generated/Models/Faq.Serialization.cs | 41 ++ .../src/Generated/Models/Faq.cs | 36 + .../Generated/Models/Impact.Serialization.cs | 46 ++ .../src/Generated/Models/Impact.cs | 36 + .../Models/ImpactedRegion.Serialization.cs | 35 + .../src/Generated/Models/ImpactedRegion.cs | 32 + .../ImpactedServiceRegion.Serialization.cs | 101 +++ .../Generated/Models/ImpactedServiceRegion.cs | 55 ++ .../Generated/Models/IssueNameParameter.cs | 48 ++ .../Models/KeyValueItem.Serialization.cs | 35 + .../src/Generated/Models/KeyValueItem.cs | 32 + .../src/Generated/Models/LevelValue.cs | 51 ++ .../Generated/Models/Link.Serialization.cs | 69 ++ .../src/Generated/Models/Link.cs | 75 ++ .../Models/LinkDisplayText.Serialization.cs | 35 + .../src/Generated/Models/LinkDisplayText.cs | 32 + .../src/Generated/Models/LinkTypeValue.cs | 51 ++ .../MetadataEntityData.Serialization.cs | 121 ++++ .../MetadataEntityListResult.Serialization.cs | 47 ++ .../Models/MetadataEntityListResult.cs | 37 + ...adataSupportedValueDetail.Serialization.cs | 52 ++ .../Models/MetadataSupportedValueDetail.cs | 40 ++ .../Generated/Models/ReasonChronicityType.cs | 51 ++ .../Models/RecommendedAction.Serialization.cs | 47 ++ .../src/Generated/Models/RecommendedAction.cs | 38 + .../src/Generated/Models/Scenario.cs | 48 ++ .../ServiceImpactingEvent.Serialization.cs | 74 ++ .../Generated/Models/ServiceImpactingEvent.cs | 52 ++ ...ngEventIncidentProperties.Serialization.cs | 47 ++ ...ServiceImpactingEventIncidentProperties.cs | 40 ++ ...rviceImpactingEventStatus.Serialization.cs | 29 + .../Models/ServiceImpactingEventStatus.cs | 28 + .../src/Generated/Models/SeverityValue.cs | 54 ++ .../src/Generated/Models/StageValue.cs | 54 ++ .../Models/StatusActiveEvent.Serialization.cs | 120 ++++ .../src/Generated/Models/StatusActiveEvent.cs | 69 ++ .../Models/StatusBanner.Serialization.cs | 53 ++ .../src/Generated/Models/StatusBanner.cs | 42 ++ .../Generated/Models/Update.Serialization.cs | 41 ++ .../src/Generated/Models/Update.cs | 34 + .../src/Generated/ProviderConstants.cs | 16 + .../AvailabilityStatusesRestOperations.cs | 580 +++++++++++++++ .../EmergingIssuesRestOperations.cs | 219 ++++++ .../RestOperations/EventRestOperations.cs | 349 +++++++++ .../RestOperations/EventsRestOperations.cs | 463 ++++++++++++ .../ImpactedResourcesRestOperations.cs | 494 +++++++++++++ .../RestOperations/MetadataRestOperations.cs | 227 ++++++ ...AdvisoryImpactedResourcesRestOperations.cs | 336 +++++++++ .../Generated/SubscriptionEventCollection.cs | 276 ++++++++ .../Generated/SubscriptionEventResource.cs | 321 +++++++++ ...tionResourceHealthEventImpactedResource.cs | 153 ++++ ...ceHealthEventImpactedResourceCollection.cs | 260 +++++++ .../src/Generated/TenantEventCollection.cs | 276 ++++++++ .../src/Generated/TenantEventResource.cs | 321 +++++++++ ...nantResourceHealthEventImpactedResource.cs | 153 ++++ ...ceHealthEventImpactedResourceCollection.cs | 260 +++++++ .../src/Properties/AssemblyInfo.cs | 9 + .../src/autorest.md | 55 ++ ...esourceManager.ResourceHealth.Tests.csproj | 5 + .../tests/ResourceHealthManagementTestBase.cs | 41 ++ ...ResourceHealthManagementTestEnvironment.cs | 11 + sdk/resourcehealth/ci.mgmt.yml | 24 + sdk/resourcehealth/service.projects | 25 + sdk/resourcemanager/ci.mgmt.yml | 4 +- .../samples/autorest.tests.md | 2 +- 135 files changed, 13190 insertions(+), 11 deletions(-) create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/Azure.ResourceManager.ResourceHealth.sln create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/CHANGELOG.md create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/Directory.Build.props create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/README.md create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/api/Azure.ResourceManager.ResourceHealth.netstandard2.0.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Azure.ResourceManager.ResourceHealth.Samples.csproj create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_AvailabilityStatusResource.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_EmergingIssuesGetResultCollection.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_EmergingIssuesGetResultResource.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_MetadataEntityCollection.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_MetadataEntityResource.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_SubscriptionEventCollection.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_SubscriptionEventResource.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_SubscriptionResourceHealthEventImpactedResource.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_SubscriptionResourceHealthEventImpactedResourceCollection.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_TenantEventCollection.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_TenantEventResource.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_TenantResourceHealthEventImpactedResource.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_TenantResourceHealthEventImpactedResourceCollection.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/autorest.tests.md create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Azure.ResourceManager.ResourceHealth.csproj create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/ArmResourceHealthModelFactory.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/AvailabilityStatusData.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/AvailabilityStatusResource.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/EmergingIssuesGetResultCollection.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/EmergingIssuesGetResultData.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/EmergingIssuesGetResultResource.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/EventData.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/EventImpactedResourceData.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Extensions/ArmResourceExtensionClient.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Extensions/ResourceHealthExtensions.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Extensions/TenantResourceExtensionClient.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/MetadataEntityCollection.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/MetadataEntityData.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/MetadataEntityResource.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/AvailabilityStateValue.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/AvailabilityStatusData.Serialization.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/AvailabilityStatusListResult.Serialization.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/AvailabilityStatusListResult.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/AvailabilityStatusProperties.Serialization.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/AvailabilityStatusProperties.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/AvailabilityStatusPropertiesRecentlyResolved.Serialization.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/AvailabilityStatusPropertiesRecentlyResolved.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EmergingIssueImpact.Serialization.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EmergingIssueImpact.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EmergingIssueListResult.Serialization.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EmergingIssueListResult.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EmergingIssuesGetResultData.Serialization.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventData.Serialization.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventImpactedResourceData.Serialization.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventImpactedResourceListResult.Serialization.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventImpactedResourceListResult.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventLevelValue.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventPropertiesAdditionalInformation.Serialization.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventPropertiesAdditionalInformation.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventPropertiesArticle.Serialization.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventPropertiesArticle.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventPropertiesRecommendedActions.Serialization.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventPropertiesRecommendedActions.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventPropertiesRecommendedActionsItem.Serialization.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventPropertiesRecommendedActionsItem.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventSourceValue.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventStatusValue.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventTypeValue.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/Events.Serialization.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/Events.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/Faq.Serialization.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/Faq.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/Impact.Serialization.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/Impact.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ImpactedRegion.Serialization.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ImpactedRegion.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ImpactedServiceRegion.Serialization.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ImpactedServiceRegion.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/IssueNameParameter.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/KeyValueItem.Serialization.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/KeyValueItem.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/LevelValue.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/Link.Serialization.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/Link.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/LinkDisplayText.Serialization.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/LinkDisplayText.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/LinkTypeValue.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/MetadataEntityData.Serialization.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/MetadataEntityListResult.Serialization.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/MetadataEntityListResult.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/MetadataSupportedValueDetail.Serialization.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/MetadataSupportedValueDetail.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ReasonChronicityType.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/RecommendedAction.Serialization.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/RecommendedAction.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/Scenario.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ServiceImpactingEvent.Serialization.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ServiceImpactingEvent.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ServiceImpactingEventIncidentProperties.Serialization.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ServiceImpactingEventIncidentProperties.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ServiceImpactingEventStatus.Serialization.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ServiceImpactingEventStatus.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/SeverityValue.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/StageValue.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/StatusActiveEvent.Serialization.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/StatusActiveEvent.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/StatusBanner.Serialization.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/StatusBanner.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/Update.Serialization.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/Update.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/ProviderConstants.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/AvailabilityStatusesRestOperations.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/EmergingIssuesRestOperations.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/EventRestOperations.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/EventsRestOperations.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/ImpactedResourcesRestOperations.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/MetadataRestOperations.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/SecurityAdvisoryImpactedResourcesRestOperations.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/SubscriptionEventCollection.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/SubscriptionEventResource.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/SubscriptionResourceHealthEventImpactedResource.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/SubscriptionResourceHealthEventImpactedResourceCollection.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/TenantEventCollection.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/TenantEventResource.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/TenantResourceHealthEventImpactedResource.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/TenantResourceHealthEventImpactedResourceCollection.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Properties/AssemblyInfo.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/autorest.md create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/tests/Azure.ResourceManager.ResourceHealth.Tests.csproj create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/tests/ResourceHealthManagementTestBase.cs create mode 100644 sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/tests/ResourceHealthManagementTestEnvironment.cs create mode 100644 sdk/resourcehealth/ci.mgmt.yml create mode 100644 sdk/resourcehealth/service.projects diff --git a/.vscode/cspell.json b/.vscode/cspell.json index a6eec99a62b03..bfd8f5fb36dbb 100644 --- a/.vscode/cspell.json +++ b/.vscode/cspell.json @@ -733,6 +733,12 @@ "Puid" ] }, + { + "filename": "**/sdk/resourcehealth/**/*.cs", + "words": [ + "occured" + ] + }, { "filename": "**/sdk/servicefabricmanagedclusters/**/*.cs", "words": [ diff --git a/sdk/purview/Azure.ResourceManager.Purview/CHANGELOG.md b/sdk/purview/Azure.ResourceManager.Purview/CHANGELOG.md index dc8eb614d3697..108d35c659287 100644 --- a/sdk/purview/Azure.ResourceManager.Purview/CHANGELOG.md +++ b/sdk/purview/Azure.ResourceManager.Purview/CHANGELOG.md @@ -1,15 +1,12 @@ # Release History -## 1.1.0-beta.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed +## 1.0.1 (2023-02-21) ### Other Changes +- Upgraded dependent `Azure.Core` to `1.28.0`. +- Upgraded dependent `Azure.ResourceManager` to `1.4.0`. + ## 1.0.0 (2022-09-26) This release is the first stable release of the Purview Management library. diff --git a/sdk/purview/Azure.ResourceManager.Purview/src/Azure.ResourceManager.Purview.csproj b/sdk/purview/Azure.ResourceManager.Purview/src/Azure.ResourceManager.Purview.csproj index 57d589287eb7c..69b1d6c141706 100644 --- a/sdk/purview/Azure.ResourceManager.Purview/src/Azure.ResourceManager.Purview.csproj +++ b/sdk/purview/Azure.ResourceManager.Purview/src/Azure.ResourceManager.Purview.csproj @@ -1,6 +1,6 @@ - 1.1.0-beta.1 + 1.0.1 1.0.0 Azure.ResourceManager.Purview diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/Azure.ResourceManager.ResourceHealth.sln b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/Azure.ResourceManager.ResourceHealth.sln new file mode 100644 index 0000000000000..3719b295003be --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/Azure.ResourceManager.ResourceHealth.sln @@ -0,0 +1,65 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.4.33403.182 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.ResourceManager.ResourceHealth", "src\Azure.ResourceManager.ResourceHealth.csproj", "{9E8D08A6-9D1D-430E-8FCB-D532CDDBAF5A}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.ResourceManager.ResourceHealth.Tests", "tests\Azure.ResourceManager.ResourceHealth.Tests.csproj", "{BB0F4B07-B84D-4332-BC51-37A41483C23A}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.ResourceManager.ResourceHealth.Samples", "samples\Azure.ResourceManager.ResourceHealth.Samples.csproj", "{9B9FABBB-5223-4B55-81C1-2444FB662E9C}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|Any CPU = Release|Any CPU + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {9E8D08A6-9D1D-430E-8FCB-D532CDDBAF5A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {9E8D08A6-9D1D-430E-8FCB-D532CDDBAF5A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9E8D08A6-9D1D-430E-8FCB-D532CDDBAF5A}.Debug|x64.ActiveCfg = Debug|Any CPU + {9E8D08A6-9D1D-430E-8FCB-D532CDDBAF5A}.Debug|x64.Build.0 = Debug|Any CPU + {9E8D08A6-9D1D-430E-8FCB-D532CDDBAF5A}.Debug|x86.ActiveCfg = Debug|Any CPU + {9E8D08A6-9D1D-430E-8FCB-D532CDDBAF5A}.Debug|x86.Build.0 = Debug|Any CPU + {9E8D08A6-9D1D-430E-8FCB-D532CDDBAF5A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {9E8D08A6-9D1D-430E-8FCB-D532CDDBAF5A}.Release|Any CPU.Build.0 = Release|Any CPU + {9E8D08A6-9D1D-430E-8FCB-D532CDDBAF5A}.Release|x64.ActiveCfg = Release|Any CPU + {9E8D08A6-9D1D-430E-8FCB-D532CDDBAF5A}.Release|x64.Build.0 = Release|Any CPU + {9E8D08A6-9D1D-430E-8FCB-D532CDDBAF5A}.Release|x86.ActiveCfg = Release|Any CPU + {9E8D08A6-9D1D-430E-8FCB-D532CDDBAF5A}.Release|x86.Build.0 = Release|Any CPU + {BB0F4B07-B84D-4332-BC51-37A41483C23A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {BB0F4B07-B84D-4332-BC51-37A41483C23A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {BB0F4B07-B84D-4332-BC51-37A41483C23A}.Debug|x64.ActiveCfg = Debug|Any CPU + {BB0F4B07-B84D-4332-BC51-37A41483C23A}.Debug|x64.Build.0 = Debug|Any CPU + {BB0F4B07-B84D-4332-BC51-37A41483C23A}.Debug|x86.ActiveCfg = Debug|Any CPU + {BB0F4B07-B84D-4332-BC51-37A41483C23A}.Debug|x86.Build.0 = Debug|Any CPU + {BB0F4B07-B84D-4332-BC51-37A41483C23A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {BB0F4B07-B84D-4332-BC51-37A41483C23A}.Release|Any CPU.Build.0 = Release|Any CPU + {BB0F4B07-B84D-4332-BC51-37A41483C23A}.Release|x64.ActiveCfg = Release|Any CPU + {BB0F4B07-B84D-4332-BC51-37A41483C23A}.Release|x64.Build.0 = Release|Any CPU + {BB0F4B07-B84D-4332-BC51-37A41483C23A}.Release|x86.ActiveCfg = Release|Any CPU + {BB0F4B07-B84D-4332-BC51-37A41483C23A}.Release|x86.Build.0 = Release|Any CPU + {9B9FABBB-5223-4B55-81C1-2444FB662E9C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {9B9FABBB-5223-4B55-81C1-2444FB662E9C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9B9FABBB-5223-4B55-81C1-2444FB662E9C}.Debug|x64.ActiveCfg = Debug|Any CPU + {9B9FABBB-5223-4B55-81C1-2444FB662E9C}.Debug|x64.Build.0 = Debug|Any CPU + {9B9FABBB-5223-4B55-81C1-2444FB662E9C}.Debug|x86.ActiveCfg = Debug|Any CPU + {9B9FABBB-5223-4B55-81C1-2444FB662E9C}.Debug|x86.Build.0 = Debug|Any CPU + {9B9FABBB-5223-4B55-81C1-2444FB662E9C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {9B9FABBB-5223-4B55-81C1-2444FB662E9C}.Release|Any CPU.Build.0 = Release|Any CPU + {9B9FABBB-5223-4B55-81C1-2444FB662E9C}.Release|x64.ActiveCfg = Release|Any CPU + {9B9FABBB-5223-4B55-81C1-2444FB662E9C}.Release|x64.Build.0 = Release|Any CPU + {9B9FABBB-5223-4B55-81C1-2444FB662E9C}.Release|x86.ActiveCfg = Release|Any CPU + {9B9FABBB-5223-4B55-81C1-2444FB662E9C}.Release|x86.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {63E57332-52F3-4BDB-B29F-28FACCA5F337} + EndGlobalSection +EndGlobal diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/CHANGELOG.md b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/CHANGELOG.md new file mode 100644 index 0000000000000..07ab6d218f216 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/CHANGELOG.md @@ -0,0 +1,17 @@ +# Release History + +## 1.0.0-beta.1 (2023-02-21) + +### General New Features + +This package follows the [new Azure SDK guidelines](https://azure.github.io/azure-sdk/general_introduction.html), and provides many core capabilities: + + - Support MSAL.NET, Azure.Identity is out of box for supporting MSAL.NET. + - Support [OpenTelemetry](https://opentelemetry.io/) for distributed tracing. + - HTTP pipeline with custom policies. + - Better error-handling. + - Support uniform telemetry across all languages. + +This package is a Public Preview version, so expect incompatible changes in subsequent releases as we improve the product. To provide feedback, submit an issue in our [Azure SDK for .NET GitHub repo](https://github.com/Azure/azure-sdk-for-net/issues). + +> NOTE: For more information about unified authentication, please refer to [Microsoft Azure Identity documentation for .NET](https://docs.microsoft.com//dotnet/api/overview/azure/identity-readme?view=azure-dotnet). \ No newline at end of file diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/Directory.Build.props b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/Directory.Build.props new file mode 100644 index 0000000000000..1a9611bd49242 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/Directory.Build.props @@ -0,0 +1,6 @@ + + + + diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/README.md b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/README.md new file mode 100644 index 0000000000000..17a8d677568ce --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/README.md @@ -0,0 +1,80 @@ +# Microsoft Azure Resource Health management client library for .NET + +Microsoft Azure Resource Health helps you diagnose and get support for service problems that affect your Azure resources. It reports on the current and past health of your resources. + +This library follows the [new Azure SDK guidelines](https://azure.github.io/azure-sdk/general_introduction.html), and provides many core capabilities: + + - Support MSAL.NET, Azure.Identity is out of box for supporting MSAL.NET. + - Support [OpenTelemetry](https://opentelemetry.io/) for distributed tracing. + - HTTP pipeline with custom policies. + - Better error-handling. + - Support uniform telemetry across all languages. + +## Getting started + +### Install the package + +Install the Microsoft Azure Resource Health management library for .NET with [NuGet](https://www.nuget.org/): + +```dotnetcli +dotnet add package Azure.ResourceManager.ResourceHealth --prerelease +``` + +### Prerequisites + +* You must have an [Microsoft Azure subscription](https://azure.microsoft.com/free/dotnet/). + +### Authenticate the Client + +To create an authenticated client and start interacting with Microsoft Azure resources, see the [quickstart guide here](https://github.com/Azure/azure-sdk-for-net/blob/main/doc/dev/mgmt_quickstart.md). + +## Key concepts + +Key concepts of the Microsoft Azure SDK for .NET can be found [here](https://azure.github.io/azure-sdk/dotnet_introduction.html) + +## Documentation + +Documentation is available to help you learn how to use this package: + +- [Quickstart](https://github.com/Azure/azure-sdk-for-net/blob/main/doc/dev/mgmt_quickstart.md). +- [API References](https://docs.microsoft.com/dotnet/api/?view=azure-dotnet). +- [Authentication](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md). + +## Examples + +Code samples for using the management library for .NET can be found in the following locations +- [.NET Management Library Code Samples](https://aka.ms/azuresdk-net-mgmt-samples) + +## Troubleshooting + +- File an issue via [GitHub Issues](https://github.com/Azure/azure-sdk-for-net/issues). +- Check [previous questions](https://stackoverflow.com/questions/tagged/azure+.net) or ask new ones on Stack Overflow using Azure and .NET tags. + +## Next steps + +For more information about Microsoft Azure SDK, see [this website](https://azure.github.io/azure-sdk/). + +## Contributing + +For details on contributing to this repository, see the [contributing +guide][cg]. + +This project welcomes contributions and suggestions. Most contributions +require you to agree to a Contributor License Agreement (CLA) declaring +that you have the right to, and actually do, grant us the rights to use +your contribution. For details, visit . + +When you submit a pull request, a CLA-bot will automatically determine +whether you need to provide a CLA and decorate the PR appropriately +(for example, label, comment). Follow the instructions provided by the +bot. You'll only need to do this action once across all repositories +using our CLA. + +This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For +more information, see the [Code of Conduct FAQ][coc_faq] or contact + with any other questions or comments. + + +[cg]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/resourcemanager/Azure.ResourceManager/docs/CONTRIBUTING.md +[coc]: https://opensource.microsoft.com/codeofconduct/ +[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ \ No newline at end of file diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/api/Azure.ResourceManager.ResourceHealth.netstandard2.0.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/api/Azure.ResourceManager.ResourceHealth.netstandard2.0.cs new file mode 100644 index 0000000000000..0b0cddc6add88 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/api/Azure.ResourceManager.ResourceHealth.netstandard2.0.cs @@ -0,0 +1,661 @@ +namespace Azure.ResourceManager.ResourceHealth +{ + public partial class AvailabilityStatusData : Azure.ResourceManager.Models.ResourceData + { + internal AvailabilityStatusData() { } + public Azure.Core.AzureLocation? Location { get { throw null; } } + public Azure.ResourceManager.ResourceHealth.Models.AvailabilityStatusProperties Properties { get { throw null; } } + } + public partial class AvailabilityStatusResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected AvailabilityStatusResource() { } + public virtual Azure.ResourceManager.ResourceHealth.AvailabilityStatusData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string resourceUri) { throw null; } + public virtual Azure.Response Get(string filter = null, string expand = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string filter = null, string expand = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class EmergingIssuesGetResultCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected EmergingIssuesGetResultCollection() { } + public virtual Azure.Response Exists(Azure.ResourceManager.ResourceHealth.Models.IssueNameParameter issueName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(Azure.ResourceManager.ResourceHealth.Models.IssueNameParameter issueName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(Azure.ResourceManager.ResourceHealth.Models.IssueNameParameter issueName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(Azure.ResourceManager.ResourceHealth.Models.IssueNameParameter issueName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class EmergingIssuesGetResultData : Azure.ResourceManager.Models.ResourceData + { + internal EmergingIssuesGetResultData() { } + public System.DateTimeOffset? RefreshTimestamp { get { throw null; } } + public System.Collections.Generic.IReadOnlyList StatusActiveEvents { get { throw null; } } + public System.Collections.Generic.IReadOnlyList StatusBanners { get { throw null; } } + } + public partial class EmergingIssuesGetResultResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected EmergingIssuesGetResultResource() { } + public virtual Azure.ResourceManager.ResourceHealth.EmergingIssuesGetResultData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(Azure.ResourceManager.ResourceHealth.Models.IssueNameParameter issueName) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class EventData : Azure.ResourceManager.Models.ResourceData + { + internal EventData() { } + public string AdditionalInformationMessage { get { throw null; } } + public string ArticleContent { get { throw null; } } + public string Description { get { throw null; } } + public int? Duration { get { throw null; } } + public bool? EnableChatWithUs { get { throw null; } } + public bool? EnableMicrosoftSupport { get { throw null; } } + public Azure.ResourceManager.ResourceHealth.Models.EventLevelValue? EventLevel { get { throw null; } } + public Azure.ResourceManager.ResourceHealth.Models.EventSourceValue? EventSource { get { throw null; } } + public Azure.ResourceManager.ResourceHealth.Models.EventTypeValue? EventType { get { throw null; } } + public string ExternalIncidentId { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Faqs { get { throw null; } } + public string Header { get { throw null; } } + public string HirStage { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Impact { get { throw null; } } + public System.DateTimeOffset? ImpactMitigationOn { get { throw null; } } + public System.DateTimeOffset? ImpactStartOn { get { throw null; } } + public string ImpactType { get { throw null; } } + public bool? IsHIR { get { throw null; } } + public System.DateTimeOffset? LastUpdateOn { get { throw null; } } + public Azure.ResourceManager.ResourceHealth.Models.LevelValue? Level { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Links { get { throw null; } } + public bool? PlatformInitiated { get { throw null; } } + public int? Priority { get { throw null; } } + public Azure.ResourceManager.ResourceHealth.Models.EventPropertiesRecommendedActions RecommendedActions { get { throw null; } } + public Azure.ResourceManager.ResourceHealth.Models.EventStatusValue? Status { get { throw null; } } + public string Summary { get { throw null; } } + public string Title { get { throw null; } } + } + public partial class EventImpactedResourceData : Azure.ResourceManager.Models.ResourceData + { + internal EventImpactedResourceData() { } + public System.Collections.Generic.IReadOnlyList Info { get { throw null; } } + public string TargetRegion { get { throw null; } } + public string TargetResourceId { get { throw null; } } + public string TargetResourceType { get { throw null; } } + } + public partial class MetadataEntityCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected MetadataEntityCollection() { } + public virtual Azure.Response Exists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class MetadataEntityData : Azure.ResourceManager.Models.ResourceData + { + internal MetadataEntityData() { } + public System.Collections.Generic.IReadOnlyList ApplicableScenarios { get { throw null; } } + public System.Collections.Generic.IReadOnlyList DependsOn { get { throw null; } } + public string DisplayName { get { throw null; } } + public System.Collections.Generic.IReadOnlyList SupportedValues { get { throw null; } } + } + public partial class MetadataEntityResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected MetadataEntityResource() { } + public virtual Azure.ResourceManager.ResourceHealth.MetadataEntityData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string name) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public static partial class ResourceHealthExtensions + { + public static Azure.ResourceManager.ResourceHealth.AvailabilityStatusResource GetAvailabilityStatus(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope) { throw null; } + public static Azure.ResourceManager.ResourceHealth.AvailabilityStatusResource GetAvailabilityStatusResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.Response GetEmergingIssuesGetResult(this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.ResourceManager.ResourceHealth.Models.IssueNameParameter issueName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetEmergingIssuesGetResultAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.ResourceManager.ResourceHealth.Models.IssueNameParameter issueName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.ResourceHealth.EmergingIssuesGetResultResource GetEmergingIssuesGetResultResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.ResourceHealth.EmergingIssuesGetResultCollection GetEmergingIssuesGetResults(this Azure.ResourceManager.Resources.TenantResource tenantResource) { throw null; } + public static Azure.ResourceManager.ResourceHealth.MetadataEntityCollection GetMetadataEntities(this Azure.ResourceManager.Resources.TenantResource tenantResource) { throw null; } + public static Azure.Response GetMetadataEntity(this Azure.ResourceManager.Resources.TenantResource tenantResource, string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetMetadataEntityAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.ResourceHealth.MetadataEntityResource GetMetadataEntityResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.Response GetSubscriptionEvent(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string eventTrackingId, string filter = null, string queryStartTime = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetSubscriptionEventAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string eventTrackingId, string filter = null, string queryStartTime = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.ResourceHealth.SubscriptionEventResource GetSubscriptionEventResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.ResourceHealth.SubscriptionEventCollection GetSubscriptionEvents(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource) { throw null; } + public static Azure.ResourceManager.ResourceHealth.SubscriptionResourceHealthEventImpactedResource GetSubscriptionResourceHealthEventImpactedResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.Response GetTenantEvent(this Azure.ResourceManager.Resources.TenantResource tenantResource, string eventTrackingId, string filter = null, string queryStartTime = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetTenantEventAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, string eventTrackingId, string filter = null, string queryStartTime = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.ResourceHealth.TenantEventResource GetTenantEventResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.ResourceHealth.TenantEventCollection GetTenantEvents(this Azure.ResourceManager.Resources.TenantResource tenantResource) { throw null; } + public static Azure.ResourceManager.ResourceHealth.TenantResourceHealthEventImpactedResource GetTenantResourceHealthEventImpactedResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + } + public partial class SubscriptionEventCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected SubscriptionEventCollection() { } + public virtual Azure.Response Exists(string eventTrackingId, string filter = null, string queryStartTime = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string eventTrackingId, string filter = null, string queryStartTime = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string eventTrackingId, string filter = null, string queryStartTime = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string filter = null, string queryStartTime = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string filter = null, string queryStartTime = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string eventTrackingId, string filter = null, string queryStartTime = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class SubscriptionEventResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected SubscriptionEventResource() { } + public virtual Azure.ResourceManager.ResourceHealth.EventData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string eventTrackingId) { throw null; } + public virtual Azure.Response FetchDetailsBySubscriptionIdAndTrackingId(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> FetchDetailsBySubscriptionIdAndTrackingIdAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string filter = null, string queryStartTime = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string filter = null, string queryStartTime = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetSecurityAdvisoryImpactedResourcesBySubscriptionIdAndEventId(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetSecurityAdvisoryImpactedResourcesBySubscriptionIdAndEventIdAsync(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetSubscriptionResourceHealthEventImpactedResource(string impactedResourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetSubscriptionResourceHealthEventImpactedResourceAsync(string impactedResourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ResourceHealth.SubscriptionResourceHealthEventImpactedResourceCollection GetSubscriptionResourceHealthEventImpactedResources() { throw null; } + } + public partial class SubscriptionResourceHealthEventImpactedResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected SubscriptionResourceHealthEventImpactedResource() { } + public virtual Azure.ResourceManager.ResourceHealth.EventImpactedResourceData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string eventTrackingId, string impactedResourceName) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class SubscriptionResourceHealthEventImpactedResourceCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected SubscriptionResourceHealthEventImpactedResourceCollection() { } + public virtual Azure.Response Exists(string impactedResourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string impactedResourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string impactedResourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string impactedResourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class TenantEventCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected TenantEventCollection() { } + public virtual Azure.Response Exists(string eventTrackingId, string filter = null, string queryStartTime = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string eventTrackingId, string filter = null, string queryStartTime = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string eventTrackingId, string filter = null, string queryStartTime = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string filter = null, string queryStartTime = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string filter = null, string queryStartTime = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string eventTrackingId, string filter = null, string queryStartTime = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class TenantEventResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected TenantEventResource() { } + public virtual Azure.ResourceManager.ResourceHealth.EventData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string eventTrackingId) { throw null; } + public virtual Azure.Response FetchDetailsByTenantIdAndTrackingId(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> FetchDetailsByTenantIdAndTrackingIdAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string filter = null, string queryStartTime = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string filter = null, string queryStartTime = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetSecurityAdvisoryImpactedResourcesByTenantIdAndEventId(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetSecurityAdvisoryImpactedResourcesByTenantIdAndEventIdAsync(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetTenantResourceHealthEventImpactedResource(string impactedResourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetTenantResourceHealthEventImpactedResourceAsync(string impactedResourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ResourceHealth.TenantResourceHealthEventImpactedResourceCollection GetTenantResourceHealthEventImpactedResources() { throw null; } + } + public partial class TenantResourceHealthEventImpactedResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected TenantResourceHealthEventImpactedResource() { } + public virtual Azure.ResourceManager.ResourceHealth.EventImpactedResourceData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string eventTrackingId, string impactedResourceName) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class TenantResourceHealthEventImpactedResourceCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected TenantResourceHealthEventImpactedResourceCollection() { } + public virtual Azure.Response Exists(string impactedResourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string impactedResourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string impactedResourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string impactedResourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } +} +namespace Azure.ResourceManager.ResourceHealth.Models +{ + public static partial class ArmResourceHealthModelFactory + { + public static Azure.ResourceManager.ResourceHealth.AvailabilityStatusData AvailabilityStatusData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), Azure.ResourceManager.ResourceHealth.Models.AvailabilityStatusProperties properties = null) { throw null; } + public static Azure.ResourceManager.ResourceHealth.Models.AvailabilityStatusProperties AvailabilityStatusProperties(Azure.ResourceManager.ResourceHealth.Models.AvailabilityStateValue? availabilityState = default(Azure.ResourceManager.ResourceHealth.Models.AvailabilityStateValue?), string title = null, string summary = null, string detailedStatus = null, string reasonType = null, string context = null, string category = null, System.DateTimeOffset? rootCauseAttributionOn = default(System.DateTimeOffset?), string healthEventType = null, string healthEventCause = null, string healthEventCategory = null, string healthEventId = null, System.DateTimeOffset? resolutionETA = default(System.DateTimeOffset?), System.DateTimeOffset? occuredOn = default(System.DateTimeOffset?), Azure.ResourceManager.ResourceHealth.Models.ReasonChronicityType? reasonChronicity = default(Azure.ResourceManager.ResourceHealth.Models.ReasonChronicityType?), System.DateTimeOffset? reportedOn = default(System.DateTimeOffset?), Azure.ResourceManager.ResourceHealth.Models.AvailabilityStatusPropertiesRecentlyResolved recentlyResolved = null, System.Collections.Generic.IEnumerable recommendedActions = null, System.Collections.Generic.IEnumerable serviceImpactingEvents = null) { throw null; } + public static Azure.ResourceManager.ResourceHealth.Models.AvailabilityStatusPropertiesRecentlyResolved AvailabilityStatusPropertiesRecentlyResolved(System.DateTimeOffset? unavailableOccuredOn = default(System.DateTimeOffset?), System.DateTimeOffset? resolvedOn = default(System.DateTimeOffset?), string unavailableSummary = null) { throw null; } + public static Azure.ResourceManager.ResourceHealth.Models.EmergingIssueImpact EmergingIssueImpact(string id = null, string name = null, System.Collections.Generic.IEnumerable regions = null) { throw null; } + public static Azure.ResourceManager.ResourceHealth.EmergingIssuesGetResultData EmergingIssuesGetResultData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.DateTimeOffset? refreshTimestamp = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable statusBanners = null, System.Collections.Generic.IEnumerable statusActiveEvents = null) { throw null; } + public static Azure.ResourceManager.ResourceHealth.EventData EventData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.ResourceHealth.Models.EventTypeValue? eventType = default(Azure.ResourceManager.ResourceHealth.Models.EventTypeValue?), Azure.ResourceManager.ResourceHealth.Models.EventSourceValue? eventSource = default(Azure.ResourceManager.ResourceHealth.Models.EventSourceValue?), Azure.ResourceManager.ResourceHealth.Models.EventStatusValue? status = default(Azure.ResourceManager.ResourceHealth.Models.EventStatusValue?), string title = null, string summary = null, string header = null, Azure.ResourceManager.ResourceHealth.Models.LevelValue? level = default(Azure.ResourceManager.ResourceHealth.Models.LevelValue?), Azure.ResourceManager.ResourceHealth.Models.EventLevelValue? eventLevel = default(Azure.ResourceManager.ResourceHealth.Models.EventLevelValue?), string externalIncidentId = null, string articleContent = null, System.Collections.Generic.IEnumerable links = null, System.DateTimeOffset? impactStartOn = default(System.DateTimeOffset?), System.DateTimeOffset? impactMitigationOn = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable impact = null, Azure.ResourceManager.ResourceHealth.Models.EventPropertiesRecommendedActions recommendedActions = null, System.Collections.Generic.IEnumerable faqs = null, bool? isHIR = default(bool?), bool? enableMicrosoftSupport = default(bool?), string description = null, bool? platformInitiated = default(bool?), bool? enableChatWithUs = default(bool?), int? priority = default(int?), System.DateTimeOffset? lastUpdateOn = default(System.DateTimeOffset?), string hirStage = null, string additionalInformationMessage = null, int? duration = default(int?), string impactType = null) { throw null; } + public static Azure.ResourceManager.ResourceHealth.EventImpactedResourceData EventImpactedResourceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string targetResourceType = null, string targetResourceId = null, string targetRegion = null, System.Collections.Generic.IEnumerable info = null) { throw null; } + public static Azure.ResourceManager.ResourceHealth.Models.EventPropertiesRecommendedActions EventPropertiesRecommendedActions(string message = null, System.Collections.Generic.IEnumerable actions = null, string localeCode = null) { throw null; } + public static Azure.ResourceManager.ResourceHealth.Models.EventPropertiesRecommendedActionsItem EventPropertiesRecommendedActionsItem(int? groupId = default(int?), string actionText = null) { throw null; } + public static Azure.ResourceManager.ResourceHealth.Models.Faq Faq(string question = null, string answer = null, string localeCode = null) { throw null; } + public static Azure.ResourceManager.ResourceHealth.Models.Impact Impact(string impactedService = null, System.Collections.Generic.IEnumerable impactedRegions = null) { throw null; } + public static Azure.ResourceManager.ResourceHealth.Models.ImpactedRegion ImpactedRegion(string id = null, string name = null) { throw null; } + public static Azure.ResourceManager.ResourceHealth.Models.ImpactedServiceRegion ImpactedServiceRegion(string impactedRegion = null, Azure.ResourceManager.ResourceHealth.Models.EventStatusValue? status = default(Azure.ResourceManager.ResourceHealth.Models.EventStatusValue?), System.Collections.Generic.IEnumerable impactedSubscriptions = null, System.Collections.Generic.IEnumerable impactedTenants = null, System.DateTimeOffset? lastUpdateOn = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable updates = null) { throw null; } + public static Azure.ResourceManager.ResourceHealth.Models.KeyValueItem KeyValueItem(string key = null, string value = null) { throw null; } + public static Azure.ResourceManager.ResourceHealth.Models.Link Link(Azure.ResourceManager.ResourceHealth.Models.LinkTypeValue? linkType = default(Azure.ResourceManager.ResourceHealth.Models.LinkTypeValue?), Azure.ResourceManager.ResourceHealth.Models.LinkDisplayText displayText = null, string extensionName = null, string bladeName = null, System.BinaryData parameters = null) { throw null; } + public static Azure.ResourceManager.ResourceHealth.Models.LinkDisplayText LinkDisplayText(string value = null, string localizedValue = null) { throw null; } + public static Azure.ResourceManager.ResourceHealth.MetadataEntityData MetadataEntityData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string displayName = null, System.Collections.Generic.IEnumerable dependsOn = null, System.Collections.Generic.IEnumerable applicableScenarios = null, System.Collections.Generic.IEnumerable supportedValues = null) { throw null; } + public static Azure.ResourceManager.ResourceHealth.Models.MetadataSupportedValueDetail MetadataSupportedValueDetail(string id = null, string displayName = null, System.Collections.Generic.IEnumerable resourceTypes = null) { throw null; } + public static Azure.ResourceManager.ResourceHealth.Models.RecommendedAction RecommendedAction(string action = null, System.Uri actionUri = null, string actionUrlText = null) { throw null; } + public static Azure.ResourceManager.ResourceHealth.Models.ServiceImpactingEvent ServiceImpactingEvent(System.DateTimeOffset? eventStartOn = default(System.DateTimeOffset?), System.DateTimeOffset? eventStatusLastModifiedOn = default(System.DateTimeOffset?), string correlationId = null, string statusValue = null, Azure.ResourceManager.ResourceHealth.Models.ServiceImpactingEventIncidentProperties incidentProperties = null) { throw null; } + public static Azure.ResourceManager.ResourceHealth.Models.ServiceImpactingEventIncidentProperties ServiceImpactingEventIncidentProperties(string title = null, string service = null, string region = null, string incidentType = null) { throw null; } + public static Azure.ResourceManager.ResourceHealth.Models.StatusActiveEvent StatusActiveEvent(string title = null, string description = null, string trackingId = null, System.DateTimeOffset? startOn = default(System.DateTimeOffset?), string cloud = null, Azure.ResourceManager.ResourceHealth.Models.SeverityValue? severity = default(Azure.ResourceManager.ResourceHealth.Models.SeverityValue?), Azure.ResourceManager.ResourceHealth.Models.StageValue? stage = default(Azure.ResourceManager.ResourceHealth.Models.StageValue?), bool? published = default(bool?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable impacts = null) { throw null; } + public static Azure.ResourceManager.ResourceHealth.Models.StatusBanner StatusBanner(string title = null, string message = null, string cloud = null, System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?)) { throw null; } + public static Azure.ResourceManager.ResourceHealth.Models.Update Update(string summary = null, System.DateTimeOffset? updateOn = default(System.DateTimeOffset?)) { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct AvailabilityStateValue : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public AvailabilityStateValue(string value) { throw null; } + public static Azure.ResourceManager.ResourceHealth.Models.AvailabilityStateValue Available { get { throw null; } } + public static Azure.ResourceManager.ResourceHealth.Models.AvailabilityStateValue Degraded { get { throw null; } } + public static Azure.ResourceManager.ResourceHealth.Models.AvailabilityStateValue Unavailable { get { throw null; } } + public static Azure.ResourceManager.ResourceHealth.Models.AvailabilityStateValue Unknown { get { throw null; } } + public bool Equals(Azure.ResourceManager.ResourceHealth.Models.AvailabilityStateValue other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.ResourceHealth.Models.AvailabilityStateValue left, Azure.ResourceManager.ResourceHealth.Models.AvailabilityStateValue right) { throw null; } + public static implicit operator Azure.ResourceManager.ResourceHealth.Models.AvailabilityStateValue (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.ResourceHealth.Models.AvailabilityStateValue left, Azure.ResourceManager.ResourceHealth.Models.AvailabilityStateValue right) { throw null; } + public override string ToString() { throw null; } + } + public partial class AvailabilityStatusProperties + { + internal AvailabilityStatusProperties() { } + public Azure.ResourceManager.ResourceHealth.Models.AvailabilityStateValue? AvailabilityState { get { throw null; } } + public string Category { get { throw null; } } + public string Context { get { throw null; } } + public string DetailedStatus { get { throw null; } } + public string HealthEventCategory { get { throw null; } } + public string HealthEventCause { get { throw null; } } + public string HealthEventId { get { throw null; } } + public string HealthEventType { get { throw null; } } + public System.DateTimeOffset? OccuredOn { get { throw null; } } + public Azure.ResourceManager.ResourceHealth.Models.ReasonChronicityType? ReasonChronicity { get { throw null; } } + public string ReasonType { get { throw null; } } + public Azure.ResourceManager.ResourceHealth.Models.AvailabilityStatusPropertiesRecentlyResolved RecentlyResolved { get { throw null; } } + public System.Collections.Generic.IReadOnlyList RecommendedActions { get { throw null; } } + public System.DateTimeOffset? ReportedOn { get { throw null; } } + public System.DateTimeOffset? ResolutionETA { get { throw null; } } + public System.DateTimeOffset? RootCauseAttributionOn { get { throw null; } } + public System.Collections.Generic.IReadOnlyList ServiceImpactingEvents { get { throw null; } } + public string Summary { get { throw null; } } + public string Title { get { throw null; } } + } + public partial class AvailabilityStatusPropertiesRecentlyResolved + { + internal AvailabilityStatusPropertiesRecentlyResolved() { } + public System.DateTimeOffset? ResolvedOn { get { throw null; } } + public System.DateTimeOffset? UnavailableOccuredOn { get { throw null; } } + public string UnavailableSummary { get { throw null; } } + } + public partial class EmergingIssueImpact + { + internal EmergingIssueImpact() { } + public string Id { get { throw null; } } + public string Name { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Regions { get { throw null; } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct EventLevelValue : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public EventLevelValue(string value) { throw null; } + public static Azure.ResourceManager.ResourceHealth.Models.EventLevelValue Critical { get { throw null; } } + public static Azure.ResourceManager.ResourceHealth.Models.EventLevelValue Error { get { throw null; } } + public static Azure.ResourceManager.ResourceHealth.Models.EventLevelValue Informational { get { throw null; } } + public static Azure.ResourceManager.ResourceHealth.Models.EventLevelValue Warning { get { throw null; } } + public bool Equals(Azure.ResourceManager.ResourceHealth.Models.EventLevelValue other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.ResourceHealth.Models.EventLevelValue left, Azure.ResourceManager.ResourceHealth.Models.EventLevelValue right) { throw null; } + public static implicit operator Azure.ResourceManager.ResourceHealth.Models.EventLevelValue (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.ResourceHealth.Models.EventLevelValue left, Azure.ResourceManager.ResourceHealth.Models.EventLevelValue right) { throw null; } + public override string ToString() { throw null; } + } + public partial class EventPropertiesRecommendedActions + { + internal EventPropertiesRecommendedActions() { } + public System.Collections.Generic.IReadOnlyList Actions { get { throw null; } } + public string LocaleCode { get { throw null; } } + public string Message { get { throw null; } } + } + public partial class EventPropertiesRecommendedActionsItem + { + internal EventPropertiesRecommendedActionsItem() { } + public string ActionText { get { throw null; } } + public int? GroupId { get { throw null; } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct EventSourceValue : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public EventSourceValue(string value) { throw null; } + public static Azure.ResourceManager.ResourceHealth.Models.EventSourceValue ResourceHealth { get { throw null; } } + public static Azure.ResourceManager.ResourceHealth.Models.EventSourceValue ServiceHealth { get { throw null; } } + public bool Equals(Azure.ResourceManager.ResourceHealth.Models.EventSourceValue other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.ResourceHealth.Models.EventSourceValue left, Azure.ResourceManager.ResourceHealth.Models.EventSourceValue right) { throw null; } + public static implicit operator Azure.ResourceManager.ResourceHealth.Models.EventSourceValue (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.ResourceHealth.Models.EventSourceValue left, Azure.ResourceManager.ResourceHealth.Models.EventSourceValue right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct EventStatusValue : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public EventStatusValue(string value) { throw null; } + public static Azure.ResourceManager.ResourceHealth.Models.EventStatusValue Active { get { throw null; } } + public static Azure.ResourceManager.ResourceHealth.Models.EventStatusValue Resolved { get { throw null; } } + public bool Equals(Azure.ResourceManager.ResourceHealth.Models.EventStatusValue other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.ResourceHealth.Models.EventStatusValue left, Azure.ResourceManager.ResourceHealth.Models.EventStatusValue right) { throw null; } + public static implicit operator Azure.ResourceManager.ResourceHealth.Models.EventStatusValue (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.ResourceHealth.Models.EventStatusValue left, Azure.ResourceManager.ResourceHealth.Models.EventStatusValue right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct EventTypeValue : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public EventTypeValue(string value) { throw null; } + public static Azure.ResourceManager.ResourceHealth.Models.EventTypeValue EmergingIssues { get { throw null; } } + public static Azure.ResourceManager.ResourceHealth.Models.EventTypeValue HealthAdvisory { get { throw null; } } + public static Azure.ResourceManager.ResourceHealth.Models.EventTypeValue PlannedMaintenance { get { throw null; } } + public static Azure.ResourceManager.ResourceHealth.Models.EventTypeValue RCA { get { throw null; } } + public static Azure.ResourceManager.ResourceHealth.Models.EventTypeValue SecurityAdvisory { get { throw null; } } + public static Azure.ResourceManager.ResourceHealth.Models.EventTypeValue ServiceIssue { get { throw null; } } + public bool Equals(Azure.ResourceManager.ResourceHealth.Models.EventTypeValue other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.ResourceHealth.Models.EventTypeValue left, Azure.ResourceManager.ResourceHealth.Models.EventTypeValue right) { throw null; } + public static implicit operator Azure.ResourceManager.ResourceHealth.Models.EventTypeValue (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.ResourceHealth.Models.EventTypeValue left, Azure.ResourceManager.ResourceHealth.Models.EventTypeValue right) { throw null; } + public override string ToString() { throw null; } + } + public partial class Faq + { + internal Faq() { } + public string Answer { get { throw null; } } + public string LocaleCode { get { throw null; } } + public string Question { get { throw null; } } + } + public partial class Impact + { + internal Impact() { } + public System.Collections.Generic.IReadOnlyList ImpactedRegions { get { throw null; } } + public string ImpactedService { get { throw null; } } + } + public partial class ImpactedRegion + { + internal ImpactedRegion() { } + public string Id { get { throw null; } } + public string Name { get { throw null; } } + } + public partial class ImpactedServiceRegion + { + internal ImpactedServiceRegion() { } + public string ImpactedRegion { get { throw null; } } + public System.Collections.Generic.IReadOnlyList ImpactedSubscriptions { get { throw null; } } + public System.Collections.Generic.IReadOnlyList ImpactedTenants { get { throw null; } } + public System.DateTimeOffset? LastUpdateOn { get { throw null; } } + public Azure.ResourceManager.ResourceHealth.Models.EventStatusValue? Status { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Updates { get { throw null; } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct IssueNameParameter : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public IssueNameParameter(string value) { throw null; } + public static Azure.ResourceManager.ResourceHealth.Models.IssueNameParameter Default { get { throw null; } } + public bool Equals(Azure.ResourceManager.ResourceHealth.Models.IssueNameParameter other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.ResourceHealth.Models.IssueNameParameter left, Azure.ResourceManager.ResourceHealth.Models.IssueNameParameter right) { throw null; } + public static implicit operator Azure.ResourceManager.ResourceHealth.Models.IssueNameParameter (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.ResourceHealth.Models.IssueNameParameter left, Azure.ResourceManager.ResourceHealth.Models.IssueNameParameter right) { throw null; } + public override string ToString() { throw null; } + } + public partial class KeyValueItem + { + internal KeyValueItem() { } + public string Key { get { throw null; } } + public string Value { get { throw null; } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct LevelValue : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public LevelValue(string value) { throw null; } + public static Azure.ResourceManager.ResourceHealth.Models.LevelValue Critical { get { throw null; } } + public static Azure.ResourceManager.ResourceHealth.Models.LevelValue Warning { get { throw null; } } + public bool Equals(Azure.ResourceManager.ResourceHealth.Models.LevelValue other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.ResourceHealth.Models.LevelValue left, Azure.ResourceManager.ResourceHealth.Models.LevelValue right) { throw null; } + public static implicit operator Azure.ResourceManager.ResourceHealth.Models.LevelValue (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.ResourceHealth.Models.LevelValue left, Azure.ResourceManager.ResourceHealth.Models.LevelValue right) { throw null; } + public override string ToString() { throw null; } + } + public partial class Link + { + internal Link() { } + public string BladeName { get { throw null; } } + public Azure.ResourceManager.ResourceHealth.Models.LinkDisplayText DisplayText { get { throw null; } } + public string ExtensionName { get { throw null; } } + public Azure.ResourceManager.ResourceHealth.Models.LinkTypeValue? LinkType { get { throw null; } } + public System.BinaryData Parameters { get { throw null; } } + } + public partial class LinkDisplayText + { + internal LinkDisplayText() { } + public string LocalizedValue { get { throw null; } } + public string Value { get { throw null; } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct LinkTypeValue : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public LinkTypeValue(string value) { throw null; } + public static Azure.ResourceManager.ResourceHealth.Models.LinkTypeValue Button { get { throw null; } } + public static Azure.ResourceManager.ResourceHealth.Models.LinkTypeValue Hyperlink { get { throw null; } } + public bool Equals(Azure.ResourceManager.ResourceHealth.Models.LinkTypeValue other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.ResourceHealth.Models.LinkTypeValue left, Azure.ResourceManager.ResourceHealth.Models.LinkTypeValue right) { throw null; } + public static implicit operator Azure.ResourceManager.ResourceHealth.Models.LinkTypeValue (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.ResourceHealth.Models.LinkTypeValue left, Azure.ResourceManager.ResourceHealth.Models.LinkTypeValue right) { throw null; } + public override string ToString() { throw null; } + } + public partial class MetadataSupportedValueDetail + { + internal MetadataSupportedValueDetail() { } + public string DisplayName { get { throw null; } } + public string Id { get { throw null; } } + public System.Collections.Generic.IReadOnlyList ResourceTypes { get { throw null; } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ReasonChronicityType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ReasonChronicityType(string value) { throw null; } + public static Azure.ResourceManager.ResourceHealth.Models.ReasonChronicityType Persistent { get { throw null; } } + public static Azure.ResourceManager.ResourceHealth.Models.ReasonChronicityType Transient { get { throw null; } } + public bool Equals(Azure.ResourceManager.ResourceHealth.Models.ReasonChronicityType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.ResourceHealth.Models.ReasonChronicityType left, Azure.ResourceManager.ResourceHealth.Models.ReasonChronicityType right) { throw null; } + public static implicit operator Azure.ResourceManager.ResourceHealth.Models.ReasonChronicityType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.ResourceHealth.Models.ReasonChronicityType left, Azure.ResourceManager.ResourceHealth.Models.ReasonChronicityType right) { throw null; } + public override string ToString() { throw null; } + } + public partial class RecommendedAction + { + internal RecommendedAction() { } + public string Action { get { throw null; } } + public System.Uri ActionUri { get { throw null; } } + public string ActionUrlText { get { throw null; } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct Scenario : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public Scenario(string value) { throw null; } + public static Azure.ResourceManager.ResourceHealth.Models.Scenario Alerts { get { throw null; } } + public bool Equals(Azure.ResourceManager.ResourceHealth.Models.Scenario other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.ResourceHealth.Models.Scenario left, Azure.ResourceManager.ResourceHealth.Models.Scenario right) { throw null; } + public static implicit operator Azure.ResourceManager.ResourceHealth.Models.Scenario (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.ResourceHealth.Models.Scenario left, Azure.ResourceManager.ResourceHealth.Models.Scenario right) { throw null; } + public override string ToString() { throw null; } + } + public partial class ServiceImpactingEvent + { + internal ServiceImpactingEvent() { } + public string CorrelationId { get { throw null; } } + public System.DateTimeOffset? EventStartOn { get { throw null; } } + public System.DateTimeOffset? EventStatusLastModifiedOn { get { throw null; } } + public Azure.ResourceManager.ResourceHealth.Models.ServiceImpactingEventIncidentProperties IncidentProperties { get { throw null; } } + public string StatusValue { get { throw null; } } + } + public partial class ServiceImpactingEventIncidentProperties + { + internal ServiceImpactingEventIncidentProperties() { } + public string IncidentType { get { throw null; } } + public string Region { get { throw null; } } + public string Service { get { throw null; } } + public string Title { get { throw null; } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct SeverityValue : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public SeverityValue(string value) { throw null; } + public static Azure.ResourceManager.ResourceHealth.Models.SeverityValue Error { get { throw null; } } + public static Azure.ResourceManager.ResourceHealth.Models.SeverityValue Information { get { throw null; } } + public static Azure.ResourceManager.ResourceHealth.Models.SeverityValue Warning { get { throw null; } } + public bool Equals(Azure.ResourceManager.ResourceHealth.Models.SeverityValue other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.ResourceHealth.Models.SeverityValue left, Azure.ResourceManager.ResourceHealth.Models.SeverityValue right) { throw null; } + public static implicit operator Azure.ResourceManager.ResourceHealth.Models.SeverityValue (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.ResourceHealth.Models.SeverityValue left, Azure.ResourceManager.ResourceHealth.Models.SeverityValue right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct StageValue : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public StageValue(string value) { throw null; } + public static Azure.ResourceManager.ResourceHealth.Models.StageValue Active { get { throw null; } } + public static Azure.ResourceManager.ResourceHealth.Models.StageValue Archived { get { throw null; } } + public static Azure.ResourceManager.ResourceHealth.Models.StageValue Resolve { get { throw null; } } + public bool Equals(Azure.ResourceManager.ResourceHealth.Models.StageValue other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.ResourceHealth.Models.StageValue left, Azure.ResourceManager.ResourceHealth.Models.StageValue right) { throw null; } + public static implicit operator Azure.ResourceManager.ResourceHealth.Models.StageValue (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.ResourceHealth.Models.StageValue left, Azure.ResourceManager.ResourceHealth.Models.StageValue right) { throw null; } + public override string ToString() { throw null; } + } + public partial class StatusActiveEvent + { + internal StatusActiveEvent() { } + public string Cloud { get { throw null; } } + public string Description { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Impacts { get { throw null; } } + public System.DateTimeOffset? LastModifiedOn { get { throw null; } } + public bool? Published { get { throw null; } } + public Azure.ResourceManager.ResourceHealth.Models.SeverityValue? Severity { get { throw null; } } + public Azure.ResourceManager.ResourceHealth.Models.StageValue? Stage { get { throw null; } } + public System.DateTimeOffset? StartOn { get { throw null; } } + public string Title { get { throw null; } } + public string TrackingId { get { throw null; } } + } + public partial class StatusBanner + { + internal StatusBanner() { } + public string Cloud { get { throw null; } } + public System.DateTimeOffset? LastModifiedOn { get { throw null; } } + public string Message { get { throw null; } } + public string Title { get { throw null; } } + } + public partial class Update + { + internal Update() { } + public string Summary { get { throw null; } } + public System.DateTimeOffset? UpdateOn { get { throw null; } } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Azure.ResourceManager.ResourceHealth.Samples.csproj b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Azure.ResourceManager.ResourceHealth.Samples.csproj new file mode 100644 index 0000000000000..cb1db8173c3d7 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Azure.ResourceManager.ResourceHealth.Samples.csproj @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_AvailabilityStatusResource.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_AvailabilityStatusResource.cs new file mode 100644 index 0000000000000..29ad3bdc771cc --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_AvailabilityStatusResource.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.ResourceHealth; + +namespace Azure.ResourceManager.ResourceHealth.Samples +{ + public partial class Sample_AvailabilityStatusResource + { + // GetCurrentHealthByResource + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetCurrentHealthByResource() + { + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/examples/AvailabilityStatus_GetByResource.json + // this example is just showing the usage of "AvailabilityStatuses_GetByResource" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this AvailabilityStatusResource created on azure + // for more information of creating AvailabilityStatusResource, please refer to the document of AvailabilityStatusResource + string resourceUri = "resourceUri"; + ResourceIdentifier availabilityStatusResourceId = AvailabilityStatusResource.CreateResourceIdentifier(resourceUri); + AvailabilityStatusResource availabilityStatus = client.GetAvailabilityStatusResource(availabilityStatusResourceId); + + // invoke the operation + string expand = "recommendedactions"; + AvailabilityStatusResource result = await availabilityStatus.GetAsync(expand: expand); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + AvailabilityStatusData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_EmergingIssuesGetResultCollection.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_EmergingIssuesGetResultCollection.cs new file mode 100644 index 0000000000000..985bbfa62f614 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_EmergingIssuesGetResultCollection.cs @@ -0,0 +1,111 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.ResourceHealth; +using Azure.ResourceManager.ResourceHealth.Models; + +namespace Azure.ResourceManager.ResourceHealth.Samples +{ + public partial class Sample_EmergingIssuesGetResultCollection + { + // GetEmergingIssues + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetAll_GetEmergingIssues() + { + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/examples/EmergingIssues_List.json + // this example is just showing the usage of "EmergingIssues_List" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this TenantResource created on azure + // for more information of creating TenantResource, please refer to the document of TenantResource + var tenantResource = client.GetTenants().GetAllAsync().GetAsyncEnumerator().Current; + + // get the collection of this EmergingIssuesGetResultResource + EmergingIssuesGetResultCollection collection = tenantResource.GetEmergingIssuesGetResults(); + + // invoke the operation and iterate over the result + await foreach (EmergingIssuesGetResultResource item in collection.GetAllAsync()) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + EmergingIssuesGetResultData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // GetEmergingIssues + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetEmergingIssues() + { + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/examples/EmergingIssues_Get.json + // this example is just showing the usage of "EmergingIssues_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this TenantResource created on azure + // for more information of creating TenantResource, please refer to the document of TenantResource + var tenantResource = client.GetTenants().GetAllAsync().GetAsyncEnumerator().Current; + + // get the collection of this EmergingIssuesGetResultResource + EmergingIssuesGetResultCollection collection = tenantResource.GetEmergingIssuesGetResults(); + + // invoke the operation + IssueNameParameter issueName = IssueNameParameter.Default; + EmergingIssuesGetResultResource result = await collection.GetAsync(issueName); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + EmergingIssuesGetResultData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // GetEmergingIssues + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_GetEmergingIssues() + { + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/examples/EmergingIssues_Get.json + // this example is just showing the usage of "EmergingIssues_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this TenantResource created on azure + // for more information of creating TenantResource, please refer to the document of TenantResource + var tenantResource = client.GetTenants().GetAllAsync().GetAsyncEnumerator().Current; + + // get the collection of this EmergingIssuesGetResultResource + EmergingIssuesGetResultCollection collection = tenantResource.GetEmergingIssuesGetResults(); + + // invoke the operation + IssueNameParameter issueName = IssueNameParameter.Default; + bool result = await collection.ExistsAsync(issueName); + + Console.WriteLine($"Succeeded: {result}"); + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_EmergingIssuesGetResultResource.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_EmergingIssuesGetResultResource.cs new file mode 100644 index 0000000000000..5c3e92f14ac35 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_EmergingIssuesGetResultResource.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.ResourceHealth; +using Azure.ResourceManager.ResourceHealth.Models; + +namespace Azure.ResourceManager.ResourceHealth.Samples +{ + public partial class Sample_EmergingIssuesGetResultResource + { + // GetEmergingIssues + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetEmergingIssues() + { + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/examples/EmergingIssues_Get.json + // this example is just showing the usage of "EmergingIssues_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this EmergingIssuesGetResultResource created on azure + // for more information of creating EmergingIssuesGetResultResource, please refer to the document of EmergingIssuesGetResultResource + IssueNameParameter issueName = IssueNameParameter.Default; + ResourceIdentifier emergingIssuesGetResultResourceId = EmergingIssuesGetResultResource.CreateResourceIdentifier(issueName); + EmergingIssuesGetResultResource emergingIssuesGetResult = client.GetEmergingIssuesGetResultResource(emergingIssuesGetResultResourceId); + + // invoke the operation + EmergingIssuesGetResultResource result = await emergingIssuesGetResult.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + EmergingIssuesGetResultData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_MetadataEntityCollection.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_MetadataEntityCollection.cs new file mode 100644 index 0000000000000..0bd5a3094611d --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_MetadataEntityCollection.cs @@ -0,0 +1,110 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.ResourceHealth; + +namespace Azure.ResourceManager.ResourceHealth.Samples +{ + public partial class Sample_MetadataEntityCollection + { + // GetMetadata + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetAll_GetMetadata() + { + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/examples/Metadata_List.json + // this example is just showing the usage of "Metadata_List" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this TenantResource created on azure + // for more information of creating TenantResource, please refer to the document of TenantResource + var tenantResource = client.GetTenants().GetAllAsync().GetAsyncEnumerator().Current; + + // get the collection of this MetadataEntityResource + MetadataEntityCollection collection = tenantResource.GetMetadataEntities(); + + // invoke the operation and iterate over the result + await foreach (MetadataEntityResource item in collection.GetAllAsync()) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MetadataEntityData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // GetMetadata + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetMetadata() + { + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/examples/Metadata_GetEntity.json + // this example is just showing the usage of "Metadata_GetEntity" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this TenantResource created on azure + // for more information of creating TenantResource, please refer to the document of TenantResource + var tenantResource = client.GetTenants().GetAllAsync().GetAsyncEnumerator().Current; + + // get the collection of this MetadataEntityResource + MetadataEntityCollection collection = tenantResource.GetMetadataEntities(); + + // invoke the operation + string name = "status"; + MetadataEntityResource result = await collection.GetAsync(name); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MetadataEntityData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // GetMetadata + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_GetMetadata() + { + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/examples/Metadata_GetEntity.json + // this example is just showing the usage of "Metadata_GetEntity" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this TenantResource created on azure + // for more information of creating TenantResource, please refer to the document of TenantResource + var tenantResource = client.GetTenants().GetAllAsync().GetAsyncEnumerator().Current; + + // get the collection of this MetadataEntityResource + MetadataEntityCollection collection = tenantResource.GetMetadataEntities(); + + // invoke the operation + string name = "status"; + bool result = await collection.ExistsAsync(name); + + Console.WriteLine($"Succeeded: {result}"); + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_MetadataEntityResource.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_MetadataEntityResource.cs new file mode 100644 index 0000000000000..fb9ab311f8d39 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_MetadataEntityResource.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.ResourceHealth; + +namespace Azure.ResourceManager.ResourceHealth.Samples +{ + public partial class Sample_MetadataEntityResource + { + // GetMetadata + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetMetadata() + { + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/examples/Metadata_GetEntity.json + // this example is just showing the usage of "Metadata_GetEntity" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this MetadataEntityResource created on azure + // for more information of creating MetadataEntityResource, please refer to the document of MetadataEntityResource + string name = "status"; + ResourceIdentifier metadataEntityResourceId = MetadataEntityResource.CreateResourceIdentifier(name); + MetadataEntityResource metadataEntity = client.GetMetadataEntityResource(metadataEntityResourceId); + + // invoke the operation + MetadataEntityResource result = await metadataEntity.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MetadataEntityData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_SubscriptionEventCollection.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_SubscriptionEventCollection.cs new file mode 100644 index 0000000000000..c6ed5bc07343b --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_SubscriptionEventCollection.cs @@ -0,0 +1,123 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.ResourceHealth; +using Azure.ResourceManager.Resources; + +namespace Azure.ResourceManager.ResourceHealth.Samples +{ + public partial class Sample_SubscriptionEventCollection + { + // ListEventsBySubscriptionId + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetAll_ListEventsBySubscriptionId() + { + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/examples/Events_ListBySubscriptionId.json + // this example is just showing the usage of "Events_ListBySubscriptionId" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SubscriptionResource created on azure + // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource + string subscriptionId = "subscriptionId"; + ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId); + SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId); + + // get the collection of this SubscriptionEventResource + SubscriptionEventCollection collection = subscriptionResource.GetSubscriptionEvents(); + + // invoke the operation and iterate over the result + string filter = "service eq 'Virtual Machines' or region eq 'West US'"; + string queryStartTime = "7/24/2020"; + await foreach (SubscriptionEventResource item in collection.GetAllAsync(filter: filter, queryStartTime: queryStartTime)) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + EventData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // SecurityAdvisoriesEventBySubscriptionIdAndTrackingId + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_SecurityAdvisoriesEventBySubscriptionIdAndTrackingId() + { + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/examples/Event_GetBySubscriptionIdAndTrackingId.json + // this example is just showing the usage of "Event_GetBySubscriptionIdAndTrackingId" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SubscriptionResource created on azure + // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource + string subscriptionId = "subscriptionId"; + ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId); + SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId); + + // get the collection of this SubscriptionEventResource + SubscriptionEventCollection collection = subscriptionResource.GetSubscriptionEvents(); + + // invoke the operation + string eventTrackingId = "eventTrackingId"; + string filter = "properties/status eq 'Active'"; + string queryStartTime = "7/10/2022"; + SubscriptionEventResource result = await collection.GetAsync(eventTrackingId, filter: filter, queryStartTime: queryStartTime); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + EventData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // SecurityAdvisoriesEventBySubscriptionIdAndTrackingId + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_SecurityAdvisoriesEventBySubscriptionIdAndTrackingId() + { + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/examples/Event_GetBySubscriptionIdAndTrackingId.json + // this example is just showing the usage of "Event_GetBySubscriptionIdAndTrackingId" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SubscriptionResource created on azure + // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource + string subscriptionId = "subscriptionId"; + ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId); + SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId); + + // get the collection of this SubscriptionEventResource + SubscriptionEventCollection collection = subscriptionResource.GetSubscriptionEvents(); + + // invoke the operation + string eventTrackingId = "eventTrackingId"; + string filter = "properties/status eq 'Active'"; + string queryStartTime = "7/10/2022"; + bool result = await collection.ExistsAsync(eventTrackingId, filter: filter, queryStartTime: queryStartTime); + + Console.WriteLine($"Succeeded: {result}"); + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_SubscriptionEventResource.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_SubscriptionEventResource.cs new file mode 100644 index 0000000000000..a00ccde056a21 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_SubscriptionEventResource.cs @@ -0,0 +1,111 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.ResourceHealth; + +namespace Azure.ResourceManager.ResourceHealth.Samples +{ + public partial class Sample_SubscriptionEventResource + { + // ListSecurityAdvisoryImpactedResourcesBySubscriptionId + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetSecurityAdvisoryImpactedResourcesBySubscriptionIdAndEventId_ListSecurityAdvisoryImpactedResourcesBySubscriptionId() + { + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/examples/SecurityAdvisoryImpactedResources_ListBySubscriptionId_ListByEventId.json + // this example is just showing the usage of "SecurityAdvisoryImpactedResources_ListBySubscriptionIdAndEventId" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SubscriptionEventResource created on azure + // for more information of creating SubscriptionEventResource, please refer to the document of SubscriptionEventResource + string subscriptionId = "subscriptionId"; + string eventTrackingId = "BC_1-FXZ"; + ResourceIdentifier subscriptionEventResourceId = SubscriptionEventResource.CreateResourceIdentifier(subscriptionId, eventTrackingId); + SubscriptionEventResource subscriptionEvent = client.GetSubscriptionEventResource(subscriptionEventResourceId); + + // invoke the operation and iterate over the result + await foreach (EventImpactedResourceData item in subscriptionEvent.GetSecurityAdvisoryImpactedResourcesBySubscriptionIdAndEventIdAsync()) + { + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {item.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // SecurityAdvisoriesEventBySubscriptionIdAndTrackingId + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_SecurityAdvisoriesEventBySubscriptionIdAndTrackingId() + { + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/examples/Event_GetBySubscriptionIdAndTrackingId.json + // this example is just showing the usage of "Event_GetBySubscriptionIdAndTrackingId" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SubscriptionEventResource created on azure + // for more information of creating SubscriptionEventResource, please refer to the document of SubscriptionEventResource + string subscriptionId = "subscriptionId"; + string eventTrackingId = "eventTrackingId"; + ResourceIdentifier subscriptionEventResourceId = SubscriptionEventResource.CreateResourceIdentifier(subscriptionId, eventTrackingId); + SubscriptionEventResource subscriptionEvent = client.GetSubscriptionEventResource(subscriptionEventResourceId); + + // invoke the operation + string filter = "properties/status eq 'Active'"; + string queryStartTime = "7/10/2022"; + SubscriptionEventResource result = await subscriptionEvent.GetAsync(filter: filter, queryStartTime: queryStartTime); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + EventData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // EventDetailsBySubscriptionIdAndTrackingId + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task FetchDetailsBySubscriptionIdAndTrackingId_EventDetailsBySubscriptionIdAndTrackingId() + { + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/examples/Event_fetchDetailsBySubscriptionIdAndTrackingId.json + // this example is just showing the usage of "Event_fetchDetailsBySubscriptionIdAndTrackingId" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SubscriptionEventResource created on azure + // for more information of creating SubscriptionEventResource, please refer to the document of SubscriptionEventResource + string subscriptionId = "subscriptionId"; + string eventTrackingId = "eventTrackingId"; + ResourceIdentifier subscriptionEventResourceId = SubscriptionEventResource.CreateResourceIdentifier(subscriptionId, eventTrackingId); + SubscriptionEventResource subscriptionEvent = client.GetSubscriptionEventResource(subscriptionEventResourceId); + + // invoke the operation + SubscriptionEventResource result = await subscriptionEvent.FetchDetailsBySubscriptionIdAndTrackingIdAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + EventData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_SubscriptionResourceHealthEventImpactedResource.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_SubscriptionResourceHealthEventImpactedResource.cs new file mode 100644 index 0000000000000..aeb46247a5059 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_SubscriptionResourceHealthEventImpactedResource.cs @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.ResourceHealth; + +namespace Azure.ResourceManager.ResourceHealth.Samples +{ + public partial class Sample_SubscriptionResourceHealthEventImpactedResource + { + // ImpactedResourcesGet + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_ImpactedResourcesGet() + { + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/examples/ImpactedResources_Get.json + // this example is just showing the usage of "ImpactedResources_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SubscriptionResourceHealthEventImpactedResource created on azure + // for more information of creating SubscriptionResourceHealthEventImpactedResource, please refer to the document of SubscriptionResourceHealthEventImpactedResource + string subscriptionId = "subscriptionId"; + string eventTrackingId = "BC_1-FXZ"; + string impactedResourceName = "abc-123-ghj-456"; + ResourceIdentifier subscriptionResourceHealthEventImpactedResourceId = SubscriptionResourceHealthEventImpactedResource.CreateResourceIdentifier(subscriptionId, eventTrackingId, impactedResourceName); + SubscriptionResourceHealthEventImpactedResource subscriptionResourceHealthEventImpactedResource = client.GetSubscriptionResourceHealthEventImpactedResource(subscriptionResourceHealthEventImpactedResourceId); + + // invoke the operation + SubscriptionResourceHealthEventImpactedResource result = await subscriptionResourceHealthEventImpactedResource.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + EventImpactedResourceData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_SubscriptionResourceHealthEventImpactedResourceCollection.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_SubscriptionResourceHealthEventImpactedResourceCollection.cs new file mode 100644 index 0000000000000..f01f241efee09 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_SubscriptionResourceHealthEventImpactedResourceCollection.cs @@ -0,0 +1,120 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.ResourceHealth; + +namespace Azure.ResourceManager.ResourceHealth.Samples +{ + public partial class Sample_SubscriptionResourceHealthEventImpactedResourceCollection + { + // ListImpactedResourcesBySubscriptionId + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetAll_ListImpactedResourcesBySubscriptionId() + { + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/examples/ImpactedResources_ListBySubscriptionId_ListByEventId.json + // this example is just showing the usage of "ImpactedResources_ListBySubscriptionIdAndEventId" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SubscriptionEventResource created on azure + // for more information of creating SubscriptionEventResource, please refer to the document of SubscriptionEventResource + string subscriptionId = "subscriptionId"; + string eventTrackingId = "BC_1-FXZ"; + ResourceIdentifier subscriptionEventResourceId = SubscriptionEventResource.CreateResourceIdentifier(subscriptionId, eventTrackingId); + SubscriptionEventResource subscriptionEvent = client.GetSubscriptionEventResource(subscriptionEventResourceId); + + // get the collection of this SubscriptionResourceHealthEventImpactedResource + SubscriptionResourceHealthEventImpactedResourceCollection collection = subscriptionEvent.GetSubscriptionResourceHealthEventImpactedResources(); + + // invoke the operation and iterate over the result + string filter = "targetRegion eq 'westus'"; + await foreach (SubscriptionResourceHealthEventImpactedResource item in collection.GetAllAsync(filter: filter)) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + EventImpactedResourceData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // ImpactedResourcesGet + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_ImpactedResourcesGet() + { + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/examples/ImpactedResources_Get.json + // this example is just showing the usage of "ImpactedResources_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SubscriptionEventResource created on azure + // for more information of creating SubscriptionEventResource, please refer to the document of SubscriptionEventResource + string subscriptionId = "subscriptionId"; + string eventTrackingId = "BC_1-FXZ"; + ResourceIdentifier subscriptionEventResourceId = SubscriptionEventResource.CreateResourceIdentifier(subscriptionId, eventTrackingId); + SubscriptionEventResource subscriptionEvent = client.GetSubscriptionEventResource(subscriptionEventResourceId); + + // get the collection of this SubscriptionResourceHealthEventImpactedResource + SubscriptionResourceHealthEventImpactedResourceCollection collection = subscriptionEvent.GetSubscriptionResourceHealthEventImpactedResources(); + + // invoke the operation + string impactedResourceName = "abc-123-ghj-456"; + SubscriptionResourceHealthEventImpactedResource result = await collection.GetAsync(impactedResourceName); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + EventImpactedResourceData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // ImpactedResourcesGet + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_ImpactedResourcesGet() + { + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/examples/ImpactedResources_Get.json + // this example is just showing the usage of "ImpactedResources_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SubscriptionEventResource created on azure + // for more information of creating SubscriptionEventResource, please refer to the document of SubscriptionEventResource + string subscriptionId = "subscriptionId"; + string eventTrackingId = "BC_1-FXZ"; + ResourceIdentifier subscriptionEventResourceId = SubscriptionEventResource.CreateResourceIdentifier(subscriptionId, eventTrackingId); + SubscriptionEventResource subscriptionEvent = client.GetSubscriptionEventResource(subscriptionEventResourceId); + + // get the collection of this SubscriptionResourceHealthEventImpactedResource + SubscriptionResourceHealthEventImpactedResourceCollection collection = subscriptionEvent.GetSubscriptionResourceHealthEventImpactedResources(); + + // invoke the operation + string impactedResourceName = "abc-123-ghj-456"; + bool result = await collection.ExistsAsync(impactedResourceName); + + Console.WriteLine($"Succeeded: {result}"); + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_TenantEventCollection.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_TenantEventCollection.cs new file mode 100644 index 0000000000000..2e6ea7248af8f --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_TenantEventCollection.cs @@ -0,0 +1,116 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.ResourceHealth; + +namespace Azure.ResourceManager.ResourceHealth.Samples +{ + public partial class Sample_TenantEventCollection + { + // ListEventsByTenantId + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetAll_ListEventsByTenantId() + { + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/examples/Events_ListByTenantId.json + // this example is just showing the usage of "Events_ListByTenantId" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this TenantResource created on azure + // for more information of creating TenantResource, please refer to the document of TenantResource + var tenantResource = client.GetTenants().GetAllAsync().GetAsyncEnumerator().Current; + + // get the collection of this TenantEventResource + TenantEventCollection collection = tenantResource.GetTenantEvents(); + + // invoke the operation and iterate over the result + string filter = "service eq 'Virtual Machines' or region eq 'West US'"; + string queryStartTime = "7/24/2020"; + await foreach (TenantEventResource item in collection.GetAllAsync(filter: filter, queryStartTime: queryStartTime)) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + EventData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // EventByTenantIdAndTrackingId + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_EventByTenantIdAndTrackingId() + { + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/examples/Event_GetByTenantIdAndTrackingId.json + // this example is just showing the usage of "Event_GetByTenantIdAndTrackingId" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this TenantResource created on azure + // for more information of creating TenantResource, please refer to the document of TenantResource + var tenantResource = client.GetTenants().GetAllAsync().GetAsyncEnumerator().Current; + + // get the collection of this TenantEventResource + TenantEventCollection collection = tenantResource.GetTenantEvents(); + + // invoke the operation + string eventTrackingId = "eventTrackingId"; + string filter = "properties/status eq 'Active'"; + string queryStartTime = "7/10/2022"; + TenantEventResource result = await collection.GetAsync(eventTrackingId, filter: filter, queryStartTime: queryStartTime); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + EventData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // EventByTenantIdAndTrackingId + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_EventByTenantIdAndTrackingId() + { + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/examples/Event_GetByTenantIdAndTrackingId.json + // this example is just showing the usage of "Event_GetByTenantIdAndTrackingId" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this TenantResource created on azure + // for more information of creating TenantResource, please refer to the document of TenantResource + var tenantResource = client.GetTenants().GetAllAsync().GetAsyncEnumerator().Current; + + // get the collection of this TenantEventResource + TenantEventCollection collection = tenantResource.GetTenantEvents(); + + // invoke the operation + string eventTrackingId = "eventTrackingId"; + string filter = "properties/status eq 'Active'"; + string queryStartTime = "7/10/2022"; + bool result = await collection.ExistsAsync(eventTrackingId, filter: filter, queryStartTime: queryStartTime); + + Console.WriteLine($"Succeeded: {result}"); + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_TenantEventResource.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_TenantEventResource.cs new file mode 100644 index 0000000000000..f827f040d0a11 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_TenantEventResource.cs @@ -0,0 +1,108 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.ResourceHealth; + +namespace Azure.ResourceManager.ResourceHealth.Samples +{ + public partial class Sample_TenantEventResource + { + // ListSecurityAdvisoryImpactedResourcesByTenantId + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetSecurityAdvisoryImpactedResourcesByTenantIdAndEventId_ListSecurityAdvisoryImpactedResourcesByTenantId() + { + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/examples/SecurityAdvisoryImpactedResources_ListByTenantId_ListByEventId.json + // this example is just showing the usage of "SecurityAdvisoryImpactedResources_ListByTenantIdAndEventId" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this TenantEventResource created on azure + // for more information of creating TenantEventResource, please refer to the document of TenantEventResource + string eventTrackingId = "BC_1-FXZ"; + ResourceIdentifier tenantEventResourceId = TenantEventResource.CreateResourceIdentifier(eventTrackingId); + TenantEventResource tenantEvent = client.GetTenantEventResource(tenantEventResourceId); + + // invoke the operation and iterate over the result + await foreach (EventImpactedResourceData item in tenantEvent.GetSecurityAdvisoryImpactedResourcesByTenantIdAndEventIdAsync()) + { + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {item.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // EventByTenantIdAndTrackingId + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_EventByTenantIdAndTrackingId() + { + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/examples/Event_GetByTenantIdAndTrackingId.json + // this example is just showing the usage of "Event_GetByTenantIdAndTrackingId" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this TenantEventResource created on azure + // for more information of creating TenantEventResource, please refer to the document of TenantEventResource + string eventTrackingId = "eventTrackingId"; + ResourceIdentifier tenantEventResourceId = TenantEventResource.CreateResourceIdentifier(eventTrackingId); + TenantEventResource tenantEvent = client.GetTenantEventResource(tenantEventResourceId); + + // invoke the operation + string filter = "properties/status eq 'Active'"; + string queryStartTime = "7/10/2022"; + TenantEventResource result = await tenantEvent.GetAsync(filter: filter, queryStartTime: queryStartTime); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + EventData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // EventDetailsByTenantIdAndTrackingId + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task FetchDetailsByTenantIdAndTrackingId_EventDetailsByTenantIdAndTrackingId() + { + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/examples/Event_fetchDetailsByTenantIdAndTrackingId.json + // this example is just showing the usage of "Event_fetchDetailsByTenantIdAndTrackingId" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this TenantEventResource created on azure + // for more information of creating TenantEventResource, please refer to the document of TenantEventResource + string eventTrackingId = "eventTrackingId"; + ResourceIdentifier tenantEventResourceId = TenantEventResource.CreateResourceIdentifier(eventTrackingId); + TenantEventResource tenantEvent = client.GetTenantEventResource(tenantEventResourceId); + + // invoke the operation + TenantEventResource result = await tenantEvent.FetchDetailsByTenantIdAndTrackingIdAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + EventData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_TenantResourceHealthEventImpactedResource.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_TenantResourceHealthEventImpactedResource.cs new file mode 100644 index 0000000000000..97aeb838dca57 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_TenantResourceHealthEventImpactedResource.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.ResourceHealth; + +namespace Azure.ResourceManager.ResourceHealth.Samples +{ + public partial class Sample_TenantResourceHealthEventImpactedResource + { + // ImpactedResourcesGet + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_ImpactedResourcesGet() + { + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/examples/ImpactedResources_GetByTenantId.json + // this example is just showing the usage of "ImpactedResources_GetByTenantId" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this TenantResourceHealthEventImpactedResource created on azure + // for more information of creating TenantResourceHealthEventImpactedResource, please refer to the document of TenantResourceHealthEventImpactedResource + string eventTrackingId = "BC_1-FXZ"; + string impactedResourceName = "abc-123-ghj-456"; + ResourceIdentifier tenantResourceHealthEventImpactedResourceId = TenantResourceHealthEventImpactedResource.CreateResourceIdentifier(eventTrackingId, impactedResourceName); + TenantResourceHealthEventImpactedResource tenantResourceHealthEventImpactedResource = client.GetTenantResourceHealthEventImpactedResource(tenantResourceHealthEventImpactedResourceId); + + // invoke the operation + TenantResourceHealthEventImpactedResource result = await tenantResourceHealthEventImpactedResource.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + EventImpactedResourceData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_TenantResourceHealthEventImpactedResourceCollection.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_TenantResourceHealthEventImpactedResourceCollection.cs new file mode 100644 index 0000000000000..5706aa523f8fe --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/Generated/Samples/Sample_TenantResourceHealthEventImpactedResourceCollection.cs @@ -0,0 +1,117 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.ResourceHealth; + +namespace Azure.ResourceManager.ResourceHealth.Samples +{ + public partial class Sample_TenantResourceHealthEventImpactedResourceCollection + { + // ListEventsByTenantId + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetAll_ListEventsByTenantId() + { + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/examples/ImpactedResources_ListByTenantId_ListByEventId.json + // this example is just showing the usage of "ImpactedResources_ListByTenantIdAndEventId" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this TenantEventResource created on azure + // for more information of creating TenantEventResource, please refer to the document of TenantEventResource + string eventTrackingId = "BC_1-FXZ"; + ResourceIdentifier tenantEventResourceId = TenantEventResource.CreateResourceIdentifier(eventTrackingId); + TenantEventResource tenantEvent = client.GetTenantEventResource(tenantEventResourceId); + + // get the collection of this TenantResourceHealthEventImpactedResource + TenantResourceHealthEventImpactedResourceCollection collection = tenantEvent.GetTenantResourceHealthEventImpactedResources(); + + // invoke the operation and iterate over the result + string filter = "targetRegion eq 'westus'"; + await foreach (TenantResourceHealthEventImpactedResource item in collection.GetAllAsync(filter: filter)) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + EventImpactedResourceData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // ImpactedResourcesGet + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_ImpactedResourcesGet() + { + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/examples/ImpactedResources_GetByTenantId.json + // this example is just showing the usage of "ImpactedResources_GetByTenantId" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this TenantEventResource created on azure + // for more information of creating TenantEventResource, please refer to the document of TenantEventResource + string eventTrackingId = "BC_1-FXZ"; + ResourceIdentifier tenantEventResourceId = TenantEventResource.CreateResourceIdentifier(eventTrackingId); + TenantEventResource tenantEvent = client.GetTenantEventResource(tenantEventResourceId); + + // get the collection of this TenantResourceHealthEventImpactedResource + TenantResourceHealthEventImpactedResourceCollection collection = tenantEvent.GetTenantResourceHealthEventImpactedResources(); + + // invoke the operation + string impactedResourceName = "abc-123-ghj-456"; + TenantResourceHealthEventImpactedResource result = await collection.GetAsync(impactedResourceName); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + EventImpactedResourceData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // ImpactedResourcesGet + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_ImpactedResourcesGet() + { + // Generated from example definition: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/examples/ImpactedResources_GetByTenantId.json + // this example is just showing the usage of "ImpactedResources_GetByTenantId" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this TenantEventResource created on azure + // for more information of creating TenantEventResource, please refer to the document of TenantEventResource + string eventTrackingId = "BC_1-FXZ"; + ResourceIdentifier tenantEventResourceId = TenantEventResource.CreateResourceIdentifier(eventTrackingId); + TenantEventResource tenantEvent = client.GetTenantEventResource(tenantEventResourceId); + + // get the collection of this TenantResourceHealthEventImpactedResource + TenantResourceHealthEventImpactedResourceCollection collection = tenantEvent.GetTenantResourceHealthEventImpactedResources(); + + // invoke the operation + string impactedResourceName = "abc-123-ghj-456"; + bool result = await collection.ExistsAsync(impactedResourceName); + + Console.WriteLine($"Succeeded: {result}"); + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/autorest.tests.md b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/autorest.tests.md new file mode 100644 index 0000000000000..55332ed40ff8e --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/samples/autorest.tests.md @@ -0,0 +1,13 @@ +# Generated code configuration + +Run `dotnet build /t:GenerateTests` to generate code. + +# Azure.ResourceManager.ResourceHealth.Tests + +> see https://aka.ms/autorest +``` yaml +require: ../src/autorest.md +include-x-ms-examples-original-file: true +testgen: + sample: true +``` \ No newline at end of file diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Azure.ResourceManager.ResourceHealth.csproj b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Azure.ResourceManager.ResourceHealth.csproj new file mode 100644 index 0000000000000..d76cc12ab41a1 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Azure.ResourceManager.ResourceHealth.csproj @@ -0,0 +1,8 @@ + + + 1.0.0-beta.1 + Azure.ResourceManager.ResourceHealth + Azure Resource Manager client SDK for Azure resource provider ResourceHealth. + azure;management;arm;resource manager;resourcehealth + + diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/ArmResourceHealthModelFactory.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/ArmResourceHealthModelFactory.cs new file mode 100644 index 0000000000000..e45d4334aa529 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/ArmResourceHealthModelFactory.cs @@ -0,0 +1,361 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; +using Azure.Core; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.ResourceHealth; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + /// Model factory for models. + public static partial class ArmResourceHealthModelFactory + { + /// Initializes a new instance of AvailabilityStatusData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Azure Resource Manager geo location of the resource. + /// Properties of availability state. + /// A new instance for mocking. + public static AvailabilityStatusData AvailabilityStatusData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AzureLocation? location = null, AvailabilityStatusProperties properties = null) + { + return new AvailabilityStatusData(id, name, resourceType, systemData, location, properties); + } + + /// Initializes a new instance of AvailabilityStatusProperties. + /// Availability status of the resource. When it is null, this availabilityStatus object represents an availability impacting event. + /// Title description of the availability status. + /// Summary description of the availability status. + /// Details of the availability status. + /// When the resource's availabilityState is Unavailable, it describes where the health impacting event was originated. Examples are planned, unplanned, user initiated or an outage etc. + /// When an event is created, it can either be triggered by a customer or the platform of the resource and this field will illustrate that. This field is connected to the category field in this object. + /// When a context field is set to Platform, this field will reflect if the event was planned or unplanned. If the context field does not have a value of Platform, then this field will be ignored. + /// When the resource's availabilityState is Unavailable, it provides the Timestamp for when the health impacting event was received. + /// In case of an availability impacting event, it describes when the health impacting event was originated. Examples are Lifecycle, Downtime, Fault Analysis etc. + /// In case of an availability impacting event, it describes where the health impacting event was originated. Examples are PlatformInitiated, UserInitiated etc. + /// In case of an availability impacting event, it describes the category of a PlatformInitiated health impacting event. Examples are Planned, Unplanned etc. + /// It is a unique Id that identifies the event. + /// When the resource's availabilityState is Unavailable and the reasonType is not User Initiated, it provides the date and time for when the issue is expected to be resolved. + /// Timestamp for when last change in health status occurred. + /// Chronicity of the availability transition. + /// Timestamp for when the health was last checked. + /// An annotation describing a change in the availabilityState to Available from Unavailable with a reasonType of type Unplanned. + /// Lists actions the user can take based on the current availabilityState of the resource. + /// Lists the service impacting events that may be affecting the health of the resource. + /// A new instance for mocking. + public static AvailabilityStatusProperties AvailabilityStatusProperties(AvailabilityStateValue? availabilityState = null, string title = null, string summary = null, string detailedStatus = null, string reasonType = null, string context = null, string category = null, DateTimeOffset? rootCauseAttributionOn = null, string healthEventType = null, string healthEventCause = null, string healthEventCategory = null, string healthEventId = null, DateTimeOffset? resolutionETA = null, DateTimeOffset? occuredOn = null, ReasonChronicityType? reasonChronicity = null, DateTimeOffset? reportedOn = null, AvailabilityStatusPropertiesRecentlyResolved recentlyResolved = null, IEnumerable recommendedActions = null, IEnumerable serviceImpactingEvents = null) + { + recommendedActions ??= new List(); + serviceImpactingEvents ??= new List(); + + return new AvailabilityStatusProperties(availabilityState, title, summary, detailedStatus, reasonType, context, category, rootCauseAttributionOn, healthEventType, healthEventCause, healthEventCategory, healthEventId, resolutionETA, occuredOn, reasonChronicity, reportedOn, recentlyResolved, recommendedActions?.ToList(), serviceImpactingEvents?.ToList()); + } + + /// Initializes a new instance of AvailabilityStatusPropertiesRecentlyResolved. + /// Timestamp for when the availabilityState changed to Unavailable. + /// Timestamp when the availabilityState changes to Available. + /// Brief description of cause of the resource becoming unavailable. + /// A new instance for mocking. + public static AvailabilityStatusPropertiesRecentlyResolved AvailabilityStatusPropertiesRecentlyResolved(DateTimeOffset? unavailableOccuredOn = null, DateTimeOffset? resolvedOn = null, string unavailableSummary = null) + { + return new AvailabilityStatusPropertiesRecentlyResolved(unavailableOccuredOn, resolvedOn, unavailableSummary); + } + + /// Initializes a new instance of RecommendedAction. + /// Recommended action. + /// Link to the action. + /// Substring of action, it describes which text should host the action url. + /// A new instance for mocking. + public static RecommendedAction RecommendedAction(string action = null, Uri actionUri = null, string actionUrlText = null) + { + return new RecommendedAction(action, actionUri, actionUrlText); + } + + /// Initializes a new instance of ServiceImpactingEvent. + /// Timestamp for when the event started. + /// Timestamp for when event was submitted/detected. + /// Correlation id for the event. + /// Status of the service impacting event. + /// Properties of the service impacting event. + /// A new instance for mocking. + public static ServiceImpactingEvent ServiceImpactingEvent(DateTimeOffset? eventStartOn = null, DateTimeOffset? eventStatusLastModifiedOn = null, string correlationId = null, string statusValue = null, ServiceImpactingEventIncidentProperties incidentProperties = null) + { + return new ServiceImpactingEvent(eventStartOn, eventStatusLastModifiedOn, correlationId, statusValue != null ? new ServiceImpactingEventStatus(statusValue) : null, incidentProperties); + } + + /// Initializes a new instance of ServiceImpactingEventIncidentProperties. + /// Title of the incident. + /// Service impacted by the event. + /// Region impacted by the event. + /// Type of Event. + /// A new instance for mocking. + public static ServiceImpactingEventIncidentProperties ServiceImpactingEventIncidentProperties(string title = null, string service = null, string region = null, string incidentType = null) + { + return new ServiceImpactingEventIncidentProperties(title, service, region, incidentType); + } + + /// Initializes a new instance of MetadataEntityData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The display name. + /// The list of keys on which this entity depends on. + /// The list of scenarios applicable to this metadata entity. + /// The list of supported values. + /// A new instance for mocking. + public static MetadataEntityData MetadataEntityData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string displayName = null, IEnumerable dependsOn = null, IEnumerable applicableScenarios = null, IEnumerable supportedValues = null) + { + dependsOn ??= new List(); + applicableScenarios ??= new List(); + supportedValues ??= new List(); + + return new MetadataEntityData(id, name, resourceType, systemData, displayName, dependsOn?.ToList(), applicableScenarios?.ToList(), supportedValues?.ToList()); + } + + /// Initializes a new instance of MetadataSupportedValueDetail. + /// The id. + /// The display name. + /// The list of associated resource types. + /// A new instance for mocking. + public static MetadataSupportedValueDetail MetadataSupportedValueDetail(string id = null, string displayName = null, IEnumerable resourceTypes = null) + { + resourceTypes ??= new List(); + + return new MetadataSupportedValueDetail(id, displayName, resourceTypes?.ToList()); + } + + /// Initializes a new instance of EventImpactedResourceData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Resource type within Microsoft cloud. + /// Identity for resource within Microsoft cloud. + /// Impacted resource region name. + /// Additional information. + /// A new instance for mocking. + public static EventImpactedResourceData EventImpactedResourceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string targetResourceType = null, string targetResourceId = null, string targetRegion = null, IEnumerable info = null) + { + info ??= new List(); + + return new EventImpactedResourceData(id, name, resourceType, systemData, targetResourceType, targetResourceId, targetRegion, info?.ToList()); + } + + /// Initializes a new instance of KeyValueItem. + /// Key of tuple. + /// Value of tuple. + /// A new instance for mocking. + public static KeyValueItem KeyValueItem(string key = null, string value = null) + { + return new KeyValueItem(key, value); + } + + /// Initializes a new instance of EventData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Type of event. + /// Source of event. + /// Current status of event. + /// Title text of event. + /// Summary text of event. + /// Header text of event. + /// Level of insight. + /// Level of event. + /// The id of the Incident. + /// Article of event. + /// Useful links of event. + /// It provides the Timestamp for when the health impacting event started. + /// It provides the Timestamp for when the health impacting event resolved. + /// List services impacted by the service health event. + /// Recommended actions of event. + /// Frequently asked questions for the service health event. + /// It provides information if the event is High incident rate event or not. + /// Tells if we want to enable or disable Microsoft Support for this event. + /// Contains the communication message for the event, that could include summary, root cause and other details. + /// Is true if the event is platform initiated. + /// Tells if we want to enable or disable Microsoft Support for this event. + /// Priority level of the event. Has value from 0 to 23. 0 is the highest priority. Service issue events have higher priority followed by planned maintenance and health advisory. Critical events have higher priority followed by error, warning and informational. Furthermore, active events have higher priority than resolved. + /// It provides the Timestamp for when the health impacting event was last updated. + /// Stage for HIR Document. + /// Additional information. + /// duration in seconds. + /// The type of the impact. + /// A new instance for mocking. + public static EventData EventData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, EventTypeValue? eventType = null, EventSourceValue? eventSource = null, EventStatusValue? status = null, string title = null, string summary = null, string header = null, LevelValue? level = null, EventLevelValue? eventLevel = null, string externalIncidentId = null, string articleContent = null, IEnumerable links = null, DateTimeOffset? impactStartOn = null, DateTimeOffset? impactMitigationOn = null, IEnumerable impact = null, EventPropertiesRecommendedActions recommendedActions = null, IEnumerable faqs = null, bool? isHIR = null, bool? enableMicrosoftSupport = null, string description = null, bool? platformInitiated = null, bool? enableChatWithUs = null, int? priority = null, DateTimeOffset? lastUpdateOn = null, string hirStage = null, string additionalInformationMessage = null, int? duration = null, string impactType = null) + { + links ??= new List(); + impact ??= new List(); + faqs ??= new List(); + + return new EventData(id, name, resourceType, systemData, eventType, eventSource, status, title, summary, header, level, eventLevel, externalIncidentId, articleContent != null ? new EventPropertiesArticle(articleContent) : null, links?.ToList(), impactStartOn, impactMitigationOn, impact?.ToList(), recommendedActions, faqs?.ToList(), isHIR, enableMicrosoftSupport, description, platformInitiated, enableChatWithUs, priority, lastUpdateOn, hirStage, additionalInformationMessage != null ? new EventPropertiesAdditionalInformation(additionalInformationMessage) : null, duration, impactType); + } + + /// Initializes a new instance of Link. + /// Type of link. + /// Display text of link. + /// It provides the name of portal extension to produce link for given service health event. + /// It provides the name of portal extension blade to produce link for given service health event. + /// It provides a map of parameter name and value for portal extension blade to produce lik for given service health event. + /// A new instance for mocking. + public static Link Link(LinkTypeValue? linkType = null, LinkDisplayText displayText = null, string extensionName = null, string bladeName = null, BinaryData parameters = null) + { + return new Link(linkType, displayText, extensionName, bladeName, parameters); + } + + /// Initializes a new instance of LinkDisplayText. + /// Display text of link. + /// Localized display text of link. + /// A new instance for mocking. + public static LinkDisplayText LinkDisplayText(string value = null, string localizedValue = null) + { + return new LinkDisplayText(value, localizedValue); + } + + /// Initializes a new instance of Impact. + /// Impacted service name. + /// List regions impacted by the service health event. + /// A new instance for mocking. + public static Impact Impact(string impactedService = null, IEnumerable impactedRegions = null) + { + impactedRegions ??= new List(); + + return new Impact(impactedService, impactedRegions?.ToList()); + } + + /// Initializes a new instance of ImpactedServiceRegion. + /// Impacted region name. + /// Current status of event in the region. + /// List subscription impacted by the service health event. + /// List tenant impacted by the service health event. + /// It provides the Timestamp for when the last update for the service health event. + /// List of updates for given service health event. + /// A new instance for mocking. + public static ImpactedServiceRegion ImpactedServiceRegion(string impactedRegion = null, EventStatusValue? status = null, IEnumerable impactedSubscriptions = null, IEnumerable impactedTenants = null, DateTimeOffset? lastUpdateOn = null, IEnumerable updates = null) + { + impactedSubscriptions ??= new List(); + impactedTenants ??= new List(); + updates ??= new List(); + + return new ImpactedServiceRegion(impactedRegion, status, impactedSubscriptions?.ToList(), impactedTenants?.ToList(), lastUpdateOn, updates?.ToList()); + } + + /// Initializes a new instance of Update. + /// Summary text for the given update for the service health event. + /// It provides the Timestamp for the given update for the service health event. + /// A new instance for mocking. + public static Update Update(string summary = null, DateTimeOffset? updateOn = null) + { + return new Update(summary, updateOn); + } + + /// Initializes a new instance of EventPropertiesRecommendedActions. + /// Recommended action title for the service health event. + /// Recommended actions for the service health event. + /// Recommended action locale for the service health event. + /// A new instance for mocking. + public static EventPropertiesRecommendedActions EventPropertiesRecommendedActions(string message = null, IEnumerable actions = null, string localeCode = null) + { + actions ??= new List(); + + return new EventPropertiesRecommendedActions(message, actions?.ToList(), localeCode); + } + + /// Initializes a new instance of EventPropertiesRecommendedActionsItem. + /// Recommended action group Id for the service health event. + /// Recommended action text. + /// A new instance for mocking. + public static EventPropertiesRecommendedActionsItem EventPropertiesRecommendedActionsItem(int? groupId = null, string actionText = null) + { + return new EventPropertiesRecommendedActionsItem(groupId, actionText); + } + + /// Initializes a new instance of Faq. + /// FAQ question for the service health event. + /// FAQ answer for the service health event. + /// FAQ locale for the service health event. + /// A new instance for mocking. + public static Faq Faq(string question = null, string answer = null, string localeCode = null) + { + return new Faq(question, answer, localeCode); + } + + /// Initializes a new instance of EmergingIssuesGetResultData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Timestamp for when last time refreshed for ongoing emerging issue. + /// The list of emerging issues of banner type. + /// The list of emerging issues of active event type. + /// A new instance for mocking. + public static EmergingIssuesGetResultData EmergingIssuesGetResultData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DateTimeOffset? refreshTimestamp = null, IEnumerable statusBanners = null, IEnumerable statusActiveEvents = null) + { + statusBanners ??= new List(); + statusActiveEvents ??= new List(); + + return new EmergingIssuesGetResultData(id, name, resourceType, systemData, refreshTimestamp, statusBanners?.ToList(), statusActiveEvents?.ToList()); + } + + /// Initializes a new instance of StatusBanner. + /// The banner title. + /// The details of banner. + /// The cloud type of this banner. + /// The last time modified on this banner. + /// A new instance for mocking. + public static StatusBanner StatusBanner(string title = null, string message = null, string cloud = null, DateTimeOffset? lastModifiedOn = null) + { + return new StatusBanner(title, message, cloud, lastModifiedOn); + } + + /// Initializes a new instance of StatusActiveEvent. + /// The active event title. + /// The details of active event. + /// The tracking id of this active event. + /// The impact start time on this active event. + /// The cloud type of this active event. + /// The severity level of this active event. + /// The stage of this active event. + /// The boolean value of this active event if published or not. + /// The last time modified on this banner. + /// The list of emerging issues impacts. + /// A new instance for mocking. + public static StatusActiveEvent StatusActiveEvent(string title = null, string description = null, string trackingId = null, DateTimeOffset? startOn = null, string cloud = null, SeverityValue? severity = null, StageValue? stage = null, bool? published = null, DateTimeOffset? lastModifiedOn = null, IEnumerable impacts = null) + { + impacts ??= new List(); + + return new StatusActiveEvent(title, description, trackingId, startOn, cloud, severity, stage, published, lastModifiedOn, impacts?.ToList()); + } + + /// Initializes a new instance of EmergingIssueImpact. + /// The impacted service id. + /// The impacted service name. + /// The list of impacted regions for corresponding emerging issues. + /// A new instance for mocking. + public static EmergingIssueImpact EmergingIssueImpact(string id = null, string name = null, IEnumerable regions = null) + { + regions ??= new List(); + + return new EmergingIssueImpact(id, name, regions?.ToList()); + } + + /// Initializes a new instance of ImpactedRegion. + /// The impacted region id. + /// The impacted region name. + /// A new instance for mocking. + public static ImpactedRegion ImpactedRegion(string id = null, string name = null) + { + return new ImpactedRegion(id, name); + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/AvailabilityStatusData.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/AvailabilityStatusData.cs new file mode 100644 index 0000000000000..fe0de1f6d6186 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/AvailabilityStatusData.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using Azure.Core; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.ResourceHealth.Models; + +namespace Azure.ResourceManager.ResourceHealth +{ + /// A class representing the AvailabilityStatus data model. + public partial class AvailabilityStatusData : ResourceData + { + /// Initializes a new instance of AvailabilityStatusData. + internal AvailabilityStatusData() + { + } + + /// Initializes a new instance of AvailabilityStatusData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Azure Resource Manager geo location of the resource. + /// Properties of availability state. + internal AvailabilityStatusData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, AzureLocation? location, AvailabilityStatusProperties properties) : base(id, name, resourceType, systemData) + { + Location = location; + Properties = properties; + } + + /// Azure Resource Manager geo location of the resource. + public AzureLocation? Location { get; } + /// Properties of availability state. + public AvailabilityStatusProperties Properties { get; } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/AvailabilityStatusResource.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/AvailabilityStatusResource.cs new file mode 100644 index 0000000000000..1161e755cbb75 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/AvailabilityStatusResource.cs @@ -0,0 +1,157 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.ResourceHealth +{ + /// + /// A Class representing an AvailabilityStatus along with the instance operations that can be performed on it. + /// If you have a you can construct an + /// from an instance of using the GetAvailabilityStatusResource method. + /// Otherwise you can get one from its parent resource using the GetAvailabilityStatus method. + /// + public partial class AvailabilityStatusResource : ArmResource + { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string resourceUri) + { + var resourceId = $"{resourceUri}/providers/Microsoft.ResourceHealth/availabilityStatuses/current"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _availabilityStatusClientDiagnostics; + private readonly AvailabilityStatusesRestOperations _availabilityStatusRestClient; + private readonly AvailabilityStatusData _data; + + /// Initializes a new instance of the class for mocking. + protected AvailabilityStatusResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal AvailabilityStatusResource(ArmClient client, AvailabilityStatusData data) : this(client, data.Id) + { + HasData = true; + _data = data; + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the resource that is the target of operations. + internal AvailabilityStatusResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _availabilityStatusClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ResourceHealth", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string availabilityStatusApiVersion); + _availabilityStatusRestClient = new AvailabilityStatusesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, availabilityStatusApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.ResourceHealth/availabilityStatuses"; + + /// Gets whether or not the current instance has data. + public virtual bool HasData { get; } + + /// Gets the data representing this Feature. + /// Throws if there is no data loaded in the current instance. + public virtual AvailabilityStatusData Data + { + get + { + if (!HasData) + throw new InvalidOperationException("The current instance does not have data, you must call Get first."); + return _data; + } + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); + } + + /// + /// Gets current availability status for a single resource + /// + /// + /// Request Path + /// /{resourceUri}/providers/Microsoft.ResourceHealth/availabilityStatuses/current + /// + /// + /// Operation Id + /// AvailabilityStatuses_GetByResource + /// + /// + /// + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// Setting $expand=recommendedactions in url query expands the recommendedactions in the response. + /// The cancellation token to use. + public virtual async Task> GetAsync(string filter = null, string expand = null, CancellationToken cancellationToken = default) + { + using var scope = _availabilityStatusClientDiagnostics.CreateScope("AvailabilityStatusResource.Get"); + scope.Start(); + try + { + var response = await _availabilityStatusRestClient.GetByResourceAsync(Id.Parent, filter, expand, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new AvailabilityStatusResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets current availability status for a single resource + /// + /// + /// Request Path + /// /{resourceUri}/providers/Microsoft.ResourceHealth/availabilityStatuses/current + /// + /// + /// Operation Id + /// AvailabilityStatuses_GetByResource + /// + /// + /// + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// Setting $expand=recommendedactions in url query expands the recommendedactions in the response. + /// The cancellation token to use. + public virtual Response Get(string filter = null, string expand = null, CancellationToken cancellationToken = default) + { + using var scope = _availabilityStatusClientDiagnostics.CreateScope("AvailabilityStatusResource.Get"); + scope.Start(); + try + { + var response = _availabilityStatusRestClient.GetByResource(Id.Parent, filter, expand, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new AvailabilityStatusResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/EmergingIssuesGetResultCollection.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/EmergingIssuesGetResultCollection.cs new file mode 100644 index 0000000000000..81da147cb20a4 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/EmergingIssuesGetResultCollection.cs @@ -0,0 +1,244 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; +using Azure.ResourceManager.ResourceHealth.Models; +using Azure.ResourceManager.Resources; + +namespace Azure.ResourceManager.ResourceHealth +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get an instance call the GetEmergingIssuesGetResults method from an instance of . + /// + public partial class EmergingIssuesGetResultCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _emergingIssuesGetResultEmergingIssuesClientDiagnostics; + private readonly EmergingIssuesRestOperations _emergingIssuesGetResultEmergingIssuesRestClient; + + /// Initializes a new instance of the class for mocking. + protected EmergingIssuesGetResultCollection() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the parent resource that is the target of operations. + internal EmergingIssuesGetResultCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _emergingIssuesGetResultEmergingIssuesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ResourceHealth", EmergingIssuesGetResultResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(EmergingIssuesGetResultResource.ResourceType, out string emergingIssuesGetResultEmergingIssuesApiVersion); + _emergingIssuesGetResultEmergingIssuesRestClient = new EmergingIssuesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, emergingIssuesGetResultEmergingIssuesApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != TenantResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, TenantResource.ResourceType), nameof(id)); + } + + /// + /// Gets Azure services' emerging issues. + /// + /// + /// Request Path + /// /providers/Microsoft.ResourceHealth/emergingIssues/{issueName} + /// + /// + /// Operation Id + /// EmergingIssues_Get + /// + /// + /// + /// The name of the emerging issue. + /// The cancellation token to use. + public virtual async Task> GetAsync(IssueNameParameter issueName, CancellationToken cancellationToken = default) + { + using var scope = _emergingIssuesGetResultEmergingIssuesClientDiagnostics.CreateScope("EmergingIssuesGetResultCollection.Get"); + scope.Start(); + try + { + var response = await _emergingIssuesGetResultEmergingIssuesRestClient.GetAsync(issueName, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new EmergingIssuesGetResultResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets Azure services' emerging issues. + /// + /// + /// Request Path + /// /providers/Microsoft.ResourceHealth/emergingIssues/{issueName} + /// + /// + /// Operation Id + /// EmergingIssues_Get + /// + /// + /// + /// The name of the emerging issue. + /// The cancellation token to use. + public virtual Response Get(IssueNameParameter issueName, CancellationToken cancellationToken = default) + { + using var scope = _emergingIssuesGetResultEmergingIssuesClientDiagnostics.CreateScope("EmergingIssuesGetResultCollection.Get"); + scope.Start(); + try + { + var response = _emergingIssuesGetResultEmergingIssuesRestClient.Get(issueName, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new EmergingIssuesGetResultResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Lists Azure services' emerging issues. + /// + /// + /// Request Path + /// /providers/Microsoft.ResourceHealth/emergingIssues + /// + /// + /// Operation Id + /// EmergingIssues_List + /// + /// + /// + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _emergingIssuesGetResultEmergingIssuesRestClient.CreateListRequest(); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _emergingIssuesGetResultEmergingIssuesRestClient.CreateListNextPageRequest(nextLink); + return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new EmergingIssuesGetResultResource(Client, EmergingIssuesGetResultData.DeserializeEmergingIssuesGetResultData(e)), _emergingIssuesGetResultEmergingIssuesClientDiagnostics, Pipeline, "EmergingIssuesGetResultCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Lists Azure services' emerging issues. + /// + /// + /// Request Path + /// /providers/Microsoft.ResourceHealth/emergingIssues + /// + /// + /// Operation Id + /// EmergingIssues_List + /// + /// + /// + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _emergingIssuesGetResultEmergingIssuesRestClient.CreateListRequest(); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _emergingIssuesGetResultEmergingIssuesRestClient.CreateListNextPageRequest(nextLink); + return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new EmergingIssuesGetResultResource(Client, EmergingIssuesGetResultData.DeserializeEmergingIssuesGetResultData(e)), _emergingIssuesGetResultEmergingIssuesClientDiagnostics, Pipeline, "EmergingIssuesGetResultCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /providers/Microsoft.ResourceHealth/emergingIssues/{issueName} + /// + /// + /// Operation Id + /// EmergingIssues_Get + /// + /// + /// + /// The name of the emerging issue. + /// The cancellation token to use. + public virtual async Task> ExistsAsync(IssueNameParameter issueName, CancellationToken cancellationToken = default) + { + using var scope = _emergingIssuesGetResultEmergingIssuesClientDiagnostics.CreateScope("EmergingIssuesGetResultCollection.Exists"); + scope.Start(); + try + { + var response = await _emergingIssuesGetResultEmergingIssuesRestClient.GetAsync(issueName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /providers/Microsoft.ResourceHealth/emergingIssues/{issueName} + /// + /// + /// Operation Id + /// EmergingIssues_Get + /// + /// + /// + /// The name of the emerging issue. + /// The cancellation token to use. + public virtual Response Exists(IssueNameParameter issueName, CancellationToken cancellationToken = default) + { + using var scope = _emergingIssuesGetResultEmergingIssuesClientDiagnostics.CreateScope("EmergingIssuesGetResultCollection.Exists"); + scope.Start(); + try + { + var response = _emergingIssuesGetResultEmergingIssuesRestClient.Get(issueName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + { + return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/EmergingIssuesGetResultData.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/EmergingIssuesGetResultData.cs new file mode 100644 index 0000000000000..485749a5974e4 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/EmergingIssuesGetResultData.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.ResourceHealth.Models; + +namespace Azure.ResourceManager.ResourceHealth +{ + /// A class representing the EmergingIssuesGetResult data model. + public partial class EmergingIssuesGetResultData : ResourceData + { + /// Initializes a new instance of EmergingIssuesGetResultData. + internal EmergingIssuesGetResultData() + { + StatusBanners = new ChangeTrackingList(); + StatusActiveEvents = new ChangeTrackingList(); + } + + /// Initializes a new instance of EmergingIssuesGetResultData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Timestamp for when last time refreshed for ongoing emerging issue. + /// The list of emerging issues of banner type. + /// The list of emerging issues of active event type. + internal EmergingIssuesGetResultData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, DateTimeOffset? refreshTimestamp, IReadOnlyList statusBanners, IReadOnlyList statusActiveEvents) : base(id, name, resourceType, systemData) + { + RefreshTimestamp = refreshTimestamp; + StatusBanners = statusBanners; + StatusActiveEvents = statusActiveEvents; + } + + /// Timestamp for when last time refreshed for ongoing emerging issue. + public DateTimeOffset? RefreshTimestamp { get; } + /// The list of emerging issues of banner type. + public IReadOnlyList StatusBanners { get; } + /// The list of emerging issues of active event type. + public IReadOnlyList StatusActiveEvents { get; } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/EmergingIssuesGetResultResource.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/EmergingIssuesGetResultResource.cs new file mode 100644 index 0000000000000..fb51124d47a87 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/EmergingIssuesGetResultResource.cs @@ -0,0 +1,155 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; +using Azure.ResourceManager.ResourceHealth.Models; +using Azure.ResourceManager.Resources; + +namespace Azure.ResourceManager.ResourceHealth +{ + /// + /// A Class representing an EmergingIssuesGetResult along with the instance operations that can be performed on it. + /// If you have a you can construct an + /// from an instance of using the GetEmergingIssuesGetResultResource method. + /// Otherwise you can get one from its parent resource using the GetEmergingIssuesGetResult method. + /// + public partial class EmergingIssuesGetResultResource : ArmResource + { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(IssueNameParameter issueName) + { + var resourceId = $"/providers/Microsoft.ResourceHealth/emergingIssues/{issueName}"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _emergingIssuesGetResultEmergingIssuesClientDiagnostics; + private readonly EmergingIssuesRestOperations _emergingIssuesGetResultEmergingIssuesRestClient; + private readonly EmergingIssuesGetResultData _data; + + /// Initializes a new instance of the class for mocking. + protected EmergingIssuesGetResultResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal EmergingIssuesGetResultResource(ArmClient client, EmergingIssuesGetResultData data) : this(client, data.Id) + { + HasData = true; + _data = data; + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the resource that is the target of operations. + internal EmergingIssuesGetResultResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _emergingIssuesGetResultEmergingIssuesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ResourceHealth", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string emergingIssuesGetResultEmergingIssuesApiVersion); + _emergingIssuesGetResultEmergingIssuesRestClient = new EmergingIssuesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, emergingIssuesGetResultEmergingIssuesApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.ResourceHealth/emergingIssues"; + + /// Gets whether or not the current instance has data. + public virtual bool HasData { get; } + + /// Gets the data representing this Feature. + /// Throws if there is no data loaded in the current instance. + public virtual EmergingIssuesGetResultData Data + { + get + { + if (!HasData) + throw new InvalidOperationException("The current instance does not have data, you must call Get first."); + return _data; + } + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); + } + + /// + /// Gets Azure services' emerging issues. + /// + /// + /// Request Path + /// /providers/Microsoft.ResourceHealth/emergingIssues/{issueName} + /// + /// + /// Operation Id + /// EmergingIssues_Get + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using var scope = _emergingIssuesGetResultEmergingIssuesClientDiagnostics.CreateScope("EmergingIssuesGetResultResource.Get"); + scope.Start(); + try + { + var response = await _emergingIssuesGetResultEmergingIssuesRestClient.GetAsync(Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new EmergingIssuesGetResultResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets Azure services' emerging issues. + /// + /// + /// Request Path + /// /providers/Microsoft.ResourceHealth/emergingIssues/{issueName} + /// + /// + /// Operation Id + /// EmergingIssues_Get + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using var scope = _emergingIssuesGetResultEmergingIssuesClientDiagnostics.CreateScope("EmergingIssuesGetResultResource.Get"); + scope.Start(); + try + { + var response = _emergingIssuesGetResultEmergingIssuesRestClient.Get(Id.Name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new EmergingIssuesGetResultResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/EventData.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/EventData.cs new file mode 100644 index 0000000000000..1439d3f73abc2 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/EventData.cs @@ -0,0 +1,157 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.ResourceHealth.Models; + +namespace Azure.ResourceManager.ResourceHealth +{ + /// A class representing the Event data model. + public partial class EventData : ResourceData + { + /// Initializes a new instance of EventData. + internal EventData() + { + Links = new ChangeTrackingList(); + Impact = new ChangeTrackingList(); + Faqs = new ChangeTrackingList(); + } + + /// Initializes a new instance of EventData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Type of event. + /// Source of event. + /// Current status of event. + /// Title text of event. + /// Summary text of event. + /// Header text of event. + /// Level of insight. + /// Level of event. + /// The id of the Incident. + /// Article of event. + /// Useful links of event. + /// It provides the Timestamp for when the health impacting event started. + /// It provides the Timestamp for when the health impacting event resolved. + /// List services impacted by the service health event. + /// Recommended actions of event. + /// Frequently asked questions for the service health event. + /// It provides information if the event is High incident rate event or not. + /// Tells if we want to enable or disable Microsoft Support for this event. + /// Contains the communication message for the event, that could include summary, root cause and other details. + /// Is true if the event is platform initiated. + /// Tells if we want to enable or disable Microsoft Support for this event. + /// Priority level of the event. Has value from 0 to 23. 0 is the highest priority. Service issue events have higher priority followed by planned maintenance and health advisory. Critical events have higher priority followed by error, warning and informational. Furthermore, active events have higher priority than resolved. + /// It provides the Timestamp for when the health impacting event was last updated. + /// Stage for HIR Document. + /// Additional information. + /// duration in seconds. + /// The type of the impact. + internal EventData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, EventTypeValue? eventType, EventSourceValue? eventSource, EventStatusValue? status, string title, string summary, string header, LevelValue? level, EventLevelValue? eventLevel, string externalIncidentId, EventPropertiesArticle article, IReadOnlyList links, DateTimeOffset? impactStartOn, DateTimeOffset? impactMitigationOn, IReadOnlyList impact, EventPropertiesRecommendedActions recommendedActions, IReadOnlyList faqs, bool? isHIR, bool? enableMicrosoftSupport, string description, bool? platformInitiated, bool? enableChatWithUs, int? priority, DateTimeOffset? lastUpdateOn, string hirStage, EventPropertiesAdditionalInformation additionalInformation, int? duration, string impactType) : base(id, name, resourceType, systemData) + { + EventType = eventType; + EventSource = eventSource; + Status = status; + Title = title; + Summary = summary; + Header = header; + Level = level; + EventLevel = eventLevel; + ExternalIncidentId = externalIncidentId; + Article = article; + Links = links; + ImpactStartOn = impactStartOn; + ImpactMitigationOn = impactMitigationOn; + Impact = impact; + RecommendedActions = recommendedActions; + Faqs = faqs; + IsHIR = isHIR; + EnableMicrosoftSupport = enableMicrosoftSupport; + Description = description; + PlatformInitiated = platformInitiated; + EnableChatWithUs = enableChatWithUs; + Priority = priority; + LastUpdateOn = lastUpdateOn; + HirStage = hirStage; + AdditionalInformation = additionalInformation; + Duration = duration; + ImpactType = impactType; + } + + /// Type of event. + public EventTypeValue? EventType { get; } + /// Source of event. + public EventSourceValue? EventSource { get; } + /// Current status of event. + public EventStatusValue? Status { get; } + /// Title text of event. + public string Title { get; } + /// Summary text of event. + public string Summary { get; } + /// Header text of event. + public string Header { get; } + /// Level of insight. + public LevelValue? Level { get; } + /// Level of event. + public EventLevelValue? EventLevel { get; } + /// The id of the Incident. + public string ExternalIncidentId { get; } + /// Article of event. + internal EventPropertiesArticle Article { get; } + /// Article content of event. + public string ArticleContent + { + get => Article?.ArticleContent; + } + + /// Useful links of event. + public IReadOnlyList Links { get; } + /// It provides the Timestamp for when the health impacting event started. + public DateTimeOffset? ImpactStartOn { get; } + /// It provides the Timestamp for when the health impacting event resolved. + public DateTimeOffset? ImpactMitigationOn { get; } + /// List services impacted by the service health event. + public IReadOnlyList Impact { get; } + /// Recommended actions of event. + public EventPropertiesRecommendedActions RecommendedActions { get; } + /// Frequently asked questions for the service health event. + public IReadOnlyList Faqs { get; } + /// It provides information if the event is High incident rate event or not. + public bool? IsHIR { get; } + /// Tells if we want to enable or disable Microsoft Support for this event. + public bool? EnableMicrosoftSupport { get; } + /// Contains the communication message for the event, that could include summary, root cause and other details. + public string Description { get; } + /// Is true if the event is platform initiated. + public bool? PlatformInitiated { get; } + /// Tells if we want to enable or disable Microsoft Support for this event. + public bool? EnableChatWithUs { get; } + /// Priority level of the event. Has value from 0 to 23. 0 is the highest priority. Service issue events have higher priority followed by planned maintenance and health advisory. Critical events have higher priority followed by error, warning and informational. Furthermore, active events have higher priority than resolved. + public int? Priority { get; } + /// It provides the Timestamp for when the health impacting event was last updated. + public DateTimeOffset? LastUpdateOn { get; } + /// Stage for HIR Document. + public string HirStage { get; } + /// Additional information. + internal EventPropertiesAdditionalInformation AdditionalInformation { get; } + /// Additional information Message. + public string AdditionalInformationMessage + { + get => AdditionalInformation?.Message; + } + + /// duration in seconds. + public int? Duration { get; } + /// The type of the impact. + public string ImpactType { get; } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/EventImpactedResourceData.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/EventImpactedResourceData.cs new file mode 100644 index 0000000000000..6d7256ace0554 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/EventImpactedResourceData.cs @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.ResourceHealth.Models; + +namespace Azure.ResourceManager.ResourceHealth +{ + /// A class representing the EventImpactedResource data model. + public partial class EventImpactedResourceData : ResourceData + { + /// Initializes a new instance of EventImpactedResourceData. + internal EventImpactedResourceData() + { + Info = new ChangeTrackingList(); + } + + /// Initializes a new instance of EventImpactedResourceData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Resource type within Microsoft cloud. + /// Identity for resource within Microsoft cloud. + /// Impacted resource region name. + /// Additional information. + internal EventImpactedResourceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string targetResourceType, string targetResourceId, string targetRegion, IReadOnlyList info) : base(id, name, resourceType, systemData) + { + TargetResourceType = targetResourceType; + TargetResourceId = targetResourceId; + TargetRegion = targetRegion; + Info = info; + } + + /// Resource type within Microsoft cloud. + public string TargetResourceType { get; } + /// Identity for resource within Microsoft cloud. + public string TargetResourceId { get; } + /// Impacted resource region name. + public string TargetRegion { get; } + /// Additional information. + public IReadOnlyList Info { get; } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Extensions/ArmResourceExtensionClient.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Extensions/ArmResourceExtensionClient.cs new file mode 100644 index 0000000000000..df8f48f2640e2 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Extensions/ArmResourceExtensionClient.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using Azure.Core; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.ResourceHealth +{ + /// A class to add extension methods to ArmResource. + internal partial class ArmResourceExtensionClient : ArmResource + { + /// Initializes a new instance of the class for mocking. + protected ArmResourceExtensionClient() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the resource that is the target of operations. + internal ArmResourceExtensionClient(ArmClient client, ResourceIdentifier id) : base(client, id) + { + } + + private string GetApiVersionOrNull(ResourceType resourceType) + { + TryGetApiVersion(resourceType, out string apiVersion); + return apiVersion; + } + + /// Gets an object representing a AvailabilityStatusResource along with the instance operations that can be performed on it in the ArmResource. + /// Returns a object. + public virtual AvailabilityStatusResource GetAvailabilityStatus() + { + return new AvailabilityStatusResource(Client, new ResourceIdentifier(Id.ToString() + "/providers/Microsoft.ResourceHealth/availabilityStatuses/current")); + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Extensions/ResourceHealthExtensions.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Extensions/ResourceHealthExtensions.cs new file mode 100644 index 0000000000000..32f59e613c4e6 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Extensions/ResourceHealthExtensions.cs @@ -0,0 +1,428 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager; +using Azure.ResourceManager.ResourceHealth.Models; +using Azure.ResourceManager.Resources; + +namespace Azure.ResourceManager.ResourceHealth +{ + /// A class to add extension methods to Azure.ResourceManager.ResourceHealth. + public static partial class ResourceHealthExtensions + { + private static TenantResourceExtensionClient GetExtensionClient(TenantResource tenantResource) + { + return tenantResource.GetCachedClient((client) => + { + return new TenantResourceExtensionClient(client, tenantResource.Id); + } + ); + } + + /// Gets a collection of MetadataEntityResources in the TenantResource. + /// The instance the method will execute against. + /// An object representing collection of MetadataEntityResources and their operations over a MetadataEntityResource. + public static MetadataEntityCollection GetMetadataEntities(this TenantResource tenantResource) + { + return GetExtensionClient(tenantResource).GetMetadataEntities(); + } + + /// + /// Gets the list of metadata entities. + /// + /// + /// Request Path + /// /providers/Microsoft.ResourceHealth/metadata/{name} + /// + /// + /// Operation Id + /// Metadata_GetEntity + /// + /// + /// + /// The instance the method will execute against. + /// Name of metadata entity. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public static async Task> GetMetadataEntityAsync(this TenantResource tenantResource, string name, CancellationToken cancellationToken = default) + { + return await tenantResource.GetMetadataEntities().GetAsync(name, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets the list of metadata entities. + /// + /// + /// Request Path + /// /providers/Microsoft.ResourceHealth/metadata/{name} + /// + /// + /// Operation Id + /// Metadata_GetEntity + /// + /// + /// + /// The instance the method will execute against. + /// Name of metadata entity. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public static Response GetMetadataEntity(this TenantResource tenantResource, string name, CancellationToken cancellationToken = default) + { + return tenantResource.GetMetadataEntities().Get(name, cancellationToken); + } + + /// Gets a collection of TenantEventResources in the TenantResource. + /// The instance the method will execute against. + /// An object representing collection of TenantEventResources and their operations over a TenantEventResource. + public static TenantEventCollection GetTenantEvents(this TenantResource tenantResource) + { + return GetExtensionClient(tenantResource).GetTenantEvents(); + } + + /// + /// Service health event in the tenant by event tracking id + /// + /// + /// Request Path + /// /providers/Microsoft.ResourceHealth/events/{eventTrackingId} + /// + /// + /// Operation Id + /// Event_GetByTenantIdAndTrackingId + /// + /// + /// + /// The instance the method will execute against. + /// Event Id which uniquely identifies ServiceHealth event. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// Specifies from when to return events, based on the lastUpdateTime property. For example, queryStartTime = 7/24/2020 OR queryStartTime=7%2F24%2F2020. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public static async Task> GetTenantEventAsync(this TenantResource tenantResource, string eventTrackingId, string filter = null, string queryStartTime = null, CancellationToken cancellationToken = default) + { + return await tenantResource.GetTenantEvents().GetAsync(eventTrackingId, filter, queryStartTime, cancellationToken).ConfigureAwait(false); + } + + /// + /// Service health event in the tenant by event tracking id + /// + /// + /// Request Path + /// /providers/Microsoft.ResourceHealth/events/{eventTrackingId} + /// + /// + /// Operation Id + /// Event_GetByTenantIdAndTrackingId + /// + /// + /// + /// The instance the method will execute against. + /// Event Id which uniquely identifies ServiceHealth event. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// Specifies from when to return events, based on the lastUpdateTime property. For example, queryStartTime = 7/24/2020 OR queryStartTime=7%2F24%2F2020. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public static Response GetTenantEvent(this TenantResource tenantResource, string eventTrackingId, string filter = null, string queryStartTime = null, CancellationToken cancellationToken = default) + { + return tenantResource.GetTenantEvents().Get(eventTrackingId, filter, queryStartTime, cancellationToken); + } + + /// Gets a collection of EmergingIssuesGetResultResources in the TenantResource. + /// The instance the method will execute against. + /// An object representing collection of EmergingIssuesGetResultResources and their operations over a EmergingIssuesGetResultResource. + public static EmergingIssuesGetResultCollection GetEmergingIssuesGetResults(this TenantResource tenantResource) + { + return GetExtensionClient(tenantResource).GetEmergingIssuesGetResults(); + } + + /// + /// Gets Azure services' emerging issues. + /// + /// + /// Request Path + /// /providers/Microsoft.ResourceHealth/emergingIssues/{issueName} + /// + /// + /// Operation Id + /// EmergingIssues_Get + /// + /// + /// + /// The instance the method will execute against. + /// The name of the emerging issue. + /// The cancellation token to use. + [ForwardsClientCalls] + public static async Task> GetEmergingIssuesGetResultAsync(this TenantResource tenantResource, IssueNameParameter issueName, CancellationToken cancellationToken = default) + { + return await tenantResource.GetEmergingIssuesGetResults().GetAsync(issueName, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets Azure services' emerging issues. + /// + /// + /// Request Path + /// /providers/Microsoft.ResourceHealth/emergingIssues/{issueName} + /// + /// + /// Operation Id + /// EmergingIssues_Get + /// + /// + /// + /// The instance the method will execute against. + /// The name of the emerging issue. + /// The cancellation token to use. + [ForwardsClientCalls] + public static Response GetEmergingIssuesGetResult(this TenantResource tenantResource, IssueNameParameter issueName, CancellationToken cancellationToken = default) + { + return tenantResource.GetEmergingIssuesGetResults().Get(issueName, cancellationToken); + } + + private static SubscriptionResourceExtensionClient GetExtensionClient(SubscriptionResource subscriptionResource) + { + return subscriptionResource.GetCachedClient((client) => + { + return new SubscriptionResourceExtensionClient(client, subscriptionResource.Id); + } + ); + } + + /// Gets a collection of SubscriptionEventResources in the SubscriptionResource. + /// The instance the method will execute against. + /// An object representing collection of SubscriptionEventResources and their operations over a SubscriptionEventResource. + public static SubscriptionEventCollection GetSubscriptionEvents(this SubscriptionResource subscriptionResource) + { + return GetExtensionClient(subscriptionResource).GetSubscriptionEvents(); + } + + /// + /// Service health event in the subscription by event tracking id + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId} + /// + /// + /// Operation Id + /// Event_GetBySubscriptionIdAndTrackingId + /// + /// + /// + /// The instance the method will execute against. + /// Event Id which uniquely identifies ServiceHealth event. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// Specifies from when to return events, based on the lastUpdateTime property. For example, queryStartTime = 7/24/2020 OR queryStartTime=7%2F24%2F2020. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public static async Task> GetSubscriptionEventAsync(this SubscriptionResource subscriptionResource, string eventTrackingId, string filter = null, string queryStartTime = null, CancellationToken cancellationToken = default) + { + return await subscriptionResource.GetSubscriptionEvents().GetAsync(eventTrackingId, filter, queryStartTime, cancellationToken).ConfigureAwait(false); + } + + /// + /// Service health event in the subscription by event tracking id + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId} + /// + /// + /// Operation Id + /// Event_GetBySubscriptionIdAndTrackingId + /// + /// + /// + /// The instance the method will execute against. + /// Event Id which uniquely identifies ServiceHealth event. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// Specifies from when to return events, based on the lastUpdateTime property. For example, queryStartTime = 7/24/2020 OR queryStartTime=7%2F24%2F2020. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public static Response GetSubscriptionEvent(this SubscriptionResource subscriptionResource, string eventTrackingId, string filter = null, string queryStartTime = null, CancellationToken cancellationToken = default) + { + return subscriptionResource.GetSubscriptionEvents().Get(eventTrackingId, filter, queryStartTime, cancellationToken); + } + + private static ArmResourceExtensionClient GetExtensionClient(ArmClient client, ResourceIdentifier scope) + { + return client.GetResourceClient(() => + { + return new ArmResourceExtensionClient(client, scope); + } + ); + } + + private static ArmResourceExtensionClient GetExtensionClient(ArmResource armResource) + { + return armResource.GetCachedClient((client) => + { + return new ArmResourceExtensionClient(client, armResource.Id); + } + ); + } + + /// Gets an object representing a AvailabilityStatusResource along with the instance operations that can be performed on it in the ArmResource. + /// The instance the method will execute against. + /// The scope that the resource will apply against. + /// Returns a object. + public static AvailabilityStatusResource GetAvailabilityStatus(this ArmClient client, ResourceIdentifier scope) + { + return GetExtensionClient(client, scope).GetAvailabilityStatus(); + } + + #region AvailabilityStatusResource + /// + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// Returns a object. + public static AvailabilityStatusResource GetAvailabilityStatusResource(this ArmClient client, ResourceIdentifier id) + { + return client.GetResourceClient(() => + { + AvailabilityStatusResource.ValidateResourceId(id); + return new AvailabilityStatusResource(client, id); + } + ); + } + #endregion + + #region MetadataEntityResource + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// Returns a object. + public static MetadataEntityResource GetMetadataEntityResource(this ArmClient client, ResourceIdentifier id) + { + return client.GetResourceClient(() => + { + MetadataEntityResource.ValidateResourceId(id); + return new MetadataEntityResource(client, id); + } + ); + } + #endregion + + #region SubscriptionResourceHealthEventImpactedResource + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// Returns a object. + public static SubscriptionResourceHealthEventImpactedResource GetSubscriptionResourceHealthEventImpactedResource(this ArmClient client, ResourceIdentifier id) + { + return client.GetResourceClient(() => + { + SubscriptionResourceHealthEventImpactedResource.ValidateResourceId(id); + return new SubscriptionResourceHealthEventImpactedResource(client, id); + } + ); + } + #endregion + + #region TenantResourceHealthEventImpactedResource + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// Returns a object. + public static TenantResourceHealthEventImpactedResource GetTenantResourceHealthEventImpactedResource(this ArmClient client, ResourceIdentifier id) + { + return client.GetResourceClient(() => + { + TenantResourceHealthEventImpactedResource.ValidateResourceId(id); + return new TenantResourceHealthEventImpactedResource(client, id); + } + ); + } + #endregion + + #region SubscriptionEventResource + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// Returns a object. + public static SubscriptionEventResource GetSubscriptionEventResource(this ArmClient client, ResourceIdentifier id) + { + return client.GetResourceClient(() => + { + SubscriptionEventResource.ValidateResourceId(id); + return new SubscriptionEventResource(client, id); + } + ); + } + #endregion + + #region TenantEventResource + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// Returns a object. + public static TenantEventResource GetTenantEventResource(this ArmClient client, ResourceIdentifier id) + { + return client.GetResourceClient(() => + { + TenantEventResource.ValidateResourceId(id); + return new TenantEventResource(client, id); + } + ); + } + #endregion + + #region EmergingIssuesGetResultResource + /// + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// Returns a object. + public static EmergingIssuesGetResultResource GetEmergingIssuesGetResultResource(this ArmClient client, ResourceIdentifier id) + { + return client.GetResourceClient(() => + { + EmergingIssuesGetResultResource.ValidateResourceId(id); + return new EmergingIssuesGetResultResource(client, id); + } + ); + } + #endregion + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs new file mode 100644 index 0000000000000..0a515a7ee4f10 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using Azure.Core; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.ResourceHealth +{ + /// A class to add extension methods to SubscriptionResource. + internal partial class SubscriptionResourceExtensionClient : ArmResource + { + /// Initializes a new instance of the class for mocking. + protected SubscriptionResourceExtensionClient() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the resource that is the target of operations. + internal SubscriptionResourceExtensionClient(ArmClient client, ResourceIdentifier id) : base(client, id) + { + } + + private string GetApiVersionOrNull(ResourceType resourceType) + { + TryGetApiVersion(resourceType, out string apiVersion); + return apiVersion; + } + + /// Gets a collection of SubscriptionEventResources in the SubscriptionResource. + /// An object representing collection of SubscriptionEventResources and their operations over a SubscriptionEventResource. + public virtual SubscriptionEventCollection GetSubscriptionEvents() + { + return GetCachedClient(Client => new SubscriptionEventCollection(Client, Id)); + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Extensions/TenantResourceExtensionClient.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Extensions/TenantResourceExtensionClient.cs new file mode 100644 index 0000000000000..e837c7d6e9b30 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Extensions/TenantResourceExtensionClient.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using Azure.Core; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.ResourceHealth +{ + /// A class to add extension methods to TenantResource. + internal partial class TenantResourceExtensionClient : ArmResource + { + /// Initializes a new instance of the class for mocking. + protected TenantResourceExtensionClient() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the resource that is the target of operations. + internal TenantResourceExtensionClient(ArmClient client, ResourceIdentifier id) : base(client, id) + { + } + + private string GetApiVersionOrNull(ResourceType resourceType) + { + TryGetApiVersion(resourceType, out string apiVersion); + return apiVersion; + } + + /// Gets a collection of MetadataEntityResources in the TenantResource. + /// An object representing collection of MetadataEntityResources and their operations over a MetadataEntityResource. + public virtual MetadataEntityCollection GetMetadataEntities() + { + return GetCachedClient(Client => new MetadataEntityCollection(Client, Id)); + } + + /// Gets a collection of TenantEventResources in the TenantResource. + /// An object representing collection of TenantEventResources and their operations over a TenantEventResource. + public virtual TenantEventCollection GetTenantEvents() + { + return GetCachedClient(Client => new TenantEventCollection(Client, Id)); + } + + /// Gets a collection of EmergingIssuesGetResultResources in the TenantResource. + /// An object representing collection of EmergingIssuesGetResultResources and their operations over a EmergingIssuesGetResultResource. + public virtual EmergingIssuesGetResultCollection GetEmergingIssuesGetResults() + { + return GetCachedClient(Client => new EmergingIssuesGetResultCollection(Client, Id)); + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/MetadataEntityCollection.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/MetadataEntityCollection.cs new file mode 100644 index 0000000000000..9dbf4e1c06b61 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/MetadataEntityCollection.cs @@ -0,0 +1,259 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; +using Azure.ResourceManager.Resources; + +namespace Azure.ResourceManager.ResourceHealth +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetMetadataEntities method from an instance of . + /// + public partial class MetadataEntityCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _metadataEntityMetadataClientDiagnostics; + private readonly MetadataRestOperations _metadataEntityMetadataRestClient; + + /// Initializes a new instance of the class for mocking. + protected MetadataEntityCollection() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the parent resource that is the target of operations. + internal MetadataEntityCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _metadataEntityMetadataClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ResourceHealth", MetadataEntityResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(MetadataEntityResource.ResourceType, out string metadataEntityMetadataApiVersion); + _metadataEntityMetadataRestClient = new MetadataRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, metadataEntityMetadataApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != TenantResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, TenantResource.ResourceType), nameof(id)); + } + + /// + /// Gets the list of metadata entities. + /// + /// + /// Request Path + /// /providers/Microsoft.ResourceHealth/metadata/{name} + /// + /// + /// Operation Id + /// Metadata_GetEntity + /// + /// + /// + /// Name of metadata entity. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetAsync(string name, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(name, nameof(name)); + + using var scope = _metadataEntityMetadataClientDiagnostics.CreateScope("MetadataEntityCollection.Get"); + scope.Start(); + try + { + var response = await _metadataEntityMetadataRestClient.GetEntityAsync(name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new MetadataEntityResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets the list of metadata entities. + /// + /// + /// Request Path + /// /providers/Microsoft.ResourceHealth/metadata/{name} + /// + /// + /// Operation Id + /// Metadata_GetEntity + /// + /// + /// + /// Name of metadata entity. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string name, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(name, nameof(name)); + + using var scope = _metadataEntityMetadataClientDiagnostics.CreateScope("MetadataEntityCollection.Get"); + scope.Start(); + try + { + var response = _metadataEntityMetadataRestClient.GetEntity(name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new MetadataEntityResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets the list of metadata entities. + /// + /// + /// Request Path + /// /providers/Microsoft.ResourceHealth/metadata + /// + /// + /// Operation Id + /// Metadata_List + /// + /// + /// + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _metadataEntityMetadataRestClient.CreateListRequest(); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _metadataEntityMetadataRestClient.CreateListNextPageRequest(nextLink); + return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new MetadataEntityResource(Client, MetadataEntityData.DeserializeMetadataEntityData(e)), _metadataEntityMetadataClientDiagnostics, Pipeline, "MetadataEntityCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Gets the list of metadata entities. + /// + /// + /// Request Path + /// /providers/Microsoft.ResourceHealth/metadata + /// + /// + /// Operation Id + /// Metadata_List + /// + /// + /// + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _metadataEntityMetadataRestClient.CreateListRequest(); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _metadataEntityMetadataRestClient.CreateListNextPageRequest(nextLink); + return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new MetadataEntityResource(Client, MetadataEntityData.DeserializeMetadataEntityData(e)), _metadataEntityMetadataClientDiagnostics, Pipeline, "MetadataEntityCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /providers/Microsoft.ResourceHealth/metadata/{name} + /// + /// + /// Operation Id + /// Metadata_GetEntity + /// + /// + /// + /// Name of metadata entity. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> ExistsAsync(string name, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(name, nameof(name)); + + using var scope = _metadataEntityMetadataClientDiagnostics.CreateScope("MetadataEntityCollection.Exists"); + scope.Start(); + try + { + var response = await _metadataEntityMetadataRestClient.GetEntityAsync(name, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /providers/Microsoft.ResourceHealth/metadata/{name} + /// + /// + /// Operation Id + /// Metadata_GetEntity + /// + /// + /// + /// Name of metadata entity. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string name, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(name, nameof(name)); + + using var scope = _metadataEntityMetadataClientDiagnostics.CreateScope("MetadataEntityCollection.Exists"); + scope.Start(); + try + { + var response = _metadataEntityMetadataRestClient.GetEntity(name, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + { + return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/MetadataEntityData.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/MetadataEntityData.cs new file mode 100644 index 0000000000000..2393b0bbc15a3 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/MetadataEntityData.cs @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.ResourceHealth.Models; + +namespace Azure.ResourceManager.ResourceHealth +{ + /// A class representing the MetadataEntity data model. + public partial class MetadataEntityData : ResourceData + { + /// Initializes a new instance of MetadataEntityData. + internal MetadataEntityData() + { + DependsOn = new ChangeTrackingList(); + ApplicableScenarios = new ChangeTrackingList(); + SupportedValues = new ChangeTrackingList(); + } + + /// Initializes a new instance of MetadataEntityData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The display name. + /// The list of keys on which this entity depends on. + /// The list of scenarios applicable to this metadata entity. + /// The list of supported values. + internal MetadataEntityData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string displayName, IReadOnlyList dependsOn, IReadOnlyList applicableScenarios, IReadOnlyList supportedValues) : base(id, name, resourceType, systemData) + { + DisplayName = displayName; + DependsOn = dependsOn; + ApplicableScenarios = applicableScenarios; + SupportedValues = supportedValues; + } + + /// The display name. + public string DisplayName { get; } + /// The list of keys on which this entity depends on. + public IReadOnlyList DependsOn { get; } + /// The list of scenarios applicable to this metadata entity. + public IReadOnlyList ApplicableScenarios { get; } + /// The list of supported values. + public IReadOnlyList SupportedValues { get; } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/MetadataEntityResource.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/MetadataEntityResource.cs new file mode 100644 index 0000000000000..e11272ead6d7b --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/MetadataEntityResource.cs @@ -0,0 +1,154 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; +using Azure.ResourceManager.Resources; + +namespace Azure.ResourceManager.ResourceHealth +{ + /// + /// A Class representing a MetadataEntity along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetMetadataEntityResource method. + /// Otherwise you can get one from its parent resource using the GetMetadataEntity method. + /// + public partial class MetadataEntityResource : ArmResource + { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string name) + { + var resourceId = $"/providers/Microsoft.ResourceHealth/metadata/{name}"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _metadataEntityMetadataClientDiagnostics; + private readonly MetadataRestOperations _metadataEntityMetadataRestClient; + private readonly MetadataEntityData _data; + + /// Initializes a new instance of the class for mocking. + protected MetadataEntityResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal MetadataEntityResource(ArmClient client, MetadataEntityData data) : this(client, data.Id) + { + HasData = true; + _data = data; + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the resource that is the target of operations. + internal MetadataEntityResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _metadataEntityMetadataClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ResourceHealth", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string metadataEntityMetadataApiVersion); + _metadataEntityMetadataRestClient = new MetadataRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, metadataEntityMetadataApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.ResourceHealth/metadata"; + + /// Gets whether or not the current instance has data. + public virtual bool HasData { get; } + + /// Gets the data representing this Feature. + /// Throws if there is no data loaded in the current instance. + public virtual MetadataEntityData Data + { + get + { + if (!HasData) + throw new InvalidOperationException("The current instance does not have data, you must call Get first."); + return _data; + } + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); + } + + /// + /// Gets the list of metadata entities. + /// + /// + /// Request Path + /// /providers/Microsoft.ResourceHealth/metadata/{name} + /// + /// + /// Operation Id + /// Metadata_GetEntity + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using var scope = _metadataEntityMetadataClientDiagnostics.CreateScope("MetadataEntityResource.Get"); + scope.Start(); + try + { + var response = await _metadataEntityMetadataRestClient.GetEntityAsync(Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new MetadataEntityResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets the list of metadata entities. + /// + /// + /// Request Path + /// /providers/Microsoft.ResourceHealth/metadata/{name} + /// + /// + /// Operation Id + /// Metadata_GetEntity + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using var scope = _metadataEntityMetadataClientDiagnostics.CreateScope("MetadataEntityResource.Get"); + scope.Start(); + try + { + var response = _metadataEntityMetadataRestClient.GetEntity(Id.Name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new MetadataEntityResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/AvailabilityStateValue.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/AvailabilityStateValue.cs new file mode 100644 index 0000000000000..d52a9449906a2 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/AvailabilityStateValue.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + /// Impacted resource status of the resource. + public readonly partial struct AvailabilityStateValue : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public AvailabilityStateValue(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string AvailableValue = "Available"; + private const string UnavailableValue = "Unavailable"; + private const string DegradedValue = "Degraded"; + private const string UnknownValue = "Unknown"; + + /// Available. + public static AvailabilityStateValue Available { get; } = new AvailabilityStateValue(AvailableValue); + /// Unavailable. + public static AvailabilityStateValue Unavailable { get; } = new AvailabilityStateValue(UnavailableValue); + /// Degraded. + public static AvailabilityStateValue Degraded { get; } = new AvailabilityStateValue(DegradedValue); + /// Unknown. + public static AvailabilityStateValue Unknown { get; } = new AvailabilityStateValue(UnknownValue); + /// Determines if two values are the same. + public static bool operator ==(AvailabilityStateValue left, AvailabilityStateValue right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(AvailabilityStateValue left, AvailabilityStateValue right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator AvailabilityStateValue(string value) => new AvailabilityStateValue(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is AvailabilityStateValue other && Equals(other); + /// + public bool Equals(AvailabilityStateValue other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/AvailabilityStatusData.Serialization.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/AvailabilityStatusData.Serialization.cs new file mode 100644 index 0000000000000..efcb159072168 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/AvailabilityStatusData.Serialization.cs @@ -0,0 +1,76 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.ResourceHealth.Models; + +namespace Azure.ResourceManager.ResourceHealth +{ + public partial class AvailabilityStatusData + { + internal static AvailabilityStatusData DeserializeAvailabilityStatusData(JsonElement element) + { + Optional location = default; + Optional properties = default; + ResourceIdentifier id = default; + string name = default; + ResourceType type = default; + Optional systemData = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("location"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + location = new AzureLocation(property.Value.GetString()); + continue; + } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + properties = AvailabilityStatusProperties.DeserializeAvailabilityStatusProperties(property.Value); + continue; + } + if (property.NameEquals("id"u8)) + { + id = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + type = new ResourceType(property.Value.GetString()); + continue; + } + if (property.NameEquals("systemData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } + } + return new AvailabilityStatusData(id, name, type, systemData.Value, Optional.ToNullable(location), properties.Value); + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/AvailabilityStatusListResult.Serialization.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/AvailabilityStatusListResult.Serialization.cs new file mode 100644 index 0000000000000..dab08eaa4d720 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/AvailabilityStatusListResult.Serialization.cs @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.ResourceHealth; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + internal partial class AvailabilityStatusListResult + { + internal static AvailabilityStatusListResult DeserializeAvailabilityStatusListResult(JsonElement element) + { + IReadOnlyList value = default; + Optional nextLink = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value"u8)) + { + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(AvailabilityStatusData.DeserializeAvailabilityStatusData(item)); + } + value = array; + continue; + } + if (property.NameEquals("nextLink"u8)) + { + nextLink = property.Value.GetString(); + continue; + } + } + return new AvailabilityStatusListResult(value, nextLink.Value); + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/AvailabilityStatusListResult.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/AvailabilityStatusListResult.cs new file mode 100644 index 0000000000000..7d9eb8d70b4c6 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/AvailabilityStatusListResult.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; +using Azure.Core; +using Azure.ResourceManager.ResourceHealth; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + /// The List availabilityStatus operation response. + internal partial class AvailabilityStatusListResult + { + /// Initializes a new instance of AvailabilityStatusListResult. + /// The list of availabilityStatuses. + /// is null. + internal AvailabilityStatusListResult(IEnumerable value) + { + Argument.AssertNotNull(value, nameof(value)); + + Value = value.ToList(); + } + + /// Initializes a new instance of AvailabilityStatusListResult. + /// The list of availabilityStatuses. + /// The URI to fetch the next page of availabilityStatuses. Call ListNext() with this URI to fetch the next page of availabilityStatuses. + internal AvailabilityStatusListResult(IReadOnlyList value, string nextLink) + { + Value = value; + NextLink = nextLink; + } + + /// The list of availabilityStatuses. + public IReadOnlyList Value { get; } + /// The URI to fetch the next page of availabilityStatuses. Call ListNext() with this URI to fetch the next page of availabilityStatuses. + public string NextLink { get; } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/AvailabilityStatusProperties.Serialization.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/AvailabilityStatusProperties.Serialization.cs new file mode 100644 index 0000000000000..265338bd85bc7 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/AvailabilityStatusProperties.Serialization.cs @@ -0,0 +1,194 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + public partial class AvailabilityStatusProperties + { + internal static AvailabilityStatusProperties DeserializeAvailabilityStatusProperties(JsonElement element) + { + Optional availabilityState = default; + Optional title = default; + Optional summary = default; + Optional detailedStatus = default; + Optional reasonType = default; + Optional context = default; + Optional category = default; + Optional rootCauseAttributionTime = default; + Optional healthEventType = default; + Optional healthEventCause = default; + Optional healthEventCategory = default; + Optional healthEventId = default; + Optional resolutionETA = default; + Optional occuredTime = default; + Optional reasonChronicity = default; + Optional reportedTime = default; + Optional recentlyResolved = default; + Optional> recommendedActions = default; + Optional> serviceImpactingEvents = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("availabilityState"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + availabilityState = new AvailabilityStateValue(property.Value.GetString()); + continue; + } + if (property.NameEquals("title"u8)) + { + title = property.Value.GetString(); + continue; + } + if (property.NameEquals("summary"u8)) + { + summary = property.Value.GetString(); + continue; + } + if (property.NameEquals("detailedStatus"u8)) + { + detailedStatus = property.Value.GetString(); + continue; + } + if (property.NameEquals("reasonType"u8)) + { + reasonType = property.Value.GetString(); + continue; + } + if (property.NameEquals("context"u8)) + { + context = property.Value.GetString(); + continue; + } + if (property.NameEquals("category"u8)) + { + category = property.Value.GetString(); + continue; + } + if (property.NameEquals("rootCauseAttributionTime"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + rootCauseAttributionTime = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("healthEventType"u8)) + { + healthEventType = property.Value.GetString(); + continue; + } + if (property.NameEquals("healthEventCause"u8)) + { + healthEventCause = property.Value.GetString(); + continue; + } + if (property.NameEquals("healthEventCategory"u8)) + { + healthEventCategory = property.Value.GetString(); + continue; + } + if (property.NameEquals("healthEventId"u8)) + { + healthEventId = property.Value.GetString(); + continue; + } + if (property.NameEquals("resolutionETA"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + resolutionETA = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("occuredTime"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + occuredTime = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("reasonChronicity"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + reasonChronicity = new ReasonChronicityType(property.Value.GetString()); + continue; + } + if (property.NameEquals("reportedTime"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + reportedTime = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("recentlyResolved"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + recentlyResolved = AvailabilityStatusPropertiesRecentlyResolved.DeserializeAvailabilityStatusPropertiesRecentlyResolved(property.Value); + continue; + } + if (property.NameEquals("recommendedActions"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(RecommendedAction.DeserializeRecommendedAction(item)); + } + recommendedActions = array; + continue; + } + if (property.NameEquals("serviceImpactingEvents"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(ServiceImpactingEvent.DeserializeServiceImpactingEvent(item)); + } + serviceImpactingEvents = array; + continue; + } + } + return new AvailabilityStatusProperties(Optional.ToNullable(availabilityState), title.Value, summary.Value, detailedStatus.Value, reasonType.Value, context.Value, category.Value, Optional.ToNullable(rootCauseAttributionTime), healthEventType.Value, healthEventCause.Value, healthEventCategory.Value, healthEventId.Value, Optional.ToNullable(resolutionETA), Optional.ToNullable(occuredTime), Optional.ToNullable(reasonChronicity), Optional.ToNullable(reportedTime), recentlyResolved.Value, Optional.ToList(recommendedActions), Optional.ToList(serviceImpactingEvents)); + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/AvailabilityStatusProperties.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/AvailabilityStatusProperties.cs new file mode 100644 index 0000000000000..487955d0be38b --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/AvailabilityStatusProperties.cs @@ -0,0 +1,106 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + /// Properties of availability state. + public partial class AvailabilityStatusProperties + { + /// Initializes a new instance of AvailabilityStatusProperties. + internal AvailabilityStatusProperties() + { + RecommendedActions = new ChangeTrackingList(); + ServiceImpactingEvents = new ChangeTrackingList(); + } + + /// Initializes a new instance of AvailabilityStatusProperties. + /// Availability status of the resource. When it is null, this availabilityStatus object represents an availability impacting event. + /// Title description of the availability status. + /// Summary description of the availability status. + /// Details of the availability status. + /// When the resource's availabilityState is Unavailable, it describes where the health impacting event was originated. Examples are planned, unplanned, user initiated or an outage etc. + /// When an event is created, it can either be triggered by a customer or the platform of the resource and this field will illustrate that. This field is connected to the category field in this object. + /// When a context field is set to Platform, this field will reflect if the event was planned or unplanned. If the context field does not have a value of Platform, then this field will be ignored. + /// When the resource's availabilityState is Unavailable, it provides the Timestamp for when the health impacting event was received. + /// In case of an availability impacting event, it describes when the health impacting event was originated. Examples are Lifecycle, Downtime, Fault Analysis etc. + /// In case of an availability impacting event, it describes where the health impacting event was originated. Examples are PlatformInitiated, UserInitiated etc. + /// In case of an availability impacting event, it describes the category of a PlatformInitiated health impacting event. Examples are Planned, Unplanned etc. + /// It is a unique Id that identifies the event. + /// When the resource's availabilityState is Unavailable and the reasonType is not User Initiated, it provides the date and time for when the issue is expected to be resolved. + /// Timestamp for when last change in health status occurred. + /// Chronicity of the availability transition. + /// Timestamp for when the health was last checked. + /// An annotation describing a change in the availabilityState to Available from Unavailable with a reasonType of type Unplanned. + /// Lists actions the user can take based on the current availabilityState of the resource. + /// Lists the service impacting events that may be affecting the health of the resource. + internal AvailabilityStatusProperties(AvailabilityStateValue? availabilityState, string title, string summary, string detailedStatus, string reasonType, string context, string category, DateTimeOffset? rootCauseAttributionOn, string healthEventType, string healthEventCause, string healthEventCategory, string healthEventId, DateTimeOffset? resolutionETA, DateTimeOffset? occuredOn, ReasonChronicityType? reasonChronicity, DateTimeOffset? reportedOn, AvailabilityStatusPropertiesRecentlyResolved recentlyResolved, IReadOnlyList recommendedActions, IReadOnlyList serviceImpactingEvents) + { + AvailabilityState = availabilityState; + Title = title; + Summary = summary; + DetailedStatus = detailedStatus; + ReasonType = reasonType; + Context = context; + Category = category; + RootCauseAttributionOn = rootCauseAttributionOn; + HealthEventType = healthEventType; + HealthEventCause = healthEventCause; + HealthEventCategory = healthEventCategory; + HealthEventId = healthEventId; + ResolutionETA = resolutionETA; + OccuredOn = occuredOn; + ReasonChronicity = reasonChronicity; + ReportedOn = reportedOn; + RecentlyResolved = recentlyResolved; + RecommendedActions = recommendedActions; + ServiceImpactingEvents = serviceImpactingEvents; + } + + /// Availability status of the resource. When it is null, this availabilityStatus object represents an availability impacting event. + public AvailabilityStateValue? AvailabilityState { get; } + /// Title description of the availability status. + public string Title { get; } + /// Summary description of the availability status. + public string Summary { get; } + /// Details of the availability status. + public string DetailedStatus { get; } + /// When the resource's availabilityState is Unavailable, it describes where the health impacting event was originated. Examples are planned, unplanned, user initiated or an outage etc. + public string ReasonType { get; } + /// When an event is created, it can either be triggered by a customer or the platform of the resource and this field will illustrate that. This field is connected to the category field in this object. + public string Context { get; } + /// When a context field is set to Platform, this field will reflect if the event was planned or unplanned. If the context field does not have a value of Platform, then this field will be ignored. + public string Category { get; } + /// When the resource's availabilityState is Unavailable, it provides the Timestamp for when the health impacting event was received. + public DateTimeOffset? RootCauseAttributionOn { get; } + /// In case of an availability impacting event, it describes when the health impacting event was originated. Examples are Lifecycle, Downtime, Fault Analysis etc. + public string HealthEventType { get; } + /// In case of an availability impacting event, it describes where the health impacting event was originated. Examples are PlatformInitiated, UserInitiated etc. + public string HealthEventCause { get; } + /// In case of an availability impacting event, it describes the category of a PlatformInitiated health impacting event. Examples are Planned, Unplanned etc. + public string HealthEventCategory { get; } + /// It is a unique Id that identifies the event. + public string HealthEventId { get; } + /// When the resource's availabilityState is Unavailable and the reasonType is not User Initiated, it provides the date and time for when the issue is expected to be resolved. + public DateTimeOffset? ResolutionETA { get; } + /// Timestamp for when last change in health status occurred. + public DateTimeOffset? OccuredOn { get; } + /// Chronicity of the availability transition. + public ReasonChronicityType? ReasonChronicity { get; } + /// Timestamp for when the health was last checked. + public DateTimeOffset? ReportedOn { get; } + /// An annotation describing a change in the availabilityState to Available from Unavailable with a reasonType of type Unplanned. + public AvailabilityStatusPropertiesRecentlyResolved RecentlyResolved { get; } + /// Lists actions the user can take based on the current availabilityState of the resource. + public IReadOnlyList RecommendedActions { get; } + /// Lists the service impacting events that may be affecting the health of the resource. + public IReadOnlyList ServiceImpactingEvents { get; } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/AvailabilityStatusPropertiesRecentlyResolved.Serialization.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/AvailabilityStatusPropertiesRecentlyResolved.Serialization.cs new file mode 100644 index 0000000000000..2fbbcf06f003d --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/AvailabilityStatusPropertiesRecentlyResolved.Serialization.cs @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + public partial class AvailabilityStatusPropertiesRecentlyResolved + { + internal static AvailabilityStatusPropertiesRecentlyResolved DeserializeAvailabilityStatusPropertiesRecentlyResolved(JsonElement element) + { + Optional unavailableOccuredTime = default; + Optional resolvedTime = default; + Optional unavailableSummary = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("unavailableOccuredTime"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + unavailableOccuredTime = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("resolvedTime"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + resolvedTime = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("unavailableSummary"u8)) + { + unavailableSummary = property.Value.GetString(); + continue; + } + } + return new AvailabilityStatusPropertiesRecentlyResolved(Optional.ToNullable(unavailableOccuredTime), Optional.ToNullable(resolvedTime), unavailableSummary.Value); + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/AvailabilityStatusPropertiesRecentlyResolved.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/AvailabilityStatusPropertiesRecentlyResolved.cs new file mode 100644 index 0000000000000..2c0b9e4f90d62 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/AvailabilityStatusPropertiesRecentlyResolved.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + /// An annotation describing a change in the availabilityState to Available from Unavailable with a reasonType of type Unplanned. + public partial class AvailabilityStatusPropertiesRecentlyResolved + { + /// Initializes a new instance of AvailabilityStatusPropertiesRecentlyResolved. + internal AvailabilityStatusPropertiesRecentlyResolved() + { + } + + /// Initializes a new instance of AvailabilityStatusPropertiesRecentlyResolved. + /// Timestamp for when the availabilityState changed to Unavailable. + /// Timestamp when the availabilityState changes to Available. + /// Brief description of cause of the resource becoming unavailable. + internal AvailabilityStatusPropertiesRecentlyResolved(DateTimeOffset? unavailableOccuredOn, DateTimeOffset? resolvedOn, string unavailableSummary) + { + UnavailableOccuredOn = unavailableOccuredOn; + ResolvedOn = resolvedOn; + UnavailableSummary = unavailableSummary; + } + + /// Timestamp for when the availabilityState changed to Unavailable. + public DateTimeOffset? UnavailableOccuredOn { get; } + /// Timestamp when the availabilityState changes to Available. + public DateTimeOffset? ResolvedOn { get; } + /// Brief description of cause of the resource becoming unavailable. + public string UnavailableSummary { get; } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EmergingIssueImpact.Serialization.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EmergingIssueImpact.Serialization.cs new file mode 100644 index 0000000000000..89ff8803c26ac --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EmergingIssueImpact.Serialization.cs @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + public partial class EmergingIssueImpact + { + internal static EmergingIssueImpact DeserializeEmergingIssueImpact(JsonElement element) + { + Optional id = default; + Optional name = default; + Optional> regions = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id"u8)) + { + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("regions"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(ImpactedRegion.DeserializeImpactedRegion(item)); + } + regions = array; + continue; + } + } + return new EmergingIssueImpact(id.Value, name.Value, Optional.ToList(regions)); + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EmergingIssueImpact.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EmergingIssueImpact.cs new file mode 100644 index 0000000000000..120863bb898c2 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EmergingIssueImpact.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + /// Object of the emerging issue impact on services and regions. + public partial class EmergingIssueImpact + { + /// Initializes a new instance of EmergingIssueImpact. + internal EmergingIssueImpact() + { + Regions = new ChangeTrackingList(); + } + + /// Initializes a new instance of EmergingIssueImpact. + /// The impacted service id. + /// The impacted service name. + /// The list of impacted regions for corresponding emerging issues. + internal EmergingIssueImpact(string id, string name, IReadOnlyList regions) + { + Id = id; + Name = name; + Regions = regions; + } + + /// The impacted service id. + public string Id { get; } + /// The impacted service name. + public string Name { get; } + /// The list of impacted regions for corresponding emerging issues. + public IReadOnlyList Regions { get; } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EmergingIssueListResult.Serialization.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EmergingIssueListResult.Serialization.cs new file mode 100644 index 0000000000000..4a9687bc7ff1d --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EmergingIssueListResult.Serialization.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.ResourceHealth; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + internal partial class EmergingIssueListResult + { + internal static EmergingIssueListResult DeserializeEmergingIssueListResult(JsonElement element) + { + Optional> value = default; + Optional nextLink = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(EmergingIssuesGetResultData.DeserializeEmergingIssuesGetResultData(item)); + } + value = array; + continue; + } + if (property.NameEquals("nextLink"u8)) + { + nextLink = property.Value.GetString(); + continue; + } + } + return new EmergingIssueListResult(Optional.ToList(value), nextLink.Value); + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EmergingIssueListResult.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EmergingIssueListResult.cs new file mode 100644 index 0000000000000..eaba83db13392 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EmergingIssueListResult.cs @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.ResourceHealth; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + /// The list of emerging issues. + internal partial class EmergingIssueListResult + { + /// Initializes a new instance of EmergingIssueListResult. + internal EmergingIssueListResult() + { + Value = new ChangeTrackingList(); + } + + /// Initializes a new instance of EmergingIssueListResult. + /// The list of emerging issues. + /// The link used to get the next page of emerging issues. + internal EmergingIssueListResult(IReadOnlyList value, string nextLink) + { + Value = value; + NextLink = nextLink; + } + + /// The list of emerging issues. + public IReadOnlyList Value { get; } + /// The link used to get the next page of emerging issues. + public string NextLink { get; } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EmergingIssuesGetResultData.Serialization.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EmergingIssuesGetResultData.Serialization.cs new file mode 100644 index 0000000000000..ceea43f1ae745 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EmergingIssuesGetResultData.Serialization.cs @@ -0,0 +1,111 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.ResourceHealth.Models; + +namespace Azure.ResourceManager.ResourceHealth +{ + public partial class EmergingIssuesGetResultData + { + internal static EmergingIssuesGetResultData DeserializeEmergingIssuesGetResultData(JsonElement element) + { + ResourceIdentifier id = default; + string name = default; + ResourceType type = default; + Optional systemData = default; + Optional refreshTimestamp = default; + Optional> statusBanners = default; + Optional> statusActiveEvents = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id"u8)) + { + id = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + type = new ResourceType(property.Value.GetString()); + continue; + } + if (property.NameEquals("systemData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("refreshTimestamp"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + refreshTimestamp = property0.Value.GetDateTimeOffset("O"); + continue; + } + if (property0.NameEquals("statusBanners"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(StatusBanner.DeserializeStatusBanner(item)); + } + statusBanners = array; + continue; + } + if (property0.NameEquals("statusActiveEvents"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(StatusActiveEvent.DeserializeStatusActiveEvent(item)); + } + statusActiveEvents = array; + continue; + } + } + continue; + } + } + return new EmergingIssuesGetResultData(id, name, type, systemData.Value, Optional.ToNullable(refreshTimestamp), Optional.ToList(statusBanners), Optional.ToList(statusActiveEvents)); + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventData.Serialization.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventData.Serialization.cs new file mode 100644 index 0000000000000..af1670b747682 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventData.Serialization.cs @@ -0,0 +1,345 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.ResourceHealth.Models; + +namespace Azure.ResourceManager.ResourceHealth +{ + public partial class EventData + { + internal static EventData DeserializeEventData(JsonElement element) + { + ResourceIdentifier id = default; + string name = default; + ResourceType type = default; + Optional systemData = default; + Optional eventType = default; + Optional eventSource = default; + Optional status = default; + Optional title = default; + Optional summary = default; + Optional header = default; + Optional level = default; + Optional eventLevel = default; + Optional externalIncidentId = default; + Optional article = default; + Optional> links = default; + Optional impactStartTime = default; + Optional impactMitigationTime = default; + Optional> impact = default; + Optional recommendedActions = default; + Optional> faqs = default; + Optional isHIR = default; + Optional enableMicrosoftSupport = default; + Optional description = default; + Optional platformInitiated = default; + Optional enableChatWithUs = default; + Optional priority = default; + Optional lastUpdateTime = default; + Optional hirStage = default; + Optional additionalInformation = default; + Optional duration = default; + Optional impactType = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id"u8)) + { + id = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + type = new ResourceType(property.Value.GetString()); + continue; + } + if (property.NameEquals("systemData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("eventType"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + eventType = new EventTypeValue(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("eventSource"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + eventSource = new EventSourceValue(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("status"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + status = new EventStatusValue(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("title"u8)) + { + title = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("summary"u8)) + { + summary = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("header"u8)) + { + header = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("level"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + level = new LevelValue(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("eventLevel"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + eventLevel = new EventLevelValue(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("externalIncidentId"u8)) + { + externalIncidentId = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("article"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + article = EventPropertiesArticle.DeserializeEventPropertiesArticle(property0.Value); + continue; + } + if (property0.NameEquals("links"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(Link.DeserializeLink(item)); + } + links = array; + continue; + } + if (property0.NameEquals("impactStartTime"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + impactStartTime = property0.Value.GetDateTimeOffset("O"); + continue; + } + if (property0.NameEquals("impactMitigationTime"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + impactMitigationTime = property0.Value.GetDateTimeOffset("O"); + continue; + } + if (property0.NameEquals("impact"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(Models.Impact.DeserializeImpact(item)); + } + impact = array; + continue; + } + if (property0.NameEquals("recommendedActions"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + recommendedActions = EventPropertiesRecommendedActions.DeserializeEventPropertiesRecommendedActions(property0.Value); + continue; + } + if (property0.NameEquals("faqs"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(Faq.DeserializeFaq(item)); + } + faqs = array; + continue; + } + if (property0.NameEquals("isHIR"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + isHIR = property0.Value.GetBoolean(); + continue; + } + if (property0.NameEquals("enableMicrosoftSupport"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + enableMicrosoftSupport = property0.Value.GetBoolean(); + continue; + } + if (property0.NameEquals("description"u8)) + { + description = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("platformInitiated"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + platformInitiated = property0.Value.GetBoolean(); + continue; + } + if (property0.NameEquals("enableChatWithUs"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + enableChatWithUs = property0.Value.GetBoolean(); + continue; + } + if (property0.NameEquals("priority"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + priority = property0.Value.GetInt32(); + continue; + } + if (property0.NameEquals("lastUpdateTime"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + lastUpdateTime = property0.Value.GetDateTimeOffset("O"); + continue; + } + if (property0.NameEquals("hirStage"u8)) + { + hirStage = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("additionalInformation"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + additionalInformation = EventPropertiesAdditionalInformation.DeserializeEventPropertiesAdditionalInformation(property0.Value); + continue; + } + if (property0.NameEquals("duration"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + duration = property0.Value.GetInt32(); + continue; + } + if (property0.NameEquals("impactType"u8)) + { + impactType = property0.Value.GetString(); + continue; + } + } + continue; + } + } + return new EventData(id, name, type, systemData.Value, Optional.ToNullable(eventType), Optional.ToNullable(eventSource), Optional.ToNullable(status), title.Value, summary.Value, header.Value, Optional.ToNullable(level), Optional.ToNullable(eventLevel), externalIncidentId.Value, article.Value, Optional.ToList(links), Optional.ToNullable(impactStartTime), Optional.ToNullable(impactMitigationTime), Optional.ToList(impact), recommendedActions.Value, Optional.ToList(faqs), Optional.ToNullable(isHIR), Optional.ToNullable(enableMicrosoftSupport), description.Value, Optional.ToNullable(platformInitiated), Optional.ToNullable(enableChatWithUs), Optional.ToNullable(priority), Optional.ToNullable(lastUpdateTime), hirStage.Value, additionalInformation.Value, Optional.ToNullable(duration), impactType.Value); + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventImpactedResourceData.Serialization.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventImpactedResourceData.Serialization.cs new file mode 100644 index 0000000000000..cec919895928b --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventImpactedResourceData.Serialization.cs @@ -0,0 +1,101 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.ResourceHealth.Models; + +namespace Azure.ResourceManager.ResourceHealth +{ + public partial class EventImpactedResourceData + { + internal static EventImpactedResourceData DeserializeEventImpactedResourceData(JsonElement element) + { + ResourceIdentifier id = default; + string name = default; + ResourceType type = default; + Optional systemData = default; + Optional targetResourceType = default; + Optional targetResourceId = default; + Optional targetRegion = default; + Optional> info = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id"u8)) + { + id = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + type = new ResourceType(property.Value.GetString()); + continue; + } + if (property.NameEquals("systemData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("targetResourceType"u8)) + { + targetResourceType = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("targetResourceId"u8)) + { + targetResourceId = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("targetRegion"u8)) + { + targetRegion = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("info"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(KeyValueItem.DeserializeKeyValueItem(item)); + } + info = array; + continue; + } + } + continue; + } + } + return new EventImpactedResourceData(id, name, type, systemData.Value, targetResourceType.Value, targetResourceId.Value, targetRegion.Value, Optional.ToList(info)); + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventImpactedResourceListResult.Serialization.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventImpactedResourceListResult.Serialization.cs new file mode 100644 index 0000000000000..1e1619ffd41fa --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventImpactedResourceListResult.Serialization.cs @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.ResourceHealth; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + internal partial class EventImpactedResourceListResult + { + internal static EventImpactedResourceListResult DeserializeEventImpactedResourceListResult(JsonElement element) + { + IReadOnlyList value = default; + Optional nextLink = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value"u8)) + { + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(EventImpactedResourceData.DeserializeEventImpactedResourceData(item)); + } + value = array; + continue; + } + if (property.NameEquals("nextLink"u8)) + { + nextLink = property.Value.GetString(); + continue; + } + } + return new EventImpactedResourceListResult(value, nextLink.Value); + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventImpactedResourceListResult.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventImpactedResourceListResult.cs new file mode 100644 index 0000000000000..1e807ec17efd0 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventImpactedResourceListResult.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; +using Azure.Core; +using Azure.ResourceManager.ResourceHealth; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + /// The List of eventImpactedResources operation response. + internal partial class EventImpactedResourceListResult + { + /// Initializes a new instance of EventImpactedResourceListResult. + /// The list of eventImpactedResources. + /// is null. + internal EventImpactedResourceListResult(IEnumerable value) + { + Argument.AssertNotNull(value, nameof(value)); + + Value = value.ToList(); + } + + /// Initializes a new instance of EventImpactedResourceListResult. + /// The list of eventImpactedResources. + /// The URI to fetch the next page of events. Call ListNext() with this URI to fetch the next page of impacted resource. + internal EventImpactedResourceListResult(IReadOnlyList value, string nextLink) + { + Value = value; + NextLink = nextLink; + } + + /// The list of eventImpactedResources. + public IReadOnlyList Value { get; } + /// The URI to fetch the next page of events. Call ListNext() with this URI to fetch the next page of impacted resource. + public string NextLink { get; } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventLevelValue.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventLevelValue.cs new file mode 100644 index 0000000000000..b8704fb282d9a --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventLevelValue.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + /// Level of event. + public readonly partial struct EventLevelValue : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public EventLevelValue(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string CriticalValue = "Critical"; + private const string ErrorValue = "Error"; + private const string WarningValue = "Warning"; + private const string InformationalValue = "Informational"; + + /// Critical. + public static EventLevelValue Critical { get; } = new EventLevelValue(CriticalValue); + /// Error. + public static EventLevelValue Error { get; } = new EventLevelValue(ErrorValue); + /// Warning. + public static EventLevelValue Warning { get; } = new EventLevelValue(WarningValue); + /// Informational. + public static EventLevelValue Informational { get; } = new EventLevelValue(InformationalValue); + /// Determines if two values are the same. + public static bool operator ==(EventLevelValue left, EventLevelValue right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(EventLevelValue left, EventLevelValue right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator EventLevelValue(string value) => new EventLevelValue(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is EventLevelValue other && Equals(other); + /// + public bool Equals(EventLevelValue other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventPropertiesAdditionalInformation.Serialization.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventPropertiesAdditionalInformation.Serialization.cs new file mode 100644 index 0000000000000..649395914c741 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventPropertiesAdditionalInformation.Serialization.cs @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + internal partial class EventPropertiesAdditionalInformation + { + internal static EventPropertiesAdditionalInformation DeserializeEventPropertiesAdditionalInformation(JsonElement element) + { + Optional message = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("message"u8)) + { + message = property.Value.GetString(); + continue; + } + } + return new EventPropertiesAdditionalInformation(message.Value); + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventPropertiesAdditionalInformation.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventPropertiesAdditionalInformation.cs new file mode 100644 index 0000000000000..8ba31fc4023cc --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventPropertiesAdditionalInformation.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + /// Additional information. + internal partial class EventPropertiesAdditionalInformation + { + /// Initializes a new instance of EventPropertiesAdditionalInformation. + internal EventPropertiesAdditionalInformation() + { + } + + /// Initializes a new instance of EventPropertiesAdditionalInformation. + /// Additional information Message. + internal EventPropertiesAdditionalInformation(string message) + { + Message = message; + } + + /// Additional information Message. + public string Message { get; } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventPropertiesArticle.Serialization.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventPropertiesArticle.Serialization.cs new file mode 100644 index 0000000000000..bd1aec6339762 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventPropertiesArticle.Serialization.cs @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + internal partial class EventPropertiesArticle + { + internal static EventPropertiesArticle DeserializeEventPropertiesArticle(JsonElement element) + { + Optional articleContent = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("articleContent"u8)) + { + articleContent = property.Value.GetString(); + continue; + } + } + return new EventPropertiesArticle(articleContent.Value); + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventPropertiesArticle.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventPropertiesArticle.cs new file mode 100644 index 0000000000000..94b0574db3ac5 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventPropertiesArticle.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + /// Article of event. + internal partial class EventPropertiesArticle + { + /// Initializes a new instance of EventPropertiesArticle. + internal EventPropertiesArticle() + { + } + + /// Initializes a new instance of EventPropertiesArticle. + /// Article content of event. + internal EventPropertiesArticle(string articleContent) + { + ArticleContent = articleContent; + } + + /// Article content of event. + public string ArticleContent { get; } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventPropertiesRecommendedActions.Serialization.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventPropertiesRecommendedActions.Serialization.cs new file mode 100644 index 0000000000000..5b71bfffa925f --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventPropertiesRecommendedActions.Serialization.cs @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + public partial class EventPropertiesRecommendedActions + { + internal static EventPropertiesRecommendedActions DeserializeEventPropertiesRecommendedActions(JsonElement element) + { + Optional message = default; + Optional> actions = default; + Optional localeCode = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("message"u8)) + { + message = property.Value.GetString(); + continue; + } + if (property.NameEquals("actions"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(EventPropertiesRecommendedActionsItem.DeserializeEventPropertiesRecommendedActionsItem(item)); + } + actions = array; + continue; + } + if (property.NameEquals("localeCode"u8)) + { + localeCode = property.Value.GetString(); + continue; + } + } + return new EventPropertiesRecommendedActions(message.Value, Optional.ToList(actions), localeCode.Value); + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventPropertiesRecommendedActions.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventPropertiesRecommendedActions.cs new file mode 100644 index 0000000000000..496596b016e90 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventPropertiesRecommendedActions.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + /// Recommended actions of event. + public partial class EventPropertiesRecommendedActions + { + /// Initializes a new instance of EventPropertiesRecommendedActions. + internal EventPropertiesRecommendedActions() + { + Actions = new ChangeTrackingList(); + } + + /// Initializes a new instance of EventPropertiesRecommendedActions. + /// Recommended action title for the service health event. + /// Recommended actions for the service health event. + /// Recommended action locale for the service health event. + internal EventPropertiesRecommendedActions(string message, IReadOnlyList actions, string localeCode) + { + Message = message; + Actions = actions; + LocaleCode = localeCode; + } + + /// Recommended action title for the service health event. + public string Message { get; } + /// Recommended actions for the service health event. + public IReadOnlyList Actions { get; } + /// Recommended action locale for the service health event. + public string LocaleCode { get; } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventPropertiesRecommendedActionsItem.Serialization.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventPropertiesRecommendedActionsItem.Serialization.cs new file mode 100644 index 0000000000000..0ccd789df431d --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventPropertiesRecommendedActionsItem.Serialization.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + public partial class EventPropertiesRecommendedActionsItem + { + internal static EventPropertiesRecommendedActionsItem DeserializeEventPropertiesRecommendedActionsItem(JsonElement element) + { + Optional groupId = default; + Optional actionText = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("groupId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + groupId = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("actionText"u8)) + { + actionText = property.Value.GetString(); + continue; + } + } + return new EventPropertiesRecommendedActionsItem(Optional.ToNullable(groupId), actionText.Value); + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventPropertiesRecommendedActionsItem.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventPropertiesRecommendedActionsItem.cs new file mode 100644 index 0000000000000..6cae2087d3ba9 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventPropertiesRecommendedActionsItem.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + /// Recommended action for the service health event. + public partial class EventPropertiesRecommendedActionsItem + { + /// Initializes a new instance of EventPropertiesRecommendedActionsItem. + internal EventPropertiesRecommendedActionsItem() + { + } + + /// Initializes a new instance of EventPropertiesRecommendedActionsItem. + /// Recommended action group Id for the service health event. + /// Recommended action text. + internal EventPropertiesRecommendedActionsItem(int? groupId, string actionText) + { + GroupId = groupId; + ActionText = actionText; + } + + /// Recommended action group Id for the service health event. + public int? GroupId { get; } + /// Recommended action text. + public string ActionText { get; } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventSourceValue.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventSourceValue.cs new file mode 100644 index 0000000000000..8ce6d722eed09 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventSourceValue.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + /// Source of event. + public readonly partial struct EventSourceValue : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public EventSourceValue(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string ResourceHealthValue = "ResourceHealth"; + private const string ServiceHealthValue = "ServiceHealth"; + + /// ResourceHealth. + public static EventSourceValue ResourceHealth { get; } = new EventSourceValue(ResourceHealthValue); + /// ServiceHealth. + public static EventSourceValue ServiceHealth { get; } = new EventSourceValue(ServiceHealthValue); + /// Determines if two values are the same. + public static bool operator ==(EventSourceValue left, EventSourceValue right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(EventSourceValue left, EventSourceValue right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator EventSourceValue(string value) => new EventSourceValue(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is EventSourceValue other && Equals(other); + /// + public bool Equals(EventSourceValue other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventStatusValue.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventStatusValue.cs new file mode 100644 index 0000000000000..2b9a7f1bafe10 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventStatusValue.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + /// Current status of event. + public readonly partial struct EventStatusValue : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public EventStatusValue(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string ActiveValue = "Active"; + private const string ResolvedValue = "Resolved"; + + /// Active. + public static EventStatusValue Active { get; } = new EventStatusValue(ActiveValue); + /// Resolved. + public static EventStatusValue Resolved { get; } = new EventStatusValue(ResolvedValue); + /// Determines if two values are the same. + public static bool operator ==(EventStatusValue left, EventStatusValue right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(EventStatusValue left, EventStatusValue right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator EventStatusValue(string value) => new EventStatusValue(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is EventStatusValue other && Equals(other); + /// + public bool Equals(EventStatusValue other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventTypeValue.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventTypeValue.cs new file mode 100644 index 0000000000000..19b71741907fb --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/EventTypeValue.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + /// Type of event. + public readonly partial struct EventTypeValue : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public EventTypeValue(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string ServiceIssueValue = "ServiceIssue"; + private const string PlannedMaintenanceValue = "PlannedMaintenance"; + private const string HealthAdvisoryValue = "HealthAdvisory"; + private const string RCAValue = "RCA"; + private const string EmergingIssuesValue = "EmergingIssues"; + private const string SecurityAdvisoryValue = "SecurityAdvisory"; + + /// ServiceIssue. + public static EventTypeValue ServiceIssue { get; } = new EventTypeValue(ServiceIssueValue); + /// PlannedMaintenance. + public static EventTypeValue PlannedMaintenance { get; } = new EventTypeValue(PlannedMaintenanceValue); + /// HealthAdvisory. + public static EventTypeValue HealthAdvisory { get; } = new EventTypeValue(HealthAdvisoryValue); + /// RCA. + public static EventTypeValue RCA { get; } = new EventTypeValue(RCAValue); + /// EmergingIssues. + public static EventTypeValue EmergingIssues { get; } = new EventTypeValue(EmergingIssuesValue); + /// SecurityAdvisory. + public static EventTypeValue SecurityAdvisory { get; } = new EventTypeValue(SecurityAdvisoryValue); + /// Determines if two values are the same. + public static bool operator ==(EventTypeValue left, EventTypeValue right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(EventTypeValue left, EventTypeValue right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator EventTypeValue(string value) => new EventTypeValue(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is EventTypeValue other && Equals(other); + /// + public bool Equals(EventTypeValue other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/Events.Serialization.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/Events.Serialization.cs new file mode 100644 index 0000000000000..f363841e00a00 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/Events.Serialization.cs @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.ResourceHealth; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + internal partial class Events + { + internal static Events DeserializeEvents(JsonElement element) + { + IReadOnlyList value = default; + Optional nextLink = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value"u8)) + { + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(EventData.DeserializeEventData(item)); + } + value = array; + continue; + } + if (property.NameEquals("nextLink"u8)) + { + nextLink = property.Value.GetString(); + continue; + } + } + return new Events(value, nextLink.Value); + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/Events.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/Events.cs new file mode 100644 index 0000000000000..6b38beee33911 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/Events.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; +using Azure.Core; +using Azure.ResourceManager.ResourceHealth; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + /// The List events operation response. + internal partial class Events + { + /// Initializes a new instance of Events. + /// The list of event. + /// is null. + internal Events(IEnumerable value) + { + Argument.AssertNotNull(value, nameof(value)); + + Value = value.ToList(); + } + + /// Initializes a new instance of Events. + /// The list of event. + /// The URI to fetch the next page of events. Call ListNext() with this URI to fetch the next page of events. + internal Events(IReadOnlyList value, string nextLink) + { + Value = value; + NextLink = nextLink; + } + + /// The list of event. + public IReadOnlyList Value { get; } + /// The URI to fetch the next page of events. Call ListNext() with this URI to fetch the next page of events. + public string NextLink { get; } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/Faq.Serialization.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/Faq.Serialization.cs new file mode 100644 index 0000000000000..d303501e7a8f1 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/Faq.Serialization.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + public partial class Faq + { + internal static Faq DeserializeFaq(JsonElement element) + { + Optional question = default; + Optional answer = default; + Optional localeCode = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("question"u8)) + { + question = property.Value.GetString(); + continue; + } + if (property.NameEquals("answer"u8)) + { + answer = property.Value.GetString(); + continue; + } + if (property.NameEquals("localeCode"u8)) + { + localeCode = property.Value.GetString(); + continue; + } + } + return new Faq(question.Value, answer.Value, localeCode.Value); + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/Faq.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/Faq.cs new file mode 100644 index 0000000000000..64c5a1f041290 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/Faq.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + /// Frequently asked question for the service health event. + public partial class Faq + { + /// Initializes a new instance of Faq. + internal Faq() + { + } + + /// Initializes a new instance of Faq. + /// FAQ question for the service health event. + /// FAQ answer for the service health event. + /// FAQ locale for the service health event. + internal Faq(string question, string answer, string localeCode) + { + Question = question; + Answer = answer; + LocaleCode = localeCode; + } + + /// FAQ question for the service health event. + public string Question { get; } + /// FAQ answer for the service health event. + public string Answer { get; } + /// FAQ locale for the service health event. + public string LocaleCode { get; } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/Impact.Serialization.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/Impact.Serialization.cs new file mode 100644 index 0000000000000..28d94ba2f4713 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/Impact.Serialization.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + public partial class Impact + { + internal static Impact DeserializeImpact(JsonElement element) + { + Optional impactedService = default; + Optional> impactedRegions = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("impactedService"u8)) + { + impactedService = property.Value.GetString(); + continue; + } + if (property.NameEquals("impactedRegions"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(ImpactedServiceRegion.DeserializeImpactedServiceRegion(item)); + } + impactedRegions = array; + continue; + } + } + return new Impact(impactedService.Value, Optional.ToList(impactedRegions)); + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/Impact.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/Impact.cs new file mode 100644 index 0000000000000..82e07bd483175 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/Impact.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + /// Azure service impacted by the service health event. + public partial class Impact + { + /// Initializes a new instance of Impact. + internal Impact() + { + ImpactedRegions = new ChangeTrackingList(); + } + + /// Initializes a new instance of Impact. + /// Impacted service name. + /// List regions impacted by the service health event. + internal Impact(string impactedService, IReadOnlyList impactedRegions) + { + ImpactedService = impactedService; + ImpactedRegions = impactedRegions; + } + + /// Impacted service name. + public string ImpactedService { get; } + /// List regions impacted by the service health event. + public IReadOnlyList ImpactedRegions { get; } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ImpactedRegion.Serialization.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ImpactedRegion.Serialization.cs new file mode 100644 index 0000000000000..29049dc8e8621 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ImpactedRegion.Serialization.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + public partial class ImpactedRegion + { + internal static ImpactedRegion DeserializeImpactedRegion(JsonElement element) + { + Optional id = default; + Optional name = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id"u8)) + { + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + } + return new ImpactedRegion(id.Value, name.Value); + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ImpactedRegion.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ImpactedRegion.cs new file mode 100644 index 0000000000000..a227359f87432 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ImpactedRegion.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + /// Object of impacted region. + public partial class ImpactedRegion + { + /// Initializes a new instance of ImpactedRegion. + internal ImpactedRegion() + { + } + + /// Initializes a new instance of ImpactedRegion. + /// The impacted region id. + /// The impacted region name. + internal ImpactedRegion(string id, string name) + { + Id = id; + Name = name; + } + + /// The impacted region id. + public string Id { get; } + /// The impacted region name. + public string Name { get; } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ImpactedServiceRegion.Serialization.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ImpactedServiceRegion.Serialization.cs new file mode 100644 index 0000000000000..ccde3be67ab31 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ImpactedServiceRegion.Serialization.cs @@ -0,0 +1,101 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + public partial class ImpactedServiceRegion + { + internal static ImpactedServiceRegion DeserializeImpactedServiceRegion(JsonElement element) + { + Optional impactedRegion = default; + Optional status = default; + Optional> impactedSubscriptions = default; + Optional> impactedTenants = default; + Optional lastUpdateTime = default; + Optional> updates = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("impactedRegion"u8)) + { + impactedRegion = property.Value.GetString(); + continue; + } + if (property.NameEquals("status"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + status = new EventStatusValue(property.Value.GetString()); + continue; + } + if (property.NameEquals("impactedSubscriptions"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + impactedSubscriptions = array; + continue; + } + if (property.NameEquals("impactedTenants"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + impactedTenants = array; + continue; + } + if (property.NameEquals("lastUpdateTime"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + lastUpdateTime = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("updates"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(Update.DeserializeUpdate(item)); + } + updates = array; + continue; + } + } + return new ImpactedServiceRegion(impactedRegion.Value, Optional.ToNullable(status), Optional.ToList(impactedSubscriptions), Optional.ToList(impactedTenants), Optional.ToNullable(lastUpdateTime), Optional.ToList(updates)); + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ImpactedServiceRegion.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ImpactedServiceRegion.cs new file mode 100644 index 0000000000000..929a4b4f4e07c --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ImpactedServiceRegion.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + /// Azure region impacted by the service health event. + public partial class ImpactedServiceRegion + { + /// Initializes a new instance of ImpactedServiceRegion. + internal ImpactedServiceRegion() + { + ImpactedSubscriptions = new ChangeTrackingList(); + ImpactedTenants = new ChangeTrackingList(); + Updates = new ChangeTrackingList(); + } + + /// Initializes a new instance of ImpactedServiceRegion. + /// Impacted region name. + /// Current status of event in the region. + /// List subscription impacted by the service health event. + /// List tenant impacted by the service health event. + /// It provides the Timestamp for when the last update for the service health event. + /// List of updates for given service health event. + internal ImpactedServiceRegion(string impactedRegion, EventStatusValue? status, IReadOnlyList impactedSubscriptions, IReadOnlyList impactedTenants, DateTimeOffset? lastUpdateOn, IReadOnlyList updates) + { + ImpactedRegion = impactedRegion; + Status = status; + ImpactedSubscriptions = impactedSubscriptions; + ImpactedTenants = impactedTenants; + LastUpdateOn = lastUpdateOn; + Updates = updates; + } + + /// Impacted region name. + public string ImpactedRegion { get; } + /// Current status of event in the region. + public EventStatusValue? Status { get; } + /// List subscription impacted by the service health event. + public IReadOnlyList ImpactedSubscriptions { get; } + /// List tenant impacted by the service health event. + public IReadOnlyList ImpactedTenants { get; } + /// It provides the Timestamp for when the last update for the service health event. + public DateTimeOffset? LastUpdateOn { get; } + /// List of updates for given service health event. + public IReadOnlyList Updates { get; } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/IssueNameParameter.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/IssueNameParameter.cs new file mode 100644 index 0000000000000..122daa0a37e96 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/IssueNameParameter.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + /// The IssueNameParameter. + public readonly partial struct IssueNameParameter : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public IssueNameParameter(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string DefaultValue = "default"; + + /// default. + public static IssueNameParameter Default { get; } = new IssueNameParameter(DefaultValue); + /// Determines if two values are the same. + public static bool operator ==(IssueNameParameter left, IssueNameParameter right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(IssueNameParameter left, IssueNameParameter right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator IssueNameParameter(string value) => new IssueNameParameter(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is IssueNameParameter other && Equals(other); + /// + public bool Equals(IssueNameParameter other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/KeyValueItem.Serialization.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/KeyValueItem.Serialization.cs new file mode 100644 index 0000000000000..fce3af26d0129 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/KeyValueItem.Serialization.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + public partial class KeyValueItem + { + internal static KeyValueItem DeserializeKeyValueItem(JsonElement element) + { + Optional key = default; + Optional value = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("key"u8)) + { + key = property.Value.GetString(); + continue; + } + if (property.NameEquals("value"u8)) + { + value = property.Value.GetString(); + continue; + } + } + return new KeyValueItem(key.Value, value.Value); + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/KeyValueItem.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/KeyValueItem.cs new file mode 100644 index 0000000000000..53f142585dd35 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/KeyValueItem.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + /// Key value tuple. + public partial class KeyValueItem + { + /// Initializes a new instance of KeyValueItem. + internal KeyValueItem() + { + } + + /// Initializes a new instance of KeyValueItem. + /// Key of tuple. + /// Value of tuple. + internal KeyValueItem(string key, string value) + { + Key = key; + Value = value; + } + + /// Key of tuple. + public string Key { get; } + /// Value of tuple. + public string Value { get; } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/LevelValue.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/LevelValue.cs new file mode 100644 index 0000000000000..d013f76fad2c6 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/LevelValue.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + /// Level of insight. + public readonly partial struct LevelValue : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public LevelValue(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string CriticalValue = "Critical"; + private const string WarningValue = "Warning"; + + /// Critical. + public static LevelValue Critical { get; } = new LevelValue(CriticalValue); + /// Warning. + public static LevelValue Warning { get; } = new LevelValue(WarningValue); + /// Determines if two values are the same. + public static bool operator ==(LevelValue left, LevelValue right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(LevelValue left, LevelValue right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator LevelValue(string value) => new LevelValue(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is LevelValue other && Equals(other); + /// + public bool Equals(LevelValue other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/Link.Serialization.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/Link.Serialization.cs new file mode 100644 index 0000000000000..5641e193d6149 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/Link.Serialization.cs @@ -0,0 +1,69 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + public partial class Link + { + internal static Link DeserializeLink(JsonElement element) + { + Optional type = default; + Optional displayText = default; + Optional extensionName = default; + Optional bladeName = default; + Optional parameters = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("type"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + type = new LinkTypeValue(property.Value.GetString()); + continue; + } + if (property.NameEquals("displayText"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + displayText = LinkDisplayText.DeserializeLinkDisplayText(property.Value); + continue; + } + if (property.NameEquals("extensionName"u8)) + { + extensionName = property.Value.GetString(); + continue; + } + if (property.NameEquals("bladeName"u8)) + { + bladeName = property.Value.GetString(); + continue; + } + if (property.NameEquals("parameters"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + parameters = BinaryData.FromString(property.Value.GetRawText()); + continue; + } + } + return new Link(Optional.ToNullable(type), displayText.Value, extensionName.Value, bladeName.Value, parameters.Value); + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/Link.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/Link.cs new file mode 100644 index 0000000000000..064113ebf81f1 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/Link.cs @@ -0,0 +1,75 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + /// Useful links for service health event. + public partial class Link + { + /// Initializes a new instance of Link. + internal Link() + { + } + + /// Initializes a new instance of Link. + /// Type of link. + /// Display text of link. + /// It provides the name of portal extension to produce link for given service health event. + /// It provides the name of portal extension blade to produce link for given service health event. + /// It provides a map of parameter name and value for portal extension blade to produce lik for given service health event. + internal Link(LinkTypeValue? linkType, LinkDisplayText displayText, string extensionName, string bladeName, BinaryData parameters) + { + LinkType = linkType; + DisplayText = displayText; + ExtensionName = extensionName; + BladeName = bladeName; + Parameters = parameters; + } + + /// Type of link. + public LinkTypeValue? LinkType { get; } + /// Display text of link. + public LinkDisplayText DisplayText { get; } + /// It provides the name of portal extension to produce link for given service health event. + public string ExtensionName { get; } + /// It provides the name of portal extension blade to produce link for given service health event. + public string BladeName { get; } + /// + /// It provides a map of parameter name and value for portal extension blade to produce lik for given service health event. + /// + /// To assign an object to this property use . + /// + /// + /// To assign an already formated json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + public BinaryData Parameters { get; } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/LinkDisplayText.Serialization.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/LinkDisplayText.Serialization.cs new file mode 100644 index 0000000000000..9aed841c4bd64 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/LinkDisplayText.Serialization.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + public partial class LinkDisplayText + { + internal static LinkDisplayText DeserializeLinkDisplayText(JsonElement element) + { + Optional value = default; + Optional localizedValue = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value"u8)) + { + value = property.Value.GetString(); + continue; + } + if (property.NameEquals("localizedValue"u8)) + { + localizedValue = property.Value.GetString(); + continue; + } + } + return new LinkDisplayText(value.Value, localizedValue.Value); + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/LinkDisplayText.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/LinkDisplayText.cs new file mode 100644 index 0000000000000..78b4d41c821c4 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/LinkDisplayText.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + /// Display text of link. + public partial class LinkDisplayText + { + /// Initializes a new instance of LinkDisplayText. + internal LinkDisplayText() + { + } + + /// Initializes a new instance of LinkDisplayText. + /// Display text of link. + /// Localized display text of link. + internal LinkDisplayText(string value, string localizedValue) + { + Value = value; + LocalizedValue = localizedValue; + } + + /// Display text of link. + public string Value { get; } + /// Localized display text of link. + public string LocalizedValue { get; } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/LinkTypeValue.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/LinkTypeValue.cs new file mode 100644 index 0000000000000..f1ffffead657b --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/LinkTypeValue.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + /// Type of link. + public readonly partial struct LinkTypeValue : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public LinkTypeValue(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string ButtonValue = "Button"; + private const string HyperlinkValue = "Hyperlink"; + + /// Button. + public static LinkTypeValue Button { get; } = new LinkTypeValue(ButtonValue); + /// Hyperlink. + public static LinkTypeValue Hyperlink { get; } = new LinkTypeValue(HyperlinkValue); + /// Determines if two values are the same. + public static bool operator ==(LinkTypeValue left, LinkTypeValue right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(LinkTypeValue left, LinkTypeValue right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator LinkTypeValue(string value) => new LinkTypeValue(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is LinkTypeValue other && Equals(other); + /// + public bool Equals(LinkTypeValue other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/MetadataEntityData.Serialization.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/MetadataEntityData.Serialization.cs new file mode 100644 index 0000000000000..6dd47d6705b7b --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/MetadataEntityData.Serialization.cs @@ -0,0 +1,121 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.ResourceHealth.Models; + +namespace Azure.ResourceManager.ResourceHealth +{ + public partial class MetadataEntityData + { + internal static MetadataEntityData DeserializeMetadataEntityData(JsonElement element) + { + ResourceIdentifier id = default; + string name = default; + ResourceType type = default; + Optional systemData = default; + Optional displayName = default; + Optional> dependsOn = default; + Optional> applicableScenarios = default; + Optional> supportedValues = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id"u8)) + { + id = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + type = new ResourceType(property.Value.GetString()); + continue; + } + if (property.NameEquals("systemData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("displayName"u8)) + { + displayName = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("dependsOn"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + dependsOn = array; + continue; + } + if (property0.NameEquals("applicableScenarios"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(new Scenario(item.GetString())); + } + applicableScenarios = array; + continue; + } + if (property0.NameEquals("supportedValues"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(MetadataSupportedValueDetail.DeserializeMetadataSupportedValueDetail(item)); + } + supportedValues = array; + continue; + } + } + continue; + } + } + return new MetadataEntityData(id, name, type, systemData.Value, displayName.Value, Optional.ToList(dependsOn), Optional.ToList(applicableScenarios), Optional.ToList(supportedValues)); + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/MetadataEntityListResult.Serialization.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/MetadataEntityListResult.Serialization.cs new file mode 100644 index 0000000000000..34fdbe3860a1c --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/MetadataEntityListResult.Serialization.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.ResourceHealth; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + internal partial class MetadataEntityListResult + { + internal static MetadataEntityListResult DeserializeMetadataEntityListResult(JsonElement element) + { + Optional> value = default; + Optional nextLink = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(MetadataEntityData.DeserializeMetadataEntityData(item)); + } + value = array; + continue; + } + if (property.NameEquals("nextLink"u8)) + { + nextLink = property.Value.GetString(); + continue; + } + } + return new MetadataEntityListResult(Optional.ToList(value), nextLink.Value); + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/MetadataEntityListResult.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/MetadataEntityListResult.cs new file mode 100644 index 0000000000000..dcb65884cf940 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/MetadataEntityListResult.cs @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.ResourceHealth; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + /// The list of metadata entities. + internal partial class MetadataEntityListResult + { + /// Initializes a new instance of MetadataEntityListResult. + internal MetadataEntityListResult() + { + Value = new ChangeTrackingList(); + } + + /// Initializes a new instance of MetadataEntityListResult. + /// The list of metadata entities. + /// The link used to get the next page of metadata. + internal MetadataEntityListResult(IReadOnlyList value, string nextLink) + { + Value = value; + NextLink = nextLink; + } + + /// The list of metadata entities. + public IReadOnlyList Value { get; } + /// The link used to get the next page of metadata. + public string NextLink { get; } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/MetadataSupportedValueDetail.Serialization.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/MetadataSupportedValueDetail.Serialization.cs new file mode 100644 index 0000000000000..4e4dae5b975f9 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/MetadataSupportedValueDetail.Serialization.cs @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + public partial class MetadataSupportedValueDetail + { + internal static MetadataSupportedValueDetail DeserializeMetadataSupportedValueDetail(JsonElement element) + { + Optional id = default; + Optional displayName = default; + Optional> resourceTypes = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id"u8)) + { + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("displayName"u8)) + { + displayName = property.Value.GetString(); + continue; + } + if (property.NameEquals("resourceTypes"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + resourceTypes = array; + continue; + } + } + return new MetadataSupportedValueDetail(id.Value, displayName.Value, Optional.ToList(resourceTypes)); + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/MetadataSupportedValueDetail.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/MetadataSupportedValueDetail.cs new file mode 100644 index 0000000000000..6854cfe61153b --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/MetadataSupportedValueDetail.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + /// The metadata supported value detail. + public partial class MetadataSupportedValueDetail + { + /// Initializes a new instance of MetadataSupportedValueDetail. + internal MetadataSupportedValueDetail() + { + ResourceTypes = new ChangeTrackingList(); + } + + /// Initializes a new instance of MetadataSupportedValueDetail. + /// The id. + /// The display name. + /// The list of associated resource types. + internal MetadataSupportedValueDetail(string id, string displayName, IReadOnlyList resourceTypes) + { + Id = id; + DisplayName = displayName; + ResourceTypes = resourceTypes; + } + + /// The id. + public string Id { get; } + /// The display name. + public string DisplayName { get; } + /// The list of associated resource types. + public IReadOnlyList ResourceTypes { get; } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ReasonChronicityType.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ReasonChronicityType.cs new file mode 100644 index 0000000000000..0974ed010c322 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ReasonChronicityType.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + /// Chronicity of the availability transition. + public readonly partial struct ReasonChronicityType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ReasonChronicityType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string TransientValue = "Transient"; + private const string PersistentValue = "Persistent"; + + /// Transient. + public static ReasonChronicityType Transient { get; } = new ReasonChronicityType(TransientValue); + /// Persistent. + public static ReasonChronicityType Persistent { get; } = new ReasonChronicityType(PersistentValue); + /// Determines if two values are the same. + public static bool operator ==(ReasonChronicityType left, ReasonChronicityType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ReasonChronicityType left, ReasonChronicityType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator ReasonChronicityType(string value) => new ReasonChronicityType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ReasonChronicityType other && Equals(other); + /// + public bool Equals(ReasonChronicityType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/RecommendedAction.Serialization.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/RecommendedAction.Serialization.cs new file mode 100644 index 0000000000000..62ad0db2be5e2 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/RecommendedAction.Serialization.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + public partial class RecommendedAction + { + internal static RecommendedAction DeserializeRecommendedAction(JsonElement element) + { + Optional action = default; + Optional actionUrl = default; + Optional actionUrlText = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("action"u8)) + { + action = property.Value.GetString(); + continue; + } + if (property.NameEquals("actionUrl"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + actionUrl = null; + continue; + } + actionUrl = new Uri(property.Value.GetString()); + continue; + } + if (property.NameEquals("actionUrlText"u8)) + { + actionUrlText = property.Value.GetString(); + continue; + } + } + return new RecommendedAction(action.Value, actionUrl.Value, actionUrlText.Value); + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/RecommendedAction.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/RecommendedAction.cs new file mode 100644 index 0000000000000..9d25e912fa154 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/RecommendedAction.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + /// Lists actions the user can take based on the current availabilityState of the resource. + public partial class RecommendedAction + { + /// Initializes a new instance of RecommendedAction. + internal RecommendedAction() + { + } + + /// Initializes a new instance of RecommendedAction. + /// Recommended action. + /// Link to the action. + /// Substring of action, it describes which text should host the action url. + internal RecommendedAction(string action, Uri actionUri, string actionUrlText) + { + Action = action; + ActionUri = actionUri; + ActionUrlText = actionUrlText; + } + + /// Recommended action. + public string Action { get; } + /// Link to the action. + public Uri ActionUri { get; } + /// Substring of action, it describes which text should host the action url. + public string ActionUrlText { get; } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/Scenario.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/Scenario.cs new file mode 100644 index 0000000000000..74a62a769f167 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/Scenario.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + /// The Scenario. + public readonly partial struct Scenario : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public Scenario(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string AlertsValue = "Alerts"; + + /// Alerts. + public static Scenario Alerts { get; } = new Scenario(AlertsValue); + /// Determines if two values are the same. + public static bool operator ==(Scenario left, Scenario right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(Scenario left, Scenario right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator Scenario(string value) => new Scenario(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is Scenario other && Equals(other); + /// + public bool Equals(Scenario other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ServiceImpactingEvent.Serialization.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ServiceImpactingEvent.Serialization.cs new file mode 100644 index 0000000000000..fb6f708fcb46b --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ServiceImpactingEvent.Serialization.cs @@ -0,0 +1,74 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + public partial class ServiceImpactingEvent + { + internal static ServiceImpactingEvent DeserializeServiceImpactingEvent(JsonElement element) + { + Optional eventStartTime = default; + Optional eventStatusLastModifiedTime = default; + Optional correlationId = default; + Optional status = default; + Optional incidentProperties = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("eventStartTime"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + eventStartTime = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("eventStatusLastModifiedTime"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + eventStatusLastModifiedTime = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("correlationId"u8)) + { + correlationId = property.Value.GetString(); + continue; + } + if (property.NameEquals("status"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + status = ServiceImpactingEventStatus.DeserializeServiceImpactingEventStatus(property.Value); + continue; + } + if (property.NameEquals("incidentProperties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + incidentProperties = ServiceImpactingEventIncidentProperties.DeserializeServiceImpactingEventIncidentProperties(property.Value); + continue; + } + } + return new ServiceImpactingEvent(Optional.ToNullable(eventStartTime), Optional.ToNullable(eventStatusLastModifiedTime), correlationId.Value, status.Value, incidentProperties.Value); + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ServiceImpactingEvent.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ServiceImpactingEvent.cs new file mode 100644 index 0000000000000..db34ca9d1b904 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ServiceImpactingEvent.cs @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + /// Lists the service impacting events that may be affecting the health of the resource. + public partial class ServiceImpactingEvent + { + /// Initializes a new instance of ServiceImpactingEvent. + internal ServiceImpactingEvent() + { + } + + /// Initializes a new instance of ServiceImpactingEvent. + /// Timestamp for when the event started. + /// Timestamp for when event was submitted/detected. + /// Correlation id for the event. + /// Status of the service impacting event. + /// Properties of the service impacting event. + internal ServiceImpactingEvent(DateTimeOffset? eventStartOn, DateTimeOffset? eventStatusLastModifiedOn, string correlationId, ServiceImpactingEventStatus status, ServiceImpactingEventIncidentProperties incidentProperties) + { + EventStartOn = eventStartOn; + EventStatusLastModifiedOn = eventStatusLastModifiedOn; + CorrelationId = correlationId; + Status = status; + IncidentProperties = incidentProperties; + } + + /// Timestamp for when the event started. + public DateTimeOffset? EventStartOn { get; } + /// Timestamp for when event was submitted/detected. + public DateTimeOffset? EventStatusLastModifiedOn { get; } + /// Correlation id for the event. + public string CorrelationId { get; } + /// Status of the service impacting event. + internal ServiceImpactingEventStatus Status { get; } + /// Current status of the event. + public string StatusValue + { + get => Status?.Value; + } + + /// Properties of the service impacting event. + public ServiceImpactingEventIncidentProperties IncidentProperties { get; } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ServiceImpactingEventIncidentProperties.Serialization.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ServiceImpactingEventIncidentProperties.Serialization.cs new file mode 100644 index 0000000000000..707631efa00b0 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ServiceImpactingEventIncidentProperties.Serialization.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + public partial class ServiceImpactingEventIncidentProperties + { + internal static ServiceImpactingEventIncidentProperties DeserializeServiceImpactingEventIncidentProperties(JsonElement element) + { + Optional title = default; + Optional service = default; + Optional region = default; + Optional incidentType = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("title"u8)) + { + title = property.Value.GetString(); + continue; + } + if (property.NameEquals("service"u8)) + { + service = property.Value.GetString(); + continue; + } + if (property.NameEquals("region"u8)) + { + region = property.Value.GetString(); + continue; + } + if (property.NameEquals("incidentType"u8)) + { + incidentType = property.Value.GetString(); + continue; + } + } + return new ServiceImpactingEventIncidentProperties(title.Value, service.Value, region.Value, incidentType.Value); + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ServiceImpactingEventIncidentProperties.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ServiceImpactingEventIncidentProperties.cs new file mode 100644 index 0000000000000..301d54f4f2cb6 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ServiceImpactingEventIncidentProperties.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + /// Properties of the service impacting event. + public partial class ServiceImpactingEventIncidentProperties + { + /// Initializes a new instance of ServiceImpactingEventIncidentProperties. + internal ServiceImpactingEventIncidentProperties() + { + } + + /// Initializes a new instance of ServiceImpactingEventIncidentProperties. + /// Title of the incident. + /// Service impacted by the event. + /// Region impacted by the event. + /// Type of Event. + internal ServiceImpactingEventIncidentProperties(string title, string service, string region, string incidentType) + { + Title = title; + Service = service; + Region = region; + IncidentType = incidentType; + } + + /// Title of the incident. + public string Title { get; } + /// Service impacted by the event. + public string Service { get; } + /// Region impacted by the event. + public string Region { get; } + /// Type of Event. + public string IncidentType { get; } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ServiceImpactingEventStatus.Serialization.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ServiceImpactingEventStatus.Serialization.cs new file mode 100644 index 0000000000000..7050b0a6b033b --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ServiceImpactingEventStatus.Serialization.cs @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + internal partial class ServiceImpactingEventStatus + { + internal static ServiceImpactingEventStatus DeserializeServiceImpactingEventStatus(JsonElement element) + { + Optional value = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value"u8)) + { + value = property.Value.GetString(); + continue; + } + } + return new ServiceImpactingEventStatus(value.Value); + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ServiceImpactingEventStatus.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ServiceImpactingEventStatus.cs new file mode 100644 index 0000000000000..88286c5addbc4 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/ServiceImpactingEventStatus.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + /// Status of the service impacting event. + internal partial class ServiceImpactingEventStatus + { + /// Initializes a new instance of ServiceImpactingEventStatus. + internal ServiceImpactingEventStatus() + { + } + + /// Initializes a new instance of ServiceImpactingEventStatus. + /// Current status of the event. + internal ServiceImpactingEventStatus(string value) + { + Value = value; + } + + /// Current status of the event. + public string Value { get; } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/SeverityValue.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/SeverityValue.cs new file mode 100644 index 0000000000000..feb96bedc0b15 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/SeverityValue.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + /// The severity level of this active event. + public readonly partial struct SeverityValue : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public SeverityValue(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string InformationValue = "Information"; + private const string WarningValue = "Warning"; + private const string ErrorValue = "Error"; + + /// Information. + public static SeverityValue Information { get; } = new SeverityValue(InformationValue); + /// Warning. + public static SeverityValue Warning { get; } = new SeverityValue(WarningValue); + /// Error. + public static SeverityValue Error { get; } = new SeverityValue(ErrorValue); + /// Determines if two values are the same. + public static bool operator ==(SeverityValue left, SeverityValue right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(SeverityValue left, SeverityValue right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator SeverityValue(string value) => new SeverityValue(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is SeverityValue other && Equals(other); + /// + public bool Equals(SeverityValue other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/StageValue.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/StageValue.cs new file mode 100644 index 0000000000000..d70548a820684 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/StageValue.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + /// The stage of this active event. + public readonly partial struct StageValue : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public StageValue(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string ActiveValue = "Active"; + private const string ResolveValue = "Resolve"; + private const string ArchivedValue = "Archived"; + + /// Active. + public static StageValue Active { get; } = new StageValue(ActiveValue); + /// Resolve. + public static StageValue Resolve { get; } = new StageValue(ResolveValue); + /// Archived. + public static StageValue Archived { get; } = new StageValue(ArchivedValue); + /// Determines if two values are the same. + public static bool operator ==(StageValue left, StageValue right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(StageValue left, StageValue right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator StageValue(string value) => new StageValue(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is StageValue other && Equals(other); + /// + public bool Equals(StageValue other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/StatusActiveEvent.Serialization.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/StatusActiveEvent.Serialization.cs new file mode 100644 index 0000000000000..99fc8b81d9100 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/StatusActiveEvent.Serialization.cs @@ -0,0 +1,120 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + public partial class StatusActiveEvent + { + internal static StatusActiveEvent DeserializeStatusActiveEvent(JsonElement element) + { + Optional title = default; + Optional description = default; + Optional trackingId = default; + Optional startTime = default; + Optional cloud = default; + Optional severity = default; + Optional stage = default; + Optional published = default; + Optional lastModifiedTime = default; + Optional> impacts = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("title"u8)) + { + title = property.Value.GetString(); + continue; + } + if (property.NameEquals("description"u8)) + { + description = property.Value.GetString(); + continue; + } + if (property.NameEquals("trackingId"u8)) + { + trackingId = property.Value.GetString(); + continue; + } + if (property.NameEquals("startTime"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + startTime = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("cloud"u8)) + { + cloud = property.Value.GetString(); + continue; + } + if (property.NameEquals("severity"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + severity = new SeverityValue(property.Value.GetString()); + continue; + } + if (property.NameEquals("stage"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + stage = new StageValue(property.Value.GetString()); + continue; + } + if (property.NameEquals("published"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + published = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("lastModifiedTime"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + lastModifiedTime = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("impacts"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(EmergingIssueImpact.DeserializeEmergingIssueImpact(item)); + } + impacts = array; + continue; + } + } + return new StatusActiveEvent(title.Value, description.Value, trackingId.Value, Optional.ToNullable(startTime), cloud.Value, Optional.ToNullable(severity), Optional.ToNullable(stage), Optional.ToNullable(published), Optional.ToNullable(lastModifiedTime), Optional.ToList(impacts)); + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/StatusActiveEvent.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/StatusActiveEvent.cs new file mode 100644 index 0000000000000..cc64e9175a25c --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/StatusActiveEvent.cs @@ -0,0 +1,69 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + /// Active event type of emerging issue. + public partial class StatusActiveEvent + { + /// Initializes a new instance of StatusActiveEvent. + internal StatusActiveEvent() + { + Impacts = new ChangeTrackingList(); + } + + /// Initializes a new instance of StatusActiveEvent. + /// The active event title. + /// The details of active event. + /// The tracking id of this active event. + /// The impact start time on this active event. + /// The cloud type of this active event. + /// The severity level of this active event. + /// The stage of this active event. + /// The boolean value of this active event if published or not. + /// The last time modified on this banner. + /// The list of emerging issues impacts. + internal StatusActiveEvent(string title, string description, string trackingId, DateTimeOffset? startOn, string cloud, SeverityValue? severity, StageValue? stage, bool? published, DateTimeOffset? lastModifiedOn, IReadOnlyList impacts) + { + Title = title; + Description = description; + TrackingId = trackingId; + StartOn = startOn; + Cloud = cloud; + Severity = severity; + Stage = stage; + Published = published; + LastModifiedOn = lastModifiedOn; + Impacts = impacts; + } + + /// The active event title. + public string Title { get; } + /// The details of active event. + public string Description { get; } + /// The tracking id of this active event. + public string TrackingId { get; } + /// The impact start time on this active event. + public DateTimeOffset? StartOn { get; } + /// The cloud type of this active event. + public string Cloud { get; } + /// The severity level of this active event. + public SeverityValue? Severity { get; } + /// The stage of this active event. + public StageValue? Stage { get; } + /// The boolean value of this active event if published or not. + public bool? Published { get; } + /// The last time modified on this banner. + public DateTimeOffset? LastModifiedOn { get; } + /// The list of emerging issues impacts. + public IReadOnlyList Impacts { get; } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/StatusBanner.Serialization.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/StatusBanner.Serialization.cs new file mode 100644 index 0000000000000..c55a6746f72e9 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/StatusBanner.Serialization.cs @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + public partial class StatusBanner + { + internal static StatusBanner DeserializeStatusBanner(JsonElement element) + { + Optional title = default; + Optional message = default; + Optional cloud = default; + Optional lastModifiedTime = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("title"u8)) + { + title = property.Value.GetString(); + continue; + } + if (property.NameEquals("message"u8)) + { + message = property.Value.GetString(); + continue; + } + if (property.NameEquals("cloud"u8)) + { + cloud = property.Value.GetString(); + continue; + } + if (property.NameEquals("lastModifiedTime"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + lastModifiedTime = property.Value.GetDateTimeOffset("O"); + continue; + } + } + return new StatusBanner(title.Value, message.Value, cloud.Value, Optional.ToNullable(lastModifiedTime)); + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/StatusBanner.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/StatusBanner.cs new file mode 100644 index 0000000000000..3bf4bb3ca1eb9 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/StatusBanner.cs @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + /// Banner type of emerging issue. + public partial class StatusBanner + { + /// Initializes a new instance of StatusBanner. + internal StatusBanner() + { + } + + /// Initializes a new instance of StatusBanner. + /// The banner title. + /// The details of banner. + /// The cloud type of this banner. + /// The last time modified on this banner. + internal StatusBanner(string title, string message, string cloud, DateTimeOffset? lastModifiedOn) + { + Title = title; + Message = message; + Cloud = cloud; + LastModifiedOn = lastModifiedOn; + } + + /// The banner title. + public string Title { get; } + /// The details of banner. + public string Message { get; } + /// The cloud type of this banner. + public string Cloud { get; } + /// The last time modified on this banner. + public DateTimeOffset? LastModifiedOn { get; } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/Update.Serialization.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/Update.Serialization.cs new file mode 100644 index 0000000000000..8f4a71f61aee4 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/Update.Serialization.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + public partial class Update + { + internal static Update DeserializeUpdate(JsonElement element) + { + Optional summary = default; + Optional updateDateTime = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("summary"u8)) + { + summary = property.Value.GetString(); + continue; + } + if (property.NameEquals("updateDateTime"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + updateDateTime = property.Value.GetDateTimeOffset("O"); + continue; + } + } + return new Update(summary.Value, Optional.ToNullable(updateDateTime)); + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/Update.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/Update.cs new file mode 100644 index 0000000000000..15c24fd627dbc --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Models/Update.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.ResourceHealth.Models +{ + /// Update for service health event. + public partial class Update + { + /// Initializes a new instance of Update. + internal Update() + { + } + + /// Initializes a new instance of Update. + /// Summary text for the given update for the service health event. + /// It provides the Timestamp for the given update for the service health event. + internal Update(string summary, DateTimeOffset? updateOn) + { + Summary = summary; + UpdateOn = updateOn; + } + + /// Summary text for the given update for the service health event. + public string Summary { get; } + /// It provides the Timestamp for the given update for the service health event. + public DateTimeOffset? UpdateOn { get; } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/ProviderConstants.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/ProviderConstants.cs new file mode 100644 index 0000000000000..56228ffa8ed3d --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/ProviderConstants.cs @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using Azure.Core.Pipeline; + +namespace Azure.ResourceManager.ResourceHealth +{ + internal static class ProviderConstants + { + public static string DefaultProviderNamespace { get; } = ClientDiagnostics.GetResourceProviderNamespace(typeof(ProviderConstants).Assembly); + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/AvailabilityStatusesRestOperations.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/AvailabilityStatusesRestOperations.cs new file mode 100644 index 0000000000000..f059be928d80a --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/AvailabilityStatusesRestOperations.cs @@ -0,0 +1,580 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.ResourceHealth.Models; + +namespace Azure.ResourceManager.ResourceHealth +{ + internal partial class AvailabilityStatusesRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of AvailabilityStatusesRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public AvailabilityStatusesRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2022-10-01-preview"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal HttpMessage CreateListBySubscriptionIdRequest(string subscriptionId, string filter, string expand) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ResourceHealth/availabilityStatuses", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Lists the current availability status for all the resources in the subscription. + /// The ID of the target subscription. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// Setting $expand=recommendedactions in url query expands the recommendedactions in the response. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public async Task> ListBySubscriptionIdAsync(string subscriptionId, string filter = null, string expand = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + + using var message = CreateListBySubscriptionIdRequest(subscriptionId, filter, expand); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + AvailabilityStatusListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = AvailabilityStatusListResult.DeserializeAvailabilityStatusListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Lists the current availability status for all the resources in the subscription. + /// The ID of the target subscription. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// Setting $expand=recommendedactions in url query expands the recommendedactions in the response. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public Response ListBySubscriptionId(string subscriptionId, string filter = null, string expand = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + + using var message = CreateListBySubscriptionIdRequest(subscriptionId, filter, expand); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + AvailabilityStatusListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = AvailabilityStatusListResult.DeserializeAvailabilityStatusListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, string resourceGroupName, string filter, string expand) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.ResourceHealth/availabilityStatuses", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Lists the current availability status for all the resources in the resource group. + /// The ID of the target subscription. + /// The name of the resource group. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// Setting $expand=recommendedactions in url query expands the recommendedactions in the response. + /// The cancellation token to use. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + public async Task> ListByResourceGroupAsync(string subscriptionId, string resourceGroupName, string filter = null, string expand = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + + using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName, filter, expand); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + AvailabilityStatusListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = AvailabilityStatusListResult.DeserializeAvailabilityStatusListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Lists the current availability status for all the resources in the resource group. + /// The ID of the target subscription. + /// The name of the resource group. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// Setting $expand=recommendedactions in url query expands the recommendedactions in the response. + /// The cancellation token to use. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + public Response ListByResourceGroup(string subscriptionId, string resourceGroupName, string filter = null, string expand = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + + using var message = CreateListByResourceGroupRequest(subscriptionId, resourceGroupName, filter, expand); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + AvailabilityStatusListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = AvailabilityStatusListResult.DeserializeAvailabilityStatusListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetByResourceRequest(string resourceUri, string filter, string expand) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.ResourceHealth/availabilityStatuses/current", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Gets current availability status for a single resource. + /// The fully qualified ID of the resource, including the resource name and resource type. Currently the API support not nested and one nesting level resource types : /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name} and /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// Setting $expand=recommendedactions in url query expands the recommendedactions in the response. + /// The cancellation token to use. + /// is null. + public async Task> GetByResourceAsync(string resourceUri, string filter = null, string expand = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(resourceUri, nameof(resourceUri)); + + using var message = CreateGetByResourceRequest(resourceUri, filter, expand); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + AvailabilityStatusData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = AvailabilityStatusData.DeserializeAvailabilityStatusData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((AvailabilityStatusData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Gets current availability status for a single resource. + /// The fully qualified ID of the resource, including the resource name and resource type. Currently the API support not nested and one nesting level resource types : /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name} and /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// Setting $expand=recommendedactions in url query expands the recommendedactions in the response. + /// The cancellation token to use. + /// is null. + public Response GetByResource(string resourceUri, string filter = null, string expand = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(resourceUri, nameof(resourceUri)); + + using var message = CreateGetByResourceRequest(resourceUri, filter, expand); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + AvailabilityStatusData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = AvailabilityStatusData.DeserializeAvailabilityStatusData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((AvailabilityStatusData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListRequest(string resourceUri, string filter, string expand) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.ResourceHealth/availabilityStatuses", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Lists all historical availability transitions and impacting events for a single resource. + /// The fully qualified ID of the resource, including the resource name and resource type. Currently the API support not nested and one nesting level resource types : /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name} and /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// Setting $expand=recommendedactions in url query expands the recommendedactions in the response. + /// The cancellation token to use. + /// is null. + public async Task> ListAsync(string resourceUri, string filter = null, string expand = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(resourceUri, nameof(resourceUri)); + + using var message = CreateListRequest(resourceUri, filter, expand); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + AvailabilityStatusListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = AvailabilityStatusListResult.DeserializeAvailabilityStatusListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Lists all historical availability transitions and impacting events for a single resource. + /// The fully qualified ID of the resource, including the resource name and resource type. Currently the API support not nested and one nesting level resource types : /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name} and /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// Setting $expand=recommendedactions in url query expands the recommendedactions in the response. + /// The cancellation token to use. + /// is null. + public Response List(string resourceUri, string filter = null, string expand = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(resourceUri, nameof(resourceUri)); + + using var message = CreateListRequest(resourceUri, filter, expand); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + AvailabilityStatusListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = AvailabilityStatusListResult.DeserializeAvailabilityStatusListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListBySubscriptionIdNextPageRequest(string nextLink, string subscriptionId, string filter, string expand) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Lists the current availability status for all the resources in the subscription. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// Setting $expand=recommendedactions in url query expands the recommendedactions in the response. + /// The cancellation token to use. + /// or is null. + /// is an empty string, and was expected to be non-empty. + public async Task> ListBySubscriptionIdNextPageAsync(string nextLink, string subscriptionId, string filter = null, string expand = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + + using var message = CreateListBySubscriptionIdNextPageRequest(nextLink, subscriptionId, filter, expand); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + AvailabilityStatusListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = AvailabilityStatusListResult.DeserializeAvailabilityStatusListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Lists the current availability status for all the resources in the subscription. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// Setting $expand=recommendedactions in url query expands the recommendedactions in the response. + /// The cancellation token to use. + /// or is null. + /// is an empty string, and was expected to be non-empty. + public Response ListBySubscriptionIdNextPage(string nextLink, string subscriptionId, string filter = null, string expand = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + + using var message = CreateListBySubscriptionIdNextPageRequest(nextLink, subscriptionId, filter, expand); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + AvailabilityStatusListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = AvailabilityStatusListResult.DeserializeAvailabilityStatusListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string filter, string expand) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Lists the current availability status for all the resources in the resource group. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// Setting $expand=recommendedactions in url query expands the recommendedactions in the response. + /// The cancellation token to use. + /// , or is null. + /// or is an empty string, and was expected to be non-empty. + public async Task> ListByResourceGroupNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string filter = null, string expand = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + + using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName, filter, expand); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + AvailabilityStatusListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = AvailabilityStatusListResult.DeserializeAvailabilityStatusListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Lists the current availability status for all the resources in the resource group. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// Setting $expand=recommendedactions in url query expands the recommendedactions in the response. + /// The cancellation token to use. + /// , or is null. + /// or is an empty string, and was expected to be non-empty. + public Response ListByResourceGroupNextPage(string nextLink, string subscriptionId, string resourceGroupName, string filter = null, string expand = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + + using var message = CreateListByResourceGroupNextPageRequest(nextLink, subscriptionId, resourceGroupName, filter, expand); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + AvailabilityStatusListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = AvailabilityStatusListResult.DeserializeAvailabilityStatusListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListNextPageRequest(string nextLink, string resourceUri, string filter, string expand) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Lists all historical availability transitions and impacting events for a single resource. + /// The URL to the next page of results. + /// The fully qualified ID of the resource, including the resource name and resource type. Currently the API support not nested and one nesting level resource types : /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name} and /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// Setting $expand=recommendedactions in url query expands the recommendedactions in the response. + /// The cancellation token to use. + /// or is null. + public async Task> ListNextPageAsync(string nextLink, string resourceUri, string filter = null, string expand = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNull(resourceUri, nameof(resourceUri)); + + using var message = CreateListNextPageRequest(nextLink, resourceUri, filter, expand); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + AvailabilityStatusListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = AvailabilityStatusListResult.DeserializeAvailabilityStatusListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Lists all historical availability transitions and impacting events for a single resource. + /// The URL to the next page of results. + /// The fully qualified ID of the resource, including the resource name and resource type. Currently the API support not nested and one nesting level resource types : /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name} and /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// Setting $expand=recommendedactions in url query expands the recommendedactions in the response. + /// The cancellation token to use. + /// or is null. + public Response ListNextPage(string nextLink, string resourceUri, string filter = null, string expand = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNull(resourceUri, nameof(resourceUri)); + + using var message = CreateListNextPageRequest(nextLink, resourceUri, filter, expand); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + AvailabilityStatusListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = AvailabilityStatusListResult.DeserializeAvailabilityStatusListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/EmergingIssuesRestOperations.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/EmergingIssuesRestOperations.cs new file mode 100644 index 0000000000000..07bcf97781199 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/EmergingIssuesRestOperations.cs @@ -0,0 +1,219 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.ResourceHealth.Models; + +namespace Azure.ResourceManager.ResourceHealth +{ + internal partial class EmergingIssuesRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of EmergingIssuesRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public EmergingIssuesRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2022-10-01-preview"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal HttpMessage CreateListRequest() + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.ResourceHealth/emergingIssues", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Lists Azure services' emerging issues. + /// The cancellation token to use. + public async Task> ListAsync(CancellationToken cancellationToken = default) + { + using var message = CreateListRequest(); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + EmergingIssueListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = EmergingIssueListResult.DeserializeEmergingIssueListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Lists Azure services' emerging issues. + /// The cancellation token to use. + public Response List(CancellationToken cancellationToken = default) + { + using var message = CreateListRequest(); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + EmergingIssueListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = EmergingIssueListResult.DeserializeEmergingIssueListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetRequest(IssueNameParameter issueName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.ResourceHealth/emergingIssues/", false); + uri.AppendPath(issueName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Gets Azure services' emerging issues. + /// The name of the emerging issue. + /// The cancellation token to use. + public async Task> GetAsync(IssueNameParameter issueName, CancellationToken cancellationToken = default) + { + using var message = CreateGetRequest(issueName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + EmergingIssuesGetResultData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = EmergingIssuesGetResultData.DeserializeEmergingIssuesGetResultData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((EmergingIssuesGetResultData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Gets Azure services' emerging issues. + /// The name of the emerging issue. + /// The cancellation token to use. + public Response Get(IssueNameParameter issueName, CancellationToken cancellationToken = default) + { + using var message = CreateGetRequest(issueName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + EmergingIssuesGetResultData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = EmergingIssuesGetResultData.DeserializeEmergingIssuesGetResultData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((EmergingIssuesGetResultData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListNextPageRequest(string nextLink) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Lists Azure services' emerging issues. + /// The URL to the next page of results. + /// The cancellation token to use. + /// is null. + public async Task> ListNextPageAsync(string nextLink, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + + using var message = CreateListNextPageRequest(nextLink); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + EmergingIssueListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = EmergingIssueListResult.DeserializeEmergingIssueListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Lists Azure services' emerging issues. + /// The URL to the next page of results. + /// The cancellation token to use. + /// is null. + public Response ListNextPage(string nextLink, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + + using var message = CreateListNextPageRequest(nextLink); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + EmergingIssueListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = EmergingIssueListResult.DeserializeEmergingIssueListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/EventRestOperations.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/EventRestOperations.cs new file mode 100644 index 0000000000000..d02a7f11e61fb --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/EventRestOperations.cs @@ -0,0 +1,349 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.ResourceManager.ResourceHealth +{ + internal partial class EventRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of EventRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public EventRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2022-10-01-preview"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal HttpMessage CreateGetBySubscriptionIdAndTrackingIdRequest(string subscriptionId, string eventTrackingId, string filter, string queryStartTime) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ResourceHealth/events/", false); + uri.AppendPath(eventTrackingId, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (queryStartTime != null) + { + uri.AppendQuery("queryStartTime", queryStartTime, true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Service health event in the subscription by event tracking id. + /// The ID of the target subscription. + /// Event Id which uniquely identifies ServiceHealth event. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// Specifies from when to return events, based on the lastUpdateTime property. For example, queryStartTime = 7/24/2020 OR queryStartTime=7%2F24%2F2020. + /// The cancellation token to use. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + public async Task> GetBySubscriptionIdAndTrackingIdAsync(string subscriptionId, string eventTrackingId, string filter = null, string queryStartTime = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(eventTrackingId, nameof(eventTrackingId)); + + using var message = CreateGetBySubscriptionIdAndTrackingIdRequest(subscriptionId, eventTrackingId, filter, queryStartTime); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + EventData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = EventData.DeserializeEventData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((EventData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Service health event in the subscription by event tracking id. + /// The ID of the target subscription. + /// Event Id which uniquely identifies ServiceHealth event. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// Specifies from when to return events, based on the lastUpdateTime property. For example, queryStartTime = 7/24/2020 OR queryStartTime=7%2F24%2F2020. + /// The cancellation token to use. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + public Response GetBySubscriptionIdAndTrackingId(string subscriptionId, string eventTrackingId, string filter = null, string queryStartTime = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(eventTrackingId, nameof(eventTrackingId)); + + using var message = CreateGetBySubscriptionIdAndTrackingIdRequest(subscriptionId, eventTrackingId, filter, queryStartTime); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + EventData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = EventData.DeserializeEventData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((EventData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateFetchDetailsBySubscriptionIdAndTrackingIdRequest(string subscriptionId, string eventTrackingId) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ResourceHealth/events/", false); + uri.AppendPath(eventTrackingId, true); + uri.AppendPath("/fetchEventDetails", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Service health event details in the subscription by event tracking id. This can be used to fetch sensitive properties for Security Advisory events. + /// The ID of the target subscription. + /// Event Id which uniquely identifies ServiceHealth event. + /// The cancellation token to use. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + public async Task> FetchDetailsBySubscriptionIdAndTrackingIdAsync(string subscriptionId, string eventTrackingId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(eventTrackingId, nameof(eventTrackingId)); + + using var message = CreateFetchDetailsBySubscriptionIdAndTrackingIdRequest(subscriptionId, eventTrackingId); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + EventData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = EventData.DeserializeEventData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Service health event details in the subscription by event tracking id. This can be used to fetch sensitive properties for Security Advisory events. + /// The ID of the target subscription. + /// Event Id which uniquely identifies ServiceHealth event. + /// The cancellation token to use. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + public Response FetchDetailsBySubscriptionIdAndTrackingId(string subscriptionId, string eventTrackingId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(eventTrackingId, nameof(eventTrackingId)); + + using var message = CreateFetchDetailsBySubscriptionIdAndTrackingIdRequest(subscriptionId, eventTrackingId); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + EventData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = EventData.DeserializeEventData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetByTenantIdAndTrackingIdRequest(string eventTrackingId, string filter, string queryStartTime) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.ResourceHealth/events/", false); + uri.AppendPath(eventTrackingId, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (queryStartTime != null) + { + uri.AppendQuery("queryStartTime", queryStartTime, true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Service health event in the tenant by event tracking id. + /// Event Id which uniquely identifies ServiceHealth event. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// Specifies from when to return events, based on the lastUpdateTime property. For example, queryStartTime = 7/24/2020 OR queryStartTime=7%2F24%2F2020. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public async Task> GetByTenantIdAndTrackingIdAsync(string eventTrackingId, string filter = null, string queryStartTime = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(eventTrackingId, nameof(eventTrackingId)); + + using var message = CreateGetByTenantIdAndTrackingIdRequest(eventTrackingId, filter, queryStartTime); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + EventData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = EventData.DeserializeEventData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((EventData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Service health event in the tenant by event tracking id. + /// Event Id which uniquely identifies ServiceHealth event. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// Specifies from when to return events, based on the lastUpdateTime property. For example, queryStartTime = 7/24/2020 OR queryStartTime=7%2F24%2F2020. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public Response GetByTenantIdAndTrackingId(string eventTrackingId, string filter = null, string queryStartTime = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(eventTrackingId, nameof(eventTrackingId)); + + using var message = CreateGetByTenantIdAndTrackingIdRequest(eventTrackingId, filter, queryStartTime); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + EventData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = EventData.DeserializeEventData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((EventData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateFetchDetailsByTenantIdAndTrackingIdRequest(string eventTrackingId) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.ResourceHealth/events/", false); + uri.AppendPath(eventTrackingId, true); + uri.AppendPath("/fetchEventDetails", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Service health event details in the tenant by event tracking id. This can be used to fetch sensitive properties for Security Advisory events. + /// Event Id which uniquely identifies ServiceHealth event. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public async Task> FetchDetailsByTenantIdAndTrackingIdAsync(string eventTrackingId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(eventTrackingId, nameof(eventTrackingId)); + + using var message = CreateFetchDetailsByTenantIdAndTrackingIdRequest(eventTrackingId); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + EventData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = EventData.DeserializeEventData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Service health event details in the tenant by event tracking id. This can be used to fetch sensitive properties for Security Advisory events. + /// Event Id which uniquely identifies ServiceHealth event. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public Response FetchDetailsByTenantIdAndTrackingId(string eventTrackingId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(eventTrackingId, nameof(eventTrackingId)); + + using var message = CreateFetchDetailsByTenantIdAndTrackingIdRequest(eventTrackingId); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + EventData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = EventData.DeserializeEventData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/EventsRestOperations.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/EventsRestOperations.cs new file mode 100644 index 0000000000000..bc4ea1a823fe9 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/EventsRestOperations.cs @@ -0,0 +1,463 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.ResourceHealth.Models; + +namespace Azure.ResourceManager.ResourceHealth +{ + internal partial class EventsRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of EventsRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public EventsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2022-10-01-preview"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal HttpMessage CreateListBySubscriptionIdRequest(string subscriptionId, string filter, string queryStartTime) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ResourceHealth/events", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (queryStartTime != null) + { + uri.AppendQuery("queryStartTime", queryStartTime, true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Lists service health events in the subscription. + /// The ID of the target subscription. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// Specifies from when to return events, based on the lastUpdateTime property. For example, queryStartTime = 7/24/2020 OR queryStartTime=7%2F24%2F2020. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public async Task> ListBySubscriptionIdAsync(string subscriptionId, string filter = null, string queryStartTime = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + + using var message = CreateListBySubscriptionIdRequest(subscriptionId, filter, queryStartTime); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + Events value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = Events.DeserializeEvents(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Lists service health events in the subscription. + /// The ID of the target subscription. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// Specifies from when to return events, based on the lastUpdateTime property. For example, queryStartTime = 7/24/2020 OR queryStartTime=7%2F24%2F2020. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public Response ListBySubscriptionId(string subscriptionId, string filter = null, string queryStartTime = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + + using var message = CreateListBySubscriptionIdRequest(subscriptionId, filter, queryStartTime); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + Events value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = Events.DeserializeEvents(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListByTenantIdRequest(string filter, string queryStartTime) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.ResourceHealth/events", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (queryStartTime != null) + { + uri.AppendQuery("queryStartTime", queryStartTime, true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Lists current service health events in the tenant. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// Specifies from when to return events, based on the lastUpdateTime property. For example, queryStartTime = 7/24/2020 OR queryStartTime=7%2F24%2F2020. + /// The cancellation token to use. + public async Task> ListByTenantIdAsync(string filter = null, string queryStartTime = null, CancellationToken cancellationToken = default) + { + using var message = CreateListByTenantIdRequest(filter, queryStartTime); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + Events value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = Events.DeserializeEvents(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Lists current service health events in the tenant. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// Specifies from when to return events, based on the lastUpdateTime property. For example, queryStartTime = 7/24/2020 OR queryStartTime=7%2F24%2F2020. + /// The cancellation token to use. + public Response ListByTenantId(string filter = null, string queryStartTime = null, CancellationToken cancellationToken = default) + { + using var message = CreateListByTenantIdRequest(filter, queryStartTime); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + Events value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = Events.DeserializeEvents(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListBySingleResourceRequest(string resourceUri, string filter) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceUri, false); + uri.AppendPath("/providers/Microsoft.ResourceHealth/events", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Lists current service health events for given resource. + /// The fully qualified ID of the resource, including the resource name and resource type. Currently the API support not nested and one nesting level resource types : /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name} and /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// The cancellation token to use. + /// is null. + public async Task> ListBySingleResourceAsync(string resourceUri, string filter = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(resourceUri, nameof(resourceUri)); + + using var message = CreateListBySingleResourceRequest(resourceUri, filter); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + Events value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = Events.DeserializeEvents(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Lists current service health events for given resource. + /// The fully qualified ID of the resource, including the resource name and resource type. Currently the API support not nested and one nesting level resource types : /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name} and /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// The cancellation token to use. + /// is null. + public Response ListBySingleResource(string resourceUri, string filter = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(resourceUri, nameof(resourceUri)); + + using var message = CreateListBySingleResourceRequest(resourceUri, filter); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + Events value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = Events.DeserializeEvents(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListBySubscriptionIdNextPageRequest(string nextLink, string subscriptionId, string filter, string queryStartTime) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Lists service health events in the subscription. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// Specifies from when to return events, based on the lastUpdateTime property. For example, queryStartTime = 7/24/2020 OR queryStartTime=7%2F24%2F2020. + /// The cancellation token to use. + /// or is null. + /// is an empty string, and was expected to be non-empty. + public async Task> ListBySubscriptionIdNextPageAsync(string nextLink, string subscriptionId, string filter = null, string queryStartTime = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + + using var message = CreateListBySubscriptionIdNextPageRequest(nextLink, subscriptionId, filter, queryStartTime); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + Events value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = Events.DeserializeEvents(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Lists service health events in the subscription. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// Specifies from when to return events, based on the lastUpdateTime property. For example, queryStartTime = 7/24/2020 OR queryStartTime=7%2F24%2F2020. + /// The cancellation token to use. + /// or is null. + /// is an empty string, and was expected to be non-empty. + public Response ListBySubscriptionIdNextPage(string nextLink, string subscriptionId, string filter = null, string queryStartTime = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + + using var message = CreateListBySubscriptionIdNextPageRequest(nextLink, subscriptionId, filter, queryStartTime); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + Events value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = Events.DeserializeEvents(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListByTenantIdNextPageRequest(string nextLink, string filter, string queryStartTime) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Lists current service health events in the tenant. + /// The URL to the next page of results. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// Specifies from when to return events, based on the lastUpdateTime property. For example, queryStartTime = 7/24/2020 OR queryStartTime=7%2F24%2F2020. + /// The cancellation token to use. + /// is null. + public async Task> ListByTenantIdNextPageAsync(string nextLink, string filter = null, string queryStartTime = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + + using var message = CreateListByTenantIdNextPageRequest(nextLink, filter, queryStartTime); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + Events value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = Events.DeserializeEvents(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Lists current service health events in the tenant. + /// The URL to the next page of results. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// Specifies from when to return events, based on the lastUpdateTime property. For example, queryStartTime = 7/24/2020 OR queryStartTime=7%2F24%2F2020. + /// The cancellation token to use. + /// is null. + public Response ListByTenantIdNextPage(string nextLink, string filter = null, string queryStartTime = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + + using var message = CreateListByTenantIdNextPageRequest(nextLink, filter, queryStartTime); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + Events value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = Events.DeserializeEvents(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListBySingleResourceNextPageRequest(string nextLink, string resourceUri, string filter) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Lists current service health events for given resource. + /// The URL to the next page of results. + /// The fully qualified ID of the resource, including the resource name and resource type. Currently the API support not nested and one nesting level resource types : /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name} and /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// The cancellation token to use. + /// or is null. + public async Task> ListBySingleResourceNextPageAsync(string nextLink, string resourceUri, string filter = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNull(resourceUri, nameof(resourceUri)); + + using var message = CreateListBySingleResourceNextPageRequest(nextLink, resourceUri, filter); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + Events value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = Events.DeserializeEvents(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Lists current service health events for given resource. + /// The URL to the next page of results. + /// The fully qualified ID of the resource, including the resource name and resource type. Currently the API support not nested and one nesting level resource types : /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name} and /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// The cancellation token to use. + /// or is null. + public Response ListBySingleResourceNextPage(string nextLink, string resourceUri, string filter = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNull(resourceUri, nameof(resourceUri)); + + using var message = CreateListBySingleResourceNextPageRequest(nextLink, resourceUri, filter); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + Events value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = Events.DeserializeEvents(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/ImpactedResourcesRestOperations.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/ImpactedResourcesRestOperations.cs new file mode 100644 index 0000000000000..d4bad5883d5c2 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/ImpactedResourcesRestOperations.cs @@ -0,0 +1,494 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.ResourceHealth.Models; + +namespace Azure.ResourceManager.ResourceHealth +{ + internal partial class ImpactedResourcesRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of ImpactedResourcesRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public ImpactedResourcesRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2022-10-01-preview"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal HttpMessage CreateListBySubscriptionIdAndEventIdRequest(string subscriptionId, string eventTrackingId, string filter) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ResourceHealth/events/", false); + uri.AppendPath(eventTrackingId, true); + uri.AppendPath("/impactedResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Lists impacted resources in the subscription by an event. + /// The ID of the target subscription. + /// Event Id which uniquely identifies ServiceHealth event. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// The cancellation token to use. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + public async Task> ListBySubscriptionIdAndEventIdAsync(string subscriptionId, string eventTrackingId, string filter = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(eventTrackingId, nameof(eventTrackingId)); + + using var message = CreateListBySubscriptionIdAndEventIdRequest(subscriptionId, eventTrackingId, filter); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + EventImpactedResourceListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = EventImpactedResourceListResult.DeserializeEventImpactedResourceListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Lists impacted resources in the subscription by an event. + /// The ID of the target subscription. + /// Event Id which uniquely identifies ServiceHealth event. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// The cancellation token to use. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + public Response ListBySubscriptionIdAndEventId(string subscriptionId, string eventTrackingId, string filter = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(eventTrackingId, nameof(eventTrackingId)); + + using var message = CreateListBySubscriptionIdAndEventIdRequest(subscriptionId, eventTrackingId, filter); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + EventImpactedResourceListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = EventImpactedResourceListResult.DeserializeEventImpactedResourceListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetRequest(string subscriptionId, string eventTrackingId, string impactedResourceName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ResourceHealth/events/", false); + uri.AppendPath(eventTrackingId, true); + uri.AppendPath("/impactedResources/", false); + uri.AppendPath(impactedResourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Gets the specific impacted resource in the subscription by an event. + /// The ID of the target subscription. + /// Event Id which uniquely identifies ServiceHealth event. + /// Name of the Impacted Resource. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> GetAsync(string subscriptionId, string eventTrackingId, string impactedResourceName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(eventTrackingId, nameof(eventTrackingId)); + Argument.AssertNotNullOrEmpty(impactedResourceName, nameof(impactedResourceName)); + + using var message = CreateGetRequest(subscriptionId, eventTrackingId, impactedResourceName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + EventImpactedResourceData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = EventImpactedResourceData.DeserializeEventImpactedResourceData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((EventImpactedResourceData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Gets the specific impacted resource in the subscription by an event. + /// The ID of the target subscription. + /// Event Id which uniquely identifies ServiceHealth event. + /// Name of the Impacted Resource. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response Get(string subscriptionId, string eventTrackingId, string impactedResourceName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(eventTrackingId, nameof(eventTrackingId)); + Argument.AssertNotNullOrEmpty(impactedResourceName, nameof(impactedResourceName)); + + using var message = CreateGetRequest(subscriptionId, eventTrackingId, impactedResourceName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + EventImpactedResourceData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = EventImpactedResourceData.DeserializeEventImpactedResourceData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((EventImpactedResourceData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListByTenantIdAndEventIdRequest(string eventTrackingId, string filter) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.ResourceHealth/events/", false); + uri.AppendPath(eventTrackingId, true); + uri.AppendPath("/impactedResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Lists impacted resources in the tenant by an event. + /// Event Id which uniquely identifies ServiceHealth event. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public async Task> ListByTenantIdAndEventIdAsync(string eventTrackingId, string filter = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(eventTrackingId, nameof(eventTrackingId)); + + using var message = CreateListByTenantIdAndEventIdRequest(eventTrackingId, filter); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + EventImpactedResourceListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = EventImpactedResourceListResult.DeserializeEventImpactedResourceListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Lists impacted resources in the tenant by an event. + /// Event Id which uniquely identifies ServiceHealth event. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public Response ListByTenantIdAndEventId(string eventTrackingId, string filter = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(eventTrackingId, nameof(eventTrackingId)); + + using var message = CreateListByTenantIdAndEventIdRequest(eventTrackingId, filter); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + EventImpactedResourceListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = EventImpactedResourceListResult.DeserializeEventImpactedResourceListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetByTenantIdRequest(string eventTrackingId, string impactedResourceName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.ResourceHealth/events/", false); + uri.AppendPath(eventTrackingId, true); + uri.AppendPath("/impactedResources/", false); + uri.AppendPath(impactedResourceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Gets the specific impacted resource in the tenant by an event. + /// Event Id which uniquely identifies ServiceHealth event. + /// Name of the Impacted Resource. + /// The cancellation token to use. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + public async Task> GetByTenantIdAsync(string eventTrackingId, string impactedResourceName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(eventTrackingId, nameof(eventTrackingId)); + Argument.AssertNotNullOrEmpty(impactedResourceName, nameof(impactedResourceName)); + + using var message = CreateGetByTenantIdRequest(eventTrackingId, impactedResourceName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + EventImpactedResourceData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = EventImpactedResourceData.DeserializeEventImpactedResourceData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((EventImpactedResourceData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Gets the specific impacted resource in the tenant by an event. + /// Event Id which uniquely identifies ServiceHealth event. + /// Name of the Impacted Resource. + /// The cancellation token to use. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + public Response GetByTenantId(string eventTrackingId, string impactedResourceName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(eventTrackingId, nameof(eventTrackingId)); + Argument.AssertNotNullOrEmpty(impactedResourceName, nameof(impactedResourceName)); + + using var message = CreateGetByTenantIdRequest(eventTrackingId, impactedResourceName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + EventImpactedResourceData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = EventImpactedResourceData.DeserializeEventImpactedResourceData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((EventImpactedResourceData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListBySubscriptionIdAndEventIdNextPageRequest(string nextLink, string subscriptionId, string eventTrackingId, string filter) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Lists impacted resources in the subscription by an event. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// Event Id which uniquely identifies ServiceHealth event. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// The cancellation token to use. + /// , or is null. + /// or is an empty string, and was expected to be non-empty. + public async Task> ListBySubscriptionIdAndEventIdNextPageAsync(string nextLink, string subscriptionId, string eventTrackingId, string filter = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(eventTrackingId, nameof(eventTrackingId)); + + using var message = CreateListBySubscriptionIdAndEventIdNextPageRequest(nextLink, subscriptionId, eventTrackingId, filter); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + EventImpactedResourceListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = EventImpactedResourceListResult.DeserializeEventImpactedResourceListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Lists impacted resources in the subscription by an event. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// Event Id which uniquely identifies ServiceHealth event. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// The cancellation token to use. + /// , or is null. + /// or is an empty string, and was expected to be non-empty. + public Response ListBySubscriptionIdAndEventIdNextPage(string nextLink, string subscriptionId, string eventTrackingId, string filter = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(eventTrackingId, nameof(eventTrackingId)); + + using var message = CreateListBySubscriptionIdAndEventIdNextPageRequest(nextLink, subscriptionId, eventTrackingId, filter); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + EventImpactedResourceListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = EventImpactedResourceListResult.DeserializeEventImpactedResourceListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListByTenantIdAndEventIdNextPageRequest(string nextLink, string eventTrackingId, string filter) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Lists impacted resources in the tenant by an event. + /// The URL to the next page of results. + /// Event Id which uniquely identifies ServiceHealth event. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// The cancellation token to use. + /// or is null. + /// is an empty string, and was expected to be non-empty. + public async Task> ListByTenantIdAndEventIdNextPageAsync(string nextLink, string eventTrackingId, string filter = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(eventTrackingId, nameof(eventTrackingId)); + + using var message = CreateListByTenantIdAndEventIdNextPageRequest(nextLink, eventTrackingId, filter); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + EventImpactedResourceListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = EventImpactedResourceListResult.DeserializeEventImpactedResourceListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Lists impacted resources in the tenant by an event. + /// The URL to the next page of results. + /// Event Id which uniquely identifies ServiceHealth event. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// The cancellation token to use. + /// or is null. + /// is an empty string, and was expected to be non-empty. + public Response ListByTenantIdAndEventIdNextPage(string nextLink, string eventTrackingId, string filter = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(eventTrackingId, nameof(eventTrackingId)); + + using var message = CreateListByTenantIdAndEventIdNextPageRequest(nextLink, eventTrackingId, filter); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + EventImpactedResourceListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = EventImpactedResourceListResult.DeserializeEventImpactedResourceListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/MetadataRestOperations.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/MetadataRestOperations.cs new file mode 100644 index 0000000000000..510d9891a5b09 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/MetadataRestOperations.cs @@ -0,0 +1,227 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.ResourceHealth.Models; + +namespace Azure.ResourceManager.ResourceHealth +{ + internal partial class MetadataRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of MetadataRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public MetadataRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2022-10-01-preview"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal HttpMessage CreateListRequest() + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.ResourceHealth/metadata", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Gets the list of metadata entities. + /// The cancellation token to use. + public async Task> ListAsync(CancellationToken cancellationToken = default) + { + using var message = CreateListRequest(); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + MetadataEntityListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = MetadataEntityListResult.DeserializeMetadataEntityListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Gets the list of metadata entities. + /// The cancellation token to use. + public Response List(CancellationToken cancellationToken = default) + { + using var message = CreateListRequest(); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + MetadataEntityListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = MetadataEntityListResult.DeserializeMetadataEntityListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetEntityRequest(string name) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.ResourceHealth/metadata/", false); + uri.AppendPath(name, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Gets the list of metadata entities. + /// Name of metadata entity. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public async Task> GetEntityAsync(string name, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(name, nameof(name)); + + using var message = CreateGetEntityRequest(name); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + MetadataEntityData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = MetadataEntityData.DeserializeMetadataEntityData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((MetadataEntityData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Gets the list of metadata entities. + /// Name of metadata entity. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public Response GetEntity(string name, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(name, nameof(name)); + + using var message = CreateGetEntityRequest(name); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + MetadataEntityData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = MetadataEntityData.DeserializeMetadataEntityData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((MetadataEntityData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListNextPageRequest(string nextLink) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Gets the list of metadata entities. + /// The URL to the next page of results. + /// The cancellation token to use. + /// is null. + public async Task> ListNextPageAsync(string nextLink, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + + using var message = CreateListNextPageRequest(nextLink); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + MetadataEntityListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = MetadataEntityListResult.DeserializeMetadataEntityListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Gets the list of metadata entities. + /// The URL to the next page of results. + /// The cancellation token to use. + /// is null. + public Response ListNextPage(string nextLink, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + + using var message = CreateListNextPageRequest(nextLink); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + MetadataEntityListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = MetadataEntityListResult.DeserializeMetadataEntityListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/SecurityAdvisoryImpactedResourcesRestOperations.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/SecurityAdvisoryImpactedResourcesRestOperations.cs new file mode 100644 index 0000000000000..9e4bd514f4c89 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/RestOperations/SecurityAdvisoryImpactedResourcesRestOperations.cs @@ -0,0 +1,336 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.ResourceHealth.Models; + +namespace Azure.ResourceManager.ResourceHealth +{ + internal partial class SecurityAdvisoryImpactedResourcesRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of SecurityAdvisoryImpactedResourcesRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public SecurityAdvisoryImpactedResourcesRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2022-10-01-preview"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal HttpMessage CreateListBySubscriptionIdAndEventIdRequest(string subscriptionId, string eventTrackingId, string filter) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.ResourceHealth/events/", false); + uri.AppendPath(eventTrackingId, true); + uri.AppendPath("/listSecurityAdvisoryImpactedResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Lists impacted resources in the subscription by an event (Security Advisory). + /// The ID of the target subscription. + /// Event Id which uniquely identifies ServiceHealth event. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// The cancellation token to use. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + public async Task> ListBySubscriptionIdAndEventIdAsync(string subscriptionId, string eventTrackingId, string filter = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(eventTrackingId, nameof(eventTrackingId)); + + using var message = CreateListBySubscriptionIdAndEventIdRequest(subscriptionId, eventTrackingId, filter); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + EventImpactedResourceListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = EventImpactedResourceListResult.DeserializeEventImpactedResourceListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Lists impacted resources in the subscription by an event (Security Advisory). + /// The ID of the target subscription. + /// Event Id which uniquely identifies ServiceHealth event. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// The cancellation token to use. + /// or is null. + /// or is an empty string, and was expected to be non-empty. + public Response ListBySubscriptionIdAndEventId(string subscriptionId, string eventTrackingId, string filter = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(eventTrackingId, nameof(eventTrackingId)); + + using var message = CreateListBySubscriptionIdAndEventIdRequest(subscriptionId, eventTrackingId, filter); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + EventImpactedResourceListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = EventImpactedResourceListResult.DeserializeEventImpactedResourceListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListByTenantIdAndEventIdRequest(string eventTrackingId, string filter) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.ResourceHealth/events/", false); + uri.AppendPath(eventTrackingId, true); + uri.AppendPath("/listSecurityAdvisoryImpactedResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Lists impacted resources in the tenant by an event (Security Advisory). + /// Event Id which uniquely identifies ServiceHealth event. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public async Task> ListByTenantIdAndEventIdAsync(string eventTrackingId, string filter = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(eventTrackingId, nameof(eventTrackingId)); + + using var message = CreateListByTenantIdAndEventIdRequest(eventTrackingId, filter); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + EventImpactedResourceListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = EventImpactedResourceListResult.DeserializeEventImpactedResourceListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Lists impacted resources in the tenant by an event (Security Advisory). + /// Event Id which uniquely identifies ServiceHealth event. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public Response ListByTenantIdAndEventId(string eventTrackingId, string filter = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(eventTrackingId, nameof(eventTrackingId)); + + using var message = CreateListByTenantIdAndEventIdRequest(eventTrackingId, filter); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + EventImpactedResourceListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = EventImpactedResourceListResult.DeserializeEventImpactedResourceListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListBySubscriptionIdAndEventIdNextPageRequest(string nextLink, string subscriptionId, string eventTrackingId, string filter) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Lists impacted resources in the subscription by an event (Security Advisory). + /// The URL to the next page of results. + /// The ID of the target subscription. + /// Event Id which uniquely identifies ServiceHealth event. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// The cancellation token to use. + /// , or is null. + /// or is an empty string, and was expected to be non-empty. + public async Task> ListBySubscriptionIdAndEventIdNextPageAsync(string nextLink, string subscriptionId, string eventTrackingId, string filter = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(eventTrackingId, nameof(eventTrackingId)); + + using var message = CreateListBySubscriptionIdAndEventIdNextPageRequest(nextLink, subscriptionId, eventTrackingId, filter); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + EventImpactedResourceListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = EventImpactedResourceListResult.DeserializeEventImpactedResourceListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Lists impacted resources in the subscription by an event (Security Advisory). + /// The URL to the next page of results. + /// The ID of the target subscription. + /// Event Id which uniquely identifies ServiceHealth event. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// The cancellation token to use. + /// , or is null. + /// or is an empty string, and was expected to be non-empty. + public Response ListBySubscriptionIdAndEventIdNextPage(string nextLink, string subscriptionId, string eventTrackingId, string filter = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(eventTrackingId, nameof(eventTrackingId)); + + using var message = CreateListBySubscriptionIdAndEventIdNextPageRequest(nextLink, subscriptionId, eventTrackingId, filter); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + EventImpactedResourceListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = EventImpactedResourceListResult.DeserializeEventImpactedResourceListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListByTenantIdAndEventIdNextPageRequest(string nextLink, string eventTrackingId, string filter) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Lists impacted resources in the tenant by an event (Security Advisory). + /// The URL to the next page of results. + /// Event Id which uniquely identifies ServiceHealth event. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// The cancellation token to use. + /// or is null. + /// is an empty string, and was expected to be non-empty. + public async Task> ListByTenantIdAndEventIdNextPageAsync(string nextLink, string eventTrackingId, string filter = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(eventTrackingId, nameof(eventTrackingId)); + + using var message = CreateListByTenantIdAndEventIdNextPageRequest(nextLink, eventTrackingId, filter); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + EventImpactedResourceListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = EventImpactedResourceListResult.DeserializeEventImpactedResourceListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Lists impacted resources in the tenant by an event (Security Advisory). + /// The URL to the next page of results. + /// Event Id which uniquely identifies ServiceHealth event. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// The cancellation token to use. + /// or is null. + /// is an empty string, and was expected to be non-empty. + public Response ListByTenantIdAndEventIdNextPage(string nextLink, string eventTrackingId, string filter = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(eventTrackingId, nameof(eventTrackingId)); + + using var message = CreateListByTenantIdAndEventIdNextPageRequest(nextLink, eventTrackingId, filter); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + EventImpactedResourceListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = EventImpactedResourceListResult.DeserializeEventImpactedResourceListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/SubscriptionEventCollection.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/SubscriptionEventCollection.cs new file mode 100644 index 0000000000000..f84c50994f4e7 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/SubscriptionEventCollection.cs @@ -0,0 +1,276 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; +using Azure.ResourceManager.Resources; + +namespace Azure.ResourceManager.ResourceHealth +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetSubscriptionEvents method from an instance of . + /// + public partial class SubscriptionEventCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _subscriptionEventEventClientDiagnostics; + private readonly EventRestOperations _subscriptionEventEventRestClient; + private readonly ClientDiagnostics _subscriptionEventEventsClientDiagnostics; + private readonly EventsRestOperations _subscriptionEventEventsRestClient; + + /// Initializes a new instance of the class for mocking. + protected SubscriptionEventCollection() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the parent resource that is the target of operations. + internal SubscriptionEventCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _subscriptionEventEventClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ResourceHealth", SubscriptionEventResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(SubscriptionEventResource.ResourceType, out string subscriptionEventEventApiVersion); + _subscriptionEventEventRestClient = new EventRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, subscriptionEventEventApiVersion); + _subscriptionEventEventsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ResourceHealth", SubscriptionEventResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(SubscriptionEventResource.ResourceType, out string subscriptionEventEventsApiVersion); + _subscriptionEventEventsRestClient = new EventsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, subscriptionEventEventsApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != SubscriptionResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, SubscriptionResource.ResourceType), nameof(id)); + } + + /// + /// Service health event in the subscription by event tracking id + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId} + /// + /// + /// Operation Id + /// Event_GetBySubscriptionIdAndTrackingId + /// + /// + /// + /// Event Id which uniquely identifies ServiceHealth event. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// Specifies from when to return events, based on the lastUpdateTime property. For example, queryStartTime = 7/24/2020 OR queryStartTime=7%2F24%2F2020. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetAsync(string eventTrackingId, string filter = null, string queryStartTime = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(eventTrackingId, nameof(eventTrackingId)); + + using var scope = _subscriptionEventEventClientDiagnostics.CreateScope("SubscriptionEventCollection.Get"); + scope.Start(); + try + { + var response = await _subscriptionEventEventRestClient.GetBySubscriptionIdAndTrackingIdAsync(Id.SubscriptionId, eventTrackingId, filter, queryStartTime, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new SubscriptionEventResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Service health event in the subscription by event tracking id + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId} + /// + /// + /// Operation Id + /// Event_GetBySubscriptionIdAndTrackingId + /// + /// + /// + /// Event Id which uniquely identifies ServiceHealth event. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// Specifies from when to return events, based on the lastUpdateTime property. For example, queryStartTime = 7/24/2020 OR queryStartTime=7%2F24%2F2020. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string eventTrackingId, string filter = null, string queryStartTime = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(eventTrackingId, nameof(eventTrackingId)); + + using var scope = _subscriptionEventEventClientDiagnostics.CreateScope("SubscriptionEventCollection.Get"); + scope.Start(); + try + { + var response = _subscriptionEventEventRestClient.GetBySubscriptionIdAndTrackingId(Id.SubscriptionId, eventTrackingId, filter, queryStartTime, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new SubscriptionEventResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Lists service health events in the subscription. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events + /// + /// + /// Operation Id + /// Events_ListBySubscriptionId + /// + /// + /// + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// Specifies from when to return events, based on the lastUpdateTime property. For example, queryStartTime = 7/24/2020 OR queryStartTime=7%2F24%2F2020. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string filter = null, string queryStartTime = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _subscriptionEventEventsRestClient.CreateListBySubscriptionIdRequest(Id.SubscriptionId, filter, queryStartTime); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _subscriptionEventEventsRestClient.CreateListBySubscriptionIdNextPageRequest(nextLink, Id.SubscriptionId, filter, queryStartTime); + return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new SubscriptionEventResource(Client, EventData.DeserializeEventData(e)), _subscriptionEventEventsClientDiagnostics, Pipeline, "SubscriptionEventCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Lists service health events in the subscription. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events + /// + /// + /// Operation Id + /// Events_ListBySubscriptionId + /// + /// + /// + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// Specifies from when to return events, based on the lastUpdateTime property. For example, queryStartTime = 7/24/2020 OR queryStartTime=7%2F24%2F2020. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string filter = null, string queryStartTime = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _subscriptionEventEventsRestClient.CreateListBySubscriptionIdRequest(Id.SubscriptionId, filter, queryStartTime); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _subscriptionEventEventsRestClient.CreateListBySubscriptionIdNextPageRequest(nextLink, Id.SubscriptionId, filter, queryStartTime); + return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new SubscriptionEventResource(Client, EventData.DeserializeEventData(e)), _subscriptionEventEventsClientDiagnostics, Pipeline, "SubscriptionEventCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId} + /// + /// + /// Operation Id + /// Event_GetBySubscriptionIdAndTrackingId + /// + /// + /// + /// Event Id which uniquely identifies ServiceHealth event. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// Specifies from when to return events, based on the lastUpdateTime property. For example, queryStartTime = 7/24/2020 OR queryStartTime=7%2F24%2F2020. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> ExistsAsync(string eventTrackingId, string filter = null, string queryStartTime = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(eventTrackingId, nameof(eventTrackingId)); + + using var scope = _subscriptionEventEventClientDiagnostics.CreateScope("SubscriptionEventCollection.Exists"); + scope.Start(); + try + { + var response = await _subscriptionEventEventRestClient.GetBySubscriptionIdAndTrackingIdAsync(Id.SubscriptionId, eventTrackingId, filter, queryStartTime, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId} + /// + /// + /// Operation Id + /// Event_GetBySubscriptionIdAndTrackingId + /// + /// + /// + /// Event Id which uniquely identifies ServiceHealth event. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// Specifies from when to return events, based on the lastUpdateTime property. For example, queryStartTime = 7/24/2020 OR queryStartTime=7%2F24%2F2020. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string eventTrackingId, string filter = null, string queryStartTime = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(eventTrackingId, nameof(eventTrackingId)); + + using var scope = _subscriptionEventEventClientDiagnostics.CreateScope("SubscriptionEventCollection.Exists"); + scope.Start(); + try + { + var response = _subscriptionEventEventRestClient.GetBySubscriptionIdAndTrackingId(Id.SubscriptionId, eventTrackingId, filter, queryStartTime, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + { + return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/SubscriptionEventResource.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/SubscriptionEventResource.cs new file mode 100644 index 0000000000000..606b481e463b2 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/SubscriptionEventResource.cs @@ -0,0 +1,321 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; +using Azure.ResourceManager.Resources; + +namespace Azure.ResourceManager.ResourceHealth +{ + /// + /// A Class representing a SubscriptionEvent along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetSubscriptionEventResource method. + /// Otherwise you can get one from its parent resource using the GetSubscriptionEvent method. + /// + public partial class SubscriptionEventResource : ArmResource + { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string eventTrackingId) + { + var resourceId = $"/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _subscriptionEventEventClientDiagnostics; + private readonly EventRestOperations _subscriptionEventEventRestClient; + private readonly ClientDiagnostics _securityAdvisoryImpactedResourcesClientDiagnostics; + private readonly SecurityAdvisoryImpactedResourcesRestOperations _securityAdvisoryImpactedResourcesRestClient; + private readonly EventData _data; + + /// Initializes a new instance of the class for mocking. + protected SubscriptionEventResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal SubscriptionEventResource(ArmClient client, EventData data) : this(client, data.Id) + { + HasData = true; + _data = data; + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the resource that is the target of operations. + internal SubscriptionEventResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _subscriptionEventEventClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ResourceHealth", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string subscriptionEventEventApiVersion); + _subscriptionEventEventRestClient = new EventRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, subscriptionEventEventApiVersion); + _securityAdvisoryImpactedResourcesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ResourceHealth", ProviderConstants.DefaultProviderNamespace, Diagnostics); + _securityAdvisoryImpactedResourcesRestClient = new SecurityAdvisoryImpactedResourcesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.ResourceHealth/events"; + + /// Gets whether or not the current instance has data. + public virtual bool HasData { get; } + + /// Gets the data representing this Feature. + /// Throws if there is no data loaded in the current instance. + public virtual EventData Data + { + get + { + if (!HasData) + throw new InvalidOperationException("The current instance does not have data, you must call Get first."); + return _data; + } + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); + } + + /// Gets a collection of SubscriptionResourceHealthEventImpactedResources in the SubscriptionEvent. + /// An object representing collection of SubscriptionResourceHealthEventImpactedResources and their operations over a SubscriptionResourceHealthEventImpactedResource. + public virtual SubscriptionResourceHealthEventImpactedResourceCollection GetSubscriptionResourceHealthEventImpactedResources() + { + return GetCachedClient(Client => new SubscriptionResourceHealthEventImpactedResourceCollection(Client, Id)); + } + + /// + /// Gets the specific impacted resource in the subscription by an event. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources/{impactedResourceName} + /// + /// + /// Operation Id + /// ImpactedResources_Get + /// + /// + /// + /// Name of the Impacted Resource. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual async Task> GetSubscriptionResourceHealthEventImpactedResourceAsync(string impactedResourceName, CancellationToken cancellationToken = default) + { + return await GetSubscriptionResourceHealthEventImpactedResources().GetAsync(impactedResourceName, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets the specific impacted resource in the subscription by an event. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources/{impactedResourceName} + /// + /// + /// Operation Id + /// ImpactedResources_Get + /// + /// + /// + /// Name of the Impacted Resource. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual Response GetSubscriptionResourceHealthEventImpactedResource(string impactedResourceName, CancellationToken cancellationToken = default) + { + return GetSubscriptionResourceHealthEventImpactedResources().Get(impactedResourceName, cancellationToken); + } + + /// + /// Service health event in the subscription by event tracking id + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId} + /// + /// + /// Operation Id + /// Event_GetBySubscriptionIdAndTrackingId + /// + /// + /// + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// Specifies from when to return events, based on the lastUpdateTime property. For example, queryStartTime = 7/24/2020 OR queryStartTime=7%2F24%2F2020. + /// The cancellation token to use. + public virtual async Task> GetAsync(string filter = null, string queryStartTime = null, CancellationToken cancellationToken = default) + { + using var scope = _subscriptionEventEventClientDiagnostics.CreateScope("SubscriptionEventResource.Get"); + scope.Start(); + try + { + var response = await _subscriptionEventEventRestClient.GetBySubscriptionIdAndTrackingIdAsync(Id.SubscriptionId, Id.Name, filter, queryStartTime, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new SubscriptionEventResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Service health event in the subscription by event tracking id + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId} + /// + /// + /// Operation Id + /// Event_GetBySubscriptionIdAndTrackingId + /// + /// + /// + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// Specifies from when to return events, based on the lastUpdateTime property. For example, queryStartTime = 7/24/2020 OR queryStartTime=7%2F24%2F2020. + /// The cancellation token to use. + public virtual Response Get(string filter = null, string queryStartTime = null, CancellationToken cancellationToken = default) + { + using var scope = _subscriptionEventEventClientDiagnostics.CreateScope("SubscriptionEventResource.Get"); + scope.Start(); + try + { + var response = _subscriptionEventEventRestClient.GetBySubscriptionIdAndTrackingId(Id.SubscriptionId, Id.Name, filter, queryStartTime, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new SubscriptionEventResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Lists impacted resources in the subscription by an event (Security Advisory). + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/listSecurityAdvisoryImpactedResources + /// + /// + /// Operation Id + /// SecurityAdvisoryImpactedResources_ListBySubscriptionIdAndEventId + /// + /// + /// + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetSecurityAdvisoryImpactedResourcesBySubscriptionIdAndEventIdAsync(string filter = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _securityAdvisoryImpactedResourcesRestClient.CreateListBySubscriptionIdAndEventIdRequest(Id.SubscriptionId, Id.Name, filter); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _securityAdvisoryImpactedResourcesRestClient.CreateListBySubscriptionIdAndEventIdNextPageRequest(nextLink, Id.SubscriptionId, Id.Name, filter); + return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, EventImpactedResourceData.DeserializeEventImpactedResourceData, _securityAdvisoryImpactedResourcesClientDiagnostics, Pipeline, "SubscriptionEventResource.GetSecurityAdvisoryImpactedResourcesBySubscriptionIdAndEventId", "value", "nextLink", cancellationToken); + } + + /// + /// Lists impacted resources in the subscription by an event (Security Advisory). + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/listSecurityAdvisoryImpactedResources + /// + /// + /// Operation Id + /// SecurityAdvisoryImpactedResources_ListBySubscriptionIdAndEventId + /// + /// + /// + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetSecurityAdvisoryImpactedResourcesBySubscriptionIdAndEventId(string filter = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _securityAdvisoryImpactedResourcesRestClient.CreateListBySubscriptionIdAndEventIdRequest(Id.SubscriptionId, Id.Name, filter); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _securityAdvisoryImpactedResourcesRestClient.CreateListBySubscriptionIdAndEventIdNextPageRequest(nextLink, Id.SubscriptionId, Id.Name, filter); + return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, EventImpactedResourceData.DeserializeEventImpactedResourceData, _securityAdvisoryImpactedResourcesClientDiagnostics, Pipeline, "SubscriptionEventResource.GetSecurityAdvisoryImpactedResourcesBySubscriptionIdAndEventId", "value", "nextLink", cancellationToken); + } + + /// + /// Service health event details in the subscription by event tracking id. This can be used to fetch sensitive properties for Security Advisory events + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/fetchEventDetails + /// + /// + /// Operation Id + /// Event_fetchDetailsBySubscriptionIdAndTrackingId + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> FetchDetailsBySubscriptionIdAndTrackingIdAsync(CancellationToken cancellationToken = default) + { + using var scope = _subscriptionEventEventClientDiagnostics.CreateScope("SubscriptionEventResource.FetchDetailsBySubscriptionIdAndTrackingId"); + scope.Start(); + try + { + var response = await _subscriptionEventEventRestClient.FetchDetailsBySubscriptionIdAndTrackingIdAsync(Id.SubscriptionId, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new SubscriptionEventResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Service health event details in the subscription by event tracking id. This can be used to fetch sensitive properties for Security Advisory events + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/fetchEventDetails + /// + /// + /// Operation Id + /// Event_fetchDetailsBySubscriptionIdAndTrackingId + /// + /// + /// + /// The cancellation token to use. + public virtual Response FetchDetailsBySubscriptionIdAndTrackingId(CancellationToken cancellationToken = default) + { + using var scope = _subscriptionEventEventClientDiagnostics.CreateScope("SubscriptionEventResource.FetchDetailsBySubscriptionIdAndTrackingId"); + scope.Start(); + try + { + var response = _subscriptionEventEventRestClient.FetchDetailsBySubscriptionIdAndTrackingId(Id.SubscriptionId, Id.Name, cancellationToken); + return Response.FromValue(new SubscriptionEventResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/SubscriptionResourceHealthEventImpactedResource.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/SubscriptionResourceHealthEventImpactedResource.cs new file mode 100644 index 0000000000000..a66d444e9e6d3 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/SubscriptionResourceHealthEventImpactedResource.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.ResourceHealth +{ + /// + /// A Class representing a SubscriptionResourceHealthEventImpactedResource along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetSubscriptionResourceHealthEventImpactedResource method. + /// Otherwise you can get one from its parent resource using the GetSubscriptionResourceHealthEventImpactedResource method. + /// + public partial class SubscriptionResourceHealthEventImpactedResource : ArmResource + { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string eventTrackingId, string impactedResourceName) + { + var resourceId = $"/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources/{impactedResourceName}"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _subscriptionResourceHealthEventImpactedResourceImpactedResourcesClientDiagnostics; + private readonly ImpactedResourcesRestOperations _subscriptionResourceHealthEventImpactedResourceImpactedResourcesRestClient; + private readonly EventImpactedResourceData _data; + + /// Initializes a new instance of the class for mocking. + protected SubscriptionResourceHealthEventImpactedResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal SubscriptionResourceHealthEventImpactedResource(ArmClient client, EventImpactedResourceData data) : this(client, data.Id) + { + HasData = true; + _data = data; + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the resource that is the target of operations. + internal SubscriptionResourceHealthEventImpactedResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _subscriptionResourceHealthEventImpactedResourceImpactedResourcesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ResourceHealth", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string subscriptionResourceHealthEventImpactedResourceImpactedResourcesApiVersion); + _subscriptionResourceHealthEventImpactedResourceImpactedResourcesRestClient = new ImpactedResourcesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, subscriptionResourceHealthEventImpactedResourceImpactedResourcesApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.ResourceHealth/events/impactedResources"; + + /// Gets whether or not the current instance has data. + public virtual bool HasData { get; } + + /// Gets the data representing this Feature. + /// Throws if there is no data loaded in the current instance. + public virtual EventImpactedResourceData Data + { + get + { + if (!HasData) + throw new InvalidOperationException("The current instance does not have data, you must call Get first."); + return _data; + } + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); + } + + /// + /// Gets the specific impacted resource in the subscription by an event. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources/{impactedResourceName} + /// + /// + /// Operation Id + /// ImpactedResources_Get + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using var scope = _subscriptionResourceHealthEventImpactedResourceImpactedResourcesClientDiagnostics.CreateScope("SubscriptionResourceHealthEventImpactedResource.Get"); + scope.Start(); + try + { + var response = await _subscriptionResourceHealthEventImpactedResourceImpactedResourcesRestClient.GetAsync(Id.SubscriptionId, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new SubscriptionResourceHealthEventImpactedResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets the specific impacted resource in the subscription by an event. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources/{impactedResourceName} + /// + /// + /// Operation Id + /// ImpactedResources_Get + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using var scope = _subscriptionResourceHealthEventImpactedResourceImpactedResourcesClientDiagnostics.CreateScope("SubscriptionResourceHealthEventImpactedResource.Get"); + scope.Start(); + try + { + var response = _subscriptionResourceHealthEventImpactedResourceImpactedResourcesRestClient.Get(Id.SubscriptionId, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new SubscriptionResourceHealthEventImpactedResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/SubscriptionResourceHealthEventImpactedResourceCollection.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/SubscriptionResourceHealthEventImpactedResourceCollection.cs new file mode 100644 index 0000000000000..77cc928e81888 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/SubscriptionResourceHealthEventImpactedResourceCollection.cs @@ -0,0 +1,260 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.ResourceHealth +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetSubscriptionResourceHealthEventImpactedResources method from an instance of . + /// + public partial class SubscriptionResourceHealthEventImpactedResourceCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _subscriptionResourceHealthEventImpactedResourceImpactedResourcesClientDiagnostics; + private readonly ImpactedResourcesRestOperations _subscriptionResourceHealthEventImpactedResourceImpactedResourcesRestClient; + + /// Initializes a new instance of the class for mocking. + protected SubscriptionResourceHealthEventImpactedResourceCollection() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the parent resource that is the target of operations. + internal SubscriptionResourceHealthEventImpactedResourceCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _subscriptionResourceHealthEventImpactedResourceImpactedResourcesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ResourceHealth", SubscriptionResourceHealthEventImpactedResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(SubscriptionResourceHealthEventImpactedResource.ResourceType, out string subscriptionResourceHealthEventImpactedResourceImpactedResourcesApiVersion); + _subscriptionResourceHealthEventImpactedResourceImpactedResourcesRestClient = new ImpactedResourcesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, subscriptionResourceHealthEventImpactedResourceImpactedResourcesApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != "Microsoft.ResourceHealth/events") + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, "Microsoft.ResourceHealth/events"), nameof(id)); + } + + /// + /// Gets the specific impacted resource in the subscription by an event. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources/{impactedResourceName} + /// + /// + /// Operation Id + /// ImpactedResources_Get + /// + /// + /// + /// Name of the Impacted Resource. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetAsync(string impactedResourceName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(impactedResourceName, nameof(impactedResourceName)); + + using var scope = _subscriptionResourceHealthEventImpactedResourceImpactedResourcesClientDiagnostics.CreateScope("SubscriptionResourceHealthEventImpactedResourceCollection.Get"); + scope.Start(); + try + { + var response = await _subscriptionResourceHealthEventImpactedResourceImpactedResourcesRestClient.GetAsync(Id.SubscriptionId, Id.Name, impactedResourceName, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new SubscriptionResourceHealthEventImpactedResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets the specific impacted resource in the subscription by an event. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources/{impactedResourceName} + /// + /// + /// Operation Id + /// ImpactedResources_Get + /// + /// + /// + /// Name of the Impacted Resource. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string impactedResourceName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(impactedResourceName, nameof(impactedResourceName)); + + using var scope = _subscriptionResourceHealthEventImpactedResourceImpactedResourcesClientDiagnostics.CreateScope("SubscriptionResourceHealthEventImpactedResourceCollection.Get"); + scope.Start(); + try + { + var response = _subscriptionResourceHealthEventImpactedResourceImpactedResourcesRestClient.Get(Id.SubscriptionId, Id.Name, impactedResourceName, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new SubscriptionResourceHealthEventImpactedResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Lists impacted resources in the subscription by an event. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources + /// + /// + /// Operation Id + /// ImpactedResources_ListBySubscriptionIdAndEventId + /// + /// + /// + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string filter = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _subscriptionResourceHealthEventImpactedResourceImpactedResourcesRestClient.CreateListBySubscriptionIdAndEventIdRequest(Id.SubscriptionId, Id.Name, filter); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _subscriptionResourceHealthEventImpactedResourceImpactedResourcesRestClient.CreateListBySubscriptionIdAndEventIdNextPageRequest(nextLink, Id.SubscriptionId, Id.Name, filter); + return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new SubscriptionResourceHealthEventImpactedResource(Client, EventImpactedResourceData.DeserializeEventImpactedResourceData(e)), _subscriptionResourceHealthEventImpactedResourceImpactedResourcesClientDiagnostics, Pipeline, "SubscriptionResourceHealthEventImpactedResourceCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Lists impacted resources in the subscription by an event. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources + /// + /// + /// Operation Id + /// ImpactedResources_ListBySubscriptionIdAndEventId + /// + /// + /// + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string filter = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _subscriptionResourceHealthEventImpactedResourceImpactedResourcesRestClient.CreateListBySubscriptionIdAndEventIdRequest(Id.SubscriptionId, Id.Name, filter); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _subscriptionResourceHealthEventImpactedResourceImpactedResourcesRestClient.CreateListBySubscriptionIdAndEventIdNextPageRequest(nextLink, Id.SubscriptionId, Id.Name, filter); + return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new SubscriptionResourceHealthEventImpactedResource(Client, EventImpactedResourceData.DeserializeEventImpactedResourceData(e)), _subscriptionResourceHealthEventImpactedResourceImpactedResourcesClientDiagnostics, Pipeline, "SubscriptionResourceHealthEventImpactedResourceCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources/{impactedResourceName} + /// + /// + /// Operation Id + /// ImpactedResources_Get + /// + /// + /// + /// Name of the Impacted Resource. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> ExistsAsync(string impactedResourceName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(impactedResourceName, nameof(impactedResourceName)); + + using var scope = _subscriptionResourceHealthEventImpactedResourceImpactedResourcesClientDiagnostics.CreateScope("SubscriptionResourceHealthEventImpactedResourceCollection.Exists"); + scope.Start(); + try + { + var response = await _subscriptionResourceHealthEventImpactedResourceImpactedResourcesRestClient.GetAsync(Id.SubscriptionId, Id.Name, impactedResourceName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources/{impactedResourceName} + /// + /// + /// Operation Id + /// ImpactedResources_Get + /// + /// + /// + /// Name of the Impacted Resource. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string impactedResourceName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(impactedResourceName, nameof(impactedResourceName)); + + using var scope = _subscriptionResourceHealthEventImpactedResourceImpactedResourcesClientDiagnostics.CreateScope("SubscriptionResourceHealthEventImpactedResourceCollection.Exists"); + scope.Start(); + try + { + var response = _subscriptionResourceHealthEventImpactedResourceImpactedResourcesRestClient.Get(Id.SubscriptionId, Id.Name, impactedResourceName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + { + return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/TenantEventCollection.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/TenantEventCollection.cs new file mode 100644 index 0000000000000..acc920a83ec6c --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/TenantEventCollection.cs @@ -0,0 +1,276 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; +using Azure.ResourceManager.Resources; + +namespace Azure.ResourceManager.ResourceHealth +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetTenantEvents method from an instance of . + /// + public partial class TenantEventCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _tenantEventEventClientDiagnostics; + private readonly EventRestOperations _tenantEventEventRestClient; + private readonly ClientDiagnostics _tenantEventEventsClientDiagnostics; + private readonly EventsRestOperations _tenantEventEventsRestClient; + + /// Initializes a new instance of the class for mocking. + protected TenantEventCollection() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the parent resource that is the target of operations. + internal TenantEventCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _tenantEventEventClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ResourceHealth", TenantEventResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(TenantEventResource.ResourceType, out string tenantEventEventApiVersion); + _tenantEventEventRestClient = new EventRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, tenantEventEventApiVersion); + _tenantEventEventsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ResourceHealth", TenantEventResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(TenantEventResource.ResourceType, out string tenantEventEventsApiVersion); + _tenantEventEventsRestClient = new EventsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, tenantEventEventsApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != TenantResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, TenantResource.ResourceType), nameof(id)); + } + + /// + /// Service health event in the tenant by event tracking id + /// + /// + /// Request Path + /// /providers/Microsoft.ResourceHealth/events/{eventTrackingId} + /// + /// + /// Operation Id + /// Event_GetByTenantIdAndTrackingId + /// + /// + /// + /// Event Id which uniquely identifies ServiceHealth event. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// Specifies from when to return events, based on the lastUpdateTime property. For example, queryStartTime = 7/24/2020 OR queryStartTime=7%2F24%2F2020. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetAsync(string eventTrackingId, string filter = null, string queryStartTime = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(eventTrackingId, nameof(eventTrackingId)); + + using var scope = _tenantEventEventClientDiagnostics.CreateScope("TenantEventCollection.Get"); + scope.Start(); + try + { + var response = await _tenantEventEventRestClient.GetByTenantIdAndTrackingIdAsync(eventTrackingId, filter, queryStartTime, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new TenantEventResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Service health event in the tenant by event tracking id + /// + /// + /// Request Path + /// /providers/Microsoft.ResourceHealth/events/{eventTrackingId} + /// + /// + /// Operation Id + /// Event_GetByTenantIdAndTrackingId + /// + /// + /// + /// Event Id which uniquely identifies ServiceHealth event. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// Specifies from when to return events, based on the lastUpdateTime property. For example, queryStartTime = 7/24/2020 OR queryStartTime=7%2F24%2F2020. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string eventTrackingId, string filter = null, string queryStartTime = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(eventTrackingId, nameof(eventTrackingId)); + + using var scope = _tenantEventEventClientDiagnostics.CreateScope("TenantEventCollection.Get"); + scope.Start(); + try + { + var response = _tenantEventEventRestClient.GetByTenantIdAndTrackingId(eventTrackingId, filter, queryStartTime, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new TenantEventResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Lists current service health events in the tenant. + /// + /// + /// Request Path + /// /providers/Microsoft.ResourceHealth/events + /// + /// + /// Operation Id + /// Events_ListByTenantId + /// + /// + /// + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// Specifies from when to return events, based on the lastUpdateTime property. For example, queryStartTime = 7/24/2020 OR queryStartTime=7%2F24%2F2020. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string filter = null, string queryStartTime = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _tenantEventEventsRestClient.CreateListByTenantIdRequest(filter, queryStartTime); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _tenantEventEventsRestClient.CreateListByTenantIdNextPageRequest(nextLink, filter, queryStartTime); + return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new TenantEventResource(Client, EventData.DeserializeEventData(e)), _tenantEventEventsClientDiagnostics, Pipeline, "TenantEventCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Lists current service health events in the tenant. + /// + /// + /// Request Path + /// /providers/Microsoft.ResourceHealth/events + /// + /// + /// Operation Id + /// Events_ListByTenantId + /// + /// + /// + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// Specifies from when to return events, based on the lastUpdateTime property. For example, queryStartTime = 7/24/2020 OR queryStartTime=7%2F24%2F2020. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string filter = null, string queryStartTime = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _tenantEventEventsRestClient.CreateListByTenantIdRequest(filter, queryStartTime); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _tenantEventEventsRestClient.CreateListByTenantIdNextPageRequest(nextLink, filter, queryStartTime); + return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new TenantEventResource(Client, EventData.DeserializeEventData(e)), _tenantEventEventsClientDiagnostics, Pipeline, "TenantEventCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /providers/Microsoft.ResourceHealth/events/{eventTrackingId} + /// + /// + /// Operation Id + /// Event_GetByTenantIdAndTrackingId + /// + /// + /// + /// Event Id which uniquely identifies ServiceHealth event. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// Specifies from when to return events, based on the lastUpdateTime property. For example, queryStartTime = 7/24/2020 OR queryStartTime=7%2F24%2F2020. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> ExistsAsync(string eventTrackingId, string filter = null, string queryStartTime = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(eventTrackingId, nameof(eventTrackingId)); + + using var scope = _tenantEventEventClientDiagnostics.CreateScope("TenantEventCollection.Exists"); + scope.Start(); + try + { + var response = await _tenantEventEventRestClient.GetByTenantIdAndTrackingIdAsync(eventTrackingId, filter, queryStartTime, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /providers/Microsoft.ResourceHealth/events/{eventTrackingId} + /// + /// + /// Operation Id + /// Event_GetByTenantIdAndTrackingId + /// + /// + /// + /// Event Id which uniquely identifies ServiceHealth event. + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// Specifies from when to return events, based on the lastUpdateTime property. For example, queryStartTime = 7/24/2020 OR queryStartTime=7%2F24%2F2020. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string eventTrackingId, string filter = null, string queryStartTime = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(eventTrackingId, nameof(eventTrackingId)); + + using var scope = _tenantEventEventClientDiagnostics.CreateScope("TenantEventCollection.Exists"); + scope.Start(); + try + { + var response = _tenantEventEventRestClient.GetByTenantIdAndTrackingId(eventTrackingId, filter, queryStartTime, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + { + return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/TenantEventResource.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/TenantEventResource.cs new file mode 100644 index 0000000000000..1afacecf5b840 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/TenantEventResource.cs @@ -0,0 +1,321 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; +using Azure.ResourceManager.Resources; + +namespace Azure.ResourceManager.ResourceHealth +{ + /// + /// A Class representing a TenantEvent along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetTenantEventResource method. + /// Otherwise you can get one from its parent resource using the GetTenantEvent method. + /// + public partial class TenantEventResource : ArmResource + { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string eventTrackingId) + { + var resourceId = $"/providers/Microsoft.ResourceHealth/events/{eventTrackingId}"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _tenantEventEventClientDiagnostics; + private readonly EventRestOperations _tenantEventEventRestClient; + private readonly ClientDiagnostics _securityAdvisoryImpactedResourcesClientDiagnostics; + private readonly SecurityAdvisoryImpactedResourcesRestOperations _securityAdvisoryImpactedResourcesRestClient; + private readonly EventData _data; + + /// Initializes a new instance of the class for mocking. + protected TenantEventResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal TenantEventResource(ArmClient client, EventData data) : this(client, data.Id) + { + HasData = true; + _data = data; + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the resource that is the target of operations. + internal TenantEventResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _tenantEventEventClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ResourceHealth", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string tenantEventEventApiVersion); + _tenantEventEventRestClient = new EventRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, tenantEventEventApiVersion); + _securityAdvisoryImpactedResourcesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ResourceHealth", ProviderConstants.DefaultProviderNamespace, Diagnostics); + _securityAdvisoryImpactedResourcesRestClient = new SecurityAdvisoryImpactedResourcesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.ResourceHealth/events"; + + /// Gets whether or not the current instance has data. + public virtual bool HasData { get; } + + /// Gets the data representing this Feature. + /// Throws if there is no data loaded in the current instance. + public virtual EventData Data + { + get + { + if (!HasData) + throw new InvalidOperationException("The current instance does not have data, you must call Get first."); + return _data; + } + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); + } + + /// Gets a collection of TenantResourceHealthEventImpactedResources in the TenantEvent. + /// An object representing collection of TenantResourceHealthEventImpactedResources and their operations over a TenantResourceHealthEventImpactedResource. + public virtual TenantResourceHealthEventImpactedResourceCollection GetTenantResourceHealthEventImpactedResources() + { + return GetCachedClient(Client => new TenantResourceHealthEventImpactedResourceCollection(Client, Id)); + } + + /// + /// Gets the specific impacted resource in the tenant by an event. + /// + /// + /// Request Path + /// /providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources/{impactedResourceName} + /// + /// + /// Operation Id + /// ImpactedResources_GetByTenantId + /// + /// + /// + /// Name of the Impacted Resource. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual async Task> GetTenantResourceHealthEventImpactedResourceAsync(string impactedResourceName, CancellationToken cancellationToken = default) + { + return await GetTenantResourceHealthEventImpactedResources().GetAsync(impactedResourceName, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets the specific impacted resource in the tenant by an event. + /// + /// + /// Request Path + /// /providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources/{impactedResourceName} + /// + /// + /// Operation Id + /// ImpactedResources_GetByTenantId + /// + /// + /// + /// Name of the Impacted Resource. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual Response GetTenantResourceHealthEventImpactedResource(string impactedResourceName, CancellationToken cancellationToken = default) + { + return GetTenantResourceHealthEventImpactedResources().Get(impactedResourceName, cancellationToken); + } + + /// + /// Service health event in the tenant by event tracking id + /// + /// + /// Request Path + /// /providers/Microsoft.ResourceHealth/events/{eventTrackingId} + /// + /// + /// Operation Id + /// Event_GetByTenantIdAndTrackingId + /// + /// + /// + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// Specifies from when to return events, based on the lastUpdateTime property. For example, queryStartTime = 7/24/2020 OR queryStartTime=7%2F24%2F2020. + /// The cancellation token to use. + public virtual async Task> GetAsync(string filter = null, string queryStartTime = null, CancellationToken cancellationToken = default) + { + using var scope = _tenantEventEventClientDiagnostics.CreateScope("TenantEventResource.Get"); + scope.Start(); + try + { + var response = await _tenantEventEventRestClient.GetByTenantIdAndTrackingIdAsync(Id.Name, filter, queryStartTime, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new TenantEventResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Service health event in the tenant by event tracking id + /// + /// + /// Request Path + /// /providers/Microsoft.ResourceHealth/events/{eventTrackingId} + /// + /// + /// Operation Id + /// Event_GetByTenantIdAndTrackingId + /// + /// + /// + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// Specifies from when to return events, based on the lastUpdateTime property. For example, queryStartTime = 7/24/2020 OR queryStartTime=7%2F24%2F2020. + /// The cancellation token to use. + public virtual Response Get(string filter = null, string queryStartTime = null, CancellationToken cancellationToken = default) + { + using var scope = _tenantEventEventClientDiagnostics.CreateScope("TenantEventResource.Get"); + scope.Start(); + try + { + var response = _tenantEventEventRestClient.GetByTenantIdAndTrackingId(Id.Name, filter, queryStartTime, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new TenantEventResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Lists impacted resources in the tenant by an event (Security Advisory). + /// + /// + /// Request Path + /// /providers/Microsoft.ResourceHealth/events/{eventTrackingId}/listSecurityAdvisoryImpactedResources + /// + /// + /// Operation Id + /// SecurityAdvisoryImpactedResources_ListByTenantIdAndEventId + /// + /// + /// + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetSecurityAdvisoryImpactedResourcesByTenantIdAndEventIdAsync(string filter = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _securityAdvisoryImpactedResourcesRestClient.CreateListByTenantIdAndEventIdRequest(Id.Name, filter); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _securityAdvisoryImpactedResourcesRestClient.CreateListByTenantIdAndEventIdNextPageRequest(nextLink, Id.Name, filter); + return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, EventImpactedResourceData.DeserializeEventImpactedResourceData, _securityAdvisoryImpactedResourcesClientDiagnostics, Pipeline, "TenantEventResource.GetSecurityAdvisoryImpactedResourcesByTenantIdAndEventId", "value", "nextLink", cancellationToken); + } + + /// + /// Lists impacted resources in the tenant by an event (Security Advisory). + /// + /// + /// Request Path + /// /providers/Microsoft.ResourceHealth/events/{eventTrackingId}/listSecurityAdvisoryImpactedResources + /// + /// + /// Operation Id + /// SecurityAdvisoryImpactedResources_ListByTenantIdAndEventId + /// + /// + /// + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetSecurityAdvisoryImpactedResourcesByTenantIdAndEventId(string filter = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _securityAdvisoryImpactedResourcesRestClient.CreateListByTenantIdAndEventIdRequest(Id.Name, filter); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _securityAdvisoryImpactedResourcesRestClient.CreateListByTenantIdAndEventIdNextPageRequest(nextLink, Id.Name, filter); + return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, EventImpactedResourceData.DeserializeEventImpactedResourceData, _securityAdvisoryImpactedResourcesClientDiagnostics, Pipeline, "TenantEventResource.GetSecurityAdvisoryImpactedResourcesByTenantIdAndEventId", "value", "nextLink", cancellationToken); + } + + /// + /// Service health event details in the tenant by event tracking id. This can be used to fetch sensitive properties for Security Advisory events + /// + /// + /// Request Path + /// /providers/Microsoft.ResourceHealth/events/{eventTrackingId}/fetchEventDetails + /// + /// + /// Operation Id + /// Event_fetchDetailsByTenantIdAndTrackingId + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> FetchDetailsByTenantIdAndTrackingIdAsync(CancellationToken cancellationToken = default) + { + using var scope = _tenantEventEventClientDiagnostics.CreateScope("TenantEventResource.FetchDetailsByTenantIdAndTrackingId"); + scope.Start(); + try + { + var response = await _tenantEventEventRestClient.FetchDetailsByTenantIdAndTrackingIdAsync(Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new TenantEventResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Service health event details in the tenant by event tracking id. This can be used to fetch sensitive properties for Security Advisory events + /// + /// + /// Request Path + /// /providers/Microsoft.ResourceHealth/events/{eventTrackingId}/fetchEventDetails + /// + /// + /// Operation Id + /// Event_fetchDetailsByTenantIdAndTrackingId + /// + /// + /// + /// The cancellation token to use. + public virtual Response FetchDetailsByTenantIdAndTrackingId(CancellationToken cancellationToken = default) + { + using var scope = _tenantEventEventClientDiagnostics.CreateScope("TenantEventResource.FetchDetailsByTenantIdAndTrackingId"); + scope.Start(); + try + { + var response = _tenantEventEventRestClient.FetchDetailsByTenantIdAndTrackingId(Id.Name, cancellationToken); + return Response.FromValue(new TenantEventResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/TenantResourceHealthEventImpactedResource.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/TenantResourceHealthEventImpactedResource.cs new file mode 100644 index 0000000000000..896cf867dc6eb --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/TenantResourceHealthEventImpactedResource.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.ResourceHealth +{ + /// + /// A Class representing a TenantResourceHealthEventImpactedResource along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetTenantResourceHealthEventImpactedResource method. + /// Otherwise you can get one from its parent resource using the GetTenantResourceHealthEventImpactedResource method. + /// + public partial class TenantResourceHealthEventImpactedResource : ArmResource + { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string eventTrackingId, string impactedResourceName) + { + var resourceId = $"/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources/{impactedResourceName}"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _tenantResourceHealthEventImpactedResourceImpactedResourcesClientDiagnostics; + private readonly ImpactedResourcesRestOperations _tenantResourceHealthEventImpactedResourceImpactedResourcesRestClient; + private readonly EventImpactedResourceData _data; + + /// Initializes a new instance of the class for mocking. + protected TenantResourceHealthEventImpactedResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal TenantResourceHealthEventImpactedResource(ArmClient client, EventImpactedResourceData data) : this(client, data.Id) + { + HasData = true; + _data = data; + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the resource that is the target of operations. + internal TenantResourceHealthEventImpactedResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _tenantResourceHealthEventImpactedResourceImpactedResourcesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ResourceHealth", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string tenantResourceHealthEventImpactedResourceImpactedResourcesApiVersion); + _tenantResourceHealthEventImpactedResourceImpactedResourcesRestClient = new ImpactedResourcesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, tenantResourceHealthEventImpactedResourceImpactedResourcesApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.ResourceHealth/events/impactedResources"; + + /// Gets whether or not the current instance has data. + public virtual bool HasData { get; } + + /// Gets the data representing this Feature. + /// Throws if there is no data loaded in the current instance. + public virtual EventImpactedResourceData Data + { + get + { + if (!HasData) + throw new InvalidOperationException("The current instance does not have data, you must call Get first."); + return _data; + } + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); + } + + /// + /// Gets the specific impacted resource in the tenant by an event. + /// + /// + /// Request Path + /// /providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources/{impactedResourceName} + /// + /// + /// Operation Id + /// ImpactedResources_GetByTenantId + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using var scope = _tenantResourceHealthEventImpactedResourceImpactedResourcesClientDiagnostics.CreateScope("TenantResourceHealthEventImpactedResource.Get"); + scope.Start(); + try + { + var response = await _tenantResourceHealthEventImpactedResourceImpactedResourcesRestClient.GetByTenantIdAsync(Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new TenantResourceHealthEventImpactedResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets the specific impacted resource in the tenant by an event. + /// + /// + /// Request Path + /// /providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources/{impactedResourceName} + /// + /// + /// Operation Id + /// ImpactedResources_GetByTenantId + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using var scope = _tenantResourceHealthEventImpactedResourceImpactedResourcesClientDiagnostics.CreateScope("TenantResourceHealthEventImpactedResource.Get"); + scope.Start(); + try + { + var response = _tenantResourceHealthEventImpactedResourceImpactedResourcesRestClient.GetByTenantId(Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new TenantResourceHealthEventImpactedResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/TenantResourceHealthEventImpactedResourceCollection.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/TenantResourceHealthEventImpactedResourceCollection.cs new file mode 100644 index 0000000000000..5657fbfbb14a1 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/TenantResourceHealthEventImpactedResourceCollection.cs @@ -0,0 +1,260 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.ResourceHealth +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetTenantResourceHealthEventImpactedResources method from an instance of . + /// + public partial class TenantResourceHealthEventImpactedResourceCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _tenantResourceHealthEventImpactedResourceImpactedResourcesClientDiagnostics; + private readonly ImpactedResourcesRestOperations _tenantResourceHealthEventImpactedResourceImpactedResourcesRestClient; + + /// Initializes a new instance of the class for mocking. + protected TenantResourceHealthEventImpactedResourceCollection() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the parent resource that is the target of operations. + internal TenantResourceHealthEventImpactedResourceCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _tenantResourceHealthEventImpactedResourceImpactedResourcesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ResourceHealth", TenantResourceHealthEventImpactedResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(TenantResourceHealthEventImpactedResource.ResourceType, out string tenantResourceHealthEventImpactedResourceImpactedResourcesApiVersion); + _tenantResourceHealthEventImpactedResourceImpactedResourcesRestClient = new ImpactedResourcesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, tenantResourceHealthEventImpactedResourceImpactedResourcesApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != "Microsoft.ResourceHealth/events") + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, "Microsoft.ResourceHealth/events"), nameof(id)); + } + + /// + /// Gets the specific impacted resource in the tenant by an event. + /// + /// + /// Request Path + /// /providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources/{impactedResourceName} + /// + /// + /// Operation Id + /// ImpactedResources_GetByTenantId + /// + /// + /// + /// Name of the Impacted Resource. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetAsync(string impactedResourceName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(impactedResourceName, nameof(impactedResourceName)); + + using var scope = _tenantResourceHealthEventImpactedResourceImpactedResourcesClientDiagnostics.CreateScope("TenantResourceHealthEventImpactedResourceCollection.Get"); + scope.Start(); + try + { + var response = await _tenantResourceHealthEventImpactedResourceImpactedResourcesRestClient.GetByTenantIdAsync(Id.Name, impactedResourceName, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new TenantResourceHealthEventImpactedResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets the specific impacted resource in the tenant by an event. + /// + /// + /// Request Path + /// /providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources/{impactedResourceName} + /// + /// + /// Operation Id + /// ImpactedResources_GetByTenantId + /// + /// + /// + /// Name of the Impacted Resource. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string impactedResourceName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(impactedResourceName, nameof(impactedResourceName)); + + using var scope = _tenantResourceHealthEventImpactedResourceImpactedResourcesClientDiagnostics.CreateScope("TenantResourceHealthEventImpactedResourceCollection.Get"); + scope.Start(); + try + { + var response = _tenantResourceHealthEventImpactedResourceImpactedResourcesRestClient.GetByTenantId(Id.Name, impactedResourceName, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new TenantResourceHealthEventImpactedResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Lists impacted resources in the tenant by an event. + /// + /// + /// Request Path + /// /providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources + /// + /// + /// Operation Id + /// ImpactedResources_ListByTenantIdAndEventId + /// + /// + /// + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string filter = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _tenantResourceHealthEventImpactedResourceImpactedResourcesRestClient.CreateListByTenantIdAndEventIdRequest(Id.Name, filter); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _tenantResourceHealthEventImpactedResourceImpactedResourcesRestClient.CreateListByTenantIdAndEventIdNextPageRequest(nextLink, Id.Name, filter); + return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new TenantResourceHealthEventImpactedResource(Client, EventImpactedResourceData.DeserializeEventImpactedResourceData(e)), _tenantResourceHealthEventImpactedResourceImpactedResourcesClientDiagnostics, Pipeline, "TenantResourceHealthEventImpactedResourceCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Lists impacted resources in the tenant by an event. + /// + /// + /// Request Path + /// /providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources + /// + /// + /// Operation Id + /// ImpactedResources_ListByTenantIdAndEventId + /// + /// + /// + /// The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string filter = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _tenantResourceHealthEventImpactedResourceImpactedResourcesRestClient.CreateListByTenantIdAndEventIdRequest(Id.Name, filter); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _tenantResourceHealthEventImpactedResourceImpactedResourcesRestClient.CreateListByTenantIdAndEventIdNextPageRequest(nextLink, Id.Name, filter); + return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new TenantResourceHealthEventImpactedResource(Client, EventImpactedResourceData.DeserializeEventImpactedResourceData(e)), _tenantResourceHealthEventImpactedResourceImpactedResourcesClientDiagnostics, Pipeline, "TenantResourceHealthEventImpactedResourceCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources/{impactedResourceName} + /// + /// + /// Operation Id + /// ImpactedResources_GetByTenantId + /// + /// + /// + /// Name of the Impacted Resource. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> ExistsAsync(string impactedResourceName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(impactedResourceName, nameof(impactedResourceName)); + + using var scope = _tenantResourceHealthEventImpactedResourceImpactedResourcesClientDiagnostics.CreateScope("TenantResourceHealthEventImpactedResourceCollection.Exists"); + scope.Start(); + try + { + var response = await _tenantResourceHealthEventImpactedResourceImpactedResourcesRestClient.GetByTenantIdAsync(Id.Name, impactedResourceName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources/{impactedResourceName} + /// + /// + /// Operation Id + /// ImpactedResources_GetByTenantId + /// + /// + /// + /// Name of the Impacted Resource. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string impactedResourceName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(impactedResourceName, nameof(impactedResourceName)); + + using var scope = _tenantResourceHealthEventImpactedResourceImpactedResourcesClientDiagnostics.CreateScope("TenantResourceHealthEventImpactedResourceCollection.Exists"); + scope.Start(); + try + { + var response = _tenantResourceHealthEventImpactedResourceImpactedResourcesRestClient.GetByTenantId(Id.Name, impactedResourceName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + { + return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Properties/AssemblyInfo.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Properties/AssemblyInfo.cs new file mode 100644 index 0000000000000..c8b832472911e --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Properties/AssemblyInfo.cs @@ -0,0 +1,9 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System.Runtime.CompilerServices; + +[assembly: Azure.Core.AzureResourceProviderNamespace("Microsoft.ResourceHealth")] + +[assembly: InternalsVisibleTo("DynamicProxyGenAssembly2, PublicKey=0024000004800000940000000602000000240000525341310004000001000100c547cac37abd99c8db225ef2f6c8a3602f3b3606cc9891605d02baa56104f4cfc0734aa39b93bf7852f7d9266654753cc297e7d2edfe0bac1cdcf9f717241550e0a7b191195b7667bb4f64bcb8e2121380fd1d9d46ad2d92d2d15605093924cceaf74c4861eff62abf69b9291ed0a340e113be11e6a7d3113e92484cf7045cc7")] +[assembly: InternalsVisibleTo("Azure.ResourceManager.ResourceHealth.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100d15ddcb29688295338af4b7686603fe614abd555e09efba8fb88ee09e1f7b1ccaeed2e8f823fa9eef3fdd60217fc012ea67d2479751a0b8c087a4185541b851bd8b16f8d91b840e51b1cb0ba6fe647997e57429265e85ef62d565db50a69ae1647d54d7bd855e4db3d8a91510e5bcbd0edfbbecaa20a7bd9ae74593daa7b11b4")] diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/autorest.md b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/autorest.md new file mode 100644 index 0000000000000..0cd230ff4e5bc --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/autorest.md @@ -0,0 +1,55 @@ +# Generated code configuration + +Run `dotnet build /t:GenerateCode` to generate code. + +``` yaml +azure-arm: true +csharp: true +library-name: ResourceHealth +namespace: Azure.ResourceManager.ResourceHealth +require: https://github.com/Azure/azure-rest-api-specs/tree/5ad3e3cef3193e676d3d4abe80423515f19c9a1e/specification/resourcehealth/resource-manager/readme.md +# tag: package-preview-2022-10 +output-folder: $(this-folder)/Generated +clear-output-folder: true +skip-csproj: true +modelerfour: + flatten-payloads: false + +rename-mapping: + Link.type: LinkType + +format-by-name-rules: + 'tenantId': 'uuid' + 'ETag': 'etag' + 'location': 'azure-location' + '*Uri': 'Uri' + '*Uris': 'Uri' + +rename-rules: + CPU: Cpu + CPUs: Cpus + Os: OS + Ip: IP + Ips: IPs|ips + ID: Id + IDs: Ids + VM: Vm + VMs: Vms + Vmos: VmOS + VMScaleSet: VmScaleSet + DNS: Dns + VPN: Vpn + NAT: Nat + WAN: Wan + Ipv4: IPv4|ipv4 + Ipv6: IPv6|ipv6 + Ipsec: IPsec|ipsec + SSO: Sso + URI: Uri + Etag: ETag|etag + +request-path-to-resource-name: + /subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources/{impactedResourceName}: SubscriptionResourceHealthEventImpactedResource + /providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources/{impactedResourceName}: TenantResourceHealthEventImpactedResource + +``` \ No newline at end of file diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/tests/Azure.ResourceManager.ResourceHealth.Tests.csproj b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/tests/Azure.ResourceManager.ResourceHealth.Tests.csproj new file mode 100644 index 0000000000000..cdff0dc86a67f --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/tests/Azure.ResourceManager.ResourceHealth.Tests.csproj @@ -0,0 +1,5 @@ + + + + + diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/tests/ResourceHealthManagementTestBase.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/tests/ResourceHealthManagementTestBase.cs new file mode 100644 index 0000000000000..837d2b3f05138 --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/tests/ResourceHealthManagementTestBase.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using Azure.Core; +using Azure.Core.TestFramework; +using Azure.ResourceManager.Resources; +using Azure.ResourceManager.TestFramework; +using NUnit.Framework; +using System.Threading.Tasks; + +namespace Azure.ResourceManager.ResourceHealth.Tests +{ + public class ResourceHealthManagementTestBase : ManagementRecordedTestBase + { + protected ArmClient Client { get; private set; } + + protected ResourceHealthManagementTestBase(bool isAsync, RecordedTestMode mode) + : base(isAsync, mode) + { + } + + protected ResourceHealthManagementTestBase(bool isAsync) + : base(isAsync) + { + } + + [SetUp] + public void CreateCommonClient() + { + Client = GetArmClient(); + } + + protected async Task CreateResourceGroup(SubscriptionResource subscription, string rgNamePrefix, AzureLocation location) + { + string rgName = Recording.GenerateAssetName(rgNamePrefix); + ResourceGroupData input = new ResourceGroupData(location); + var lro = await subscription.GetResourceGroups().CreateOrUpdateAsync(WaitUntil.Completed, rgName, input); + return lro.Value; + } + } +} diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/tests/ResourceHealthManagementTestEnvironment.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/tests/ResourceHealthManagementTestEnvironment.cs new file mode 100644 index 0000000000000..36ad589c85dea --- /dev/null +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/tests/ResourceHealthManagementTestEnvironment.cs @@ -0,0 +1,11 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using Azure.Core.TestFramework; + +namespace Azure.ResourceManager.ResourceHealth.Tests +{ + public class ResourceHealthManagementTestEnvironment : TestEnvironment + { + } +} \ No newline at end of file diff --git a/sdk/resourcehealth/ci.mgmt.yml b/sdk/resourcehealth/ci.mgmt.yml new file mode 100644 index 0000000000000..fb0a27171a692 --- /dev/null +++ b/sdk/resourcehealth/ci.mgmt.yml @@ -0,0 +1,24 @@ +# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. + +trigger: none +pr: + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/resourcehealth/ci.mgmt.yml + - sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/ + +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-client.yml + parameters: + SdkType: mgmtclient + ServiceDirectory: resourcehealth + LimitForPullRequest: true + Artifacts: + - name: Azure.ResourceManager.ResourceHealth + safeName: AzureResourceManagerResourceHealth diff --git a/sdk/resourcehealth/service.projects b/sdk/resourcehealth/service.projects new file mode 100644 index 0000000000000..1756bd53d667a --- /dev/null +++ b/sdk/resourcehealth/service.projects @@ -0,0 +1,25 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/sdk/resourcemanager/ci.mgmt.yml b/sdk/resourcemanager/ci.mgmt.yml index 6b8f772e47bc6..c884a40f30191 100644 --- a/sdk/resourcemanager/ci.mgmt.yml +++ b/sdk/resourcemanager/ci.mgmt.yml @@ -134,6 +134,7 @@ trigger: - sdk/relay/Azure.ResourceManager.Relay - sdk/reservations/Azure.ResourceManager.Reservations - sdk/resourcegraph/Azure.ResourceManager.ResourceGraph + - sdk/resourcehealth/Azure.ResourceManager.ResourceHealth - sdk/resourcemover/Azure.ResourceManager.ResourceMover - sdk/resources/Azure.ResourceManager.Resources - sdk/search/Azure.ResourceManager.Search @@ -163,7 +164,6 @@ trigger: - sdk/websites/Azure.ResourceManager.AppService - sdk/workloadmonitor/Azure.ResourceManager.WorkloadMonitor - sdk/workloads/Azure.ResourceManager.Workloads - - sdk/impact/Azure.ResourceManager.Impact pr: branches: @@ -300,6 +300,7 @@ pr: - sdk/relay/Azure.ResourceManager.Relay - sdk/reservations/Azure.ResourceManager.Reservations - sdk/resourcegraph/Azure.ResourceManager.ResourceGraph + - sdk/resourcehealth/Azure.ResourceManager.ResourceHealth - sdk/resourcemover/Azure.ResourceManager.ResourceMover - sdk/resources/Azure.ResourceManager.Resources - sdk/search/Azure.ResourceManager.Search @@ -329,7 +330,6 @@ pr: - sdk/websites/Azure.ResourceManager.AppService - sdk/workloadmonitor/Azure.ResourceManager.WorkloadMonitor - sdk/workloads/Azure.ResourceManager.Workloads - - sdk/impact/Azure.ResourceManager.Impact extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml diff --git a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/samples/autorest.tests.md b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/samples/autorest.tests.md index c62a0b0cbd03a..2302a7c2321d7 100644 --- a/sdk/voiceservices/Azure.ResourceManager.VoiceServices/samples/autorest.tests.md +++ b/sdk/voiceservices/Azure.ResourceManager.VoiceServices/samples/autorest.tests.md @@ -2,7 +2,7 @@ Run `dotnet build /t:GenerateTests` to generate code. -# Azure.ResourceManager.ElasticSan.Tests +# Azure.ResourceManager.VoiceServices.Tests > see https://aka.ms/autorest ``` yaml From 1a5244343065a04db451e74315d27af69804057a Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Tue, 21 Feb 2023 11:54:53 -0500 Subject: [PATCH 48/72] Increment version for resourcehealth releases (#34420) Increment package version after release of Azure.ResourceManager.ResourceHealth --- .../CHANGELOG.md | 12 +++++++++++- .../src/Azure.ResourceManager.ResourceHealth.csproj | 4 ++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/CHANGELOG.md b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/CHANGELOG.md index 07ab6d218f216..f0e982863d0a3 100644 --- a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/CHANGELOG.md +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.0.0-beta.2 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.0.0-beta.1 (2023-02-21) ### General New Features @@ -14,4 +24,4 @@ This package follows the [new Azure SDK guidelines](https://azure.github.io/azur This package is a Public Preview version, so expect incompatible changes in subsequent releases as we improve the product. To provide feedback, submit an issue in our [Azure SDK for .NET GitHub repo](https://github.com/Azure/azure-sdk-for-net/issues). -> NOTE: For more information about unified authentication, please refer to [Microsoft Azure Identity documentation for .NET](https://docs.microsoft.com//dotnet/api/overview/azure/identity-readme?view=azure-dotnet). \ No newline at end of file +> NOTE: For more information about unified authentication, please refer to [Microsoft Azure Identity documentation for .NET](https://docs.microsoft.com//dotnet/api/overview/azure/identity-readme?view=azure-dotnet). diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Azure.ResourceManager.ResourceHealth.csproj b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Azure.ResourceManager.ResourceHealth.csproj index d76cc12ab41a1..68886433e8b30 100644 --- a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Azure.ResourceManager.ResourceHealth.csproj +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Azure.ResourceManager.ResourceHealth.csproj @@ -1,6 +1,6 @@ - + - 1.0.0-beta.1 + 1.0.0-beta.2 Azure.ResourceManager.ResourceHealth Azure Resource Manager client SDK for Azure resource provider ResourceHealth. azure;management;arm;resource manager;resourcehealth From 539310337a1f1400f53e00997801093c5523ff86 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Tue, 21 Feb 2023 12:04:45 -0500 Subject: [PATCH 49/72] Increment version for purview releases (#34421) Increment package version after release of Azure.ResourceManager.Purview --- sdk/purview/Azure.ResourceManager.Purview/CHANGELOG.md | 10 ++++++++++ .../src/Azure.ResourceManager.Purview.csproj | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/sdk/purview/Azure.ResourceManager.Purview/CHANGELOG.md b/sdk/purview/Azure.ResourceManager.Purview/CHANGELOG.md index 108d35c659287..e2a718a6b9bc7 100644 --- a/sdk/purview/Azure.ResourceManager.Purview/CHANGELOG.md +++ b/sdk/purview/Azure.ResourceManager.Purview/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.1.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.0.1 (2023-02-21) ### Other Changes diff --git a/sdk/purview/Azure.ResourceManager.Purview/src/Azure.ResourceManager.Purview.csproj b/sdk/purview/Azure.ResourceManager.Purview/src/Azure.ResourceManager.Purview.csproj index 69b1d6c141706..85a3445309074 100644 --- a/sdk/purview/Azure.ResourceManager.Purview/src/Azure.ResourceManager.Purview.csproj +++ b/sdk/purview/Azure.ResourceManager.Purview/src/Azure.ResourceManager.Purview.csproj @@ -1,8 +1,8 @@ - 1.0.1 + 1.1.0-beta.1 - 1.0.0 + 1.0.1 Azure.ResourceManager.Purview Microsoft Azure Resource Manager client SDK for Azure resource provider Microsoft.Purview. azure;management;arm;resource manager;purview From e95e59b5773b4f9745685b5c5800f2e9716ce68e Mon Sep 17 00:00:00 2001 From: Amanda Nguyen <48961492+amnguye@users.noreply.github.com> Date: Tue, 21 Feb 2023 09:18:06 -0800 Subject: [PATCH 50/72] Attempt fix GetMetrics_ReturnsExpectedResult failing in live tests (#34356) * Attempt to fix live tests for GetMetrics tests from Target Based Scaling for Queues * Remove unncessary packages * Change test queue from mock queue to fixture queue * Change metric provider constructor to only change for the success metrics test * Correcting test to use fixture queue * Removing duplicate queues for same tests * shorter queue name --- .../tests/QueueMetricsProviderTests.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues/tests/QueueMetricsProviderTests.cs b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues/tests/QueueMetricsProviderTests.cs index 8b99608e3c848..1dfbf0aa1c17a 100644 --- a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues/tests/QueueMetricsProviderTests.cs +++ b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues/tests/QueueMetricsProviderTests.cs @@ -33,6 +33,7 @@ public void SetUp() _loggerProvider = new TestLoggerProvider(); _loggerFactory.AddProvider(_loggerProvider); _mockQueue = new Mock(new Uri("https://test.queue.core.windows.net/testqueue"), new QueueClientOptions()); + _mockQueue.Setup(x => x.Name).Returns("testqueue"); _metricsProvider = new QueueMetricsProvider(_mockQueue.Object, _loggerFactory); } @@ -53,7 +54,8 @@ public void OneTimeTearDown() [Test] public async Task GetMetrics_ReturnsExpectedResult() { - var metrics = await _metricsProvider.GetMetricsAsync(); + QueueMetricsProvider _provider = new QueueMetricsProvider(Fixture.Queue, _loggerFactory); + var metrics = await _provider.GetMetricsAsync(); Assert.AreEqual(0, metrics.QueueLength); Assert.AreEqual(TimeSpan.Zero, metrics.QueueTime); @@ -67,14 +69,14 @@ public async Task GetMetrics_ReturnsExpectedResult() await Task.Delay(TimeSpan.FromSeconds(5)); - metrics = await _metricsProvider.GetMetricsAsync(); + metrics = await _provider.GetMetricsAsync(); Assert.AreEqual(5, metrics.QueueLength); Assert.True(metrics.QueueTime.Ticks > 0); Assert.AreNotEqual(default(DateTime), metrics.Timestamp); // verify non-generic interface works as expected - metrics = (QueueTriggerMetrics)(await _metricsProvider.GetMetricsAsync()); + metrics = (QueueTriggerMetrics)(await _provider.GetMetricsAsync()); Assert.AreEqual(5, metrics.QueueLength); } @@ -101,7 +103,7 @@ public async Task GetMetrics_HandlesStorageExceptions() public class TestFixture : IDisposable { - private const string TestQueuePrefix = "queuelistenertests"; + private const string TestQueuePrefix = "metrictests"; public TestFixture() { From 8c0f6be65df8782fe231a3597f2e3fc4ef2bfefa Mon Sep 17 00:00:00 2001 From: Sean McCullough <44180881+seanmcc-msft@users.noreply.github.com> Date: Tue, 21 Feb 2023 11:43:14 -0600 Subject: [PATCH 51/72] STG 86 GA release prep (#34359) --- sdk/storage/Azure.Storage.Blobs.Batch/CHANGELOG.md | 11 ++--------- .../src/Azure.Storage.Blobs.Batch.csproj | 2 +- .../Azure.Storage.Blobs.ChangeFeed/CHANGELOG.md | 11 ++--------- sdk/storage/Azure.Storage.Blobs/CHANGELOG.md | 3 ++- .../src/Azure.Storage.Blobs.csproj | 2 +- sdk/storage/Azure.Storage.Common/CHANGELOG.md | 11 ++--------- .../src/Azure.Storage.Common.csproj | 2 +- sdk/storage/Azure.Storage.Files.DataLake/CHANGELOG.md | 3 ++- .../src/Azure.Storage.Files.DataLake.csproj | 2 +- sdk/storage/Azure.Storage.Files.Shares/CHANGELOG.md | 11 ++--------- .../src/Azure.Storage.Files.Shares.csproj | 2 +- sdk/storage/Azure.Storage.Queues/CHANGELOG.md | 11 ++--------- .../src/Azure.Storage.Queues.csproj | 2 +- .../CHANGELOG.md | 3 ++- ...soft.Azure.WebJobs.Extensions.Storage.Blobs.csproj | 2 +- .../CHANGELOG.md | 3 ++- ...oft.Azure.WebJobs.Extensions.Storage.Queues.csproj | 2 +- .../CHANGELOG.md | 11 ++--------- .../Microsoft.Azure.WebJobs.Extensions.Storage.csproj | 2 +- 19 files changed, 29 insertions(+), 67 deletions(-) diff --git a/sdk/storage/Azure.Storage.Blobs.Batch/CHANGELOG.md b/sdk/storage/Azure.Storage.Blobs.Batch/CHANGELOG.md index 47699750cae73..ee3b1eb1b7007 100644 --- a/sdk/storage/Azure.Storage.Blobs.Batch/CHANGELOG.md +++ b/sdk/storage/Azure.Storage.Blobs.Batch/CHANGELOG.md @@ -1,14 +1,7 @@ # Release History -## 12.12.0-beta.2 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes +## 12.12.0 (2023-02-21) +- Includes all features from 12.12.0-beta.1. ## 12.12.0-beta.1 (2023-02-07) - Added support for service version 2021-12-02. diff --git a/sdk/storage/Azure.Storage.Blobs.Batch/src/Azure.Storage.Blobs.Batch.csproj b/sdk/storage/Azure.Storage.Blobs.Batch/src/Azure.Storage.Blobs.Batch.csproj index 88780ef9cdb9b..2c45aec2ab5af 100644 --- a/sdk/storage/Azure.Storage.Blobs.Batch/src/Azure.Storage.Blobs.Batch.csproj +++ b/sdk/storage/Azure.Storage.Blobs.Batch/src/Azure.Storage.Blobs.Batch.csproj @@ -6,7 +6,7 @@ Microsoft Azure.Storage.Blobs.Batch client library - 12.12.0-beta.2 + 12.12.0 12.11.0 BlobSDK;$(DefineConstants) diff --git a/sdk/storage/Azure.Storage.Blobs.ChangeFeed/CHANGELOG.md b/sdk/storage/Azure.Storage.Blobs.ChangeFeed/CHANGELOG.md index f8ce60b992e9e..8f5f337586a71 100644 --- a/sdk/storage/Azure.Storage.Blobs.ChangeFeed/CHANGELOG.md +++ b/sdk/storage/Azure.Storage.Blobs.ChangeFeed/CHANGELOG.md @@ -1,14 +1,7 @@ # Release History -## 12.0.0-preview.31 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes +## 12.0.0-preview.31 (2023-02-21) +- This release contains bug fixes to improve quality. ## 12.0.0-preview.30 (2023-02-07) - Added support for service version 2021-12-02. diff --git a/sdk/storage/Azure.Storage.Blobs/CHANGELOG.md b/sdk/storage/Azure.Storage.Blobs/CHANGELOG.md index b4b8cae36ad46..5b3f8d1c2d78e 100644 --- a/sdk/storage/Azure.Storage.Blobs/CHANGELOG.md +++ b/sdk/storage/Azure.Storage.Blobs/CHANGELOG.md @@ -1,6 +1,7 @@ # Release History -## 12.15.0-beta.2 (Unreleased) +## 12.15.0 (2023-02-21) +- Includes all features from 12.15.0-beta.1. - Added BlobDownloadDetails.CreatedOn property. ## 12.15.0-beta.1 (2023-02-07) diff --git a/sdk/storage/Azure.Storage.Blobs/src/Azure.Storage.Blobs.csproj b/sdk/storage/Azure.Storage.Blobs/src/Azure.Storage.Blobs.csproj index ab60da4c535b4..05be174b102b9 100644 --- a/sdk/storage/Azure.Storage.Blobs/src/Azure.Storage.Blobs.csproj +++ b/sdk/storage/Azure.Storage.Blobs/src/Azure.Storage.Blobs.csproj @@ -6,7 +6,7 @@ Microsoft Azure.Storage.Blobs client library - 12.15.0-beta.2 + 12.15.0 12.14.1 BlobSDK;$(DefineConstants) diff --git a/sdk/storage/Azure.Storage.Common/CHANGELOG.md b/sdk/storage/Azure.Storage.Common/CHANGELOG.md index 2194ea0149672..43c4b26de4472 100644 --- a/sdk/storage/Azure.Storage.Common/CHANGELOG.md +++ b/sdk/storage/Azure.Storage.Common/CHANGELOG.md @@ -1,14 +1,7 @@ # Release History -## 12.14.0-beta.2 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes +## 12.14.0 (2023-02-21) +- Includes all features from 12.14.0-beta.1. ## 12.14.0-beta.1 (2023-02-07) - This release contains bug fixes to improve quality. diff --git a/sdk/storage/Azure.Storage.Common/src/Azure.Storage.Common.csproj b/sdk/storage/Azure.Storage.Common/src/Azure.Storage.Common.csproj index c3925fe1903f5..f2c47d5ecb7d1 100644 --- a/sdk/storage/Azure.Storage.Common/src/Azure.Storage.Common.csproj +++ b/sdk/storage/Azure.Storage.Common/src/Azure.Storage.Common.csproj @@ -6,7 +6,7 @@ Microsoft Azure.Storage.Common client library - 12.14.0-beta.2 + 12.14.0 12.13.0 CommonSDK;$(DefineConstants) diff --git a/sdk/storage/Azure.Storage.Files.DataLake/CHANGELOG.md b/sdk/storage/Azure.Storage.Files.DataLake/CHANGELOG.md index 3e622850efe8f..ee7e073431013 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/CHANGELOG.md +++ b/sdk/storage/Azure.Storage.Files.DataLake/CHANGELOG.md @@ -1,6 +1,7 @@ # Release History -## 12.13.0-beta.2 (Unreleased) +## 12.13.0 (2023-02-21) +- Includes all features from 12.13.0-beta.1. - Added FileDownloadDetails.CreatedOn property. ## 12.13.0-beta.1 (2023-02-07) diff --git a/sdk/storage/Azure.Storage.Files.DataLake/src/Azure.Storage.Files.DataLake.csproj b/sdk/storage/Azure.Storage.Files.DataLake/src/Azure.Storage.Files.DataLake.csproj index 12fb250396d59..041dbd7a7e6bf 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/src/Azure.Storage.Files.DataLake.csproj +++ b/sdk/storage/Azure.Storage.Files.DataLake/src/Azure.Storage.Files.DataLake.csproj @@ -6,7 +6,7 @@ Microsoft Azure.Storage.Files.DataLake client library - 12.13.0-beta.2 + 12.13.0 12.12.1 DataLakeSDK;$(DefineConstants) diff --git a/sdk/storage/Azure.Storage.Files.Shares/CHANGELOG.md b/sdk/storage/Azure.Storage.Files.Shares/CHANGELOG.md index 5649ebab57913..5d43adf29001d 100644 --- a/sdk/storage/Azure.Storage.Files.Shares/CHANGELOG.md +++ b/sdk/storage/Azure.Storage.Files.Shares/CHANGELOG.md @@ -1,14 +1,7 @@ # Release History -## 12.13.0-beta.2 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes +## 12.13.0 (2023-02-21) +- Includes all features from 12.13.0-beta.1. ## 12.13.0-beta.1 (2023-02-07) - Added support for service version 2021-12-02. diff --git a/sdk/storage/Azure.Storage.Files.Shares/src/Azure.Storage.Files.Shares.csproj b/sdk/storage/Azure.Storage.Files.Shares/src/Azure.Storage.Files.Shares.csproj index bf936d7f246bc..4e27cd22dd3f5 100644 --- a/sdk/storage/Azure.Storage.Files.Shares/src/Azure.Storage.Files.Shares.csproj +++ b/sdk/storage/Azure.Storage.Files.Shares/src/Azure.Storage.Files.Shares.csproj @@ -6,7 +6,7 @@ Microsoft Azure.Storage.Files.Shares client library - 12.13.0-beta.2 + 12.13.0 12.12.1 FileSDK;$(DefineConstants) diff --git a/sdk/storage/Azure.Storage.Queues/CHANGELOG.md b/sdk/storage/Azure.Storage.Queues/CHANGELOG.md index 6069f2d7f9163..78e33ea238981 100644 --- a/sdk/storage/Azure.Storage.Queues/CHANGELOG.md +++ b/sdk/storage/Azure.Storage.Queues/CHANGELOG.md @@ -1,14 +1,7 @@ # Release History -## 12.13.0-beta.2 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes +## 12.13.0 (2023-02-21) +- Includes all features from 12.13.0-beta.1. ## 12.13.0-beta.1 (2023-02-07) - This release contains bug fixes to improve quality. diff --git a/sdk/storage/Azure.Storage.Queues/src/Azure.Storage.Queues.csproj b/sdk/storage/Azure.Storage.Queues/src/Azure.Storage.Queues.csproj index d20eb69865a71..0ae4c4eda2607 100644 --- a/sdk/storage/Azure.Storage.Queues/src/Azure.Storage.Queues.csproj +++ b/sdk/storage/Azure.Storage.Queues/src/Azure.Storage.Queues.csproj @@ -6,7 +6,7 @@ Microsoft Azure.Storage.Queues client library - 12.13.0-beta.2 + 12.13.0 12.12.0 QueueSDK;$(DefineConstants) diff --git a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/CHANGELOG.md b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/CHANGELOG.md index b8932aa2be247..d6338164fefd9 100644 --- a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/CHANGELOG.md +++ b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/CHANGELOG.md @@ -1,6 +1,7 @@ # Release History -## 5.1.0-beta.2 (Unreleased) +## 5.1.0 (2023-02-21) +- Includes all features from 5.1.0-beta.1. - Added Target Based Scaling support for Storage Queues and Blobs ## 5.1.0-beta.1 (2023-02-07) diff --git a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/src/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs.csproj b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/src/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs.csproj index 205287dba8f98..7808dcc34bdd2 100644 --- a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/src/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs.csproj +++ b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/src/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs.csproj @@ -3,7 +3,7 @@ $(RequiredTargetFrameworks) - 5.1.0-beta.2 + 5.1.0 This extension adds bindings for Storage $(NoWarn);IDT002;IDT003 diff --git a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues/CHANGELOG.md b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues/CHANGELOG.md index 6e9d041a45d46..3bcb852e61ab8 100644 --- a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues/CHANGELOG.md +++ b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues/CHANGELOG.md @@ -1,6 +1,7 @@ # Release History -## 5.1.0-beta.2 (Unreleased) +## 5.1.0 (2023-02-21) +- Includes all features from 5.1.0-beta.1. - Added Target Based Scaling support for Storage Queues and Blobs ## 5.1.0-beta.1 (2023-02-07) diff --git a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues/src/Microsoft.Azure.WebJobs.Extensions.Storage.Queues.csproj b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues/src/Microsoft.Azure.WebJobs.Extensions.Storage.Queues.csproj index 596f69569d91d..87cf572b54b26 100644 --- a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues/src/Microsoft.Azure.WebJobs.Extensions.Storage.Queues.csproj +++ b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues/src/Microsoft.Azure.WebJobs.Extensions.Storage.Queues.csproj @@ -3,7 +3,7 @@ $(RequiredTargetFrameworks) - 5.1.0-beta.2 + 5.1.0 This extension adds bindings for Storage $(NoWarn);IDT002 diff --git a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage/CHANGELOG.md b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage/CHANGELOG.md index 56cdb727e03c1..0f7a3a9fe5f2c 100644 --- a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage/CHANGELOG.md +++ b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage/CHANGELOG.md @@ -1,14 +1,7 @@ # Release History -## 5.1.0-beta.2 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes +## 5.1.0 (2023-02-21) +Please refer to [`Microsoft.Azure.WebJobs.Extension.Storage.Blobs`](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/CHANGELOG.md) and [`Microsoft.Azure.WebJobs.Extension.Storage.Queues`](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues/CHANGELOG.md) for detailed list of changes. ## 5.1.0-beta.1 (2023-02-07) Please refer to [`Microsoft.Azure.WebJobs.Extension.Storage.Blobs`](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/CHANGELOG.md) and [`Microsoft.Azure.WebJobs.Extension.Storage.Queues`](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues/CHANGELOG.md) for detailed list of changes. diff --git a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage/src/Microsoft.Azure.WebJobs.Extensions.Storage.csproj b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage/src/Microsoft.Azure.WebJobs.Extensions.Storage.csproj index 58f18dab94606..05ed27d80d241 100644 --- a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage/src/Microsoft.Azure.WebJobs.Extensions.Storage.csproj +++ b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage/src/Microsoft.Azure.WebJobs.Extensions.Storage.csproj @@ -3,7 +3,7 @@ $(RequiredTargetFrameworks) - 5.1.0-beta.2 + 5.1.0 This extension adds bindings for Storage false From 4c329d73d83d43274243064eb5c32253fdcccf33 Mon Sep 17 00:00:00 2001 From: Jesse Squire Date: Tue, 21 Feb 2023 13:27:14 -0500 Subject: [PATCH 52/72] [Event Hubs Extension] Extensions class rename (#34424) * [Event Hubs Extension] Extensions class rename The focus of these changes is to rename the class used for the async collector extensions to something more generic so that it does not resemble an interface itself and can be used to house additional extensions in the future. * Regen API --- ...t.Azure.WebJobs.Extensions.EventHubs.netstandard2.0.cs | 8 ++++---- ...llectorExtensions.cs => EventHubsWebJobsExtensions.cs} | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) rename sdk/eventhub/Microsoft.Azure.WebJobs.Extensions.EventHubs/src/{Triggers/IAsyncCollectorExtensions.cs => EventHubsWebJobsExtensions.cs} (96%) diff --git a/sdk/eventhub/Microsoft.Azure.WebJobs.Extensions.EventHubs/api/Microsoft.Azure.WebJobs.Extensions.EventHubs.netstandard2.0.cs b/sdk/eventhub/Microsoft.Azure.WebJobs.Extensions.EventHubs/api/Microsoft.Azure.WebJobs.Extensions.EventHubs.netstandard2.0.cs index a0c392eef2a72..560d6ef6fb223 100644 --- a/sdk/eventhub/Microsoft.Azure.WebJobs.Extensions.EventHubs/api/Microsoft.Azure.WebJobs.Extensions.EventHubs.netstandard2.0.cs +++ b/sdk/eventhub/Microsoft.Azure.WebJobs.Extensions.EventHubs/api/Microsoft.Azure.WebJobs.Extensions.EventHubs.netstandard2.0.cs @@ -8,6 +8,10 @@ public EventHubAttribute(string eventHubName) { } public string Connection { get { throw null; } set { } } public string EventHubName { get { throw null; } } } + public static partial class EventHubsWebJobsExtensions + { + public static System.Threading.Tasks.Task AddAsync(this Microsoft.Azure.WebJobs.IAsyncCollector instance, Azure.Messaging.EventHubs.EventData eventData, string partitionKey, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } [Microsoft.Azure.WebJobs.Description.BindingAttribute] [System.AttributeUsageAttribute(System.AttributeTargets.Parameter)] public sealed partial class EventHubTriggerAttribute : System.Attribute @@ -17,10 +21,6 @@ public EventHubTriggerAttribute(string eventHubName) { } public string ConsumerGroup { get { throw null; } set { } } public string EventHubName { get { throw null; } } } - public static partial class IAsyncCollectorExtensions - { - public static System.Threading.Tasks.Task AddAsync(this Microsoft.Azure.WebJobs.IAsyncCollector instance, Azure.Messaging.EventHubs.EventData eventData, string partitionKey, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } } namespace Microsoft.Azure.WebJobs.EventHubs { diff --git a/sdk/eventhub/Microsoft.Azure.WebJobs.Extensions.EventHubs/src/Triggers/IAsyncCollectorExtensions.cs b/sdk/eventhub/Microsoft.Azure.WebJobs.Extensions.EventHubs/src/EventHubsWebJobsExtensions.cs similarity index 96% rename from sdk/eventhub/Microsoft.Azure.WebJobs.Extensions.EventHubs/src/Triggers/IAsyncCollectorExtensions.cs rename to sdk/eventhub/Microsoft.Azure.WebJobs.Extensions.EventHubs/src/EventHubsWebJobsExtensions.cs index 3100f0e4c2865..f20c78b7e1a8e 100644 --- a/sdk/eventhub/Microsoft.Azure.WebJobs.Extensions.EventHubs/src/Triggers/IAsyncCollectorExtensions.cs +++ b/sdk/eventhub/Microsoft.Azure.WebJobs.Extensions.EventHubs/src/EventHubsWebJobsExtensions.cs @@ -9,8 +9,8 @@ namespace Microsoft.Azure.WebJobs { - public static class IAsyncCollectorExtensions - { + public static class EventHubsWebJobsExtensions + { /// /// Add an event to be published using the provided for partition assignment. /// From 109446e7160f3d051de551eb0825d9eea408372c Mon Sep 17 00:00:00 2001 From: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com> Date: Tue, 21 Feb 2023 10:27:25 -0800 Subject: [PATCH 53/72] Don't log receive cancellation as an error (#34399) * Don't log receive cancellation as an error * Fix failing test --- .../src/Diagnostics/ServiceBusEventSource.cs | 10 +++++++ .../src/Receiver/ServiceBusReceiver.cs | 7 +++-- .../tests/Diagnostics/EventSourceLiveTests.cs | 30 +++++++++++++++++++ .../Sender/ServiceBusMessageBatchLiveTests.cs | 5 ++-- 4 files changed, 48 insertions(+), 4 deletions(-) diff --git a/sdk/servicebus/Azure.Messaging.ServiceBus/src/Diagnostics/ServiceBusEventSource.cs b/sdk/servicebus/Azure.Messaging.ServiceBus/src/Diagnostics/ServiceBusEventSource.cs index 84152e9ea53f8..a68ac2901572f 100644 --- a/sdk/servicebus/Azure.Messaging.ServiceBus/src/Diagnostics/ServiceBusEventSource.cs +++ b/sdk/servicebus/Azure.Messaging.ServiceBus/src/Diagnostics/ServiceBusEventSource.cs @@ -195,6 +195,7 @@ protected ServiceBusEventSource() : base(EventSourceName) internal const int ProcessorStoppingCancellationWarningEvent = 113; internal const int RunOperationExceptionVerboseEvent = 114; + internal const int ReceiveMessageCanceledEvent = 115; #endregion // add new event numbers here incrementing from previous @@ -297,6 +298,15 @@ public virtual void ReceiveMessageException( } } + [Event(ReceiveMessageCanceledEvent, Level = EventLevel.Verbose, Message = "A receive operation was cancelled. (Identifier '{0}'). Error Message: '{1}'")] + public void ReceiveMessageCanceled(string identifier, string exception) + { + if (IsEnabled()) + { + WriteEvent(ReceiveMessageCanceledEvent, identifier, exception); + } + } + [NonEvent] public virtual void ReceiveDeferredMessageStart(string identifier, long[] sequenceNumbers) { diff --git a/sdk/servicebus/Azure.Messaging.ServiceBus/src/Receiver/ServiceBusReceiver.cs b/sdk/servicebus/Azure.Messaging.ServiceBus/src/Receiver/ServiceBusReceiver.cs index 12a34b7f9232c..4e8941e48784f 100644 --- a/sdk/servicebus/Azure.Messaging.ServiceBus/src/Receiver/ServiceBusReceiver.cs +++ b/sdk/servicebus/Azure.Messaging.ServiceBus/src/Receiver/ServiceBusReceiver.cs @@ -326,10 +326,13 @@ internal async Task> ReceiveMessagesAsy cancellationToken).ConfigureAwait(false); } catch (OperationCanceledException ex) - when (isProcessor && cancellationToken.IsCancellationRequested) + when (cancellationToken.IsCancellationRequested) { scope.BackdateStart(startTime); - Logger.ProcessorStoppingReceiveCanceled(Identifier, ex.ToString()); + if (isProcessor) + Logger.ProcessorStoppingReceiveCanceled(Identifier, ex.ToString()); + else + Logger.ReceiveMessageCanceled(Identifier, ex.ToString()); scope.Failed(ex); throw; } diff --git a/sdk/servicebus/Azure.Messaging.ServiceBus/tests/Diagnostics/EventSourceLiveTests.cs b/sdk/servicebus/Azure.Messaging.ServiceBus/tests/Diagnostics/EventSourceLiveTests.cs index f896dbbbf5a34..2a6bb46cced20 100644 --- a/sdk/servicebus/Azure.Messaging.ServiceBus/tests/Diagnostics/EventSourceLiveTests.cs +++ b/sdk/servicebus/Azure.Messaging.ServiceBus/tests/Diagnostics/EventSourceLiveTests.cs @@ -628,5 +628,35 @@ public async Task ClosingReceiveLinkDoesNotCloseSessionWithCrossEntityTransactio Assert.False(_listener.EventsById(ServiceBusEventSource.SendLinkClosedEvent).Any(e => e.Payload.Contains(sender.Identifier))); } } + + [Test] + public async Task CancellingReceiveLogsVerboseCancellationEvent() + { + await using (var scope = await ServiceBusScope.CreateWithQueue(enablePartitioning: false, enableSession: false)) + { + await using var client = new ServiceBusClient(TestEnvironment.ServiceBusConnectionString); + var receiver = client.CreateReceiver(scope.QueueName); + + var cts = new CancellationTokenSource(); + cts.CancelAfter(TimeSpan.FromSeconds(1)); + + await AsyncAssert.ThrowsAsync( + async () => await receiver.ReceiveMessageAsync(TimeSpan.FromSeconds(5), cts.Token)); + + _listener.SingleEventById(ServiceBusEventSource.ReceiveMessageCanceledEvent, e => e.Payload.Contains(receiver.Identifier) && e.Level == EventLevel.Verbose); + } + } + + [Test] + public async Task ReceiveFromNonExistentQueueLogsErrorEvent() + { + await using var client = new ServiceBusClient(TestEnvironment.ServiceBusConnectionString); + var receiver = client.CreateReceiver("nonexistentqueue"); + + await AsyncAssert.ThrowsAsync( + async () => await receiver.ReceiveMessageAsync()); + + _listener.SingleEventById(ServiceBusEventSource.ReceiveMessageExceptionEvent, e => e.Payload.Contains(receiver.Identifier) && e.Level == EventLevel.Error); + } } } diff --git a/sdk/servicebus/Azure.Messaging.ServiceBus/tests/Sender/ServiceBusMessageBatchLiveTests.cs b/sdk/servicebus/Azure.Messaging.ServiceBus/tests/Sender/ServiceBusMessageBatchLiveTests.cs index 5478d8d0c86ff..a109f64880647 100644 --- a/sdk/servicebus/Azure.Messaging.ServiceBus/tests/Sender/ServiceBusMessageBatchLiveTests.cs +++ b/sdk/servicebus/Azure.Messaging.ServiceBus/tests/Sender/ServiceBusMessageBatchLiveTests.cs @@ -54,8 +54,9 @@ async Task AddAndSendMessages() if (batch.Count < 4500) { var diff = batch.MaxSizeInBytes - batch.SizeInBytes; - // the difference in size from the max allowable size should be less than the size of 1 message - Assert.IsTrue(diff < 220, diff.ToString()); + // the difference in size from the max allowable size should be less than the size of a single + // instrumented message + Assert.IsTrue(diff < 250, diff.ToString()); } Assert.Greater(batch.Count, 0); await sender.SendMessagesAsync(batch); From d1e6be1616420006afdce1c70e48bf20cea47f98 Mon Sep 17 00:00:00 2001 From: nisha-bhatia <67986960+nisha-bhatia@users.noreply.github.com> Date: Tue, 21 Feb 2023 10:50:37 -0800 Subject: [PATCH 54/72] Update CHANGELOG.md (#34428) --- sdk/monitor/Azure.Monitor.Ingestion/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/monitor/Azure.Monitor.Ingestion/CHANGELOG.md b/sdk/monitor/Azure.Monitor.Ingestion/CHANGELOG.md index bad6943a525dc..7791dac3ec168 100644 --- a/sdk/monitor/Azure.Monitor.Ingestion/CHANGELOG.md +++ b/sdk/monitor/Azure.Monitor.Ingestion/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 1.0.0 (2023-02-17) +## 1.0.0 (2023-02-21) ### Features Added - Added EventHandler to LogsUploadOptions for error handling. From b5a0180fc9ff961030ca8e95ad7cd79759302551 Mon Sep 17 00:00:00 2001 From: Vishwesh Bankwar Date: Tue, 21 Feb 2023 11:36:26 -0800 Subject: [PATCH 55/72] Fix missing logs issue (#34423) * fix missing logs issue due to error * fix other exporters --- .../src/AzureMonitorLogExporter.cs | 13 +++-- .../src/AzureMonitorMetricExporter.cs | 17 ++++-- .../src/AzureMonitorTraceExporter.cs | 13 +++-- .../src/Internals/LogsHelper.cs | 35 +++++++----- .../src/Internals/MetricHelper.cs | 21 +++++-- .../src/Internals/TraceHelper.cs | 57 +++++++++++-------- 6 files changed, 98 insertions(+), 58 deletions(-) diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorLogExporter.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorLogExporter.cs index 19f3aea6efe4d..2f2c0da4437e6 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorLogExporter.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorLogExporter.cs @@ -44,19 +44,24 @@ public override ExportResult Export(in Batch batch) // Prevent Azure Monitor's HTTP operations from being instrumented. using var scope = SuppressInstrumentationScope.Begin(); + ExportResult exportResult = ExportResult.Failure; + try { var telemetryItems = LogsHelper.OtelToAzureMonitorLogs(batch, LogResource, _instrumentationKey); - var exportResult = _transmitter.TrackAsync(telemetryItems, false, CancellationToken.None).EnsureCompleted(); - _persistentStorage?.StopExporterTimerAndTransmitFromStorage(); + if (telemetryItems.Count > 0) + { + exportResult = _transmitter.TrackAsync(telemetryItems, false, CancellationToken.None).EnsureCompleted(); + } - return exportResult; + _persistentStorage?.StopExporterTimerAndTransmitFromStorage(); } catch (Exception ex) { AzureMonitorExporterEventSource.Log.WriteError("FailedToExport", ex); - return ExportResult.Failure; } + + return exportResult; } } } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorMetricExporter.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorMetricExporter.cs index 07aa5f39414d1..945918be58444 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorMetricExporter.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorMetricExporter.cs @@ -44,26 +44,33 @@ public override ExportResult Export(in Batch batch) // Prevent Azure Monitor's HTTP operations from being instrumented. using var scope = SuppressInstrumentationScope.Begin(); + var exportResult = ExportResult.Failure; + try { - var exportResult = ExportResult.Success; // In case of metrics, export is called // even if there are no items in batch if (batch.Count > 0) { var telemetryItems = MetricHelper.OtelToAzureMonitorMetrics(batch, MetricResource, _instrumentationKey); - exportResult = _transmitter.TrackAsync(telemetryItems, false, CancellationToken.None).EnsureCompleted(); + if (telemetryItems.Count > 0) + { + exportResult = _transmitter.TrackAsync(telemetryItems, false, CancellationToken.None).EnsureCompleted(); + } + } + else + { + exportResult = ExportResult.Success; } _persistentStorage?.StopExporterTimerAndTransmitFromStorage(); - - return exportResult; } catch (Exception ex) { AzureMonitorExporterEventSource.Log.WriteError("FailedToExport", ex); - return ExportResult.Failure; } + + return exportResult; } } } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorTraceExporter.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorTraceExporter.cs index 57d89b90fbcc6..fd8f27d01724a 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorTraceExporter.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorTraceExporter.cs @@ -44,19 +44,24 @@ public override ExportResult Export(in Batch batch) // Prevent Azure Monitor's HTTP operations from being instrumented. using var scope = SuppressInstrumentationScope.Begin(); + ExportResult exportResult = ExportResult.Failure; + try { var telemetryItems = TraceHelper.OtelToAzureMonitorTrace(batch, TraceResource, _instrumentationKey); - var exportResult = _transmitter.TrackAsync(telemetryItems, false, CancellationToken.None).EnsureCompleted(); - _persistentStorage?.StopExporterTimerAndTransmitFromStorage(); + if (telemetryItems.Count > 0) + { + exportResult = _transmitter.TrackAsync(telemetryItems, false, CancellationToken.None).EnsureCompleted(); + } - return exportResult; + _persistentStorage?.StopExporterTimerAndTransmitFromStorage(); } catch (Exception ex) { AzureMonitorExporterEventSource.Log.WriteError("FailedToExport", ex); - return ExportResult.Failure; } + + return exportResult; } } } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/LogsHelper.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/LogsHelper.cs index ec4e4426c7ef5..1ea745e9eb2af 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/LogsHelper.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/LogsHelper.cs @@ -31,25 +31,32 @@ internal static List OtelToAzureMonitorLogs(Batch batc foreach (var logRecord in batchLogRecord) { - telemetryItem = new TelemetryItem(logRecord, resource, instrumentationKey); - if (logRecord.Exception != null) + try { - telemetryItem.Data = new MonitorBase + telemetryItem = new TelemetryItem(logRecord, resource, instrumentationKey); + if (logRecord.Exception != null) { - BaseType = "ExceptionData", - BaseData = new TelemetryExceptionData(Version, logRecord), - }; + telemetryItem.Data = new MonitorBase + { + BaseType = "ExceptionData", + BaseData = new TelemetryExceptionData(Version, logRecord), + }; + } + else + { + telemetryItem.Data = new MonitorBase + { + BaseType = "MessageData", + BaseData = new MessageData(Version, logRecord), + }; + } + + telemetryItems.Add(telemetryItem); } - else + catch (Exception ex) { - telemetryItem.Data = new MonitorBase - { - BaseType = "MessageData", - BaseData = new MessageData(Version, logRecord), - }; + AzureMonitorExporterEventSource.Log.WriteError("FailedToConvertLogRecord", ex); } - - telemetryItems.Add(telemetryItem); } return telemetryItems; diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/MetricHelper.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/MetricHelper.cs index e36129adf3b01..d0f23b48557bc 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/MetricHelper.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/MetricHelper.cs @@ -1,6 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +using System; using System.Collections.Generic; using Azure.Monitor.OpenTelemetry.Exporter.Models; @@ -21,14 +22,22 @@ internal static List OtelToAzureMonitorMetrics(Batch batc { foreach (ref readonly var metricPoint in metric.GetMetricPoints()) { - telemetryItems.Add(new TelemetryItem(metricPoint.EndTime.UtcDateTime, resource, instrumentationKey) + try { - Data = new MonitorBase + telemetryItems.Add(new TelemetryItem(metricPoint.EndTime.UtcDateTime, resource, instrumentationKey) { - BaseType = "MetricData", - BaseData = new MetricsData(Version, metric, metricPoint) - } - }); + Data = new MonitorBase + { + BaseType = "MetricData", + BaseData = new MetricsData(Version, metric, metricPoint) + } + }); + } + catch (Exception ex) + { + // TODO: add additional information e.g. meter name etc. + AzureMonitorExporterEventSource.Log.WriteError("FailedToConvertMetricPoint", ex); + } } } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/TraceHelper.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/TraceHelper.cs index e7fa2afb629d0..0a07d56f3c291 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/TraceHelper.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/TraceHelper.cs @@ -26,35 +26,42 @@ internal static List OtelToAzureMonitorTrace(Batch batc foreach (var activity in batchActivity) { - var monitorTags = EnumerateActivityTags(activity); - telemetryItem = new TelemetryItem(activity, ref monitorTags, resource, instrumentationKey); - - // Check for Exceptions events - if (activity.Events.Any()) + try { - AddTelemetryFromActivityEvents(activity, telemetryItem, telemetryItems); - } + var monitorTags = EnumerateActivityTags(activity); + telemetryItem = new TelemetryItem(activity, ref monitorTags, resource, instrumentationKey); + + // Check for Exceptions events + if (activity.Events.Any()) + { + AddTelemetryFromActivityEvents(activity, telemetryItem, telemetryItems); + } + + switch (activity.GetTelemetryType()) + { + case TelemetryType.Request: + telemetryItem.Data = new MonitorBase + { + BaseType = "RequestData", + BaseData = new RequestData(Version, activity, ref monitorTags), + }; + break; + case TelemetryType.Dependency: + telemetryItem.Data = new MonitorBase + { + BaseType = "RemoteDependencyData", + BaseData = new RemoteDependencyData(Version, activity, ref monitorTags), + }; + break; + } - switch (activity.GetTelemetryType()) + monitorTags.Return(); + telemetryItems.Add(telemetryItem); + } + catch (Exception ex) { - case TelemetryType.Request: - telemetryItem.Data = new MonitorBase - { - BaseType = "RequestData", - BaseData = new RequestData(Version, activity, ref monitorTags), - }; - break; - case TelemetryType.Dependency: - telemetryItem.Data = new MonitorBase - { - BaseType = "RemoteDependencyData", - BaseData = new RemoteDependencyData(Version, activity, ref monitorTags), - }; - break; + AzureMonitorExporterEventSource.Log.WriteError("FailedToConvertActivity", ex); } - - monitorTags.Return(); - telemetryItems.Add(telemetryItem); } return telemetryItems; From 5a0d69b4edaafbe08b467e953c65f4d1c0e8d1ae Mon Sep 17 00:00:00 2001 From: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com> Date: Tue, 21 Feb 2023 12:10:43 -0800 Subject: [PATCH 56/72] Fix issue with Max DateTime (#34430) --- .../src/Amqp/AmqpMessageConverter.cs | 151 +++++------------- 1 file changed, 39 insertions(+), 112 deletions(-) diff --git a/sdk/servicebus/Azure.Messaging.ServiceBus/src/Amqp/AmqpMessageConverter.cs b/sdk/servicebus/Azure.Messaging.ServiceBus/src/Amqp/AmqpMessageConverter.cs index 7a2bb39a862fd..30158a24d09ff 100644 --- a/sdk/servicebus/Azure.Messaging.ServiceBus/src/Amqp/AmqpMessageConverter.cs +++ b/sdk/servicebus/Azure.Messaging.ServiceBus/src/Amqp/AmqpMessageConverter.cs @@ -99,25 +99,32 @@ public virtual AmqpMessage BuildAmqpBatchFromMessages( batchEnvelope.MessageFormat = AmqpConstants.AmqpBatchedMessageFormat; } - if (firstMessage?.Properties.MessageId != null) + if ((firstMessage?.Sections & SectionFlag.Properties) > 0) { - batchEnvelope.Properties.MessageId = firstMessage.Properties.MessageId; - } - if (firstMessage?.Properties.GroupId != null) - { - batchEnvelope.Properties.GroupId = firstMessage.Properties.GroupId; - } + if (firstMessage?.Properties.MessageId != null) + { + batchEnvelope.Properties.MessageId = firstMessage.Properties.MessageId; + } - if (firstMessage?.MessageAnnotations.Map[AmqpMessageConstants.PartitionKeyName] != null) - { - batchEnvelope.MessageAnnotations.Map[AmqpMessageConstants.PartitionKeyName] = - firstMessage.MessageAnnotations.Map[AmqpMessageConstants.PartitionKeyName]; + if (firstMessage?.Properties.GroupId != null) + { + batchEnvelope.Properties.GroupId = firstMessage.Properties.GroupId; + } } - if (firstMessage?.MessageAnnotations.Map[AmqpMessageConstants.ViaPartitionKeyName] != null) + if ((firstMessage?.Sections & SectionFlag.MessageAnnotations) > 0) { - batchEnvelope.MessageAnnotations.Map[AmqpMessageConstants.ViaPartitionKeyName] = - firstMessage.MessageAnnotations.Map[AmqpMessageConstants.ViaPartitionKeyName]; + if (firstMessage?.MessageAnnotations.Map[AmqpMessageConstants.PartitionKeyName] != null) + { + batchEnvelope.MessageAnnotations.Map[AmqpMessageConstants.PartitionKeyName] = + firstMessage.MessageAnnotations.Map[AmqpMessageConstants.PartitionKeyName]; + } + + if (firstMessage?.MessageAnnotations.Map[AmqpMessageConstants.ViaPartitionKeyName] != null) + { + batchEnvelope.MessageAnnotations.Map[AmqpMessageConstants.ViaPartitionKeyName] = + firstMessage.MessageAnnotations.Map[AmqpMessageConstants.ViaPartitionKeyName]; + } } batchEnvelope.Batchable = true; @@ -172,12 +179,13 @@ public virtual AmqpMessage SBMessageToAmqpMessage(ServiceBusMessage sbMessage) var message = AmqpAnnotatedMessageConverter.ToAmqpMessage(annotatedMessage); // Reset the resultant TTL as there is special handling for Service Bus - message.Header.Ttl = null; + if ((message.Sections & SectionFlag.Header) > 0) + message.Header.Ttl = null; // If TTL is set, it is used to calculate AbsoluteExpiryTime and CreationTime TimeSpan ttl = annotatedMessage.GetTimeToLive(); - if (ttl != TimeSpan.MaxValue) - { + if (ttl != TimeSpan.MaxValue) + { message.Header.Ttl = (uint)ttl.TotalMilliseconds; message.Properties.CreationTime = DateTime.UtcNow; @@ -189,9 +197,9 @@ public virtual AmqpMessage SBMessageToAmqpMessage(ServiceBusMessage sbMessage) { message.Properties.AbsoluteExpiryTime = AmqpConstants.MaxAbsoluteExpiryTime; } - } - else - { + } + else + { if (annotatedMessage.Properties.CreationTime.HasValue) { message.Properties.CreationTime = annotatedMessage.Properties.CreationTime.Value.UtcDateTime; @@ -200,9 +208,9 @@ public virtual AmqpMessage SBMessageToAmqpMessage(ServiceBusMessage sbMessage) { message.Properties.AbsoluteExpiryTime = annotatedMessage.Properties.AbsoluteExpiryTime.Value.UtcDateTime; } - } + } - return message; + return message; } public virtual ServiceBusReceivedMessage AmqpMessageToSBReceivedMessage(AmqpMessage amqpMessage, bool isPeeked = false) @@ -214,6 +222,15 @@ public virtual ServiceBusReceivedMessage AmqpMessageToSBReceivedMessage(AmqpMess annotatedMessage.Header.DeliveryCount = isPeeked ? annotatedMessage.Header.DeliveryCount : annotatedMessage.Header.DeliveryCount + 1; } + if (annotatedMessage.HasSection(AmqpMessageSection.MessageAnnotations) && + annotatedMessage.MessageAnnotations.TryGetValue(AmqpMessageConstants.LockedUntilName, out object lockedUntil)) + { + if (lockedUntil is DateTime lockedUntilDateTime && lockedUntilDateTime >= DateTimeOffset.MaxValue.UtcDateTime) + { + annotatedMessage.MessageAnnotations[AmqpMessageConstants.LockedUntilName] = DateTimeOffset.MaxValue.UtcDateTime; + } + } + ServiceBusReceivedMessage sbMessage = new ServiceBusReceivedMessage(annotatedMessage); if (GuidUtilities.TryParseGuidBytes(amqpMessage.DeliveryTag, out Guid lockToken)) { @@ -299,95 +316,5 @@ internal static bool TryGetAmqpObjectFromNetObject(object netObject, MappingType return amqpObject != null; } - - private static bool TryGetNetObjectFromAmqpObject(object amqpObject, MappingType mappingType, out object netObject) - { - netObject = null; - if (amqpObject == null) - { - return true; - } - - switch (SerializationUtilities.GetTypeId(amqpObject)) - { - case PropertyValueType.Byte: - case PropertyValueType.SByte: - case PropertyValueType.Int16: - case PropertyValueType.Int32: - case PropertyValueType.Int64: - case PropertyValueType.UInt16: - case PropertyValueType.UInt32: - case PropertyValueType.UInt64: - case PropertyValueType.Single: - case PropertyValueType.Double: - case PropertyValueType.Boolean: - case PropertyValueType.Decimal: - case PropertyValueType.Char: - case PropertyValueType.Guid: - case PropertyValueType.DateTime: - case PropertyValueType.String: - netObject = amqpObject; - break; - case PropertyValueType.Unknown: - if (amqpObject is AmqpSymbol amqpObjectAsAmqpSymbol) - { - netObject = (amqpObjectAsAmqpSymbol).Value; - } - else if (amqpObject is ArraySegment amqpObjectAsArraySegment) - { - ArraySegment binValue = amqpObjectAsArraySegment; - if (binValue.Count == binValue.Array.Length) - { - netObject = binValue.Array; - } - else - { - var buffer = new byte[binValue.Count]; - Buffer.BlockCopy(binValue.Array, binValue.Offset, buffer, 0, binValue.Count); - netObject = buffer; - } - } - else if (amqpObject is DescribedType amqpObjectAsDescribedType) - { - if (amqpObjectAsDescribedType.Descriptor is AmqpSymbol) - { - var amqpSymbol = (AmqpSymbol)amqpObjectAsDescribedType.Descriptor; - if (amqpSymbol.Equals((AmqpSymbol)AmqpMessageConstants.UriName)) - { - netObject = new Uri((string)amqpObjectAsDescribedType.Value); - } - else if (amqpSymbol.Equals((AmqpSymbol)AmqpMessageConstants.TimeSpanName)) - { - netObject = new TimeSpan((long)amqpObjectAsDescribedType.Value); - } - else if (amqpSymbol.Equals((AmqpSymbol)AmqpMessageConstants.DateTimeOffsetName)) - { - netObject = new DateTimeOffset(new DateTime((long)amqpObjectAsDescribedType.Value, DateTimeKind.Utc)); - } - } - } - else if (mappingType == MappingType.ApplicationProperty) - { - throw new SerializationException(Resources.FailedToSerializeUnsupportedType.FormatForUser(amqpObject.GetType().FullName)); - } - else if (amqpObject is AmqpMap map) - { - var dictionary = new Dictionary(); - foreach (var pair in map) - { - dictionary.Add(pair.Key.ToString(), pair.Value); - } - - netObject = dictionary; - } - else - { - netObject = amqpObject; - } - break; - } - - return netObject != null; - } } } From 187519809a05ad91c2cc396e970aa30e87fae4c3 Mon Sep 17 00:00:00 2001 From: Timothy Mothra Date: Tue, 21 Feb 2023 13:31:39 -0800 Subject: [PATCH 57/72] [AzureMonitorExporter] transmitter factory (#34354) * transmitter factory * cleanup --- .../src/AzureMonitorLogExporter.cs | 2 +- .../src/AzureMonitorMetricExporter.cs | 2 +- .../src/AzureMonitorTraceExporter.cs | 2 +- .../src/Internals/TransmitterFactory.cs | 42 +++++++++++++++ .../TransmitterFactoryTests.cs | 53 +++++++++++++++++++ 5 files changed, 98 insertions(+), 3 deletions(-) create mode 100644 sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/TransmitterFactory.cs create mode 100644 sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/TransmitterFactoryTests.cs diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorLogExporter.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorLogExporter.cs index 2f2c0da4437e6..067852d616865 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorLogExporter.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorLogExporter.cs @@ -19,7 +19,7 @@ internal class AzureMonitorLogExporter : BaseExporter private readonly AzureMonitorPersistentStorage? _persistentStorage; private AzureMonitorResource? _resource; - public AzureMonitorLogExporter(AzureMonitorExporterOptions options, TokenCredential? credential = null) : this(new AzureMonitorTransmitter(options, credential)) + public AzureMonitorLogExporter(AzureMonitorExporterOptions options, TokenCredential? credential = null) : this(TransmitterFactory.Instance.Get(options, credential)) { } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorMetricExporter.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorMetricExporter.cs index 945918be58444..672de79c8dd8e 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorMetricExporter.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorMetricExporter.cs @@ -19,7 +19,7 @@ internal class AzureMonitorMetricExporter : BaseExporter private readonly AzureMonitorPersistentStorage? _persistentStorage; private AzureMonitorResource? _resource; - public AzureMonitorMetricExporter(AzureMonitorExporterOptions options, TokenCredential? credential = null) : this(new AzureMonitorTransmitter(options, credential)) + public AzureMonitorMetricExporter(AzureMonitorExporterOptions options, TokenCredential? credential = null) : this(TransmitterFactory.Instance.Get(options, credential)) { } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorTraceExporter.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorTraceExporter.cs index fd8f27d01724a..38dea2ff01097 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorTraceExporter.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorTraceExporter.cs @@ -19,7 +19,7 @@ internal class AzureMonitorTraceExporter : BaseExporter private readonly AzureMonitorPersistentStorage? _persistentStorage; private AzureMonitorResource? _resource; - public AzureMonitorTraceExporter(AzureMonitorExporterOptions options, TokenCredential? credential = null) : this(new AzureMonitorTransmitter(options, credential)) + public AzureMonitorTraceExporter(AzureMonitorExporterOptions options, TokenCredential? credential = null) : this(TransmitterFactory.Instance.Get(options, credential)) { } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/TransmitterFactory.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/TransmitterFactory.cs new file mode 100644 index 0000000000000..25cd1d1895c9d --- /dev/null +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/TransmitterFactory.cs @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Monitor.OpenTelemetry.Exporter.Internals +{ + /// + /// This Factory encapsulates the . + /// An ideal users will create a single exporter for each signal (Logs, Metrics, Traces). + /// This factory should ensure that only one instance of the Transmitter is created for + /// any unique connection string. + /// + internal class TransmitterFactory + { + public static TransmitterFactory Instance = new(); + + internal readonly Dictionary _transmitters = new(); + private readonly object _lockObj = new(); + + public AzureMonitorTransmitter Get(AzureMonitorExporterOptions azureMonitorExporterOptions, TokenCredential? tokenCredential = null) + { + var key = azureMonitorExporterOptions.ConnectionString ?? string.Empty; + + if (!_transmitters.TryGetValue(key, out AzureMonitorTransmitter transmitter)) + { + lock (_lockObj) + { + if (!_transmitters.TryGetValue(key, out transmitter)) + { + transmitter = new AzureMonitorTransmitter(azureMonitorExporterOptions, tokenCredential); + + _transmitters.Add(key, transmitter); + } + } + } + + return transmitter; + } + } +} diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/TransmitterFactoryTests.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/TransmitterFactoryTests.cs new file mode 100644 index 0000000000000..f5c65a3ceecce --- /dev/null +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/TransmitterFactoryTests.cs @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using Azure.Monitor.OpenTelemetry.Exporter.Internals; +using Xunit; + +namespace Azure.Monitor.OpenTelemetry.Exporter.Tests +{ + public class TransmitterFactoryTests + { + /// + /// Users may not specify their connection string in the . + /// In this scenario, the sdk would use the environment variable. + /// + /// This test confirms that the factory correctly handles a null value. + /// + [Fact] + public void VerifyNullConnectionString() + { + Environment.SetEnvironmentVariable("APPLICATIONINSIGHTS_CONNECTION_STRING", "InstrumentationKey=00000000-0000-0000-0000-000000000000;"); + + try + { + var factory = new TransmitterFactory(); + var options = new AzureMonitorExporterOptions(); + + var transmitter = factory.Get(options); + + Assert.Single(factory._transmitters); + Assert.True(factory._transmitters.ContainsKey(string.Empty)); + } + finally + { + Environment.SetEnvironmentVariable("APPLICATIONINSIGHTS_CONNECTION_STRING", null); + } + } + + [Fact] + public void VerifyRepeatedCallsGenerateOnlyOneTransmitter() + { + var factory = new TransmitterFactory(); + var options = new AzureMonitorExporterOptions { ConnectionString = "InstrumentationKey=00000000-0000-0000-0000-000000000000;" }; + + var transmitter1 = factory.Get(options); + var transmitter2 = factory.Get(options); + + Assert.Single(factory._transmitters); + Assert.True(factory._transmitters.ContainsKey(options.ConnectionString)); + Assert.Equal(transmitter1, transmitter2); + } + } +} From 36a42fbff8c0d97fb4f2c8c8c645ee4d26a93986 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Tue, 21 Feb 2023 17:37:28 -0500 Subject: [PATCH 58/72] Update azure-sdk-build-tools Repository Resource Refs in Yaml files (#34425) --- eng/pipelines/mgmt.yml | 2 +- eng/pipelines/templates/stages/archetype-sdk-client.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/eng/pipelines/mgmt.yml b/eng/pipelines/mgmt.yml index c3c6738f10705..bf00da27c91c9 100644 --- a/eng/pipelines/mgmt.yml +++ b/eng/pipelines/mgmt.yml @@ -3,7 +3,7 @@ resources: - repository: azure-sdk-build-tools type: git name: internal/azure-sdk-build-tools - ref: refs/tags/azure-sdk-build-tools_20230206.1 + ref: refs/tags/azure-sdk-build-tools_20230221.2 parameters: - name: ShouldPublishToNuget diff --git a/eng/pipelines/templates/stages/archetype-sdk-client.yml b/eng/pipelines/templates/stages/archetype-sdk-client.yml index 4982ad36f4f4e..ffc3417cc80d7 100644 --- a/eng/pipelines/templates/stages/archetype-sdk-client.yml +++ b/eng/pipelines/templates/stages/archetype-sdk-client.yml @@ -3,7 +3,7 @@ resources: - repository: azure-sdk-build-tools type: git name: internal/azure-sdk-build-tools - ref: refs/tags/azure-sdk-build-tools_20230206.1 + ref: refs/tags/azure-sdk-build-tools_20230221.2 parameters: - name: Artifacts From 0bd7bb06f712966faa1aa7db893670e005a8553d Mon Sep 17 00:00:00 2001 From: Jose Arriaga Maldonado <45773732+joseharriaga@users.noreply.github.com> Date: Tue, 21 Feb 2023 15:03:52 -0800 Subject: [PATCH 59/72] [Text Analytics] Add advanced sample for NER resolutions (#34352) --- .../Azure.AI.TextAnalytics/samples/README.md | 3 +- .../samples/Sample10_MultiLabelClassify.md | 4 +- .../samples/Sample11_DynamicClassify.md | 4 +- .../samples/Sample12_ExtractiveSummarize.md | 4 +- .../samples/Sample13_AbstractiveSummarize.md | 4 +- .../samples/Sample1_DetectLanguage.md | 4 +- ...le2.1_AnalyzeSentimentWithOpinionMining.md | 4 +- .../samples/Sample2_AnalyzeSentiment.md | 4 +- .../samples/Sample3_ExtractKeyPhrases.md | 4 +- .../samples/Sample4_RecognizeEntities.md | 37 +--- .../samples/Sample5_RecognizePiiEntities.md | 4 +- .../Sample6_RecognizeLinkedEntities.md | 4 +- .../Sample7_AnalyzeHealthcareEntities.md | 4 +- .../Sample8_RecognizeCustomEntities.md | 4 +- .../samples/Sample9_SingleLabelClassify.md | 4 +- .../samples/Sample_AnalyzeActions.md | 4 +- .../samples/Sample_LROPolling.md | 4 +- ...Sample_RecognizeEntitiesWithResolutions.md | 172 ++++++++++++++++ .../tests/RecognizeEntitiesTests.cs | 185 +++++++++--------- ...gnizeEntitiesBatchWithResolutionsTest.json | 111 +++++++---- ...EntitiesBatchWithResolutionsTestAsync.json | 111 +++++++---- .../samples/Sample4_RecognizeEntitiesBatch.cs | 33 ---- .../Sample4_RecognizeEntitiesBatchAsync.cs | 33 ---- ...4_RecognizeEntitiesBatchWithResolutions.cs | 155 +++++++++++++++ ...ognizeEntitiesBatchWithResolutionsAsync.cs | 164 ++++++++++++++++ 25 files changed, 774 insertions(+), 290 deletions(-) create mode 100644 sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_RecognizeEntitiesWithResolutions.md create mode 100644 sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample4_RecognizeEntitiesBatchWithResolutions.cs create mode 100644 sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample4_RecognizeEntitiesBatchWithResolutionsAsync.cs diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/README.md b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/README.md index 5ca3aebb0bcb8..b9030c7c3af1f 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/README.md +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/README.md @@ -47,10 +47,11 @@ See the [README][README] of the Text Analytics client library for more informati ## Advanced samples +* [Understand how to work with long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_LROPolling.md) * [Analyze Sentiment with Opinion Mining](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample2.1_AnalyzeSentimentWithOpinionMining.md) * [Running multiple actions in one or more documents](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_AnalyzeActions.md) +* [Resolve entities to standard formats with NER resolutions](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_RecognizeEntitiesWithResolutions.md) * [Recognize PII Entities with specific categories](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample5_RecognizePiiEntitiesWithCategoriesFilter.cs) -* [Polling Long Running Operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_LROPolling.md) * [Mock client](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_MockClient.md) [README]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/README.md \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample10_MultiLabelClassify.md b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample10_MultiLabelClassify.md index 6ef8b2638dd5a..395384ba03830 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample10_MultiLabelClassify.md +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample10_MultiLabelClassify.md @@ -4,7 +4,7 @@ This sample demonstrates how to run a Multi Label Classification action in one o ## Create a `TextAnalyticsClient` -To create a new `TextAnalyticsClient`, you will need the service endpoint and credentials of your Language resource. To authenticate, you can use the [`DefaultAzureCredential`][DefaultAzureCredential], which combines credentials commonly used to authenticate when deployed on Azure, with credentials used to authenticate in a development environment. In this sample, however, you will use an `AzureKeyCredential`, which you can create simply with an API key. +To create a new `TextAnalyticsClient`, you will need the service endpoint and credentials of your Language resource. To authenticate, you can use the [`DefaultAzureCredential`][DefaultAzureCredential], which combines credentials commonly used to authenticate when deployed on Azure, with credentials used to authenticate in a development environment. In this sample, however, you will use an `AzureKeyCredential`, which you can create with an API key. ```C# Snippet:CreateTextAnalyticsClient Uri endpoint = new(""); @@ -87,6 +87,8 @@ await foreach (AnalyzeActionsResult documentsInPage in operation.Value) } ``` +See the [README] of the Text Analytics client library for more information, including useful links and instructions. + [train_model]: https://aka.ms/azsdk/textanalytics/customfunctionalities [DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md [README]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/README.md diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample11_DynamicClassify.md b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample11_DynamicClassify.md index 4661e72b043fd..fd5b1c3f1b171 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample11_DynamicClassify.md +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample11_DynamicClassify.md @@ -4,7 +4,7 @@ This sample demonstrates how to perform dynamic classification. Also known as ze ## Create a `TextAnalyticsClient` -To create a new `TextAnalyticsClient`, you will need the service endpoint and credentials of your Language resource. To authenticate, you can use the [`DefaultAzureCredential`][DefaultAzureCredential], which combines credentials commonly used to authenticate when deployed on Azure, with credentials used to authenticate in a development environment. In this sample, however, you will use an `AzureKeyCredential`, which you can create simply with an API key. +To create a new `TextAnalyticsClient`, you will need the service endpoint and credentials of your Language resource. To authenticate, you can use the [`DefaultAzureCredential`][DefaultAzureCredential], which combines credentials commonly used to authenticate when deployed on Azure, with credentials used to authenticate in a development environment. In this sample, however, you will use an `AzureKeyCredential`, which you can create with an API key. ```C# Snippet:CreateTextAnalyticsClient Uri endpoint = new(""); @@ -122,7 +122,7 @@ foreach (ClassifyDocumentResult documentResult in results) } ``` -See the [README][README] of the Text Analytics client library for more information, including useful links and instructions. +See the [README] of the Text Analytics client library for more information, including useful links and instructions. [DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md [README]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/README.md diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample12_ExtractiveSummarize.md b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample12_ExtractiveSummarize.md index f065235024b4b..9267b26903aca 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample12_ExtractiveSummarize.md +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample12_ExtractiveSummarize.md @@ -4,7 +4,7 @@ This sample demonstrates how to perform extractive summarization, which can gene ## Create a `TextAnalyticsClient` -To create a new `TextAnalyticsClient`, you will need the service endpoint and credentials of your Language resource. To authenticate, you can use the [`DefaultAzureCredential`][DefaultAzureCredential], which combines credentials commonly used to authenticate when deployed on Azure, with credentials used to authenticate in a development environment. In this sample, however, you will use an `AzureKeyCredential`, which you can create simply with an API key. +To create a new `TextAnalyticsClient`, you will need the service endpoint and credentials of your Language resource. To authenticate, you can use the [`DefaultAzureCredential`][DefaultAzureCredential], which combines credentials commonly used to authenticate when deployed on Azure, with credentials used to authenticate in a development environment. In this sample, however, you will use an `AzureKeyCredential`, which you can create with an API key. ```C# Snippet:CreateTextAnalyticsClient Uri endpoint = new(""); @@ -114,7 +114,7 @@ await foreach (ExtractiveSummarizeResultCollection documentsInPage in operation. } ``` -See the [README][README] of the Text Analytics client library for more information, including useful links and instructions. +See the [README] of the Text Analytics client library for more information, including useful links and instructions. [Document_Summarization]: https://learn.microsoft.com/azure/cognitive-services/language-service/summarization/overview?tabs=document-summarization [DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample13_AbstractiveSummarize.md b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample13_AbstractiveSummarize.md index de03a3e41da4c..521b37eb2368a 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample13_AbstractiveSummarize.md +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample13_AbstractiveSummarize.md @@ -4,7 +4,7 @@ This sample demonstrates how to perform abstractive summarization, which can gen ## Create a `TextAnalyticsClient` -To create a new `TextAnalyticsClient`, you will need the service endpoint and credentials of your Language resource. To authenticate, you can use the [`DefaultAzureCredential`][DefaultAzureCredential], which combines credentials commonly used to authenticate when deployed on Azure, with credentials used to authenticate in a development environment. In this sample, however, you will use an `AzureKeyCredential`, which you can create simply with an API key. +To create a new `TextAnalyticsClient`, you will need the service endpoint and credentials of your Language resource. To authenticate, you can use the [`DefaultAzureCredential`][DefaultAzureCredential], which combines credentials commonly used to authenticate when deployed on Azure, with credentials used to authenticate in a development environment. In this sample, however, you will use an `AzureKeyCredential`, which you can create with an API key. ```C# Snippet:CreateTextAnalyticsClient Uri endpoint = new(""); @@ -119,7 +119,7 @@ await foreach (AbstractiveSummarizeResultCollection documentsInPage in operation } ``` -See the [README][README] of the Text Analytics client library for more information, including useful links and instructions. +See the [README] of the Text Analytics client library for more information, including useful links and instructions. [Document_Summarization]: https://learn.microsoft.com/azure/cognitive-services/language-service/summarization/overview?tabs=document-summarization [DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample1_DetectLanguage.md b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample1_DetectLanguage.md index f81e79fc37849..b5380b67a5cb1 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample1_DetectLanguage.md +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample1_DetectLanguage.md @@ -4,7 +4,7 @@ This sample demonstrates how to detect the language of one or more documents. ## Create a `TextAnalyticsClient` -To create a new `TextAnalyticsClient`, you will need the service endpoint and credentials of your Language resource. To authenticate, you can use the [`DefaultAzureCredential`][DefaultAzureCredential], which combines credentials commonly used to authenticate when deployed on Azure, with credentials used to authenticate in a development environment. In this sample, however, you will use an `AzureKeyCredential`, which you can create simply with an API key. +To create a new `TextAnalyticsClient`, you will need the service endpoint and credentials of your Language resource. To authenticate, you can use the [`DefaultAzureCredential`][DefaultAzureCredential], which combines credentials commonly used to authenticate when deployed on Azure, with credentials used to authenticate in a development environment. In this sample, however, you will use an `AzureKeyCredential`, which you can create with an API key. ```C# Snippet:CreateTextAnalyticsClient Uri endpoint = new(""); @@ -210,7 +210,7 @@ Console.WriteLine($" Invalid document count: {documentsLanguage.Statistics.Inva Console.WriteLine($" Transaction count: {documentsLanguage.Statistics.TransactionCount}"); ``` -See the [README][README] of the Text Analytics client library for more information, including useful links and instructions. +See the [README] of the Text Analytics client library for more information, including useful links and instructions. [DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md [README]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/README.md diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample2.1_AnalyzeSentimentWithOpinionMining.md b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample2.1_AnalyzeSentimentWithOpinionMining.md index 3e8c540dde884..0eb80384882d5 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample2.1_AnalyzeSentimentWithOpinionMining.md +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample2.1_AnalyzeSentimentWithOpinionMining.md @@ -9,7 +9,7 @@ In order to do so, we will use the Sentiment Analysis feature of the Text Analyt ## Create a `TextAnalyticsClient` -To create a new `TextAnalyticsClient`, you will need the service endpoint and credentials of your Language resource. To authenticate, you can use the [`DefaultAzureCredential`][DefaultAzureCredential], which combines credentials commonly used to authenticate when deployed on Azure, with credentials used to authenticate in a development environment. In this sample, however, you will use an `AzureKeyCredential`, which you can create simply with an API key. +To create a new `TextAnalyticsClient`, you will need the service endpoint and credentials of your Language resource. To authenticate, you can use the [`DefaultAzureCredential`][DefaultAzureCredential], which combines credentials commonly used to authenticate when deployed on Azure, with credentials used to authenticate in a development environment. In this sample, however, you will use an `AzureKeyCredential`, which you can create with an API key. ```C# Snippet:CreateTextAnalyticsClient Uri endpoint = new(""); @@ -103,5 +103,7 @@ private Dictionary GetComplaints(AnalyzeSentimentResultCollection r } ``` +See the [README] of the Text Analytics client library for more information, including useful links and instructions. + [DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md [README]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/README.md diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample2_AnalyzeSentiment.md b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample2_AnalyzeSentiment.md index af9ef84862c08..0d451a966aeb9 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample2_AnalyzeSentiment.md +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample2_AnalyzeSentiment.md @@ -4,7 +4,7 @@ This sample demonstrates how to analyze the sentiment in one or more documents. ## Create a `TextAnalyticsClient` -To create a new `TextAnalyticsClient`, you will need the service endpoint and credentials of your Language resource. To authenticate, you can use the [`DefaultAzureCredential`][DefaultAzureCredential], which combines credentials commonly used to authenticate when deployed on Azure, with credentials used to authenticate in a development environment. In this sample, however, you will use an `AzureKeyCredential`, which you can create simply with an API key. +To create a new `TextAnalyticsClient`, you will need the service endpoint and credentials of your Language resource. To authenticate, you can use the [`DefaultAzureCredential`][DefaultAzureCredential], which combines credentials commonly used to authenticate when deployed on Azure, with credentials used to authenticate in a development environment. In this sample, however, you will use an `AzureKeyCredential`, which you can create with an API key. ```C# Snippet:CreateTextAnalyticsClient Uri endpoint = new(""); @@ -205,5 +205,7 @@ Console.WriteLine($" Invalid document count: {sentimentPerDocuments.Statistics. Console.WriteLine($" Transaction count: {sentimentPerDocuments.Statistics.TransactionCount}"); ``` +See the [README] of the Text Analytics client library for more information, including useful links and instructions. + [DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md [README]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/README.md diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample3_ExtractKeyPhrases.md b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample3_ExtractKeyPhrases.md index 792ea721e23bd..0666fbfc4ff02 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample3_ExtractKeyPhrases.md +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample3_ExtractKeyPhrases.md @@ -4,7 +4,7 @@ This sample demonstrates how to extract key phrases from one or more documents. ## Create a `TextAnalyticsClient` -To create a new `TextAnalyticsClient`, you will need the service endpoint and credentials of your Language resource. To authenticate, you can use the [`DefaultAzureCredential`][DefaultAzureCredential], which combines credentials commonly used to authenticate when deployed on Azure, with credentials used to authenticate in a development environment. In this sample, however, you will use an `AzureKeyCredential`, which you can create simply with an API key. +To create a new `TextAnalyticsClient`, you will need the service endpoint and credentials of your Language resource. To authenticate, you can use the [`DefaultAzureCredential`][DefaultAzureCredential], which combines credentials commonly used to authenticate when deployed on Azure, with credentials used to authenticate in a development environment. In this sample, however, you will use an `AzureKeyCredential`, which you can create with an API key. ```C# Snippet:CreateTextAnalyticsClient Uri endpoint = new(""); @@ -194,5 +194,7 @@ Console.WriteLine($" Transaction count: {keyPhrasesInDocuments.Statistics.Trans Console.WriteLine(); ``` +See the [README] of the Text Analytics client library for more information, including useful links and instructions. + [DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md [README]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/README.md diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample4_RecognizeEntities.md b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample4_RecognizeEntities.md index e9f1a421ea991..5e222b3da42a5 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample4_RecognizeEntities.md +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample4_RecognizeEntities.md @@ -4,7 +4,7 @@ This sample demonstrates how to recognize named entities in one or more document ## Create a `TextAnalyticsClient` -To create a new `TextAnalyticsClient`, you will need the service endpoint and credentials of your Language resource. To authenticate, you can use the [`DefaultAzureCredential`][DefaultAzureCredential], which combines credentials commonly used to authenticate when deployed on Azure, with credentials used to authenticate in a development environment. In this sample, however, you will use an `AzureKeyCredential`, which you can create simply with an API key. +To create a new `TextAnalyticsClient`, you will need the service endpoint and credentials of your Language resource. To authenticate, you can use the [`DefaultAzureCredential`][DefaultAzureCredential], which combines credentials commonly used to authenticate when deployed on Azure, with credentials used to authenticate in a development environment. In this sample, however, you will use an `AzureKeyCredential`, which you can create with an API key. ```C# Snippet:CreateTextAnalyticsClient Uri endpoint = new(""); @@ -199,39 +199,6 @@ foreach (RecognizeEntitiesResult documentResult in entitiesInDocuments) if (!string.IsNullOrEmpty(entity.SubCategory)) Console.WriteLine($" SubCategory: {entity.SubCategory}"); Console.WriteLine($" Confidence score: {entity.ConfidenceScore}"); - if (entity.Resolutions.Count > 0) - { - Console.WriteLine($" Resolutions:"); - foreach (BaseResolution resolution in entity.Resolutions) - { - // There are several different kinds of resolutions. In this particular sample, we are - // interested in viewing those of type DateTimeResolution and TemporalSpanResolution. - - if (resolution is DateTimeResolution dateTime) - { - Console.WriteLine($" Value: {dateTime.Value} "); - Console.WriteLine($" DateTimeSubKind: {dateTime.DateTimeSubKind} "); - if (!string.IsNullOrEmpty(dateTime.Timex)) - Console.WriteLine($" Timex: {dateTime.Timex}"); - if (dateTime.Modifier is not null) - Console.WriteLine($" Modifier: {dateTime.Modifier}"); - } - - if (resolution is TemporalSpanResolution temporalSpan) - { - if (!string.IsNullOrEmpty(temporalSpan.Begin)) - Console.WriteLine($" Begin: {temporalSpan.Begin}"); - if (!string.IsNullOrEmpty(temporalSpan.End)) - Console.WriteLine($" End: {temporalSpan.End}"); - if (!string.IsNullOrEmpty(temporalSpan.Duration)) - Console.WriteLine($" Duration: {temporalSpan.Duration}"); - if (!string.IsNullOrEmpty(temporalSpan.End)) - Console.WriteLine($" Timex: {temporalSpan.Timex}"); - if (temporalSpan.Modifier is not null) - Console.WriteLine($" Modifier: {temporalSpan.Modifier}"); - } - } - } Console.WriteLine(); } @@ -249,7 +216,7 @@ Console.WriteLine($" Transaction count: {entitiesInDocuments.Statistics.Transac Console.WriteLine(); ``` -See the [README][README] of the Text Analytics client library for more information, including useful links and instructions. +See the [README] of the Text Analytics client library for more information, including useful links and instructions. [DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md [README]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/README.md diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample5_RecognizePiiEntities.md b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample5_RecognizePiiEntities.md index b361a235bc94a..447473dd683d3 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample5_RecognizePiiEntities.md +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample5_RecognizePiiEntities.md @@ -4,7 +4,7 @@ This sample demonstrates how to recognize Personally Identifiable Information (P ## Create a `TextAnalyticsClient` -To create a new `TextAnalyticsClient`, you will need the service endpoint and credentials of your Language resource. To authenticate, you can use the [`DefaultAzureCredential`][DefaultAzureCredential], which combines credentials commonly used to authenticate when deployed on Azure, with credentials used to authenticate in a development environment. In this sample, however, you will use an `AzureKeyCredential`, which you can create simply with an API key. +To create a new `TextAnalyticsClient`, you will need the service endpoint and credentials of your Language resource. To authenticate, you can use the [`DefaultAzureCredential`][DefaultAzureCredential], which combines credentials commonly used to authenticate when deployed on Azure, with credentials used to authenticate in a development environment. In this sample, however, you will use an `AzureKeyCredential`, which you can create with an API key. ```C# Snippet:CreateTextAnalyticsClient Uri endpoint = new(""); @@ -197,5 +197,7 @@ Console.WriteLine($" Transaction count: {entititesPerDocuments.Statistics.Trans Console.WriteLine(); ``` +See the [README] of the Text Analytics client library for more information, including useful links and instructions. + [DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md [README]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/README.md diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample6_RecognizeLinkedEntities.md b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample6_RecognizeLinkedEntities.md index d1276a1dc6f55..07786f7c044af 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample6_RecognizeLinkedEntities.md +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample6_RecognizeLinkedEntities.md @@ -4,7 +4,7 @@ This sample demonstrates how to recognize linked entities in one or more documen ## Create a `TextAnalyticsClient` -To create a new `TextAnalyticsClient`, you will need the service endpoint and credentials of your Language resource. To authenticate, you can use the [`DefaultAzureCredential`][DefaultAzureCredential], which combines credentials commonly used to authenticate when deployed on Azure, with credentials used to authenticate in a development environment. In this sample, however, you will use an `AzureKeyCredential`, which you can create simply with an API key. +To create a new `TextAnalyticsClient`, you will need the service endpoint and credentials of your Language resource. To authenticate, you can use the [`DefaultAzureCredential`][DefaultAzureCredential], which combines credentials commonly used to authenticate when deployed on Azure, with credentials used to authenticate in a development environment. In this sample, however, you will use an `AzureKeyCredential`, which you can create with an API key. ```C# Snippet:CreateTextAnalyticsClient Uri endpoint = new(""); @@ -217,5 +217,7 @@ Console.WriteLine($" Transaction count: {entitiesPerDocuments.Statistics.Transa Console.WriteLine(); ``` +See the [README] of the Text Analytics client library for more information, including useful links and instructions. + [DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md [README]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/README.md diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample7_AnalyzeHealthcareEntities.md b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample7_AnalyzeHealthcareEntities.md index b00b2b3e850c1..b33e72f77233a 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample7_AnalyzeHealthcareEntities.md +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample7_AnalyzeHealthcareEntities.md @@ -4,7 +4,7 @@ This sample demonstrates how to analyze healthcare entities in one or more docum ## Create a `TextAnalyticsClient` -To create a new `TextAnalyticsClient`, you will need the service endpoint and credentials of your Language resource. To authenticate, you can use the [`DefaultAzureCredential`][DefaultAzureCredential], which combines credentials commonly used to authenticate when deployed on Azure, with credentials used to authenticate in a development environment. In this sample, however, you will use an `AzureKeyCredential`, which you can create simply with an API key. +To create a new `TextAnalyticsClient`, you will need the service endpoint and credentials of your Language resource. To authenticate, you can use the [`DefaultAzureCredential`][DefaultAzureCredential], which combines credentials commonly used to authenticate when deployed on Azure, with credentials used to authenticate in a development environment. In this sample, however, you will use an `AzureKeyCredential`, which you can create with an API key. ```C# Snippet:CreateTextAnalyticsClient Uri endpoint = new(""); @@ -156,7 +156,7 @@ await foreach (AnalyzeHealthcareEntitiesResultCollection documentsInPage in oper } ``` -See the [README][README] of the Text Analytics client library for more information, including useful links and instructions. +See the [README] of the Text Analytics client library for more information, including useful links and instructions. [DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md [README]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/README.md diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample8_RecognizeCustomEntities.md b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample8_RecognizeCustomEntities.md index 4f27c3baf7c5c..64b1193839240 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample8_RecognizeCustomEntities.md +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample8_RecognizeCustomEntities.md @@ -4,7 +4,7 @@ This sample demonstrates how to recognize custom entities in one or more documen ## Create a `TextAnalyticsClient` -To create a new `TextAnalyticsClient`, you will need the service endpoint and credentials of your Language resource. To authenticate, you can use the [`DefaultAzureCredential`][DefaultAzureCredential], which combines credentials commonly used to authenticate when deployed on Azure, with credentials used to authenticate in a development environment. In this sample, however, you will use an `AzureKeyCredential`, which you can create simply with an API key. +To create a new `TextAnalyticsClient`, you will need the service endpoint and credentials of your Language resource. To authenticate, you can use the [`DefaultAzureCredential`][DefaultAzureCredential], which combines credentials commonly used to authenticate when deployed on Azure, with credentials used to authenticate in a development environment. In this sample, however, you will use an `AzureKeyCredential`, which you can create with an API key. ```C# Snippet:CreateTextAnalyticsClient Uri endpoint = new(""); @@ -113,6 +113,8 @@ await foreach (AnalyzeActionsResult documentsInPage in operation.Value) } ``` +See the [README] of the Text Analytics client library for more information, including useful links and instructions. + [train_model]: https://aka.ms/azsdk/textanalytics/customentityrecognition [azure_language_studio]: https://language.azure.com/ diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample9_SingleLabelClassify.md b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample9_SingleLabelClassify.md index 157a1b282b2d0..ab44dcd1c5561 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample9_SingleLabelClassify.md +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample9_SingleLabelClassify.md @@ -4,7 +4,7 @@ This sample demonstrates how to run a single label classification action in one ## Create a `TextAnalyticsClient` -To create a new `TextAnalyticsClient`, you will need the service endpoint and credentials of your Language resource. To authenticate, you can use the [`DefaultAzureCredential`][DefaultAzureCredential], which combines credentials commonly used to authenticate when deployed on Azure, with credentials used to authenticate in a development environment. In this sample, however, you will use an `AzureKeyCredential`, which you can create simply with an API key. +To create a new `TextAnalyticsClient`, you will need the service endpoint and credentials of your Language resource. To authenticate, you can use the [`DefaultAzureCredential`][DefaultAzureCredential], which combines credentials commonly used to authenticate when deployed on Azure, with credentials used to authenticate in a development environment. In this sample, however, you will use an `AzureKeyCredential`, which you can create with an API key. ```C# Snippet:CreateTextAnalyticsClient Uri endpoint = new(""); @@ -80,6 +80,8 @@ await foreach (AnalyzeActionsResult documentsInPage in operation.Value) } ``` +See the [README] of the Text Analytics client library for more information, including useful links and instructions. + [train_model]: https://aka.ms/azsdk/textanalytics/customfunctionalities [DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md [README]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/README.md diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_AnalyzeActions.md b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_AnalyzeActions.md index 65f5b63731858..bb3697f7f9c6e 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_AnalyzeActions.md +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_AnalyzeActions.md @@ -13,7 +13,7 @@ This sample demonstrates how to run multiple actions in one or more documents. A ## Create a `TextAnalyticsClient` -To create a new `TextAnalyticsClient`, you will need the service endpoint and credentials of your Language resource. To authenticate, you can use the [`DefaultAzureCredential`][DefaultAzureCredential], which combines credentials commonly used to authenticate when deployed on Azure, with credentials used to authenticate in a development environment. In this sample, however, you will use an `AzureKeyCredential`, which you can create simply with an API key. +To create a new `TextAnalyticsClient`, you will need the service endpoint and credentials of your Language resource. To authenticate, you can use the [`DefaultAzureCredential`][DefaultAzureCredential], which combines credentials commonly used to authenticate when deployed on Azure, with credentials used to authenticate in a development environment. In this sample, however, you will use an `AzureKeyCredential`, which you can create with an API key. ```C# Snippet:CreateTextAnalyticsClient Uri endpoint = new(""); @@ -117,5 +117,7 @@ To run multiple actions in multiple documents, call `StartAnalyzeActionsAsync` o } ``` +See the [README] of the Text Analytics client library for more information, including useful links and instructions. + [DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md [README]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/README.md diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_LROPolling.md b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_LROPolling.md index 4a0b60021b50c..7ffdf9f16139d 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_LROPolling.md +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_LROPolling.md @@ -4,7 +4,7 @@ This sample demonstrates how to work with long-running operations, which consist ## Create a `TextAnalyticsClient` -To create a new `TextAnalyticsClient`, you will need the service endpoint and credentials of your Language resource. To authenticate, you can use the [`DefaultAzureCredential`][DefaultAzureCredential], which combines credentials commonly used to authenticate when deployed on Azure, with credentials used to authenticate in a development environment. In this sample, however, you will use an `AzureKeyCredential`, which you can create simply with an API key. +To create a new `TextAnalyticsClient`, you will need the service endpoint and credentials of your Language resource. To authenticate, you can use the [`DefaultAzureCredential`][DefaultAzureCredential], which combines credentials commonly used to authenticate when deployed on Azure, with credentials used to authenticate in a development environment. In this sample, however, you will use an `AzureKeyCredential`, which you can create with an API key. ```C# Snippet:CreateTextAnalyticsClient Uri endpoint = new(""); @@ -55,7 +55,7 @@ while (true) } ``` -See the [README][README] of the Text Analytics client library for more information, including useful links and instructions. +See the [README] of the Text Analytics client library for more information, including useful links and instructions. [analyze-healthcare-entities]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample7_AnalyzeHealthcareEntities.md [DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_RecognizeEntitiesWithResolutions.md b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_RecognizeEntitiesWithResolutions.md new file mode 100644 index 0000000000000..524c8aae37a25 --- /dev/null +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_RecognizeEntitiesWithResolutions.md @@ -0,0 +1,172 @@ +# Resolve entities to standard formats with NER resolutions + +This sample demonstrates how to resolve entities in a document by using the named entity recognition (NER) feature of the Azure Cognitive Service for Language. NER resolutions provide standard, predictable formats for common types and concepts (such as dates, quantities, and dimensions) to help you retrieve and process information from documents more efficiently. To learn more about NER resolutions, see [here][NER_Resolutions]. + +## Create a `TextAnalyticsClient` + +To create a new `TextAnalyticsClient`, you will need the service endpoint and credentials of your Language resource. To authenticate, you can use the [`DefaultAzureCredential`][DefaultAzureCredential], which combines credentials commonly used to authenticate when deployed on Azure, with credentials used to authenticate in a development environment. In this sample, however, you will use an `AzureKeyCredential`, which you can create with an API key. + +```C# Snippet:CreateTextAnalyticsClient +Uri endpoint = new(""); +AzureKeyCredential credential = new(""); +TextAnalyticsClient client = new(endpoint, credential); +``` + +The values of the `endpoint` and `apiKey` variables can be retrieved from environment variables, configuration settings, or any other secure approach that works for your application. + +## Use NER resolutions + +In this sample, we will use the following documents to try to illustrate several different types of resolutions. + +```C# Snippet:Sample4_RecognizeEntitiesBatchWithResolutionsAsync_GetDocuments +string documentA = "The dog is 14 inches tall and weighs 20 lbs. It is 5 years old."; +string documentB = "This is the first aircraft of its kind. It can fly at over 1,300 mph and carry 65-80 passengers."; +string documentC = "The apartment (840 sqft with 2 bedrooms) costs 2,000 USD per month and will be available on 11/01/2022."; +string documentD = "Mix 1 cup of sugar. Bake for 60 minutes in an oven preheated to 350 degrees F."; +string documentE = "They retrieved 200 terabytes of data from 10/24/2022 to 10/28/2022."; + +List batchedDocuments = new() { + new TextDocumentInput("1", documentA), + new TextDocumentInput("2", documentB), + new TextDocumentInput("3", documentC), + new TextDocumentInput("4", documentD), + new TextDocumentInput("5", documentE), +}; +``` + +NER resolutions is a new preview feature that is currently only supported starting with model version `2022-10-01-preview`. When using the `TextAnalyticsClient`, you can specify the model version that you want to use via a `TextAnalyticsRequestOptions` object. + +```C# Snippet:Sample4_RecognizeEntitiesBatchWithResolutionsAsync_SetModelVersion +TextAnalyticsRequestOptions options = new() { ModelVersion = "2022-10-01-preview" }; +``` + +To recognize and resolve entities in one or more documents, call `RecognizeEntities` or `RecognizeEntitiesBatch` on the `TextAnalyticsClient`, passing the documents and the `TextAnalyticsRequestOptions` object as parameters. + +```C# Snippet:Sample4_RecognizeEntitiesBatchWithResolutionsAsync_PerformOperation +Response response = await client.RecognizeEntitiesBatchAsync(batchedDocuments, options); +RecognizeEntitiesResultCollection results = response.Value; +``` + +You can then inspect each of the entities that were recognized and their corresponding resolutions, if any. + +```C# Snippet:Sample4_RecognizeEntitiesBatchWithResolutionsAsync_ViewResults +foreach (RecognizeEntitiesResult documentResult in results) +{ + Console.WriteLine($"Result for document with Id = \"{documentResult.Id}\":"); + + foreach (CategorizedEntity entity in documentResult.Entities) + { + if (entity.Resolutions.Count == 0) + { + continue; + } + + Console.WriteLine($" Text: \"{entity.Text}\""); + + foreach (BaseResolution resolution in entity.Resolutions) + { + switch (resolution) + { + case AgeResolution age: + Console.WriteLine($" AgeResolution:"); + Console.WriteLine($" Unit : {age.Unit}"); + Console.WriteLine($" Value: {age.Value}"); + break; + + case AreaResolution area: + Console.WriteLine($" AreaResolution:"); + Console.WriteLine($" Unit : {area.Unit}"); + Console.WriteLine($" Value: {area.Value}"); + break; + + case CurrencyResolution currency: + Console.WriteLine($" CurrencyResolution:"); + Console.WriteLine($" Iso4217: {currency.Iso4217}"); + Console.WriteLine($" Unit : {currency.Unit}"); + Console.WriteLine($" Value : {currency.Value}"); + break; + + case DateTimeResolution dateTime: + Console.WriteLine($" DateTimeResolution:"); + Console.WriteLine($" DateTimeSubKind: {dateTime.DateTimeSubKind}"); + Console.WriteLine($" Modifier : {dateTime.Modifier}"); + Console.WriteLine($" Timex : {dateTime.Timex}"); + Console.WriteLine($" Value : {dateTime.Value}"); + break; + + case InformationResolution information: + Console.WriteLine($" InformationResolution:"); + Console.WriteLine($" Unit : {information.Unit}"); + Console.WriteLine($" Value: {information.Value}"); + break; + + case LengthResolution length: + Console.WriteLine($" LengthResolution:"); + Console.WriteLine($" Unit : {length.Unit}"); + Console.WriteLine($" Value: {length.Value}"); + break; + + case NumberResolution number: + Console.WriteLine($" NumberResolution:"); + Console.WriteLine($" NumberKind: {number.NumberKind}"); + Console.WriteLine($" Value : {number.Value}"); + break; + + case NumericRangeResolution numericRange: + Console.WriteLine($" NumericRangeResolution:"); + Console.WriteLine($" Maximum : {numericRange.Maximum}"); + Console.WriteLine($" Minimum : {numericRange.Minimum}"); + Console.WriteLine($" RangeKind: {numericRange.RangeKind}"); + break; + + case OrdinalResolution ordinal: + Console.WriteLine($" OrdinalResolution:"); + Console.WriteLine($" Offset : {ordinal.Offset}"); + Console.WriteLine($" RelativeTo: {ordinal.RelativeTo}"); + Console.WriteLine($" Value : {ordinal.Value}"); + break; + + case TemperatureResolution temperature: + Console.WriteLine($" TemperatureResolution:"); + Console.WriteLine($" Unit : {temperature.Unit}"); + Console.WriteLine($" Value: {temperature.Value}"); + break; + + case TemporalSpanResolution temporalSpan: + Console.WriteLine($" TemporalSpanResolution:"); + Console.WriteLine($" Begin : {temporalSpan.Begin}"); + Console.WriteLine($" Duration: {temporalSpan.Duration}"); + Console.WriteLine($" End : {temporalSpan.End}"); + Console.WriteLine($" Modifier: {temporalSpan.Modifier}"); + Console.WriteLine($" Timex : {temporalSpan.Timex}"); + break; + + case VolumeResolution volume: + Console.WriteLine($" VolumeResolution:"); + Console.WriteLine($" Unit : {volume.Unit}"); + Console.WriteLine($" Value: {volume.Value}"); + break; + + case SpeedResolution speed: + Console.WriteLine($" SpeedResolution:"); + Console.WriteLine($" Unit : {speed.Unit}"); + Console.WriteLine($" Value: {speed.Value}"); + break; + + case WeightResolution weight: + Console.WriteLine($" WeightResolution:"); + Console.WriteLine($" Unit : {weight.Unit}"); + Console.WriteLine($" Value: {weight.Value}"); + break; + } + Console.WriteLine(); + } + } +} +``` + +See the [README] of the Text Analytics client library for more information, including useful links and instructions. + +[NER_Resolutions]: https://aka.ms/azsdk/language/ner-resolutions +[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md +[README]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/README.md diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/RecognizeEntitiesTests.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/RecognizeEntitiesTests.cs index f9ecda31c821e..d78314c339976 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/RecognizeEntitiesTests.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/RecognizeEntitiesTests.cs @@ -302,9 +302,9 @@ public async Task RecognizeEntitiesBatchWithResolutionsTest() // Ordinal, Speed, and NumericRange. new TextDocumentInput("2", "This is the first aircraft of its kind. It can fly at over 1,300 mph and carry 65-80 passengers."), // Area, Number, Currency, and DateTime. - new TextDocumentInput("3", "The apartment is 840 sqft. and it has 2 bedrooms. It costs 2,000 US dollars per month and will be available on 11/01/2022."), + new TextDocumentInput("3", "The apartment (840 sqft. with 2 bedrooms) costs 2,000 USD per month and will be available on 11/01/2022."), // Volume, TemporalSpan (with Duration), and Temperature. - new TextDocumentInput("4", "Mix 1 cup of sugar. Bake for approximately 60 minutes in an oven preheated to 350 degrees F."), + new TextDocumentInput("4", "Mix 1 cup of sugar. Bake for 60 minutes in an oven preheated to 350 degrees F."), // Information and TemporalSpan (with Begin and End). new TextDocumentInput("5", "They retrieved 200 terabytes of data from 10/24/2022 to 10/28/2022."), }, options: options); @@ -316,25 +316,24 @@ public async Task RecognizeEntitiesBatchWithResolutionsTest() foreach (CategorizedEntity entity in result1.Entities) { Assert.IsNotNull(entity.Resolutions); - BaseResolution resolution = entity.Resolutions.FirstOrDefault(); - if (resolution is AgeResolution age) + switch (resolution) { - Assert.AreEqual(5, age.Value); - Assert.AreEqual(AgeUnit.Year, age.Unit); - } - - if (resolution is LengthResolution length) - { - Assert.AreEqual(14, length.Value); - Assert.AreEqual(LengthUnit.Inch, length.Unit); - } - - if (resolution is WeightResolution weight) - { - Assert.AreEqual(20, weight.Value); - Assert.AreEqual(WeightUnit.Pound, weight.Unit); + case AgeResolution age: + Assert.AreEqual(5, age.Value); + Assert.AreEqual(AgeUnit.Year, age.Unit); + break; + + case LengthResolution length: + Assert.AreEqual(14, length.Value); + Assert.AreEqual(LengthUnit.Inch, length.Unit); + break; + + case WeightResolution weight: + Assert.AreEqual(20, weight.Value); + Assert.AreEqual(WeightUnit.Pound, weight.Unit); + break; } } @@ -345,27 +344,26 @@ public async Task RecognizeEntitiesBatchWithResolutionsTest() foreach (CategorizedEntity entity in result2.Entities) { Assert.IsNotNull(entity.Resolutions); - BaseResolution resolution = entity.Resolutions.FirstOrDefault(); - if (resolution is OrdinalResolution ordinal) - { - Assert.AreEqual("1", ordinal.Value); - Assert.AreEqual(RelativeTo.Start, ordinal.RelativeTo); - Assert.AreEqual("1", ordinal.Offset); - } - - if (resolution is SpeedResolution speed) - { - Assert.AreEqual(1300, speed.Value); - Assert.AreEqual(SpeedUnit.MilePerHour, speed.Unit); - } - - if (resolution is NumericRangeResolution numericRange) + switch (resolution) { - Assert.AreEqual(65, numericRange.Minimum); - Assert.AreEqual(80, numericRange.Maximum); - Assert.AreEqual(RangeKind.Number, numericRange.RangeKind); + case OrdinalResolution ordinal: + Assert.AreEqual("1", ordinal.Value); + Assert.AreEqual(RelativeTo.Start, ordinal.RelativeTo); + Assert.AreEqual("1", ordinal.Offset); + break; + + case SpeedResolution speed: + Assert.AreEqual(1300, speed.Value); + Assert.AreEqual(SpeedUnit.MilePerHour, speed.Unit); + break; + + case NumericRangeResolution numericRange: + Assert.AreEqual(65, numericRange.Minimum); + Assert.AreEqual(80, numericRange.Maximum); + Assert.AreEqual(RangeKind.Number, numericRange.RangeKind); + break; } } @@ -376,34 +374,32 @@ public async Task RecognizeEntitiesBatchWithResolutionsTest() foreach (CategorizedEntity entity in result3.Entities) { Assert.IsNotNull(entity.Resolutions); - BaseResolution resolution = entity.Resolutions.FirstOrDefault(); - if (resolution is AreaResolution area) - { - Assert.AreEqual(840, area.Value); - Assert.AreEqual(AreaUnit.SquareFoot, area.Unit); - } - - if (resolution is NumberResolution number) + switch (resolution) { - Assert.AreEqual(2, number.Value); - Assert.AreEqual(NumberKind.Integer, number.NumberKind); - } - - if (resolution is CurrencyResolution currency) - { - Assert.AreEqual(2000, currency.Value); - Assert.AreEqual("USD", currency.Iso4217); - Assert.AreEqual("United States dollar", currency.Unit); - } - - if (resolution is DateTimeResolution dateTime) - { - Assert.AreEqual("2022-11-01", dateTime.Value); - Assert.AreEqual("2022-11-01", dateTime.Timex); - Assert.AreEqual(DateTimeSubKind.Date, dateTime.DateTimeSubKind); - Assert.IsNull(dateTime.Modifier); + case AreaResolution area: + Assert.AreEqual(840, area.Value); + Assert.AreEqual(AreaUnit.SquareFoot, area.Unit); + break; + + case NumberResolution number: + Assert.AreEqual(2, number.Value); + Assert.AreEqual(NumberKind.Integer, number.NumberKind); + break; + + case CurrencyResolution currency: + Assert.AreEqual(2000, currency.Value); + Assert.AreEqual("USD", currency.Iso4217); + Assert.AreEqual("United States dollar", currency.Unit); + break; + + case DateTimeResolution dateTime: + Assert.AreEqual("2022-11-01", dateTime.Value); + Assert.AreEqual("2022-11-01", dateTime.Timex); + Assert.AreEqual(DateTimeSubKind.Date, dateTime.DateTimeSubKind); + Assert.IsNull(dateTime.Modifier); + break; } } @@ -414,29 +410,28 @@ public async Task RecognizeEntitiesBatchWithResolutionsTest() foreach (CategorizedEntity entity in result4.Entities) { Assert.IsNotNull(entity.Resolutions); - BaseResolution resolution = entity.Resolutions.FirstOrDefault(); - if (resolution is VolumeResolution volume) + switch (resolution) { - Assert.AreEqual(1, volume.Value); - Assert.AreEqual(VolumeUnit.Cup, volume.Unit); - } - - if (resolution is TemporalSpanResolution temporalSpan) - { - Assert.AreEqual("PT60M", temporalSpan.Duration); - Assert.IsNull(temporalSpan.Begin); - Assert.IsNull(temporalSpan.End); - Assert.IsNull(temporalSpan.Modifier); - // BUGBUG: https://github.com/Azure/azure-sdk-for-net/issues/32650 - // Assert.AreEqual("PT60M", temporalSpan.Timex); - } - - if (resolution is TemperatureResolution temperature) - { - Assert.AreEqual(350, temperature.Value); - Assert.AreEqual(TemperatureUnit.Fahrenheit, temperature.Unit); + case VolumeResolution volume: + Assert.AreEqual(1, volume.Value); + Assert.AreEqual(VolumeUnit.Cup, volume.Unit); + break; + + case TemporalSpanResolution temporalSpan: + Assert.AreEqual("PT60M", temporalSpan.Duration); + Assert.IsNull(temporalSpan.Begin); + Assert.IsNull(temporalSpan.End); + Assert.IsNull(temporalSpan.Modifier); + // BUGBUG: https://github.com/Azure/azure-sdk-for-net/issues/32650 + // Assert.AreEqual("PT60M", temporalSpan.Timex); + break; + + case TemperatureResolution temperature: + Assert.AreEqual(350, temperature.Value); + Assert.AreEqual(TemperatureUnit.Fahrenheit, temperature.Unit); + break; } } @@ -447,23 +442,23 @@ public async Task RecognizeEntitiesBatchWithResolutionsTest() foreach (CategorizedEntity entity in result5.Entities) { Assert.IsNotNull(entity.Resolutions); - BaseResolution resolution = entity.Resolutions.FirstOrDefault(); - if (resolution is InformationResolution information) - { - Assert.AreEqual(200, information.Value); - Assert.AreEqual(InformationUnit.Terabyte, information.Unit); - } - - if (resolution is TemporalSpanResolution temporalSpan) + switch (resolution) { - Assert.AreEqual("P4D", temporalSpan.Duration); - Assert.AreEqual("2022-10-24", temporalSpan.Begin); - Assert.AreEqual("2022-10-28", temporalSpan.End); - Assert.IsNull(temporalSpan.Modifier); - // BUGBUG: https://github.com/Azure/azure-sdk-for-net/issues/32650 - // Assert.AreEqual("(2022-10-24,2022-10-28,P4D)", temporalSpan.Timex); + case InformationResolution information: + Assert.AreEqual(200, information.Value); + Assert.AreEqual(InformationUnit.Terabyte, information.Unit); + break; + + case TemporalSpanResolution temporalSpan: + Assert.AreEqual("P4D", temporalSpan.Duration); + Assert.AreEqual("2022-10-24", temporalSpan.Begin); + Assert.AreEqual("2022-10-28", temporalSpan.End); + Assert.IsNull(temporalSpan.Modifier); + // BUGBUG: https://github.com/Azure/azure-sdk-for-net/issues/32650 + // Assert.AreEqual("(2022-10-24,2022-10-28,P4D)", temporalSpan.Timex); + break; } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeEntitiesTests/RecognizeEntitiesBatchWithResolutionsTest.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeEntitiesTests/RecognizeEntitiesBatchWithResolutionsTest.json index f70abbc97c039..19c05dab11e14 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeEntitiesTests/RecognizeEntitiesBatchWithResolutionsTest.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeEntitiesTests/RecognizeEntitiesBatchWithResolutionsTest.json @@ -5,12 +5,12 @@ "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", - "Content-Length": "770", + "Content-Length": "738", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-7a91bd2d0307d2d314bd39048e9a5e4e-09580053a6e5a8fc-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.3.0-alpha.20221123.1 (.NET 6.0.11; Microsoft Windows 10.0.22621)", - "x-ms-client-request-id": "4b4b516136582e0d69302fbda78204ed", + "traceparent": "00-a112fbb6360cd12de3fff67080137a38-38bae00cb39ed2bc-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.3.0-alpha.20230217.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "b121a9599845e1e1eccb85c2e9fbd66b", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -28,12 +28,12 @@ }, { "id": "3", - "text": "The apartment is 840 sqft. and it has 2 bedrooms. It costs 2,000 US dollars per month and will be available on 11/01/2022.", + "text": "The apartment (840 sqft. with 2 bedrooms) costs 2,000 USD per month and will be available on 11/01/2022.", "language": "en" }, { "id": "4", - "text": "Mix 1 cup of sugar. Bake for approximately 60 minutes in an oven preheated to 350 degrees F.", + "text": "Mix 1 cup of sugar. Bake for 60 minutes in an oven preheated to 350 degrees F.", "language": "en" }, { @@ -51,15 +51,15 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "612911bb-e460-4674-b56b-bf5fb0cf47c1", - "Content-Length": "4148", + "apim-request-id": "dcd5100f-1dda-45e4-af1e-9718a79ccbe4", + "Content-Length": "4668", "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.BatchScoring=5,CognitiveServices.TextAnalytics.TextRecords=5", - "Date": "Wed, 23 Nov 2022 19:55:54 GMT", + "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.NER=5,CognitiveServices.TextAnalytics.TextRecords=5", + "Date": "Fri, 17 Feb 2023 22:56:31 GMT", "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "289", + "x-envoy-upstream-service-time": "568", "x-ms-region": "West US 2" }, "ResponseBody": { @@ -69,6 +69,21 @@ { "id": "1", "entities": [ + { + "text": "14", + "category": "Quantity", + "subcategory": "Number", + "offset": 11, + "length": 2, + "confidenceScore": 0.61, + "resolutions": [ + { + "resolutionKind": "NumberResolution", + "numberKind": "Integer", + "value": 14.0 + } + ] + }, { "text": "14 inches", "category": "Quantity", @@ -84,6 +99,21 @@ } ] }, + { + "text": "20", + "category": "Quantity", + "subcategory": "Number", + "offset": 37, + "length": 2, + "confidenceScore": 0.58, + "resolutions": [ + { + "resolutionKind": "NumberResolution", + "numberKind": "Integer", + "value": 20.0 + } + ] + }, { "text": "20 lbs", "category": "Quantity", @@ -141,7 +171,7 @@ "category": "Product", "offset": 18, "length": 8, - "confidenceScore": 0.8 + "confidenceScore": 0.87 }, { "text": "1,300 mph", @@ -164,7 +194,7 @@ "subcategory": "NumberRange", "offset": 79, "length": 5, - "confidenceScore": 0.83, + "confidenceScore": 0.91, "resolutions": [ { "resolutionKind": "NumericRangeResolution", @@ -179,7 +209,7 @@ "category": "PersonType", "offset": 85, "length": 10, - "confidenceScore": 0.92 + "confidenceScore": 0.98 } ], "warnings": [] @@ -192,13 +222,13 @@ "category": "Location", "offset": 4, "length": 9, - "confidenceScore": 0.81 + "confidenceScore": 0.75 }, { "text": "840 sqft", "category": "Quantity", "subcategory": "Dimension", - "offset": 17, + "offset": 15, "length": 8, "confidenceScore": 0.8, "resolutions": [ @@ -213,9 +243,9 @@ "text": "2", "category": "Quantity", "subcategory": "Number", - "offset": 38, + "offset": 30, "length": 1, - "confidenceScore": 0.98, + "confidenceScore": 0.97, "resolutions": [ { "resolutionKind": "NumberResolution", @@ -227,16 +257,16 @@ { "text": "bedrooms", "category": "Location", - "offset": 40, + "offset": 32, "length": 8, - "confidenceScore": 0.66 + "confidenceScore": 0.63 }, { - "text": "2,000 US dollars", + "text": "2,000 USD", "category": "Quantity", "subcategory": "Currency", - "offset": 59, - "length": 16, + "offset": 48, + "length": 9, "confidenceScore": 0.99, "resolutions": [ { @@ -251,9 +281,9 @@ "text": "11/01/2022", "category": "DateTime", "subcategory": "Date", - "offset": 111, + "offset": 93, "length": 10, - "confidenceScore": 0.99, + "confidenceScore": 1.0, "resolutions": [ { "resolutionKind": "DateTimeResolution", @@ -275,7 +305,7 @@ "subcategory": "Number", "offset": 4, "length": 1, - "confidenceScore": 0.69, + "confidenceScore": 0.77, "resolutions": [ { "resolutionKind": "NumberResolution", @@ -304,18 +334,19 @@ "category": "Product", "offset": 13, "length": 5, - "confidenceScore": 0.92 + "confidenceScore": 0.93 }, { "text": "60 minutes", "category": "DateTime", "subcategory": "Duration", - "offset": 43, + "offset": 29, "length": 10, - "confidenceScore": 0.95, + "confidenceScore": 0.99, "resolutions": [ { "resolutionKind": "TemporalSpanResolution", + "timex": "PT60M", "duration": "PT60M" } ] @@ -323,7 +354,7 @@ { "text": "oven", "category": "Product", - "offset": 60, + "offset": 46, "length": 4, "confidenceScore": 0.87 }, @@ -331,7 +362,7 @@ "text": "350 degrees F", "category": "Quantity", "subcategory": "Temperature", - "offset": 78, + "offset": 64, "length": 13, "confidenceScore": 0.8, "resolutions": [ @@ -364,15 +395,23 @@ ] }, { - "text": "10/24/2022 to 10/28/2022", + "text": "data", + "category": "Skill", + "offset": 32, + "length": 4, + "confidenceScore": 0.74 + }, + { + "text": "from 10/24/2022 to 10/28/2022", "category": "DateTime", "subcategory": "DateRange", - "offset": 42, - "length": 24, - "confidenceScore": 0.85, + "offset": 37, + "length": 29, + "confidenceScore": 0.8, "resolutions": [ { "resolutionKind": "TemporalSpanResolution", + "timex": "(2022-10-24,2022-10-28,P4D)", "duration": "P4D", "begin": "2022-10-24", "end": "2022-10-28" @@ -390,7 +429,7 @@ } ], "Variables": { - "RandomSeed": "2073622306", + "RandomSeed": "504991006", "TEXT_ANALYTICS_API_KEY": "Sanitized", "TEXT_ANALYTICS_ENDPOINT": "https://javatextanalyticstestresources.cognitiveservices.azure.com" } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeEntitiesTests/RecognizeEntitiesBatchWithResolutionsTestAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeEntitiesTests/RecognizeEntitiesBatchWithResolutionsTestAsync.json index 11a39e2ec9143..41d5a362a140d 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeEntitiesTests/RecognizeEntitiesBatchWithResolutionsTestAsync.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeEntitiesTests/RecognizeEntitiesBatchWithResolutionsTestAsync.json @@ -5,12 +5,12 @@ "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", - "Content-Length": "770", + "Content-Length": "738", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-305b7eed2ebacfdfce2d7d65f042d749-71a7016dcfb1bf8f-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.3.0-alpha.20221123.1 (.NET 6.0.11; Microsoft Windows 10.0.22621)", - "x-ms-client-request-id": "6e6de3f7fa19ad69b87381d3457ea41e", + "traceparent": "00-7ad31581a1b7527836f2486bdafe717d-69c00da79645d23f-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.3.0-alpha.20230217.1 (.NET 7.0.3; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "524862f8938f4abf24b7e404ee79ce67", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -28,12 +28,12 @@ }, { "id": "3", - "text": "The apartment is 840 sqft. and it has 2 bedrooms. It costs 2,000 US dollars per month and will be available on 11/01/2022.", + "text": "The apartment (840 sqft. with 2 bedrooms) costs 2,000 USD per month and will be available on 11/01/2022.", "language": "en" }, { "id": "4", - "text": "Mix 1 cup of sugar. Bake for approximately 60 minutes in an oven preheated to 350 degrees F.", + "text": "Mix 1 cup of sugar. Bake for 60 minutes in an oven preheated to 350 degrees F.", "language": "en" }, { @@ -51,15 +51,15 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "7dd40011-e066-4fbf-8599-14a8f0bb1c6a", - "Content-Length": "4148", + "apim-request-id": "056b968a-b640-491d-93d7-2a5bc39902af", + "Content-Length": "4668", "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.BatchScoring=5,CognitiveServices.TextAnalytics.TextRecords=5", - "Date": "Wed, 23 Nov 2022 19:56:07 GMT", + "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.NER=5,CognitiveServices.TextAnalytics.TextRecords=5", + "Date": "Fri, 17 Feb 2023 22:56:23 GMT", "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "253", + "x-envoy-upstream-service-time": "541", "x-ms-region": "West US 2" }, "ResponseBody": { @@ -69,6 +69,21 @@ { "id": "1", "entities": [ + { + "text": "14", + "category": "Quantity", + "subcategory": "Number", + "offset": 11, + "length": 2, + "confidenceScore": 0.61, + "resolutions": [ + { + "resolutionKind": "NumberResolution", + "numberKind": "Integer", + "value": 14.0 + } + ] + }, { "text": "14 inches", "category": "Quantity", @@ -84,6 +99,21 @@ } ] }, + { + "text": "20", + "category": "Quantity", + "subcategory": "Number", + "offset": 37, + "length": 2, + "confidenceScore": 0.58, + "resolutions": [ + { + "resolutionKind": "NumberResolution", + "numberKind": "Integer", + "value": 20.0 + } + ] + }, { "text": "20 lbs", "category": "Quantity", @@ -141,7 +171,7 @@ "category": "Product", "offset": 18, "length": 8, - "confidenceScore": 0.8 + "confidenceScore": 0.87 }, { "text": "1,300 mph", @@ -164,7 +194,7 @@ "subcategory": "NumberRange", "offset": 79, "length": 5, - "confidenceScore": 0.83, + "confidenceScore": 0.91, "resolutions": [ { "resolutionKind": "NumericRangeResolution", @@ -179,7 +209,7 @@ "category": "PersonType", "offset": 85, "length": 10, - "confidenceScore": 0.92 + "confidenceScore": 0.98 } ], "warnings": [] @@ -192,13 +222,13 @@ "category": "Location", "offset": 4, "length": 9, - "confidenceScore": 0.81 + "confidenceScore": 0.75 }, { "text": "840 sqft", "category": "Quantity", "subcategory": "Dimension", - "offset": 17, + "offset": 15, "length": 8, "confidenceScore": 0.8, "resolutions": [ @@ -213,9 +243,9 @@ "text": "2", "category": "Quantity", "subcategory": "Number", - "offset": 38, + "offset": 30, "length": 1, - "confidenceScore": 0.98, + "confidenceScore": 0.97, "resolutions": [ { "resolutionKind": "NumberResolution", @@ -227,16 +257,16 @@ { "text": "bedrooms", "category": "Location", - "offset": 40, + "offset": 32, "length": 8, - "confidenceScore": 0.66 + "confidenceScore": 0.63 }, { - "text": "2,000 US dollars", + "text": "2,000 USD", "category": "Quantity", "subcategory": "Currency", - "offset": 59, - "length": 16, + "offset": 48, + "length": 9, "confidenceScore": 0.99, "resolutions": [ { @@ -251,9 +281,9 @@ "text": "11/01/2022", "category": "DateTime", "subcategory": "Date", - "offset": 111, + "offset": 93, "length": 10, - "confidenceScore": 0.99, + "confidenceScore": 1.0, "resolutions": [ { "resolutionKind": "DateTimeResolution", @@ -275,7 +305,7 @@ "subcategory": "Number", "offset": 4, "length": 1, - "confidenceScore": 0.69, + "confidenceScore": 0.77, "resolutions": [ { "resolutionKind": "NumberResolution", @@ -304,18 +334,19 @@ "category": "Product", "offset": 13, "length": 5, - "confidenceScore": 0.92 + "confidenceScore": 0.93 }, { "text": "60 minutes", "category": "DateTime", "subcategory": "Duration", - "offset": 43, + "offset": 29, "length": 10, - "confidenceScore": 0.95, + "confidenceScore": 0.99, "resolutions": [ { "resolutionKind": "TemporalSpanResolution", + "timex": "PT60M", "duration": "PT60M" } ] @@ -323,7 +354,7 @@ { "text": "oven", "category": "Product", - "offset": 60, + "offset": 46, "length": 4, "confidenceScore": 0.87 }, @@ -331,7 +362,7 @@ "text": "350 degrees F", "category": "Quantity", "subcategory": "Temperature", - "offset": 78, + "offset": 64, "length": 13, "confidenceScore": 0.8, "resolutions": [ @@ -364,15 +395,23 @@ ] }, { - "text": "10/24/2022 to 10/28/2022", + "text": "data", + "category": "Skill", + "offset": 32, + "length": 4, + "confidenceScore": 0.74 + }, + { + "text": "from 10/24/2022 to 10/28/2022", "category": "DateTime", "subcategory": "DateRange", - "offset": 42, - "length": 24, - "confidenceScore": 0.85, + "offset": 37, + "length": 29, + "confidenceScore": 0.8, "resolutions": [ { "resolutionKind": "TemporalSpanResolution", + "timex": "(2022-10-24,2022-10-28,P4D)", "duration": "P4D", "begin": "2022-10-24", "end": "2022-10-28" @@ -390,7 +429,7 @@ } ], "Variables": { - "RandomSeed": "1195462607", + "RandomSeed": "599466627", "TEXT_ANALYTICS_API_KEY": "Sanitized", "TEXT_ANALYTICS_ENDPOINT": "https://javatextanalyticstestresources.cognitiveservices.azure.com" } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample4_RecognizeEntitiesBatch.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample4_RecognizeEntitiesBatch.cs index 56f0100a5aea4..046e046792c3c 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample4_RecognizeEntitiesBatch.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample4_RecognizeEntitiesBatch.cs @@ -90,39 +90,6 @@ public void RecognizeEntitiesBatch() if (!string.IsNullOrEmpty(entity.SubCategory)) Console.WriteLine($" SubCategory: {entity.SubCategory}"); Console.WriteLine($" Confidence score: {entity.ConfidenceScore}"); - if (entity.Resolutions.Count > 0) - { - Console.WriteLine($" Resolutions:"); - foreach (BaseResolution resolution in entity.Resolutions) - { - // There are several different kinds of resolutions. In this particular sample, we are - // interested in viewing those of type DateTimeResolution and TemporalSpanResolution. - - if (resolution is DateTimeResolution dateTime) - { - Console.WriteLine($" Value: {dateTime.Value} "); - Console.WriteLine($" DateTimeSubKind: {dateTime.DateTimeSubKind} "); - if (!string.IsNullOrEmpty(dateTime.Timex)) - Console.WriteLine($" Timex: {dateTime.Timex}"); - if (dateTime.Modifier is not null) - Console.WriteLine($" Modifier: {dateTime.Modifier}"); - } - - if (resolution is TemporalSpanResolution temporalSpan) - { - if (!string.IsNullOrEmpty(temporalSpan.Begin)) - Console.WriteLine($" Begin: {temporalSpan.Begin}"); - if (!string.IsNullOrEmpty(temporalSpan.End)) - Console.WriteLine($" End: {temporalSpan.End}"); - if (!string.IsNullOrEmpty(temporalSpan.Duration)) - Console.WriteLine($" Duration: {temporalSpan.Duration}"); - if (!string.IsNullOrEmpty(temporalSpan.End)) - Console.WriteLine($" Timex: {temporalSpan.Timex}"); - if (temporalSpan.Modifier is not null) - Console.WriteLine($" Modifier: {temporalSpan.Modifier}"); - } - } - } Console.WriteLine(); } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample4_RecognizeEntitiesBatchAsync.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample4_RecognizeEntitiesBatchAsync.cs index d1bbc4348616a..9f67a02580023 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample4_RecognizeEntitiesBatchAsync.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample4_RecognizeEntitiesBatchAsync.cs @@ -90,39 +90,6 @@ public async Task RecognizeEntitiesBatchAsync() if (!string.IsNullOrEmpty(entity.SubCategory)) Console.WriteLine($" SubCategory: {entity.SubCategory}"); Console.WriteLine($" Confidence score: {entity.ConfidenceScore}"); - if (entity.Resolutions.Count > 0) - { - Console.WriteLine($" Resolutions:"); - foreach (BaseResolution resolution in entity.Resolutions) - { - // There are several different kinds of resolutions. In this particular sample, we are - // interested in viewing those of type DateTimeResolution and TemporalSpanResolution. - - if (resolution is DateTimeResolution dateTime) - { - Console.WriteLine($" Value: {dateTime.Value} "); - Console.WriteLine($" DateTimeSubKind: {dateTime.DateTimeSubKind} "); - if (!string.IsNullOrEmpty(dateTime.Timex)) - Console.WriteLine($" Timex: {dateTime.Timex}"); - if (dateTime.Modifier is not null) - Console.WriteLine($" Modifier: {dateTime.Modifier}"); - } - - if (resolution is TemporalSpanResolution temporalSpan) - { - if (!string.IsNullOrEmpty(temporalSpan.Begin)) - Console.WriteLine($" Begin: {temporalSpan.Begin}"); - if (!string.IsNullOrEmpty(temporalSpan.End)) - Console.WriteLine($" End: {temporalSpan.End}"); - if (!string.IsNullOrEmpty(temporalSpan.Duration)) - Console.WriteLine($" Duration: {temporalSpan.Duration}"); - if (!string.IsNullOrEmpty(temporalSpan.End)) - Console.WriteLine($" Timex: {temporalSpan.Timex}"); - if (temporalSpan.Modifier is not null) - Console.WriteLine($" Modifier: {temporalSpan.Modifier}"); - } - } - } Console.WriteLine(); } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample4_RecognizeEntitiesBatchWithResolutions.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample4_RecognizeEntitiesBatchWithResolutions.cs new file mode 100644 index 0000000000000..c4212c0c3d6bd --- /dev/null +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample4_RecognizeEntitiesBatchWithResolutions.cs @@ -0,0 +1,155 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using System.Collections.Generic; +using NUnit.Framework; + +namespace Azure.AI.TextAnalytics.Samples +{ + public partial class TextAnalyticsSamples + { + [Test] + public void RecognizeEntitiesBatchWithResolutions() + { + Uri endpoint = new(TestEnvironment.Endpoint); + AzureKeyCredential apiKey = new(TestEnvironment.ApiKey); + TextAnalyticsClient client = new(endpoint, apiKey, CreateSampleOptions()); + + string documentA = "The dog is 14 inches tall and weighs 20 lbs. It is 5 years old."; + string documentB = "This is the first aircraft of its kind. It can fly at over 1,300 mph and carry 65-80 passengers."; + string documentC = "The apartment (840 sqft with 2 bedrooms) costs 2,000 USD per month and will be available on 11/01/2022."; + string documentD = "Mix 1 cup of sugar. Bake for 60 minutes in an oven preheated to 350 degrees F."; + string documentE = "They retrieved 200 terabytes of data from 10/24/2022 to 10/28/2022."; + + List batchedDocuments = new() { + new TextDocumentInput("1", documentA), + new TextDocumentInput("2", documentB), + new TextDocumentInput("3", documentC), + new TextDocumentInput("4", documentD), + new TextDocumentInput("5", documentE), + }; + + TextAnalyticsRequestOptions options = new() { ModelVersion = "2022-10-01-preview" }; + Response response = client.RecognizeEntitiesBatch(batchedDocuments, options); + RecognizeEntitiesResultCollection results = response.Value; + + Console.WriteLine($"Recognize Entities, model version: \"{results.ModelVersion}\""); + Console.WriteLine(); + + foreach (RecognizeEntitiesResult documentResult in results) + { + Console.WriteLine($"Result for document with Id = \"{documentResult.Id}\":"); + + foreach (CategorizedEntity entity in documentResult.Entities) + { + if (entity.Resolutions.Count == 0) + { + continue; + } + + Console.WriteLine($" Text: \"{entity.Text}\""); + + foreach (BaseResolution resolution in entity.Resolutions) + { + switch (resolution) + { + case AgeResolution age: + Console.WriteLine($" AgeResolution:"); + Console.WriteLine($" Unit : {age.Unit}"); + Console.WriteLine($" Value: {age.Value}"); + break; + + case AreaResolution area: + Console.WriteLine($" AreaResolution:"); + Console.WriteLine($" Unit : {area.Unit}"); + Console.WriteLine($" Value: {area.Value}"); + break; + + case CurrencyResolution currency: + Console.WriteLine($" CurrencyResolution:"); + Console.WriteLine($" Iso4217: {currency.Iso4217}"); + Console.WriteLine($" Unit : {currency.Unit}"); + Console.WriteLine($" Value : {currency.Value}"); + break; + + case DateTimeResolution dateTime: + Console.WriteLine($" DateTimeResolution:"); + Console.WriteLine($" DateTimeSubKind: {dateTime.DateTimeSubKind}"); + Console.WriteLine($" Modifier : {dateTime.Modifier}"); + Console.WriteLine($" Timex : {dateTime.Timex}"); + Console.WriteLine($" Value : {dateTime.Value}"); + break; + + case InformationResolution information: + Console.WriteLine($" InformationResolution:"); + Console.WriteLine($" Unit : {information.Unit}"); + Console.WriteLine($" Value: {information.Value}"); + break; + + case LengthResolution length: + Console.WriteLine($" LengthResolution:"); + Console.WriteLine($" Unit : {length.Unit}"); + Console.WriteLine($" Value: {length.Value}"); + break; + + case NumberResolution number: + Console.WriteLine($" NumberResolution:"); + Console.WriteLine($" NumberKind: {number.NumberKind}"); + Console.WriteLine($" Value : {number.Value}"); + break; + + case NumericRangeResolution numericRange: + Console.WriteLine($" NumericRangeResolution:"); + Console.WriteLine($" Maximum : {numericRange.Maximum}"); + Console.WriteLine($" Minimum : {numericRange.Minimum}"); + Console.WriteLine($" RangeKind: {numericRange.RangeKind}"); + break; + + case OrdinalResolution ordinal: + Console.WriteLine($" OrdinalResolution:"); + Console.WriteLine($" Offset : {ordinal.Offset}"); + Console.WriteLine($" RelativeTo: {ordinal.RelativeTo}"); + Console.WriteLine($" Value : {ordinal.Value}"); + break; + + case TemperatureResolution temperature: + Console.WriteLine($" TemperatureResolution:"); + Console.WriteLine($" Unit : {temperature.Unit}"); + Console.WriteLine($" Value: {temperature.Value}"); + break; + + case TemporalSpanResolution temporalSpan: + Console.WriteLine($" TemporalSpanResolution:"); + Console.WriteLine($" Begin : {temporalSpan.Begin}"); + Console.WriteLine($" Duration: {temporalSpan.Duration}"); + Console.WriteLine($" End : {temporalSpan.End}"); + Console.WriteLine($" Modifier: {temporalSpan.Modifier}"); + Console.WriteLine($" Timex : {temporalSpan.Timex}"); + break; + + case VolumeResolution volume: + Console.WriteLine($" VolumeResolution:"); + Console.WriteLine($" Unit : {volume.Unit}"); + Console.WriteLine($" Value: {volume.Value}"); + break; + + case SpeedResolution speed: + Console.WriteLine($" SpeedResolution:"); + Console.WriteLine($" Unit : {speed.Unit}"); + Console.WriteLine($" Value: {speed.Value}"); + break; + + case WeightResolution weight: + Console.WriteLine($" WeightResolution:"); + Console.WriteLine($" Unit : {weight.Unit}"); + Console.WriteLine($" Value: {weight.Value}"); + break; + } + Console.WriteLine(); + } + } + } + } + } +} diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample4_RecognizeEntitiesBatchWithResolutionsAsync.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample4_RecognizeEntitiesBatchWithResolutionsAsync.cs new file mode 100644 index 0000000000000..315702cbaa160 --- /dev/null +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample4_RecognizeEntitiesBatchWithResolutionsAsync.cs @@ -0,0 +1,164 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using System.Collections.Generic; +using System.Threading.Tasks; +using NUnit.Framework; + +namespace Azure.AI.TextAnalytics.Samples +{ + public partial class TextAnalyticsSamples + { + [Test] + public async Task RecognizeEntitiesBatchWithResolutionsAsync() + { + Uri endpoint = new(TestEnvironment.Endpoint); + AzureKeyCredential apiKey = new(TestEnvironment.ApiKey); + TextAnalyticsClient client = new(endpoint, apiKey, CreateSampleOptions()); + + #region Snippet:Sample4_RecognizeEntitiesBatchWithResolutionsAsync_GetDocuments + string documentA = "The dog is 14 inches tall and weighs 20 lbs. It is 5 years old."; + string documentB = "This is the first aircraft of its kind. It can fly at over 1,300 mph and carry 65-80 passengers."; + string documentC = "The apartment (840 sqft with 2 bedrooms) costs 2,000 USD per month and will be available on 11/01/2022."; + string documentD = "Mix 1 cup of sugar. Bake for 60 minutes in an oven preheated to 350 degrees F."; + string documentE = "They retrieved 200 terabytes of data from 10/24/2022 to 10/28/2022."; + + List batchedDocuments = new() { + new TextDocumentInput("1", documentA), + new TextDocumentInput("2", documentB), + new TextDocumentInput("3", documentC), + new TextDocumentInput("4", documentD), + new TextDocumentInput("5", documentE), + }; + #endregion + + #region Snippet:Sample4_RecognizeEntitiesBatchWithResolutionsAsync_SetModelVersion + TextAnalyticsRequestOptions options = new() { ModelVersion = "2022-10-01-preview" }; + #endregion + #region Snippet:Sample4_RecognizeEntitiesBatchWithResolutionsAsync_PerformOperation + Response response = await client.RecognizeEntitiesBatchAsync(batchedDocuments, options); + RecognizeEntitiesResultCollection results = response.Value; + #endregion + + Console.WriteLine($"Recognize Entities, model version: \"{results.ModelVersion}\""); + Console.WriteLine(); + + #region Snippet:Sample4_RecognizeEntitiesBatchWithResolutionsAsync_ViewResults + foreach (RecognizeEntitiesResult documentResult in results) + { + Console.WriteLine($"Result for document with Id = \"{documentResult.Id}\":"); + + foreach (CategorizedEntity entity in documentResult.Entities) + { + if (entity.Resolutions.Count == 0) + { + continue; + } + + Console.WriteLine($" Text: \"{entity.Text}\""); + + foreach (BaseResolution resolution in entity.Resolutions) + { + switch (resolution) + { + case AgeResolution age: + Console.WriteLine($" AgeResolution:"); + Console.WriteLine($" Unit : {age.Unit}"); + Console.WriteLine($" Value: {age.Value}"); + break; + + case AreaResolution area: + Console.WriteLine($" AreaResolution:"); + Console.WriteLine($" Unit : {area.Unit}"); + Console.WriteLine($" Value: {area.Value}"); + break; + + case CurrencyResolution currency: + Console.WriteLine($" CurrencyResolution:"); + Console.WriteLine($" Iso4217: {currency.Iso4217}"); + Console.WriteLine($" Unit : {currency.Unit}"); + Console.WriteLine($" Value : {currency.Value}"); + break; + + case DateTimeResolution dateTime: + Console.WriteLine($" DateTimeResolution:"); + Console.WriteLine($" DateTimeSubKind: {dateTime.DateTimeSubKind}"); + Console.WriteLine($" Modifier : {dateTime.Modifier}"); + Console.WriteLine($" Timex : {dateTime.Timex}"); + Console.WriteLine($" Value : {dateTime.Value}"); + break; + + case InformationResolution information: + Console.WriteLine($" InformationResolution:"); + Console.WriteLine($" Unit : {information.Unit}"); + Console.WriteLine($" Value: {information.Value}"); + break; + + case LengthResolution length: + Console.WriteLine($" LengthResolution:"); + Console.WriteLine($" Unit : {length.Unit}"); + Console.WriteLine($" Value: {length.Value}"); + break; + + case NumberResolution number: + Console.WriteLine($" NumberResolution:"); + Console.WriteLine($" NumberKind: {number.NumberKind}"); + Console.WriteLine($" Value : {number.Value}"); + break; + + case NumericRangeResolution numericRange: + Console.WriteLine($" NumericRangeResolution:"); + Console.WriteLine($" Maximum : {numericRange.Maximum}"); + Console.WriteLine($" Minimum : {numericRange.Minimum}"); + Console.WriteLine($" RangeKind: {numericRange.RangeKind}"); + break; + + case OrdinalResolution ordinal: + Console.WriteLine($" OrdinalResolution:"); + Console.WriteLine($" Offset : {ordinal.Offset}"); + Console.WriteLine($" RelativeTo: {ordinal.RelativeTo}"); + Console.WriteLine($" Value : {ordinal.Value}"); + break; + + case TemperatureResolution temperature: + Console.WriteLine($" TemperatureResolution:"); + Console.WriteLine($" Unit : {temperature.Unit}"); + Console.WriteLine($" Value: {temperature.Value}"); + break; + + case TemporalSpanResolution temporalSpan: + Console.WriteLine($" TemporalSpanResolution:"); + Console.WriteLine($" Begin : {temporalSpan.Begin}"); + Console.WriteLine($" Duration: {temporalSpan.Duration}"); + Console.WriteLine($" End : {temporalSpan.End}"); + Console.WriteLine($" Modifier: {temporalSpan.Modifier}"); + Console.WriteLine($" Timex : {temporalSpan.Timex}"); + break; + + case VolumeResolution volume: + Console.WriteLine($" VolumeResolution:"); + Console.WriteLine($" Unit : {volume.Unit}"); + Console.WriteLine($" Value: {volume.Value}"); + break; + + case SpeedResolution speed: + Console.WriteLine($" SpeedResolution:"); + Console.WriteLine($" Unit : {speed.Unit}"); + Console.WriteLine($" Value: {speed.Value}"); + break; + + case WeightResolution weight: + Console.WriteLine($" WeightResolution:"); + Console.WriteLine($" Unit : {weight.Unit}"); + Console.WriteLine($" Value: {weight.Value}"); + break; + } + Console.WriteLine(); + } + } + } + #endregion + } + } +} From 8eeade72a0a3903fa2e31fc05828281bea7ebc3c Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Tue, 21 Feb 2023 18:13:41 -0500 Subject: [PATCH 60/72] Add vmImage back to common perf.yml - Fixes #5466 - Partially reverts #5456 (#34432) Co-authored-by: Mike Harder --- eng/common/pipelines/templates/jobs/perf.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/eng/common/pipelines/templates/jobs/perf.yml b/eng/common/pipelines/templates/jobs/perf.yml index 073e5de641cb2..d1204f284ceb1 100644 --- a/eng/common/pipelines/templates/jobs/perf.yml +++ b/eng/common/pipelines/templates/jobs/perf.yml @@ -8,9 +8,15 @@ parameters: - name: LinuxPool type: string default: 'azsdk-pool-mms-ubuntu-2204-perf' +- name: LinuxVmImage + type: string + default: 'ubuntu-22.04' - name: WindowsPool type: string default: 'azsdk-pool-mms-win-2022-perf' +- name: WindowsVmImage + type: string + default: 'windows-2022' - name: Language type: string default: '' @@ -68,10 +74,12 @@ jobs: ${{ if contains(parameters.OperatingSystems, 'Linux') }}: Linux: Pool: ${{ parameters.LinuxPool }} + OsVmImage: ${{ parameters.LinuxVmImage }} MatrixName: 'Linux' ${{ if contains(parameters.OperatingSystems, 'Windows') }}: Windows: Pool: ${{ parameters.WindowsPool }} + OsVmImage: ${{ parameters.WindowsVmImage }} MatrixName: 'Windows' variables: - ${{ parameters.Variables }} @@ -82,6 +90,7 @@ jobs: value: '' pool: name: $(Pool) + vmImage: $(OSVmImage) steps: - template: /eng/common/pipelines/templates/steps/sparse-checkout.yml @@ -100,6 +109,10 @@ jobs: Commitish: ${{ parameters.ToolsRepoCommitish }} WorkingDirectory: $(System.DefaultWorkingDirectory)/azure-sdk-tools + - template: /eng/common/pipelines/templates/steps/verify-agent-os.yml + parameters: + AgentImage: $(OSVmImage) + - ${{ parameters.InstallLanguageSteps }} - template: /eng/common/TestResources/deploy-test-resources.yml From 56d3eae74bdc66fbad0b73dbd6b67018564faf2c Mon Sep 17 00:00:00 2001 From: Ronnie Geraghty Date: Tue, 21 Feb 2023 15:19:55 -0800 Subject: [PATCH 61/72] Add Styling Section to CONTRIBUTING.md (#34329) * Add Styling Section to CONTRIBUTING.md Added styling section to the CONTRIBUTING.md on 3rd Party Dependencies. * Update CONTRIBUTING.md Co-authored-by: Jesse Squire * Update CONTRIBUTING.md Co-authored-by: Jesse Squire * Update CONTRIBUTING.md Co-authored-by: Jesse Squire * Update CONTRIBUTING.md * Updating CONTRIBUTING.md * Update CONTRIBUTING.md Co-authored-by: Jesse Squire --------- Co-authored-by: Jesse Squire --- CONTRIBUTING.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 73377078f1cba..a7cae83366060 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -543,3 +543,23 @@ For information about breaking changes see [Breaking Change Rules](https://githu ## Debugging The libraries shipped out of this repo have [source link](https://docs.microsoft.com/dotnet/standard/library-guidance/sourcelink#using-source-link) enabled. Source link allows for symbols to be dynamically loaded while debugging, which allows you to step into the Azure SDK source code. This is often helpful when trying to step into Azure.Core code, as it is a package reference for most libraries. To enable using source link with the Azure SDK libraries in Visual Studio, you will need to check off Microsoft Symbol Servers as one of your Symbol file locations. Additionally, make sure that "Just My Code" is **_NOT_** enabled. + +## Samples + +### Third-party dependencies + +Third party libraries should only be included in samples when necessary to demonstrate usage of an Azure SDK package; they should not be suggested or endorsed as alternatives to the Azure SDK. + +When code samples take dependencies, readers should be able to use the material without significant license burden or research on terms. This goal requires restricting dependencies to certain types of open source or commercial licenses. + +Samples may take the following categories of dependencies: + +- **Open-source** : Open source offerings that use an [Open Source Initiative (OSI) approved license](https://opensource.org/licenses). Any component whose license isn't OSI-approved is considered a commercial offering. Prefer OSS projects that are members of any of the [OSS foundations that Microsoft is part of](https://opensource.microsoft.com/ecosystem/). Prefer permissive licenses for libraries, like [MIT](https://opensource.org/licenses/MIT) and [Apache 2](https://opensource.org/licenses/Apache-2.0). Copy-left licenses like [GPL](https://opensource.org/licenses/gpl-license) are acceptable for tools, and OSs. [Kubernetes](https://github.com/kubernetes/kubernetes), [Linux](https://github.com/torvalds/linux), and [Newtonsoft.Json](https://github.com/JamesNK/Newtonsoft.Json) are examples of this license type. Links to open source components should be to where the source is hosted, including any applicable license, such as a GitHub repository (or similar). + +- **Commercial**: Commercial offerings that enable readers to learn from our content without unnecessary extra costs. Typically, the offering has some form of a community edition, or a free trial sufficient for its use in content. A commercial license may be a form of dual-license, or tiered license. Links to commercial components should be to the commercial site for the software, even if the source software is hosted publicly on GitHub (or similar). + +- **Dual licensed**: Commercial offerings that enable readers to choose either license based on their needs. For example, if the offering has an OSS and commercial license, readers can choose between them. [MySql](https://github.com/mysql/mysql-server) is an example of this license type. + +- **Tiered licensed**: Offerings that enable readers to use the license tier that corresponds to their characteristics. For example, tiers may be available for students, hobbyists, or companies with defined revenue thresholds. For offerings with tiered licenses, strive to limit our use in tutorials to the features available in the lowest tier. This policy enables the widest audience for the article. [Docker](https://www.docker.com/), [IdentityServer](https://duendesoftware.com/products/identityserver), [ImageSharp](https://sixlabors.com/products/imagesharp/), and [Visual Studio](https://visualstudio.com) are examples of this license type. + +In general, we prefer taking dependencies on licensed components in the order of the listed categories. In cases where the category may not be well known, we'll document the category so that readers understand the choice that they're making by using that dependency. From 151022f03eaeb13a3f7bad30d30d91365f0414f8 Mon Sep 17 00:00:00 2001 From: Scott Schaab Date: Tue, 21 Feb 2023 15:44:20 -0800 Subject: [PATCH 62/72] Adding WorkloadIdentityCredential to support workload identity authentication (#34280) * Adding TokenCredentialOptions.Clone for properly flowing options * Apply suggestions from code review Co-authored-by: Christopher Scott * add WorkloadIdentityCredential * adding additional test coverage * update api spec * adding wic to dac * adding test coverage (without ignoring it) * update tests * update api spec * adding FileContentCache tests * extend cache refresh test time * fix test timing * fb --------- Co-authored-by: Christopher Scott --- .../api/Azure.Identity.netstandard2.0.cs | 18 +++ .../src/Credentials/DefaultAzureCredential.cs | 1 + .../DefaultAzureCredentialOptions.cs | 13 ++ .../Credentials/WorkloadIdentityCredential.cs | 90 +++++++++++ .../WorkloadIdentityCredentialOptions.cs | 45 ++++++ .../src/DefaultAzureCredentialFactory.cs | 18 ++- .../Azure.Identity/src/FileContentsCache.cs | 57 +++++++ .../tests/AuthorizationCodeCredentialTests.cs | 2 +- .../ClientAssertionCredentialLiveTests.cs | 68 +------- .../tests/ClientAssertionCredentialTests.cs | 2 +- .../tests/ClientCertificateCredentialTests.cs | 2 +- .../tests/ClientSecretCredentialTests.cs | 2 +- .../tests/CredentialTestBase.cs | 12 +- .../tests/CredentialTestHelpers.cs | 66 ++++++++ .../DefaultAzureCredentialFactoryTests.cs | 3 + .../tests/DefaultAzureCredentialTests.cs | 70 +++++--- .../tests/DeviceCodeCredentialTests.cs | 2 +- ...onmentCredential_ClientCertificateTests.cs | 2 +- ...EnvironmentCredential_ClientSecretTests.cs | 2 +- ...ronmentCredential_UserNamePasswordTests.cs | 2 +- .../tests/FileContentsCacheTests.cs | 68 ++++++++ .../InteractiveBrowserCredentialTests.cs | 2 +- .../Mock/MockDefaultAzureCredentialFactory.cs | 8 + .../tests/OnBehalfOfCredentialTests.cs | 2 +- .../AuthnenticateWithWorkflowIdentity.json | 149 ++++++++++++++++++ ...uthnenticateWithWorkflowIdentityAsync.json | 146 +++++++++++++++++ .../tests/SharedTokenCacheCredentialTests.cs | 2 +- .../tests/TestTempFileHandler.cs | 49 ++++++ .../tests/UsernamePasswordCredentialTests.cs | 2 +- .../WorkloadIdentityCredentialLiveTests.cs | 72 +++++++++ .../WorkloadIdentityCredentialOptoinsTests.cs | 40 +++++ .../tests/WorkloadIdentityCredentialTests.cs | 98 ++++++++++++ 32 files changed, 1006 insertions(+), 109 deletions(-) create mode 100644 sdk/identity/Azure.Identity/src/Credentials/WorkloadIdentityCredential.cs create mode 100644 sdk/identity/Azure.Identity/src/Credentials/WorkloadIdentityCredentialOptions.cs create mode 100644 sdk/identity/Azure.Identity/src/FileContentsCache.cs create mode 100644 sdk/identity/Azure.Identity/tests/FileContentsCacheTests.cs create mode 100644 sdk/identity/Azure.Identity/tests/SessionRecords/WorkloadIdentityCredentialLiveTests/AuthnenticateWithWorkflowIdentity.json create mode 100644 sdk/identity/Azure.Identity/tests/SessionRecords/WorkloadIdentityCredentialLiveTests/AuthnenticateWithWorkflowIdentityAsync.json create mode 100644 sdk/identity/Azure.Identity/tests/TestTempFileHandler.cs create mode 100644 sdk/identity/Azure.Identity/tests/WorkloadIdentityCredentialLiveTests.cs create mode 100644 sdk/identity/Azure.Identity/tests/WorkloadIdentityCredentialOptoinsTests.cs create mode 100644 sdk/identity/Azure.Identity/tests/WorkloadIdentityCredentialTests.cs diff --git a/sdk/identity/Azure.Identity/api/Azure.Identity.netstandard2.0.cs b/sdk/identity/Azure.Identity/api/Azure.Identity.netstandard2.0.cs index 2044b8826027c..14f62afa7d240 100644 --- a/sdk/identity/Azure.Identity/api/Azure.Identity.netstandard2.0.cs +++ b/sdk/identity/Azure.Identity/api/Azure.Identity.netstandard2.0.cs @@ -178,6 +178,7 @@ public DefaultAzureCredentialOptions() { } public bool ExcludeSharedTokenCacheCredential { get { throw null; } set { } } public bool ExcludeVisualStudioCodeCredential { get { throw null; } set { } } public bool ExcludeVisualStudioCredential { get { throw null; } set { } } + public bool ExcludeWorkloadIdentityCredential { get { throw null; } set { } } public string InteractiveBrowserCredentialClientId { get { throw null; } set { } } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public string InteractiveBrowserTenantId { get { throw null; } set { } } @@ -191,6 +192,7 @@ public DefaultAzureCredentialOptions() { } public string VisualStudioCodeTenantId { get { throw null; } set { } } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public string VisualStudioTenantId { get { throw null; } set { } } + public string WorkloadIdentityClientId { get { throw null; } set { } } } public partial class DeviceCodeCredential : Azure.Core.TokenCredential { @@ -423,4 +425,20 @@ public VisualStudioCredentialOptions() { } public string TenantId { get { throw null; } set { } } public System.TimeSpan? VisualStudioProcessTimeout { get { throw null; } set { } } } + public partial class WorkloadIdentityCredential : Azure.Core.TokenCredential + { + public WorkloadIdentityCredential() { } + public WorkloadIdentityCredential(Azure.Identity.WorkloadIdentityCredentialOptions options) { } + public override Azure.Core.AccessToken GetToken(Azure.Core.TokenRequestContext requestContext, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override System.Threading.Tasks.ValueTask GetTokenAsync(Azure.Core.TokenRequestContext requestContext, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class WorkloadIdentityCredentialOptions : Azure.Identity.TokenCredentialOptions + { + public WorkloadIdentityCredentialOptions() { } + public System.Collections.Generic.IList AdditionallyAllowedTenants { get { throw null; } } + public string ClientId { get { throw null; } set { } } + public bool DisableInstanceDiscovery { get { throw null; } set { } } + public string TenantId { get { throw null; } set { } } + public string TokenFilePath { get { throw null; } set { } } + } } diff --git a/sdk/identity/Azure.Identity/src/Credentials/DefaultAzureCredential.cs b/sdk/identity/Azure.Identity/src/Credentials/DefaultAzureCredential.cs index 23ee5563c042c..fb56c08eb309c 100644 --- a/sdk/identity/Azure.Identity/src/Credentials/DefaultAzureCredential.cs +++ b/sdk/identity/Azure.Identity/src/Credentials/DefaultAzureCredential.cs @@ -16,6 +16,7 @@ namespace Azure.Identity /// types if enabled will be tried, in order: /// /// + /// /// /// /// diff --git a/sdk/identity/Azure.Identity/src/Credentials/DefaultAzureCredentialOptions.cs b/sdk/identity/Azure.Identity/src/Credentials/DefaultAzureCredentialOptions.cs index b6e67d9b54a3f..cfcdd24918784 100644 --- a/sdk/identity/Azure.Identity/src/Credentials/DefaultAzureCredentialOptions.cs +++ b/sdk/identity/Azure.Identity/src/Credentials/DefaultAzureCredentialOptions.cs @@ -185,6 +185,11 @@ public string VisualStudioCodeTenantId /// public string InteractiveBrowserCredentialClientId { get; set; } + /// + /// Specifies the client id of the application the workload identity will authenticate. + /// + public string WorkloadIdentityClientId { get; set; } = EnvironmentVariables.ClientId; + /// /// Specifies the client id of a user assigned ManagedIdentity. If this value is configured, then should not be configured. /// @@ -206,6 +211,12 @@ public string VisualStudioCodeTenantId /// public bool ExcludeEnvironmentCredential { get; set; } + /// + /// Specifies whether the will be excluded from the authentication flow. Setting to true disables reading + /// authentication details from the process' environment variables. + /// + public bool ExcludeWorkloadIdentityCredential { get; set; } + /// /// Specifies whether the will be excluded from the authentication flow. /// Setting to true disables authenticating with managed identity endpoints. @@ -268,10 +279,12 @@ internal override T Clone() dacClone._visualStudioCodeTenantId = _visualStudioCodeTenantId; dacClone.SharedTokenCacheUsername = SharedTokenCacheUsername; dacClone.InteractiveBrowserCredentialClientId = InteractiveBrowserCredentialClientId; + dacClone.WorkloadIdentityClientId = WorkloadIdentityClientId; dacClone.ManagedIdentityClientId = ManagedIdentityClientId; dacClone.ManagedIdentityResourceId = ManagedIdentityResourceId; dacClone.DeveloperCredentialTimeout = DeveloperCredentialTimeout; dacClone.ExcludeEnvironmentCredential = ExcludeEnvironmentCredential; + dacClone.ExcludeWorkloadIdentityCredential = ExcludeWorkloadIdentityCredential; dacClone.ExcludeManagedIdentityCredential = ExcludeManagedIdentityCredential; dacClone.ExcludeAzureDeveloperCliCredential = ExcludeAzureDeveloperCliCredential; dacClone.ExcludeSharedTokenCacheCredential = ExcludeSharedTokenCacheCredential; diff --git a/sdk/identity/Azure.Identity/src/Credentials/WorkloadIdentityCredential.cs b/sdk/identity/Azure.Identity/src/Credentials/WorkloadIdentityCredential.cs new file mode 100644 index 0000000000000..ab1ffdce2880e --- /dev/null +++ b/sdk/identity/Azure.Identity/src/Credentials/WorkloadIdentityCredential.cs @@ -0,0 +1,90 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using System.Collections.Generic; +using System.Text; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.Pipeline; +using Microsoft.Identity.Client; + +namespace Azure.Identity +{ + /// + /// WorkloadIdentityCredential supports Azure workload identity authentication on Kubernetes and other hosts supporting workload identity. + /// Refer to Azure Active Directory Workload Identity for more information. + /// + public class WorkloadIdentityCredential : TokenCredential + { + private const string UnavailableErrorMessage = "WorkloadIdentityCredential authentication unavailable. The workload options are not fully configured. See the troubleshooting guide for more information. https://aka.ms/azsdk/net/identity/workloadidentitycredential/troubleshoot"; + private readonly FileContentsCache _tokenFileCache; + private readonly ClientAssertionCredential _clientAssertionCredential; + private readonly CredentialPipeline _pipeline; + internal MsalConfidentialClient Client => _clientAssertionCredential?.Client; + internal string[] AdditionallyAllowedTenantIds => _clientAssertionCredential?.AdditionallyAllowedTenantIds; + + /// + /// Creates a new instance of the with the default options. + /// When no options are specified AZURE_TENANT_ID, AZURE_CLIENT_ID and AZURE_FEDERATED_TOKEN_FILE must be specified in the environment. + /// + public WorkloadIdentityCredential() : this(default) { } + + /// + /// Creates a new instance of the with the specfied options. + /// + /// Options that allow to configure the management of the requests sent to the Azure Active Directory service. + public WorkloadIdentityCredential(WorkloadIdentityCredentialOptions options) + { + options = options ?? new(); + + if (!string.IsNullOrEmpty(options.TenantId) && !string.IsNullOrEmpty(options.ClientId) && !string.IsNullOrEmpty(options.TokenFilePath)) + { + _tokenFileCache = new FileContentsCache(options.TokenFilePath); + + ClientAssertionCredentialOptions clientAssertionCredentialOptions = options.Clone(); + + clientAssertionCredentialOptions.Pipeline = options.Pipeline; + clientAssertionCredentialOptions.MsalClient = options.MsalClient; + + _clientAssertionCredential = new ClientAssertionCredential(options.TenantId, options.ClientId, _tokenFileCache.GetTokenFileContentsAsync, clientAssertionCredentialOptions); + } + _pipeline = _clientAssertionCredential?.Pipeline ?? CredentialPipeline.GetInstance(default); + } + + /// + public override AccessToken GetToken(TokenRequestContext requestContext, CancellationToken cancellationToken = default) + { + return GetTokenCoreAsync(false, requestContext, cancellationToken).EnsureCompleted(); + } + + /// + public override async ValueTask GetTokenAsync(TokenRequestContext requestContext, CancellationToken cancellationToken = default) + { + return await GetTokenCoreAsync(true, requestContext, cancellationToken).ConfigureAwait(false); + } + + private async ValueTask GetTokenCoreAsync(bool async, TokenRequestContext requestContext, CancellationToken cancellationToken) + { + using CredentialDiagnosticScope scope = _pipeline.StartGetTokenScope("WorkloadIdentityCredential.GetToken", requestContext); + + try + { + if (_clientAssertionCredential == null) + { + throw new CredentialUnavailableException(UnavailableErrorMessage); + } + + AccessToken token = async ? await _clientAssertionCredential.GetTokenAsync(requestContext, cancellationToken).ConfigureAwait(false) + : _clientAssertionCredential.GetToken(requestContext, cancellationToken); + + return scope.Succeeded(token); + } + catch (Exception e) + { + throw scope.FailWrapAndThrow(e); + } + } + } +} diff --git a/sdk/identity/Azure.Identity/src/Credentials/WorkloadIdentityCredentialOptions.cs b/sdk/identity/Azure.Identity/src/Credentials/WorkloadIdentityCredentialOptions.cs new file mode 100644 index 0000000000000..16dd95af11c29 --- /dev/null +++ b/sdk/identity/Azure.Identity/src/Credentials/WorkloadIdentityCredentialOptions.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using System.Collections.Generic; +using System.Text; + +namespace Azure.Identity +{ + /// + /// Options used to configure the . + /// + public class WorkloadIdentityCredentialOptions : TokenCredentialOptions, ISupportsDisableInstanceDiscovery, ISupportsAdditionallyAllowedTenants + { + /// + /// The tenant ID of the service principal. Defaults to the value of the environment variable AZURE_TENANT_ID. + /// + public string TenantId { get; set; } = EnvironmentVariables.TenantId; + + /// + /// The client (application) ID of the service principal. Defaults to the value of the environment variable AZURE_CLIENT_ID. + /// + public string ClientId { get; set; } = EnvironmentVariables.ClientId; + + /// + /// The path to a file containing the workload identity token. Defaults to the value of the environment variable AZURE_FEDERATED_TOKEN_FILE. + /// + public string TokenFilePath { get; set; } = EnvironmentVariables.AzureFederatedTokenFile; + + /// + public bool DisableInstanceDiscovery { get; set; } + + /// + /// Specifies tenants in addition to the specified for which the credential may acquire tokens. + /// Add the wildcard value "*" to allow the credential to acquire tokens for any tenant the logged in account can access. + /// If no value is specified for , this option will have no effect, and the credential will acquire tokens for any requested tenant. + /// Defaults to the value of the environment variable AZURE_ADDITIONALLY_ALLOWED_TENANTS. + /// + public IList AdditionallyAllowedTenants { get; internal set; } = EnvironmentVariables.AdditionallyAllowedTenants; + + internal CredentialPipeline Pipeline { get; set; } + + internal MsalConfidentialClient MsalClient { get; set; } + } +} diff --git a/sdk/identity/Azure.Identity/src/DefaultAzureCredentialFactory.cs b/sdk/identity/Azure.Identity/src/DefaultAzureCredentialFactory.cs index c1917fef05340..a95edbc08270b 100644 --- a/sdk/identity/Azure.Identity/src/DefaultAzureCredentialFactory.cs +++ b/sdk/identity/Azure.Identity/src/DefaultAzureCredentialFactory.cs @@ -37,13 +37,18 @@ public TokenCredential[] CreateCredentialChain() return s_defaultCredentialChain; } - List chain = new(9); + List chain = new(10); if (!Options.ExcludeEnvironmentCredential) { chain.Add(CreateEnvironmentCredential()); } + if (!Options.ExcludeWorkloadIdentityCredential) + { + chain.Add(CreateWorkloadIdentityCredential()); + } + if (!Options.ExcludeManagedIdentityCredential) { chain.Add(CreateManagedIdentityCredential()); @@ -99,6 +104,17 @@ public virtual TokenCredential CreateEnvironmentCredential() return new EnvironmentCredential(Pipeline, options); } + public virtual TokenCredential CreateWorkloadIdentityCredential() + { + var options = Options.Clone(); + + options.ClientId = Options.WorkloadIdentityClientId; + options.TenantId = Options.TenantId; + options.Pipeline = Pipeline; + + return new WorkloadIdentityCredential(options); + } + public virtual TokenCredential CreateManagedIdentityCredential() { return new ManagedIdentityCredential(new ManagedIdentityClient( diff --git a/sdk/identity/Azure.Identity/src/FileContentsCache.cs b/sdk/identity/Azure.Identity/src/FileContentsCache.cs new file mode 100644 index 0000000000000..93326d7861e5e --- /dev/null +++ b/sdk/identity/Azure.Identity/src/FileContentsCache.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using System.Collections.Generic; +using System.IO; +using System.Text; +using System.Threading; +using System.Threading.Tasks; + +namespace Azure.Identity +{ +#pragma warning disable CA1001 // Types that own disposable fields should be disposable + internal class FileContentsCache +#pragma warning restore CA1001 // Types that own disposable fields should be disposable + { + private SemaphoreSlim _lock= new SemaphoreSlim(1); + private readonly string _tokenFilePath; + private string _tokenFileContents; + private DateTimeOffset _refreshOn = DateTimeOffset.MinValue; + private readonly TimeSpan _refreshInterval; + + public FileContentsCache(string tokenFilePath, TimeSpan? refreshInterval = default) + { + _refreshInterval = refreshInterval ?? TimeSpan.FromMinutes(5); + + _tokenFilePath = tokenFilePath; + } + + public async Task GetTokenFileContentsAsync(CancellationToken cancellationToken) + { + if (_refreshOn <= DateTimeOffset.UtcNow) + { + await _lock.WaitAsync(cancellationToken).ConfigureAwait(false); + + try + { + if (_refreshOn <= DateTimeOffset.UtcNow) + { + using (var reader = File.OpenText(_tokenFilePath)) + { + _tokenFileContents = await reader.ReadToEndAsync().ConfigureAwait(false); + + _refreshOn = DateTimeOffset.UtcNow + _refreshInterval; + } + } + } + finally + { + _lock.Release(); + } + } + + return _tokenFileContents; + } + } +} diff --git a/sdk/identity/Azure.Identity/tests/AuthorizationCodeCredentialTests.cs b/sdk/identity/Azure.Identity/tests/AuthorizationCodeCredentialTests.cs index eb6556d74a678..fa556a981ac52 100644 --- a/sdk/identity/Azure.Identity/tests/AuthorizationCodeCredentialTests.cs +++ b/sdk/identity/Azure.Identity/tests/AuthorizationCodeCredentialTests.cs @@ -31,7 +31,7 @@ public override TokenCredential GetTokenCredential(CommonCredentialTestConfig co var options = new AuthorizationCodeCredentialOptions { Transport = config.Transport, - DisableInstanceDiscovery = config.DisableMetadataDiscovery ?? false, + DisableInstanceDiscovery = config.DisableInstanceDiscovery, AdditionallyAllowedTenants = config.AdditionallyAllowedTenants }; var pipeline = CredentialPipeline.GetInstance(options); diff --git a/sdk/identity/Azure.Identity/tests/ClientAssertionCredentialLiveTests.cs b/sdk/identity/Azure.Identity/tests/ClientAssertionCredentialLiveTests.cs index 5daeffe6702ca..93646636ea4bc 100644 --- a/sdk/identity/Azure.Identity/tests/ClientAssertionCredentialLiveTests.cs +++ b/sdk/identity/Azure.Identity/tests/ClientAssertionCredentialLiveTests.cs @@ -40,13 +40,13 @@ public async Task AuthnenticateWithAssertionCallback(bool useAsyncCallback) if (useAsyncCallback) { - Func> assertionCallback = (ct) => Task.FromResult(CreateClientAssertionJWT(options.AuthorityHost, clientId, tenantId, cert)); + Func> assertionCallback = (ct) => Task.FromResult(CredentialTestHelpers.CreateClientAssertionJWT(options.AuthorityHost, clientId, tenantId, cert)); credential = InstrumentClient(new ClientAssertionCredential(tenantId, clientId, assertionCallback, options)); } else { - Func assertionCallback = () => CreateClientAssertionJWT(options.AuthorityHost, clientId, tenantId, cert); + Func assertionCallback = () => CredentialTestHelpers.CreateClientAssertionJWT(options.AuthorityHost, clientId, tenantId, cert); credential = InstrumentClient(new ClientAssertionCredential(tenantId, clientId, assertionCallback, options)); } @@ -74,69 +74,5 @@ public async Task AuthnenticateWithAssertionCallback(bool useAsyncCallback) Assert.AreNotEqual(token.Token, token2.Token); } } - - private static string CreateClientAssertionJWT(Uri authorityHost, string clientId, string tenantId, X509Certificate2 clientCertificate) - { - var audienceBuilder = new RequestUriBuilder(); - - audienceBuilder.Reset(authorityHost); - - audienceBuilder.AppendPath(tenantId + "/v2.0", false); - - var audience = audienceBuilder.ToString(); - - var headerBuff = new ArrayBufferWriter(); - - using (var headerJson = new Utf8JsonWriter(headerBuff)) - { - headerJson.WriteStartObject(); - - headerJson.WriteString("typ", "JWT"); - headerJson.WriteString("alg", "RS256"); - headerJson.WriteString("x5t", HexToBase64Url(clientCertificate.Thumbprint)); - - headerJson.WriteEndObject(); - - headerJson.Flush(); - } - - var payloadBuff = new ArrayBufferWriter(); - - using (var payloadJson = new Utf8JsonWriter(payloadBuff)) - { - payloadJson.WriteStartObject(); - - payloadJson.WriteString("jti", Guid.NewGuid()); - payloadJson.WriteString("aud", audience); - payloadJson.WriteString("iss", clientId); - payloadJson.WriteString("sub", clientId); - payloadJson.WriteNumber("nbf", DateTimeOffset.UtcNow.ToUnixTimeSeconds()); - payloadJson.WriteNumber("exp", (DateTimeOffset.UtcNow + TimeSpan.FromMinutes(30)).ToUnixTimeSeconds()); - - payloadJson.WriteEndObject(); - - payloadJson.Flush(); - } - - string header = Base64Url.Encode(headerBuff.WrittenMemory.ToArray()); - - string payload = Base64Url.Encode(payloadBuff.WrittenMemory.ToArray()); - - string flattenedJws = header + "." + payload; - - byte[] signature = clientCertificate.GetRSAPrivateKey().SignData(Encoding.ASCII.GetBytes(flattenedJws), HashAlgorithmName.SHA256, RSASignaturePadding.Pkcs1); - - return flattenedJws + "." + Base64Url.Encode(signature); - } - - public static string HexToBase64Url(string hex) - { - byte[] bytes = new byte[hex.Length / 2]; - - for (int i = 0; i < hex.Length; i += 2) - bytes[i / 2] = Convert.ToByte(hex.Substring(i, 2), 16); - - return Base64Url.Encode(bytes); - } } } diff --git a/sdk/identity/Azure.Identity/tests/ClientAssertionCredentialTests.cs b/sdk/identity/Azure.Identity/tests/ClientAssertionCredentialTests.cs index acdd8de6f628c..4159dbe11d177 100644 --- a/sdk/identity/Azure.Identity/tests/ClientAssertionCredentialTests.cs +++ b/sdk/identity/Azure.Identity/tests/ClientAssertionCredentialTests.cs @@ -31,7 +31,7 @@ public override TokenCredential GetTokenCredential(CommonCredentialTestConfig co var options = new ClientAssertionCredentialOptions { Transport = config.Transport, - DisableInstanceDiscovery = config.DisableMetadataDiscovery ?? false, + DisableInstanceDiscovery = config.DisableInstanceDiscovery, AdditionallyAllowedTenants = config.AdditionallyAllowedTenants }; var pipeline = CredentialPipeline.GetInstance(options); diff --git a/sdk/identity/Azure.Identity/tests/ClientCertificateCredentialTests.cs b/sdk/identity/Azure.Identity/tests/ClientCertificateCredentialTests.cs index f15000bd64c54..cef6e8263fed4 100644 --- a/sdk/identity/Azure.Identity/tests/ClientCertificateCredentialTests.cs +++ b/sdk/identity/Azure.Identity/tests/ClientCertificateCredentialTests.cs @@ -39,7 +39,7 @@ public override TokenCredential GetTokenCredential(CommonCredentialTestConfig co var options = new ClientCertificateCredentialOptions { Transport = config.Transport, - DisableInstanceDiscovery = config.DisableMetadataDiscovery ?? false, + DisableInstanceDiscovery = config.DisableInstanceDiscovery, AdditionallyAllowedTenants = config.AdditionallyAllowedTenants }; var pipeline = CredentialPipeline.GetInstance(options); diff --git a/sdk/identity/Azure.Identity/tests/ClientSecretCredentialTests.cs b/sdk/identity/Azure.Identity/tests/ClientSecretCredentialTests.cs index 249b0815c3970..70bb0a4dac2b1 100644 --- a/sdk/identity/Azure.Identity/tests/ClientSecretCredentialTests.cs +++ b/sdk/identity/Azure.Identity/tests/ClientSecretCredentialTests.cs @@ -28,7 +28,7 @@ public override TokenCredential GetTokenCredential(CommonCredentialTestConfig co var options = new ClientSecretCredentialOptions { Transport = config.Transport, - DisableInstanceDiscovery = config.DisableMetadataDiscovery ?? false, + DisableInstanceDiscovery = config.DisableInstanceDiscovery, AdditionallyAllowedTenants = config.AdditionallyAllowedTenants }; var pipeline = CredentialPipeline.GetInstance(options); diff --git a/sdk/identity/Azure.Identity/tests/CredentialTestBase.cs b/sdk/identity/Azure.Identity/tests/CredentialTestBase.cs index 80ad2c0fd1104..5c54e17f3aef3 100644 --- a/sdk/identity/Azure.Identity/tests/CredentialTestBase.cs +++ b/sdk/identity/Azure.Identity/tests/CredentialTestBase.cs @@ -119,7 +119,7 @@ public async Task DisableInstanceMetadataDiscovery([Values(true, false)] bool di var config = new CommonCredentialTestConfig() { - DisableMetadataDiscovery = disable, + DisableInstanceDiscovery = disable, Transport = mockTransport, TenantId = TenantId, }; @@ -173,8 +173,7 @@ public async Task VerifyAllowedTenantEnforcementCredentials(AllowedTenantsTestPa Transport = mockTransport, TenantId = parameters.TenantId, RequestContext = parameters.TokenRequestContext, - AdditionallyAllowedTenants = parameters.AdditionallyAllowedTenants, - DisableMetadataDiscovery = null + AdditionallyAllowedTenants = parameters.AdditionallyAllowedTenants }; var credential = GetTokenCredential(config); @@ -385,13 +384,12 @@ protected async Task ReadMockRequestContent(MockRequest request) } } - public class CommonCredentialTestConfig + public class CommonCredentialTestConfig : TokenCredentialOptions, ISupportsAdditionallyAllowedTenants, ISupportsDisableInstanceDiscovery { - public bool? DisableMetadataDiscovery { get; set; } - public HttpPipelineTransport Transport { get; set; } + public bool DisableInstanceDiscovery { get; set; } public TokenRequestContext RequestContext { get; set; } public string TenantId { get; set; } - public List AdditionallyAllowedTenants { get; set; } + public IList AdditionallyAllowedTenants { get; set; } = new List(); } } } diff --git a/sdk/identity/Azure.Identity/tests/CredentialTestHelpers.cs b/sdk/identity/Azure.Identity/tests/CredentialTestHelpers.cs index 9ce5744d4fcc3..ba4379fb6f9cf 100644 --- a/sdk/identity/Azure.Identity/tests/CredentialTestHelpers.cs +++ b/sdk/identity/Azure.Identity/tests/CredentialTestHelpers.cs @@ -7,6 +7,8 @@ using System.IO; using System.Reflection; using System.Runtime.InteropServices; +using System.Security.Cryptography.X509Certificates; +using System.Security.Cryptography; using System.Text; using System.Text.Json; using System.Threading.Tasks; @@ -522,6 +524,70 @@ public static bool IsCredentialTypePubClient(TokenCredential cred) return clientType == typeof(MsalPublicClient); } + public static string CreateClientAssertionJWT(Uri authorityHost, string clientId, string tenantId, X509Certificate2 clientCertificate) + { + var audienceBuilder = new RequestUriBuilder(); + + audienceBuilder.Reset(authorityHost); + + audienceBuilder.AppendPath(tenantId + "/v2.0", false); + + var audience = audienceBuilder.ToString(); + + var headerBuff = new ArrayBufferWriter(); + + using (var headerJson = new Utf8JsonWriter(headerBuff)) + { + headerJson.WriteStartObject(); + + headerJson.WriteString("typ", "JWT"); + headerJson.WriteString("alg", "RS256"); + headerJson.WriteString("x5t", HexToBase64Url(clientCertificate.Thumbprint)); + + headerJson.WriteEndObject(); + + headerJson.Flush(); + } + + var payloadBuff = new ArrayBufferWriter(); + + using (var payloadJson = new Utf8JsonWriter(payloadBuff)) + { + payloadJson.WriteStartObject(); + + payloadJson.WriteString("jti", Guid.NewGuid()); + payloadJson.WriteString("aud", audience); + payloadJson.WriteString("iss", clientId); + payloadJson.WriteString("sub", clientId); + payloadJson.WriteNumber("nbf", DateTimeOffset.UtcNow.ToUnixTimeSeconds()); + payloadJson.WriteNumber("exp", (DateTimeOffset.UtcNow + TimeSpan.FromMinutes(30)).ToUnixTimeSeconds()); + + payloadJson.WriteEndObject(); + + payloadJson.Flush(); + } + + string header = Base64Url.Encode(headerBuff.WrittenMemory.ToArray()); + + string payload = Base64Url.Encode(payloadBuff.WrittenMemory.ToArray()); + + string flattenedJws = header + "." + payload; + + byte[] signature = clientCertificate.GetRSAPrivateKey().SignData(Encoding.ASCII.GetBytes(flattenedJws), HashAlgorithmName.SHA256, RSASignaturePadding.Pkcs1); + + return flattenedJws + "." + Base64Url.Encode(signature); + } + + public static string HexToBase64Url(string hex) + { + byte[] bytes = new byte[hex.Length / 2]; + + for (int i = 0; i < hex.Length; i += 2) + bytes[i / 2] = Convert.ToByte(hex.Substring(i, 2), 16); + + return Base64Url.Encode(bytes); + } + private sealed class RefreshTokenRetriever { public string RefreshToken { get; private set; } diff --git a/sdk/identity/Azure.Identity/tests/DefaultAzureCredentialFactoryTests.cs b/sdk/identity/Azure.Identity/tests/DefaultAzureCredentialFactoryTests.cs index bc176c11fc876..829b9338c9a9d 100644 --- a/sdk/identity/Azure.Identity/tests/DefaultAzureCredentialFactoryTests.cs +++ b/sdk/identity/Azure.Identity/tests/DefaultAzureCredentialFactoryTests.cs @@ -322,6 +322,7 @@ public void ValidateInteractiveBrowserOptionsHonored([Values] bool setTenantId, [Test] public void ValidateExcludeOptionsHonored([Values(true, false)] bool excludeEnvironmentCredential, + [Values(true, false)] bool excludeWorkloadIdentityCredential, [Values(true, false)] bool excludeManagedIdentityCredential, [Values(true, false)] bool excludeDeveloperCliCredential, [Values(true, false)] bool excludeSharedTokenCacheCredential, @@ -341,6 +342,7 @@ public void ValidateExcludeOptionsHonored([Values(true, false)] bool excludeEnvi { var expCredentialTypes = new List(); expCredentialTypes.ConditionalAdd(!excludeEnvironmentCredential, typeof(EnvironmentCredential)); + expCredentialTypes.ConditionalAdd(!excludeWorkloadIdentityCredential, typeof(WorkloadIdentityCredential)); expCredentialTypes.ConditionalAdd(!excludeManagedIdentityCredential, typeof(ManagedIdentityCredential)); expCredentialTypes.ConditionalAdd(!excludeDeveloperCliCredential, typeof(AzureDeveloperCliCredential)); expCredentialTypes.ConditionalAdd(!excludeSharedTokenCacheCredential, typeof(SharedTokenCacheCredential)); @@ -353,6 +355,7 @@ public void ValidateExcludeOptionsHonored([Values(true, false)] bool excludeEnvi var options = new DefaultAzureCredentialOptions { ExcludeEnvironmentCredential = excludeEnvironmentCredential, + ExcludeWorkloadIdentityCredential= excludeWorkloadIdentityCredential, ExcludeManagedIdentityCredential = excludeManagedIdentityCredential, ExcludeAzureDeveloperCliCredential = excludeDeveloperCliCredential, ExcludeSharedTokenCacheCredential = excludeSharedTokenCacheCredential, diff --git a/sdk/identity/Azure.Identity/tests/DefaultAzureCredentialTests.cs b/sdk/identity/Azure.Identity/tests/DefaultAzureCredentialTests.cs index fa56e1811faec..730ca74b6f2e3 100644 --- a/sdk/identity/Azure.Identity/tests/DefaultAzureCredentialTests.cs +++ b/sdk/identity/Azure.Identity/tests/DefaultAzureCredentialTests.cs @@ -32,13 +32,14 @@ public void ValidateCtorNoOptions() TokenCredential[] sources = cred._sources(); Assert.NotNull(sources); - Assert.AreEqual(sources.Length, 6); + Assert.AreEqual(sources.Length, 7); Assert.IsInstanceOf(typeof(EnvironmentCredential), sources[0]); - Assert.IsInstanceOf(typeof(ManagedIdentityCredential), sources[1]); - Assert.IsInstanceOf(typeof(AzureDeveloperCliCredential), sources[2]); - Assert.IsInstanceOf(typeof(VisualStudioCredential), sources[3]); - Assert.IsInstanceOf(typeof(AzureCliCredential), sources[4]); - Assert.IsInstanceOf(typeof(AzurePowerShellCredential), sources[5]); + Assert.IsInstanceOf(typeof(WorkloadIdentityCredential), sources[1]); + Assert.IsInstanceOf(typeof(ManagedIdentityCredential), sources[2]); + Assert.IsInstanceOf(typeof(AzureDeveloperCliCredential), sources[3]); + Assert.IsInstanceOf(typeof(VisualStudioCredential), sources[4]); + Assert.IsInstanceOf(typeof(AzureCliCredential), sources[5]); + Assert.IsInstanceOf(typeof(AzurePowerShellCredential), sources[6]); } [Test] @@ -49,23 +50,25 @@ public void ValidateCtorIncludedInteractiveParam([Values(true, false)] bool incl TokenCredential[] sources = cred._sources(); Assert.NotNull(sources); - Assert.AreEqual(sources.Length, includeInteractive ? 7 : 6); + Assert.AreEqual(sources.Length, includeInteractive ? 8 : 7); Assert.IsInstanceOf(typeof(EnvironmentCredential), sources[0]); - Assert.IsInstanceOf(typeof(ManagedIdentityCredential), sources[1]); - Assert.IsInstanceOf(typeof(AzureDeveloperCliCredential), sources[2]); - Assert.IsInstanceOf(typeof(VisualStudioCredential), sources[3]); - Assert.IsInstanceOf(typeof(AzureCliCredential), sources[4]); - Assert.IsInstanceOf(typeof(AzurePowerShellCredential), sources[5]); + Assert.IsInstanceOf(typeof(WorkloadIdentityCredential), sources[1]); + Assert.IsInstanceOf(typeof(ManagedIdentityCredential), sources[2]); + Assert.IsInstanceOf(typeof(AzureDeveloperCliCredential), sources[3]); + Assert.IsInstanceOf(typeof(VisualStudioCredential), sources[4]); + Assert.IsInstanceOf(typeof(AzureCliCredential), sources[5]); + Assert.IsInstanceOf(typeof(AzurePowerShellCredential), sources[6]); if (includeInteractive) { - Assert.IsInstanceOf(typeof(InteractiveBrowserCredential), sources[6]); + Assert.IsInstanceOf(typeof(InteractiveBrowserCredential), sources[7]); } } [Test] public void ValidateAllUnavailable([Values(true, false)] bool excludeEnvironmentCredential, + [Values(true, false)] bool excludeWorkloadIdentityCredential, [Values(true, false)] bool excludeManagedIdentityCredential, [Values(true, false)] bool excludeDeveloperCliCredential, [Values(true, false)] bool excludeSharedTokenCacheCredential, @@ -75,7 +78,7 @@ public void ValidateAllUnavailable([Values(true, false)] bool excludeEnvironment [Values(true, false)] bool excludePowerShellCredential, [Values(true, false)] bool excludeInteractiveBrowserCredential) { - if (excludeEnvironmentCredential && excludeManagedIdentityCredential && excludeDeveloperCliCredential && excludeSharedTokenCacheCredential && excludeVisualStudioCredential && excludeVisualStudioCodeCredential && excludeCliCredential && excludeInteractiveBrowserCredential) + if (excludeEnvironmentCredential && excludeWorkloadIdentityCredential && excludeManagedIdentityCredential && excludeDeveloperCliCredential && excludeSharedTokenCacheCredential && excludeVisualStudioCredential && excludeVisualStudioCodeCredential && excludeCliCredential && excludeInteractiveBrowserCredential) { Assert.Pass(); } @@ -83,6 +86,7 @@ public void ValidateAllUnavailable([Values(true, false)] bool excludeEnvironment var options = new DefaultAzureCredentialOptions { ExcludeEnvironmentCredential = excludeEnvironmentCredential, + ExcludeWorkloadIdentityCredential = excludeWorkloadIdentityCredential, ExcludeManagedIdentityCredential = excludeManagedIdentityCredential, ExcludeAzureDeveloperCliCredential = excludeDeveloperCliCredential, ExcludeSharedTokenCacheCredential = excludeSharedTokenCacheCredential, @@ -103,6 +107,8 @@ void SetupMockForException(Mock mock) where T : TokenCredential => SetupMockForException(c); credFactory.OnCreateInteractiveBrowserCredential = c => SetupMockForException(c); + credFactory.OnCreateWorkloadIdentityCredential = c => + SetupMockForException(c); credFactory.OnCreateManagedIdentityCredential = c => SetupMockForException(c); credFactory.OnCreateAzureDeveloperCliCredential = c => @@ -126,6 +132,10 @@ void SetupMockForException(Mock mock) where T : TokenCredential => { Assert.True(ex.Message.Contains("EnvironmentCredential Unavailable")); } + if (!excludeWorkloadIdentityCredential) + { + Assert.True(ex.Message.Contains("WorkloadIdentityCredential Unavailable")); + } if (!excludeManagedIdentityCredential) { Assert.True(ex.Message.Contains("ManagedIdentityCredential Unavailable")); @@ -167,6 +177,7 @@ public void ValidateUnhandledException(Type credentialType) var options = new DefaultAzureCredentialOptions { ExcludeEnvironmentCredential = false, + ExcludeWorkloadIdentityCredential = false, ExcludeManagedIdentityCredential = false, ExcludeAzureDeveloperCliCredential = false, ExcludeSharedTokenCacheCredential = false, @@ -196,6 +207,8 @@ void SetupMockForException(Mock mock) where T : TokenCredential credFactory.OnCreateEnvironmentCredential = c => SetupMockForException(c); + credFactory.OnCreateWorkloadIdentityCredential = c => + SetupMockForException(c); credFactory.OnCreateManagedIdentityCredential = c => SetupMockForException(c); credFactory.OnCreateAzureDeveloperCliCredential = c => @@ -236,6 +249,7 @@ public static IEnumerable AllCredentialTypes() yield return new object[] { typeof(ManagedIdentityCredential) }; yield return new object[] { typeof(AzurePowerShellCredential) }; yield return new object[] { typeof(AzureDeveloperCliCredential) }; + yield return new object[] { typeof(WorkloadIdentityCredential) }; } [Test] @@ -296,6 +310,7 @@ public async Task CredentialTypeLogged(Type availableCredential) var options = new DefaultAzureCredentialOptions { ExcludeEnvironmentCredential = false, + ExcludeWorkloadIdentityCredential= false, ExcludeManagedIdentityCredential = false, ExcludeAzureDeveloperCliCredential = false, ExcludeSharedTokenCacheCredential = false, @@ -325,7 +340,6 @@ public void DisableMetadataDiscoveryOptionIsHonoredWhenTrue(Type availableCreden { Assert.Ignore($"Credential {availableCredential.Name} does not support disabling instance discovery"); } - DefaultAzureCredentialOptions options = GetDacOptions(availableCredential, true); using (new TestEnvVar(new Dictionary { { "AZURE_CLIENT_ID", "mockclientid" }, @@ -333,8 +347,11 @@ public void DisableMetadataDiscoveryOptionIsHonoredWhenTrue(Type availableCreden { "AZURE_TENANT_ID", "mocktenantid" }, {"AZURE_USERNAME", "mockusername" }, { "AZURE_PASSWORD", "mockpassword" }, - { "AZURE_CLIENT_CERTIFICATE_PATH", null } })) + { "AZURE_CLIENT_CERTIFICATE_PATH", null }, + { "AZURE_FEDERATED_TOKEN_FILE", "/temp/token" } })) { + DefaultAzureCredentialOptions options = GetDacOptions(availableCredential, true); + var credential = new DefaultAzureCredential(options); Assert.AreEqual(1, credential._sources.Length); var targetCred = credential._sources[0]; @@ -354,7 +371,6 @@ public void DisableMetadataDiscoveryOptionIsHonoredWhenFalse(Type availableCrede { Assert.Ignore($"Credential {availableCredential.Name} does not support disabling instance discovery"); } - DefaultAzureCredentialOptions options = GetDacOptions(availableCredential, false); using (new TestEnvVar(new Dictionary { { "AZURE_CLIENT_ID", "mockclientid" }, @@ -362,8 +378,10 @@ public void DisableMetadataDiscoveryOptionIsHonoredWhenFalse(Type availableCrede { "AZURE_TENANT_ID", "mocktenantid" }, {"AZURE_USERNAME", "mockusername" }, { "AZURE_PASSWORD", "mockpassword" }, - { "AZURE_CLIENT_CERTIFICATE_PATH", null } })) + { "AZURE_CLIENT_CERTIFICATE_PATH", null }, + { "AZURE_FEDERATED_TOKEN_FILE", "c:/temp/token" } })) { + DefaultAzureCredentialOptions options = GetDacOptions(availableCredential, false); var credential = new DefaultAzureCredential(options); Assert.AreEqual(1, credential._sources.Length); var targetCred = credential._sources[0]; @@ -377,18 +395,20 @@ public void DisableMetadataDiscoveryOptionIsHonoredWhenFalse(Type availableCrede [TestCaseSource(nameof(AllCredentialTypes))] public void AdditionallyAllowedTenantsOptionIsHonored(Type availableCredential) { - DefaultAzureCredentialOptions options = GetDacOptions(availableCredential, false); - var additionalTenant = Guid.NewGuid().ToString(); - options.AdditionallyAllowedTenants.Add(additionalTenant); - using (new TestEnvVar(new Dictionary { { "AZURE_CLIENT_ID", "mockclientid" }, { "AZURE_CLIENT_SECRET", null}, { "AZURE_TENANT_ID", "mocktenantid" }, {"AZURE_USERNAME", "mockusername" }, { "AZURE_PASSWORD", "mockpassword" }, - { "AZURE_CLIENT_CERTIFICATE_PATH", null } })) + { "AZURE_CLIENT_CERTIFICATE_PATH", null }, + { "AZURE_FEDERATED_TOKEN_FILE", "c:/temp/token" } + })) { + DefaultAzureCredentialOptions options = GetDacOptions(availableCredential, false); + var additionalTenant = Guid.NewGuid().ToString(); + options.AdditionallyAllowedTenants.Add(additionalTenant); + var credential = new DefaultAzureCredential(options); Assert.AreEqual(1, credential._sources.Length); var targetCred = credential._sources[0]; @@ -407,6 +427,7 @@ private static DefaultAzureCredentialOptions GetDacOptions(Type availableCredent return new DefaultAzureCredentialOptions { ExcludeEnvironmentCredential = availableCredential != typeof(EnvironmentCredential), + ExcludeWorkloadIdentityCredential = availableCredential != typeof(WorkloadIdentityCredential), ExcludeManagedIdentityCredential = availableCredential != typeof(ManagedIdentityCredential), ExcludeAzureDeveloperCliCredential = availableCredential != typeof(AzureDeveloperCliCredential), ExcludeSharedTokenCacheCredential = availableCredential != typeof(SharedTokenCacheCredential), @@ -429,6 +450,7 @@ private static Type GetTargetCredentialOptionType(Type availableCredential) "AzureCliCredential" => typeof(AzureCliCredentialOptions), "AzurePowerShellCredential" => typeof(AzurePowerShellCredentialOptions), "InteractiveBrowserCredential" => typeof(InteractiveBrowserCredentialOptions), + "WorkloadIdentityCredential" => typeof(WorkloadIdentityCredentialOptions), "ManagedIdentityCredential" => typeof(TokenCredentialOptions), "AzureDeveloperCliCredential" => typeof(AzureDeveloperCliCredentialOptions), "EnvironmentCredential" => typeof(EnvironmentCredentialOptions), @@ -460,6 +482,8 @@ void SetupMockForException(Mock mock) where T : TokenCredential credFactory.OnCreateEnvironmentCredential = c => SetupMockForException(c); + credFactory.OnCreateWorkloadIdentityCredential = c => + SetupMockForException(c); credFactory.OnCreateManagedIdentityCredential = c => SetupMockForException(c); credFactory.OnCreateAzureDeveloperCliCredential = c => diff --git a/sdk/identity/Azure.Identity/tests/DeviceCodeCredentialTests.cs b/sdk/identity/Azure.Identity/tests/DeviceCodeCredentialTests.cs index dac9ce8059eab..308b8c517ab8f 100644 --- a/sdk/identity/Azure.Identity/tests/DeviceCodeCredentialTests.cs +++ b/sdk/identity/Azure.Identity/tests/DeviceCodeCredentialTests.cs @@ -64,7 +64,7 @@ public override TokenCredential GetTokenCredential(CommonCredentialTestConfig co { Transport = config.Transport, AdditionallyAllowedTenants = config.AdditionallyAllowedTenants, - DisableInstanceDiscovery = config.DisableMetadataDiscovery ?? false + DisableInstanceDiscovery = config.DisableInstanceDiscovery }; var pipeline = CredentialPipeline.GetInstance(options); return InstrumentClient(new DeviceCodeCredential((code, _) => diff --git a/sdk/identity/Azure.Identity/tests/EnvironmentCredential_ClientCertificateTests.cs b/sdk/identity/Azure.Identity/tests/EnvironmentCredential_ClientCertificateTests.cs index d7a7cf4c0af43..b5ef056ffd57c 100644 --- a/sdk/identity/Azure.Identity/tests/EnvironmentCredential_ClientCertificateTests.cs +++ b/sdk/identity/Azure.Identity/tests/EnvironmentCredential_ClientCertificateTests.cs @@ -45,7 +45,7 @@ public override TokenCredential GetTokenCredential(CommonCredentialTestConfig co var options = new EnvironmentCredentialOptions { Transport = config.Transport, - DisableInstanceDiscovery = config.DisableMetadataDiscovery ?? false + DisableInstanceDiscovery = config.DisableInstanceDiscovery }; var pipeline = CredentialPipeline.GetInstance(options); diff --git a/sdk/identity/Azure.Identity/tests/EnvironmentCredential_ClientSecretTests.cs b/sdk/identity/Azure.Identity/tests/EnvironmentCredential_ClientSecretTests.cs index ced03a527e2fe..6905333fc973d 100644 --- a/sdk/identity/Azure.Identity/tests/EnvironmentCredential_ClientSecretTests.cs +++ b/sdk/identity/Azure.Identity/tests/EnvironmentCredential_ClientSecretTests.cs @@ -45,7 +45,7 @@ public override TokenCredential GetTokenCredential(CommonCredentialTestConfig co var options = new EnvironmentCredentialOptions { Transport = config.Transport, - DisableInstanceDiscovery = config.DisableMetadataDiscovery ?? false + DisableInstanceDiscovery = config.DisableInstanceDiscovery }; var pipeline = CredentialPipeline.GetInstance(options); diff --git a/sdk/identity/Azure.Identity/tests/EnvironmentCredential_UserNamePasswordTests.cs b/sdk/identity/Azure.Identity/tests/EnvironmentCredential_UserNamePasswordTests.cs index 20ccffe5a5f09..945e0f048d47c 100644 --- a/sdk/identity/Azure.Identity/tests/EnvironmentCredential_UserNamePasswordTests.cs +++ b/sdk/identity/Azure.Identity/tests/EnvironmentCredential_UserNamePasswordTests.cs @@ -46,7 +46,7 @@ public override TokenCredential GetTokenCredential(CommonCredentialTestConfig co var options = new EnvironmentCredentialOptions { Transport = config.Transport, - DisableInstanceDiscovery = config.DisableMetadataDiscovery ?? false, + DisableInstanceDiscovery = config.DisableInstanceDiscovery, }; return InstrumentClient(new EnvironmentCredential(options)); diff --git a/sdk/identity/Azure.Identity/tests/FileContentsCacheTests.cs b/sdk/identity/Azure.Identity/tests/FileContentsCacheTests.cs new file mode 100644 index 0000000000000..997de72ecd5d7 --- /dev/null +++ b/sdk/identity/Azure.Identity/tests/FileContentsCacheTests.cs @@ -0,0 +1,68 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading; +using System.Threading.Tasks; +using NUnit.Framework; + +namespace Azure.Identity.Tests +{ + public class FileContentsCacheTests + { + private TestTempFileHandler _tempFiles = new TestTempFileHandler(); + + [Test] + public async Task VerifyCacheAndRefresh() + { + string originalText = Guid.NewGuid().ToString(); + + string updatedText = Guid.NewGuid().ToString(); + + string filePath = _tempFiles.GetTempFilePath(); + + File.WriteAllText(filePath, originalText); + + var fileCache = new FileContentsCache(filePath, TimeSpan.FromSeconds(1)); + + // assert the file text is returned + Assert.AreEqual(originalText, await fileCache.GetTokenFileContentsAsync(default)); + + File.WriteAllText(filePath, updatedText); + + // assert the cached file text is still returned + Assert.AreEqual(originalText, await fileCache.GetTokenFileContentsAsync(default)); + + await Task.Delay(TimeSpan.FromSeconds(1.5)); + + // assert the updated file text is returned + Assert.AreEqual(updatedText, await fileCache.GetTokenFileContentsAsync(default)); + } + + [Test] + public void VerifyCancellationTokenHonored() + { + string filePath = _tempFiles.GetTempFilePath(); + + File.WriteAllText(filePath, Guid.NewGuid().ToString()); + + var fileCache = new FileContentsCache(filePath); + + var cts = new CancellationTokenSource(); + + cts.Cancel(); + + Assert.ThrowsAsync(() => fileCache.GetTokenFileContentsAsync(cts.Token)); + } + + [TearDown] + public void CleanupTestAssertionFiles() + { + _tempFiles.CleanupTempFiles(); + } + } +} diff --git a/sdk/identity/Azure.Identity/tests/InteractiveBrowserCredentialTests.cs b/sdk/identity/Azure.Identity/tests/InteractiveBrowserCredentialTests.cs index fd4391750b2f8..9fafb43201e9e 100644 --- a/sdk/identity/Azure.Identity/tests/InteractiveBrowserCredentialTests.cs +++ b/sdk/identity/Azure.Identity/tests/InteractiveBrowserCredentialTests.cs @@ -32,7 +32,7 @@ public override TokenCredential GetTokenCredential(CommonCredentialTestConfig co var options = new InteractiveBrowserCredentialOptions { Transport = config.Transport, - DisableInstanceDiscovery = config.DisableMetadataDiscovery ?? false, + DisableInstanceDiscovery = config.DisableInstanceDiscovery, TokenCachePersistenceOptions = tokenCacheOptions, AdditionallyAllowedTenants = config.AdditionallyAllowedTenants, AuthenticationRecord = new AuthenticationRecord(ExpectedUsername, "login.windows.net", $"{ObjectId}.{resolvedTenantId}", resolvedTenantId, ClientId), diff --git a/sdk/identity/Azure.Identity/tests/Mock/MockDefaultAzureCredentialFactory.cs b/sdk/identity/Azure.Identity/tests/Mock/MockDefaultAzureCredentialFactory.cs index f88a41edf60df..05197ed96bbdc 100644 --- a/sdk/identity/Azure.Identity/tests/Mock/MockDefaultAzureCredentialFactory.cs +++ b/sdk/identity/Azure.Identity/tests/Mock/MockDefaultAzureCredentialFactory.cs @@ -16,6 +16,8 @@ public MockDefaultAzureCredentialFactory(DefaultAzureCredentialOptions options, private Mock mockEnvironmentCredential = new(); public Action> OnCreateAzureCliCredential { get; set; } private Mock mockAzureCliCredential = new(); + public Action> OnCreateWorkloadIdentityCredential { get; set; } + private Mock mockWorkloadIdentityCredential = new(); public Action> OnCreateManagedIdentityCredential { get; set; } private Mock mockManagedIdentityCredential = new(); public Action> OnCreateAzureDeveloperCliCredential { get; set; } @@ -37,6 +39,12 @@ public override TokenCredential CreateEnvironmentCredential() return mockEnvironmentCredential.Object; } + public override TokenCredential CreateWorkloadIdentityCredential() + { + OnCreateWorkloadIdentityCredential?.Invoke(mockWorkloadIdentityCredential); + return mockWorkloadIdentityCredential.Object; + } + public override TokenCredential CreateManagedIdentityCredential() { OnCreateManagedIdentityCredential?.Invoke(mockManagedIdentityCredential); diff --git a/sdk/identity/Azure.Identity/tests/OnBehalfOfCredentialTests.cs b/sdk/identity/Azure.Identity/tests/OnBehalfOfCredentialTests.cs index c50c24dad03d5..492531960a984 100644 --- a/sdk/identity/Azure.Identity/tests/OnBehalfOfCredentialTests.cs +++ b/sdk/identity/Azure.Identity/tests/OnBehalfOfCredentialTests.cs @@ -52,7 +52,7 @@ public override TokenCredential GetTokenCredential(CommonCredentialTestConfig co { Transport = config.Transport, AdditionallyAllowedTenants = config.AdditionallyAllowedTenants, - DisableInstanceDiscovery = config.DisableMetadataDiscovery ?? false + DisableInstanceDiscovery = config.DisableInstanceDiscovery }; var pipeline = CredentialPipeline.GetInstance(options); return InstrumentClient( diff --git a/sdk/identity/Azure.Identity/tests/SessionRecords/WorkloadIdentityCredentialLiveTests/AuthnenticateWithWorkflowIdentity.json b/sdk/identity/Azure.Identity/tests/SessionRecords/WorkloadIdentityCredentialLiveTests/AuthnenticateWithWorkflowIdentity.json new file mode 100644 index 0000000000000..687fb185d0dd9 --- /dev/null +++ b/sdk/identity/Azure.Identity/tests/SessionRecords/WorkloadIdentityCredentialLiveTests/AuthnenticateWithWorkflowIdentity.json @@ -0,0 +1,149 @@ +{ + "Entries": [ + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https%3A%2F%2Flogin.microsoftonline.com%2Fc54fac88-3dd3-461f-a7c4-8a368e0340b3%2Foauth2%2Fv2.0%2Fauthorize", + "RequestMethod": "GET", + "RequestHeaders": { + "client-request-id": "746fd579-ee85-4646-a703-6413a06b9428", + "Connection": "keep-alive", + "return-client-request-id": "true", + "traceparent": "00-7af6fa372b052e4da50a03e1840e58e5-3912035ef7fdba4e-00", + "User-Agent": "azsdk-net-Identity/1.9.0-alpha.20230216.1 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.22000 )", + "x-app-name": "UnknownClient", + "x-app-ver": "0.0.0.0", + "x-client-CPU": "x64", + "x-client-OS": "Windows 10 Enterprise", + "x-client-SKU": "MSAL.Desktop", + "x-client-Ver": "4.49.1.0", + "x-ms-client-request-id": "334ec810474a14ee4cdacbc6241e69ce", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "client-request-id": "746fd579-ee85-4646-a703-6413a06b9428", + "Content-Length": "980", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 01:08:05 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AsDvKy8F14pMsODRuBVHQ70; expires=Sun, 19-Mar-2023 01:08:05 GMT; path=/; secure; HttpOnly; SameSite=None", + "esctx=PAQABAAEAAAD--DLA3VO7QrddgJg7WevrGTPETl0ENhO0C9_BeEYpYv1HzFvXByT8uZ1n6E3r--qBO33EMb26X0ec7GCX61TzuRJSNmHfJ30bs_lQum5UHSbEIJ10Ttq9oeQ7_6qJAv5Y-Fj_MlPnvGnmoIEb4P36rrWD2j9EC-j30E8AiHbHJ_UfPZ60bdaGc2P8MHmQLvQgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.14601.8 - EUS ProdSlices", + "x-ms-request-id": "168d3df5-212c-40b5-bc71-ae21c6936c00", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/c54fac88-3dd3-461f-a7c4-8a368e0340b3/v2.0/.well-known/openid-configuration", + "api-version": "1.1", + "metadata": [ + { + "preferred_network": "login.microsoftonline.com", + "preferred_cache": "login.windows.net", + "aliases": [ + "login.microsoftonline.com", + "login.windows.net", + "login.microsoft.com", + "sts.windows.net" + ] + }, + { + "preferred_network": "login.partner.microsoftonline.cn", + "preferred_cache": "login.partner.microsoftonline.cn", + "aliases": [ + "login.partner.microsoftonline.cn", + "login.chinacloudapi.cn" + ] + }, + { + "preferred_network": "login.microsoftonline.de", + "preferred_cache": "login.microsoftonline.de", + "aliases": [ + "login.microsoftonline.de" + ] + }, + { + "preferred_network": "login.microsoftonline.us", + "preferred_cache": "login.microsoftonline.us", + "aliases": [ + "login.microsoftonline.us", + "login.usgovcloudapi.net" + ] + }, + { + "preferred_network": "login-us.microsoftonline.com", + "preferred_cache": "login-us.microsoftonline.com", + "aliases": [ + "login-us.microsoftonline.com" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/c54fac88-3dd3-461f-a7c4-8a368e0340b3/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "client-request-id": "746fd579-ee85-4646-a703-6413a06b9428", + "Content-Length": "115", + "Content-Type": "application/x-www-form-urlencoded", + "return-client-request-id": "true", + "traceparent": "00-7af6fa372b052e4da50a03e1840e58e5-75349e1b66deda4a-00", + "User-Agent": "azsdk-net-Identity/1.9.0-alpha.20230216.1 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.22000 )", + "x-app-name": "UnknownClient", + "x-app-ver": "0.0.0.0", + "x-client-CPU": "x64", + "x-client-current-telemetry": "5|1004,2,,,|0,1,1", + "x-client-last-telemetry": "5|0|||", + "x-client-OS": "Windows 10 Enterprise", + "x-client-SKU": "MSAL.Desktop", + "x-client-Ver": "4.49.1.0", + "x-ms-client-request-id": "28d534be8d2232600e63dddbba3b17fd", + "x-ms-lib-capability": "retry-after, h429", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "client_id=Sanitized\u0026client_assertion_type=Sanitized\u0026client_assertion=Sanitized\u0026scope=Sanitized\u0026grant_type=Sanitized", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "746fd579-ee85-4646-a703-6413a06b9428", + "Content-Length": "90", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 01:08:05 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AsDvKy8F14pMsODRuBVHQ71mU51wAQAAAHXKgNsOAAAA; expires=Sun, 19-Mar-2023 01:08:06 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.14601.9 - EUS ProdSlices", + "x-ms-request-id": "38f8ee13-557e-4894-b313-301b97f98f00", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 3599, + "ext_expires_in": 3599, + "access_token": "Sanitized" + } + } + ], + "Variables": { + "AZURE_AUTHORITY_HOST": null, + "IDENTITY_SP_CLIENT_ID": "26790ce1-d05c-4de7-ba73-51837152f0bc", + "IDENTITY_SP_TENANT_ID": "c54fac88-3dd3-461f-a7c4-8a368e0340b3", + "RandomSeed": "1796549498" + } +} diff --git a/sdk/identity/Azure.Identity/tests/SessionRecords/WorkloadIdentityCredentialLiveTests/AuthnenticateWithWorkflowIdentityAsync.json b/sdk/identity/Azure.Identity/tests/SessionRecords/WorkloadIdentityCredentialLiveTests/AuthnenticateWithWorkflowIdentityAsync.json new file mode 100644 index 0000000000000..11723d3d8b52e --- /dev/null +++ b/sdk/identity/Azure.Identity/tests/SessionRecords/WorkloadIdentityCredentialLiveTests/AuthnenticateWithWorkflowIdentityAsync.json @@ -0,0 +1,146 @@ +{ + "Entries": [ + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https%3A%2F%2Flogin.microsoftonline.com%2Fc54fac88-3dd3-461f-a7c4-8a368e0340b3%2Foauth2%2Fv2.0%2Fauthorize", + "RequestMethod": "GET", + "RequestHeaders": { + "client-request-id": "ed706ca1-e4e8-4050-8603-f26bad379fd5", + "return-client-request-id": "true", + "traceparent": "00-5f3142e5c0023e42b5a2f92107e3bf25-f12f1a4e3a6b4d48-00", + "User-Agent": "azsdk-net-Identity/1.9.0-alpha.20230216.1 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.22000 )", + "x-app-name": "UnknownClient", + "x-app-ver": "0.0.0.0", + "x-client-CPU": "x64", + "x-client-OS": "Windows 10 Enterprise", + "x-client-SKU": "MSAL.Desktop", + "x-client-Ver": "4.49.1.0", + "x-ms-client-request-id": "d7d2454ab2dd10fb75cf32929f8a7aa9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "client-request-id": "ed706ca1-e4e8-4050-8603-f26bad379fd5", + "Content-Length": "980", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 01:08:06 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AsDvKy8F14pMsODRuBVHQ71mU51wAQAAAHXKgNsOAAAA; expires=Sun, 19-Mar-2023 01:08:06 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.14601.9 - WUS2 ProdSlices", + "x-ms-request-id": "b85cdd53-d65d-49ba-bf2a-207352a63a00", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/c54fac88-3dd3-461f-a7c4-8a368e0340b3/v2.0/.well-known/openid-configuration", + "api-version": "1.1", + "metadata": [ + { + "preferred_network": "login.microsoftonline.com", + "preferred_cache": "login.windows.net", + "aliases": [ + "login.microsoftonline.com", + "login.windows.net", + "login.microsoft.com", + "sts.windows.net" + ] + }, + { + "preferred_network": "login.partner.microsoftonline.cn", + "preferred_cache": "login.partner.microsoftonline.cn", + "aliases": [ + "login.partner.microsoftonline.cn", + "login.chinacloudapi.cn" + ] + }, + { + "preferred_network": "login.microsoftonline.de", + "preferred_cache": "login.microsoftonline.de", + "aliases": [ + "login.microsoftonline.de" + ] + }, + { + "preferred_network": "login.microsoftonline.us", + "preferred_cache": "login.microsoftonline.us", + "aliases": [ + "login.microsoftonline.us", + "login.usgovcloudapi.net" + ] + }, + { + "preferred_network": "login-us.microsoftonline.com", + "preferred_cache": "login-us.microsoftonline.com", + "aliases": [ + "login-us.microsoftonline.com" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/c54fac88-3dd3-461f-a7c4-8a368e0340b3/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "client-request-id": "ed706ca1-e4e8-4050-8603-f26bad379fd5", + "Content-Length": "115", + "Content-Type": "application/x-www-form-urlencoded", + "return-client-request-id": "true", + "traceparent": "00-5f3142e5c0023e42b5a2f92107e3bf25-6f74c0860c39bf4b-00", + "User-Agent": "azsdk-net-Identity/1.9.0-alpha.20230216.1 (.NET Framework 4.8.4515.0; Microsoft Windows 10.0.22000 )", + "x-app-name": "UnknownClient", + "x-app-ver": "0.0.0.0", + "x-client-CPU": "x64", + "x-client-current-telemetry": "5|1004,2,,,|0,1,1", + "x-client-last-telemetry": "5|0|||", + "x-client-OS": "Windows 10 Enterprise", + "x-client-SKU": "MSAL.Desktop", + "x-client-Ver": "4.49.1.0", + "x-ms-client-request-id": "a5fbdfb9b3a7484eef860781526e960c", + "x-ms-lib-capability": "retry-after, h429", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "client_id=Sanitized\u0026client_assertion_type=Sanitized\u0026client_assertion=Sanitized\u0026scope=Sanitized\u0026grant_type=Sanitized", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "ed706ca1-e4e8-4050-8603-f26bad379fd5", + "Content-Length": "90", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 01:08:06 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AsDvKy8F14pMsODRuBVHQ71mU51wAgAAAHXKgNsOAAAA; expires=Sun, 19-Mar-2023 01:08:07 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.14649.17 - WUS2 ProdSlices", + "x-ms-request-id": "867b51ae-bb03-480c-b87e-768dcb403c00", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 3599, + "ext_expires_in": 3599, + "access_token": "Sanitized" + } + } + ], + "Variables": { + "AZURE_AUTHORITY_HOST": null, + "IDENTITY_SP_CLIENT_ID": "26790ce1-d05c-4de7-ba73-51837152f0bc", + "IDENTITY_SP_TENANT_ID": "c54fac88-3dd3-461f-a7c4-8a368e0340b3", + "RandomSeed": "1782535745" + } +} diff --git a/sdk/identity/Azure.Identity/tests/SharedTokenCacheCredentialTests.cs b/sdk/identity/Azure.Identity/tests/SharedTokenCacheCredentialTests.cs index 8749e5a614ea7..ad4ae9630da97 100644 --- a/sdk/identity/Azure.Identity/tests/SharedTokenCacheCredentialTests.cs +++ b/sdk/identity/Azure.Identity/tests/SharedTokenCacheCredentialTests.cs @@ -33,7 +33,7 @@ public override TokenCredential GetTokenCredential(CommonCredentialTestConfig co var options = new SharedTokenCacheCredentialOptions(tokenCacheOptions) { Transport = config.Transport, - DisableInstanceDiscovery = config.DisableMetadataDiscovery ?? false + DisableInstanceDiscovery = config.DisableInstanceDiscovery }; var pipeline = CredentialPipeline.GetInstance(options); return InstrumentClient(new SharedTokenCacheCredential(config.TenantId, null, options, pipeline, null)); diff --git a/sdk/identity/Azure.Identity/tests/TestTempFileHandler.cs b/sdk/identity/Azure.Identity/tests/TestTempFileHandler.cs new file mode 100644 index 0000000000000..f647c9262f992 --- /dev/null +++ b/sdk/identity/Azure.Identity/tests/TestTempFileHandler.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using System.Collections.Concurrent; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using NUnit.Framework; + +namespace Azure.Identity.Tests +{ + public class TestTempFileHandler + { + public string GetTempFilePath() + { + if (!_testTempFiles.ContainsKey(TestContext.CurrentContext.Test.ID)) + { + _testTempFiles[TestContext.CurrentContext.Test.ID] = new List(); + } + + var path = Path.Combine(TestContext.CurrentContext.WorkDirectory, Path.GetRandomFileName()); + + _testTempFiles[TestContext.CurrentContext.Test.ID].Add(path); + + return path; + } + + public void CleanupTempFiles() + { + if (_testTempFiles.TryGetValue(TestContext.CurrentContext.Test.ID, out List assertionFiles)) + { + foreach (var path in assertionFiles) + { + if (File.Exists(path)) + { + File.Delete(path); + } + } + + assertionFiles.Clear(); + } + } + + private ConcurrentDictionary> _testTempFiles = new ConcurrentDictionary>(); + } +} diff --git a/sdk/identity/Azure.Identity/tests/UsernamePasswordCredentialTests.cs b/sdk/identity/Azure.Identity/tests/UsernamePasswordCredentialTests.cs index fb1f9709750ee..8b0c821c0aac8 100644 --- a/sdk/identity/Azure.Identity/tests/UsernamePasswordCredentialTests.cs +++ b/sdk/identity/Azure.Identity/tests/UsernamePasswordCredentialTests.cs @@ -33,7 +33,7 @@ public override TokenCredential GetTokenCredential(CommonCredentialTestConfig co var options = new UsernamePasswordCredentialOptions { Transport = config.Transport, - DisableInstanceDiscovery = config.DisableMetadataDiscovery ?? false, + DisableInstanceDiscovery = config.DisableInstanceDiscovery, AdditionallyAllowedTenants = config.AdditionallyAllowedTenants }; var pipeline = CredentialPipeline.GetInstance(options); diff --git a/sdk/identity/Azure.Identity/tests/WorkloadIdentityCredentialLiveTests.cs b/sdk/identity/Azure.Identity/tests/WorkloadIdentityCredentialLiveTests.cs new file mode 100644 index 0000000000000..bf9d4d7247892 --- /dev/null +++ b/sdk/identity/Azure.Identity/tests/WorkloadIdentityCredentialLiveTests.cs @@ -0,0 +1,72 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Security.Cryptography.X509Certificates; +using System.Text; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.TestFramework; +using Newtonsoft.Json.Linq; +using NUnit.Framework; + +namespace Azure.Identity.Tests +{ + public class WorkloadIdentityCredentialLiveTests : IdentityRecordedTestBase + { + public WorkloadIdentityCredentialLiveTests(bool isAsync) : base(isAsync) + { + } + + [SetUp] + public void ClearDiscoveryCache() + { + StaticCachesUtilities.ClearStaticMetadataProviderCache(); + } + + [Test] + public async Task AuthnenticateWithWorkflowIdentity() + { + WorkloadIdentityCredentialOptions options = new WorkloadIdentityCredentialOptions + { + TenantId = TestEnvironment.ServicePrincipalTenantId, + ClientId = TestEnvironment.ServicePrincipalClientId, + TokenFilePath = _tempFiles.GetTempFilePath() + }; + + var certificatePath = TestEnvironment.ServicePrincipalCertificatePfxPath; + var cert = new X509Certificate2(certificatePath); + + string assertion = CredentialTestHelpers.CreateClientAssertionJWT(options.AuthorityHost, options.ClientId, options.TenantId, cert); + + File.WriteAllText(options.TokenFilePath, assertion); + + options = InstrumentClientOptions(options); + + WorkloadIdentityCredential credential = InstrumentClient(new WorkloadIdentityCredential(options)); + + var tokenRequestContext = new TokenRequestContext(new[] { AzureAuthorityHosts.GetDefaultScope(new Uri(TestEnvironment.AuthorityHostUrl)) }); + + // ensure we can initially acquire a token + AccessToken token = await credential.GetTokenAsync(tokenRequestContext); + + Assert.IsNotNull(token.Token); + + // ensure subsequent calls before the token expires are served from the token cache + AccessToken cachedToken = await credential.GetTokenAsync(tokenRequestContext); + + Assert.AreEqual(token.Token, cachedToken.Token); + } + + [TearDown] + public void CleanupTestAssertionFiles() + { + _tempFiles.CleanupTempFiles(); + } + + private TestTempFileHandler _tempFiles = new TestTempFileHandler(); + } +} diff --git a/sdk/identity/Azure.Identity/tests/WorkloadIdentityCredentialOptoinsTests.cs b/sdk/identity/Azure.Identity/tests/WorkloadIdentityCredentialOptoinsTests.cs new file mode 100644 index 0000000000000..e7ce2a5af0b40 --- /dev/null +++ b/sdk/identity/Azure.Identity/tests/WorkloadIdentityCredentialOptoinsTests.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Azure.Core.TestFramework; +using NUnit.Framework; + +namespace Azure.Identity.Tests +{ + public class WorkloadIdentityCredentialOptoinsTests + { + [Test] + [NonParallelizable] + public void VerifyOptionsDefaultToEnvironmentValues([Values] bool specifyTenantId, [Values] bool specifyClientId, [Values] bool specifyTokenFilePath) + { + string expTenantId = specifyTenantId ? Guid.NewGuid().ToString() : null; + string expClientId = specifyClientId ? Guid.NewGuid().ToString() : null; + string expTokenFilePath = specifyTokenFilePath ? Guid.NewGuid().ToString() : null; + + using (new TestEnvVar( + new() + { + { "AZURE_CLIENT_ID", expClientId }, + { "AZURE_TENANT_ID", expTenantId }, + { "AZURE_FEDERATED_TOKEN_FILE", expTokenFilePath }, + })) + { + var options = new WorkloadIdentityCredentialOptions(); + + Assert.AreEqual(expTenantId, options.TenantId); + Assert.AreEqual(expClientId, options.ClientId); + Assert.AreEqual(expTokenFilePath, options.TokenFilePath); + } + } + } +} diff --git a/sdk/identity/Azure.Identity/tests/WorkloadIdentityCredentialTests.cs b/sdk/identity/Azure.Identity/tests/WorkloadIdentityCredentialTests.cs new file mode 100644 index 0000000000000..33e34e7f24614 --- /dev/null +++ b/sdk/identity/Azure.Identity/tests/WorkloadIdentityCredentialTests.cs @@ -0,0 +1,98 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using System.Collections.Concurrent; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Security.Cryptography.X509Certificates; +using System.Text; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.TestFramework; +using Azure.Identity.Tests.Mock; +using BenchmarkDotNet.Configs; +using NUnit.Framework; + +namespace Azure.Identity.Tests +{ + public class WorkloadIdentityCredentialTests : CredentialTestBase + { + public WorkloadIdentityCredentialTests(bool isAsync) : base(isAsync) + { } + + [Test] + public void VerifyInvalidConfigurationThrowsCredentialUnavailable([Values] bool specifyTenantId, [Values] bool specifyClientId, [Values] bool specifyTokenFilePath) + { + if (specifyTenantId && specifyClientId && specifyTokenFilePath) + { + Assert.Pass(); + } + + WorkloadIdentityCredentialOptions options = new WorkloadIdentityCredentialOptions + { + TenantId = specifyTenantId ? Guid.NewGuid().ToString() : null, + ClientId = specifyClientId ? Guid.NewGuid().ToString() : null, + TokenFilePath = specifyTokenFilePath ? Guid.NewGuid().ToString() : null + }; + + WorkloadIdentityCredential credential = InstrumentClient(new WorkloadIdentityCredential(options)); + + var tokenRequestContext = new TokenRequestContext(MockScopes.Default); + + Assert.ThrowsAsync(() => credential.GetTokenAsync(tokenRequestContext).AsTask()); + } + + public override TokenCredential GetTokenCredential(TokenCredentialOptions options) + { + var certificatePath = Path.Combine(TestContext.CurrentContext.TestDirectory, "Data", "cert.pfx"); + var mockCert = new X509Certificate2(certificatePath); + + var workloadOptions = options.Clone(); + + workloadOptions.TenantId = TenantId; + workloadOptions.ClientId = ClientId; + workloadOptions.TokenFilePath = _tempFiles.GetTempFilePath(); + workloadOptions.MsalClient = mockConfidentialMsalClient; + workloadOptions.Pipeline = CredentialPipeline.GetInstance(null); + + string assertion = CredentialTestHelpers.CreateClientAssertionJWT(workloadOptions.AuthorityHost, workloadOptions.ClientId, workloadOptions.TenantId, mockCert); + + File.WriteAllText(workloadOptions.TokenFilePath, assertion); + + return InstrumentClient(new WorkloadIdentityCredential(workloadOptions)); + } + + public override TokenCredential GetTokenCredential(CommonCredentialTestConfig config) + { + if (config.TenantId == null) + { + Assert.Ignore("Null TenantId test does not apply to this credential"); + } + + var certificatePath = Path.Combine(TestContext.CurrentContext.TestDirectory, "Data", "cert.pfx"); + var mockCert = new X509Certificate2(certificatePath); + + var workloadOptions = config.Clone(); + + workloadOptions.TenantId = config.TenantId; + workloadOptions.ClientId = ClientId; + workloadOptions.TokenFilePath = _tempFiles.GetTempFilePath(); + + string assertion = CredentialTestHelpers.CreateClientAssertionJWT(workloadOptions.AuthorityHost, workloadOptions.ClientId, workloadOptions.TenantId, mockCert); + + File.WriteAllText(workloadOptions.TokenFilePath, assertion); + + return InstrumentClient(new WorkloadIdentityCredential(workloadOptions)); + } + + [TearDown] + public void CleanupTestAssertionFiles() + { + _tempFiles.CleanupTempFiles(); + } + + private TestTempFileHandler _tempFiles = new TestTempFileHandler(); + } +} From 39802feff6fb87f33439a7a22161ed84fb310d69 Mon Sep 17 00:00:00 2001 From: Vishwesh Bankwar Date: Tue, 21 Feb 2023 15:59:22 -0800 Subject: [PATCH 63/72] Set `options.ParseStateValues = true` by default for logging (#34433) * fix objectdisposed exception * fix test * move setting parsestatevalues before configure --- .../src/AzureMonitorExporterLoggingExtensions.cs | 4 ++++ .../src/Internals/LogsHelper.cs | 10 ---------- .../E2ETelemetryItemValidation/LogsTests.cs | 1 + .../E2ETelemetryItemValidation/TracesTests.cs | 1 + .../LogsHelperTests.cs | 3 +++ .../MessageDataTests.cs | 1 + .../TelemetryExceptionDataTests.cs | 5 +++++ 7 files changed, 15 insertions(+), 10 deletions(-) diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorExporterLoggingExtensions.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorExporterLoggingExtensions.cs index e861d711d074e..0b2718e5ccd0e 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorExporterLoggingExtensions.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorExporterLoggingExtensions.cs @@ -27,6 +27,10 @@ public static OpenTelemetryLoggerOptions AddAzureMonitorLogExporter(this OpenTel throw new ArgumentNullException(nameof(loggerOptions)); } + // Ideally user should set this to true + // but if they miss we may have an issue of missing state values which gets converted to custom dimensions. + loggerOptions.ParseStateValues = true; + var options = new AzureMonitorExporterOptions(); configure?.Invoke(options); diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/LogsHelper.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/LogsHelper.cs index 1ea745e9eb2af..2ebeb59b020bc 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/LogsHelper.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/LogsHelper.cs @@ -66,16 +66,6 @@ internal static List OtelToAzureMonitorLogs(Batch batc { string? message = logRecord.FormattedMessage; - // Both logRecord.State and logRecord.StateValues will not be set at the same time for LogRecord. - // Either logRecord.State != null or logRecord.StateValues will be called. - if (logRecord.State != null) - { - if (logRecord.State is IReadOnlyCollection> stateDictionary) - { - ExtractProperties(ref message, properties, stateDictionary); - } - } - if (logRecord.StateValues != null) { ExtractProperties(ref message, properties, logRecord.StateValues); diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/E2ETelemetryItemValidation/LogsTests.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/E2ETelemetryItemValidation/LogsTests.cs index 3f671f379af9c..aec74ee6c9704 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/E2ETelemetryItemValidation/LogsTests.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/E2ETelemetryItemValidation/LogsTests.cs @@ -49,6 +49,7 @@ public void VerifyLog(LogLevel logLevel, string expectedSeverityLevel) .AddFilter(logCategoryName, logLevel) .AddOpenTelemetry(options => { + options.ParseStateValues = true; options.AddAzureMonitorLogExporterForTest(out telemetryItems); }); }); diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/E2ETelemetryItemValidation/TracesTests.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/E2ETelemetryItemValidation/TracesTests.cs index 25cfb25f1416b..265b81f7a2f02 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/E2ETelemetryItemValidation/TracesTests.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/E2ETelemetryItemValidation/TracesTests.cs @@ -214,6 +214,7 @@ public void VerifyLogWithinActivity(LogLevel logLevel, string expectedSeverityLe .AddFilter(logCategoryName, logLevel) .AddOpenTelemetry(options => { + options.ParseStateValues = true; options.AddAzureMonitorLogExporterForTest(out logTelemetryItems); }); }); diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/LogsHelperTests.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/LogsHelperTests.cs index b9e5cff44a1c9..52278d5296487 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/LogsHelperTests.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/LogsHelperTests.cs @@ -28,6 +28,7 @@ public void MessageIsSetToFormattedMessageWhenIncludeFormattedMessageIsSet() builder.AddOpenTelemetry(options => { options.IncludeFormattedMessage = true; + options.ParseStateValues = true; options.AddInMemoryExporter(logRecords); }); builder.AddFilter(typeof(LogsHelperTests).FullName, LogLevel.Trace); @@ -59,6 +60,7 @@ public void MessageIsSetToOriginalFormatWhenIncludeFormattedMessageIsNotSet() { builder.AddOpenTelemetry(options => { + options.ParseStateValues = true; options.AddInMemoryExporter(logRecords); }); builder.AddFilter(typeof(LogsHelperTests).FullName, LogLevel.Trace); @@ -89,6 +91,7 @@ public void PropertiesContainFieldsFromStructuredLogs() { builder.AddOpenTelemetry(options => { + options.ParseStateValues = true; options.AddInMemoryExporter(logRecords); }); builder.AddFilter(typeof(LogsHelperTests).FullName, LogLevel.Trace); diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/MessageDataTests.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/MessageDataTests.cs index ebeacb8c1d83b..4e4debf477183 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/MessageDataTests.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/MessageDataTests.cs @@ -28,6 +28,7 @@ public void ValidateMessageData(LogLevel logLevel) { builder.AddOpenTelemetry(options => { + options.ParseStateValues = true; options.AddInMemoryExporter(logRecords); }); builder.AddFilter(typeof(LogsHelperTests).FullName, LogLevel.Trace); diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/TelemetryExceptionDataTests.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/TelemetryExceptionDataTests.cs index 706315abfe90f..abee09c1aaaec 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/TelemetryExceptionDataTests.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/TelemetryExceptionDataTests.cs @@ -184,6 +184,7 @@ public void ExceptionDataContainsExceptionDetails() { builder.AddOpenTelemetry(options => { + options.ParseStateValues = true; options.AddInMemoryExporter(logRecords); }); builder.AddFilter(typeof(TelemetryExceptionDataTests).FullName, LogLevel.Trace); @@ -207,6 +208,7 @@ public void ExceptionDataContainsExceptionDetailsofAllInnerExceptionsOfAggregate { builder.AddOpenTelemetry(options => { + options.ParseStateValues = true; options.AddInMemoryExporter(logRecords); }); builder.AddFilter(typeof(TelemetryExceptionDataTests).FullName, LogLevel.Trace); @@ -239,6 +241,7 @@ public void ExceptionDataContainsExceptionDetailsWithAllInnerExceptions() { builder.AddOpenTelemetry(options => { + options.ParseStateValues = true; options.AddInMemoryExporter(logRecords); }); builder.AddFilter(typeof(TelemetryExceptionDataTests).FullName, LogLevel.Trace); @@ -272,6 +275,7 @@ public void AggregateExceptionsWithMultipleNestedExceptionsAreTrimmedAfterReachi { builder.AddOpenTelemetry(options => { + options.ParseStateValues = true; options.AddInMemoryExporter(logRecords); }); builder.AddFilter(typeof(TelemetryExceptionDataTests).FullName, LogLevel.Trace); @@ -329,6 +333,7 @@ public void ValidateTelemetryExceptionData(LogLevel logLevel) { builder.AddOpenTelemetry(options => { + options.ParseStateValues = true; options.AddInMemoryExporter(logRecords); }); builder.AddFilter(typeof(TelemetryExceptionDataTests).FullName, LogLevel.Trace); From f88d92fc1bb9a7118fea31bd83982ef4294103fb Mon Sep 17 00:00:00 2001 From: Scott Schaab Date: Tue, 21 Feb 2023 17:08:30 -0800 Subject: [PATCH 64/72] Identity update changelog and docs for 1.9.0-beta.2 release (#34439) * Identity update changelog and docs for 1.9.0-beta.2 release * Update sdk/identity/Azure.Identity/TROUBLESHOOTING.md Co-authored-by: Charles Lowell <10964656+chlowell@users.noreply.github.com> * update dac mermaid diagram * update release date --------- Co-authored-by: Charles Lowell <10964656+chlowell@users.noreply.github.com> --- sdk/identity/Azure.Identity/CHANGELOG.md | 7 ++++++- sdk/identity/Azure.Identity/README.md | 1 + sdk/identity/Azure.Identity/TROUBLESHOOTING.md | 9 ++++++++- .../images/mermaidjs/DefaultAzureCredentialAuthFlow.md | 3 ++- .../images/mermaidjs/DefaultAzureCredentialAuthFlow.svg | 2 +- 5 files changed, 18 insertions(+), 4 deletions(-) diff --git a/sdk/identity/Azure.Identity/CHANGELOG.md b/sdk/identity/Azure.Identity/CHANGELOG.md index d140c7dfd138f..d05a1dac6c57b 100644 --- a/sdk/identity/Azure.Identity/CHANGELOG.md +++ b/sdk/identity/Azure.Identity/CHANGELOG.md @@ -1,10 +1,15 @@ # Release History -## 1.9.0-beta.2 (Unreleased) +## 1.9.0-beta.2 (2023-02-21) ### Features Added - Allow `VisualStudioCredential` on non-Windows platforms - Added `AzureDeveloperCliCredential` for Azure Developer CLI + - Added `WorkloadIdentityCredential` to support Azure Workload Identity authentication + - Added `WorkloadIdentityCredential` and `AzureDeveloperCliCredential` to the `DefaultAzureCredential` authentication flow. + +### Bugs Fixed +- Fixed `ManagedIdentityCredential` authentication in sovereign clouds for services specifying `TenantId` through authentication challenge [#34077](https://github.com/Azure/azure-sdk-for-net/issues/34077) ### Breaking Changes - Previously, if environment variables for username and password auth are set in addition to the AZURE_CLIENT_CERTIFICATE_PATH, EnvironmentCredential would select the `UsernamePasswordCredential`. After this change, `ClientCertificateCredential` will be selected, which is consistent with all other languages. This is potentially a behavioral breaking change. diff --git a/sdk/identity/Azure.Identity/README.md b/sdk/identity/Azure.Identity/README.md index 2be43bb34bc24..75cf7332dd89b 100644 --- a/sdk/identity/Azure.Identity/README.md +++ b/sdk/identity/Azure.Identity/README.md @@ -86,6 +86,7 @@ The `DefaultAzureCredential` attempts to authenticate via the following mechanis ![DefaultAzureCredential authentication flow][default_azure_credential_authflow_image] 1. **Environment** - The `DefaultAzureCredential` will read account information specified via [environment variables](#environment-variables) and use it to authenticate. +1. **Workload Identity** - If the application is deployed to an Azure host with Workload Identity enabled, the `DefaultAzureCredential` will authenticate with that account. 1. **Managed Identity** - If the application is deployed to an Azure host with Managed Identity enabled, the `DefaultAzureCredential` will authenticate with that account. 1. **Azure Developer CLI** - If the developer has authenticated via the Azure Developer CLI `azd login` command, the `DefaultAzureCredential` will authenticate with that account. 1. **Visual Studio** - If the developer has authenticated via Visual Studio, the `DefaultAzureCredential` will authenticate with that account. diff --git a/sdk/identity/Azure.Identity/TROUBLESHOOTING.md b/sdk/identity/Azure.Identity/TROUBLESHOOTING.md index 36fb355d30425..ff2b8a07dd67b 100644 --- a/sdk/identity/Azure.Identity/TROUBLESHOOTING.md +++ b/sdk/identity/Azure.Identity/TROUBLESHOOTING.md @@ -15,6 +15,7 @@ This troubleshooting guide covers failure investigation techniques, common error - [Troubleshoot ClientCertificateCredential authentication issues](#troubleshoot-clientcertificatecredential-authentication-issues) - [Troubleshoot ClientAssertionCredential authentication issues](#troubleshoot-clientassertioncredential-authentication-issues) - [Troubleshoot UsernamePasswordCredential authentication issues](#troubleshoot-usernamepasswordcredential-authentication-issues) +- [Troubleshoot WorkloadIdentityCredential authentication issues](#troubleshoot-workloadidentitycredential-authentication-issues) - [Troubleshoot ManagedIdentityCredential authentication issues](#troubleshoot-managedidentitycredential-authentication-issues) - [Azure Virtual Machine managed identity](#azure-virtual-machine-managed-identity) - [Azure App Service and Azure Functions managed identity](#azure-app-service-and-azure-functions-managed-identity) @@ -101,7 +102,7 @@ DefaultAzureCredentialOptions options = new DefaultAzureCredentialOptions() | Error |Description| Mitigation | |---|---|---| -|`CredentialUnavailableException` raised with message. "DefaultAzureCredential failed to retrieve a token from the included credentials."|All credentials in the `DefaultAzureCredential` chain failed to retrieve a token, each throwing a `CredentialUnavailableException`|
  • [Enable logging](#enable-and-configure-logging) to verify the credentials being tried, and get further diagnostic information.
  • Consult the troubleshooting guide for underlying credential types for more information.
    • [EnvironmentCredential](#troubleshoot-environmentcredential-authentication-issues)
    • [ManagedIdentityCredential](#troubleshoot-managedidentitycredential-authentication-issues)
    • [VisualStudioCodeCredential](#troubleshoot-visualstudiocodecredential-authentication-issues)
    • [VisualStudioCredential](#troubleshoot-visualstudiocredential-authentication-issues)
    • [AzureCLICredential](#troubleshoot-azureclicredential-authentication-issues)
    • [AzurePowershellCredential](#troubleshoot-azurepowershellcredential-authentication-issues)
    | +|`CredentialUnavailableException` raised with message. "DefaultAzureCredential failed to retrieve a token from the included credentials."|All credentials in the `DefaultAzureCredential` chain failed to retrieve a token, each throwing a `CredentialUnavailableException`|
    • [Enable logging](#enable-and-configure-logging) to verify the credentials being tried, and get further diagnostic information.
    • Consult the troubleshooting guide for underlying credential types for more information.
      • [EnvironmentCredential](#troubleshoot-environmentcredential-authentication-issues)
      • [WorkloadIdentityCredential](#troubleshoot-workloadidentitycredential-authentication-issues)
      • [ManagedIdentityCredential](#troubleshoot-managedidentitycredential-authentication-issues)
      • [VisualStudioCodeCredential](#troubleshoot-visualstudiocodecredential-authentication-issues)
      • [VisualStudioCredential](#troubleshoot-visualstudiocredential-authentication-issues)
      • [AzureCLICredential](#troubleshoot-azureclicredential-authentication-issues)
      • [AzurePowershellCredential](#troubleshoot-azurepowershellcredential-authentication-issues)
      | |`RequestFailedException` raised from the client with a status code of 401 or 403|Authentication succeeded but the authorizing Azure service responded with a 401 (Authenticate), or 403 (Forbidden) status code. This can often be caused by the `DefaultAzureCredential` authenticating an account other than the intended or that the intended account does not have the correct permissions or roles assigned.|
      • [Enable logging](#enable-and-configure-logging) to determine which credential in the chain returned the authenticating token.
      • In the case a credential other than the expected is returning a token, bypass this by either signing out of the corresponding development tool, or excluding the credential with the ExcludeXXXCredential property in the `DefaultAzureCredentialOptions`
      • Ensure that the correct role is assigned to the account being used. For example, a service specific role rather than the subscription Owner role.
      | ## Troubleshoot `EnvironmentCredential` authentication issues @@ -141,6 +142,12 @@ DefaultAzureCredentialOptions options = new DefaultAzureCredentialOptions() |---|---|---| |AADSTS50126|The provided username or password is invalid|Ensure the `username` and `password` provided when constructing the credential are valid.| +## Troubleshoot `WorkloadIdentityCredential` authentication issues +`CredentialUnavailableException` +| Error Message |Description| Mitigation | +|---|---|---| +|The workload options are not fully configured.|The workload identity configuration was not provided in environment variables or through `WorkloadIdentityCredentialOptions`.|Ensure the appropriate environment variables are set **prior to application startup** or they are specified in code.

      • To configure the `WorkloadIdentityCredential` via the environment ensure the variables `AZURE_AUTHORITY_HOST`, `AZURE_CLIENT_ID`, `AZURE_TENANT_ID` and `AZURE_FEDERATED_TOKEN_FILE` are set by the admission webhook.
      • To configure the `WorkloadIdentityCredential` in code ensure `ClientId`, `TenantId` and `TokenFilePath` are set on the `WorkloadIdentityCredentialOptions` passed to the constructor of the `WorkloadIdentityCredential`
        • | + ## Troubleshoot `ManagedIdentityCredential` authentication issues The `ManagedIdentityCredential` is designed to work on a variety of Azure hosts that provide managed identity. Configuring the managed identity and troubleshooting failures varies from hosts. The below table lists the Azure hosts that can be assigned a managed identity, and are supported by the `ManagedIdentityCredential`. diff --git a/sdk/identity/Azure.Identity/images/mermaidjs/DefaultAzureCredentialAuthFlow.md b/sdk/identity/Azure.Identity/images/mermaidjs/DefaultAzureCredentialAuthFlow.md index bf351784251f1..ceed30bdc21f9 100644 --- a/sdk/identity/Azure.Identity/images/mermaidjs/DefaultAzureCredentialAuthFlow.md +++ b/sdk/identity/Azure.Identity/images/mermaidjs/DefaultAzureCredentialAuthFlow.md @@ -5,7 +5,7 @@ %% 2. Run command: mmdc -i DefaultAzureCredentialAuthFlow.md -o DefaultAzureCredentialAuthFlow.svg flowchart LR; - A(Environment):::deployed ==> B(Managed Identity):::deployed ==> C(Azure Developer CLI):::developer ==> D(Visual Studio):::developer ==> E(VS Code):::developer ==> F(Azure CLI):::developer ==> G(Azure PowerShell):::developer ==> H(Interactive browser):::interactive; + A(Environment):::deployed ==> B(Workload Identity):::deployed ==> C(Managed Identity):::deployed ==> D(Azure Developer CLI):::developer ==> E(Visual Studio):::developer ==> F(VS Code):::developer ==> G(Azure CLI):::developer ==> H(Azure PowerShell):::developer ==> I(Interactive browser):::interactive; subgraph CREDENTIAL TYPES; direction LR; @@ -23,6 +23,7 @@ flowchart LR; %% Add API ref links to credential type boxes click A "https://learn.microsoft.com/dotnet/api/azure.identity.environmentcredential?view=azure-dotnet" _blank; + click B "https://learn.microsoft.com/dotnet/api/azure.identity.workflowidentitycredential?view=azure-dotnet" _blank; click B "https://learn.microsoft.com/dotnet/api/azure.identity.managedidentitycredential?view=azure-dotnet" _blank; click D "https://learn.microsoft.com/dotnet/api/azure.identity.visualstudiocredential?view=azure-dotnet" _blank; click E "https://learn.microsoft.com/dotnet/api/azure.identity.visualstudiocodecredential?view=azure-dotnet" _blank; diff --git a/sdk/identity/Azure.Identity/images/mermaidjs/DefaultAzureCredentialAuthFlow.svg b/sdk/identity/Azure.Identity/images/mermaidjs/DefaultAzureCredentialAuthFlow.svg index 78c780de57f9f..2c6e150a71e00 100644 --- a/sdk/identity/Azure.Identity/images/mermaidjs/DefaultAzureCredentialAuthFlow.svg +++ b/sdk/identity/Azure.Identity/images/mermaidjs/DefaultAzureCredentialAuthFlow.svg @@ -1 +1 @@ -
          CREDENTIAL TYPES
          Interactive developer
          Developer
          Deployed service
          Environment
          Managed Identity
          Azure Developer CLI
          Visual Studio
          VS Code
          Azure CLI
          Azure PowerShell
          Interactive browser
          \ No newline at end of file +
          CREDENTIAL TYPES
          Interactive developer
          Deployed service
          Developer
          Environment
          Workload Identity
          Managed Identity
          Azure Developer CLI
          Visual Studio
          VS Code
          Azure CLI
          Azure PowerShell
          Interactive browser
          \ No newline at end of file From fc9c4bd601604faae930907497c6994410834929 Mon Sep 17 00:00:00 2001 From: Sean McCullough <44180881+seanmcc-msft@users.noreply.github.com> Date: Tue, 21 Feb 2023 19:29:14 -0600 Subject: [PATCH 65/72] Generated net 6.0 storage API views (#34125) --- .../api/Azure.Storage.Blobs.Batch.net6.0.cs | 33 + .../Azure.Storage.Blobs.ChangeFeed.net6.0.cs | 159 ++ .../api/Azure.Storage.Blobs.net6.0.cs | 1925 +++++++++++++++++ .../api/Azure.Storage.Common.net6.0.cs | 211 ++ .../Azure.Storage.Files.DataLake.net6.0.cs | 1264 +++++++++++ .../api/Azure.Storage.Files.Shares.net6.0.cs | 1216 +++++++++++ .../api/Azure.Storage.Queues.net6.0.cs | 456 ++++ 7 files changed, 5264 insertions(+) create mode 100644 sdk/storage/Azure.Storage.Blobs.Batch/api/Azure.Storage.Blobs.Batch.net6.0.cs create mode 100644 sdk/storage/Azure.Storage.Blobs.ChangeFeed/api/Azure.Storage.Blobs.ChangeFeed.net6.0.cs create mode 100644 sdk/storage/Azure.Storage.Blobs/api/Azure.Storage.Blobs.net6.0.cs create mode 100644 sdk/storage/Azure.Storage.Common/api/Azure.Storage.Common.net6.0.cs create mode 100644 sdk/storage/Azure.Storage.Files.DataLake/api/Azure.Storage.Files.DataLake.net6.0.cs create mode 100644 sdk/storage/Azure.Storage.Files.Shares/api/Azure.Storage.Files.Shares.net6.0.cs create mode 100644 sdk/storage/Azure.Storage.Queues/api/Azure.Storage.Queues.net6.0.cs diff --git a/sdk/storage/Azure.Storage.Blobs.Batch/api/Azure.Storage.Blobs.Batch.net6.0.cs b/sdk/storage/Azure.Storage.Blobs.Batch/api/Azure.Storage.Blobs.Batch.net6.0.cs new file mode 100644 index 0000000000000..56420805aa888 --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs.Batch/api/Azure.Storage.Blobs.Batch.net6.0.cs @@ -0,0 +1,33 @@ +namespace Azure.Storage.Blobs.Specialized +{ + public partial class BlobBatch : System.IDisposable + { + protected BlobBatch() { } + public BlobBatch(Azure.Storage.Blobs.Specialized.BlobBatchClient client) { } + public int RequestCount { get { throw null; } } + public virtual Azure.Response DeleteBlob(string blobContainerName, string blobName, Azure.Storage.Blobs.Models.DeleteSnapshotsOption snapshotsOption = Azure.Storage.Blobs.Models.DeleteSnapshotsOption.None, Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null) { throw null; } + public virtual Azure.Response DeleteBlob(System.Uri blobUri, Azure.Storage.Blobs.Models.DeleteSnapshotsOption snapshotsOption = Azure.Storage.Blobs.Models.DeleteSnapshotsOption.None, Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null) { throw null; } + public void Dispose() { } + public virtual Azure.Response SetBlobAccessTier(string blobContainerName, string blobName, Azure.Storage.Blobs.Models.AccessTier accessTier, Azure.Storage.Blobs.Models.RehydratePriority? rehydratePriority = default(Azure.Storage.Blobs.Models.RehydratePriority?), Azure.Storage.Blobs.Models.BlobRequestConditions leaseAccessConditions = null) { throw null; } + public virtual Azure.Response SetBlobAccessTier(System.Uri blobUri, Azure.Storage.Blobs.Models.AccessTier accessTier, Azure.Storage.Blobs.Models.RehydratePriority? rehydratePriority = default(Azure.Storage.Blobs.Models.RehydratePriority?), Azure.Storage.Blobs.Models.BlobRequestConditions leaseAccessConditions = null) { throw null; } + } + public partial class BlobBatchClient + { + protected BlobBatchClient() { } + public BlobBatchClient(Azure.Storage.Blobs.BlobContainerClient client) { } + public BlobBatchClient(Azure.Storage.Blobs.BlobServiceClient client) { } + public virtual System.Uri Uri { get { throw null; } } + public virtual Azure.Storage.Blobs.Specialized.BlobBatch CreateBatch() { throw null; } + public virtual Azure.Response[] DeleteBlobs(System.Collections.Generic.IEnumerable blobUris, Azure.Storage.Blobs.Models.DeleteSnapshotsOption snapshotsOption = Azure.Storage.Blobs.Models.DeleteSnapshotsOption.None, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteBlobsAsync(System.Collections.Generic.IEnumerable blobUris, Azure.Storage.Blobs.Models.DeleteSnapshotsOption snapshotsOption = Azure.Storage.Blobs.Models.DeleteSnapshotsOption.None, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response[] SetBlobsAccessTier(System.Collections.Generic.IEnumerable blobUris, Azure.Storage.Blobs.Models.AccessTier accessTier, Azure.Storage.Blobs.Models.RehydratePriority? rehydratePriority = default(Azure.Storage.Blobs.Models.RehydratePriority?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task SetBlobsAccessTierAsync(System.Collections.Generic.IEnumerable blobUris, Azure.Storage.Blobs.Models.AccessTier accessTier, Azure.Storage.Blobs.Models.RehydratePriority? rehydratePriority = default(Azure.Storage.Blobs.Models.RehydratePriority?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SubmitBatch(Azure.Storage.Blobs.Specialized.BlobBatch batch, bool throwOnAnyFailure = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task SubmitBatchAsync(Azure.Storage.Blobs.Specialized.BlobBatch batch, bool throwOnAnyFailure = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public static partial class SpecializedBlobExtensions + { + public static Azure.Storage.Blobs.Specialized.BlobBatchClient GetBlobBatchClient(this Azure.Storage.Blobs.BlobContainerClient client) { throw null; } + public static Azure.Storage.Blobs.Specialized.BlobBatchClient GetBlobBatchClient(this Azure.Storage.Blobs.BlobServiceClient client) { throw null; } + } +} diff --git a/sdk/storage/Azure.Storage.Blobs.ChangeFeed/api/Azure.Storage.Blobs.ChangeFeed.net6.0.cs b/sdk/storage/Azure.Storage.Blobs.ChangeFeed/api/Azure.Storage.Blobs.ChangeFeed.net6.0.cs new file mode 100644 index 0000000000000..c46a61cf75e83 --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs.ChangeFeed/api/Azure.Storage.Blobs.ChangeFeed.net6.0.cs @@ -0,0 +1,159 @@ +namespace Azure.Storage.Blobs.ChangeFeed +{ + public partial class BlobChangeFeedClient + { + protected BlobChangeFeedClient() { } + public BlobChangeFeedClient(string connectionString) { } + public BlobChangeFeedClient(string connectionString, Azure.Storage.Blobs.BlobClientOptions options, Azure.Storage.Blobs.ChangeFeed.BlobChangeFeedClientOptions changeFeedOptions) { } + public BlobChangeFeedClient(System.Uri serviceUri, Azure.AzureSasCredential credential, Azure.Storage.Blobs.BlobClientOptions options = null, Azure.Storage.Blobs.ChangeFeed.BlobChangeFeedClientOptions changeFeedOptions = null) { } + public BlobChangeFeedClient(System.Uri serviceUri, Azure.Core.TokenCredential credential, Azure.Storage.Blobs.BlobClientOptions options = null, Azure.Storage.Blobs.ChangeFeed.BlobChangeFeedClientOptions changeFeedOptions = null) { } + public BlobChangeFeedClient(System.Uri serviceUri, Azure.Storage.Blobs.BlobClientOptions options = null, Azure.Storage.Blobs.ChangeFeed.BlobChangeFeedClientOptions changeFeedOptions = null) { } + public BlobChangeFeedClient(System.Uri serviceUri, Azure.Storage.StorageSharedKeyCredential credential, Azure.Storage.Blobs.BlobClientOptions options = null, Azure.Storage.Blobs.ChangeFeed.BlobChangeFeedClientOptions changeFeedOptions = null) { } + public virtual Azure.Pageable GetChanges() { throw null; } + public virtual Azure.Pageable GetChanges(System.DateTimeOffset? start = default(System.DateTimeOffset?), System.DateTimeOffset? end = default(System.DateTimeOffset?)) { throw null; } + public virtual Azure.Pageable GetChanges(string continuationToken) { throw null; } + public virtual Azure.AsyncPageable GetChangesAsync() { throw null; } + public virtual Azure.AsyncPageable GetChangesAsync(System.DateTimeOffset? start = default(System.DateTimeOffset?), System.DateTimeOffset? end = default(System.DateTimeOffset?)) { throw null; } + public virtual Azure.AsyncPageable GetChangesAsync(string continuationToken) { throw null; } + } + public partial class BlobChangeFeedClientOptions + { + public BlobChangeFeedClientOptions() { } + public long? MaximumTransferSize { get { throw null; } set { } } + } + public partial class BlobChangeFeedEvent + { + internal BlobChangeFeedEvent() { } + public Azure.Storage.Blobs.ChangeFeed.BlobChangeFeedEventData EventData { get { throw null; } } + public System.DateTimeOffset EventTime { get { throw null; } } + public Azure.Storage.Blobs.ChangeFeed.BlobChangeFeedEventType EventType { get { throw null; } } + public System.Guid Id { get { throw null; } } + public string MetadataVersion { get { throw null; } } + public long SchemaVersion { get { throw null; } } + public string Subject { get { throw null; } } + public string Topic { get { throw null; } } + public override string ToString() { throw null; } + } + public partial class BlobChangeFeedEventData + { + internal BlobChangeFeedEventData() { } + public Azure.Storage.Blobs.Models.AccessTier? BlobAccessTier { get { throw null; } } + public Azure.Storage.Blobs.ChangeFeed.BlobOperationName BlobOperationName { get { throw null; } } + public Azure.Storage.Blobs.Models.BlobType BlobType { get { throw null; } } + public string BlobVersion { get { throw null; } } + public string ClientRequestId { get { throw null; } } + public string ContainerVersion { get { throw null; } } + public long ContentLength { get { throw null; } } + public long? ContentOffset { get { throw null; } } + public string ContentType { get { throw null; } } + public System.Uri DestinationUri { get { throw null; } } + public Azure.ETag ETag { get { throw null; } } + public Azure.Storage.Blobs.ChangeFeed.BlobOperationResult LongRunningOperationInfo { get { throw null; } } + public Azure.Storage.Blobs.ChangeFeed.ChangeFeedEventPreviousInfo PreviousInfo { get { throw null; } } + public bool? Recursive { get { throw null; } } + public System.Guid RequestId { get { throw null; } } + public string Sequencer { get { throw null; } } + public string Snapshot { get { throw null; } } + public System.Uri SourceUri { get { throw null; } } + public System.Collections.Generic.Dictionary UpdatedBlobProperties { get { throw null; } } + public Azure.Storage.Blobs.ChangeFeed.BlobTagsChange UpdatedBlobTags { get { throw null; } } + public System.Uri Uri { get { throw null; } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct BlobChangeFeedEventType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public BlobChangeFeedEventType(string value) { throw null; } + public static Azure.Storage.Blobs.ChangeFeed.BlobChangeFeedEventType BlobAsyncOperationInitiated { get { throw null; } } + public static Azure.Storage.Blobs.ChangeFeed.BlobChangeFeedEventType BlobCreated { get { throw null; } } + public static Azure.Storage.Blobs.ChangeFeed.BlobChangeFeedEventType BlobDeleted { get { throw null; } } + public static Azure.Storage.Blobs.ChangeFeed.BlobChangeFeedEventType BlobPropertiesUpdated { get { throw null; } } + public static Azure.Storage.Blobs.ChangeFeed.BlobChangeFeedEventType BlobSnapshotCreated { get { throw null; } } + public static Azure.Storage.Blobs.ChangeFeed.BlobChangeFeedEventType BlobTierChanged { get { throw null; } } + public static Azure.Storage.Blobs.ChangeFeed.BlobChangeFeedEventType Control { get { throw null; } } + public static Azure.Storage.Blobs.ChangeFeed.BlobChangeFeedEventType RestorePointMarkerCreated { get { throw null; } } + public static Azure.Storage.Blobs.ChangeFeed.BlobChangeFeedEventType UnspecifiedEventType { get { throw null; } } + public bool Equals(Azure.Storage.Blobs.ChangeFeed.BlobChangeFeedEventType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Storage.Blobs.ChangeFeed.BlobChangeFeedEventType left, Azure.Storage.Blobs.ChangeFeed.BlobChangeFeedEventType right) { throw null; } + public static implicit operator Azure.Storage.Blobs.ChangeFeed.BlobChangeFeedEventType (string value) { throw null; } + public static bool operator !=(Azure.Storage.Blobs.ChangeFeed.BlobChangeFeedEventType left, Azure.Storage.Blobs.ChangeFeed.BlobChangeFeedEventType right) { throw null; } + public override string ToString() { throw null; } + } + public static partial class BlobChangeFeedExtensions + { + public static Azure.Storage.Blobs.ChangeFeed.BlobChangeFeedClient GetChangeFeedClient(this Azure.Storage.Blobs.BlobServiceClient serviceClient, Azure.Storage.Blobs.ChangeFeed.BlobChangeFeedClientOptions options = null) { throw null; } + } + public static partial class BlobChangeFeedModelFactory + { + public static Azure.Storage.Blobs.ChangeFeed.BlobChangeFeedEvent BlobChangeFeedEvent(string topic, string subject, Azure.Storage.Blobs.ChangeFeed.BlobChangeFeedEventType eventType, System.DateTimeOffset eventTime, System.Guid id, Azure.Storage.Blobs.ChangeFeed.BlobChangeFeedEventData eventData, long dataVersion, string metadataVersion) { throw null; } + public static Azure.Storage.Blobs.ChangeFeed.BlobOperationResult BlobChangeFeedEventAsyncOperationInfo(Azure.Storage.Blobs.Models.AccessTier? destinationAccessTier, bool wasAsyncOperation, string copyId) { throw null; } + public static Azure.Storage.Blobs.ChangeFeed.BlobChangeFeedEventData BlobChangeFeedEventData(string blobOperationName, string clientRequestId, System.Guid requestId, Azure.ETag eTag, string contentType, long contentLength, Azure.Storage.Blobs.Models.BlobType blobType, string blobVersion, string containerVersion, Azure.Storage.Blobs.Models.AccessTier? blobAccessTier, long contentOffset, System.Uri destinationUri, System.Uri sourceUri, System.Uri uri, bool recursive, string sequencer, Azure.Storage.Blobs.ChangeFeed.ChangeFeedEventPreviousInfo previousInfo, string snapshot, System.Collections.Generic.Dictionary updatedBlobProperties, Azure.Storage.Blobs.ChangeFeed.BlobOperationResult asyncOperationInfo, Azure.Storage.Blobs.ChangeFeed.BlobTagsChange updatedBlobTags) { throw null; } + public static Azure.Storage.Blobs.ChangeFeed.BlobPropertyChange BlobChangeFeedEventUpdatedBlobProperty(string propertyName, string previousValue, string newValue) { throw null; } + public static Azure.Storage.Blobs.ChangeFeed.BlobTagsChange BlobChangeFeedEventUpdatedBlobTags(System.Collections.Generic.Dictionary previousTags, System.Collections.Generic.Dictionary newTags) { throw null; } + public static Azure.Storage.Blobs.ChangeFeed.ChangeFeedEventPreviousInfo ChangeFeedEventPreviousInfo(string softDeleteSnapshot, bool wasBlobSoftDeleted, string blobVersion, string lastVersion, Azure.Storage.Blobs.Models.AccessTier? previousTier) { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct BlobOperationName : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public BlobOperationName(string value) { throw null; } + public static Azure.Storage.Blobs.ChangeFeed.BlobOperationName AbortCopyBlob { get { throw null; } } + public static Azure.Storage.Blobs.ChangeFeed.BlobOperationName ControlEvent { get { throw null; } } + public static Azure.Storage.Blobs.ChangeFeed.BlobOperationName CopyBlob { get { throw null; } } + public static Azure.Storage.Blobs.ChangeFeed.BlobOperationName CreateRestorePointMarker { get { throw null; } } + public static Azure.Storage.Blobs.ChangeFeed.BlobOperationName DeleteBlob { get { throw null; } } + public static Azure.Storage.Blobs.ChangeFeed.BlobOperationName PutBlob { get { throw null; } } + public static Azure.Storage.Blobs.ChangeFeed.BlobOperationName PutBlockList { get { throw null; } } + public static Azure.Storage.Blobs.ChangeFeed.BlobOperationName SetBlobMetadata { get { throw null; } } + public static Azure.Storage.Blobs.ChangeFeed.BlobOperationName SetBlobProperties { get { throw null; } } + public static Azure.Storage.Blobs.ChangeFeed.BlobOperationName SetBlobTags { get { throw null; } } + public static Azure.Storage.Blobs.ChangeFeed.BlobOperationName SetBlobTier { get { throw null; } } + public static Azure.Storage.Blobs.ChangeFeed.BlobOperationName SnapshotBlob { get { throw null; } } + public static Azure.Storage.Blobs.ChangeFeed.BlobOperationName UndeleteBlob { get { throw null; } } + public static Azure.Storage.Blobs.ChangeFeed.BlobOperationName UnspecifiedApi { get { throw null; } } + public bool Equals(Azure.Storage.Blobs.ChangeFeed.BlobOperationName other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Storage.Blobs.ChangeFeed.BlobOperationName left, Azure.Storage.Blobs.ChangeFeed.BlobOperationName right) { throw null; } + public static implicit operator Azure.Storage.Blobs.ChangeFeed.BlobOperationName (string value) { throw null; } + public static bool operator !=(Azure.Storage.Blobs.ChangeFeed.BlobOperationName left, Azure.Storage.Blobs.ChangeFeed.BlobOperationName right) { throw null; } + public override string ToString() { throw null; } + } + public partial class BlobOperationResult + { + internal BlobOperationResult() { } + public string CopyId { get { throw null; } } + public Azure.Storage.Blobs.Models.AccessTier? DestinationAccessTier { get { throw null; } } + public bool IsAsync { get { throw null; } } + } + public partial class BlobPropertyChange + { + internal BlobPropertyChange() { } + public string NewValue { get { throw null; } } + public string OldValue { get { throw null; } } + public string PropertyName { get { throw null; } } + } + public partial class BlobTagsChange + { + internal BlobTagsChange() { } + public System.Collections.Generic.Dictionary NewTags { get { throw null; } } + public System.Collections.Generic.Dictionary OldTags { get { throw null; } } + } + public partial class ChangeFeedEventPreviousInfo + { + internal ChangeFeedEventPreviousInfo() { } + public string NewBlobVersion { get { throw null; } } + public string OldBlobVersion { get { throw null; } } + public Azure.Storage.Blobs.Models.AccessTier? PreviousTier { get { throw null; } } + public string SoftDeleteSnapshot { get { throw null; } } + public bool WasBlobSoftDeleted { get { throw null; } } + } +} diff --git a/sdk/storage/Azure.Storage.Blobs/api/Azure.Storage.Blobs.net6.0.cs b/sdk/storage/Azure.Storage.Blobs/api/Azure.Storage.Blobs.net6.0.cs new file mode 100644 index 0000000000000..948199db8d38c --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/api/Azure.Storage.Blobs.net6.0.cs @@ -0,0 +1,1925 @@ +namespace Azure.Storage.Blobs +{ + public partial class BlobClient : Azure.Storage.Blobs.Specialized.BlobBaseClient + { + protected BlobClient() { } + public BlobClient(string connectionString, string blobContainerName, string blobName) { } + public BlobClient(string connectionString, string blobContainerName, string blobName, Azure.Storage.Blobs.BlobClientOptions options) { } + public BlobClient(System.Uri blobUri, Azure.AzureSasCredential credential, Azure.Storage.Blobs.BlobClientOptions options = null) { } + public BlobClient(System.Uri blobUri, Azure.Core.TokenCredential credential, Azure.Storage.Blobs.BlobClientOptions options = null) { } + public BlobClient(System.Uri blobUri, Azure.Storage.Blobs.BlobClientOptions options = null) { } + public BlobClient(System.Uri blobUri, Azure.Storage.StorageSharedKeyCredential credential, Azure.Storage.Blobs.BlobClientOptions options = null) { } + public virtual System.IO.Stream OpenWrite(bool overwrite, Azure.Storage.Blobs.Models.BlobOpenWriteOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task OpenWriteAsync(bool overwrite, Azure.Storage.Blobs.Models.BlobOpenWriteOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Upload(System.BinaryData content) { throw null; } + public virtual Azure.Response Upload(System.BinaryData content, Azure.Storage.Blobs.Models.BlobUploadOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Upload(System.BinaryData content, bool overwrite = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Upload(System.BinaryData content, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.Response Upload(System.IO.Stream content) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response Upload(System.IO.Stream content, Azure.Storage.Blobs.Models.BlobHttpHeaders httpHeaders = null, System.Collections.Generic.IDictionary metadata = null, Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, System.IProgress progressHandler = null, Azure.Storage.Blobs.Models.AccessTier? accessTier = default(Azure.Storage.Blobs.Models.AccessTier?), Azure.Storage.StorageTransferOptions transferOptions = default(Azure.Storage.StorageTransferOptions), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Upload(System.IO.Stream content, Azure.Storage.Blobs.Models.BlobUploadOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Upload(System.IO.Stream content, bool overwrite = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Upload(System.IO.Stream content, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.Response Upload(string path) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response Upload(string path, Azure.Storage.Blobs.Models.BlobHttpHeaders httpHeaders = null, System.Collections.Generic.IDictionary metadata = null, Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, System.IProgress progressHandler = null, Azure.Storage.Blobs.Models.AccessTier? accessTier = default(Azure.Storage.Blobs.Models.AccessTier?), Azure.Storage.StorageTransferOptions transferOptions = default(Azure.Storage.StorageTransferOptions), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Upload(string path, Azure.Storage.Blobs.Models.BlobUploadOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Upload(string path, bool overwrite = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Upload(string path, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task> UploadAsync(System.BinaryData content) { throw null; } + public virtual System.Threading.Tasks.Task> UploadAsync(System.BinaryData content, Azure.Storage.Blobs.Models.BlobUploadOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UploadAsync(System.BinaryData content, bool overwrite = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UploadAsync(System.BinaryData content, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task> UploadAsync(System.IO.Stream content) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> UploadAsync(System.IO.Stream content, Azure.Storage.Blobs.Models.BlobHttpHeaders httpHeaders = null, System.Collections.Generic.IDictionary metadata = null, Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, System.IProgress progressHandler = null, Azure.Storage.Blobs.Models.AccessTier? accessTier = default(Azure.Storage.Blobs.Models.AccessTier?), Azure.Storage.StorageTransferOptions transferOptions = default(Azure.Storage.StorageTransferOptions), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UploadAsync(System.IO.Stream content, Azure.Storage.Blobs.Models.BlobUploadOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UploadAsync(System.IO.Stream content, bool overwrite = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UploadAsync(System.IO.Stream content, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task> UploadAsync(string path) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> UploadAsync(string path, Azure.Storage.Blobs.Models.BlobHttpHeaders httpHeaders = null, System.Collections.Generic.IDictionary metadata = null, Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, System.IProgress progressHandler = null, Azure.Storage.Blobs.Models.AccessTier? accessTier = default(Azure.Storage.Blobs.Models.AccessTier?), Azure.Storage.StorageTransferOptions transferOptions = default(Azure.Storage.StorageTransferOptions), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UploadAsync(string path, Azure.Storage.Blobs.Models.BlobUploadOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UploadAsync(string path, bool overwrite = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UploadAsync(string path, System.Threading.CancellationToken cancellationToken) { throw null; } + protected internal virtual Azure.Storage.Blobs.BlobClient WithClientSideEncryptionOptionsCore(Azure.Storage.ClientSideEncryptionOptions clientSideEncryptionOptions) { throw null; } + public new Azure.Storage.Blobs.BlobClient WithCustomerProvidedKey(Azure.Storage.Blobs.Models.CustomerProvidedKey? customerProvidedKey) { throw null; } + public new Azure.Storage.Blobs.BlobClient WithEncryptionScope(string encryptionScope) { throw null; } + public new Azure.Storage.Blobs.BlobClient WithSnapshot(string snapshot) { throw null; } + public new Azure.Storage.Blobs.BlobClient WithVersion(string versionId) { throw null; } + } + public partial class BlobClientOptions : Azure.Core.ClientOptions + { + public BlobClientOptions(Azure.Storage.Blobs.BlobClientOptions.ServiceVersion version = Azure.Storage.Blobs.BlobClientOptions.ServiceVersion.V2021_12_02) { } + public Azure.Storage.Blobs.Models.CustomerProvidedKey? CustomerProvidedKey { get { throw null; } set { } } + public bool EnableTenantDiscovery { get { throw null; } set { } } + public string EncryptionScope { get { throw null; } set { } } + public System.Uri GeoRedundantSecondaryUri { get { throw null; } set { } } + public Azure.Storage.TransferValidationOptions TransferValidation { get { throw null; } } + public bool TrimBlobNameSlashes { get { throw null; } set { } } + public Azure.Storage.Blobs.BlobClientOptions.ServiceVersion Version { get { throw null; } } + public enum ServiceVersion + { + V2019_02_02 = 1, + V2019_07_07 = 2, + V2019_12_12 = 3, + V2020_02_10 = 4, + V2020_04_08 = 5, + V2020_06_12 = 6, + V2020_08_04 = 7, + V2020_10_02 = 8, + V2020_12_06 = 9, + V2021_02_12 = 10, + V2021_04_10 = 11, + V2021_06_08 = 12, + V2021_08_06 = 13, + V2021_10_04 = 14, + V2021_12_02 = 15, + } + } + public partial class BlobContainerClient + { + public static readonly string LogsBlobContainerName; + public static readonly string RootBlobContainerName; + public static readonly string WebBlobContainerName; + protected BlobContainerClient() { } + public BlobContainerClient(string connectionString, string blobContainerName) { } + public BlobContainerClient(string connectionString, string blobContainerName, Azure.Storage.Blobs.BlobClientOptions options) { } + public BlobContainerClient(System.Uri blobContainerUri, Azure.AzureSasCredential credential, Azure.Storage.Blobs.BlobClientOptions options = null) { } + public BlobContainerClient(System.Uri blobContainerUri, Azure.Core.TokenCredential credential, Azure.Storage.Blobs.BlobClientOptions options = null) { } + public BlobContainerClient(System.Uri blobContainerUri, Azure.Storage.Blobs.BlobClientOptions options = null) { } + public BlobContainerClient(System.Uri blobContainerUri, Azure.Storage.StorageSharedKeyCredential credential, Azure.Storage.Blobs.BlobClientOptions options = null) { } + public virtual string AccountName { get { throw null; } } + public virtual bool CanGenerateSasUri { get { throw null; } } + public virtual string Name { get { throw null; } } + public virtual System.Uri Uri { get { throw null; } } + public virtual Azure.Response Create(Azure.Storage.Blobs.Models.PublicAccessType publicAccessType = Azure.Storage.Blobs.Models.PublicAccessType.None, System.Collections.Generic.IDictionary metadata = null, Azure.Storage.Blobs.Models.BlobContainerEncryptionScopeOptions encryptionScopeOptions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response Create(Azure.Storage.Blobs.Models.PublicAccessType publicAccessType, System.Collections.Generic.IDictionary metadata, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task> CreateAsync(Azure.Storage.Blobs.Models.PublicAccessType publicAccessType = Azure.Storage.Blobs.Models.PublicAccessType.None, System.Collections.Generic.IDictionary metadata = null, Azure.Storage.Blobs.Models.BlobContainerEncryptionScopeOptions encryptionScopeOptions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> CreateAsync(Azure.Storage.Blobs.Models.PublicAccessType publicAccessType, System.Collections.Generic.IDictionary metadata, System.Threading.CancellationToken cancellationToken) { throw null; } + protected static Azure.Storage.Blobs.BlobContainerClient CreateClient(System.Uri containerUri, Azure.Storage.Blobs.BlobClientOptions options, Azure.Core.Pipeline.HttpPipeline pipeline) { throw null; } + public virtual Azure.Response CreateIfNotExists(Azure.Storage.Blobs.Models.PublicAccessType publicAccessType = Azure.Storage.Blobs.Models.PublicAccessType.None, System.Collections.Generic.IDictionary metadata = null, Azure.Storage.Blobs.Models.BlobContainerEncryptionScopeOptions encryptionScopeOptions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response CreateIfNotExists(Azure.Storage.Blobs.Models.PublicAccessType publicAccessType, System.Collections.Generic.IDictionary metadata, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task> CreateIfNotExistsAsync(Azure.Storage.Blobs.Models.PublicAccessType publicAccessType = Azure.Storage.Blobs.Models.PublicAccessType.None, System.Collections.Generic.IDictionary metadata = null, Azure.Storage.Blobs.Models.BlobContainerEncryptionScopeOptions encryptionScopeOptions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> CreateIfNotExistsAsync(Azure.Storage.Blobs.Models.PublicAccessType publicAccessType, System.Collections.Generic.IDictionary metadata, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.Response Delete(Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response DeleteBlob(string blobName, Azure.Storage.Blobs.Models.DeleteSnapshotsOption snapshotsOption = Azure.Storage.Blobs.Models.DeleteSnapshotsOption.None, Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteBlobAsync(string blobName, Azure.Storage.Blobs.Models.DeleteSnapshotsOption snapshotsOption = Azure.Storage.Blobs.Models.DeleteSnapshotsOption.None, Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response DeleteBlobIfExists(string blobName, Azure.Storage.Blobs.Models.DeleteSnapshotsOption snapshotsOption = Azure.Storage.Blobs.Models.DeleteSnapshotsOption.None, Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> DeleteBlobIfExistsAsync(string blobName, Azure.Storage.Blobs.Models.DeleteSnapshotsOption snapshotsOption = Azure.Storage.Blobs.Models.DeleteSnapshotsOption.None, Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response DeleteIfExists(Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> DeleteIfExistsAsync(Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable FindBlobsByTags(string tagFilterSqlExpression, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable FindBlobsByTagsAsync(string tagFilterSqlExpression, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Uri GenerateSasUri(Azure.Storage.Sas.BlobContainerSasPermissions permissions, System.DateTimeOffset expiresOn) { throw null; } + public virtual System.Uri GenerateSasUri(Azure.Storage.Sas.BlobSasBuilder builder) { throw null; } + public virtual Azure.Response GetAccessPolicy(Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAccessPolicyAsync(Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected internal virtual Azure.Storage.Blobs.Specialized.AppendBlobClient GetAppendBlobClientCore(string blobName) { throw null; } + protected internal virtual Azure.Storage.Blobs.Specialized.BlobBaseClient GetBlobBaseClientCore(string blobName) { throw null; } + public virtual Azure.Storage.Blobs.BlobClient GetBlobClient(string blobName) { throw null; } + protected internal virtual Azure.Storage.Blobs.Specialized.BlobLeaseClient GetBlobLeaseClientCore(string leaseId) { throw null; } + public virtual Azure.Pageable GetBlobs(Azure.Storage.Blobs.Models.BlobTraits traits = Azure.Storage.Blobs.Models.BlobTraits.None, Azure.Storage.Blobs.Models.BlobStates states = Azure.Storage.Blobs.Models.BlobStates.None, string prefix = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetBlobsAsync(Azure.Storage.Blobs.Models.BlobTraits traits = Azure.Storage.Blobs.Models.BlobTraits.None, Azure.Storage.Blobs.Models.BlobStates states = Azure.Storage.Blobs.Models.BlobStates.None, string prefix = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetBlobsByHierarchy(Azure.Storage.Blobs.Models.BlobTraits traits = Azure.Storage.Blobs.Models.BlobTraits.None, Azure.Storage.Blobs.Models.BlobStates states = Azure.Storage.Blobs.Models.BlobStates.None, string delimiter = null, string prefix = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetBlobsByHierarchyAsync(Azure.Storage.Blobs.Models.BlobTraits traits = Azure.Storage.Blobs.Models.BlobTraits.None, Azure.Storage.Blobs.Models.BlobStates states = Azure.Storage.Blobs.Models.BlobStates.None, string delimiter = null, string prefix = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected internal virtual Azure.Storage.Blobs.Specialized.BlockBlobClient GetBlockBlobClientCore(string blobName) { throw null; } + protected internal virtual Azure.Storage.Blobs.Specialized.PageBlobClient GetPageBlobClientCore(string blobName) { throw null; } + protected internal virtual Azure.Storage.Blobs.BlobServiceClient GetParentBlobServiceClientCore() { throw null; } + public virtual Azure.Response GetProperties(Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetPropertiesAsync(Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetAccessPolicy(Azure.Storage.Blobs.Models.PublicAccessType accessType = Azure.Storage.Blobs.Models.PublicAccessType.None, System.Collections.Generic.IEnumerable permissions = null, Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetAccessPolicyAsync(Azure.Storage.Blobs.Models.PublicAccessType accessType = Azure.Storage.Blobs.Models.PublicAccessType.None, System.Collections.Generic.IEnumerable permissions = null, Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetMetadata(System.Collections.Generic.IDictionary metadata, Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetMetadataAsync(System.Collections.Generic.IDictionary metadata, Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response UploadBlob(string blobName, System.BinaryData content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response UploadBlob(string blobName, System.IO.Stream content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UploadBlobAsync(string blobName, System.BinaryData content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UploadBlobAsync(string blobName, System.IO.Stream content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class BlobServiceClient + { + protected BlobServiceClient() { } + public BlobServiceClient(string connectionString) { } + public BlobServiceClient(string connectionString, Azure.Storage.Blobs.BlobClientOptions options) { } + public BlobServiceClient(System.Uri serviceUri, Azure.AzureSasCredential credential, Azure.Storage.Blobs.BlobClientOptions options = null) { } + public BlobServiceClient(System.Uri serviceUri, Azure.Core.TokenCredential credential, Azure.Storage.Blobs.BlobClientOptions options = null) { } + public BlobServiceClient(System.Uri serviceUri, Azure.Storage.Blobs.BlobClientOptions options = null) { } + public BlobServiceClient(System.Uri serviceUri, Azure.Storage.StorageSharedKeyCredential credential, Azure.Storage.Blobs.BlobClientOptions options = null) { } + public string AccountName { get { throw null; } } + public virtual bool CanGenerateAccountSasUri { get { throw null; } } + public virtual System.Uri Uri { get { throw null; } } + public virtual Azure.Response CreateBlobContainer(string blobContainerName, Azure.Storage.Blobs.Models.PublicAccessType publicAccessType = Azure.Storage.Blobs.Models.PublicAccessType.None, System.Collections.Generic.IDictionary metadata = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateBlobContainerAsync(string blobContainerName, Azure.Storage.Blobs.Models.PublicAccessType publicAccessType = Azure.Storage.Blobs.Models.PublicAccessType.None, System.Collections.Generic.IDictionary metadata = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected static Azure.Storage.Blobs.BlobServiceClient CreateClient(System.Uri serviceUri, Azure.Storage.Blobs.BlobClientOptions options, Azure.Core.Pipeline.HttpPipelinePolicy authentication, Azure.Core.Pipeline.HttpPipeline pipeline) { throw null; } + public virtual Azure.Response DeleteBlobContainer(string blobContainerName, Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteBlobContainerAsync(string blobContainerName, Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable FindBlobsByTags(string tagFilterSqlExpression, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable FindBlobsByTagsAsync(string tagFilterSqlExpression, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public System.Uri GenerateAccountSasUri(Azure.Storage.Sas.AccountSasBuilder builder) { throw null; } + public System.Uri GenerateAccountSasUri(Azure.Storage.Sas.AccountSasPermissions permissions, System.DateTimeOffset expiresOn, Azure.Storage.Sas.AccountSasResourceTypes resourceTypes) { throw null; } + public virtual Azure.Response GetAccountInfo(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAccountInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected static Azure.Core.Pipeline.HttpPipelinePolicy GetAuthenticationPolicy(Azure.Storage.Blobs.BlobServiceClient client) { throw null; } + public virtual Azure.Storage.Blobs.BlobContainerClient GetBlobContainerClient(string blobContainerName) { throw null; } + public virtual Azure.Pageable GetBlobContainers(Azure.Storage.Blobs.Models.BlobContainerTraits traits = Azure.Storage.Blobs.Models.BlobContainerTraits.None, Azure.Storage.Blobs.Models.BlobContainerStates states = Azure.Storage.Blobs.Models.BlobContainerStates.None, string prefix = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Pageable GetBlobContainers(Azure.Storage.Blobs.Models.BlobContainerTraits traits, string prefix, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.AsyncPageable GetBlobContainersAsync(Azure.Storage.Blobs.Models.BlobContainerTraits traits = Azure.Storage.Blobs.Models.BlobContainerTraits.None, Azure.Storage.Blobs.Models.BlobContainerStates states = Azure.Storage.Blobs.Models.BlobContainerStates.None, string prefix = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.AsyncPageable GetBlobContainersAsync(Azure.Storage.Blobs.Models.BlobContainerTraits traits, string prefix, System.Threading.CancellationToken cancellationToken) { throw null; } + protected static Azure.Storage.Blobs.BlobClientOptions GetClientOptions(Azure.Storage.Blobs.BlobServiceClient client) { throw null; } + protected static Azure.Core.Pipeline.HttpPipeline GetHttpPipeline(Azure.Storage.Blobs.BlobServiceClient client) { throw null; } + public virtual Azure.Response GetProperties(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetPropertiesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetStatistics(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetStatisticsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetUserDelegationKey(System.DateTimeOffset? startsOn, System.DateTimeOffset expiresOn, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetUserDelegationKeyAsync(System.DateTimeOffset? startsOn, System.DateTimeOffset expiresOn, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetProperties(Azure.Storage.Blobs.Models.BlobServiceProperties properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task SetPropertiesAsync(Azure.Storage.Blobs.Models.BlobServiceProperties properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response UndeleteBlobContainer(string deletedContainerName, string deletedContainerVersion, string destinationContainerName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response UndeleteBlobContainer(string deletedContainerName, string deletedContainerVersion, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> UndeleteBlobContainerAsync(string deletedContainerName, string deletedContainerVersion, string destinationContainerName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UndeleteBlobContainerAsync(string deletedContainerName, string deletedContainerVersion, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class BlobUriBuilder + { + public BlobUriBuilder(System.Uri uri) { } + public BlobUriBuilder(System.Uri uri, bool trimBlobNameSlashes) { } + public string AccountName { get { throw null; } set { } } + public string BlobContainerName { get { throw null; } set { } } + public string BlobName { get { throw null; } set { } } + public string Host { get { throw null; } set { } } + public int Port { get { throw null; } set { } } + public string Query { get { throw null; } set { } } + public Azure.Storage.Sas.BlobSasQueryParameters Sas { get { throw null; } set { } } + public string Scheme { get { throw null; } set { } } + public string Snapshot { get { throw null; } set { } } + public bool TrimBlobNameSlashes { get { throw null; } } + public string VersionId { get { throw null; } set { } } + public override string ToString() { throw null; } + public System.Uri ToUri() { throw null; } + } +} +namespace Azure.Storage.Blobs.Models +{ + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct AccessTier : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public AccessTier(string value) { throw null; } + public static Azure.Storage.Blobs.Models.AccessTier Archive { get { throw null; } } + public static Azure.Storage.Blobs.Models.AccessTier Cold { get { throw null; } } + public static Azure.Storage.Blobs.Models.AccessTier Cool { get { throw null; } } + public static Azure.Storage.Blobs.Models.AccessTier Hot { get { throw null; } } + public static Azure.Storage.Blobs.Models.AccessTier P10 { get { throw null; } } + public static Azure.Storage.Blobs.Models.AccessTier P15 { get { throw null; } } + public static Azure.Storage.Blobs.Models.AccessTier P20 { get { throw null; } } + public static Azure.Storage.Blobs.Models.AccessTier P30 { get { throw null; } } + public static Azure.Storage.Blobs.Models.AccessTier P4 { get { throw null; } } + public static Azure.Storage.Blobs.Models.AccessTier P40 { get { throw null; } } + public static Azure.Storage.Blobs.Models.AccessTier P50 { get { throw null; } } + public static Azure.Storage.Blobs.Models.AccessTier P6 { get { throw null; } } + public static Azure.Storage.Blobs.Models.AccessTier P60 { get { throw null; } } + public static Azure.Storage.Blobs.Models.AccessTier P70 { get { throw null; } } + public static Azure.Storage.Blobs.Models.AccessTier P80 { get { throw null; } } + public static Azure.Storage.Blobs.Models.AccessTier Premium { get { throw null; } } + public bool Equals(Azure.Storage.Blobs.Models.AccessTier other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Storage.Blobs.Models.AccessTier left, Azure.Storage.Blobs.Models.AccessTier right) { throw null; } + public static implicit operator Azure.Storage.Blobs.Models.AccessTier (string value) { throw null; } + public static bool operator !=(Azure.Storage.Blobs.Models.AccessTier left, Azure.Storage.Blobs.Models.AccessTier right) { throw null; } + public override string ToString() { throw null; } + } + public partial class AccountInfo + { + internal AccountInfo() { } + public Azure.Storage.Blobs.Models.AccountKind AccountKind { get { throw null; } } + public bool IsHierarchicalNamespaceEnabled { get { throw null; } } + public Azure.Storage.Blobs.Models.SkuName SkuName { get { throw null; } } + } + public enum AccountKind + { + Storage = 0, + BlobStorage = 1, + StorageV2 = 2, + FileStorage = 3, + BlockBlobStorage = 4, + } + public partial class AppendBlobAppendBlockFromUriOptions + { + public AppendBlobAppendBlockFromUriOptions() { } + public Azure.Storage.Blobs.Models.AppendBlobRequestConditions DestinationConditions { get { throw null; } set { } } + public Azure.HttpAuthorization SourceAuthentication { get { throw null; } set { } } + public Azure.Storage.Blobs.Models.AppendBlobRequestConditions SourceConditions { get { throw null; } set { } } + public byte[] SourceContentHash { get { throw null; } set { } } + public Azure.HttpRange SourceRange { get { throw null; } set { } } + } + public partial class AppendBlobAppendBlockOptions + { + public AppendBlobAppendBlockOptions() { } + public Azure.Storage.Blobs.Models.AppendBlobRequestConditions Conditions { get { throw null; } set { } } + public System.IProgress ProgressHandler { get { throw null; } set { } } + public Azure.Storage.UploadTransferValidationOptions TransferValidation { get { throw null; } set { } } + } + public partial class AppendBlobCreateOptions + { + public AppendBlobCreateOptions() { } + public Azure.Storage.Blobs.Models.AppendBlobRequestConditions Conditions { get { throw null; } set { } } + public bool? HasLegalHold { get { throw null; } set { } } + public Azure.Storage.Blobs.Models.BlobHttpHeaders HttpHeaders { get { throw null; } set { } } + public Azure.Storage.Blobs.Models.BlobImmutabilityPolicy ImmutabilityPolicy { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } set { } } + } + public partial class AppendBlobOpenWriteOptions + { + public AppendBlobOpenWriteOptions() { } + public long? BufferSize { get { throw null; } set { } } + public Azure.Storage.Blobs.Models.AppendBlobRequestConditions OpenConditions { get { throw null; } set { } } + public System.IProgress ProgressHandler { get { throw null; } set { } } + public Azure.Storage.UploadTransferValidationOptions TransferValidation { get { throw null; } set { } } + } + public partial class AppendBlobRequestConditions : Azure.Storage.Blobs.Models.BlobRequestConditions + { + public AppendBlobRequestConditions() { } + public long? IfAppendPositionEqual { get { throw null; } set { } } + public long? IfMaxSizeLessThanOrEqual { get { throw null; } set { } } + } + public enum ArchiveStatus + { + RehydratePendingToHot = 0, + RehydratePendingToCool = 1, + } + public partial class BlobAccessPolicy + { + public BlobAccessPolicy() { } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public System.DateTimeOffset ExpiresOn { get { throw null; } set { } } + public string Permissions { get { throw null; } set { } } + public System.DateTimeOffset? PolicyExpiresOn { get { throw null; } set { } } + public System.DateTimeOffset? PolicyStartsOn { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public System.DateTimeOffset StartsOn { get { throw null; } set { } } + } + public partial class BlobAnalyticsLogging + { + public BlobAnalyticsLogging() { } + public bool Delete { get { throw null; } set { } } + public bool Read { get { throw null; } set { } } + public Azure.Storage.Blobs.Models.BlobRetentionPolicy RetentionPolicy { get { throw null; } set { } } + public string Version { get { throw null; } set { } } + public bool Write { get { throw null; } set { } } + } + public partial class BlobAppendInfo + { + internal BlobAppendInfo() { } + public string BlobAppendOffset { get { throw null; } } + public int BlobCommittedBlockCount { get { throw null; } } + public byte[] ContentCrc64 { get { throw null; } } + public byte[] ContentHash { get { throw null; } } + public string EncryptionKeySha256 { get { throw null; } } + public string EncryptionScope { get { throw null; } } + public Azure.ETag ETag { get { throw null; } } + public bool IsServerEncrypted { get { throw null; } } + public System.DateTimeOffset LastModified { get { throw null; } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct BlobBlock : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public string Name { get { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public int Size { get { throw null; } } + public long SizeLong { get { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public bool Equals(Azure.Storage.Blobs.Models.BlobBlock other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + } + public partial class BlobContainerAccessPolicy + { + public BlobContainerAccessPolicy() { } + public Azure.Storage.Blobs.Models.PublicAccessType BlobPublicAccess { get { throw null; } } + public Azure.ETag ETag { get { throw null; } } + public System.DateTimeOffset LastModified { get { throw null; } } + public System.Collections.Generic.IEnumerable SignedIdentifiers { get { throw null; } } + } + public partial class BlobContainerEncryptionScopeOptions + { + public BlobContainerEncryptionScopeOptions() { } + public string DefaultEncryptionScope { get { throw null; } set { } } + public bool PreventEncryptionScopeOverride { get { throw null; } set { } } + } + public partial class BlobContainerInfo + { + internal BlobContainerInfo() { } + public Azure.ETag ETag { get { throw null; } } + public System.DateTimeOffset LastModified { get { throw null; } } + } + public partial class BlobContainerItem + { + internal BlobContainerItem() { } + public bool? IsDeleted { get { throw null; } } + public string Name { get { throw null; } } + public Azure.Storage.Blobs.Models.BlobContainerProperties Properties { get { throw null; } } + public string VersionId { get { throw null; } } + } + public partial class BlobContainerProperties + { + internal BlobContainerProperties() { } + public string DefaultEncryptionScope { get { throw null; } } + public System.DateTimeOffset? DeletedOn { get { throw null; } } + public Azure.ETag ETag { get { throw null; } } + public bool? HasImmutabilityPolicy { get { throw null; } } + public bool HasImmutableStorageWithVersioning { get { throw null; } } + public bool? HasLegalHold { get { throw null; } } + public System.DateTimeOffset LastModified { get { throw null; } } + public Azure.Storage.Blobs.Models.LeaseDurationType? LeaseDuration { get { throw null; } } + public Azure.Storage.Blobs.Models.LeaseState? LeaseState { get { throw null; } } + public Azure.Storage.Blobs.Models.LeaseStatus? LeaseStatus { get { throw null; } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + public bool? PreventEncryptionScopeOverride { get { throw null; } } + public Azure.Storage.Blobs.Models.PublicAccessType? PublicAccess { get { throw null; } } + public int? RemainingRetentionDays { get { throw null; } } + } + [System.FlagsAttribute] + public enum BlobContainerStates + { + None = 0, + Deleted = 1, + System = 2, + } + [System.FlagsAttribute] + public enum BlobContainerTraits + { + None = 0, + Metadata = 1, + } + public partial class BlobContentInfo + { + internal BlobContentInfo() { } + public long BlobSequenceNumber { get { throw null; } } + public byte[] ContentHash { get { throw null; } } + public string EncryptionKeySha256 { get { throw null; } } + public string EncryptionScope { get { throw null; } } + public Azure.ETag ETag { get { throw null; } } + public System.DateTimeOffset LastModified { get { throw null; } } + public string VersionId { get { throw null; } } + } + public partial class BlobCopyFromUriOptions + { + public BlobCopyFromUriOptions() { } + public Azure.Storage.Blobs.Models.AccessTier? AccessTier { get { throw null; } set { } } + public Azure.Storage.Blobs.Models.BlobCopySourceTagsMode? CopySourceTagsMode { get { throw null; } set { } } + public Azure.Storage.Blobs.Models.BlobRequestConditions DestinationConditions { get { throw null; } set { } } + public Azure.Storage.Blobs.Models.BlobImmutabilityPolicy DestinationImmutabilityPolicy { get { throw null; } set { } } + public bool? LegalHold { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } set { } } + public Azure.Storage.Blobs.Models.RehydratePriority? RehydratePriority { get { throw null; } set { } } + public bool? ShouldSealDestination { get { throw null; } set { } } + public Azure.HttpAuthorization SourceAuthentication { get { throw null; } set { } } + public Azure.Storage.Blobs.Models.BlobRequestConditions SourceConditions { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } set { } } + } + public partial class BlobCopyInfo + { + internal BlobCopyInfo() { } + public string CopyId { get { throw null; } } + public Azure.Storage.Blobs.Models.CopyStatus CopyStatus { get { throw null; } } + public string EncryptionScope { get { throw null; } } + public Azure.ETag ETag { get { throw null; } } + public System.DateTimeOffset LastModified { get { throw null; } } + public string VersionId { get { throw null; } } + } + public enum BlobCopySourceTagsMode + { + Replace = 0, + Copy = 1, + } + public partial class BlobCorsRule + { + public BlobCorsRule() { } + public string AllowedHeaders { get { throw null; } set { } } + public string AllowedMethods { get { throw null; } set { } } + public string AllowedOrigins { get { throw null; } set { } } + public string ExposedHeaders { get { throw null; } set { } } + public int MaxAgeInSeconds { get { throw null; } set { } } + } + public partial class BlobDownloadDetails + { + public BlobDownloadDetails() { } + public string AcceptRanges { get { throw null; } } + public int BlobCommittedBlockCount { get { throw null; } } + public byte[] BlobContentHash { get { throw null; } } + public long BlobSequenceNumber { get { throw null; } } + public Azure.Storage.Blobs.Models.BlobType BlobType { get { throw null; } } + public string CacheControl { get { throw null; } } + public string ContentDisposition { get { throw null; } } + public string ContentEncoding { get { throw null; } } + public byte[] ContentHash { get { throw null; } } + public string ContentLanguage { get { throw null; } } + public long ContentLength { get { throw null; } } + public string ContentRange { get { throw null; } } + public string ContentType { get { throw null; } } + public System.DateTimeOffset CopyCompletedOn { get { throw null; } } + public string CopyId { get { throw null; } } + public string CopyProgress { get { throw null; } } + public System.Uri CopySource { get { throw null; } } + public Azure.Storage.Blobs.Models.CopyStatus CopyStatus { get { throw null; } } + public string CopyStatusDescription { get { throw null; } } + public string EncryptionKeySha256 { get { throw null; } } + public string EncryptionScope { get { throw null; } } + public Azure.ETag ETag { get { throw null; } } + public bool HasLegalHold { get { throw null; } } + public Azure.Storage.Blobs.Models.BlobImmutabilityPolicy ImmutabilityPolicy { get { throw null; } } + public bool IsSealed { get { throw null; } } + public bool IsServerEncrypted { get { throw null; } } + public System.DateTimeOffset LastAccessed { get { throw null; } } + public System.DateTimeOffset LastModified { get { throw null; } } + public Azure.Storage.Blobs.Models.LeaseDurationType LeaseDuration { get { throw null; } } + public Azure.Storage.Blobs.Models.LeaseState LeaseState { get { throw null; } } + public Azure.Storage.Blobs.Models.LeaseStatus LeaseStatus { get { throw null; } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + public string ObjectReplicationDestinationPolicyId { get { throw null; } } + public System.Collections.Generic.IList ObjectReplicationSourceProperties { get { throw null; } } + public long TagCount { get { throw null; } } + public string VersionId { get { throw null; } } + } + public partial class BlobDownloadInfo : System.IDisposable + { + internal BlobDownloadInfo() { } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public Azure.Storage.Blobs.Models.BlobType BlobType { get { throw null; } } + public System.IO.Stream Content { get { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public byte[] ContentHash { get { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public long ContentLength { get { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public string ContentType { get { throw null; } } + public Azure.Storage.Blobs.Models.BlobDownloadDetails Details { get { throw null; } } + public void Dispose() { } + } + public partial class BlobDownloadOptions + { + public BlobDownloadOptions() { } + public Azure.Storage.Blobs.Models.BlobRequestConditions Conditions { get { throw null; } set { } } + public System.IProgress ProgressHandler { get { throw null; } set { } } + public Azure.HttpRange Range { get { throw null; } set { } } + public Azure.Storage.DownloadTransferValidationOptions TransferValidation { get { throw null; } set { } } + } + public partial class BlobDownloadResult + { + internal BlobDownloadResult() { } + public System.BinaryData Content { get { throw null; } } + public Azure.Storage.Blobs.Models.BlobDownloadDetails Details { get { throw null; } } + } + public partial class BlobDownloadStreamingResult : System.IDisposable + { + internal BlobDownloadStreamingResult() { } + public System.IO.Stream Content { get { throw null; } } + public Azure.Storage.Blobs.Models.BlobDownloadDetails Details { get { throw null; } } + public void Dispose() { } + } + public partial class BlobDownloadToOptions + { + public BlobDownloadToOptions() { } + public Azure.Storage.Blobs.Models.BlobRequestConditions Conditions { get { throw null; } set { } } + public System.IProgress ProgressHandler { get { throw null; } set { } } + public Azure.Storage.StorageTransferOptions TransferOptions { get { throw null; } set { } } + public Azure.Storage.DownloadTransferValidationOptions TransferValidation { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct BlobErrorCode : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public BlobErrorCode(string value) { throw null; } + public static Azure.Storage.Blobs.Models.BlobErrorCode AccountAlreadyExists { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode AccountBeingCreated { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode AccountIsDisabled { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode AppendPositionConditionNotMet { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode AuthenticationFailed { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode AuthorizationFailure { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode AuthorizationPermissionMismatch { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode AuthorizationProtocolMismatch { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode AuthorizationResourceTypeMismatch { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode AuthorizationServiceMismatch { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode AuthorizationSourceIPMismatch { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode BlobAlreadyExists { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode BlobArchived { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode BlobBeingRehydrated { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode BlobImmutableDueToPolicy { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode BlobNotArchived { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode BlobNotFound { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode BlobOverwritten { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode BlobTierInadequateForContentLength { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode BlobUsesCustomerSpecifiedEncryption { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode BlockCountExceedsLimit { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode BlockListTooLong { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode CannotChangeToLowerTier { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode CannotVerifyCopySource { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode ConditionHeadersNotSupported { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode ConditionNotMet { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode ContainerAlreadyExists { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode ContainerBeingDeleted { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode ContainerDisabled { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode ContainerNotFound { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode ContentLengthLargerThanTierLimit { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode CopyAcrossAccountsNotSupported { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode CopyIdMismatch { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode EmptyMetadataKey { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode FeatureVersionMismatch { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode IncrementalCopyBlobMismatch { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode IncrementalCopyOfEarlierVersionSnapshotNotAllowed { get { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.Storage.Blobs.Models.BlobErrorCode IncrementalCopyOfEralierVersionSnapshotNotAllowed { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode IncrementalCopySourceMustBeSnapshot { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode InfiniteLeaseDurationRequired { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode InsufficientAccountPermissions { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode InternalError { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode InvalidAuthenticationInfo { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode InvalidBlobOrBlock { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode InvalidBlobTier { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode InvalidBlobType { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode InvalidBlockId { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode InvalidBlockList { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode InvalidHeaderValue { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode InvalidHttpVerb { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode InvalidInput { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode InvalidMd5 { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode InvalidMetadata { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode InvalidOperation { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode InvalidPageRange { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode InvalidQueryParameterValue { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode InvalidRange { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode InvalidResourceName { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode InvalidSourceBlobType { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode InvalidSourceBlobUrl { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode InvalidUri { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode InvalidVersionForPageBlobOperation { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode InvalidXmlDocument { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode InvalidXmlNodeValue { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode LeaseAlreadyBroken { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode LeaseAlreadyPresent { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode LeaseIdMismatchWithBlobOperation { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode LeaseIdMismatchWithContainerOperation { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode LeaseIdMismatchWithLeaseOperation { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode LeaseIdMissing { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode LeaseIsBreakingAndCannotBeAcquired { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode LeaseIsBreakingAndCannotBeChanged { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode LeaseIsBrokenAndCannotBeRenewed { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode LeaseLost { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode LeaseNotPresentWithBlobOperation { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode LeaseNotPresentWithContainerOperation { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode LeaseNotPresentWithLeaseOperation { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode MaxBlobSizeConditionNotMet { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode Md5Mismatch { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode MetadataTooLarge { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode MissingContentLengthHeader { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode MissingRequiredHeader { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode MissingRequiredQueryParameter { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode MissingRequiredXmlNode { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode MultipleConditionHeadersNotSupported { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode NoAuthenticationInformation { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode NoPendingCopyOperation { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode OperationNotAllowedOnIncrementalCopyBlob { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode OperationTimedOut { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode OutOfRangeInput { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode OutOfRangeQueryParameterValue { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode PendingCopyOperation { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode PreviousSnapshotCannotBeNewer { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode PreviousSnapshotNotFound { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode PreviousSnapshotOperationNotSupported { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode RequestBodyTooLarge { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode RequestUrlFailedToParse { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode ResourceAlreadyExists { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode ResourceNotFound { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode ResourceTypeMismatch { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode SequenceNumberConditionNotMet { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode SequenceNumberIncrementTooLarge { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode ServerBusy { get { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.Storage.Blobs.Models.BlobErrorCode SnaphotOperationRateExceeded { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode SnapshotCountExceeded { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode SnapshotOperationRateExceeded { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode SnapshotsPresent { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode SourceConditionNotMet { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode SystemInUse { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode TargetConditionNotMet { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode UnauthorizedBlobOverwrite { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode UnsupportedHeader { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode UnsupportedHttpVerb { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode UnsupportedQueryParameter { get { throw null; } } + public static Azure.Storage.Blobs.Models.BlobErrorCode UnsupportedXmlNode { get { throw null; } } + public bool Equals(Azure.Storage.Blobs.Models.BlobErrorCode other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Storage.Blobs.Models.BlobErrorCode left, Azure.Storage.Blobs.Models.BlobErrorCode right) { throw null; } + public static implicit operator Azure.Storage.Blobs.Models.BlobErrorCode (string value) { throw null; } + public static bool operator !=(Azure.Storage.Blobs.Models.BlobErrorCode left, Azure.Storage.Blobs.Models.BlobErrorCode right) { throw null; } + public override string ToString() { throw null; } + } + public partial class BlobGeoReplication + { + internal BlobGeoReplication() { } + public System.DateTimeOffset? LastSyncedOn { get { throw null; } } + public Azure.Storage.Blobs.Models.BlobGeoReplicationStatus Status { get { throw null; } } + } + public enum BlobGeoReplicationStatus + { + Live = 0, + Bootstrap = 1, + Unavailable = 2, + } + public partial class BlobHierarchyItem + { + internal BlobHierarchyItem() { } + public Azure.Storage.Blobs.Models.BlobItem Blob { get { throw null; } } + public bool IsBlob { get { throw null; } } + public bool IsPrefix { get { throw null; } } + public string Prefix { get { throw null; } } + } + public partial class BlobHttpHeaders + { + public BlobHttpHeaders() { } + public string CacheControl { get { throw null; } set { } } + public string ContentDisposition { get { throw null; } set { } } + public string ContentEncoding { get { throw null; } set { } } + public byte[] ContentHash { get { throw null; } set { } } + public string ContentLanguage { get { throw null; } set { } } + public string ContentType { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override string ToString() { throw null; } + } + public partial class BlobImmutabilityPolicy + { + public BlobImmutabilityPolicy() { } + public System.DateTimeOffset? ExpiresOn { get { throw null; } set { } } + public Azure.Storage.Blobs.Models.BlobImmutabilityPolicyMode? PolicyMode { get { throw null; } set { } } + } + public enum BlobImmutabilityPolicyMode + { + Mutable = 0, + Unlocked = 1, + Locked = 2, + } + public partial class BlobInfo + { + internal BlobInfo() { } + public long BlobSequenceNumber { get { throw null; } } + public Azure.ETag ETag { get { throw null; } } + public System.DateTimeOffset LastModified { get { throw null; } } + public string VersionId { get { throw null; } } + } + public partial class BlobItem + { + internal BlobItem() { } + public bool Deleted { get { throw null; } } + public bool? HasVersionsOnly { get { throw null; } } + public bool? IsLatestVersion { get { throw null; } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + public string Name { get { throw null; } } + public System.Collections.Generic.IList ObjectReplicationSourceProperties { get { throw null; } } + public Azure.Storage.Blobs.Models.BlobItemProperties Properties { get { throw null; } } + public string Snapshot { get { throw null; } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } } + public string VersionId { get { throw null; } } + } + public partial class BlobItemProperties + { + internal BlobItemProperties() { } + public Azure.Storage.Blobs.Models.AccessTier? AccessTier { get { throw null; } } + public System.DateTimeOffset? AccessTierChangedOn { get { throw null; } } + public bool AccessTierInferred { get { throw null; } } + public Azure.Storage.Blobs.Models.ArchiveStatus? ArchiveStatus { get { throw null; } } + public long? BlobSequenceNumber { get { throw null; } } + public Azure.Storage.Blobs.Models.BlobType? BlobType { get { throw null; } } + public string CacheControl { get { throw null; } } + public string ContentDisposition { get { throw null; } } + public string ContentEncoding { get { throw null; } } + public byte[] ContentHash { get { throw null; } } + public string ContentLanguage { get { throw null; } } + public long? ContentLength { get { throw null; } } + public string ContentType { get { throw null; } } + public System.DateTimeOffset? CopyCompletedOn { get { throw null; } } + public string CopyId { get { throw null; } } + public string CopyProgress { get { throw null; } } + public System.Uri CopySource { get { throw null; } } + public Azure.Storage.Blobs.Models.CopyStatus? CopyStatus { get { throw null; } } + public string CopyStatusDescription { get { throw null; } } + public System.DateTimeOffset? CreatedOn { get { throw null; } } + public string CustomerProvidedKeySha256 { get { throw null; } } + public System.DateTimeOffset? DeletedOn { get { throw null; } } + public string DestinationSnapshot { get { throw null; } } + public string EncryptionScope { get { throw null; } } + public Azure.ETag? ETag { get { throw null; } } + public System.DateTimeOffset? ExpiresOn { get { throw null; } } + public bool HasLegalHold { get { throw null; } } + public Azure.Storage.Blobs.Models.BlobImmutabilityPolicy ImmutabilityPolicy { get { throw null; } } + public bool? IncrementalCopy { get { throw null; } } + public bool? IsSealed { get { throw null; } } + public System.DateTimeOffset? LastAccessedOn { get { throw null; } } + public System.DateTimeOffset? LastModified { get { throw null; } } + public Azure.Storage.Blobs.Models.LeaseDurationType? LeaseDuration { get { throw null; } } + public Azure.Storage.Blobs.Models.LeaseState? LeaseState { get { throw null; } } + public Azure.Storage.Blobs.Models.LeaseStatus? LeaseStatus { get { throw null; } } + public Azure.Storage.Blobs.Models.RehydratePriority? RehydratePriority { get { throw null; } } + public int? RemainingRetentionDays { get { throw null; } } + public bool? ServerEncrypted { get { throw null; } } + public long? TagCount { get { throw null; } } + } + public partial class BlobLease + { + internal BlobLease() { } + public Azure.ETag ETag { get { throw null; } } + public System.DateTimeOffset LastModified { get { throw null; } } + public string LeaseId { get { throw null; } } + public int? LeaseTime { get { throw null; } } + } + public partial class BlobLeaseRequestConditions : Azure.RequestConditions + { + public BlobLeaseRequestConditions() { } + public string TagConditions { get { throw null; } set { } } + } + public partial class BlobLegalHoldResult + { + public BlobLegalHoldResult() { } + public bool HasLegalHold { get { throw null; } } + } + public partial class BlobMetrics + { + public BlobMetrics() { } + public bool Enabled { get { throw null; } set { } } + public bool? IncludeApis { get { throw null; } set { } } + public Azure.Storage.Blobs.Models.BlobRetentionPolicy RetentionPolicy { get { throw null; } set { } } + public string Version { get { throw null; } set { } } + } + public partial class BlobOpenReadOptions + { + public BlobOpenReadOptions(bool allowModifications) { } + public int? BufferSize { get { throw null; } set { } } + public Azure.Storage.Blobs.Models.BlobRequestConditions Conditions { get { throw null; } set { } } + public long Position { get { throw null; } set { } } + public Azure.Storage.DownloadTransferValidationOptions TransferValidation { get { throw null; } set { } } + } + public partial class BlobOpenWriteOptions + { + public BlobOpenWriteOptions() { } + public long? BufferSize { get { throw null; } set { } } + public Azure.Storage.Blobs.Models.BlobHttpHeaders HttpHeaders { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } set { } } + public Azure.Storage.Blobs.Models.BlobRequestConditions OpenConditions { get { throw null; } set { } } + public System.IProgress ProgressHandler { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } set { } } + public Azure.Storage.UploadTransferValidationOptions TransferValidation { get { throw null; } set { } } + } + public partial class BlobProperties + { + public BlobProperties() { } + public string AcceptRanges { get { throw null; } } + public string AccessTier { get { throw null; } } + public System.DateTimeOffset AccessTierChangedOn { get { throw null; } } + public bool AccessTierInferred { get { throw null; } } + public string ArchiveStatus { get { throw null; } } + public int BlobCommittedBlockCount { get { throw null; } } + public Azure.Storage.Blobs.Models.CopyStatus? BlobCopyStatus { get { throw null; } } + public long BlobSequenceNumber { get { throw null; } } + public Azure.Storage.Blobs.Models.BlobType BlobType { get { throw null; } } + public string CacheControl { get { throw null; } } + public string ContentDisposition { get { throw null; } } + public string ContentEncoding { get { throw null; } } + public byte[] ContentHash { get { throw null; } } + public string ContentLanguage { get { throw null; } } + public long ContentLength { get { throw null; } } + public string ContentType { get { throw null; } } + public System.DateTimeOffset CopyCompletedOn { get { throw null; } } + public string CopyId { get { throw null; } } + public string CopyProgress { get { throw null; } } + public System.Uri CopySource { get { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public Azure.Storage.Blobs.Models.CopyStatus CopyStatus { get { throw null; } } + public string CopyStatusDescription { get { throw null; } } + public System.DateTimeOffset CreatedOn { get { throw null; } } + public string DestinationSnapshot { get { throw null; } } + public string EncryptionKeySha256 { get { throw null; } } + public string EncryptionScope { get { throw null; } } + public Azure.ETag ETag { get { throw null; } } + public System.DateTimeOffset ExpiresOn { get { throw null; } } + public bool HasLegalHold { get { throw null; } } + public Azure.Storage.Blobs.Models.BlobImmutabilityPolicy ImmutabilityPolicy { get { throw null; } } + public bool IsIncrementalCopy { get { throw null; } } + public bool IsLatestVersion { get { throw null; } } + public bool IsSealed { get { throw null; } } + public bool IsServerEncrypted { get { throw null; } } + public System.DateTimeOffset LastAccessed { get { throw null; } } + public System.DateTimeOffset LastModified { get { throw null; } } + public Azure.Storage.Blobs.Models.LeaseDurationType LeaseDuration { get { throw null; } } + public Azure.Storage.Blobs.Models.LeaseState LeaseState { get { throw null; } } + public Azure.Storage.Blobs.Models.LeaseStatus LeaseStatus { get { throw null; } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + public string ObjectReplicationDestinationPolicyId { get { throw null; } } + public System.Collections.Generic.IList ObjectReplicationSourceProperties { get { throw null; } } + public string RehydratePriority { get { throw null; } } + public long TagCount { get { throw null; } } + public string VersionId { get { throw null; } } + } + public partial class BlobQueryArrowField + { + public BlobQueryArrowField() { } + public string Name { get { throw null; } set { } } + public int Precision { get { throw null; } set { } } + public int Scale { get { throw null; } set { } } + public Azure.Storage.Blobs.Models.BlobQueryArrowFieldType Type { get { throw null; } set { } } + } + public enum BlobQueryArrowFieldType + { + Int64 = 0, + Bool = 1, + Timestamp = 2, + String = 3, + Double = 4, + Decimal = 5, + } + public partial class BlobQueryArrowOptions : Azure.Storage.Blobs.Models.BlobQueryTextOptions + { + public BlobQueryArrowOptions() { } + public System.Collections.Generic.IList Schema { get { throw null; } set { } } + } + public partial class BlobQueryCsvTextOptions : Azure.Storage.Blobs.Models.BlobQueryTextOptions + { + public BlobQueryCsvTextOptions() { } + public string ColumnSeparator { get { throw null; } set { } } + public char? EscapeCharacter { get { throw null; } set { } } + public bool HasHeaders { get { throw null; } set { } } + public char? QuotationCharacter { get { throw null; } set { } } + public string RecordSeparator { get { throw null; } set { } } + } + public partial class BlobQueryError + { + internal BlobQueryError() { } + public string Description { get { throw null; } } + public bool IsFatal { get { throw null; } } + public string Name { get { throw null; } } + public long Position { get { throw null; } } + } + public partial class BlobQueryJsonTextOptions : Azure.Storage.Blobs.Models.BlobQueryTextOptions + { + public BlobQueryJsonTextOptions() { } + public string RecordSeparator { get { throw null; } set { } } + } + public partial class BlobQueryOptions + { + public BlobQueryOptions() { } + public Azure.Storage.Blobs.Models.BlobRequestConditions Conditions { get { throw null; } set { } } + public Azure.Storage.Blobs.Models.BlobQueryTextOptions InputTextConfiguration { get { throw null; } set { } } + public Azure.Storage.Blobs.Models.BlobQueryTextOptions OutputTextConfiguration { get { throw null; } set { } } + public System.IProgress ProgressHandler { get { throw null; } set { } } + public event System.Action ErrorHandler { add { } remove { } } + } + public partial class BlobQueryParquetTextOptions : Azure.Storage.Blobs.Models.BlobQueryTextOptions + { + public BlobQueryParquetTextOptions() { } + } + public abstract partial class BlobQueryTextOptions + { + protected BlobQueryTextOptions() { } + } + public partial class BlobRequestConditions : Azure.Storage.Blobs.Models.BlobLeaseRequestConditions + { + public BlobRequestConditions() { } + public string LeaseId { get { throw null; } set { } } + public override string ToString() { throw null; } + } + public partial class BlobRetentionPolicy + { + public BlobRetentionPolicy() { } + public int? Days { get { throw null; } set { } } + public bool Enabled { get { throw null; } set { } } + } + public partial class BlobServiceProperties + { + public BlobServiceProperties() { } + public System.Collections.Generic.IList Cors { get { throw null; } set { } } + public string DefaultServiceVersion { get { throw null; } set { } } + public Azure.Storage.Blobs.Models.BlobRetentionPolicy DeleteRetentionPolicy { get { throw null; } set { } } + public Azure.Storage.Blobs.Models.BlobMetrics HourMetrics { get { throw null; } set { } } + public Azure.Storage.Blobs.Models.BlobAnalyticsLogging Logging { get { throw null; } set { } } + public Azure.Storage.Blobs.Models.BlobMetrics MinuteMetrics { get { throw null; } set { } } + public Azure.Storage.Blobs.Models.BlobStaticWebsite StaticWebsite { get { throw null; } set { } } + } + public partial class BlobServiceStatistics + { + internal BlobServiceStatistics() { } + public Azure.Storage.Blobs.Models.BlobGeoReplication GeoReplication { get { throw null; } } + } + public partial class BlobSignedIdentifier + { + public BlobSignedIdentifier() { } + public Azure.Storage.Blobs.Models.BlobAccessPolicy AccessPolicy { get { throw null; } set { } } + public string Id { get { throw null; } set { } } + } + public static partial class BlobsModelFactory + { + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.Storage.Blobs.Models.AccountInfo AccountInfo(Azure.Storage.Blobs.Models.SkuName skuName, Azure.Storage.Blobs.Models.AccountKind accountKind) { throw null; } + public static Azure.Storage.Blobs.Models.AccountInfo AccountInfo(Azure.Storage.Blobs.Models.SkuName skuName, Azure.Storage.Blobs.Models.AccountKind accountKind, bool isHierarchicalNamespaceEnabled) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.Storage.Blobs.Models.BlobAppendInfo BlobAppendInfo(Azure.ETag eTag, System.DateTimeOffset lastModified, byte[] contentHash, byte[] contentCrc64, string blobAppendOffset, int blobCommittedBlockCount, bool isServerEncrypted, string encryptionKeySha256) { throw null; } + public static Azure.Storage.Blobs.Models.BlobAppendInfo BlobAppendInfo(Azure.ETag eTag, System.DateTimeOffset lastModified, byte[] contentHash, byte[] contentCrc64, string blobAppendOffset, int blobCommittedBlockCount, bool isServerEncrypted, string encryptionKeySha256, string encryptionScope) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.Storage.Blobs.Models.BlobBlock BlobBlock(string name, int size) { throw null; } + public static Azure.Storage.Blobs.Models.BlobBlock BlobBlock(string name, long size) { throw null; } + public static Azure.Storage.Blobs.Models.BlobContainerAccessPolicy BlobContainerAccessPolicy(Azure.Storage.Blobs.Models.PublicAccessType blobPublicAccess, Azure.ETag eTag, System.DateTimeOffset lastModified, System.Collections.Generic.IEnumerable signedIdentifiers) { throw null; } + public static Azure.Storage.Blobs.Models.BlobContainerInfo BlobContainerInfo(Azure.ETag eTag, System.DateTimeOffset lastModified) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.Storage.Blobs.Models.BlobContainerItem BlobContainerItem(string name, Azure.Storage.Blobs.Models.BlobContainerProperties properties) { throw null; } + public static Azure.Storage.Blobs.Models.BlobContainerItem BlobContainerItem(string name, Azure.Storage.Blobs.Models.BlobContainerProperties properties, bool? isDeleted = default(bool?), string versionId = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.Storage.Blobs.Models.BlobContainerProperties BlobContainerProperties(System.DateTimeOffset lastModified, Azure.ETag eTag, Azure.Storage.Blobs.Models.LeaseState? leaseState, Azure.Storage.Blobs.Models.LeaseDurationType? leaseDuration, Azure.Storage.Blobs.Models.PublicAccessType? publicAccess, Azure.Storage.Blobs.Models.LeaseStatus? leaseStatus, bool? hasLegalHold, string defaultEncryptionScope, bool? preventEncryptionScopeOverride, System.Collections.Generic.IDictionary metadata, bool? hasImmutabilityPolicy) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.Storage.Blobs.Models.BlobContainerProperties BlobContainerProperties(System.DateTimeOffset lastModified, Azure.ETag eTag, Azure.Storage.Blobs.Models.LeaseState? leaseState, Azure.Storage.Blobs.Models.LeaseDurationType? leaseDuration, Azure.Storage.Blobs.Models.PublicAccessType? publicAccess, bool? hasImmutabilityPolicy, Azure.Storage.Blobs.Models.LeaseStatus? leaseStatus, string defaultEncryptionScope, bool? preventEncryptionScopeOverride, System.Collections.Generic.IDictionary metadata, bool? hasLegalHold) { throw null; } + public static Azure.Storage.Blobs.Models.BlobContainerProperties BlobContainerProperties(System.DateTimeOffset lastModified, Azure.ETag eTag, Azure.Storage.Blobs.Models.LeaseState? leaseState = default(Azure.Storage.Blobs.Models.LeaseState?), Azure.Storage.Blobs.Models.LeaseDurationType? leaseDuration = default(Azure.Storage.Blobs.Models.LeaseDurationType?), Azure.Storage.Blobs.Models.PublicAccessType? publicAccess = default(Azure.Storage.Blobs.Models.PublicAccessType?), bool? hasImmutabilityPolicy = default(bool?), Azure.Storage.Blobs.Models.LeaseStatus? leaseStatus = default(Azure.Storage.Blobs.Models.LeaseStatus?), string defaultEncryptionScope = null, bool? preventEncryptionScopeOverride = default(bool?), System.DateTimeOffset? deletedOn = default(System.DateTimeOffset?), int? remainingRetentionDays = default(int?), System.Collections.Generic.IDictionary metadata = null, bool? hasLegalHold = default(bool?)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.Storage.Blobs.Models.BlobContainerProperties BlobContainerProperties(System.DateTimeOffset lastModified, Azure.ETag eTag, Azure.Storage.Blobs.Models.LeaseStatus? leaseStatus, Azure.Storage.Blobs.Models.LeaseState? leaseState, Azure.Storage.Blobs.Models.LeaseDurationType? leaseDuration, Azure.Storage.Blobs.Models.PublicAccessType? publicAccess, bool? hasImmutabilityPolicy, bool? hasLegalHold, System.Collections.Generic.IDictionary metadata) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.Storage.Blobs.Models.BlobContentInfo BlobContentInfo(Azure.ETag eTag, System.DateTimeOffset lastModified, byte[] contentHash, string encryptionKeySha256, long blobSequenceNumber) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.Storage.Blobs.Models.BlobContentInfo BlobContentInfo(Azure.ETag eTag, System.DateTimeOffset lastModified, byte[] contentHash, string encryptionKeySha256, string encryptionScope, long blobSequenceNumber) { throw null; } + public static Azure.Storage.Blobs.Models.BlobContentInfo BlobContentInfo(Azure.ETag eTag, System.DateTimeOffset lastModified, byte[] contentHash, string versionId, string encryptionKeySha256, string encryptionScope, long blobSequenceNumber) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.Storage.Blobs.Models.BlobCopyInfo BlobCopyInfo(Azure.ETag eTag, System.DateTimeOffset lastModified, string copyId, Azure.Storage.Blobs.Models.CopyStatus copyStatus) { throw null; } + public static Azure.Storage.Blobs.Models.BlobCopyInfo BlobCopyInfo(Azure.ETag eTag, System.DateTimeOffset lastModified, string versionId, string copyId, Azure.Storage.Blobs.Models.CopyStatus copyStatus) { throw null; } + public static Azure.Storage.Blobs.Models.BlobDownloadDetails BlobDownloadDetails(Azure.Storage.Blobs.Models.BlobType blobType, long contentLength, string contentType, byte[] contentHash, System.DateTimeOffset lastModified, System.Collections.Generic.IDictionary metadata, string contentRange, string contentEncoding, string cacheControl, string contentDisposition, string contentLanguage, long blobSequenceNumber, System.DateTimeOffset copyCompletedOn, string copyStatusDescription, string copyId, string copyProgress, System.Uri copySource, Azure.Storage.Blobs.Models.CopyStatus copyStatus, Azure.Storage.Blobs.Models.LeaseDurationType leaseDuration, Azure.Storage.Blobs.Models.LeaseState leaseState, Azure.Storage.Blobs.Models.LeaseStatus leaseStatus, string acceptRanges, int blobCommittedBlockCount, bool isServerEncrypted, string encryptionKeySha256, string encryptionScope, byte[] blobContentHash, long tagCount, string versionId, bool isSealed, System.Collections.Generic.IList objectReplicationSourceProperties, string objectReplicationDestinationPolicy) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.Storage.Blobs.Models.BlobDownloadDetails BlobDownloadDetails(System.DateTimeOffset lastModified, System.Collections.Generic.IDictionary metadata, string contentRange, string contentEncoding, string cacheControl, string contentDisposition, string contentLanguage, long blobSequenceNumber, System.DateTimeOffset copyCompletedOn, string copyStatusDescription, string copyId, string copyProgress, System.Uri copySource, Azure.Storage.Blobs.Models.CopyStatus copyStatus, Azure.Storage.Blobs.Models.LeaseDurationType leaseDuration, Azure.Storage.Blobs.Models.LeaseState leaseState, Azure.Storage.Blobs.Models.LeaseStatus leaseStatus, string acceptRanges, int blobCommittedBlockCount, bool isServerEncrypted, string encryptionKeySha256, string encryptionScope, byte[] blobContentHash, long tagCount, string versionId, bool isSealed, System.Collections.Generic.IList objectReplicationSourceProperties, string objectReplicationDestinationPolicy) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.Storage.Blobs.Models.BlobDownloadInfo BlobDownloadInfo(System.DateTimeOffset lastModified, long blobSequenceNumber, Azure.Storage.Blobs.Models.BlobType blobType, byte[] contentCrc64, string contentLanguage, string copyStatusDescription, string copyId, string copyProgress, System.Uri copySource, Azure.Storage.Blobs.Models.CopyStatus copyStatus, string contentDisposition, Azure.Storage.Blobs.Models.LeaseDurationType leaseDuration, string cacheControl, Azure.Storage.Blobs.Models.LeaseState leaseState, string contentEncoding, Azure.Storage.Blobs.Models.LeaseStatus leaseStatus, byte[] contentHash, string acceptRanges, Azure.ETag eTag, int blobCommittedBlockCount, string contentRange, bool isServerEncrypted, string contentType, string encryptionKeySha256, long contentLength, byte[] blobContentHash, System.Collections.Generic.IDictionary metadata, System.IO.Stream content, System.DateTimeOffset copyCompletionTime) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.Storage.Blobs.Models.BlobDownloadInfo BlobDownloadInfo(System.DateTimeOffset lastModified, long blobSequenceNumber, Azure.Storage.Blobs.Models.BlobType blobType, byte[] contentCrc64, string contentLanguage, string copyStatusDescription, string copyId, string copyProgress, System.Uri copySource, Azure.Storage.Blobs.Models.CopyStatus copyStatus, string contentDisposition, Azure.Storage.Blobs.Models.LeaseDurationType leaseDuration, string cacheControl, Azure.Storage.Blobs.Models.LeaseState leaseState, string contentEncoding, Azure.Storage.Blobs.Models.LeaseStatus leaseStatus, byte[] contentHash, string acceptRanges, Azure.ETag eTag, int blobCommittedBlockCount, string contentRange, bool isServerEncrypted, string contentType, string encryptionKeySha256, string encryptionScope, long contentLength, byte[] blobContentHash, System.Collections.Generic.IDictionary metadata, System.IO.Stream content, System.DateTimeOffset copyCompletionTime) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.Storage.Blobs.Models.BlobDownloadInfo BlobDownloadInfo(System.DateTimeOffset lastModified, long blobSequenceNumber, Azure.Storage.Blobs.Models.BlobType blobType, byte[] contentCrc64, string contentLanguage, string copyStatusDescription, string copyId, string copyProgress, System.Uri copySource, Azure.Storage.Blobs.Models.CopyStatus copyStatus, string contentDisposition, Azure.Storage.Blobs.Models.LeaseDurationType leaseDuration, string cacheControl, Azure.Storage.Blobs.Models.LeaseState leaseState, string contentEncoding, Azure.Storage.Blobs.Models.LeaseStatus leaseStatus, byte[] contentHash, string acceptRanges, Azure.ETag eTag, int blobCommittedBlockCount, string contentRange, bool isServerEncrypted, string contentType, string encryptionKeySha256, string encryptionScope, long contentLength, byte[] blobContentHash, string versionId, System.Collections.Generic.IDictionary metadata, System.IO.Stream content, System.DateTimeOffset copyCompletionTime, long tagCount) { throw null; } + public static Azure.Storage.Blobs.Models.BlobDownloadInfo BlobDownloadInfo(System.DateTimeOffset lastModified = default(System.DateTimeOffset), long blobSequenceNumber = (long)0, Azure.Storage.Blobs.Models.BlobType blobType = Azure.Storage.Blobs.Models.BlobType.Block, byte[] contentCrc64 = null, string contentLanguage = null, string copyStatusDescription = null, string copyId = null, string copyProgress = null, System.Uri copySource = null, Azure.Storage.Blobs.Models.CopyStatus copyStatus = Azure.Storage.Blobs.Models.CopyStatus.Pending, string contentDisposition = null, Azure.Storage.Blobs.Models.LeaseDurationType leaseDuration = Azure.Storage.Blobs.Models.LeaseDurationType.Infinite, string cacheControl = null, Azure.Storage.Blobs.Models.LeaseState leaseState = Azure.Storage.Blobs.Models.LeaseState.Available, string contentEncoding = null, Azure.Storage.Blobs.Models.LeaseStatus leaseStatus = Azure.Storage.Blobs.Models.LeaseStatus.Locked, byte[] contentHash = null, string acceptRanges = null, Azure.ETag eTag = default(Azure.ETag), int blobCommittedBlockCount = 0, string contentRange = null, bool isServerEncrypted = false, string contentType = null, string encryptionKeySha256 = null, string encryptionScope = null, long contentLength = (long)0, byte[] blobContentHash = null, string versionId = null, System.Collections.Generic.IDictionary metadata = null, System.IO.Stream content = null, System.DateTimeOffset copyCompletionTime = default(System.DateTimeOffset), long tagCount = (long)0, System.DateTimeOffset lastAccessed = default(System.DateTimeOffset)) { throw null; } + public static Azure.Storage.Blobs.Models.BlobDownloadResult BlobDownloadResult(System.BinaryData content = null, Azure.Storage.Blobs.Models.BlobDownloadDetails details = null) { throw null; } + public static Azure.Storage.Blobs.Models.BlobDownloadStreamingResult BlobDownloadStreamingResult(System.IO.Stream content = null, Azure.Storage.Blobs.Models.BlobDownloadDetails details = null) { throw null; } + public static Azure.Storage.Blobs.Models.BlobGeoReplication BlobGeoReplication(Azure.Storage.Blobs.Models.BlobGeoReplicationStatus status, System.DateTimeOffset? lastSyncedOn = default(System.DateTimeOffset?)) { throw null; } + public static Azure.Storage.Blobs.Models.BlobHierarchyItem BlobHierarchyItem(string prefix, Azure.Storage.Blobs.Models.BlobItem blob) { throw null; } + public static Azure.Storage.Blobs.Models.BlobInfo BlobInfo(Azure.ETag eTag, System.DateTimeOffset lastModified) { throw null; } + public static Azure.Storage.Blobs.Models.BlobInfo blobInfo(Azure.ETag eTag = default(Azure.ETag), System.DateTimeOffset lastModifed = default(System.DateTimeOffset), long blobSequenceNumber = (long)0, string versionId = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.Storage.Blobs.Models.BlobItem BlobItem(string name, bool deleted, Azure.Storage.Blobs.Models.BlobItemProperties properties, string snapshot, System.Collections.Generic.IDictionary metadata) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.Storage.Blobs.Models.BlobItem BlobItem(string name, bool deleted, Azure.Storage.Blobs.Models.BlobItemProperties properties, string snapshot, string versionId, bool? isLatestVersion, System.Collections.Generic.IDictionary metadata, System.Collections.Generic.IDictionary tags, System.Collections.Generic.List objectReplicationSourcePolicies) { throw null; } + public static Azure.Storage.Blobs.Models.BlobItem BlobItem(string name = null, bool deleted = false, Azure.Storage.Blobs.Models.BlobItemProperties properties = null, string snapshot = null, string versionId = null, bool? isLatestVersion = default(bool?), System.Collections.Generic.IDictionary metadata = null, System.Collections.Generic.IDictionary tags = null, System.Collections.Generic.List objectReplicationSourcePolicies = null, bool? hasVersionsOnly = default(bool?)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.Storage.Blobs.Models.BlobItemProperties BlobItemProperties(bool accessTierInferred, bool? serverEncrypted, string contentType, string contentEncoding, string contentLanguage, byte[] contentHash, string contentDisposition, string cacheControl, long? blobSequenceNumber, Azure.Storage.Blobs.Models.BlobType? blobType, Azure.Storage.Blobs.Models.LeaseStatus? leaseStatus, Azure.Storage.Blobs.Models.LeaseState? leaseState, Azure.Storage.Blobs.Models.LeaseDurationType? leaseDuration, string copyId, Azure.Storage.Blobs.Models.CopyStatus? copyStatus, System.Uri copySource, string copyProgress, string copyStatusDescription, long? contentLength, bool? incrementalCopy, string destinationSnapshot, int? remainingRetentionDays, Azure.Storage.Blobs.Models.AccessTier? accessTier, System.DateTimeOffset? lastModified, Azure.Storage.Blobs.Models.ArchiveStatus? archiveStatus, string customerProvidedKeySha256, string encryptionScope, long? tagCount, System.DateTimeOffset? expiresOn, bool? isSealed, Azure.Storage.Blobs.Models.RehydratePriority? rehydratePriority, Azure.ETag? eTag, System.DateTimeOffset? createdOn, System.DateTimeOffset? copyCompletedOn, System.DateTimeOffset? deletedOn, System.DateTimeOffset? accessTierChangedOn) { throw null; } + public static Azure.Storage.Blobs.Models.BlobItemProperties BlobItemProperties(bool accessTierInferred, bool? serverEncrypted = default(bool?), string contentType = null, string contentEncoding = null, string contentLanguage = null, byte[] contentHash = null, string contentDisposition = null, string cacheControl = null, long? blobSequenceNumber = default(long?), Azure.Storage.Blobs.Models.BlobType? blobType = default(Azure.Storage.Blobs.Models.BlobType?), Azure.Storage.Blobs.Models.LeaseStatus? leaseStatus = default(Azure.Storage.Blobs.Models.LeaseStatus?), Azure.Storage.Blobs.Models.LeaseState? leaseState = default(Azure.Storage.Blobs.Models.LeaseState?), Azure.Storage.Blobs.Models.LeaseDurationType? leaseDuration = default(Azure.Storage.Blobs.Models.LeaseDurationType?), string copyId = null, Azure.Storage.Blobs.Models.CopyStatus? copyStatus = default(Azure.Storage.Blobs.Models.CopyStatus?), System.Uri copySource = null, string copyProgress = null, string copyStatusDescription = null, long? contentLength = default(long?), bool? incrementalCopy = default(bool?), string destinationSnapshot = null, int? remainingRetentionDays = default(int?), Azure.Storage.Blobs.Models.AccessTier? accessTier = default(Azure.Storage.Blobs.Models.AccessTier?), System.DateTimeOffset? lastModified = default(System.DateTimeOffset?), Azure.Storage.Blobs.Models.ArchiveStatus? archiveStatus = default(Azure.Storage.Blobs.Models.ArchiveStatus?), string customerProvidedKeySha256 = null, string encryptionScope = null, long? tagCount = default(long?), System.DateTimeOffset? expiresOn = default(System.DateTimeOffset?), bool? isSealed = default(bool?), Azure.Storage.Blobs.Models.RehydratePriority? rehydratePriority = default(Azure.Storage.Blobs.Models.RehydratePriority?), System.DateTimeOffset? lastAccessedOn = default(System.DateTimeOffset?), Azure.ETag? eTag = default(Azure.ETag?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? copyCompletedOn = default(System.DateTimeOffset?), System.DateTimeOffset? deletedOn = default(System.DateTimeOffset?), System.DateTimeOffset? accessTierChangedOn = default(System.DateTimeOffset?)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.Storage.Blobs.Models.BlobItemProperties BlobItemProperties(bool accessTierInferred, string copyProgress, string contentType, string contentEncoding, string contentLanguage, byte[] contentHash, string contentDisposition, string cacheControl, long? blobSequenceNumber, Azure.Storage.Blobs.Models.BlobType? blobType, Azure.Storage.Blobs.Models.LeaseStatus? leaseStatus, Azure.Storage.Blobs.Models.LeaseState? leaseState, Azure.Storage.Blobs.Models.LeaseDurationType? leaseDuration, string copyId, Azure.Storage.Blobs.Models.CopyStatus? copyStatus, System.Uri copySource, long? contentLength, string copyStatusDescription, bool? serverEncrypted, bool? incrementalCopy, string destinationSnapshot, int? remainingRetentionDays, Azure.Storage.Blobs.Models.AccessTier? accessTier, System.DateTimeOffset? lastModified, Azure.Storage.Blobs.Models.ArchiveStatus? archiveStatus, string customerProvidedKeySha256, string encryptionScope, Azure.ETag? eTag, System.DateTimeOffset? createdOn, System.DateTimeOffset? copyCompletedOn, System.DateTimeOffset? deletedOn, System.DateTimeOffset? accessTierChangedOn) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.Storage.Blobs.Models.BlobItemProperties BlobItemProperties(bool accessTierInferred, System.Uri copySource, string contentType, string contentEncoding, string contentLanguage, byte[] contentHash, string contentDisposition, string cacheControl, long? blobSequenceNumber, Azure.Storage.Blobs.Models.BlobType? blobType, Azure.Storage.Blobs.Models.LeaseStatus? leaseStatus, Azure.Storage.Blobs.Models.LeaseState? leaseState, Azure.Storage.Blobs.Models.LeaseDurationType? leaseDuration, string copyId, Azure.Storage.Blobs.Models.CopyStatus? copyStatus, long? contentLength, string copyProgress, string copyStatusDescription, bool? serverEncrypted, bool? incrementalCopy, string destinationSnapshot, int? remainingRetentionDays, Azure.Storage.Blobs.Models.AccessTier? accessTier, System.DateTimeOffset? lastModified, Azure.Storage.Blobs.Models.ArchiveStatus? archiveStatus, string customerProvidedKeySha256, Azure.ETag? eTag, System.DateTimeOffset? createdOn, System.DateTimeOffset? copyCompletedOn, System.DateTimeOffset? deletedOn, System.DateTimeOffset? accessTierChangedOn) { throw null; } + public static Azure.Storage.Blobs.Models.BlobLease BlobLease(Azure.ETag eTag, System.DateTimeOffset lastModified, string leaseId) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.Storage.Blobs.Models.BlobProperties BlobProperties(System.DateTimeOffset lastModified, Azure.Storage.Blobs.Models.LeaseDurationType leaseDuration, Azure.Storage.Blobs.Models.LeaseState leaseState, Azure.Storage.Blobs.Models.LeaseStatus leaseStatus, long contentLength, string destinationSnapshot, Azure.ETag eTag, byte[] contentHash, string contentEncoding, string contentDisposition, string contentLanguage, bool isIncrementalCopy, string cacheControl, Azure.Storage.Blobs.Models.CopyStatus copyStatus, long blobSequenceNumber, System.Uri copySource, string acceptRanges, string copyProgress, int blobCommittedBlockCount, string copyId, bool isServerEncrypted, string copyStatusDescription, string encryptionKeySha256, System.DateTimeOffset copyCompletedOn, string accessTier, Azure.Storage.Blobs.Models.BlobType blobType, bool accessTierInferred, System.Collections.Generic.IDictionary metadata, string archiveStatus, System.DateTimeOffset createdOn, System.DateTimeOffset accessTierChangedOn, string contentType) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.Storage.Blobs.Models.BlobProperties BlobProperties(System.DateTimeOffset lastModified, Azure.Storage.Blobs.Models.LeaseState leaseState, Azure.Storage.Blobs.Models.LeaseStatus leaseStatus, long contentLength, Azure.Storage.Blobs.Models.LeaseDurationType leaseDuration, Azure.ETag eTag, byte[] contentHash, string contentEncoding, string contentDisposition, string contentLanguage, string destinationSnapshot, string cacheControl, bool isIncrementalCopy, long blobSequenceNumber, Azure.Storage.Blobs.Models.CopyStatus copyStatus, string acceptRanges, System.Uri copySource, int blobCommittedBlockCount, string copyProgress, bool isServerEncrypted, string copyId, string encryptionKeySha256, string copyStatusDescription, string encryptionScope, System.DateTimeOffset copyCompletedOn, string accessTier, Azure.Storage.Blobs.Models.BlobType blobType, bool accessTierInferred, System.Collections.Generic.IDictionary metadata, string archiveStatus, System.DateTimeOffset createdOn, System.DateTimeOffset accessTierChangedOn, string contentType) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.Storage.Blobs.Models.BlobProperties BlobProperties(System.DateTimeOffset lastModified, Azure.Storage.Blobs.Models.LeaseStatus leaseStatus, long contentLength, string contentType, Azure.ETag eTag, Azure.Storage.Blobs.Models.LeaseState leaseState, string contentEncoding, string contentDisposition, string contentLanguage, string cacheControl, long blobSequenceNumber, Azure.Storage.Blobs.Models.LeaseDurationType leaseDuration, string acceptRanges, string destinationSnapshot, int blobCommittedBlockCount, bool isIncrementalCopy, bool isServerEncrypted, Azure.Storage.Blobs.Models.CopyStatus copyStatus, string encryptionKeySha256, System.Uri copySource, string encryptionScope, string copyProgress, string accessTier, string copyId, bool accessTierInferred, string copyStatusDescription, string archiveStatus, System.DateTimeOffset copyCompletedOn, System.DateTimeOffset accessTierChangedOn, Azure.Storage.Blobs.Models.BlobType blobType, string versionId, System.Collections.Generic.IList objectReplicationSourceProperties, bool isLatestVersion, string objectReplicationDestinationPolicyId, long tagCount, System.Collections.Generic.IDictionary metadata, System.DateTimeOffset expiresOn, System.DateTimeOffset createdOn, bool isSealed, string rehydratePriority, byte[] contentHash) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.Storage.Blobs.Models.BlobProperties BlobProperties(System.DateTimeOffset lastModified, Azure.Storage.Blobs.Models.LeaseStatus leaseStatus, long contentLength, string contentType, Azure.ETag eTag, Azure.Storage.Blobs.Models.LeaseState leaseState, string contentEncoding, string contentDisposition, string contentLanguage, string cacheControl, long blobSequenceNumber, Azure.Storage.Blobs.Models.LeaseDurationType leaseDuration, string acceptRanges, string destinationSnapshot, int blobCommittedBlockCount, bool isIncrementalCopy, bool isServerEncrypted, Azure.Storage.Blobs.Models.CopyStatus copyStatus, string encryptionKeySha256, System.Uri copySource, string encryptionScope, string copyProgress, string accessTier, string copyId, bool accessTierInferred, string copyStatusDescription, string archiveStatus, System.DateTimeOffset copyCompletedOn, System.DateTimeOffset accessTierChangedOn, Azure.Storage.Blobs.Models.BlobType blobType, string versionId, System.Collections.Generic.IList objectReplicationSourceProperties, bool isLatestVersion, string objectReplicationDestinationPolicyId, long tagCount, System.Collections.Generic.IDictionary metadata, System.DateTimeOffset expiresOn, System.DateTimeOffset createdOn, bool isSealed, string rehydratePriority, byte[] contentHash, System.DateTimeOffset lastAccessed) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.Storage.Blobs.Models.BlobProperties BlobProperties(System.DateTimeOffset lastModified, Azure.Storage.Blobs.Models.LeaseStatus leaseStatus, long contentLength, string contentType, Azure.ETag eTag, Azure.Storage.Blobs.Models.LeaseState leaseState, string contentEncoding, string contentDisposition, string contentLanguage, string cacheControl, long blobSequenceNumber, Azure.Storage.Blobs.Models.LeaseDurationType leaseDuration, string acceptRanges, string destinationSnapshot, int blobCommittedBlockCount, bool isIncrementalCopy, bool isServerEncrypted, Azure.Storage.Blobs.Models.CopyStatus copyStatus, string encryptionKeySha256, System.Uri copySource, string encryptionScope, string copyProgress, string accessTier, string copyId, bool accessTierInferred, string copyStatusDescription, string archiveStatus, System.DateTimeOffset copyCompletedOn, System.DateTimeOffset accessTierChangedOn, Azure.Storage.Blobs.Models.BlobType blobType, string versionId, System.Collections.Generic.IList objectReplicationSourceProperties, bool isLatestVersion, string objectReplicationDestinationPolicyId, long tagCount, System.Collections.Generic.IDictionary metadata, System.DateTimeOffset expiresOn, System.DateTimeOffset createdOn, bool isSealed, string rehydratePriority, byte[] contentHash, System.DateTimeOffset lastAccessed, Azure.Storage.Blobs.Models.BlobImmutabilityPolicy immutabilityPolicy, bool hasLegalHold) { throw null; } + public static Azure.Storage.Blobs.Models.BlobProperties BlobProperties(System.DateTimeOffset lastModified = default(System.DateTimeOffset), Azure.Storage.Blobs.Models.LeaseStatus leaseStatus = Azure.Storage.Blobs.Models.LeaseStatus.Locked, long contentLength = (long)0, string contentType = null, Azure.ETag eTag = default(Azure.ETag), Azure.Storage.Blobs.Models.LeaseState leaseState = Azure.Storage.Blobs.Models.LeaseState.Available, string contentEncoding = null, string contentDisposition = null, string contentLanguage = null, string cacheControl = null, long blobSequenceNumber = (long)0, Azure.Storage.Blobs.Models.LeaseDurationType leaseDuration = Azure.Storage.Blobs.Models.LeaseDurationType.Infinite, string acceptRanges = null, string destinationSnapshot = null, int blobCommittedBlockCount = 0, bool isIncrementalCopy = false, bool isServerEncrypted = false, Azure.Storage.Blobs.Models.CopyStatus? blobCopyStatus = default(Azure.Storage.Blobs.Models.CopyStatus?), string encryptionKeySha256 = null, System.Uri copySource = null, string encryptionScope = null, string copyProgress = null, string accessTier = null, string copyId = null, bool accessTierInferred = false, string copyStatusDescription = null, string archiveStatus = null, System.DateTimeOffset copyCompletedOn = default(System.DateTimeOffset), System.DateTimeOffset accessTierChangedOn = default(System.DateTimeOffset), Azure.Storage.Blobs.Models.BlobType blobType = Azure.Storage.Blobs.Models.BlobType.Block, string versionId = null, System.Collections.Generic.IList objectReplicationSourceProperties = null, bool isLatestVersion = false, string objectReplicationDestinationPolicyId = null, long tagCount = (long)0, System.Collections.Generic.IDictionary metadata = null, System.DateTimeOffset expiresOn = default(System.DateTimeOffset), System.DateTimeOffset createdOn = default(System.DateTimeOffset), bool isSealed = false, string rehydratePriority = null, byte[] contentHash = null, System.DateTimeOffset lastAccessed = default(System.DateTimeOffset), Azure.Storage.Blobs.Models.BlobImmutabilityPolicy immutabilityPolicy = null, bool hasLegalHold = false) { throw null; } + public static Azure.Storage.Blobs.Models.BlobQueryError BlobQueryError(string name = null, string description = null, bool isFatal = false, long position = (long)0) { throw null; } + public static Azure.Storage.Blobs.Models.BlobServiceStatistics BlobServiceStatistics(Azure.Storage.Blobs.Models.BlobGeoReplication geoReplication = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.Storage.Blobs.Models.BlobSnapshotInfo BlobSnapshotInfo(string snapshot, Azure.ETag eTag, System.DateTimeOffset lastModified, bool isServerEncrypted) { throw null; } + public static Azure.Storage.Blobs.Models.BlobSnapshotInfo BlobSnapshotInfo(string snapshot, Azure.ETag eTag, System.DateTimeOffset lastModified, string versionId, bool isServerEncrypted) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.Storage.Blobs.Models.BlockInfo BlockInfo(byte[] contentHash, byte[] contentCrc64, string encryptionKeySha256) { throw null; } + public static Azure.Storage.Blobs.Models.BlockInfo BlockInfo(byte[] contentHash, byte[] contentCrc64, string encryptionKeySha256, string encryptionScope) { throw null; } + public static Azure.Storage.Blobs.Models.BlockList BlockList(System.Collections.Generic.IEnumerable committedBlocks = null, System.Collections.Generic.IEnumerable uncommittedBlocks = null) { throw null; } + public static Azure.Storage.Blobs.Models.GetBlobTagResult GetBlobTagResult(System.Collections.Generic.IDictionary tags) { throw null; } + public static Azure.Storage.Blobs.Models.ObjectReplicationPolicy ObjectReplicationPolicy(string policyId, System.Collections.Generic.IList rules) { throw null; } + public static Azure.Storage.Blobs.Models.ObjectReplicationRule ObjectReplicationRule(string ruleId, Azure.Storage.Blobs.Models.ObjectReplicationStatus replicationStatus) { throw null; } + public static Azure.Storage.Blobs.Models.PageBlobInfo PageBlobInfo(Azure.ETag eTag, System.DateTimeOffset lastModified, long blobSequenceNumber) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.Storage.Blobs.Models.PageInfo PageInfo(Azure.ETag eTag, System.DateTimeOffset lastModified, byte[] contentHash, byte[] contentCrc64, long blobSequenceNumber, string encryptionKeySha256) { throw null; } + public static Azure.Storage.Blobs.Models.PageInfo PageInfo(Azure.ETag eTag, System.DateTimeOffset lastModified, byte[] contentHash, byte[] contentCrc64, long blobSequenceNumber, string encryptionKeySha256, string encryptionScope) { throw null; } + public static Azure.Storage.Blobs.Models.PageRangesInfo PageRangesInfo(System.DateTimeOffset lastModified, Azure.ETag eTag, long blobContentLength, System.Collections.Generic.IEnumerable pageRanges, System.Collections.Generic.IEnumerable clearRanges) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.Storage.Blobs.Models.TaggedBlobItem TaggedBlobItem(string blobName = null, string blobContainerName = null) { throw null; } + public static Azure.Storage.Blobs.Models.TaggedBlobItem TaggedBlobItem(string blobName = null, string blobContainerName = null, System.Collections.Generic.IDictionary tags = null) { throw null; } + public static Azure.Storage.Blobs.Models.UserDelegationKey UserDelegationKey(string signedObjectId = null, string signedTenantId = null, System.DateTimeOffset signedStartsOn = default(System.DateTimeOffset), System.DateTimeOffset signedExpiresOn = default(System.DateTimeOffset), string signedService = null, string signedVersion = null, string value = null) { throw null; } + public static Azure.Storage.Blobs.Models.UserDelegationKey UserDelegationKey(string signedObjectId, string signedTenantId, string signedService, string signedVersion, string value, System.DateTimeOffset signedExpiresOn, System.DateTimeOffset signedStartsOn) { throw null; } + } + public partial class BlobSnapshotInfo + { + internal BlobSnapshotInfo() { } + public Azure.ETag ETag { get { throw null; } } + public bool IsServerEncrypted { get { throw null; } } + public System.DateTimeOffset LastModified { get { throw null; } } + public string Snapshot { get { throw null; } } + public string VersionId { get { throw null; } } + } + [System.FlagsAttribute] + public enum BlobStates + { + All = -1, + None = 0, + Snapshots = 1, + Uncommitted = 2, + Deleted = 4, + Version = 8, + DeletedWithVersions = 16, + } + public partial class BlobStaticWebsite + { + public BlobStaticWebsite() { } + public string DefaultIndexDocumentPath { get { throw null; } set { } } + public bool Enabled { get { throw null; } set { } } + public string ErrorDocument404Path { get { throw null; } set { } } + public string IndexDocument { get { throw null; } set { } } + } + public partial class BlobSyncUploadFromUriOptions + { + public BlobSyncUploadFromUriOptions() { } + public Azure.Storage.Blobs.Models.AccessTier? AccessTier { get { throw null; } set { } } + public byte[] ContentHash { get { throw null; } set { } } + public bool? CopySourceBlobProperties { get { throw null; } set { } } + public Azure.Storage.Blobs.Models.BlobCopySourceTagsMode? CopySourceTagsMode { get { throw null; } set { } } + public Azure.Storage.Blobs.Models.BlobRequestConditions DestinationConditions { get { throw null; } set { } } + public Azure.Storage.Blobs.Models.BlobHttpHeaders HttpHeaders { get { throw null; } set { } } + public Azure.HttpAuthorization SourceAuthentication { get { throw null; } set { } } + public Azure.Storage.Blobs.Models.BlobRequestConditions SourceConditions { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } set { } } + } + [System.FlagsAttribute] + public enum BlobTraits + { + All = -1, + None = 0, + CopyStatus = 1, + Metadata = 2, + Tags = 4, + ImmutabilityPolicy = 8, + LegalHold = 16, + } + public enum BlobType + { + Block = 0, + Page = 1, + Append = 2, + } + public partial class BlobUploadOptions + { + public BlobUploadOptions() { } + public Azure.Storage.Blobs.Models.AccessTier? AccessTier { get { throw null; } set { } } + public Azure.Storage.Blobs.Models.BlobRequestConditions Conditions { get { throw null; } set { } } + public Azure.Storage.Blobs.Models.BlobHttpHeaders HttpHeaders { get { throw null; } set { } } + public Azure.Storage.Blobs.Models.BlobImmutabilityPolicy ImmutabilityPolicy { get { throw null; } set { } } + public bool? LegalHold { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } set { } } + public System.IProgress ProgressHandler { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } set { } } + public Azure.Storage.StorageTransferOptions TransferOptions { get { throw null; } set { } } + public Azure.Storage.UploadTransferValidationOptions TransferValidation { get { throw null; } set { } } + } + public partial class BlockBlobOpenWriteOptions + { + public BlockBlobOpenWriteOptions() { } + public long? BufferSize { get { throw null; } set { } } + public Azure.Storage.Blobs.Models.BlobHttpHeaders HttpHeaders { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } set { } } + public Azure.Storage.Blobs.Models.BlobRequestConditions OpenConditions { get { throw null; } set { } } + public System.IProgress ProgressHandler { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } set { } } + public Azure.Storage.UploadTransferValidationOptions TransferValidation { get { throw null; } set { } } + } + public partial class BlockBlobStageBlockOptions + { + public BlockBlobStageBlockOptions() { } + public Azure.Storage.Blobs.Models.BlobRequestConditions Conditions { get { throw null; } set { } } + public System.IProgress ProgressHandler { get { throw null; } set { } } + public Azure.Storage.UploadTransferValidationOptions TransferValidation { get { throw null; } set { } } + } + public partial class BlockInfo + { + internal BlockInfo() { } + public byte[] ContentCrc64 { get { throw null; } } + public byte[] ContentHash { get { throw null; } } + public string EncryptionKeySha256 { get { throw null; } } + public string EncryptionScope { get { throw null; } } + } + public partial class BlockList + { + internal BlockList() { } + public long BlobContentLength { get { throw null; } } + public System.Collections.Generic.IEnumerable CommittedBlocks { get { throw null; } } + public string ContentType { get { throw null; } } + public Azure.ETag ETag { get { throw null; } } + public System.DateTimeOffset LastModified { get { throw null; } } + public System.Collections.Generic.IEnumerable UncommittedBlocks { get { throw null; } } + } + [System.FlagsAttribute] + public enum BlockListTypes + { + Committed = 1, + Uncommitted = 2, + All = 3, + } + public partial class CommitBlockListOptions + { + public CommitBlockListOptions() { } + public Azure.Storage.Blobs.Models.AccessTier? AccessTier { get { throw null; } set { } } + public Azure.Storage.Blobs.Models.BlobRequestConditions Conditions { get { throw null; } set { } } + public Azure.Storage.Blobs.Models.BlobHttpHeaders HttpHeaders { get { throw null; } set { } } + public Azure.Storage.Blobs.Models.BlobImmutabilityPolicy ImmutabilityPolicy { get { throw null; } set { } } + public bool? LegalHold { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } set { } } + } + public partial class CopyFromUriOperation : Azure.Operation + { + protected CopyFromUriOperation() { } + public CopyFromUriOperation(string id, Azure.Storage.Blobs.Specialized.BlobBaseClient client) { } + public override bool HasCompleted { get { throw null; } } + public override bool HasValue { get { throw null; } } + public override string Id { get { throw null; } } + public override long Value { get { throw null; } } + public override Azure.Response GetRawResponse() { throw null; } + public override Azure.Response UpdateStatus(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override System.Threading.Tasks.ValueTask UpdateStatusAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override System.Threading.Tasks.ValueTask> WaitForCompletionAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override System.Threading.Tasks.ValueTask> WaitForCompletionAsync(System.TimeSpan pollingInterval, System.Threading.CancellationToken cancellationToken) { throw null; } + } + public enum CopyStatus + { + Pending = 0, + Success = 1, + Aborted = 2, + Failed = 3, + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct CustomerProvidedKey : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public CustomerProvidedKey(byte[] key) { throw null; } + public CustomerProvidedKey(string key) { throw null; } + public Azure.Storage.Blobs.Models.EncryptionAlgorithmType EncryptionAlgorithm { get { throw null; } } + public string EncryptionKey { get { throw null; } } + public string EncryptionKeyHash { get { throw null; } } + public bool Equals(Azure.Storage.Blobs.Models.CustomerProvidedKey other) { throw null; } + public override bool Equals(object obj) { throw null; } + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Storage.Blobs.Models.CustomerProvidedKey left, Azure.Storage.Blobs.Models.CustomerProvidedKey right) { throw null; } + public static bool operator !=(Azure.Storage.Blobs.Models.CustomerProvidedKey left, Azure.Storage.Blobs.Models.CustomerProvidedKey right) { throw null; } + public override string ToString() { throw null; } + } + public enum DeleteSnapshotsOption + { + None = 0, + IncludeSnapshots = 1, + OnlySnapshots = 2, + } + public enum EncryptionAlgorithmType + { + Aes256 = 0, + } + public partial class GetBlobTagResult + { + public GetBlobTagResult() { } + public System.Collections.Generic.IDictionary Tags { get { throw null; } } + } + public partial class GetPageRangesDiffOptions + { + public GetPageRangesDiffOptions() { } + public Azure.Storage.Blobs.Models.PageBlobRequestConditions Conditions { get { throw null; } set { } } + public string PreviousSnapshot { get { throw null; } set { } } + public Azure.HttpRange? Range { get { throw null; } set { } } + public string Snapshot { get { throw null; } set { } } + } + public partial class GetPageRangesOptions + { + public GetPageRangesOptions() { } + public Azure.Storage.Blobs.Models.PageBlobRequestConditions Conditions { get { throw null; } set { } } + public Azure.HttpRange? Range { get { throw null; } set { } } + public string Snapshot { get { throw null; } set { } } + } + public enum LeaseDurationType + { + Infinite = 0, + Fixed = 1, + } + public enum LeaseState + { + Available = 0, + Leased = 1, + Expired = 2, + Breaking = 3, + Broken = 4, + } + public enum LeaseStatus + { + Locked = 0, + Unlocked = 1, + } + public partial class ObjectReplicationPolicy + { + internal ObjectReplicationPolicy() { } + public string PolicyId { get { throw null; } } + public System.Collections.Generic.IList Rules { get { throw null; } } + } + public partial class ObjectReplicationRule + { + internal ObjectReplicationRule() { } + public Azure.Storage.Blobs.Models.ObjectReplicationStatus ReplicationStatus { get { throw null; } } + public string RuleId { get { throw null; } } + } + [System.FlagsAttribute] + public enum ObjectReplicationStatus + { + Complete = 0, + Failed = 1, + } + public partial class PageBlobCreateOptions + { + public PageBlobCreateOptions() { } + public Azure.Storage.Blobs.Models.PageBlobRequestConditions Conditions { get { throw null; } set { } } + public Azure.Storage.Blobs.Models.BlobHttpHeaders HttpHeaders { get { throw null; } set { } } + public Azure.Storage.Blobs.Models.BlobImmutabilityPolicy ImmutabilityPolicy { get { throw null; } set { } } + public bool? LegalHold { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } set { } } + public long? SequenceNumber { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } set { } } + } + public partial class PageBlobInfo + { + internal PageBlobInfo() { } + public long BlobSequenceNumber { get { throw null; } } + public Azure.ETag ETag { get { throw null; } } + public System.DateTimeOffset LastModified { get { throw null; } } + } + public partial class PageBlobOpenWriteOptions + { + public PageBlobOpenWriteOptions() { } + public long? BufferSize { get { throw null; } set { } } + public Azure.Storage.Blobs.Models.PageBlobRequestConditions OpenConditions { get { throw null; } set { } } + public System.IProgress ProgressHandler { get { throw null; } set { } } + public long? Size { get { throw null; } set { } } + public Azure.Storage.UploadTransferValidationOptions TransferValidation { get { throw null; } set { } } + } + public partial class PageBlobRequestConditions : Azure.Storage.Blobs.Models.BlobRequestConditions + { + public PageBlobRequestConditions() { } + public long? IfSequenceNumberEqual { get { throw null; } set { } } + public long? IfSequenceNumberLessThan { get { throw null; } set { } } + public long? IfSequenceNumberLessThanOrEqual { get { throw null; } set { } } + } + public partial class PageBlobUploadPagesFromUriOptions + { + public PageBlobUploadPagesFromUriOptions() { } + public Azure.Storage.Blobs.Models.PageBlobRequestConditions DestinationConditions { get { throw null; } set { } } + public Azure.HttpAuthorization SourceAuthentication { get { throw null; } set { } } + public Azure.Storage.Blobs.Models.PageBlobRequestConditions SourceConditions { get { throw null; } set { } } + public byte[] SourceContentHash { get { throw null; } set { } } + } + public partial class PageBlobUploadPagesOptions + { + public PageBlobUploadPagesOptions() { } + public Azure.Storage.Blobs.Models.PageBlobRequestConditions Conditions { get { throw null; } set { } } + public System.IProgress ProgressHandler { get { throw null; } set { } } + public Azure.Storage.UploadTransferValidationOptions TransferValidation { get { throw null; } set { } } + } + public partial class PageInfo + { + internal PageInfo() { } + public long BlobSequenceNumber { get { throw null; } } + public byte[] ContentCrc64 { get { throw null; } } + public byte[] ContentHash { get { throw null; } } + public string EncryptionKeySha256 { get { throw null; } } + public string EncryptionScope { get { throw null; } } + public Azure.ETag ETag { get { throw null; } } + public System.DateTimeOffset LastModified { get { throw null; } } + } + public partial class PageRangeItem + { + public PageRangeItem() { } + public bool IsClear { get { throw null; } } + public Azure.HttpRange Range { get { throw null; } } + } + public partial class PageRangesInfo + { + internal PageRangesInfo() { } + public long BlobContentLength { get { throw null; } } + public System.Collections.Generic.IEnumerable ClearRanges { get { throw null; } } + public Azure.ETag ETag { get { throw null; } } + public System.DateTimeOffset LastModified { get { throw null; } } + public System.Collections.Generic.IEnumerable PageRanges { get { throw null; } } + } + public enum PathRenameMode + { + Legacy = 0, + Posix = 1, + } + public enum PublicAccessType + { + None = 0, + BlobContainer = 1, + Blob = 2, + } + public enum RehydratePriority + { + High = 0, + Standard = 1, + } + public partial class ReleasedObjectInfo + { + public ReleasedObjectInfo(Azure.ETag eTag, System.DateTimeOffset lastModified) { } + public Azure.ETag ETag { get { throw null; } } + public System.DateTimeOffset LastModified { get { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override string ToString() { throw null; } + } + public enum SequenceNumberAction + { + Max = 0, + Update = 1, + Increment = 2, + } + public enum SkuName + { + StandardLrs = 0, + StandardGrs = 1, + StandardRagrs = 2, + StandardZrs = 3, + PremiumLrs = 4, + } + public partial class StageBlockFromUriOptions + { + public StageBlockFromUriOptions() { } + public Azure.Storage.Blobs.Models.BlobRequestConditions DestinationConditions { get { throw null; } set { } } + public Azure.HttpAuthorization SourceAuthentication { get { throw null; } set { } } + public Azure.RequestConditions SourceConditions { get { throw null; } set { } } + public byte[] SourceContentHash { get { throw null; } set { } } + public Azure.HttpRange SourceRange { get { throw null; } set { } } + } + public partial class TaggedBlobItem + { + internal TaggedBlobItem() { } + public string BlobContainerName { get { throw null; } } + public string BlobName { get { throw null; } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } } + } + public partial class UserDelegationKey + { + internal UserDelegationKey() { } + public System.DateTimeOffset SignedExpiresOn { get { throw null; } } + public string SignedObjectId { get { throw null; } } + public string SignedService { get { throw null; } } + public System.DateTimeOffset SignedStartsOn { get { throw null; } } + public string SignedTenantId { get { throw null; } } + public string SignedVersion { get { throw null; } } + public string Value { get { throw null; } } + } +} +namespace Azure.Storage.Blobs.Specialized +{ + public partial class AppendBlobClient : Azure.Storage.Blobs.Specialized.BlobBaseClient + { + protected AppendBlobClient() { } + public AppendBlobClient(string connectionString, string blobContainerName, string blobName) { } + public AppendBlobClient(string connectionString, string blobContainerName, string blobName, Azure.Storage.Blobs.BlobClientOptions options) { } + public AppendBlobClient(System.Uri blobUri, Azure.AzureSasCredential credential, Azure.Storage.Blobs.BlobClientOptions options = null) { } + public AppendBlobClient(System.Uri blobUri, Azure.Core.TokenCredential credential, Azure.Storage.Blobs.BlobClientOptions options = null) { } + public AppendBlobClient(System.Uri blobUri, Azure.Storage.Blobs.BlobClientOptions options = null) { } + public AppendBlobClient(System.Uri blobUri, Azure.Storage.StorageSharedKeyCredential credential, Azure.Storage.Blobs.BlobClientOptions options = null) { } + public virtual int AppendBlobMaxAppendBlockBytes { get { throw null; } } + public virtual int AppendBlobMaxBlocks { get { throw null; } } + public virtual Azure.Response AppendBlock(System.IO.Stream content, Azure.Storage.Blobs.Models.AppendBlobAppendBlockOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response AppendBlock(System.IO.Stream content, byte[] transactionalContentHash, Azure.Storage.Blobs.Models.AppendBlobRequestConditions conditions, System.IProgress progressHandler, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task> AppendBlockAsync(System.IO.Stream content, Azure.Storage.Blobs.Models.AppendBlobAppendBlockOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> AppendBlockAsync(System.IO.Stream content, byte[] transactionalContentHash, Azure.Storage.Blobs.Models.AppendBlobRequestConditions conditions, System.IProgress progressHandler, System.Threading.CancellationToken cancellationToken) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response AppendBlockFromUri(System.Uri sourceUri, Azure.HttpRange sourceRange, byte[] sourceContentHash, Azure.Storage.Blobs.Models.AppendBlobRequestConditions conditions, Azure.Storage.Blobs.Models.AppendBlobRequestConditions sourceConditions, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.Response AppendBlockFromUri(System.Uri sourceUri, Azure.Storage.Blobs.Models.AppendBlobAppendBlockFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> AppendBlockFromUriAsync(System.Uri sourceUri, Azure.HttpRange sourceRange, byte[] sourceContentHash, Azure.Storage.Blobs.Models.AppendBlobRequestConditions conditions, Azure.Storage.Blobs.Models.AppendBlobRequestConditions sourceConditions, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task> AppendBlockFromUriAsync(System.Uri sourceUri, Azure.Storage.Blobs.Models.AppendBlobAppendBlockFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Create(Azure.Storage.Blobs.Models.AppendBlobCreateOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response Create(Azure.Storage.Blobs.Models.BlobHttpHeaders httpHeaders = null, System.Collections.Generic.IDictionary metadata = null, Azure.Storage.Blobs.Models.AppendBlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateAsync(Azure.Storage.Blobs.Models.AppendBlobCreateOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> CreateAsync(Azure.Storage.Blobs.Models.BlobHttpHeaders httpHeaders = null, System.Collections.Generic.IDictionary metadata = null, Azure.Storage.Blobs.Models.AppendBlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response CreateIfNotExists(Azure.Storage.Blobs.Models.AppendBlobCreateOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response CreateIfNotExists(Azure.Storage.Blobs.Models.BlobHttpHeaders httpHeaders = null, System.Collections.Generic.IDictionary metadata = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateIfNotExistsAsync(Azure.Storage.Blobs.Models.AppendBlobCreateOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> CreateIfNotExistsAsync(Azure.Storage.Blobs.Models.BlobHttpHeaders httpHeaders = null, System.Collections.Generic.IDictionary metadata = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.IO.Stream OpenWrite(bool overwrite, Azure.Storage.Blobs.Models.AppendBlobOpenWriteOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task OpenWriteAsync(bool overwrite, Azure.Storage.Blobs.Models.AppendBlobOpenWriteOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Seal(Azure.Storage.Blobs.Models.AppendBlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SealAsync(Azure.Storage.Blobs.Models.AppendBlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public new Azure.Storage.Blobs.Specialized.AppendBlobClient WithCustomerProvidedKey(Azure.Storage.Blobs.Models.CustomerProvidedKey? customerProvidedKey) { throw null; } + public new Azure.Storage.Blobs.Specialized.AppendBlobClient WithEncryptionScope(string encryptionScope) { throw null; } + public new Azure.Storage.Blobs.Specialized.AppendBlobClient WithSnapshot(string snapshot) { throw null; } + public new Azure.Storage.Blobs.Specialized.AppendBlobClient WithVersion(string versionId) { throw null; } + } + public partial class BlobBaseClient + { + protected BlobBaseClient() { } + public BlobBaseClient(string connectionString, string blobContainerName, string blobName) { } + public BlobBaseClient(string connectionString, string blobContainerName, string blobName, Azure.Storage.Blobs.BlobClientOptions options) { } + public BlobBaseClient(System.Uri blobUri, Azure.AzureSasCredential credential, Azure.Storage.Blobs.BlobClientOptions options = null) { } + public BlobBaseClient(System.Uri blobUri, Azure.Core.TokenCredential credential, Azure.Storage.Blobs.BlobClientOptions options = null) { } + public BlobBaseClient(System.Uri blobUri, Azure.Storage.Blobs.BlobClientOptions options = null) { } + public BlobBaseClient(System.Uri blobUri, Azure.Storage.StorageSharedKeyCredential credential, Azure.Storage.Blobs.BlobClientOptions options = null) { } + public virtual string AccountName { get { throw null; } } + public virtual string BlobContainerName { get { throw null; } } + public virtual bool CanGenerateSasUri { get { throw null; } } + public virtual string Name { get { throw null; } } + public virtual System.Uri Uri { get { throw null; } } + public virtual Azure.Response AbortCopyFromUri(string copyId, Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task AbortCopyFromUriAsync(string copyId, Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response CreateSnapshot(System.Collections.Generic.IDictionary metadata = null, Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateSnapshotAsync(System.Collections.Generic.IDictionary metadata = null, Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Delete(Azure.Storage.Blobs.Models.DeleteSnapshotsOption snapshotsOption = Azure.Storage.Blobs.Models.DeleteSnapshotsOption.None, Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.Storage.Blobs.Models.DeleteSnapshotsOption snapshotsOption = Azure.Storage.Blobs.Models.DeleteSnapshotsOption.None, Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response DeleteIfExists(Azure.Storage.Blobs.Models.DeleteSnapshotsOption snapshotsOption = Azure.Storage.Blobs.Models.DeleteSnapshotsOption.None, Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> DeleteIfExistsAsync(Azure.Storage.Blobs.Models.DeleteSnapshotsOption snapshotsOption = Azure.Storage.Blobs.Models.DeleteSnapshotsOption.None, Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response DeleteImmutabilityPolicy(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteImmutabilityPolicyAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response Download() { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response Download(Azure.HttpRange range = default(Azure.HttpRange), Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, bool rangeGetContentHash = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response Download(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> DownloadAsync() { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> DownloadAsync(Azure.HttpRange range = default(Azure.HttpRange), Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, bool rangeGetContentHash = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> DownloadAsync(System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.Response DownloadContent() { throw null; } + public virtual Azure.Response DownloadContent(Azure.Storage.Blobs.Models.BlobDownloadOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response DownloadContent(Azure.Storage.Blobs.Models.BlobRequestConditions conditions, System.IProgress progressHandler, Azure.HttpRange range, System.Threading.CancellationToken cancellationToken) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response DownloadContent(Azure.Storage.Blobs.Models.BlobRequestConditions conditions, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.Response DownloadContent(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> DownloadContentAsync() { throw null; } + public virtual System.Threading.Tasks.Task> DownloadContentAsync(Azure.Storage.Blobs.Models.BlobDownloadOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> DownloadContentAsync(Azure.Storage.Blobs.Models.BlobRequestConditions conditions, System.IProgress progressHandler, Azure.HttpRange range, System.Threading.CancellationToken cancellationToken) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> DownloadContentAsync(Azure.Storage.Blobs.Models.BlobRequestConditions conditions, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task> DownloadContentAsync(System.Threading.CancellationToken cancellationToken) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response DownloadStreaming(Azure.HttpRange range, Azure.Storage.Blobs.Models.BlobRequestConditions conditions, bool rangeGetContentHash, System.IProgress progressHandler, System.Threading.CancellationToken cancellationToken) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response DownloadStreaming(Azure.HttpRange range, Azure.Storage.Blobs.Models.BlobRequestConditions conditions, bool rangeGetContentHash, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.Response DownloadStreaming(Azure.Storage.Blobs.Models.BlobDownloadOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> DownloadStreamingAsync(Azure.HttpRange range, Azure.Storage.Blobs.Models.BlobRequestConditions conditions, bool rangeGetContentHash, System.IProgress progressHandler, System.Threading.CancellationToken cancellationToken) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> DownloadStreamingAsync(Azure.HttpRange range, Azure.Storage.Blobs.Models.BlobRequestConditions conditions, bool rangeGetContentHash, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task> DownloadStreamingAsync(Azure.Storage.Blobs.Models.BlobDownloadOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response DownloadTo(System.IO.Stream destination) { throw null; } + public virtual Azure.Response DownloadTo(System.IO.Stream destination, Azure.Storage.Blobs.Models.BlobDownloadToOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response DownloadTo(System.IO.Stream destination, Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, Azure.Storage.StorageTransferOptions transferOptions = default(Azure.Storage.StorageTransferOptions), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response DownloadTo(System.IO.Stream destination, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.Response DownloadTo(string path) { throw null; } + public virtual Azure.Response DownloadTo(string path, Azure.Storage.Blobs.Models.BlobDownloadToOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response DownloadTo(string path, Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, Azure.Storage.StorageTransferOptions transferOptions = default(Azure.Storage.StorageTransferOptions), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response DownloadTo(string path, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task DownloadToAsync(System.IO.Stream destination) { throw null; } + public virtual System.Threading.Tasks.Task DownloadToAsync(System.IO.Stream destination, Azure.Storage.Blobs.Models.BlobDownloadToOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task DownloadToAsync(System.IO.Stream destination, Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, Azure.Storage.StorageTransferOptions transferOptions = default(Azure.Storage.StorageTransferOptions), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DownloadToAsync(System.IO.Stream destination, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task DownloadToAsync(string path) { throw null; } + public virtual System.Threading.Tasks.Task DownloadToAsync(string path, Azure.Storage.Blobs.Models.BlobDownloadToOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task DownloadToAsync(string path, Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, Azure.Storage.StorageTransferOptions transferOptions = default(Azure.Storage.StorageTransferOptions), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DownloadToAsync(string path, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.Response Exists(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Uri GenerateSasUri(Azure.Storage.Sas.BlobSasBuilder builder) { throw null; } + public virtual System.Uri GenerateSasUri(Azure.Storage.Sas.BlobSasPermissions permissions, System.DateTimeOffset expiresOn) { throw null; } + protected internal virtual Azure.Storage.Blobs.Specialized.BlobLeaseClient GetBlobLeaseClientCore(string leaseId) { throw null; } + protected internal virtual Azure.Storage.Blobs.BlobContainerClient GetParentBlobContainerClientCore() { throw null; } + public virtual Azure.Response GetProperties(Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetPropertiesAsync(Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetTags(Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetTagsAsync(Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.IO.Stream OpenRead(Azure.Storage.Blobs.Models.BlobOpenReadOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.IO.Stream OpenRead(bool allowBlobModifications, long position = (long)0, int? bufferSize = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.IO.Stream OpenRead(long position = (long)0, int? bufferSize = default(int?), Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task OpenReadAsync(Azure.Storage.Blobs.Models.BlobOpenReadOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task OpenReadAsync(bool allowBlobModifications, long position = (long)0, int? bufferSize = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task OpenReadAsync(long position = (long)0, int? bufferSize = default(int?), Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetAccessTier(Azure.Storage.Blobs.Models.AccessTier accessTier, Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, Azure.Storage.Blobs.Models.RehydratePriority? rehydratePriority = default(Azure.Storage.Blobs.Models.RehydratePriority?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task SetAccessTierAsync(Azure.Storage.Blobs.Models.AccessTier accessTier, Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, Azure.Storage.Blobs.Models.RehydratePriority? rehydratePriority = default(Azure.Storage.Blobs.Models.RehydratePriority?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetHttpHeaders(Azure.Storage.Blobs.Models.BlobHttpHeaders httpHeaders = null, Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetHttpHeadersAsync(Azure.Storage.Blobs.Models.BlobHttpHeaders httpHeaders = null, Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetImmutabilityPolicy(Azure.Storage.Blobs.Models.BlobImmutabilityPolicy immutabilityPolicy, Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetImmutabilityPolicyAsync(Azure.Storage.Blobs.Models.BlobImmutabilityPolicy immutabilityPolicy, Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetLegalHold(bool hasLegalHold, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetLegalHoldAsync(bool hasLegalHold, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetMetadata(System.Collections.Generic.IDictionary metadata, Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetMetadataAsync(System.Collections.Generic.IDictionary metadata, Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task SetTagsAsync(System.Collections.Generic.IDictionary tags, Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Storage.Blobs.Models.CopyFromUriOperation StartCopyFromUri(System.Uri source, Azure.Storage.Blobs.Models.BlobCopyFromUriOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Storage.Blobs.Models.CopyFromUriOperation StartCopyFromUri(System.Uri source, System.Collections.Generic.IDictionary metadata = null, Azure.Storage.Blobs.Models.AccessTier? accessTier = default(Azure.Storage.Blobs.Models.AccessTier?), Azure.Storage.Blobs.Models.BlobRequestConditions sourceConditions = null, Azure.Storage.Blobs.Models.BlobRequestConditions destinationConditions = null, Azure.Storage.Blobs.Models.RehydratePriority? rehydratePriority = default(Azure.Storage.Blobs.Models.RehydratePriority?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task StartCopyFromUriAsync(System.Uri source, Azure.Storage.Blobs.Models.BlobCopyFromUriOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task StartCopyFromUriAsync(System.Uri source, System.Collections.Generic.IDictionary metadata = null, Azure.Storage.Blobs.Models.AccessTier? accessTier = default(Azure.Storage.Blobs.Models.AccessTier?), Azure.Storage.Blobs.Models.BlobRequestConditions sourceConditions = null, Azure.Storage.Blobs.Models.BlobRequestConditions destinationConditions = null, Azure.Storage.Blobs.Models.RehydratePriority? rehydratePriority = default(Azure.Storage.Blobs.Models.RehydratePriority?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SyncCopyFromUri(System.Uri source, Azure.Storage.Blobs.Models.BlobCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SyncCopyFromUriAsync(System.Uri source, Azure.Storage.Blobs.Models.BlobCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Undelete(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task UndeleteAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Storage.Blobs.Specialized.BlobBaseClient WithCustomerProvidedKey(Azure.Storage.Blobs.Models.CustomerProvidedKey? customerProvidedKey) { throw null; } + public virtual Azure.Storage.Blobs.Specialized.BlobBaseClient WithEncryptionScope(string encryptionScope) { throw null; } + public virtual Azure.Storage.Blobs.Specialized.BlobBaseClient WithSnapshot(string snapshot) { throw null; } + protected virtual Azure.Storage.Blobs.Specialized.BlobBaseClient WithSnapshotCore(string snapshot) { throw null; } + public virtual Azure.Storage.Blobs.Specialized.BlobBaseClient WithVersion(string versionId) { throw null; } + } + public partial class BlobLeaseClient + { + public static readonly System.TimeSpan InfiniteLeaseDuration; + protected BlobLeaseClient() { } + public BlobLeaseClient(Azure.Storage.Blobs.BlobContainerClient client, string leaseId = null) { } + public BlobLeaseClient(Azure.Storage.Blobs.Specialized.BlobBaseClient client, string leaseId = null) { } + protected virtual Azure.Storage.Blobs.Specialized.BlobBaseClient BlobClient { get { throw null; } } + protected virtual Azure.Storage.Blobs.BlobContainerClient BlobContainerClient { get { throw null; } } + public virtual string LeaseId { get { throw null; } } + public System.Uri Uri { get { throw null; } } + public virtual Azure.Response Acquire(System.TimeSpan duration, Azure.RequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> AcquireAsync(System.TimeSpan duration, Azure.RequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Break(System.TimeSpan? breakPeriod = default(System.TimeSpan?), Azure.RequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> BreakAsync(System.TimeSpan? breakPeriod = default(System.TimeSpan?), Azure.RequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Change(string proposedId, Azure.RequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ChangeAsync(string proposedId, Azure.RequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Release(Azure.RequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ReleaseAsync(Azure.RequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> ReleaseInternal(Azure.RequestConditions conditions, bool async, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.Response Renew(Azure.RequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RenewAsync(Azure.RequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class BlockBlobClient : Azure.Storage.Blobs.Specialized.BlobBaseClient + { + protected BlockBlobClient() { } + public BlockBlobClient(string connectionString, string containerName, string blobName) { } + public BlockBlobClient(string connectionString, string blobContainerName, string blobName, Azure.Storage.Blobs.BlobClientOptions options) { } + public BlockBlobClient(System.Uri blobUri, Azure.AzureSasCredential credential, Azure.Storage.Blobs.BlobClientOptions options = null) { } + public BlockBlobClient(System.Uri blobUri, Azure.Core.TokenCredential credential, Azure.Storage.Blobs.BlobClientOptions options = null) { } + public BlockBlobClient(System.Uri blobUri, Azure.Storage.Blobs.BlobClientOptions options = null) { } + public BlockBlobClient(System.Uri blobUri, Azure.Storage.StorageSharedKeyCredential credential, Azure.Storage.Blobs.BlobClientOptions options = null) { } + public virtual int BlockBlobMaxBlocks { get { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual int BlockBlobMaxStageBlockBytes { get { throw null; } } + public virtual long BlockBlobMaxStageBlockLongBytes { get { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual int BlockBlobMaxUploadBlobBytes { get { throw null; } } + public virtual long BlockBlobMaxUploadBlobLongBytes { get { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response CommitBlockList(System.Collections.Generic.IEnumerable base64BlockIds, Azure.Storage.Blobs.Models.BlobHttpHeaders httpHeaders = null, System.Collections.Generic.IDictionary metadata = null, Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, Azure.Storage.Blobs.Models.AccessTier? accessTier = default(Azure.Storage.Blobs.Models.AccessTier?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response CommitBlockList(System.Collections.Generic.IEnumerable base64BlockIds, Azure.Storage.Blobs.Models.CommitBlockListOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> CommitBlockListAsync(System.Collections.Generic.IEnumerable base64BlockIds, Azure.Storage.Blobs.Models.BlobHttpHeaders httpHeaders = null, System.Collections.Generic.IDictionary metadata = null, Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, Azure.Storage.Blobs.Models.AccessTier? accessTier = default(Azure.Storage.Blobs.Models.AccessTier?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CommitBlockListAsync(System.Collections.Generic.IEnumerable base64BlockIds, Azure.Storage.Blobs.Models.CommitBlockListOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected static Azure.Storage.Blobs.Specialized.BlockBlobClient CreateClient(System.Uri blobUri, Azure.Storage.Blobs.BlobClientOptions options, Azure.Core.Pipeline.HttpPipeline pipeline) { throw null; } + public virtual Azure.Response GetBlockList(Azure.Storage.Blobs.Models.BlockListTypes blockListTypes = Azure.Storage.Blobs.Models.BlockListTypes.All, string snapshot = null, Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetBlockListAsync(Azure.Storage.Blobs.Models.BlockListTypes blockListTypes = Azure.Storage.Blobs.Models.BlockListTypes.All, string snapshot = null, Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.IO.Stream OpenWrite(bool overwrite, Azure.Storage.Blobs.Models.BlockBlobOpenWriteOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task OpenWriteAsync(bool overwrite, Azure.Storage.Blobs.Models.BlockBlobOpenWriteOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Query(string querySqlExpression, Azure.Storage.Blobs.Models.BlobQueryOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> QueryAsync(string querySqlExpression, Azure.Storage.Blobs.Models.BlobQueryOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response StageBlock(string base64BlockId, System.IO.Stream content, Azure.Storage.Blobs.Models.BlockBlobStageBlockOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response StageBlock(string base64BlockId, System.IO.Stream content, byte[] transactionalContentHash, Azure.Storage.Blobs.Models.BlobRequestConditions conditions, System.IProgress progressHandler, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task> StageBlockAsync(string base64BlockId, System.IO.Stream content, Azure.Storage.Blobs.Models.BlockBlobStageBlockOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> StageBlockAsync(string base64BlockId, System.IO.Stream content, byte[] transactionalContentHash, Azure.Storage.Blobs.Models.BlobRequestConditions conditions, System.IProgress progressHandler, System.Threading.CancellationToken cancellationToken) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response StageBlockFromUri(System.Uri sourceUri, string base64BlockId, Azure.HttpRange sourceRange, byte[] sourceContentHash, Azure.RequestConditions sourceConditions, Azure.Storage.Blobs.Models.BlobRequestConditions conditions, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.Response StageBlockFromUri(System.Uri sourceUri, string base64BlockId, Azure.Storage.Blobs.Models.StageBlockFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> StageBlockFromUriAsync(System.Uri sourceUri, string base64BlockId, Azure.HttpRange sourceRange, byte[] sourceContentHash, Azure.RequestConditions sourceConditions, Azure.Storage.Blobs.Models.BlobRequestConditions conditions, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task> StageBlockFromUriAsync(System.Uri sourceUri, string base64BlockId, Azure.Storage.Blobs.Models.StageBlockFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SyncUploadFromUri(System.Uri copySource, Azure.Storage.Blobs.Models.BlobSyncUploadFromUriOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SyncUploadFromUri(System.Uri copySource, bool overwrite = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SyncUploadFromUriAsync(System.Uri copySource, Azure.Storage.Blobs.Models.BlobSyncUploadFromUriOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SyncUploadFromUriAsync(System.Uri copySource, bool overwrite = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response Upload(System.IO.Stream content, Azure.Storage.Blobs.Models.BlobHttpHeaders httpHeaders = null, System.Collections.Generic.IDictionary metadata = null, Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, Azure.Storage.Blobs.Models.AccessTier? accessTier = default(Azure.Storage.Blobs.Models.AccessTier?), System.IProgress progressHandler = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Upload(System.IO.Stream content, Azure.Storage.Blobs.Models.BlobUploadOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> UploadAsync(System.IO.Stream content, Azure.Storage.Blobs.Models.BlobHttpHeaders httpHeaders = null, System.Collections.Generic.IDictionary metadata = null, Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, Azure.Storage.Blobs.Models.AccessTier? accessTier = default(Azure.Storage.Blobs.Models.AccessTier?), System.IProgress progressHandler = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UploadAsync(System.IO.Stream content, Azure.Storage.Blobs.Models.BlobUploadOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public new Azure.Storage.Blobs.Specialized.BlockBlobClient WithCustomerProvidedKey(Azure.Storage.Blobs.Models.CustomerProvidedKey? customerProvidedKey) { throw null; } + public new Azure.Storage.Blobs.Specialized.BlockBlobClient WithEncryptionScope(string encryptionScope) { throw null; } + public new Azure.Storage.Blobs.Specialized.BlockBlobClient WithSnapshot(string snapshot) { throw null; } + protected sealed override Azure.Storage.Blobs.Specialized.BlobBaseClient WithSnapshotCore(string snapshot) { throw null; } + public new Azure.Storage.Blobs.Specialized.BlockBlobClient WithVersion(string versionId) { throw null; } + } + public partial class PageBlobClient : Azure.Storage.Blobs.Specialized.BlobBaseClient + { + protected PageBlobClient() { } + public PageBlobClient(string connectionString, string blobContainerName, string blobName) { } + public PageBlobClient(string connectionString, string blobContainerName, string blobName, Azure.Storage.Blobs.BlobClientOptions options) { } + public PageBlobClient(System.Uri blobUri, Azure.AzureSasCredential credential, Azure.Storage.Blobs.BlobClientOptions options = null) { } + public PageBlobClient(System.Uri blobUri, Azure.Core.TokenCredential credential, Azure.Storage.Blobs.BlobClientOptions options = null) { } + public PageBlobClient(System.Uri blobUri, Azure.Storage.Blobs.BlobClientOptions options = null) { } + public PageBlobClient(System.Uri blobUri, Azure.Storage.StorageSharedKeyCredential credential, Azure.Storage.Blobs.BlobClientOptions options = null) { } + public virtual int PageBlobMaxUploadPagesBytes { get { throw null; } } + public virtual int PageBlobPageBytes { get { throw null; } } + public virtual Azure.Response ClearPages(Azure.HttpRange range, Azure.Storage.Blobs.Models.PageBlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ClearPagesAsync(Azure.HttpRange range, Azure.Storage.Blobs.Models.PageBlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Create(long size, Azure.Storage.Blobs.Models.PageBlobCreateOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response Create(long size, long? sequenceNumber = default(long?), Azure.Storage.Blobs.Models.BlobHttpHeaders httpHeaders = null, System.Collections.Generic.IDictionary metadata = null, Azure.Storage.Blobs.Models.PageBlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateAsync(long size, Azure.Storage.Blobs.Models.PageBlobCreateOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> CreateAsync(long size, long? sequenceNumber = default(long?), Azure.Storage.Blobs.Models.BlobHttpHeaders httpHeaders = null, System.Collections.Generic.IDictionary metadata = null, Azure.Storage.Blobs.Models.PageBlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response CreateIfNotExists(long size, Azure.Storage.Blobs.Models.PageBlobCreateOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response CreateIfNotExists(long size, long? sequenceNumber = default(long?), Azure.Storage.Blobs.Models.BlobHttpHeaders httpHeaders = null, System.Collections.Generic.IDictionary metadata = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateIfNotExistsAsync(long size, Azure.Storage.Blobs.Models.PageBlobCreateOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> CreateIfNotExistsAsync(long size, long? sequenceNumber = default(long?), Azure.Storage.Blobs.Models.BlobHttpHeaders httpHeaders = null, System.Collections.Generic.IDictionary metadata = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAllPageRanges(Azure.Storage.Blobs.Models.GetPageRangesOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllPageRangesAsync(Azure.Storage.Blobs.Models.GetPageRangesOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAllPageRangesDiff(Azure.Storage.Blobs.Models.GetPageRangesDiffOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllPageRangesDiffAsync(Azure.Storage.Blobs.Models.GetPageRangesDiffOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetManagedDiskPageRangesDiff(Azure.HttpRange? range = default(Azure.HttpRange?), string snapshot = null, System.Uri previousSnapshotUri = null, Azure.Storage.Blobs.Models.PageBlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetManagedDiskPageRangesDiffAsync(Azure.HttpRange? range = default(Azure.HttpRange?), string snapshot = null, System.Uri previousSnapshotUri = null, Azure.Storage.Blobs.Models.PageBlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response GetPageRanges(Azure.HttpRange? range = default(Azure.HttpRange?), string snapshot = null, Azure.Storage.Blobs.Models.PageBlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> GetPageRangesAsync(Azure.HttpRange? range = default(Azure.HttpRange?), string snapshot = null, Azure.Storage.Blobs.Models.PageBlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response GetPageRangesDiff(Azure.HttpRange? range = default(Azure.HttpRange?), string snapshot = null, string previousSnapshot = null, Azure.Storage.Blobs.Models.PageBlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> GetPageRangesDiffAsync(Azure.HttpRange? range = default(Azure.HttpRange?), string snapshot = null, string previousSnapshot = null, Azure.Storage.Blobs.Models.PageBlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.IO.Stream OpenWrite(bool overwrite, long position, Azure.Storage.Blobs.Models.PageBlobOpenWriteOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task OpenWriteAsync(bool overwrite, long position, Azure.Storage.Blobs.Models.PageBlobOpenWriteOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Resize(long size, Azure.Storage.Blobs.Models.PageBlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ResizeAsync(long size, Azure.Storage.Blobs.Models.PageBlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Storage.Blobs.Models.CopyFromUriOperation StartCopyIncremental(System.Uri sourceUri, string snapshot, Azure.Storage.Blobs.Models.PageBlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task StartCopyIncrementalAsync(System.Uri sourceUri, string snapshot, Azure.Storage.Blobs.Models.PageBlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response UpdateSequenceNumber(Azure.Storage.Blobs.Models.SequenceNumberAction action, long? sequenceNumber = default(long?), Azure.Storage.Blobs.Models.PageBlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateSequenceNumberAsync(Azure.Storage.Blobs.Models.SequenceNumberAction action, long? sequenceNumber = default(long?), Azure.Storage.Blobs.Models.PageBlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response UploadPages(System.IO.Stream content, long offset, Azure.Storage.Blobs.Models.PageBlobUploadPagesOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response UploadPages(System.IO.Stream content, long offset, byte[] transactionalContentHash, Azure.Storage.Blobs.Models.PageBlobRequestConditions conditions, System.IProgress progressHandler, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task> UploadPagesAsync(System.IO.Stream content, long offset, Azure.Storage.Blobs.Models.PageBlobUploadPagesOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> UploadPagesAsync(System.IO.Stream content, long offset, byte[] transactionalContentHash, Azure.Storage.Blobs.Models.PageBlobRequestConditions conditions, System.IProgress progressHandler, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.Response UploadPagesFromUri(System.Uri sourceUri, Azure.HttpRange sourceRange, Azure.HttpRange range, Azure.Storage.Blobs.Models.PageBlobUploadPagesFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response UploadPagesFromUri(System.Uri sourceUri, Azure.HttpRange sourceRange, Azure.HttpRange range, byte[] sourceContentHash, Azure.Storage.Blobs.Models.PageBlobRequestConditions conditions, Azure.Storage.Blobs.Models.PageBlobRequestConditions sourceConditions, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task> UploadPagesFromUriAsync(System.Uri sourceUri, Azure.HttpRange sourceRange, Azure.HttpRange range, Azure.Storage.Blobs.Models.PageBlobUploadPagesFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> UploadPagesFromUriAsync(System.Uri sourceUri, Azure.HttpRange sourceRange, Azure.HttpRange range, byte[] sourceContentHash, Azure.Storage.Blobs.Models.PageBlobRequestConditions conditions, Azure.Storage.Blobs.Models.PageBlobRequestConditions sourceConditions, System.Threading.CancellationToken cancellationToken) { throw null; } + public new Azure.Storage.Blobs.Specialized.PageBlobClient WithCustomerProvidedKey(Azure.Storage.Blobs.Models.CustomerProvidedKey? customerProvidedKey) { throw null; } + public new Azure.Storage.Blobs.Specialized.PageBlobClient WithEncryptionScope(string encryptionScope) { throw null; } + public new Azure.Storage.Blobs.Specialized.PageBlobClient WithSnapshot(string snapshot) { throw null; } + protected sealed override Azure.Storage.Blobs.Specialized.BlobBaseClient WithSnapshotCore(string snapshot) { throw null; } + public new Azure.Storage.Blobs.Specialized.PageBlobClient WithVersion(string versionId) { throw null; } + } + public partial class SpecializedBlobClientOptions : Azure.Storage.Blobs.BlobClientOptions + { + public SpecializedBlobClientOptions(Azure.Storage.Blobs.BlobClientOptions.ServiceVersion version = Azure.Storage.Blobs.BlobClientOptions.ServiceVersion.V2021_12_02) : base (default(Azure.Storage.Blobs.BlobClientOptions.ServiceVersion)) { } + public Azure.Storage.ClientSideEncryptionOptions ClientSideEncryption { get { throw null; } set { } } + } + public static partial class SpecializedBlobExtensions + { + public static Azure.Storage.Blobs.Specialized.AppendBlobClient GetAppendBlobClient(this Azure.Storage.Blobs.BlobContainerClient client, string blobName) { throw null; } + public static Azure.Storage.Blobs.Specialized.BlobBaseClient GetBlobBaseClient(this Azure.Storage.Blobs.BlobContainerClient client, string blobName) { throw null; } + public static Azure.Storage.Blobs.Specialized.BlobLeaseClient GetBlobLeaseClient(this Azure.Storage.Blobs.BlobContainerClient client, string leaseId = null) { throw null; } + public static Azure.Storage.Blobs.Specialized.BlobLeaseClient GetBlobLeaseClient(this Azure.Storage.Blobs.Specialized.BlobBaseClient client, string leaseId = null) { throw null; } + public static Azure.Storage.Blobs.Specialized.BlockBlobClient GetBlockBlobClient(this Azure.Storage.Blobs.BlobContainerClient client, string blobName) { throw null; } + public static Azure.Storage.Blobs.Specialized.PageBlobClient GetPageBlobClient(this Azure.Storage.Blobs.BlobContainerClient client, string blobName) { throw null; } + public static Azure.Storage.Blobs.BlobContainerClient GetParentBlobContainerClient(this Azure.Storage.Blobs.Specialized.BlobBaseClient client) { throw null; } + public static Azure.Storage.Blobs.BlobServiceClient GetParentBlobServiceClient(this Azure.Storage.Blobs.BlobContainerClient client) { throw null; } + public static void UpdateClientSideKeyEncryptionKey(this Azure.Storage.Blobs.BlobClient client, Azure.Storage.ClientSideEncryptionOptions encryptionOptionsOverride = null, Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { } + public static System.Threading.Tasks.Task UpdateClientSideKeyEncryptionKeyAsync(this Azure.Storage.Blobs.BlobClient client, Azure.Storage.ClientSideEncryptionOptions encryptionOptionsOverride = null, Azure.Storage.Blobs.Models.BlobRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Storage.Blobs.BlobClient WithClientSideEncryptionOptions(this Azure.Storage.Blobs.BlobClient client, Azure.Storage.ClientSideEncryptionOptions clientSideEncryptionOptions) { throw null; } + } +} +namespace Azure.Storage.Sas +{ + [System.FlagsAttribute] + public enum BlobAccountSasPermissions + { + All = -1, + Read = 1, + Add = 2, + Create = 4, + Write = 8, + Delete = 16, + List = 32, + } + [System.FlagsAttribute] + public enum BlobContainerSasPermissions + { + All = -1, + Read = 1, + Add = 2, + Create = 4, + Write = 8, + Delete = 16, + List = 32, + Tag = 64, + DeleteBlobVersion = 128, + Move = 256, + Execute = 512, + SetImmutabilityPolicy = 1024, + Filter = 2048, + } + public partial class BlobSasBuilder + { + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public BlobSasBuilder() { } + public BlobSasBuilder(Azure.Storage.Sas.BlobContainerSasPermissions permissions, System.DateTimeOffset expiresOn) { } + public BlobSasBuilder(Azure.Storage.Sas.BlobSasPermissions permissions, System.DateTimeOffset expiresOn) { } + public string BlobContainerName { get { throw null; } set { } } + public string BlobName { get { throw null; } set { } } + public string BlobVersionId { get { throw null; } set { } } + public string CacheControl { get { throw null; } set { } } + public string ContentDisposition { get { throw null; } set { } } + public string ContentEncoding { get { throw null; } set { } } + public string ContentLanguage { get { throw null; } set { } } + public string ContentType { get { throw null; } set { } } + public string CorrelationId { get { throw null; } set { } } + public string EncryptionScope { get { throw null; } set { } } + public System.DateTimeOffset ExpiresOn { get { throw null; } set { } } + public string Identifier { get { throw null; } set { } } + public Azure.Storage.Sas.SasIPRange IPRange { get { throw null; } set { } } + public string Permissions { get { throw null; } } + public string PreauthorizedAgentObjectId { get { throw null; } set { } } + public Azure.Storage.Sas.SasProtocol Protocol { get { throw null; } set { } } + public string Resource { get { throw null; } set { } } + public string Snapshot { get { throw null; } set { } } + public System.DateTimeOffset StartsOn { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public string Version { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public void SetPermissions(Azure.Storage.Sas.BlobAccountSasPermissions permissions) { } + public void SetPermissions(Azure.Storage.Sas.BlobContainerSasPermissions permissions) { } + public void SetPermissions(Azure.Storage.Sas.BlobSasPermissions permissions) { } + public void SetPermissions(Azure.Storage.Sas.BlobVersionSasPermissions permissions) { } + public void SetPermissions(Azure.Storage.Sas.SnapshotSasPermissions permissions) { } + public void SetPermissions(string rawPermissions) { } + public void SetPermissions(string rawPermissions, bool normalize = false) { } + public Azure.Storage.Sas.BlobSasQueryParameters ToSasQueryParameters(Azure.Storage.Blobs.Models.UserDelegationKey userDelegationKey, string accountName) { throw null; } + public Azure.Storage.Sas.BlobSasQueryParameters ToSasQueryParameters(Azure.Storage.StorageSharedKeyCredential sharedKeyCredential) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override string ToString() { throw null; } + } + [System.FlagsAttribute] + public enum BlobSasPermissions + { + All = -1, + Read = 1, + Add = 2, + Create = 4, + Write = 8, + Delete = 16, + Tag = 32, + DeleteBlobVersion = 64, + List = 128, + Move = 256, + Execute = 512, + SetImmutabilityPolicy = 1024, + PermanentDelete = 2048, + } + public sealed partial class BlobSasQueryParameters : Azure.Storage.Sas.SasQueryParameters + { + internal BlobSasQueryParameters() { } + public static new Azure.Storage.Sas.BlobSasQueryParameters Empty { get { throw null; } } + public System.DateTimeOffset KeyExpiresOn { get { throw null; } } + public string KeyObjectId { get { throw null; } } + public string KeyService { get { throw null; } } + public System.DateTimeOffset KeyStartsOn { get { throw null; } } + public string KeyTenantId { get { throw null; } } + public string KeyVersion { get { throw null; } } + public override string ToString() { throw null; } + } + [System.FlagsAttribute] + public enum BlobVersionSasPermissions + { + All = -1, + Delete = 1, + SetImmutabilityPolicy = 2, + PermanentDelete = 4, + } + [System.FlagsAttribute] + public enum SnapshotSasPermissions + { + All = -1, + Read = 1, + Write = 2, + Delete = 4, + SetImmutabilityPolicy = 8, + PermanentDelete = 16, + } +} +namespace Microsoft.Extensions.Azure +{ + public static partial class BlobClientBuilderExtensions + { + public static Azure.Core.Extensions.IAzureClientBuilder AddBlobServiceClient(this TBuilder builder, string connectionString) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilder { throw null; } + public static Azure.Core.Extensions.IAzureClientBuilder AddBlobServiceClient(this TBuilder builder, System.Uri serviceUri) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithCredential { throw null; } + public static Azure.Core.Extensions.IAzureClientBuilder AddBlobServiceClient(this TBuilder builder, System.Uri serviceUri, Azure.Storage.StorageSharedKeyCredential sharedKeyCredential) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilder { throw null; } + public static Azure.Core.Extensions.IAzureClientBuilder AddBlobServiceClient(this TBuilder builder, TConfiguration configuration) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration { throw null; } + } +} diff --git a/sdk/storage/Azure.Storage.Common/api/Azure.Storage.Common.net6.0.cs b/sdk/storage/Azure.Storage.Common/api/Azure.Storage.Common.net6.0.cs new file mode 100644 index 0000000000000..96ead0cf9fc41 --- /dev/null +++ b/sdk/storage/Azure.Storage.Common/api/Azure.Storage.Common.net6.0.cs @@ -0,0 +1,211 @@ +namespace Azure.Storage +{ + public partial class ClientSideEncryptionOptions + { + public ClientSideEncryptionOptions(Azure.Storage.ClientSideEncryptionVersion version) { } + public Azure.Storage.ClientSideEncryptionVersion EncryptionVersion { get { throw null; } } + public Azure.Core.Cryptography.IKeyEncryptionKey KeyEncryptionKey { get { throw null; } set { } } + public Azure.Core.Cryptography.IKeyEncryptionKeyResolver KeyResolver { get { throw null; } set { } } + public string KeyWrapAlgorithm { get { throw null; } set { } } + } + public enum ClientSideEncryptionVersion + { + [System.ObsoleteAttribute("This version is considered insecure. Applications are encouraged to migrate to version 2.0 or to one of Azure Storage's server-side encryption solutions. See http://aka.ms/azstorageclientencryptionblog for more details.")] + V1_0 = 1, + V2_0 = 2, + } + public partial class DownloadTransferValidationOptions + { + public DownloadTransferValidationOptions() { } + public bool AutoValidateChecksum { get { throw null; } set { } } + public Azure.Storage.StorageChecksumAlgorithm ChecksumAlgorithm { get { throw null; } set { } } + } + public enum StorageChecksumAlgorithm + { + Auto = 0, + None = 1, + MD5 = 2, + StorageCrc64 = 3, + } + public partial class StorageCrc64HashAlgorithm : System.IO.Hashing.NonCryptographicHashAlgorithm + { + internal StorageCrc64HashAlgorithm() : base (default(int)) { } + public override void Append(System.ReadOnlySpan source) { } + public static Azure.Storage.StorageCrc64HashAlgorithm Create() { throw null; } + protected override void GetCurrentHashCore(System.Span destination) { } + public override void Reset() { } + } + public static partial class StorageExtensions + { + public static System.IDisposable CreateServiceTimeoutScope(System.TimeSpan? timeout) { throw null; } + } + public partial class StorageSharedKeyCredential + { + public StorageSharedKeyCredential(string accountName, string accountKey) { } + public string AccountName { get { throw null; } } + protected static string ComputeSasSignature(Azure.Storage.StorageSharedKeyCredential credential, string message) { throw null; } + public void SetAccountKey(string accountKey) { } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public partial struct StorageTransferOptions : System.IEquatable + { + private int _dummyPrimitive; + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public int? InitialTransferLength { get { throw null; } set { } } + public long? InitialTransferSize { get { throw null; } set { } } + public int? MaximumConcurrency { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public int? MaximumTransferLength { get { throw null; } set { } } + public long? MaximumTransferSize { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public bool Equals(Azure.Storage.StorageTransferOptions obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static bool operator ==(Azure.Storage.StorageTransferOptions left, Azure.Storage.StorageTransferOptions right) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static bool operator !=(Azure.Storage.StorageTransferOptions left, Azure.Storage.StorageTransferOptions right) { throw null; } + } + public partial class TransferValidationOptions + { + public TransferValidationOptions() { } + public Azure.Storage.DownloadTransferValidationOptions Download { get { throw null; } } + public Azure.Storage.UploadTransferValidationOptions Upload { get { throw null; } } + } + public partial class UploadTransferValidationOptions + { + public UploadTransferValidationOptions() { } + public Azure.Storage.StorageChecksumAlgorithm ChecksumAlgorithm { get { throw null; } set { } } + public System.ReadOnlyMemory PrecalculatedChecksum { get { throw null; } set { } } + } +} +namespace Azure.Storage.Sas +{ + public partial class AccountSasBuilder + { + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public AccountSasBuilder() { } + public AccountSasBuilder(Azure.Storage.Sas.AccountSasPermissions permissions, System.DateTimeOffset expiresOn, Azure.Storage.Sas.AccountSasServices services, Azure.Storage.Sas.AccountSasResourceTypes resourceTypes) { } + public string EncryptionScope { get { throw null; } set { } } + public System.DateTimeOffset ExpiresOn { get { throw null; } set { } } + public Azure.Storage.Sas.SasIPRange IPRange { get { throw null; } set { } } + public string Permissions { get { throw null; } } + public Azure.Storage.Sas.SasProtocol Protocol { get { throw null; } set { } } + public Azure.Storage.Sas.AccountSasResourceTypes ResourceTypes { get { throw null; } set { } } + public Azure.Storage.Sas.AccountSasServices Services { get { throw null; } set { } } + public System.DateTimeOffset StartsOn { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public string Version { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public void SetPermissions(Azure.Storage.Sas.AccountSasPermissions permissions) { } + public void SetPermissions(string rawPermissions) { } + public Azure.Storage.Sas.SasQueryParameters ToSasQueryParameters(Azure.Storage.StorageSharedKeyCredential sharedKeyCredential) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override string ToString() { throw null; } + } + [System.FlagsAttribute] + public enum AccountSasPermissions + { + All = -1, + Read = 1, + Write = 2, + Delete = 4, + List = 8, + Add = 16, + Create = 32, + Update = 64, + Process = 128, + Tag = 256, + Filter = 512, + DeleteVersion = 1024, + SetImmutabilityPolicy = 2048, + PermanentDelete = 4096, + } + [System.FlagsAttribute] + public enum AccountSasResourceTypes + { + All = -1, + Service = 1, + Container = 2, + Object = 4, + } + [System.FlagsAttribute] + public enum AccountSasServices + { + All = -1, + Blobs = 1, + Queues = 2, + Files = 4, + Tables = 8, + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct SasIPRange : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public SasIPRange(System.Net.IPAddress start, System.Net.IPAddress end = null) { throw null; } + public System.Net.IPAddress End { get { throw null; } } + public System.Net.IPAddress Start { get { throw null; } } + public bool Equals(Azure.Storage.Sas.SasIPRange other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Storage.Sas.SasIPRange left, Azure.Storage.Sas.SasIPRange right) { throw null; } + public static bool operator !=(Azure.Storage.Sas.SasIPRange left, Azure.Storage.Sas.SasIPRange right) { throw null; } + public static Azure.Storage.Sas.SasIPRange Parse(string s) { throw null; } + public override string ToString() { throw null; } + } + public enum SasProtocol + { + None = 0, + HttpsAndHttp = 1, + Https = 2, + } + public partial class SasQueryParameters + { + public const string DefaultSasVersion = "2021-12-02"; + protected SasQueryParameters() { } + protected SasQueryParameters(System.Collections.Generic.IDictionary values) { } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + protected SasQueryParameters(string version, Azure.Storage.Sas.AccountSasServices? services, Azure.Storage.Sas.AccountSasResourceTypes? resourceTypes, Azure.Storage.Sas.SasProtocol protocol, System.DateTimeOffset startsOn, System.DateTimeOffset expiresOn, Azure.Storage.Sas.SasIPRange ipRange, string identifier, string resource, string permissions, string signature, string cacheControl = null, string contentDisposition = null, string contentEncoding = null, string contentLanguage = null, string contentType = null) { } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + protected SasQueryParameters(string version, Azure.Storage.Sas.AccountSasServices? services, Azure.Storage.Sas.AccountSasResourceTypes? resourceTypes, Azure.Storage.Sas.SasProtocol protocol, System.DateTimeOffset startsOn, System.DateTimeOffset expiresOn, Azure.Storage.Sas.SasIPRange ipRange, string identifier, string resource, string permissions, string signature, string cacheControl = null, string contentDisposition = null, string contentEncoding = null, string contentLanguage = null, string contentType = null, string authorizedAadObjectId = null, string unauthorizedAadObjectId = null, string correlationId = null, int? directoryDepth = default(int?)) { } + protected SasQueryParameters(string version, Azure.Storage.Sas.AccountSasServices? services, Azure.Storage.Sas.AccountSasResourceTypes? resourceTypes, Azure.Storage.Sas.SasProtocol protocol, System.DateTimeOffset startsOn, System.DateTimeOffset expiresOn, Azure.Storage.Sas.SasIPRange ipRange, string identifier, string resource, string permissions, string signature, string cacheControl = null, string contentDisposition = null, string contentEncoding = null, string contentLanguage = null, string contentType = null, string authorizedAadObjectId = null, string unauthorizedAadObjectId = null, string correlationId = null, int? directoryDepth = default(int?), string encryptionScope = null) { } + public string AgentObjectId { get { throw null; } } + public string CacheControl { get { throw null; } } + public string ContentDisposition { get { throw null; } } + public string ContentEncoding { get { throw null; } } + public string ContentLanguage { get { throw null; } } + public string ContentType { get { throw null; } } + public string CorrelationId { get { throw null; } } + public int? DirectoryDepth { get { throw null; } } + public static Azure.Storage.Sas.SasQueryParameters Empty { get { throw null; } } + public string EncryptionScope { get { throw null; } } + public System.DateTimeOffset ExpiresOn { get { throw null; } } + public string Identifier { get { throw null; } } + public Azure.Storage.Sas.SasIPRange IPRange { get { throw null; } } + public string Permissions { get { throw null; } } + public string PreauthorizedAgentObjectId { get { throw null; } } + public Azure.Storage.Sas.SasProtocol Protocol { get { throw null; } } + public string Resource { get { throw null; } } + public Azure.Storage.Sas.AccountSasResourceTypes? ResourceTypes { get { throw null; } } + public Azure.Storage.Sas.AccountSasServices? Services { get { throw null; } } + public string Signature { get { throw null; } } + public System.DateTimeOffset StartsOn { get { throw null; } } + public string Version { get { throw null; } } + protected internal void AppendProperties(System.Text.StringBuilder stringBuilder) { } + protected static Azure.Storage.Sas.SasQueryParameters Create(System.Collections.Generic.IDictionary values) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + protected static Azure.Storage.Sas.SasQueryParameters Create(string version, Azure.Storage.Sas.AccountSasServices? services, Azure.Storage.Sas.AccountSasResourceTypes? resourceTypes, Azure.Storage.Sas.SasProtocol protocol, System.DateTimeOffset startsOn, System.DateTimeOffset expiresOn, Azure.Storage.Sas.SasIPRange ipRange, string identifier, string resource, string permissions, string signature, string cacheControl = null, string contentDisposition = null, string contentEncoding = null, string contentLanguage = null, string contentType = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + protected static Azure.Storage.Sas.SasQueryParameters Create(string version, Azure.Storage.Sas.AccountSasServices? services, Azure.Storage.Sas.AccountSasResourceTypes? resourceTypes, Azure.Storage.Sas.SasProtocol protocol, System.DateTimeOffset startsOn, System.DateTimeOffset expiresOn, Azure.Storage.Sas.SasIPRange ipRange, string identifier, string resource, string permissions, string signature, string cacheControl = null, string contentDisposition = null, string contentEncoding = null, string contentLanguage = null, string contentType = null, string authorizedAadObjectId = null, string unauthorizedAadObjectId = null, string correlationId = null, int? directoryDepth = default(int?)) { throw null; } + protected static Azure.Storage.Sas.SasQueryParameters Create(string version, Azure.Storage.Sas.AccountSasServices? services, Azure.Storage.Sas.AccountSasResourceTypes? resourceTypes, Azure.Storage.Sas.SasProtocol protocol, System.DateTimeOffset startsOn, System.DateTimeOffset expiresOn, Azure.Storage.Sas.SasIPRange ipRange, string identifier, string resource, string permissions, string signature, string cacheControl = null, string contentDisposition = null, string contentEncoding = null, string contentLanguage = null, string contentType = null, string authorizedAadObjectId = null, string unauthorizedAadObjectId = null, string correlationId = null, int? directoryDepth = default(int?), string encryptionScope = null) { throw null; } + public override string ToString() { throw null; } + } +} diff --git a/sdk/storage/Azure.Storage.Files.DataLake/api/Azure.Storage.Files.DataLake.net6.0.cs b/sdk/storage/Azure.Storage.Files.DataLake/api/Azure.Storage.Files.DataLake.net6.0.cs new file mode 100644 index 0000000000000..5949d2d551549 --- /dev/null +++ b/sdk/storage/Azure.Storage.Files.DataLake/api/Azure.Storage.Files.DataLake.net6.0.cs @@ -0,0 +1,1264 @@ +namespace Azure.Storage.Files.DataLake +{ + public partial class DataLakeClientOptions : Azure.Core.ClientOptions + { + public DataLakeClientOptions(Azure.Storage.Files.DataLake.DataLakeClientOptions.ServiceVersion version = Azure.Storage.Files.DataLake.DataLakeClientOptions.ServiceVersion.V2021_12_02) { } + public Azure.Storage.Files.DataLake.Models.DataLakeCustomerProvidedKey? CustomerProvidedKey { get { throw null; } set { } } + public bool EnableTenantDiscovery { get { throw null; } set { } } + public System.Uri GeoRedundantSecondaryUri { get { throw null; } set { } } + public Azure.Storage.TransferValidationOptions TransferValidation { get { throw null; } } + public Azure.Storage.Files.DataLake.DataLakeClientOptions.ServiceVersion Version { get { throw null; } } + public enum ServiceVersion + { + V2019_02_02 = 1, + V2019_07_07 = 2, + V2019_12_12 = 3, + V2020_02_10 = 4, + V2020_04_08 = 5, + V2020_06_12 = 6, + V2020_08_04 = 7, + V2020_10_02 = 8, + V2020_12_06 = 9, + V2021_02_12 = 10, + V2021_04_10 = 11, + V2021_06_08 = 12, + V2021_08_06 = 13, + V2021_10_04 = 14, + V2021_12_02 = 15, + } + } + public partial class DataLakeDirectoryClient : Azure.Storage.Files.DataLake.DataLakePathClient + { + protected DataLakeDirectoryClient() { } + public DataLakeDirectoryClient(string connectionString, string fileSystemName, string directoryPath) { } + public DataLakeDirectoryClient(string connectionString, string fileSystemName, string directoryPath, Azure.Storage.Files.DataLake.DataLakeClientOptions options) { } + public DataLakeDirectoryClient(System.Uri directoryUri) { } + public DataLakeDirectoryClient(System.Uri directoryUri, Azure.AzureSasCredential credential) { } + public DataLakeDirectoryClient(System.Uri directoryUri, Azure.AzureSasCredential credential, Azure.Storage.Files.DataLake.DataLakeClientOptions options) { } + public DataLakeDirectoryClient(System.Uri directoryUri, Azure.Core.TokenCredential credential) { } + public DataLakeDirectoryClient(System.Uri directoryUri, Azure.Core.TokenCredential credential, Azure.Storage.Files.DataLake.DataLakeClientOptions options) { } + public DataLakeDirectoryClient(System.Uri directoryUri, Azure.Storage.Files.DataLake.DataLakeClientOptions options) { } + public DataLakeDirectoryClient(System.Uri directoryUri, Azure.Storage.StorageSharedKeyCredential credential) { } + public DataLakeDirectoryClient(System.Uri directoryUri, Azure.Storage.StorageSharedKeyCredential credential, Azure.Storage.Files.DataLake.DataLakeClientOptions options) { } + public virtual Azure.Response Create(Azure.Storage.Files.DataLake.Models.DataLakePathCreateOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response Create(Azure.Storage.Files.DataLake.Models.PathHttpHeaders httpHeaders, System.Collections.Generic.IDictionary metadata, string permissions, string umask, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task> CreateAsync(Azure.Storage.Files.DataLake.Models.DataLakePathCreateOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> CreateAsync(Azure.Storage.Files.DataLake.Models.PathHttpHeaders httpHeaders, System.Collections.Generic.IDictionary metadata, string permissions, string umask, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.Response CreateFile(string fileName, Azure.Storage.Files.DataLake.Models.DataLakePathCreateOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response CreateFile(string fileName, Azure.Storage.Files.DataLake.Models.PathHttpHeaders httpHeaders, System.Collections.Generic.IDictionary metadata, string permissions, string umask, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task> CreateFileAsync(string fileName, Azure.Storage.Files.DataLake.Models.DataLakePathCreateOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> CreateFileAsync(string fileName, Azure.Storage.Files.DataLake.Models.PathHttpHeaders httpHeaders, System.Collections.Generic.IDictionary metadata, string permissions, string umask, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.Response CreateIfNotExists(Azure.Storage.Files.DataLake.Models.DataLakePathCreateOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response CreateIfNotExists(Azure.Storage.Files.DataLake.Models.PathHttpHeaders httpHeaders, System.Collections.Generic.IDictionary metadata, string permissions, string umask, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task> CreateIfNotExistsAsync(Azure.Storage.Files.DataLake.Models.DataLakePathCreateOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> CreateIfNotExistsAsync(Azure.Storage.Files.DataLake.Models.PathHttpHeaders httpHeaders, System.Collections.Generic.IDictionary metadata, string permissions, string umask, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.Response CreateSubDirectory(string path, Azure.Storage.Files.DataLake.Models.DataLakePathCreateOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response CreateSubDirectory(string path, Azure.Storage.Files.DataLake.Models.PathHttpHeaders httpHeaders, System.Collections.Generic.IDictionary metadata, string permissions, string umask, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task> CreateSubDirectoryAsync(string path, Azure.Storage.Files.DataLake.Models.DataLakePathCreateOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> CreateSubDirectoryAsync(string path, Azure.Storage.Files.DataLake.Models.PathHttpHeaders httpHeaders, System.Collections.Generic.IDictionary metadata, string permissions, string umask, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.Response Delete(Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response DeleteFile(string fileName, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteFileAsync(string fileName, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response DeleteIfExists(Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> DeleteIfExistsAsync(Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response DeleteSubDirectory(string path, string continuation = null, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteSubDirectoryAsync(string path, string continuation = null, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override System.Uri GenerateSasUri(Azure.Storage.Sas.DataLakeSasBuilder builder) { throw null; } + public override System.Uri GenerateSasUri(Azure.Storage.Sas.DataLakeSasPermissions permissions, System.DateTimeOffset expiresOn) { throw null; } + public override Azure.Response GetAccessControl(bool? userPrincipalName = default(bool?), Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override System.Threading.Tasks.Task> GetAccessControlAsync(bool? userPrincipalName = default(bool?), Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Storage.Files.DataLake.DataLakeFileClient GetFileClient(string fileName) { throw null; } + public virtual Azure.Pageable GetPaths(bool recursive = false, bool userPrincipalName = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetPathsAsync(bool recursive = false, bool userPrincipalName = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual new Azure.Response GetProperties(Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override System.Threading.Tasks.Task> GetPropertiesAsync(Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Storage.Files.DataLake.DataLakeDirectoryClient GetSubDirectoryClient(string subdirectoryName) { throw null; } + public virtual new Azure.Response Rename(string destinationPath, string destinationFileSystem = null, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions sourceConditions = null, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions destinationConditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual new System.Threading.Tasks.Task> RenameAsync(string destinationPath, string destinationFileSystem = null, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions sourceConditions = null, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions destinationConditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override Azure.Response SetAccessControlList(System.Collections.Generic.IList accessControlList, string owner = null, string group = null, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override System.Threading.Tasks.Task> SetAccessControlListAsync(System.Collections.Generic.IList accessControlList, string owner = null, string group = null, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override Azure.Response SetHttpHeaders(Azure.Storage.Files.DataLake.Models.PathHttpHeaders httpHeaders = null, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override System.Threading.Tasks.Task> SetHttpHeadersAsync(Azure.Storage.Files.DataLake.Models.PathHttpHeaders httpHeaders = null, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override Azure.Response SetMetadata(System.Collections.Generic.IDictionary metadata, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override System.Threading.Tasks.Task> SetMetadataAsync(System.Collections.Generic.IDictionary metadata, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override Azure.Response SetPermissions(Azure.Storage.Files.DataLake.Models.PathPermissions permissions = null, string owner = null, string group = null, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override System.Threading.Tasks.Task> SetPermissionsAsync(Azure.Storage.Files.DataLake.Models.PathPermissions permissions = null, string owner = null, string group = null, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public new Azure.Storage.Files.DataLake.DataLakeDirectoryClient WithCustomerProvidedKey(Azure.Storage.Files.DataLake.Models.DataLakeCustomerProvidedKey? customerProvidedKey) { throw null; } + } + public partial class DataLakeFileClient : Azure.Storage.Files.DataLake.DataLakePathClient + { + protected DataLakeFileClient() { } + public DataLakeFileClient(string connectionString, string fileSystemName, string filePath) { } + public DataLakeFileClient(string connectionString, string fileSystemName, string filePath, Azure.Storage.Files.DataLake.DataLakeClientOptions options) { } + public DataLakeFileClient(System.Uri fileUri) { } + public DataLakeFileClient(System.Uri fileUri, Azure.AzureSasCredential credential) { } + public DataLakeFileClient(System.Uri fileUri, Azure.AzureSasCredential credential, Azure.Storage.Files.DataLake.DataLakeClientOptions options) { } + public DataLakeFileClient(System.Uri fileUri, Azure.Core.TokenCredential credential) { } + public DataLakeFileClient(System.Uri fileUri, Azure.Core.TokenCredential credential, Azure.Storage.Files.DataLake.DataLakeClientOptions options) { } + public DataLakeFileClient(System.Uri fileUri, Azure.Storage.Files.DataLake.DataLakeClientOptions options) { } + public DataLakeFileClient(System.Uri fileUri, Azure.Storage.StorageSharedKeyCredential credential) { } + public DataLakeFileClient(System.Uri fileUri, Azure.Storage.StorageSharedKeyCredential credential, Azure.Storage.Files.DataLake.DataLakeClientOptions options) { } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual int MaxUploadBytes { get { throw null; } } + public virtual long MaxUploadLongBytes { get { throw null; } } + public virtual Azure.Response Append(System.IO.Stream content, long offset, Azure.Storage.Files.DataLake.Models.DataLakeFileAppendOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response Append(System.IO.Stream content, long offset, byte[] contentHash, string leaseId, System.IProgress progressHandler, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task AppendAsync(System.IO.Stream content, long offset, Azure.Storage.Files.DataLake.Models.DataLakeFileAppendOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task AppendAsync(System.IO.Stream content, long offset, byte[] contentHash, string leaseId, System.IProgress progressHandler, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.Response Create(Azure.Storage.Files.DataLake.Models.DataLakePathCreateOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response Create(Azure.Storage.Files.DataLake.Models.PathHttpHeaders httpHeaders, System.Collections.Generic.IDictionary metadata, string permissions, string umask, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task> CreateAsync(Azure.Storage.Files.DataLake.Models.DataLakePathCreateOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> CreateAsync(Azure.Storage.Files.DataLake.Models.PathHttpHeaders httpHeaders, System.Collections.Generic.IDictionary metadata, string permissions, string umask, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.Response CreateIfNotExists(Azure.Storage.Files.DataLake.Models.DataLakePathCreateOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response CreateIfNotExists(Azure.Storage.Files.DataLake.Models.PathHttpHeaders httpHeaders, System.Collections.Generic.IDictionary metadata, string permissions, string umask, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task> CreateIfNotExistsAsync(Azure.Storage.Files.DataLake.Models.DataLakePathCreateOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> CreateIfNotExistsAsync(Azure.Storage.Files.DataLake.Models.PathHttpHeaders httpHeaders, System.Collections.Generic.IDictionary metadata, string permissions, string umask, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.Response Delete(Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response DeleteIfExists(Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> DeleteIfExistsAsync(Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Flush(long position, Azure.Storage.Files.DataLake.Models.DataLakeFileFlushOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response Flush(long position, bool? retainUncommittedData, bool? close, Azure.Storage.Files.DataLake.Models.PathHttpHeaders httpHeaders, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task> FlushAsync(long position, Azure.Storage.Files.DataLake.Models.DataLakeFileFlushOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> FlushAsync(long position, bool? retainUncommittedData, bool? close, Azure.Storage.Files.DataLake.Models.PathHttpHeaders httpHeaders, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions, System.Threading.CancellationToken cancellationToken) { throw null; } + public override Azure.Response GetAccessControl(bool? userPrincipalName = default(bool?), Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override System.Threading.Tasks.Task> GetAccessControlAsync(bool? userPrincipalName = default(bool?), Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual new Azure.Response GetProperties(Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override System.Threading.Tasks.Task> GetPropertiesAsync(Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.IO.Stream OpenRead(Azure.Storage.Files.DataLake.Models.DataLakeOpenReadOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.IO.Stream OpenRead(bool allowfileModifications, long position = (long)0, int? bufferSize = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.IO.Stream OpenRead(long position = (long)0, int? bufferSize = default(int?), Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task OpenReadAsync(Azure.Storage.Files.DataLake.Models.DataLakeOpenReadOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task OpenReadAsync(bool allowfileModifications, long position = (long)0, int? bufferSize = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task OpenReadAsync(long position = (long)0, int? bufferSize = default(int?), Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.IO.Stream OpenWrite(bool overwrite, Azure.Storage.Files.DataLake.Models.DataLakeFileOpenWriteOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task OpenWriteAsync(bool overwrite, Azure.Storage.Files.DataLake.Models.DataLakeFileOpenWriteOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Query(string querySqlExpression, Azure.Storage.Files.DataLake.Models.DataLakeQueryOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> QueryAsync(string querySqlExpression, Azure.Storage.Files.DataLake.Models.DataLakeQueryOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Read() { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response Read(Azure.HttpRange range, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions, bool rangeGetContentHash, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.Response Read(Azure.Storage.Files.DataLake.Models.DataLakeFileReadOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Read(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ReadAsync() { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> ReadAsync(Azure.HttpRange range, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions, bool rangeGetContentHash, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task> ReadAsync(Azure.Storage.Files.DataLake.Models.DataLakeFileReadOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ReadAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response ReadTo(System.IO.Stream destination, Azure.Storage.Files.DataLake.Models.DataLakeFileReadToOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response ReadTo(System.IO.Stream destination, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions, Azure.Storage.StorageTransferOptions transferOptions, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.Response ReadTo(string path, Azure.Storage.Files.DataLake.Models.DataLakeFileReadToOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response ReadTo(string path, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions, Azure.Storage.StorageTransferOptions transferOptions, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task ReadToAsync(System.IO.Stream destination, Azure.Storage.Files.DataLake.Models.DataLakeFileReadToOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task ReadToAsync(System.IO.Stream destination, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions, Azure.Storage.StorageTransferOptions transferOptions, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task ReadToAsync(string path, Azure.Storage.Files.DataLake.Models.DataLakeFileReadToOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task ReadToAsync(string path, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions, Azure.Storage.StorageTransferOptions transferOptions, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual new Azure.Response Rename(string destinationPath, string destinationFileSystem = null, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions sourceConditions = null, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions destinationConditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual new System.Threading.Tasks.Task> RenameAsync(string destinationPath, string destinationFileSystem = null, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions sourceConditions = null, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions destinationConditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response ScheduleDeletion(Azure.Storage.Files.DataLake.Models.DataLakeFileScheduleDeletionOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ScheduleDeletionAsync(Azure.Storage.Files.DataLake.Models.DataLakeFileScheduleDeletionOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override Azure.Response SetAccessControlList(System.Collections.Generic.IList accessControlList, string owner = null, string group = null, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override System.Threading.Tasks.Task> SetAccessControlListAsync(System.Collections.Generic.IList accessControlList, string owner = null, string group = null, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override Azure.Response SetHttpHeaders(Azure.Storage.Files.DataLake.Models.PathHttpHeaders httpHeaders = null, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override System.Threading.Tasks.Task> SetHttpHeadersAsync(Azure.Storage.Files.DataLake.Models.PathHttpHeaders httpHeaders = null, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override Azure.Response SetMetadata(System.Collections.Generic.IDictionary metadata, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override System.Threading.Tasks.Task> SetMetadataAsync(System.Collections.Generic.IDictionary metadata, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override Azure.Response SetPermissions(Azure.Storage.Files.DataLake.Models.PathPermissions permissions, string owner = null, string group = null, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override System.Threading.Tasks.Task> SetPermissionsAsync(Azure.Storage.Files.DataLake.Models.PathPermissions permissions, string owner = null, string group = null, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Upload(System.IO.Stream content) { throw null; } + public virtual Azure.Response Upload(System.IO.Stream content, Azure.Storage.Files.DataLake.Models.DataLakeFileUploadOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response Upload(System.IO.Stream content, Azure.Storage.Files.DataLake.Models.PathHttpHeaders httpHeaders = null, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.IProgress progressHandler = null, Azure.Storage.StorageTransferOptions transferOptions = default(Azure.Storage.StorageTransferOptions), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Upload(System.IO.Stream content, bool overwrite = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Upload(string path) { throw null; } + public virtual Azure.Response Upload(string path, Azure.Storage.Files.DataLake.Models.DataLakeFileUploadOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response Upload(string path, Azure.Storage.Files.DataLake.Models.PathHttpHeaders httpHeaders = null, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.IProgress progressHandler = null, Azure.Storage.StorageTransferOptions transferOptions = default(Azure.Storage.StorageTransferOptions), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Upload(string path, bool overwrite = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UploadAsync(System.IO.Stream content) { throw null; } + public virtual System.Threading.Tasks.Task> UploadAsync(System.IO.Stream content, Azure.Storage.Files.DataLake.Models.DataLakeFileUploadOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> UploadAsync(System.IO.Stream content, Azure.Storage.Files.DataLake.Models.PathHttpHeaders httpHeaders = null, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.IProgress progressHandler = null, Azure.Storage.StorageTransferOptions transferOptions = default(Azure.Storage.StorageTransferOptions), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UploadAsync(System.IO.Stream content, bool overwrite = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UploadAsync(string path) { throw null; } + public virtual System.Threading.Tasks.Task> UploadAsync(string path, Azure.Storage.Files.DataLake.Models.DataLakeFileUploadOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> UploadAsync(string path, Azure.Storage.Files.DataLake.Models.PathHttpHeaders httpHeaders = null, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.IProgress progressHandler = null, Azure.Storage.StorageTransferOptions transferOptions = default(Azure.Storage.StorageTransferOptions), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UploadAsync(string path, bool overwrite = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public new Azure.Storage.Files.DataLake.DataLakeFileClient WithCustomerProvidedKey(Azure.Storage.Files.DataLake.Models.DataLakeCustomerProvidedKey? customerProvidedKey) { throw null; } + } + public partial class DataLakeFileSystemClient + { + protected DataLakeFileSystemClient() { } + public DataLakeFileSystemClient(string connectionString, string fileSystemName) { } + public DataLakeFileSystemClient(string connectionString, string fileSystemName, Azure.Storage.Files.DataLake.DataLakeClientOptions options) { } + public DataLakeFileSystemClient(System.Uri fileSystemUri) { } + public DataLakeFileSystemClient(System.Uri fileSystemUri, Azure.AzureSasCredential credential) { } + public DataLakeFileSystemClient(System.Uri fileSystemUri, Azure.AzureSasCredential credential, Azure.Storage.Files.DataLake.DataLakeClientOptions options) { } + public DataLakeFileSystemClient(System.Uri fileSystemUri, Azure.Core.TokenCredential credential) { } + public DataLakeFileSystemClient(System.Uri fileSystemUri, Azure.Core.TokenCredential credential, Azure.Storage.Files.DataLake.DataLakeClientOptions options) { } + public DataLakeFileSystemClient(System.Uri fileSystemUri, Azure.Storage.Files.DataLake.DataLakeClientOptions options) { } + public DataLakeFileSystemClient(System.Uri fileSystemUri, Azure.Storage.StorageSharedKeyCredential credential) { } + public DataLakeFileSystemClient(System.Uri fileSystemUri, Azure.Storage.StorageSharedKeyCredential credential, Azure.Storage.Files.DataLake.DataLakeClientOptions options) { } + public virtual string AccountName { get { throw null; } } + public virtual bool CanGenerateSasUri { get { throw null; } } + public virtual string Name { get { throw null; } } + public virtual System.Uri Uri { get { throw null; } } + public virtual Azure.Response Create(Azure.Storage.Files.DataLake.Models.DataLakeFileSystemCreateOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response Create(Azure.Storage.Files.DataLake.Models.PublicAccessType publicAccessType, System.Collections.Generic.IDictionary metadata, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task> CreateAsync(Azure.Storage.Files.DataLake.Models.DataLakeFileSystemCreateOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> CreateAsync(Azure.Storage.Files.DataLake.Models.PublicAccessType publicAccessType, System.Collections.Generic.IDictionary metadata, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.Response CreateDirectory(string path, Azure.Storage.Files.DataLake.Models.DataLakePathCreateOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response CreateDirectory(string path, Azure.Storage.Files.DataLake.Models.PathHttpHeaders httpHeaders, System.Collections.Generic.IDictionary metadata, string permissions, string umask, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task> CreateDirectoryAsync(string path, Azure.Storage.Files.DataLake.Models.DataLakePathCreateOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> CreateDirectoryAsync(string path, Azure.Storage.Files.DataLake.Models.PathHttpHeaders httpHeaders, System.Collections.Generic.IDictionary metadata, string permissions, string umask, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.Response CreateFile(string path, Azure.Storage.Files.DataLake.Models.DataLakePathCreateOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response CreateFile(string path, Azure.Storage.Files.DataLake.Models.PathHttpHeaders httpHeaders, System.Collections.Generic.IDictionary metadata, string permissions, string umask, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task> CreateFileAsync(string path, Azure.Storage.Files.DataLake.Models.DataLakePathCreateOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> CreateFileAsync(string path, Azure.Storage.Files.DataLake.Models.PathHttpHeaders httpHeaders, System.Collections.Generic.IDictionary metadata, string permissions, string umask, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.Response CreateIfNotExists(Azure.Storage.Files.DataLake.Models.DataLakeFileSystemCreateOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response CreateIfNotExists(Azure.Storage.Files.DataLake.Models.PublicAccessType publicAccessType, System.Collections.Generic.IDictionary metadata, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task> CreateIfNotExistsAsync(Azure.Storage.Files.DataLake.Models.DataLakeFileSystemCreateOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> CreateIfNotExistsAsync(Azure.Storage.Files.DataLake.Models.PublicAccessType publicAccessType, System.Collections.Generic.IDictionary metadata, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.Response Delete(Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response DeleteDirectory(string path, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteDirectoryAsync(string path, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response DeleteFile(string path, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteFileAsync(string path, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response DeleteIfExists(Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> DeleteIfExistsAsync(Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Uri GenerateSasUri(Azure.Storage.Sas.DataLakeFileSystemSasPermissions permissions, System.DateTimeOffset expiresOn) { throw null; } + public virtual System.Uri GenerateSasUri(Azure.Storage.Sas.DataLakeSasBuilder builder) { throw null; } + public virtual Azure.Response GetAccessPolicy(Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAccessPolicyAsync(Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetDeletedPaths(string pathPrefix = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetDeletedPathsAsync(string pathPrefix = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Storage.Files.DataLake.DataLakeDirectoryClient GetDirectoryClient(string directoryName) { throw null; } + public virtual Azure.Storage.Files.DataLake.DataLakeFileClient GetFileClient(string fileName) { throw null; } + protected internal virtual Azure.Storage.Files.DataLake.DataLakeServiceClient GetParentServiceClientCore() { throw null; } + public virtual Azure.Pageable GetPaths(string path = null, bool recursive = false, bool userPrincipalName = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetPathsAsync(string path = null, bool recursive = false, bool userPrincipalName = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetProperties(Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetPropertiesAsync(Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetAccessPolicy(Azure.Storage.Files.DataLake.Models.PublicAccessType accessType = Azure.Storage.Files.DataLake.Models.PublicAccessType.None, System.Collections.Generic.IEnumerable permissions = null, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetAccessPolicyAsync(Azure.Storage.Files.DataLake.Models.PublicAccessType accessType = Azure.Storage.Files.DataLake.Models.PublicAccessType.None, System.Collections.Generic.IEnumerable permissions = null, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetMetadata(System.Collections.Generic.IDictionary metadata, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetMetadataAsync(System.Collections.Generic.IDictionary metadata, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response UndeletePath(string deletedPath, string deletionId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UndeletePathAsync(string deletedPath, string deletionId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class DataLakeLeaseClient + { + public static readonly System.TimeSpan InfiniteLeaseDuration; + protected DataLakeLeaseClient() { } + public DataLakeLeaseClient(Azure.Storage.Files.DataLake.DataLakeFileSystemClient client, string leaseId = null) { } + public DataLakeLeaseClient(Azure.Storage.Files.DataLake.DataLakePathClient client, string leaseId = null) { } + public virtual string LeaseId { get { throw null; } } + public System.Uri Uri { get { throw null; } } + public virtual Azure.Response Acquire(System.TimeSpan duration, Azure.RequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> AcquireAsync(System.TimeSpan duration, Azure.RequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Break(System.TimeSpan? breakPeriod = default(System.TimeSpan?), Azure.RequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> BreakAsync(System.TimeSpan? breakPeriod = default(System.TimeSpan?), Azure.RequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Change(string proposedId, Azure.RequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ChangeAsync(string proposedId, Azure.RequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Release(Azure.RequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ReleaseAsync(Azure.RequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Renew(Azure.RequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RenewAsync(Azure.RequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public static partial class DataLakeLeaseClientExtensions + { + public static Azure.Storage.Files.DataLake.DataLakeLeaseClient GetDataLakeLeaseClient(this Azure.Storage.Files.DataLake.DataLakeFileSystemClient client, string leaseId = null) { throw null; } + public static Azure.Storage.Files.DataLake.DataLakeLeaseClient GetDataLakeLeaseClient(this Azure.Storage.Files.DataLake.DataLakePathClient client, string leaseId = null) { throw null; } + } + public partial class DataLakePathClient + { + protected DataLakePathClient() { } + public DataLakePathClient(Azure.Storage.Files.DataLake.DataLakeFileSystemClient fileSystemClient, string path) { } + public DataLakePathClient(string connectionString, string fileSystemName, string path) { } + public DataLakePathClient(string connectionString, string fileSystemName, string path, Azure.Storage.Files.DataLake.DataLakeClientOptions options) { } + public DataLakePathClient(System.Uri pathUri) { } + public DataLakePathClient(System.Uri pathUri, Azure.AzureSasCredential credential) { } + public DataLakePathClient(System.Uri pathUri, Azure.AzureSasCredential credential, Azure.Storage.Files.DataLake.DataLakeClientOptions options) { } + public DataLakePathClient(System.Uri pathUri, Azure.Core.TokenCredential credential) { } + public DataLakePathClient(System.Uri pathUri, Azure.Core.TokenCredential credential, Azure.Storage.Files.DataLake.DataLakeClientOptions options) { } + public DataLakePathClient(System.Uri pathUri, Azure.Storage.Files.DataLake.DataLakeClientOptions options) { } + public DataLakePathClient(System.Uri pathUri, Azure.Storage.StorageSharedKeyCredential credential) { } + public DataLakePathClient(System.Uri pathUri, Azure.Storage.StorageSharedKeyCredential credential, Azure.Storage.Files.DataLake.DataLakeClientOptions options) { } + public virtual string AccountName { get { throw null; } } + public virtual bool CanGenerateSasUri { get { throw null; } } + public virtual string FileSystemName { get { throw null; } } + public virtual string Name { get { throw null; } } + public virtual string Path { get { throw null; } } + public virtual System.Uri Uri { get { throw null; } } + public virtual Azure.Response Create(Azure.Storage.Files.DataLake.Models.PathResourceType resourceType, Azure.Storage.Files.DataLake.Models.DataLakePathCreateOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response Create(Azure.Storage.Files.DataLake.Models.PathResourceType resourceType, Azure.Storage.Files.DataLake.Models.PathHttpHeaders httpHeaders, System.Collections.Generic.IDictionary metadata, string permissions, string umask, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task> CreateAsync(Azure.Storage.Files.DataLake.Models.PathResourceType resourceType, Azure.Storage.Files.DataLake.Models.DataLakePathCreateOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> CreateAsync(Azure.Storage.Files.DataLake.Models.PathResourceType resourceType, Azure.Storage.Files.DataLake.Models.PathHttpHeaders httpHeaders, System.Collections.Generic.IDictionary metadata, string permissions, string umask, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.Response CreateIfNotExists(Azure.Storage.Files.DataLake.Models.PathResourceType resourceType, Azure.Storage.Files.DataLake.Models.DataLakePathCreateOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response CreateIfNotExists(Azure.Storage.Files.DataLake.Models.PathResourceType resourceType, Azure.Storage.Files.DataLake.Models.PathHttpHeaders httpHeaders, System.Collections.Generic.IDictionary metadata, string permissions, string umask, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task> CreateIfNotExistsAsync(Azure.Storage.Files.DataLake.Models.PathResourceType resourceType, Azure.Storage.Files.DataLake.Models.DataLakePathCreateOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> CreateIfNotExistsAsync(Azure.Storage.Files.DataLake.Models.PathResourceType resourceType, Azure.Storage.Files.DataLake.Models.PathHttpHeaders httpHeaders, System.Collections.Generic.IDictionary metadata, string permissions, string umask, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.Response Delete(bool? recursive = default(bool?), Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(bool? recursive = default(bool?), Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response DeleteIfExists(bool? recursive = default(bool?), Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> DeleteIfExistsAsync(bool? recursive = default(bool?), Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Uri GenerateSasUri(Azure.Storage.Sas.DataLakeSasBuilder builder) { throw null; } + public virtual System.Uri GenerateSasUri(Azure.Storage.Sas.DataLakeSasPermissions permissions, System.DateTimeOffset expiresOn) { throw null; } + public virtual Azure.Response GetAccessControl(bool? userPrincipalName = default(bool?), Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAccessControlAsync(bool? userPrincipalName = default(bool?), Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected internal virtual Azure.Storage.Files.DataLake.DataLakeDirectoryClient GetParentDirectoryClientCore() { throw null; } + protected internal virtual Azure.Storage.Files.DataLake.DataLakeFileSystemClient GetParentFileSystemClientCore() { throw null; } + public virtual Azure.Response GetProperties(Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetPropertiesAsync(Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response RemoveAccessControlRecursive(System.Collections.Generic.IList accessControlList, string continuationToken = null, Azure.Storage.Files.DataLake.Models.AccessControlChangeOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RemoveAccessControlRecursiveAsync(System.Collections.Generic.IList accessControlList, string continuationToken = null, Azure.Storage.Files.DataLake.Models.AccessControlChangeOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Rename(string destinationPath, string destinationFileSystem = null, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions sourceConditions = null, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions destinationConditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RenameAsync(string destinationPath, string destinationFileSystem = null, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions sourceConditions = null, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions destinationConditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetAccessControlList(System.Collections.Generic.IList accessControlList, string owner = null, string group = null, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetAccessControlListAsync(System.Collections.Generic.IList accessControlList, string owner = null, string group = null, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetAccessControlRecursive(System.Collections.Generic.IList accessControlList, string continuationToken = null, Azure.Storage.Files.DataLake.Models.AccessControlChangeOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetAccessControlRecursiveAsync(System.Collections.Generic.IList accessControlList, string continuationToken = null, Azure.Storage.Files.DataLake.Models.AccessControlChangeOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetHttpHeaders(Azure.Storage.Files.DataLake.Models.PathHttpHeaders httpHeaders = null, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetHttpHeadersAsync(Azure.Storage.Files.DataLake.Models.PathHttpHeaders httpHeaders = null, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetMetadata(System.Collections.Generic.IDictionary metadata, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetMetadataAsync(System.Collections.Generic.IDictionary metadata, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetPermissions(Azure.Storage.Files.DataLake.Models.PathPermissions permissions, string owner = null, string group = null, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetPermissionsAsync(Azure.Storage.Files.DataLake.Models.PathPermissions permissions, string owner = null, string group = null, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response UpdateAccessControlRecursive(System.Collections.Generic.IList accessControlList, string continuationToken = null, Azure.Storage.Files.DataLake.Models.AccessControlChangeOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAccessControlRecursiveAsync(System.Collections.Generic.IList accessControlList, string continuationToken = null, Azure.Storage.Files.DataLake.Models.AccessControlChangeOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public Azure.Storage.Files.DataLake.DataLakePathClient WithCustomerProvidedKey(Azure.Storage.Files.DataLake.Models.DataLakeCustomerProvidedKey? customerProvidedKey) { throw null; } + } + public partial class DataLakeServiceClient + { + protected DataLakeServiceClient() { } + public DataLakeServiceClient(string connectionString) { } + public DataLakeServiceClient(string connectionString, Azure.Storage.Files.DataLake.DataLakeClientOptions options) { } + public DataLakeServiceClient(System.Uri serviceUri) { } + public DataLakeServiceClient(System.Uri serviceUri, Azure.AzureSasCredential credential) { } + public DataLakeServiceClient(System.Uri serviceUri, Azure.AzureSasCredential credential, Azure.Storage.Files.DataLake.DataLakeClientOptions options) { } + public DataLakeServiceClient(System.Uri serviceUri, Azure.Core.TokenCredential credential) { } + public DataLakeServiceClient(System.Uri serviceUri, Azure.Core.TokenCredential credential, Azure.Storage.Files.DataLake.DataLakeClientOptions options) { } + public DataLakeServiceClient(System.Uri serviceUri, Azure.Storage.Files.DataLake.DataLakeClientOptions options) { } + public DataLakeServiceClient(System.Uri serviceUri, Azure.Storage.StorageSharedKeyCredential credential) { } + public DataLakeServiceClient(System.Uri serviceUri, Azure.Storage.StorageSharedKeyCredential credential, Azure.Storage.Files.DataLake.DataLakeClientOptions options) { } + public virtual string AccountName { get { throw null; } } + public virtual bool CanGenerateAccountSasUri { get { throw null; } } + public virtual System.Uri Uri { get { throw null; } } + public virtual Azure.Response CreateFileSystem(string fileSystemName, Azure.Storage.Files.DataLake.Models.DataLakeFileSystemCreateOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response CreateFileSystem(string fileSystemName, Azure.Storage.Files.DataLake.Models.PublicAccessType publicAccessType, System.Collections.Generic.IDictionary metadata, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task> CreateFileSystemAsync(string fileSystemName, Azure.Storage.Files.DataLake.Models.DataLakeFileSystemCreateOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> CreateFileSystemAsync(string fileSystemName, Azure.Storage.Files.DataLake.Models.PublicAccessType publicAccessType, System.Collections.Generic.IDictionary metadata, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.Response DeleteFileSystem(string fileSystemName, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteFileSystemAsync(string fileSystemName, Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public System.Uri GenerateAccountSasUri(Azure.Storage.Sas.AccountSasBuilder builder) { throw null; } + public System.Uri GenerateAccountSasUri(Azure.Storage.Sas.AccountSasPermissions permissions, System.DateTimeOffset expiresOn, Azure.Storage.Sas.AccountSasResourceTypes resourceTypes) { throw null; } + public virtual Azure.Storage.Files.DataLake.DataLakeFileSystemClient GetFileSystemClient(string fileSystemName) { throw null; } + public virtual Azure.Pageable GetFileSystems(Azure.Storage.Files.DataLake.Models.FileSystemTraits traits = Azure.Storage.Files.DataLake.Models.FileSystemTraits.None, Azure.Storage.Files.DataLake.Models.FileSystemStates states = Azure.Storage.Files.DataLake.Models.FileSystemStates.None, string prefix = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Pageable GetFileSystems(Azure.Storage.Files.DataLake.Models.FileSystemTraits traits, string prefix, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.AsyncPageable GetFileSystemsAsync(Azure.Storage.Files.DataLake.Models.FileSystemTraits traits = Azure.Storage.Files.DataLake.Models.FileSystemTraits.None, Azure.Storage.Files.DataLake.Models.FileSystemStates states = Azure.Storage.Files.DataLake.Models.FileSystemStates.None, string prefix = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.AsyncPageable GetFileSystemsAsync(Azure.Storage.Files.DataLake.Models.FileSystemTraits traits, string prefix, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.Response GetProperties(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetPropertiesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetUserDelegationKey(System.DateTimeOffset? startsOn, System.DateTimeOffset expiresOn, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetUserDelegationKeyAsync(System.DateTimeOffset? startsOn, System.DateTimeOffset expiresOn, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetProperties(Azure.Storage.Files.DataLake.Models.DataLakeServiceProperties properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task SetPropertiesAsync(Azure.Storage.Files.DataLake.Models.DataLakeServiceProperties properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response UndeleteFileSystem(string deletedFileSystemName, string deleteFileSystemVersion, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UndeleteFileSystemAsync(string deletedFileSystemName, string deleteFileSystemVersion, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class DataLakeUriBuilder + { + public DataLakeUriBuilder(System.Uri uri) { } + public string AccountName { get { throw null; } set { } } + public string DirectoryOrFilePath { get { throw null; } set { } } + public string FileSystemName { get { throw null; } set { } } + public string Host { get { throw null; } set { } } + public int Port { get { throw null; } set { } } + public string Query { get { throw null; } set { } } + public Azure.Storage.Sas.DataLakeSasQueryParameters Sas { get { throw null; } set { } } + public string Scheme { get { throw null; } set { } } + public string Snapshot { get { throw null; } set { } } + public override string ToString() { throw null; } + public System.Uri ToUri() { throw null; } + } +} +namespace Azure.Storage.Files.DataLake.Models +{ + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public partial struct AccessControlChangeCounters + { + private int _dummyPrimitive; + public long ChangedDirectoriesCount { get { throw null; } } + public long ChangedFilesCount { get { throw null; } } + public long FailedChangesCount { get { throw null; } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public partial struct AccessControlChangeFailure + { + private object _dummy; + private int _dummyPrimitive; + public string ErrorMessage { get { throw null; } } + public bool IsDirectory { get { throw null; } } + public string Name { get { throw null; } } + } + public partial class AccessControlChangeOptions + { + public AccessControlChangeOptions() { } + public int? BatchSize { get { throw null; } set { } } + public bool? ContinueOnFailure { get { throw null; } set { } } + public int? MaxBatches { get { throw null; } set { } } + public System.IProgress> ProgressHandler { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public partial struct AccessControlChangeResult + { + private object _dummy; + private int _dummyPrimitive; + public Azure.Storage.Files.DataLake.Models.AccessControlChangeFailure[] BatchFailures { get { throw null; } } + public string ContinuationToken { get { throw null; } } + public Azure.Storage.Files.DataLake.Models.AccessControlChangeCounters Counters { get { throw null; } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public partial struct AccessControlChanges + { + private object _dummy; + private int _dummyPrimitive; + public Azure.Storage.Files.DataLake.Models.AccessControlChangeCounters AggregateCounters { get { throw null; } } + public Azure.Storage.Files.DataLake.Models.AccessControlChangeCounters BatchCounters { get { throw null; } } + public Azure.Storage.Files.DataLake.Models.AccessControlChangeFailure[] BatchFailures { get { throw null; } } + public string ContinuationToken { get { throw null; } } + } + public enum AccessControlType + { + Other = 0, + User = 1, + Group = 2, + Mask = 4, + } + public enum CopyStatus + { + Pending = 0, + Success = 1, + Aborted = 2, + Failed = 3, + } + public partial class DataLakeAccessOptions + { + public DataLakeAccessOptions() { } + public System.Collections.Generic.IList AccessControlList { get { throw null; } set { } } + public string Group { get { throw null; } set { } } + public string Owner { get { throw null; } set { } } + public string Permissions { get { throw null; } set { } } + public string Umask { get { throw null; } set { } } + } + public partial class DataLakeAccessPolicy + { + public DataLakeAccessPolicy() { } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public System.DateTimeOffset ExpiresOn { get { throw null; } set { } } + public string Permissions { get { throw null; } set { } } + public System.DateTimeOffset? PolicyExpiresOn { get { throw null; } set { } } + public System.DateTimeOffset? PolicyStartsOn { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public System.DateTimeOffset StartsOn { get { throw null; } set { } } + } + public partial class DataLakeAclChangeFailedException : System.Exception, System.Runtime.Serialization.ISerializable + { + protected DataLakeAclChangeFailedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } + public DataLakeAclChangeFailedException(string message, Azure.RequestFailedException exception, string continuationToken) { } + public DataLakeAclChangeFailedException(string message, System.Exception exception, string continuationToken) { } + public string ContinuationToken { get { throw null; } } + public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } + } + public partial class DataLakeAnalyticsLogging + { + public DataLakeAnalyticsLogging() { } + public bool Delete { get { throw null; } set { } } + public bool Read { get { throw null; } set { } } + public Azure.Storage.Files.DataLake.Models.DataLakeRetentionPolicy RetentionPolicy { get { throw null; } set { } } + public string Version { get { throw null; } set { } } + public bool Write { get { throw null; } set { } } + } + public partial class DataLakeCorsRule + { + public DataLakeCorsRule() { } + public string AllowedHeaders { get { throw null; } set { } } + public string AllowedMethods { get { throw null; } set { } } + public string AllowedOrigins { get { throw null; } set { } } + public string ExposedHeaders { get { throw null; } set { } } + public int MaxAgeInSeconds { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct DataLakeCustomerProvidedKey : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public DataLakeCustomerProvidedKey(byte[] key) { throw null; } + public DataLakeCustomerProvidedKey(string key) { throw null; } + public Azure.Storage.Files.DataLake.Models.DataLakeEncryptionAlgorithmType EncryptionAlgorithm { get { throw null; } } + public string EncryptionKey { get { throw null; } } + public string EncryptionKeyHash { get { throw null; } } + public bool Equals(Azure.Storage.Files.DataLake.Models.DataLakeCustomerProvidedKey other) { throw null; } + public override bool Equals(object obj) { throw null; } + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Storage.Files.DataLake.Models.DataLakeCustomerProvidedKey left, Azure.Storage.Files.DataLake.Models.DataLakeCustomerProvidedKey right) { throw null; } + public static bool operator !=(Azure.Storage.Files.DataLake.Models.DataLakeCustomerProvidedKey left, Azure.Storage.Files.DataLake.Models.DataLakeCustomerProvidedKey right) { throw null; } + public override string ToString() { throw null; } + } + public enum DataLakeEncryptionAlgorithmType + { + Aes256 = 0, + } + public partial class DataLakeFileAppendOptions + { + public DataLakeFileAppendOptions() { } + public byte[] ContentHash { get { throw null; } set { } } + public bool? Flush { get { throw null; } set { } } + public Azure.Storage.Files.DataLake.Models.LeaseAction? LeaseAction { get { throw null; } set { } } + public System.TimeSpan? LeaseDuration { get { throw null; } set { } } + public string LeaseId { get { throw null; } set { } } + public System.IProgress ProgressHandler { get { throw null; } set { } } + public string ProposedLeaseId { get { throw null; } set { } } + public Azure.Storage.UploadTransferValidationOptions TransferValidation { get { throw null; } set { } } + } + public enum DataLakeFileExpirationOrigin + { + CreationTime = 0, + Now = 1, + } + public partial class DataLakeFileFlushOptions + { + public DataLakeFileFlushOptions() { } + public bool? Close { get { throw null; } set { } } + public Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions Conditions { get { throw null; } set { } } + public Azure.Storage.Files.DataLake.Models.PathHttpHeaders HttpHeaders { get { throw null; } set { } } + public Azure.Storage.Files.DataLake.Models.LeaseAction? LeaseAction { get { throw null; } set { } } + public System.TimeSpan? LeaseDuration { get { throw null; } set { } } + public string ProposedLeaseId { get { throw null; } set { } } + public bool? RetainUncommittedData { get { throw null; } set { } } + } + public partial class DataLakeFileOpenWriteOptions + { + public DataLakeFileOpenWriteOptions() { } + public long? BufferSize { get { throw null; } set { } } + public bool? Close { get { throw null; } set { } } + public Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions OpenConditions { get { throw null; } set { } } + public System.IProgress ProgressHandler { get { throw null; } set { } } + public Azure.Storage.UploadTransferValidationOptions TransferValidation { get { throw null; } set { } } + } + public partial class DataLakeFileReadOptions + { + public DataLakeFileReadOptions() { } + public Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions Conditions { get { throw null; } set { } } + public Azure.HttpRange Range { get { throw null; } set { } } + public Azure.Storage.DownloadTransferValidationOptions TransferValidation { get { throw null; } set { } } + } + public partial class DataLakeFileReadToOptions + { + public DataLakeFileReadToOptions() { } + public Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions Conditions { get { throw null; } set { } } + public Azure.Storage.StorageTransferOptions TransferOptions { get { throw null; } set { } } + public Azure.Storage.DownloadTransferValidationOptions TransferValidation { get { throw null; } set { } } + } + public partial class DataLakeFileScheduleDeletionOptions + { + public DataLakeFileScheduleDeletionOptions() { } + public DataLakeFileScheduleDeletionOptions(System.DateTimeOffset? expiresOn) { } + public DataLakeFileScheduleDeletionOptions(System.TimeSpan timeToExpire, Azure.Storage.Files.DataLake.Models.DataLakeFileExpirationOrigin setRelativeTo) { } + public System.DateTimeOffset? ExpiresOn { get { throw null; } } + public Azure.Storage.Files.DataLake.Models.DataLakeFileExpirationOrigin? SetExpiryRelativeTo { get { throw null; } } + public System.TimeSpan? TimeToExpire { get { throw null; } } + } + public partial class DataLakeFileSystemCreateOptions + { + public DataLakeFileSystemCreateOptions() { } + public Azure.Storage.Files.DataLake.Models.DataLakeFileSystemEncryptionScopeOptions EncryptionScopeOptions { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } set { } } + public Azure.Storage.Files.DataLake.Models.PublicAccessType PublicAccessType { get { throw null; } set { } } + } + public partial class DataLakeFileSystemEncryptionScopeOptions + { + public DataLakeFileSystemEncryptionScopeOptions() { } + public string DefaultEncryptionScope { get { throw null; } set { } } + public bool PreventEncryptionScopeOverride { get { throw null; } set { } } + } + public partial class DataLakeFileUploadOptions + { + public DataLakeFileUploadOptions() { } + public bool? Close { get { throw null; } set { } } + public Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions Conditions { get { throw null; } set { } } + public Azure.Storage.Files.DataLake.Models.PathHttpHeaders HttpHeaders { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } set { } } + public string Permissions { get { throw null; } set { } } + public System.IProgress ProgressHandler { get { throw null; } set { } } + public Azure.Storage.StorageTransferOptions TransferOptions { get { throw null; } set { } } + public Azure.Storage.UploadTransferValidationOptions TransferValidation { get { throw null; } set { } } + public string Umask { get { throw null; } set { } } + } + public partial class DataLakeLease + { + internal DataLakeLease() { } + public Azure.ETag ETag { get { throw null; } } + public System.DateTimeOffset LastModified { get { throw null; } } + public string LeaseId { get { throw null; } } + public int? LeaseTime { get { throw null; } } + } + public enum DataLakeLeaseDuration + { + Infinite = 0, + Fixed = 1, + } + public enum DataLakeLeaseState + { + Available = 0, + Leased = 1, + Expired = 2, + Breaking = 3, + Broken = 4, + } + public enum DataLakeLeaseStatus + { + Locked = 0, + Unlocked = 1, + } + public partial class DataLakeMetrics + { + public DataLakeMetrics() { } + public bool Enabled { get { throw null; } set { } } + public bool? IncludeApis { get { throw null; } set { } } + public Azure.Storage.Files.DataLake.Models.DataLakeRetentionPolicy RetentionPolicy { get { throw null; } set { } } + public string Version { get { throw null; } set { } } + } + public static partial class DataLakeModelFactory + { + public static Azure.Storage.Files.DataLake.Models.DataLakeQueryError DataLakeQueryError(string name = null, string description = null, bool isFatal = false, long position = (long)0) { throw null; } + public static Azure.Storage.Files.DataLake.Models.FileDownloadDetails FileDownloadDetails(System.DateTimeOffset lastModified, System.Collections.Generic.IDictionary metadata, string contentRange, Azure.ETag eTag, string contentEncoding, string cacheControl, string contentDisposition, string contentLanguage, System.DateTimeOffset copyCompletionTime, string copyStatusDescription, string copyId, string copyProgress, System.Uri copySource, Azure.Storage.Files.DataLake.Models.CopyStatus copyStatus, Azure.Storage.Files.DataLake.Models.DataLakeLeaseDuration leaseDuration, Azure.Storage.Files.DataLake.Models.DataLakeLeaseState leaseState, Azure.Storage.Files.DataLake.Models.DataLakeLeaseStatus leaseStatus, string acceptRanges, bool isServerEncrypted, string encryptionKeySha256, byte[] contentHash) { throw null; } + public static Azure.Storage.Files.DataLake.Models.FileDownloadInfo FileDownloadInfo(long contentLength, System.IO.Stream content, byte[] contentHash, Azure.Storage.Files.DataLake.Models.FileDownloadDetails properties) { throw null; } + public static Azure.Storage.Files.DataLake.Models.FileSystemInfo FileSystemInfo(Azure.ETag etag, System.DateTimeOffset lastModified) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.Storage.Files.DataLake.Models.FileSystemItem FileSystemItem(string name, Azure.Storage.Files.DataLake.Models.FileSystemProperties properties) { throw null; } + public static Azure.Storage.Files.DataLake.Models.FileSystemItem FileSystemItem(string name = null, bool? isDeleted = default(bool?), string versionId = null, Azure.Storage.Files.DataLake.Models.FileSystemProperties properties = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.Storage.Files.DataLake.Models.FileSystemProperties FileSystemProperties(System.DateTimeOffset lastModified, Azure.Storage.Files.DataLake.Models.DataLakeLeaseStatus? leaseStatus, Azure.Storage.Files.DataLake.Models.DataLakeLeaseState? leaseState, Azure.Storage.Files.DataLake.Models.DataLakeLeaseDuration? leaseDuration, Azure.Storage.Files.DataLake.Models.PublicAccessType? publicAccess, bool? hasImmutabilityPolicy, bool? hasLegalHold, Azure.ETag eTag) { throw null; } + public static Azure.Storage.Files.DataLake.Models.FileSystemProperties FileSystemProperties(System.DateTimeOffset lastModified = default(System.DateTimeOffset), Azure.Storage.Files.DataLake.Models.DataLakeLeaseStatus? leaseStatus = default(Azure.Storage.Files.DataLake.Models.DataLakeLeaseStatus?), Azure.Storage.Files.DataLake.Models.DataLakeLeaseState? leaseState = default(Azure.Storage.Files.DataLake.Models.DataLakeLeaseState?), Azure.Storage.Files.DataLake.Models.DataLakeLeaseDuration? leaseDuration = default(Azure.Storage.Files.DataLake.Models.DataLakeLeaseDuration?), Azure.Storage.Files.DataLake.Models.PublicAccessType? publicAccess = default(Azure.Storage.Files.DataLake.Models.PublicAccessType?), bool? hasImmutabilityPolicy = default(bool?), bool? hasLegalHold = default(bool?), Azure.ETag eTag = default(Azure.ETag), System.Collections.Generic.IDictionary metadata = null, System.DateTimeOffset? deletedOn = default(System.DateTimeOffset?), int? remainingRetentionDays = default(int?)) { throw null; } + public static Azure.Storage.Files.DataLake.Models.DataLakeLease Lease(Azure.ETag eTag, System.DateTimeOffset lastModified, string leaseId, int? leaseTime) { throw null; } + public static Azure.Storage.Files.DataLake.Models.PathAccessControl PathAccessControl(string owner, string group, Azure.Storage.Files.DataLake.Models.PathPermissions permissions, System.Collections.Generic.IList acl) { throw null; } + public static Azure.Storage.Files.DataLake.Models.PathContentInfo PathContentInfo(string contentHash, Azure.ETag eTag, System.DateTimeOffset lastModified, string acceptRanges, string cacheControl, string contentDisposition, string contentEncoding, string contentLanguage, long contentLength, string contentRange, string contentType, System.Collections.Generic.IDictionary metadata) { throw null; } + public static Azure.Storage.Files.DataLake.Models.PathCreateInfo PathCreateInfo(Azure.Storage.Files.DataLake.Models.PathInfo pathInfo, string continuation) { throw null; } + public static Azure.Storage.Files.DataLake.Models.PathInfo PathInfo(Azure.ETag eTag, System.DateTimeOffset lastModified) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.Storage.Files.DataLake.Models.PathItem PathItem(string name, bool? isDirectory, System.DateTimeOffset lastModified, Azure.ETag eTag, long? contentLength, string owner, string group, string permissions) { throw null; } + public static Azure.Storage.Files.DataLake.Models.PathItem PathItem(string name, bool? isDirectory, System.DateTimeOffset lastModified, Azure.ETag eTag, long? contentLength, string owner, string group, string permissions, System.DateTimeOffset? createdOn, System.DateTimeOffset? expiresOn) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.Storage.Files.DataLake.Models.PathProperties PathProperties(System.DateTimeOffset lastModified, System.DateTimeOffset creationTime, System.Collections.Generic.IDictionary metadata, System.DateTimeOffset copyCompletionTime, string copyStatusDescription, string copyId, string copyProgress, System.Uri copySource, Azure.Storage.Files.DataLake.Models.CopyStatus copyStatus, bool isIncrementalCopy, Azure.Storage.Files.DataLake.Models.DataLakeLeaseDuration leaseDuration, Azure.Storage.Files.DataLake.Models.DataLakeLeaseState leaseState, Azure.Storage.Files.DataLake.Models.DataLakeLeaseStatus leaseStatus, long contentLength, string contentType, Azure.ETag eTag, byte[] contentHash, string contentEncoding, string contentDisposition, string contentLanguage, string cacheControl, string acceptRanges, bool isServerEncrypted, string encryptionKeySha256, string accessTier, string archiveStatus, System.DateTimeOffset accessTierChangeTime) { throw null; } + public static Azure.Storage.Files.DataLake.Models.PathProperties PathProperties(System.DateTimeOffset lastModified, System.DateTimeOffset creationTime, System.Collections.Generic.IDictionary metadata, System.DateTimeOffset copyCompletionTime, string copyStatusDescription, string copyId, string copyProgress, System.Uri copySource, Azure.Storage.Files.DataLake.Models.CopyStatus copyStatus, bool isIncrementalCopy, Azure.Storage.Files.DataLake.Models.DataLakeLeaseDuration leaseDuration, Azure.Storage.Files.DataLake.Models.DataLakeLeaseState leaseState, Azure.Storage.Files.DataLake.Models.DataLakeLeaseStatus leaseStatus, long contentLength, string contentType, Azure.ETag eTag, byte[] contentHash, string contentEncoding, string contentDisposition, string contentLanguage, string cacheControl, string acceptRanges, bool isServerEncrypted, string encryptionKeySha256, string accessTier, string archiveStatus, System.DateTimeOffset accessTierChangeTime, bool isDirectory) { throw null; } + public static Azure.Storage.Files.DataLake.Models.UserDelegationKey UserDelegationKey(string signedObjectId, string signedTenantId, System.DateTimeOffset signedStart, System.DateTimeOffset signedExpiry, string signedService, string signedVersion, string value) { throw null; } + } + public partial class DataLakeOpenReadOptions + { + public DataLakeOpenReadOptions(bool allowModifications) { } + public int? BufferSize { get { throw null; } set { } } + public Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions Conditions { get { throw null; } set { } } + public long Position { get { throw null; } set { } } + public Azure.Storage.DownloadTransferValidationOptions TransferValidation { get { throw null; } set { } } + } + public partial class DataLakePathCreateOptions + { + public DataLakePathCreateOptions() { } + public Azure.Storage.Files.DataLake.Models.DataLakeAccessOptions AccessOptions { get { throw null; } set { } } + public Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions Conditions { get { throw null; } set { } } + public Azure.Storage.Files.DataLake.Models.PathHttpHeaders HttpHeaders { get { throw null; } set { } } + public System.TimeSpan? LeaseDuration { get { throw null; } set { } } + public string LeaseId { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } set { } } + public Azure.Storage.Files.DataLake.Models.DataLakePathScheduleDeletionOptions ScheduleDeletionOptions { get { throw null; } set { } } + } + public partial class DataLakePathScheduleDeletionOptions + { + public DataLakePathScheduleDeletionOptions(System.DateTimeOffset? expiresOn) { } + public DataLakePathScheduleDeletionOptions(System.TimeSpan? timeToExpire) { } + public System.DateTimeOffset? ExpiresOn { get { throw null; } } + public System.TimeSpan? TimeToExpire { get { throw null; } } + } + public partial class DataLakeQueryArrowField + { + public DataLakeQueryArrowField() { } + public string Name { get { throw null; } set { } } + public int Precision { get { throw null; } set { } } + public int Scale { get { throw null; } set { } } + public Azure.Storage.Files.DataLake.Models.DataLakeQueryArrowFieldType Type { get { throw null; } set { } } + } + public enum DataLakeQueryArrowFieldType + { + Int64 = 0, + Bool = 1, + Timestamp = 2, + String = 3, + Double = 4, + Decimal = 5, + } + public partial class DataLakeQueryArrowOptions : Azure.Storage.Files.DataLake.Models.DataLakeQueryTextOptions + { + public DataLakeQueryArrowOptions() { } + public System.Collections.Generic.IList Schema { get { throw null; } set { } } + } + public partial class DataLakeQueryCsvTextOptions : Azure.Storage.Files.DataLake.Models.DataLakeQueryTextOptions + { + public DataLakeQueryCsvTextOptions() { } + public string ColumnSeparator { get { throw null; } set { } } + public char? EscapeCharacter { get { throw null; } set { } } + public bool HasHeaders { get { throw null; } set { } } + public char? QuotationCharacter { get { throw null; } set { } } + public string RecordSeparator { get { throw null; } set { } } + } + public partial class DataLakeQueryError + { + internal DataLakeQueryError() { } + public string Description { get { throw null; } } + public bool IsFatal { get { throw null; } } + public string Name { get { throw null; } } + public long Position { get { throw null; } } + } + public partial class DataLakeQueryJsonTextOptions : Azure.Storage.Files.DataLake.Models.DataLakeQueryTextOptions + { + public DataLakeQueryJsonTextOptions() { } + public string RecordSeparator { get { throw null; } set { } } + } + public partial class DataLakeQueryOptions + { + public DataLakeQueryOptions() { } + public Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions Conditions { get { throw null; } set { } } + public Azure.Storage.Files.DataLake.Models.DataLakeQueryTextOptions InputTextConfiguration { get { throw null; } set { } } + public Azure.Storage.Files.DataLake.Models.DataLakeQueryTextOptions OutputTextConfiguration { get { throw null; } set { } } + public System.IProgress ProgressHandler { get { throw null; } set { } } + public event System.Action ErrorHandler { add { } remove { } } + } + public partial class DataLakeQueryParquetTextOptions : Azure.Storage.Files.DataLake.Models.DataLakeQueryTextOptions + { + public DataLakeQueryParquetTextOptions() { } + } + public abstract partial class DataLakeQueryTextOptions + { + protected DataLakeQueryTextOptions() { } + } + public partial class DataLakeRequestConditions : Azure.RequestConditions + { + public DataLakeRequestConditions() { } + public string LeaseId { get { throw null; } set { } } + public override string ToString() { throw null; } + } + public partial class DataLakeRetentionPolicy + { + public DataLakeRetentionPolicy() { } + public int? Days { get { throw null; } set { } } + public bool Enabled { get { throw null; } set { } } + } + public partial class DataLakeServiceProperties + { + public DataLakeServiceProperties() { } + public System.Collections.Generic.IList Cors { get { throw null; } set { } } + public string DefaultServiceVersion { get { throw null; } set { } } + public Azure.Storage.Files.DataLake.Models.DataLakeRetentionPolicy DeleteRetentionPolicy { get { throw null; } set { } } + public Azure.Storage.Files.DataLake.Models.DataLakeMetrics HourMetrics { get { throw null; } set { } } + public Azure.Storage.Files.DataLake.Models.DataLakeAnalyticsLogging Logging { get { throw null; } set { } } + public Azure.Storage.Files.DataLake.Models.DataLakeMetrics MinuteMetrics { get { throw null; } set { } } + public Azure.Storage.Files.DataLake.Models.DataLakeStaticWebsite StaticWebsite { get { throw null; } set { } } + } + public partial class DataLakeSignedIdentifier + { + public DataLakeSignedIdentifier() { } + public Azure.Storage.Files.DataLake.Models.DataLakeAccessPolicy AccessPolicy { get { throw null; } set { } } + public string Id { get { throw null; } set { } } + } + public partial class DataLakeStaticWebsite + { + public DataLakeStaticWebsite() { } + public string DefaultIndexDocumentPath { get { throw null; } set { } } + public bool Enabled { get { throw null; } set { } } + public string ErrorDocument404Path { get { throw null; } set { } } + public string IndexDocument { get { throw null; } set { } } + } + public partial class FileDownloadDetails + { + internal FileDownloadDetails() { } + public string AcceptRanges { get { throw null; } } + public string CacheControl { get { throw null; } } + public string ContentDisposition { get { throw null; } } + public string ContentEncoding { get { throw null; } } + public byte[] ContentHash { get { throw null; } } + public string ContentLanguage { get { throw null; } } + public string ContentRange { get { throw null; } } + public System.DateTimeOffset CopyCompletedOn { get { throw null; } } + public string CopyId { get { throw null; } } + public string CopyProgress { get { throw null; } } + public System.Uri CopySource { get { throw null; } } + public Azure.Storage.Files.DataLake.Models.CopyStatus CopyStatus { get { throw null; } } + public string CopyStatusDescription { get { throw null; } } + public string EncryptionKeySha256 { get { throw null; } } + public Azure.ETag ETag { get { throw null; } } + public bool IsServerEncrypted { get { throw null; } } + public System.DateTimeOffset LastModified { get { throw null; } } + public Azure.Storage.Files.DataLake.Models.DataLakeLeaseDuration LeaseDuration { get { throw null; } } + public Azure.Storage.Files.DataLake.Models.DataLakeLeaseState LeaseState { get { throw null; } } + public Azure.Storage.Files.DataLake.Models.DataLakeLeaseStatus LeaseStatus { get { throw null; } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + } + public partial class FileDownloadInfo + { + internal FileDownloadInfo() { } + public System.IO.Stream Content { get { throw null; } } + public byte[] ContentHash { get { throw null; } } + public long ContentLength { get { throw null; } } + public Azure.Storage.Files.DataLake.Models.FileDownloadDetails Properties { get { throw null; } } + } + public partial class FileSystemAccessPolicy + { + public FileSystemAccessPolicy() { } + public Azure.Storage.Files.DataLake.Models.PublicAccessType DataLakePublicAccess { get { throw null; } } + public Azure.ETag ETag { get { throw null; } } + public System.DateTimeOffset LastModified { get { throw null; } } + public System.Collections.Generic.IEnumerable SignedIdentifiers { get { throw null; } } + } + public partial class FileSystemInfo + { + internal FileSystemInfo() { } + public Azure.ETag ETag { get { throw null; } } + public System.DateTimeOffset LastModified { get { throw null; } } + } + public partial class FileSystemItem + { + internal FileSystemItem() { } + public bool? IsDeleted { get { throw null; } } + public string Name { get { throw null; } } + public Azure.Storage.Files.DataLake.Models.FileSystemProperties Properties { get { throw null; } } + public string VersionId { get { throw null; } } + } + public partial class FileSystemProperties + { + internal FileSystemProperties() { } + public string DefaultEncryptionScope { get { throw null; } } + public System.DateTimeOffset? DeletedOn { get { throw null; } } + public Azure.ETag ETag { get { throw null; } } + public bool? HasImmutabilityPolicy { get { throw null; } } + public bool? HasLegalHold { get { throw null; } } + public System.DateTimeOffset LastModified { get { throw null; } } + public Azure.Storage.Files.DataLake.Models.DataLakeLeaseDuration? LeaseDuration { get { throw null; } } + public Azure.Storage.Files.DataLake.Models.DataLakeLeaseState? LeaseState { get { throw null; } } + public Azure.Storage.Files.DataLake.Models.DataLakeLeaseStatus? LeaseStatus { get { throw null; } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + public bool? PreventEncryptionScopeOverride { get { throw null; } } + public Azure.Storage.Files.DataLake.Models.PublicAccessType? PublicAccess { get { throw null; } } + public int? RemainingRetentionDays { get { throw null; } } + } + [System.FlagsAttribute] + public enum FileSystemStates + { + None = 0, + Deleted = 1, + System = 2, + } + [System.FlagsAttribute] + public enum FileSystemTraits + { + None = 0, + Metadata = 1, + } + public enum LeaseAction + { + Acquire = 0, + AutoRenew = 1, + Release = 2, + AcquireRelease = 3, + } + public partial class PathAccessControl + { + internal PathAccessControl() { } + public System.Collections.Generic.IEnumerable AccessControlList { get { throw null; } } + public string Group { get { throw null; } } + public string Owner { get { throw null; } } + public Azure.Storage.Files.DataLake.Models.PathPermissions Permissions { get { throw null; } } + } + public static partial class PathAccessControlExtensions + { + public static System.Collections.Generic.IList ParseAccessControlList(string s) { throw null; } + public static Azure.Storage.Files.DataLake.Models.RolePermissions ParseOctalRolePermissions(char c) { throw null; } + public static Azure.Storage.Files.DataLake.Models.RolePermissions ParseSymbolicRolePermissions(string s, bool allowStickyBit = false) { throw null; } + public static string ToAccessControlListString(System.Collections.Generic.IList accessControlList) { throw null; } + public static string ToOctalRolePermissions(this Azure.Storage.Files.DataLake.Models.RolePermissions rolePermissions) { throw null; } + public static string ToSymbolicRolePermissions(this Azure.Storage.Files.DataLake.Models.RolePermissions rolePermissions) { throw null; } + public static string ToSymbolicRolePermissions(this Azure.Storage.Files.DataLake.Models.RolePermissions rolePermissions, bool stickyBit) { throw null; } + } + public partial class PathAccessControlItem + { + public PathAccessControlItem() { } + public PathAccessControlItem(Azure.Storage.Files.DataLake.Models.AccessControlType accessControlType, Azure.Storage.Files.DataLake.Models.RolePermissions permissions, bool defaultScope = false, string entityId = null) { } + public Azure.Storage.Files.DataLake.Models.AccessControlType AccessControlType { get { throw null; } set { } } + public bool DefaultScope { get { throw null; } set { } } + public string EntityId { get { throw null; } set { } } + public Azure.Storage.Files.DataLake.Models.RolePermissions Permissions { get { throw null; } set { } } + public static Azure.Storage.Files.DataLake.Models.PathAccessControlItem Parse(string s) { throw null; } + public override string ToString() { throw null; } + } + public partial class PathContentInfo + { + internal PathContentInfo() { } + public string AcceptRanges { get { throw null; } } + public string CacheControl { get { throw null; } } + public string ContentDisposition { get { throw null; } } + public string ContentEncoding { get { throw null; } } + public string ContentHash { get { throw null; } } + public string ContentLanguage { get { throw null; } } + public long ContentLength { get { throw null; } } + public string ContentRange { get { throw null; } } + public string ContentType { get { throw null; } } + public Azure.ETag ETag { get { throw null; } } + public System.DateTimeOffset LastModified { get { throw null; } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + } + public partial class PathCreateInfo + { + internal PathCreateInfo() { } + public string Continuation { get { throw null; } } + public Azure.Storage.Files.DataLake.Models.PathInfo PathInfo { get { throw null; } } + } + public partial class PathDeletedItem + { + internal PathDeletedItem() { } + public System.DateTimeOffset? DeletedOn { get { throw null; } } + public string DeletionId { get { throw null; } } + public string Path { get { throw null; } } + public int? RemainingRetentionDays { get { throw null; } } + } + public enum PathGetPropertiesAction + { + GetAccessControl = 0, + GetStatus = 1, + } + public partial class PathHttpHeaders + { + public PathHttpHeaders() { } + public string CacheControl { get { throw null; } set { } } + public string ContentDisposition { get { throw null; } set { } } + public string ContentEncoding { get { throw null; } set { } } + public byte[] ContentHash { get { throw null; } set { } } + public string ContentLanguage { get { throw null; } set { } } + public string ContentType { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override string ToString() { throw null; } + } + public partial class PathInfo + { + internal PathInfo() { } + public Azure.ETag ETag { get { throw null; } } + public System.DateTimeOffset LastModified { get { throw null; } } + } + public partial class PathItem + { + internal PathItem() { } + public long? ContentLength { get { throw null; } } + public System.DateTimeOffset? CreatedOn { get { throw null; } } + public string EncryptionScope { get { throw null; } } + public Azure.ETag ETag { get { throw null; } } + public System.DateTimeOffset? ExpiresOn { get { throw null; } } + public string Group { get { throw null; } } + public bool? IsDirectory { get { throw null; } } + public System.DateTimeOffset LastModified { get { throw null; } } + public string Name { get { throw null; } } + public string Owner { get { throw null; } } + public string Permissions { get { throw null; } } + } + public enum PathLeaseAction + { + Acquire = 0, + Break = 1, + Change = 2, + Renew = 3, + Release = 4, + } + public partial class PathPermissions + { + public PathPermissions() { } + public PathPermissions(Azure.Storage.Files.DataLake.Models.RolePermissions owner, Azure.Storage.Files.DataLake.Models.RolePermissions group, Azure.Storage.Files.DataLake.Models.RolePermissions other, bool stickyBit = false, bool extendedInfoInAcl = false) { } + public bool ExtendedAcls { get { throw null; } set { } } + public Azure.Storage.Files.DataLake.Models.RolePermissions Group { get { throw null; } set { } } + public Azure.Storage.Files.DataLake.Models.RolePermissions Other { get { throw null; } set { } } + public Azure.Storage.Files.DataLake.Models.RolePermissions Owner { get { throw null; } set { } } + public bool StickyBit { get { throw null; } set { } } + public static Azure.Storage.Files.DataLake.Models.PathPermissions ParseOctalPermissions(string s) { throw null; } + public static Azure.Storage.Files.DataLake.Models.PathPermissions ParseSymbolicPermissions(string s) { throw null; } + public string ToOctalPermissions() { throw null; } + public string ToSymbolicPermissions() { throw null; } + } + public partial class PathProperties + { + internal PathProperties() { } + public string AcceptRanges { get { throw null; } } + public string AccessTier { get { throw null; } } + public System.DateTimeOffset AccessTierChangedOn { get { throw null; } } + public string ArchiveStatus { get { throw null; } } + public string CacheControl { get { throw null; } } + public string ContentDisposition { get { throw null; } } + public string ContentEncoding { get { throw null; } } + public byte[] ContentHash { get { throw null; } } + public string ContentLanguage { get { throw null; } } + public long ContentLength { get { throw null; } } + public string ContentType { get { throw null; } } + public System.DateTimeOffset CopyCompletedOn { get { throw null; } } + public string CopyId { get { throw null; } } + public string CopyProgress { get { throw null; } } + public System.Uri CopySource { get { throw null; } } + public Azure.Storage.Files.DataLake.Models.CopyStatus CopyStatus { get { throw null; } } + public string CopyStatusDescription { get { throw null; } } + public System.DateTimeOffset CreatedOn { get { throw null; } } + public string EncryptionKeySha256 { get { throw null; } } + public string EncryptionScope { get { throw null; } } + public Azure.ETag ETag { get { throw null; } } + public System.DateTimeOffset ExpiresOn { get { throw null; } } + public bool IsDirectory { get { throw null; } } + public bool IsIncrementalCopy { get { throw null; } } + public bool IsServerEncrypted { get { throw null; } } + public System.DateTimeOffset LastModified { get { throw null; } } + public Azure.Storage.Files.DataLake.Models.DataLakeLeaseDuration LeaseDuration { get { throw null; } } + public Azure.Storage.Files.DataLake.Models.DataLakeLeaseState LeaseState { get { throw null; } } + public Azure.Storage.Files.DataLake.Models.DataLakeLeaseStatus LeaseStatus { get { throw null; } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + } + public enum PathRenameMode + { + Legacy = 0, + Posix = 1, + } + public enum PathResourceType + { + Directory = 0, + File = 1, + } + public enum PathUpdateAction + { + Append = 0, + Flush = 1, + SetProperties = 2, + SetAccessControl = 3, + SetAccessControlRecursive = 4, + } + public enum PublicAccessType + { + None = 0, + FileSystem = 1, + Path = 2, + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ReleasedObjectInfo : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ReleasedObjectInfo(Azure.ETag eTag, System.DateTimeOffset lastModified) { throw null; } + public Azure.ETag ETag { get { throw null; } } + public System.DateTimeOffset LastModified { get { throw null; } } + public bool Equals(Azure.Storage.Files.DataLake.Models.ReleasedObjectInfo other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Storage.Files.DataLake.Models.ReleasedObjectInfo left, Azure.Storage.Files.DataLake.Models.ReleasedObjectInfo right) { throw null; } + public static bool operator !=(Azure.Storage.Files.DataLake.Models.ReleasedObjectInfo left, Azure.Storage.Files.DataLake.Models.ReleasedObjectInfo right) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override string ToString() { throw null; } + } + public partial class RemovePathAccessControlItem + { + public RemovePathAccessControlItem(Azure.Storage.Files.DataLake.Models.AccessControlType accessControlType, bool defaultScope = false, string entityId = null) { } + public Azure.Storage.Files.DataLake.Models.AccessControlType AccessControlType { get { throw null; } } + public bool DefaultScope { get { throw null; } } + public string EntityId { get { throw null; } } + public static Azure.Storage.Files.DataLake.Models.RemovePathAccessControlItem Parse(string serializedAccessControl) { throw null; } + public static System.Collections.Generic.IList ParseAccessControlList(string s) { throw null; } + public static string ToAccessControlListString(System.Collections.Generic.IList accessControlList) { throw null; } + public override string ToString() { throw null; } + } + [System.FlagsAttribute] + public enum RolePermissions + { + None = 0, + Execute = 1, + Write = 2, + Read = 4, + } + public partial class UserDelegationKey + { + internal UserDelegationKey() { } + public System.DateTimeOffset SignedExpiresOn { get { throw null; } } + public string SignedObjectId { get { throw null; } } + public string SignedService { get { throw null; } } + public System.DateTimeOffset SignedStartsOn { get { throw null; } } + public string SignedTenantId { get { throw null; } } + public string SignedVersion { get { throw null; } } + public string Value { get { throw null; } } + } +} +namespace Azure.Storage.Files.DataLake.Specialized +{ + public static partial class SpecializedDataLakeExtensions + { + public static Azure.Storage.Files.DataLake.DataLakeDirectoryClient GetParentDirectoryClient(this Azure.Storage.Files.DataLake.DataLakePathClient client) { throw null; } + public static Azure.Storage.Files.DataLake.DataLakeFileSystemClient GetParentFileSystemClient(this Azure.Storage.Files.DataLake.DataLakePathClient client) { throw null; } + public static Azure.Storage.Files.DataLake.DataLakeServiceClient GetParentServiceClient(this Azure.Storage.Files.DataLake.DataLakeFileSystemClient client) { throw null; } + } +} +namespace Azure.Storage.Sas +{ + [System.FlagsAttribute] + public enum DataLakeAccountSasPermissions + { + All = -1, + Read = 1, + Add = 2, + Create = 4, + Write = 8, + Delete = 16, + List = 32, + } + [System.FlagsAttribute] + public enum DataLakeFileSystemSasPermissions + { + All = -1, + Read = 1, + Add = 2, + Create = 4, + Write = 8, + Delete = 16, + List = 32, + Move = 64, + Execute = 128, + ManageOwnership = 256, + ManageAccessControl = 512, + } + public partial class DataLakeSasBuilder + { + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public DataLakeSasBuilder() { } + public DataLakeSasBuilder(Azure.Storage.Sas.DataLakeFileSystemSasPermissions permissions, System.DateTimeOffset expiresOn) { } + public DataLakeSasBuilder(Azure.Storage.Sas.DataLakeSasPermissions permissions, System.DateTimeOffset expiresOn) { } + public string AgentObjectId { get { throw null; } set { } } + public string CacheControl { get { throw null; } set { } } + public string ContentDisposition { get { throw null; } set { } } + public string ContentEncoding { get { throw null; } set { } } + public string ContentLanguage { get { throw null; } set { } } + public string ContentType { get { throw null; } set { } } + public string CorrelationId { get { throw null; } set { } } + public string EncryptionScope { get { throw null; } set { } } + public System.DateTimeOffset ExpiresOn { get { throw null; } set { } } + public string FileSystemName { get { throw null; } set { } } + public string Identifier { get { throw null; } set { } } + public Azure.Storage.Sas.SasIPRange IPRange { get { throw null; } set { } } + public bool? IsDirectory { get { throw null; } set { } } + public string Path { get { throw null; } set { } } + public string Permissions { get { throw null; } } + public string PreauthorizedAgentObjectId { get { throw null; } set { } } + public Azure.Storage.Sas.SasProtocol Protocol { get { throw null; } set { } } + public string Resource { get { throw null; } set { } } + public System.DateTimeOffset StartsOn { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public string Version { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public void SetPermissions(Azure.Storage.Sas.DataLakeAccountSasPermissions permissions) { } + public void SetPermissions(Azure.Storage.Sas.DataLakeFileSystemSasPermissions permissions) { } + public void SetPermissions(Azure.Storage.Sas.DataLakeSasPermissions permissions) { } + public void SetPermissions(string rawPermissions) { } + public void SetPermissions(string rawPermissions, bool normalize = false) { } + public Azure.Storage.Sas.DataLakeSasQueryParameters ToSasQueryParameters(Azure.Storage.Files.DataLake.Models.UserDelegationKey userDelegationKey, string accountName) { throw null; } + public Azure.Storage.Sas.DataLakeSasQueryParameters ToSasQueryParameters(Azure.Storage.StorageSharedKeyCredential sharedKeyCredential) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override string ToString() { throw null; } + } + [System.FlagsAttribute] + public enum DataLakeSasPermissions + { + All = -1, + Read = 1, + Add = 2, + Create = 4, + Write = 8, + Delete = 16, + List = 32, + Move = 64, + Execute = 128, + ManageOwnership = 256, + ManageAccessControl = 512, + } + public sealed partial class DataLakeSasQueryParameters : Azure.Storage.Sas.SasQueryParameters + { + internal DataLakeSasQueryParameters() { } + public static new Azure.Storage.Sas.DataLakeSasQueryParameters Empty { get { throw null; } } + public System.DateTimeOffset KeyExpiresOn { get { throw null; } } + public string KeyObjectId { get { throw null; } } + public string KeyService { get { throw null; } } + public System.DateTimeOffset KeyStartsOn { get { throw null; } } + public string KeyTenantId { get { throw null; } } + public string KeyVersion { get { throw null; } } + public override string ToString() { throw null; } + } +} +namespace Microsoft.Extensions.Azure +{ + public static partial class DataLakeClientBuilderExtensions + { + public static Azure.Core.Extensions.IAzureClientBuilder AddDataLakeServiceClient(this TBuilder builder, System.Uri serviceUri) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithCredential { throw null; } + public static Azure.Core.Extensions.IAzureClientBuilder AddDataLakeServiceClient(this TBuilder builder, System.Uri serviceUri, Azure.Storage.StorageSharedKeyCredential sharedKeyCredential) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilder { throw null; } + public static Azure.Core.Extensions.IAzureClientBuilder AddDataLakeServiceClient(this TBuilder builder, TConfiguration configuration) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration { throw null; } + } +} diff --git a/sdk/storage/Azure.Storage.Files.Shares/api/Azure.Storage.Files.Shares.net6.0.cs b/sdk/storage/Azure.Storage.Files.Shares/api/Azure.Storage.Files.Shares.net6.0.cs new file mode 100644 index 0000000000000..48164b17f2003 --- /dev/null +++ b/sdk/storage/Azure.Storage.Files.Shares/api/Azure.Storage.Files.Shares.net6.0.cs @@ -0,0 +1,1216 @@ +namespace Azure.Storage.Files.Shares +{ + public partial class ShareClient + { + protected ShareClient() { } + public ShareClient(string connectionString, string shareName) { } + public ShareClient(string connectionString, string shareName, Azure.Storage.Files.Shares.ShareClientOptions options) { } + public ShareClient(System.Uri shareUri, Azure.AzureSasCredential credential, Azure.Storage.Files.Shares.ShareClientOptions options = null) { } + public ShareClient(System.Uri shareUri, Azure.Storage.Files.Shares.ShareClientOptions options = null) { } + public ShareClient(System.Uri shareUri, Azure.Storage.StorageSharedKeyCredential credential, Azure.Storage.Files.Shares.ShareClientOptions options = null) { } + public virtual string AccountName { get { throw null; } } + public virtual bool CanGenerateSasUri { get { throw null; } } + public virtual string Name { get { throw null; } } + public virtual System.Uri Uri { get { throw null; } } + public virtual Azure.Response Create(Azure.Storage.Files.Shares.Models.ShareCreateOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response Create(System.Collections.Generic.IDictionary metadata = null, int? quotaInGB = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateAsync(Azure.Storage.Files.Shares.Models.ShareCreateOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> CreateAsync(System.Collections.Generic.IDictionary metadata = null, int? quotaInGB = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response CreateDirectory(string directoryName, System.Collections.Generic.IDictionary metadata = null, Azure.Storage.Files.Shares.Models.FileSmbProperties smbProperties = null, string filePermission = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateDirectoryAsync(string directoryName, System.Collections.Generic.IDictionary metadata = null, Azure.Storage.Files.Shares.Models.FileSmbProperties smbProperties = null, string filePermission = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response CreateIfNotExists(Azure.Storage.Files.Shares.Models.ShareCreateOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response CreateIfNotExists(System.Collections.Generic.IDictionary metadata = null, int? quotaInGB = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateIfNotExistsAsync(Azure.Storage.Files.Shares.Models.ShareCreateOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateIfNotExistsAsync(System.Collections.Generic.IDictionary metadata = null, int? quotaInGB = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response CreatePermission(string permission, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreatePermissionAsync(string permission, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response CreateSnapshot(System.Collections.Generic.IDictionary metadata = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateSnapshotAsync(System.Collections.Generic.IDictionary metadata = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Delete(Azure.Storage.Files.Shares.Models.ShareDeleteOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response Delete(bool includeSnapshots = true, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.Storage.Files.Shares.Models.ShareDeleteOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task DeleteAsync(bool includeSnapshots = true, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response DeleteDirectory(string directoryName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteDirectoryAsync(string directoryName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response DeleteIfExists(Azure.Storage.Files.Shares.Models.ShareDeleteOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response DeleteIfExists(bool includeSnapshots = true, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> DeleteIfExistsAsync(Azure.Storage.Files.Shares.Models.ShareDeleteOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> DeleteIfExistsAsync(bool includeSnapshots = true, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Uri GenerateSasUri(Azure.Storage.Sas.ShareSasBuilder builder) { throw null; } + public virtual System.Uri GenerateSasUri(Azure.Storage.Sas.ShareSasPermissions permissions, System.DateTimeOffset expiresOn) { throw null; } + public virtual Azure.Response> GetAccessPolicy(Azure.Storage.Files.Shares.Models.ShareFileRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response> GetAccessPolicy(System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task>> GetAccessPolicyAsync(Azure.Storage.Files.Shares.Models.ShareFileRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task>> GetAccessPolicyAsync(System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.Storage.Files.Shares.ShareDirectoryClient GetDirectoryClient(string directoryName) { throw null; } + protected internal virtual Azure.Storage.Files.Shares.ShareServiceClient GetParentServiceClientCore() { throw null; } + public virtual Azure.Response GetPermission(string filePermissionKey = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetPermissionAsync(string filePermissionKey = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetProperties(Azure.Storage.Files.Shares.Models.ShareFileRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response GetProperties(System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task> GetPropertiesAsync(Azure.Storage.Files.Shares.Models.ShareFileRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> GetPropertiesAsync(System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.Storage.Files.Shares.ShareDirectoryClient GetRootDirectoryClient() { throw null; } + public virtual Azure.Response GetStatistics(Azure.Storage.Files.Shares.Models.ShareFileRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response GetStatistics(System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task> GetStatisticsAsync(Azure.Storage.Files.Shares.Models.ShareFileRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> GetStatisticsAsync(System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.Response SetAccessPolicy(System.Collections.Generic.IEnumerable permissions, Azure.Storage.Files.Shares.Models.ShareFileRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response SetAccessPolicy(System.Collections.Generic.IEnumerable permissions, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task> SetAccessPolicyAsync(System.Collections.Generic.IEnumerable permissions, Azure.Storage.Files.Shares.Models.ShareFileRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> SetAccessPolicyAsync(System.Collections.Generic.IEnumerable permissions, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.Response SetMetadata(System.Collections.Generic.IDictionary metadata, Azure.Storage.Files.Shares.Models.ShareFileRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response SetMetadata(System.Collections.Generic.IDictionary metadata, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task> SetMetadataAsync(System.Collections.Generic.IDictionary metadata, Azure.Storage.Files.Shares.Models.ShareFileRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> SetMetadataAsync(System.Collections.Generic.IDictionary metadata, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.Response SetProperties(Azure.Storage.Files.Shares.Models.ShareSetPropertiesOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetPropertiesAsync(Azure.Storage.Files.Shares.Models.ShareSetPropertiesOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response SetQuota(int quotaInGB = 0, Azure.Storage.Files.Shares.Models.ShareFileRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response SetQuota(int quotaInGB, System.Threading.CancellationToken cancellationToken) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> SetQuotaAsync(int quotaInGB = 0, Azure.Storage.Files.Shares.Models.ShareFileRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> SetQuotaAsync(int quotaInGB, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.Storage.Files.Shares.ShareClient WithSnapshot(string snapshot) { throw null; } + } + public partial class ShareClientOptions : Azure.Core.ClientOptions + { + public ShareClientOptions(Azure.Storage.Files.Shares.ShareClientOptions.ServiceVersion version = Azure.Storage.Files.Shares.ShareClientOptions.ServiceVersion.V2021_12_02) { } + public Azure.Storage.TransferValidationOptions TransferValidation { get { throw null; } } + public Azure.Storage.Files.Shares.ShareClientOptions.ServiceVersion Version { get { throw null; } } + public enum ServiceVersion + { + V2019_02_02 = 1, + V2019_07_07 = 2, + V2019_12_12 = 3, + V2020_02_10 = 4, + V2020_04_08 = 5, + V2020_06_12 = 6, + V2020_08_04 = 7, + V2020_10_02 = 8, + V2020_12_06 = 9, + V2021_02_12 = 10, + V2021_04_10 = 11, + V2021_06_08 = 12, + V2021_08_06 = 13, + V2021_10_04 = 14, + V2021_12_02 = 15, + } + } + public partial class ShareDirectoryClient + { + protected ShareDirectoryClient() { } + public ShareDirectoryClient(string connectionString, string shareName, string directoryPath) { } + public ShareDirectoryClient(string connectionString, string shareName, string directoryPath, Azure.Storage.Files.Shares.ShareClientOptions options) { } + public ShareDirectoryClient(System.Uri directoryUri, Azure.AzureSasCredential credential, Azure.Storage.Files.Shares.ShareClientOptions options = null) { } + public ShareDirectoryClient(System.Uri directoryUri, Azure.Storage.Files.Shares.ShareClientOptions options = null) { } + public ShareDirectoryClient(System.Uri directoryUri, Azure.Storage.StorageSharedKeyCredential credential, Azure.Storage.Files.Shares.ShareClientOptions options = null) { } + public virtual string AccountName { get { throw null; } } + public virtual bool CanGenerateSasUri { get { throw null; } } + public virtual string Name { get { throw null; } } + public virtual string Path { get { throw null; } } + public virtual string ShareName { get { throw null; } } + public virtual System.Uri Uri { get { throw null; } } + public virtual Azure.Response Create(System.Collections.Generic.IDictionary metadata = null, Azure.Storage.Files.Shares.Models.FileSmbProperties smbProperties = null, string filePermission = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateAsync(System.Collections.Generic.IDictionary metadata = null, Azure.Storage.Files.Shares.Models.FileSmbProperties smbProperties = null, string filePermission = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response CreateFile(string fileName, long maxSize, Azure.Storage.Files.Shares.Models.ShareFileHttpHeaders httpHeaders = null, System.Collections.Generic.IDictionary metadata = null, Azure.Storage.Files.Shares.Models.FileSmbProperties smbProperties = null, string filePermission = null, Azure.Storage.Files.Shares.Models.ShareFileRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response CreateFile(string fileName, long maxSize, Azure.Storage.Files.Shares.Models.ShareFileHttpHeaders httpHeaders, System.Collections.Generic.IDictionary metadata, Azure.Storage.Files.Shares.Models.FileSmbProperties smbProperties, string filePermission, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task> CreateFileAsync(string fileName, long maxSize, Azure.Storage.Files.Shares.Models.ShareFileHttpHeaders httpHeaders = null, System.Collections.Generic.IDictionary metadata = null, Azure.Storage.Files.Shares.Models.FileSmbProperties smbProperties = null, string filePermission = null, Azure.Storage.Files.Shares.Models.ShareFileRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> CreateFileAsync(string fileName, long maxSize, Azure.Storage.Files.Shares.Models.ShareFileHttpHeaders httpHeaders, System.Collections.Generic.IDictionary metadata, Azure.Storage.Files.Shares.Models.FileSmbProperties smbProperties, string filePermission, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.Response CreateIfNotExists(System.Collections.Generic.IDictionary metadata = null, Azure.Storage.Files.Shares.Models.FileSmbProperties smbProperties = null, string filePermission = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateIfNotExistsAsync(System.Collections.Generic.IDictionary metadata = null, Azure.Storage.Files.Shares.Models.FileSmbProperties smbProperties = null, string filePermission = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response CreateSubdirectory(string subdirectoryName, System.Collections.Generic.IDictionary metadata = null, Azure.Storage.Files.Shares.Models.FileSmbProperties smbProperties = null, string filePermission = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateSubdirectoryAsync(string subdirectoryName, System.Collections.Generic.IDictionary metadata = null, Azure.Storage.Files.Shares.Models.FileSmbProperties smbProperties = null, string filePermission = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Delete(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response DeleteFile(string fileName, Azure.Storage.Files.Shares.Models.ShareFileRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response DeleteFile(string fileName, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task DeleteFileAsync(string fileName, Azure.Storage.Files.Shares.Models.ShareFileRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task DeleteFileAsync(string fileName, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.Response DeleteIfExists(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> DeleteIfExistsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response DeleteSubdirectory(string subdirectoryName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteSubdirectoryAsync(string subdirectoryName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Storage.Files.Shares.Models.CloseHandlesResult ForceCloseAllHandles(bool? recursive = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task ForceCloseAllHandlesAsync(bool? recursive = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response ForceCloseHandle(string handleId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ForceCloseHandleAsync(string handleId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Uri GenerateSasUri(Azure.Storage.Sas.ShareFileSasPermissions permissions, System.DateTimeOffset expiresOn) { throw null; } + public virtual System.Uri GenerateSasUri(Azure.Storage.Sas.ShareSasBuilder builder) { throw null; } + public virtual Azure.Storage.Files.Shares.ShareFileClient GetFileClient(string fileName) { throw null; } + public virtual Azure.Pageable GetFilesAndDirectories(Azure.Storage.Files.Shares.Models.ShareDirectoryGetFilesAndDirectoriesOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetFilesAndDirectories(string prefix, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetFilesAndDirectoriesAsync(Azure.Storage.Files.Shares.Models.ShareDirectoryGetFilesAndDirectoriesOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetFilesAndDirectoriesAsync(string prefix, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetHandles(bool? recursive = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetHandlesAsync(bool? recursive = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected internal virtual Azure.Storage.Files.Shares.ShareDirectoryClient GetParentDirectoryClientCore() { throw null; } + protected internal virtual Azure.Storage.Files.Shares.ShareClient GetParentShareClientCore() { throw null; } + public virtual Azure.Response GetProperties(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetPropertiesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Storage.Files.Shares.ShareDirectoryClient GetSubdirectoryClient(string subdirectoryName) { throw null; } + public virtual Azure.Response Rename(string destinationPath, Azure.Storage.Files.Shares.Models.ShareFileRenameOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RenameAsync(string destinationPath, Azure.Storage.Files.Shares.Models.ShareFileRenameOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetHttpHeaders(Azure.Storage.Files.Shares.Models.FileSmbProperties smbProperties = null, string filePermission = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetHttpHeadersAsync(Azure.Storage.Files.Shares.Models.FileSmbProperties smbProperties = null, string filePermission = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetMetadata(System.Collections.Generic.IDictionary metadata, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetMetadataAsync(System.Collections.Generic.IDictionary metadata, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Storage.Files.Shares.ShareDirectoryClient WithSnapshot(string snapshot) { throw null; } + } + public partial class ShareFileClient + { + protected ShareFileClient() { } + public ShareFileClient(string connectionString, string shareName, string filePath) { } + public ShareFileClient(string connectionString, string shareName, string filePath, Azure.Storage.Files.Shares.ShareClientOptions options) { } + public ShareFileClient(System.Uri fileUri, Azure.AzureSasCredential credential, Azure.Storage.Files.Shares.ShareClientOptions options = null) { } + public ShareFileClient(System.Uri fileUri, Azure.Storage.Files.Shares.ShareClientOptions options = null) { } + public ShareFileClient(System.Uri fileUri, Azure.Storage.StorageSharedKeyCredential credential, Azure.Storage.Files.Shares.ShareClientOptions options = null) { } + public virtual string AccountName { get { throw null; } } + public virtual bool CanGenerateSasUri { get { throw null; } } + public virtual string Name { get { throw null; } } + public virtual string Path { get { throw null; } } + public virtual string ShareName { get { throw null; } } + public virtual System.Uri Uri { get { throw null; } } + public virtual Azure.Response AbortCopy(string copyId, Azure.Storage.Files.Shares.Models.ShareFileRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response AbortCopy(string copyId, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task AbortCopyAsync(string copyId, Azure.Storage.Files.Shares.Models.ShareFileRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task AbortCopyAsync(string copyId, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.Response ClearRange(Azure.HttpRange range, Azure.Storage.Files.Shares.Models.ShareFileRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ClearRangeAsync(Azure.HttpRange range, Azure.Storage.Files.Shares.Models.ShareFileRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Create(long maxSize, Azure.Storage.Files.Shares.Models.ShareFileHttpHeaders httpHeaders = null, System.Collections.Generic.IDictionary metadata = null, Azure.Storage.Files.Shares.Models.FileSmbProperties smbProperties = null, string filePermission = null, Azure.Storage.Files.Shares.Models.ShareFileRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response Create(long maxSize, Azure.Storage.Files.Shares.Models.ShareFileHttpHeaders httpHeaders, System.Collections.Generic.IDictionary metadata, Azure.Storage.Files.Shares.Models.FileSmbProperties smbProperties, string filePermission, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task> CreateAsync(long maxSize, Azure.Storage.Files.Shares.Models.ShareFileHttpHeaders httpHeaders = null, System.Collections.Generic.IDictionary metadata = null, Azure.Storage.Files.Shares.Models.FileSmbProperties smbProperties = null, string filePermission = null, Azure.Storage.Files.Shares.Models.ShareFileRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> CreateAsync(long maxSize, Azure.Storage.Files.Shares.Models.ShareFileHttpHeaders httpHeaders, System.Collections.Generic.IDictionary metadata, Azure.Storage.Files.Shares.Models.FileSmbProperties smbProperties, string filePermission, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.Response Delete(Azure.Storage.Files.Shares.Models.ShareFileRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response Delete(System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.Storage.Files.Shares.Models.ShareFileRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task DeleteAsync(System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.Response DeleteIfExists(Azure.Storage.Files.Shares.Models.ShareFileRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> DeleteIfExistsAsync(Azure.Storage.Files.Shares.Models.ShareFileRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response Download(Azure.HttpRange range, bool rangeGetContentHash, Azure.Storage.Files.Shares.Models.ShareFileRequestConditions conditions, System.Threading.CancellationToken cancellationToken) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response Download(Azure.HttpRange range, bool rangeGetContentHash, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.Response Download(Azure.Storage.Files.Shares.Models.ShareFileDownloadOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> DownloadAsync(Azure.HttpRange range, bool rangeGetContentHash, Azure.Storage.Files.Shares.Models.ShareFileRequestConditions conditions, System.Threading.CancellationToken cancellationToken) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> DownloadAsync(Azure.HttpRange range, bool rangeGetContentHash, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task> DownloadAsync(Azure.Storage.Files.Shares.Models.ShareFileDownloadOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Storage.Files.Shares.Models.CloseHandlesResult ForceCloseAllHandles(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task ForceCloseAllHandlesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response ForceCloseHandle(string handleId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ForceCloseHandleAsync(string handleId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Uri GenerateSasUri(Azure.Storage.Sas.ShareFileSasPermissions permissions, System.DateTimeOffset expiresOn) { throw null; } + public virtual System.Uri GenerateSasUri(Azure.Storage.Sas.ShareSasBuilder builder) { throw null; } + public virtual Azure.Pageable GetHandles(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetHandlesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected internal virtual Azure.Storage.Files.Shares.ShareClient GetParentShareClientCore() { throw null; } + protected internal virtual Azure.Storage.Files.Shares.ShareDirectoryClient GetParentShareDirectoryClientCore() { throw null; } + public virtual Azure.Response GetProperties(Azure.Storage.Files.Shares.Models.ShareFileRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response GetProperties(System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task> GetPropertiesAsync(Azure.Storage.Files.Shares.Models.ShareFileRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> GetPropertiesAsync(System.Threading.CancellationToken cancellationToken) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response GetRangeList(Azure.HttpRange range, Azure.Storage.Files.Shares.Models.ShareFileRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response GetRangeList(Azure.HttpRange range, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.Response GetRangeList(Azure.Storage.Files.Shares.Models.ShareFileGetRangeListOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> GetRangeListAsync(Azure.HttpRange range, Azure.Storage.Files.Shares.Models.ShareFileRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> GetRangeListAsync(Azure.HttpRange range, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task> GetRangeListAsync(Azure.Storage.Files.Shares.Models.ShareFileGetRangeListOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetRangeListDiff(Azure.Storage.Files.Shares.Models.ShareFileGetRangeListDiffOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetRangeListDiffAsync(Azure.Storage.Files.Shares.Models.ShareFileGetRangeListDiffOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.IO.Stream OpenRead(Azure.Storage.Files.Shares.Models.ShareFileOpenReadOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.IO.Stream OpenRead(bool allowfileModifications, long position = (long)0, int? bufferSize = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.IO.Stream OpenRead(long position = (long)0, int? bufferSize = default(int?), Azure.Storage.Files.Shares.Models.ShareFileRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task OpenReadAsync(Azure.Storage.Files.Shares.Models.ShareFileOpenReadOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task OpenReadAsync(bool allowfileModifications, long position = (long)0, int? bufferSize = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task OpenReadAsync(long position = (long)0, int? bufferSize = default(int?), Azure.Storage.Files.Shares.Models.ShareFileRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.IO.Stream OpenWrite(bool overwrite, long position, Azure.Storage.Files.Shares.Models.ShareFileOpenWriteOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task OpenWriteAsync(bool overwrite, long position, Azure.Storage.Files.Shares.Models.ShareFileOpenWriteOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Rename(string destinationPath, Azure.Storage.Files.Shares.Models.ShareFileRenameOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RenameAsync(string destinationPath, Azure.Storage.Files.Shares.Models.ShareFileRenameOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetHttpHeaders(long? newSize = default(long?), Azure.Storage.Files.Shares.Models.ShareFileHttpHeaders httpHeaders = null, Azure.Storage.Files.Shares.Models.FileSmbProperties smbProperties = null, string filePermission = null, Azure.Storage.Files.Shares.Models.ShareFileRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response SetHttpHeaders(long? newSize, Azure.Storage.Files.Shares.Models.ShareFileHttpHeaders httpHeaders, Azure.Storage.Files.Shares.Models.FileSmbProperties smbProperties, string filePermission, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task> SetHttpHeadersAsync(long? newSize = default(long?), Azure.Storage.Files.Shares.Models.ShareFileHttpHeaders httpHeaders = null, Azure.Storage.Files.Shares.Models.FileSmbProperties smbProperties = null, string filePermission = null, Azure.Storage.Files.Shares.Models.ShareFileRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> SetHttpHeadersAsync(long? newSize, Azure.Storage.Files.Shares.Models.ShareFileHttpHeaders httpHeaders, Azure.Storage.Files.Shares.Models.FileSmbProperties smbProperties, string filePermission, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.Response SetMetadata(System.Collections.Generic.IDictionary metadata, Azure.Storage.Files.Shares.Models.ShareFileRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response SetMetadata(System.Collections.Generic.IDictionary metadata, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task> SetMetadataAsync(System.Collections.Generic.IDictionary metadata, Azure.Storage.Files.Shares.Models.ShareFileRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> SetMetadataAsync(System.Collections.Generic.IDictionary metadata, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.Response StartCopy(System.Uri sourceUri, Azure.Storage.Files.Shares.Models.ShareFileCopyOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response StartCopy(System.Uri sourceUri, System.Collections.Generic.IDictionary metadata, Azure.Storage.Files.Shares.Models.FileSmbProperties smbProperties, string filePermission, Azure.Storage.Files.Shares.Models.PermissionCopyMode? filePermissionCopyMode, bool? ignoreReadOnly, bool? setArchiveAttribute, Azure.Storage.Files.Shares.Models.ShareFileRequestConditions conditions, System.Threading.CancellationToken cancellationToken) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response StartCopy(System.Uri sourceUri, System.Collections.Generic.IDictionary metadata, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task> StartCopyAsync(System.Uri sourceUri, Azure.Storage.Files.Shares.Models.ShareFileCopyOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> StartCopyAsync(System.Uri sourceUri, System.Collections.Generic.IDictionary metadata, Azure.Storage.Files.Shares.Models.FileSmbProperties smbProperties, string filePermission, Azure.Storage.Files.Shares.Models.PermissionCopyMode? filePermissionCopyMode, bool? ignoreReadOnly, bool? setArchiveAttribute, Azure.Storage.Files.Shares.Models.ShareFileRequestConditions conditions, System.Threading.CancellationToken cancellationToken) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> StartCopyAsync(System.Uri sourceUri, System.Collections.Generic.IDictionary metadata, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.Response Upload(System.IO.Stream stream, Azure.Storage.Files.Shares.Models.ShareFileUploadOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response Upload(System.IO.Stream content, System.IProgress progressHandler, Azure.Storage.Files.Shares.Models.ShareFileRequestConditions conditions, System.Threading.CancellationToken cancellationToken) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response Upload(System.IO.Stream content, System.IProgress progressHandler, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task> UploadAsync(System.IO.Stream stream, Azure.Storage.Files.Shares.Models.ShareFileUploadOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> UploadAsync(System.IO.Stream content, System.IProgress progressHandler, Azure.Storage.Files.Shares.Models.ShareFileRequestConditions conditions, System.Threading.CancellationToken cancellationToken) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> UploadAsync(System.IO.Stream content, System.IProgress progressHandler, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.Response UploadRange(Azure.HttpRange range, System.IO.Stream content, Azure.Storage.Files.Shares.Models.ShareFileUploadRangeOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response UploadRange(Azure.HttpRange range, System.IO.Stream content, byte[] transactionalContentHash, System.IProgress progressHandler, Azure.Storage.Files.Shares.Models.ShareFileRequestConditions conditions, System.Threading.CancellationToken cancellationToken) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response UploadRange(Azure.Storage.Files.Shares.Models.ShareFileRangeWriteType writeType, Azure.HttpRange range, System.IO.Stream content, byte[] transactionalContentHash = null, System.IProgress progressHandler = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UploadRangeAsync(Azure.HttpRange range, System.IO.Stream content, Azure.Storage.Files.Shares.Models.ShareFileUploadRangeOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> UploadRangeAsync(Azure.HttpRange range, System.IO.Stream content, byte[] transactionalContentHash, System.IProgress progressHandler, Azure.Storage.Files.Shares.Models.ShareFileRequestConditions conditions, System.Threading.CancellationToken cancellationToken) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> UploadRangeAsync(Azure.Storage.Files.Shares.Models.ShareFileRangeWriteType writeType, Azure.HttpRange range, System.IO.Stream content, byte[] transactionalContentHash = null, System.IProgress progressHandler = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response UploadRangeFromUri(System.Uri sourceUri, Azure.HttpRange range, Azure.HttpRange sourceRange, Azure.Storage.Files.Shares.Models.ShareFileRequestConditions conditions, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.Response UploadRangeFromUri(System.Uri sourceUri, Azure.HttpRange range, Azure.HttpRange sourceRange, Azure.Storage.Files.Shares.Models.ShareFileUploadRangeFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response UploadRangeFromUri(System.Uri sourceUri, Azure.HttpRange range, Azure.HttpRange sourceRange, System.Threading.CancellationToken cancellationToken) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> UploadRangeFromUriAsync(System.Uri sourceUri, Azure.HttpRange range, Azure.HttpRange sourceRange, Azure.Storage.Files.Shares.Models.ShareFileRequestConditions conditions, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task> UploadRangeFromUriAsync(System.Uri sourceUri, Azure.HttpRange range, Azure.HttpRange sourceRange, Azure.Storage.Files.Shares.Models.ShareFileUploadRangeFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> UploadRangeFromUriAsync(System.Uri sourceUri, Azure.HttpRange range, Azure.HttpRange sourceRange, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.Storage.Files.Shares.ShareFileClient WithSnapshot(string shareSnapshot) { throw null; } + } + public partial class ShareServiceClient + { + protected ShareServiceClient() { } + public ShareServiceClient(string connectionString) { } + public ShareServiceClient(string connectionString, Azure.Storage.Files.Shares.ShareClientOptions options) { } + public ShareServiceClient(System.Uri serviceUri, Azure.AzureSasCredential credential, Azure.Storage.Files.Shares.ShareClientOptions options = null) { } + public ShareServiceClient(System.Uri serviceUri, Azure.Storage.Files.Shares.ShareClientOptions options = null) { } + public ShareServiceClient(System.Uri serviceUri, Azure.Storage.StorageSharedKeyCredential credential, Azure.Storage.Files.Shares.ShareClientOptions options = null) { } + public virtual string AccountName { get { throw null; } } + public virtual bool CanGenerateAccountSasUri { get { throw null; } } + public virtual System.Uri Uri { get { throw null; } } + public virtual Azure.Response CreateShare(string shareName, Azure.Storage.Files.Shares.Models.ShareCreateOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response CreateShare(string shareName, System.Collections.Generic.IDictionary metadata = null, int? quotaInGB = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateShareAsync(string shareName, Azure.Storage.Files.Shares.Models.ShareCreateOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> CreateShareAsync(string shareName, System.Collections.Generic.IDictionary metadata = null, int? quotaInGB = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response DeleteShare(string shareName, Azure.Storage.Files.Shares.Models.ShareDeleteOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response DeleteShare(string shareName, bool includeSnapshots = true, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteShareAsync(string shareName, Azure.Storage.Files.Shares.Models.ShareDeleteOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task DeleteShareAsync(string shareName, bool includeSnapshots = true, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public System.Uri GenerateAccountSasUri(Azure.Storage.Sas.AccountSasBuilder builder) { throw null; } + public System.Uri GenerateAccountSasUri(Azure.Storage.Sas.AccountSasPermissions permissions, System.DateTimeOffset expiresOn, Azure.Storage.Sas.AccountSasResourceTypes resourceTypes) { throw null; } + public virtual Azure.Response GetProperties(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetPropertiesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Storage.Files.Shares.ShareClient GetShareClient(string shareName) { throw null; } + public virtual Azure.Pageable GetShares(Azure.Storage.Files.Shares.Models.ShareTraits traits = Azure.Storage.Files.Shares.Models.ShareTraits.None, Azure.Storage.Files.Shares.Models.ShareStates states = Azure.Storage.Files.Shares.Models.ShareStates.None, string prefix = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetSharesAsync(Azure.Storage.Files.Shares.Models.ShareTraits traits = Azure.Storage.Files.Shares.Models.ShareTraits.None, Azure.Storage.Files.Shares.Models.ShareStates states = Azure.Storage.Files.Shares.Models.ShareStates.None, string prefix = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetProperties(Azure.Storage.Files.Shares.Models.ShareServiceProperties properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task SetPropertiesAsync(Azure.Storage.Files.Shares.Models.ShareServiceProperties properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response UndeleteShare(string deletedShareName, string deletedShareVersion, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UndeleteShareAsync(string deletedShareName, string deletedShareVersion, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class ShareUriBuilder + { + public ShareUriBuilder(System.Uri uri) { } + public string AccountName { get { throw null; } set { } } + public string DirectoryOrFilePath { get { throw null; } set { } } + public string Host { get { throw null; } set { } } + public int Port { get { throw null; } set { } } + public string Query { get { throw null; } set { } } + public Azure.Storage.Sas.SasQueryParameters Sas { get { throw null; } set { } } + public string Scheme { get { throw null; } set { } } + public string ShareName { get { throw null; } set { } } + public string Snapshot { get { throw null; } set { } } + public override string ToString() { throw null; } + public System.Uri ToUri() { throw null; } + } +} +namespace Azure.Storage.Files.Shares.Models +{ + public partial class CloseHandlesResult + { + internal CloseHandlesResult() { } + public int ClosedHandlesCount { get { throw null; } } + public int FailedHandlesCount { get { throw null; } } + } + [System.FlagsAttribute] + public enum CopyableFileSmbProperties + { + All = -1, + None = 0, + FileAttributes = 1, + CreatedOn = 2, + LastWrittenOn = 4, + ChangedOn = 8, + } + public enum CopyStatus + { + Pending = 0, + Success = 1, + Aborted = 2, + Failed = 3, + } + public enum FileLastWrittenMode + { + Now = 0, + Preserve = 1, + } + public partial class FileLeaseReleaseInfo + { + internal FileLeaseReleaseInfo() { } + public Azure.ETag ETag { get { throw null; } } + public System.DateTimeOffset LastModified { get { throw null; } } + } + public static partial class FileModelFactory + { + public static Azure.Storage.Files.Shares.Models.CloseHandlesResult ClosedHandlesInfo(int closedHandlesCount) { throw null; } + public static Azure.Storage.Files.Shares.Models.CloseHandlesResult ClosedHandlesInfo(int closedHandlesCount, int failedHandlesCount) { throw null; } + } + public partial class FileSmbProperties + { + public FileSmbProperties() { } + public Azure.Storage.Files.Shares.Models.NtfsFileAttributes? FileAttributes { get { throw null; } set { } } + public System.DateTimeOffset? FileChangedOn { get { throw null; } set { } } + public System.DateTimeOffset? FileCreatedOn { get { throw null; } set { } } + public string FileId { get { throw null; } } + public System.DateTimeOffset? FileLastWrittenOn { get { throw null; } set { } } + public string FilePermissionKey { get { throw null; } set { } } + public string ParentId { get { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + } + public static partial class FilesModelFactory + { + public static Azure.Storage.Files.Shares.Models.ShareFileItem ShareFileItem(bool isDirectory = false, string name = null, long? fileSize = default(long?), string id = null, Azure.Storage.Files.Shares.Models.ShareFileItemProperties properties = null, Azure.Storage.Files.Shares.Models.NtfsFileAttributes? fileAttributes = default(Azure.Storage.Files.Shares.Models.NtfsFileAttributes?), string permissionKey = null) { throw null; } + public static Azure.Storage.Files.Shares.Models.ShareDirectoryProperties StorageDirectoryProperties(System.Collections.Generic.IDictionary metadata, Azure.ETag eTag, System.DateTimeOffset lastModified, bool isServerEncrypted, string fileAttributes, System.DateTimeOffset fileCreationTime, System.DateTimeOffset fileLastWriteTime, System.DateTimeOffset fileChangeTime, string filePermissionKey, string fileId, string fileParentId) { throw null; } + public static Azure.Storage.Files.Shares.Models.ShareFileDownloadInfo StorageFileDownloadInfo(System.DateTimeOffset lastModified = default(System.DateTimeOffset), System.Collections.Generic.IEnumerable contentLanguage = null, string acceptRanges = null, System.DateTimeOffset copyCompletionTime = default(System.DateTimeOffset), string copyStatusDescription = null, string contentDisposition = null, string copyProgress = null, System.Uri copySource = null, Azure.Storage.Files.Shares.Models.CopyStatus copyStatus = Azure.Storage.Files.Shares.Models.CopyStatus.Pending, byte[] fileContentHash = null, bool isServerEncrypted = false, string cacheControl = null, string fileAttributes = null, System.Collections.Generic.IEnumerable contentEncoding = null, System.DateTimeOffset fileCreationTime = default(System.DateTimeOffset), byte[] contentHash = null, System.DateTimeOffset fileLastWriteTime = default(System.DateTimeOffset), Azure.ETag eTag = default(Azure.ETag), System.DateTimeOffset fileChangeTime = default(System.DateTimeOffset), string contentRange = null, string filePermissionKey = null, string contentType = null, string fileId = null, long contentLength = (long)0, string fileParentId = null, System.Collections.Generic.IDictionary metadata = null, System.IO.Stream content = null, string copyId = null) { throw null; } + public static Azure.Storage.Files.Shares.Models.ShareFileDownloadDetails StorageFileDownloadProperties(System.DateTimeOffset lastModified, System.Collections.Generic.IDictionary metadata, string contentType, string contentRange, Azure.ETag eTag, System.Collections.Generic.IEnumerable contentEncoding, string cacheControl, string contentDisposition, System.Collections.Generic.IEnumerable contentLanguage, string acceptRanges, System.DateTimeOffset copyCompletedOn, string copyStatusDescription, string copyId, string copyProgress, System.Uri copySource, Azure.Storage.Files.Shares.Models.CopyStatus copyStatus, byte[] fileContentHash, bool isServiceEncrypted) { throw null; } + public static Azure.Storage.Files.Shares.Models.ShareFileInfo StorageFileInfo(Azure.ETag eTag, System.DateTimeOffset lastModified, bool isServerEncrypted, string filePermissionKey, string fileAttributes, System.DateTimeOffset fileCreationTime, System.DateTimeOffset fileLastWriteTime, System.DateTimeOffset fileChangeTime, string fileId, string fileParentId) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.Storage.Files.Shares.Models.ShareFileItem StorageFileItem(bool isDirectory, string name, long? fileSize) { throw null; } + public static Azure.Storage.Files.Shares.Models.ShareFileProperties StorageFileProperties(System.DateTimeOffset lastModified, System.Collections.Generic.IDictionary metadata, long contentLength, string contentType, Azure.ETag eTag, byte[] contentHash, System.Collections.Generic.IEnumerable contentEncoding, string cacheControl, string contentDisposition, System.Collections.Generic.IEnumerable contentLanguage, System.DateTimeOffset copyCompletedOn, string copyStatusDescription, string copyId, string copyProgress, string copySource, Azure.Storage.Files.Shares.Models.CopyStatus copyStatus, bool isServerEncrypted, string fileAttributes, System.DateTimeOffset fileCreationTime, System.DateTimeOffset fileLastWriteTime, System.DateTimeOffset fileChangeTime, string filePermissionKey, string fileId, string fileParentId) { throw null; } + } + [System.FlagsAttribute] + public enum NtfsFileAttributes + { + ReadOnly = 1, + Hidden = 2, + System = 4, + None = 8, + Directory = 16, + Archive = 32, + Temporary = 64, + Offline = 128, + NotContentIndexed = 256, + NoScrubData = 512, + } + public enum PermissionCopyMode + { + Source = 0, + Override = 1, + } + public partial class PermissionInfo + { + internal PermissionInfo() { } + public string FilePermissionKey { get { throw null; } } + } + public partial class ShareAccessPolicy + { + public ShareAccessPolicy() { } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public System.DateTimeOffset ExpiresOn { get { throw null; } set { } } + public string Permissions { get { throw null; } set { } } + public System.DateTimeOffset? PolicyExpiresOn { get { throw null; } set { } } + public System.DateTimeOffset? PolicyStartsOn { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public System.DateTimeOffset StartsOn { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ShareAccessTier : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ShareAccessTier(string value) { throw null; } + public static Azure.Storage.Files.Shares.Models.ShareAccessTier Cool { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareAccessTier Hot { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareAccessTier TransactionOptimized { get { throw null; } } + public bool Equals(Azure.Storage.Files.Shares.Models.ShareAccessTier other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Storage.Files.Shares.Models.ShareAccessTier left, Azure.Storage.Files.Shares.Models.ShareAccessTier right) { throw null; } + public static implicit operator Azure.Storage.Files.Shares.Models.ShareAccessTier (string value) { throw null; } + public static bool operator !=(Azure.Storage.Files.Shares.Models.ShareAccessTier left, Azure.Storage.Files.Shares.Models.ShareAccessTier right) { throw null; } + public override string ToString() { throw null; } + } + public partial class ShareCorsRule + { + public ShareCorsRule() { } + public string AllowedHeaders { get { throw null; } set { } } + public string AllowedMethods { get { throw null; } set { } } + public string AllowedOrigins { get { throw null; } set { } } + public string ExposedHeaders { get { throw null; } set { } } + public int MaxAgeInSeconds { get { throw null; } set { } } + } + public partial class ShareCreateOptions + { + public ShareCreateOptions() { } + public Azure.Storage.Files.Shares.Models.ShareAccessTier? AccessTier { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } set { } } + public Azure.Storage.Files.Shares.Models.ShareProtocols? Protocols { get { throw null; } set { } } + public int? QuotaInGB { get { throw null; } set { } } + public Azure.Storage.Files.Shares.Models.ShareRootSquash? RootSquash { get { throw null; } set { } } + } + public partial class ShareDeleteOptions + { + public ShareDeleteOptions() { } + public Azure.Storage.Files.Shares.Models.ShareFileRequestConditions Conditions { get { throw null; } set { } } + public Azure.Storage.Files.Shares.Models.ShareSnapshotsDeleteOption? ShareSnapshotsDeleteOption { get { throw null; } set { } } + } + public partial class ShareDirectoryGetFilesAndDirectoriesOptions + { + public ShareDirectoryGetFilesAndDirectoriesOptions() { } + public bool? IncludeExtendedInfo { get { throw null; } set { } } + public string Prefix { get { throw null; } set { } } + public Azure.Storage.Files.Shares.Models.ShareFileTraits Traits { get { throw null; } set { } } + } + public partial class ShareDirectoryInfo + { + internal ShareDirectoryInfo() { } + public Azure.ETag ETag { get { throw null; } } + public System.DateTimeOffset LastModified { get { throw null; } } + public Azure.Storage.Files.Shares.Models.FileSmbProperties SmbProperties { get { throw null; } set { } } + } + public partial class ShareDirectoryProperties + { + internal ShareDirectoryProperties() { } + public Azure.ETag ETag { get { throw null; } } + public bool IsServerEncrypted { get { throw null; } } + public System.DateTimeOffset LastModified { get { throw null; } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + public Azure.Storage.Files.Shares.Models.FileSmbProperties SmbProperties { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ShareErrorCode : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ShareErrorCode(string value) { throw null; } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode AccountAlreadyExists { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode AccountBeingCreated { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode AccountIsDisabled { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode AuthenticationFailed { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode AuthorizationFailure { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode AuthorizationPermissionMismatch { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode AuthorizationProtocolMismatch { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode AuthorizationResourceTypeMismatch { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode AuthorizationServiceMismatch { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode AuthorizationSourceIPMismatch { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode CannotDeleteFileOrDirectory { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode ClientCacheFlushDelay { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode ConditionHeadersNotSupported { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode ConditionNotMet { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode ContainerQuotaDowngradeNotAllowed { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode DeletePending { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode DirectoryNotEmpty { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode EmptyMetadataKey { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode FeatureVersionMismatch { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode FileLockConflict { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode InsufficientAccountPermissions { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode InternalError { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode InvalidAuthenticationInfo { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode InvalidFileOrDirectoryPathName { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode InvalidHeaderValue { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode InvalidHttpVerb { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode InvalidInput { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode InvalidMd5 { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode InvalidMetadata { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode InvalidQueryParameterValue { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode InvalidRange { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode InvalidResourceName { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode InvalidUri { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode InvalidXmlDocument { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode InvalidXmlNodeValue { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode Md5Mismatch { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode MetadataTooLarge { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode MissingContentLengthHeader { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode MissingRequiredHeader { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode MissingRequiredQueryParameter { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode MissingRequiredXmlNode { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode MultipleConditionHeadersNotSupported { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode OperationTimedOut { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode OutOfRangeInput { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode OutOfRangeQueryParameterValue { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode ParentNotFound { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode ReadOnlyAttribute { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode RequestBodyTooLarge { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode RequestUrlFailedToParse { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode ResourceAlreadyExists { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode ResourceNotFound { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode ResourceTypeMismatch { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode ServerBusy { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode ShareAlreadyExists { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode ShareBeingDeleted { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode ShareDisabled { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode ShareHasSnapshots { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode ShareNotFound { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode ShareSnapshotCountExceeded { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode ShareSnapshotInProgress { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode ShareSnapshotOperationNotSupported { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode SharingViolation { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode UnsupportedHeader { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode UnsupportedHttpVerb { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode UnsupportedQueryParameter { get { throw null; } } + public static Azure.Storage.Files.Shares.Models.ShareErrorCode UnsupportedXmlNode { get { throw null; } } + public bool Equals(Azure.Storage.Files.Shares.Models.ShareErrorCode other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Storage.Files.Shares.Models.ShareErrorCode left, Azure.Storage.Files.Shares.Models.ShareErrorCode right) { throw null; } + public static implicit operator Azure.Storage.Files.Shares.Models.ShareErrorCode (string value) { throw null; } + public static bool operator !=(Azure.Storage.Files.Shares.Models.ShareErrorCode left, Azure.Storage.Files.Shares.Models.ShareErrorCode right) { throw null; } + public override string ToString() { throw null; } + } + public partial class ShareFileCopyInfo + { + internal ShareFileCopyInfo() { } + public string CopyId { get { throw null; } } + public Azure.Storage.Files.Shares.Models.CopyStatus CopyStatus { get { throw null; } } + public Azure.ETag ETag { get { throw null; } } + public System.DateTimeOffset LastModified { get { throw null; } } + } + public partial class ShareFileCopyOptions + { + public ShareFileCopyOptions() { } + public bool? Archive { get { throw null; } set { } } + public Azure.Storage.Files.Shares.Models.ShareFileRequestConditions Conditions { get { throw null; } set { } } + public string FilePermission { get { throw null; } set { } } + public Azure.Storage.Files.Shares.Models.PermissionCopyMode? FilePermissionCopyMode { get { throw null; } set { } } + public bool? IgnoreReadOnly { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } set { } } + public Azure.Storage.Files.Shares.Models.FileSmbProperties SmbProperties { get { throw null; } set { } } + public Azure.Storage.Files.Shares.Models.CopyableFileSmbProperties SmbPropertiesToCopy { get { throw null; } set { } } + } + public partial class ShareFileDownloadDetails + { + internal ShareFileDownloadDetails() { } + public string AcceptRanges { get { throw null; } } + public string CacheControl { get { throw null; } } + public string ContentDisposition { get { throw null; } } + public System.Collections.Generic.IEnumerable ContentEncoding { get { throw null; } } + public System.Collections.Generic.IEnumerable ContentLanguage { get { throw null; } } + public string ContentRange { get { throw null; } } + public System.DateTimeOffset CopyCompletedOn { get { throw null; } } + public string CopyId { get { throw null; } } + public string CopyProgress { get { throw null; } } + public System.Uri CopySource { get { throw null; } } + public Azure.Storage.Files.Shares.Models.CopyStatus CopyStatus { get { throw null; } } + public string CopyStatusDescription { get { throw null; } } + public Azure.ETag ETag { get { throw null; } } + public byte[] FileContentHash { get { throw null; } } + public bool IsServerEncrypted { get { throw null; } } + public System.DateTimeOffset LastModified { get { throw null; } } + public Azure.Storage.Files.Shares.Models.ShareLeaseDuration LeaseDuration { get { throw null; } } + public Azure.Storage.Files.Shares.Models.ShareLeaseState LeaseState { get { throw null; } } + public Azure.Storage.Files.Shares.Models.ShareLeaseStatus LeaseStatus { get { throw null; } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + public Azure.Storage.Files.Shares.Models.FileSmbProperties SmbProperties { get { throw null; } set { } } + } + public partial class ShareFileDownloadInfo : System.IDisposable + { + internal ShareFileDownloadInfo() { } + public System.IO.Stream Content { get { throw null; } } + public byte[] ContentHash { get { throw null; } } + public long ContentLength { get { throw null; } } + public string ContentType { get { throw null; } } + public Azure.Storage.Files.Shares.Models.ShareFileDownloadDetails Details { get { throw null; } } + public void Dispose() { } + } + public partial class ShareFileDownloadOptions + { + public ShareFileDownloadOptions() { } + public Azure.Storage.Files.Shares.Models.ShareFileRequestConditions Conditions { get { throw null; } set { } } + public Azure.HttpRange Range { get { throw null; } set { } } + public Azure.Storage.DownloadTransferValidationOptions TransferValidation { get { throw null; } set { } } + } + public partial class ShareFileGetRangeListDiffOptions + { + public ShareFileGetRangeListDiffOptions() { } + public Azure.Storage.Files.Shares.Models.ShareFileRequestConditions Conditions { get { throw null; } set { } } + public string PreviousSnapshot { get { throw null; } set { } } + public Azure.HttpRange? Range { get { throw null; } set { } } + public string Snapshot { get { throw null; } set { } } + } + public partial class ShareFileGetRangeListOptions + { + public ShareFileGetRangeListOptions() { } + public Azure.Storage.Files.Shares.Models.ShareFileRequestConditions Conditions { get { throw null; } set { } } + public Azure.HttpRange? Range { get { throw null; } set { } } + public string Snapshot { get { throw null; } set { } } + } + public partial class ShareFileHandle + { + internal ShareFileHandle() { } + public string ClientIp { get { throw null; } } + public string FileId { get { throw null; } } + public string HandleId { get { throw null; } } + public System.DateTimeOffset? LastReconnectedOn { get { throw null; } } + public System.DateTimeOffset? OpenedOn { get { throw null; } } + public string ParentId { get { throw null; } } + public string Path { get { throw null; } } + public string SessionId { get { throw null; } } + } + public partial class ShareFileHttpHeaders + { + public ShareFileHttpHeaders() { } + public string CacheControl { get { throw null; } set { } } + public string ContentDisposition { get { throw null; } set { } } + public string[] ContentEncoding { get { throw null; } set { } } + public byte[] ContentHash { get { throw null; } set { } } + public string[] ContentLanguage { get { throw null; } set { } } + public string ContentType { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + } + public partial class ShareFileInfo + { + internal ShareFileInfo() { } + public Azure.ETag ETag { get { throw null; } } + public bool IsServerEncrypted { get { throw null; } } + public System.DateTimeOffset LastModified { get { throw null; } } + public Azure.Storage.Files.Shares.Models.FileSmbProperties SmbProperties { get { throw null; } set { } } + } + public partial class ShareFileItem + { + internal ShareFileItem() { } + public Azure.Storage.Files.Shares.Models.NtfsFileAttributes? FileAttributes { get { throw null; } } + public long? FileSize { get { throw null; } } + public string Id { get { throw null; } } + public bool IsDirectory { get { throw null; } } + public string Name { get { throw null; } } + public string PermissionKey { get { throw null; } } + public Azure.Storage.Files.Shares.Models.ShareFileItemProperties Properties { get { throw null; } } + } + public partial class ShareFileItemProperties + { + internal ShareFileItemProperties() { } + public System.DateTimeOffset? ChangedOn { get { throw null; } } + public System.DateTimeOffset? CreatedOn { get { throw null; } } + public Azure.ETag? ETag { get { throw null; } } + public System.DateTimeOffset? LastAccessedOn { get { throw null; } } + public System.DateTimeOffset? LastModified { get { throw null; } } + public System.DateTimeOffset? LastWrittenOn { get { throw null; } } + } + public partial class ShareFileLease + { + internal ShareFileLease() { } + public Azure.ETag ETag { get { throw null; } } + public System.DateTimeOffset LastModified { get { throw null; } } + public string LeaseId { get { throw null; } } + public int? LeaseTime { get { throw null; } } + } + public partial class ShareFileModifiedException : System.Exception, System.Runtime.Serialization.ISerializable + { + protected ShareFileModifiedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext streamingContext) { } + public ShareFileModifiedException(string message, System.Uri resourceUri, Azure.ETag expectedETag, Azure.ETag actualETag, Azure.HttpRange range) { } + public Azure.ETag ActualETag { get { throw null; } } + public Azure.ETag ExpectedETag { get { throw null; } } + public Azure.HttpRange Range { get { throw null; } } + public System.Uri ResourceUri { get { throw null; } } + public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } + } + public partial class ShareFileOpenReadOptions + { + public ShareFileOpenReadOptions(bool allowModifications) { } + public int? BufferSize { get { throw null; } set { } } + public Azure.Storage.Files.Shares.Models.ShareFileRequestConditions Conditions { get { throw null; } set { } } + public long Position { get { throw null; } set { } } + public Azure.Storage.DownloadTransferValidationOptions TransferValidation { get { throw null; } set { } } + } + public partial class ShareFileOpenWriteOptions + { + public ShareFileOpenWriteOptions() { } + public long? BufferSize { get { throw null; } set { } } + public long? MaxSize { get { throw null; } set { } } + public Azure.Storage.Files.Shares.Models.ShareFileRequestConditions OpenConditions { get { throw null; } set { } } + public System.IProgress ProgressHandler { get { throw null; } set { } } + public Azure.Storage.UploadTransferValidationOptions TransferValidation { get { throw null; } set { } } + } + public partial class ShareFileProperties + { + internal ShareFileProperties() { } + public string CacheControl { get { throw null; } } + public string ContentDisposition { get { throw null; } } + public System.Collections.Generic.IEnumerable ContentEncoding { get { throw null; } } + public byte[] ContentHash { get { throw null; } } + public System.Collections.Generic.IEnumerable ContentLanguage { get { throw null; } } + public long ContentLength { get { throw null; } } + public string ContentType { get { throw null; } } + public System.DateTimeOffset CopyCompletedOn { get { throw null; } } + public string CopyId { get { throw null; } } + public string CopyProgress { get { throw null; } } + public string CopySource { get { throw null; } } + public Azure.Storage.Files.Shares.Models.CopyStatus CopyStatus { get { throw null; } } + public string CopyStatusDescription { get { throw null; } } + public Azure.ETag ETag { get { throw null; } } + public bool IsServerEncrypted { get { throw null; } } + public System.DateTimeOffset LastModified { get { throw null; } } + public Azure.Storage.Files.Shares.Models.ShareLeaseDuration LeaseDuration { get { throw null; } } + public Azure.Storage.Files.Shares.Models.ShareLeaseState LeaseState { get { throw null; } } + public Azure.Storage.Files.Shares.Models.ShareLeaseStatus LeaseStatus { get { throw null; } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + public Azure.Storage.Files.Shares.Models.FileSmbProperties SmbProperties { get { throw null; } set { } } + } + public partial class ShareFileRangeInfo + { + internal ShareFileRangeInfo() { } + public System.Collections.Generic.IEnumerable ClearRanges { get { throw null; } } + public Azure.ETag ETag { get { throw null; } } + public long FileContentLength { get { throw null; } } + public System.DateTimeOffset LastModified { get { throw null; } } + public System.Collections.Generic.IEnumerable Ranges { get { throw null; } } + } + public enum ShareFileRangeWriteType + { + Update = 0, + Clear = 1, + } + public partial class ShareFileRenameOptions + { + public ShareFileRenameOptions() { } + public string ContentType { get { throw null; } set { } } + public Azure.Storage.Files.Shares.Models.ShareFileRequestConditions DestinationConditions { get { throw null; } set { } } + public string FilePermission { get { throw null; } set { } } + public bool? IgnoreReadOnly { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } set { } } + public bool? ReplaceIfExists { get { throw null; } set { } } + public Azure.Storage.Files.Shares.Models.FileSmbProperties SmbProperties { get { throw null; } set { } } + public Azure.Storage.Files.Shares.Models.ShareFileRequestConditions SourceConditions { get { throw null; } set { } } + } + public partial class ShareFileRequestConditions + { + public ShareFileRequestConditions() { } + public string LeaseId { get { throw null; } set { } } + public override string ToString() { throw null; } + } + [System.FlagsAttribute] + public enum ShareFileTraits + { + All = -1, + None = 0, + Timestamps = 1, + ETag = 2, + Attributes = 4, + PermissionKey = 8, + } + public partial class ShareFileUploadInfo + { + internal ShareFileUploadInfo() { } + public byte[] ContentHash { get { throw null; } } + public Azure.ETag ETag { get { throw null; } } + public bool IsServerEncrypted { get { throw null; } } + public System.DateTimeOffset LastModified { get { throw null; } } + } + public partial class ShareFileUploadOptions + { + public ShareFileUploadOptions() { } + public Azure.Storage.Files.Shares.Models.ShareFileRequestConditions Conditions { get { throw null; } set { } } + public System.IProgress ProgressHandler { get { throw null; } set { } } + public Azure.Storage.StorageTransferOptions TransferOptions { get { throw null; } set { } } + public Azure.Storage.UploadTransferValidationOptions TransferValidation { get { throw null; } set { } } + } + public partial class ShareFileUploadRangeFromUriOptions + { + public ShareFileUploadRangeFromUriOptions() { } + public Azure.Storage.Files.Shares.Models.ShareFileRequestConditions Conditions { get { throw null; } set { } } + public Azure.Storage.Files.Shares.Models.FileLastWrittenMode? FileLastWrittenMode { get { throw null; } set { } } + public Azure.HttpAuthorization SourceAuthentication { get { throw null; } set { } } + } + public partial class ShareFileUploadRangeOptions + { + public ShareFileUploadRangeOptions() { } + public Azure.Storage.Files.Shares.Models.ShareFileRequestConditions Conditions { get { throw null; } set { } } + public Azure.Storage.Files.Shares.Models.FileLastWrittenMode? FileLastWrittenMode { get { throw null; } set { } } + public System.IProgress ProgressHandler { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public byte[] TransactionalContentHash { get { throw null; } set { } } + public Azure.Storage.UploadTransferValidationOptions TransferValidation { get { throw null; } set { } } + } + public partial class ShareInfo + { + internal ShareInfo() { } + public Azure.ETag ETag { get { throw null; } } + public System.DateTimeOffset LastModified { get { throw null; } } + } + public partial class ShareItem + { + internal ShareItem() { } + public bool? IsDeleted { get { throw null; } } + public string Name { get { throw null; } } + public Azure.Storage.Files.Shares.Models.ShareProperties Properties { get { throw null; } } + public string Snapshot { get { throw null; } } + public string VersionId { get { throw null; } } + } + public enum ShareLeaseDuration + { + Infinite = 0, + Fixed = 1, + } + public enum ShareLeaseState + { + Available = 0, + Leased = 1, + Expired = 2, + Breaking = 3, + Broken = 4, + } + public enum ShareLeaseStatus + { + Locked = 0, + Unlocked = 1, + } + public partial class ShareMetrics + { + public ShareMetrics() { } + public bool Enabled { get { throw null; } set { } } + public bool? IncludeApis { get { throw null; } set { } } + public Azure.Storage.Files.Shares.Models.ShareRetentionPolicy RetentionPolicy { get { throw null; } set { } } + public string Version { get { throw null; } set { } } + } + public static partial class ShareModelFactory + { + public static Azure.Storage.Files.Shares.Models.FileLeaseReleaseInfo FileLeaseReleaseInfo(Azure.ETag eTag, System.DateTimeOffset lastModified) { throw null; } + public static Azure.Storage.Files.Shares.Models.PermissionInfo PermissionInfo(string filePermissionKey) { throw null; } + public static Azure.Storage.Files.Shares.Models.ShareFileCopyInfo ShareFileCopyInfo(Azure.ETag eTag, System.DateTimeOffset lastModified, string copyId, Azure.Storage.Files.Shares.Models.CopyStatus copyStatus) { throw null; } + public static Azure.Storage.Files.Shares.Models.ShareFileHandle ShareFileHandle(string handleId, string path, string fileId, string sessionId, string clientIp, string parentId = null, System.DateTimeOffset? openedOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastReconnectedOn = default(System.DateTimeOffset?)) { throw null; } + public static Azure.Storage.Files.Shares.Models.ShareFileItemProperties ShareFileItemProperties(System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastAccessedOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastWrittenOn = default(System.DateTimeOffset?), System.DateTimeOffset? changedOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastModified = default(System.DateTimeOffset?), Azure.ETag? etag = default(Azure.ETag?)) { throw null; } + public static Azure.Storage.Files.Shares.Models.ShareFileLease ShareFileLease(Azure.ETag eTag, System.DateTimeOffset lastModified, string leaseId) { throw null; } + public static Azure.Storage.Files.Shares.Models.ShareFileRangeInfo ShareFileRangeInfo(System.DateTimeOffset lastModified, Azure.ETag eTag, long fileContentLength, System.Collections.Generic.IEnumerable ranges) { throw null; } + public static Azure.Storage.Files.Shares.Models.ShareFileUploadInfo ShareFileUploadInfo(Azure.ETag eTag, System.DateTimeOffset lastModified, byte[] contentHash, bool isServerEncrypted) { throw null; } + public static Azure.Storage.Files.Shares.Models.ShareInfo ShareInfo(Azure.ETag eTag, System.DateTimeOffset lastModified) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.Storage.Files.Shares.Models.ShareItem ShareItem(string name, Azure.Storage.Files.Shares.Models.ShareProperties properties, string snapshot) { throw null; } + public static Azure.Storage.Files.Shares.Models.ShareItem ShareItem(string name, Azure.Storage.Files.Shares.Models.ShareProperties properties, string snapshot = null, bool? isDeleted = default(bool?), string versionId = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.Storage.Files.Shares.Models.ShareProperties ShareProperties(System.DateTimeOffset? lastModified, Azure.ETag? eTag, int? quotaInGB, System.Collections.Generic.IDictionary metadata) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.Storage.Files.Shares.Models.ShareProperties ShareProperties(System.DateTimeOffset? lastModified, Azure.ETag? eTag, int? provisionedIops, int? provisionedIngressMBps, int? provisionedEgressMBps, System.DateTimeOffset? nextAllowedQuotaDowngradeTime, System.DateTimeOffset? deletedOn, int? remainingRetentionDays, int? quotaInGB, System.Collections.Generic.IDictionary metadata) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.Storage.Files.Shares.Models.ShareProperties ShareProperties(System.DateTimeOffset? lastModified, Azure.ETag? eTag, int? provisionedIops, int? provisionedIngressMBps, int? provisionedEgressMBps, System.DateTimeOffset? nextAllowedQuotaDowngradeTime, int? quotaInGB, System.Collections.Generic.IDictionary metadata) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.Storage.Files.Shares.Models.ShareProperties ShareProperties(string accessTier, System.DateTimeOffset? lastModified, int? provisionedIops, int? provisionedIngressMBps, int? provisionedEgressMBps, System.DateTimeOffset? nextAllowedQuotaDowngradeTime, System.DateTimeOffset? deletedOn, int? remainingRetentionDays, Azure.ETag? eTag, System.DateTimeOffset? accessTierChangeTime, string accessTierTransitionState, Azure.Storage.Files.Shares.Models.ShareLeaseStatus? leaseStatus, Azure.Storage.Files.Shares.Models.ShareLeaseState? leaseState, Azure.Storage.Files.Shares.Models.ShareLeaseDuration? leaseDuration, int? quotaInGB, System.Collections.Generic.IDictionary metadata) { throw null; } + public static Azure.Storage.Files.Shares.Models.ShareProperties ShareProperties(string accessTier = null, System.DateTimeOffset? lastModified = default(System.DateTimeOffset?), int? provisionedIops = default(int?), int? provisionedIngressMBps = default(int?), int? provisionedEgressMBps = default(int?), System.DateTimeOffset? nextAllowedQuotaDowngradeTime = default(System.DateTimeOffset?), System.DateTimeOffset? deletedOn = default(System.DateTimeOffset?), int? remainingRetentionDays = default(int?), Azure.ETag? eTag = default(Azure.ETag?), System.DateTimeOffset? accessTierChangeTime = default(System.DateTimeOffset?), string accessTierTransitionState = null, Azure.Storage.Files.Shares.Models.ShareLeaseStatus? leaseStatus = default(Azure.Storage.Files.Shares.Models.ShareLeaseStatus?), Azure.Storage.Files.Shares.Models.ShareLeaseState? leaseState = default(Azure.Storage.Files.Shares.Models.ShareLeaseState?), Azure.Storage.Files.Shares.Models.ShareLeaseDuration? leaseDuration = default(Azure.Storage.Files.Shares.Models.ShareLeaseDuration?), int? quotaInGB = default(int?), System.Collections.Generic.IDictionary metadata = null, Azure.Storage.Files.Shares.Models.ShareProtocols? protocols = default(Azure.Storage.Files.Shares.Models.ShareProtocols?), Azure.Storage.Files.Shares.Models.ShareRootSquash? rootSquash = default(Azure.Storage.Files.Shares.Models.ShareRootSquash?)) { throw null; } + public static Azure.Storage.Files.Shares.Models.ShareSnapshotInfo ShareSnapshotInfo(string snapshot, Azure.ETag eTag, System.DateTimeOffset lastModified) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.Storage.Files.Shares.Models.ShareStatistics ShareStatistics(int shareUsageBytes) { throw null; } + public static Azure.Storage.Files.Shares.Models.ShareStatistics ShareStatistics(long shareUsageInBytes) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.Storage.Files.Shares.Models.StorageClosedHandlesSegment StorageClosedHandlesSegment(string marker, int numberOfHandlesClosed) { throw null; } + public static Azure.Storage.Files.Shares.Models.StorageClosedHandlesSegment StorageClosedHandlesSegment(string marker, int numberOfHandlesClosed, int numberOfHandlesFailedToClose) { throw null; } + } + public partial class ShareProperties + { + internal ShareProperties() { } + public string AccessTier { get { throw null; } } + public System.DateTimeOffset? AccessTierChangeTime { get { throw null; } } + public string AccessTierTransitionState { get { throw null; } } + public System.DateTimeOffset? DeletedOn { get { throw null; } } + public Azure.ETag? ETag { get { throw null; } } + public System.DateTimeOffset? LastModified { get { throw null; } } + public Azure.Storage.Files.Shares.Models.ShareLeaseDuration? LeaseDuration { get { throw null; } } + public Azure.Storage.Files.Shares.Models.ShareLeaseState? LeaseState { get { throw null; } } + public Azure.Storage.Files.Shares.Models.ShareLeaseStatus? LeaseStatus { get { throw null; } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + public System.DateTimeOffset? NextAllowedQuotaDowngradeTime { get { throw null; } } + public Azure.Storage.Files.Shares.Models.ShareProtocols? Protocols { get { throw null; } } + public int? ProvisionedBandwidthMiBps { get { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public int? ProvisionedEgressMBps { get { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public int? ProvisionedIngressMBps { get { throw null; } } + public int? ProvisionedIops { get { throw null; } } + public int? QuotaInGB { get { throw null; } } + public int? RemainingRetentionDays { get { throw null; } } + public Azure.Storage.Files.Shares.Models.ShareRootSquash? RootSquash { get { throw null; } } + } + [System.FlagsAttribute] + public enum ShareProtocols + { + Smb = 1, + Nfs = 2, + } + public partial class ShareProtocolSettings + { + public ShareProtocolSettings() { } + public Azure.Storage.Files.Shares.Models.ShareSmbSettings Smb { get { throw null; } set { } } + } + public partial class ShareRetentionPolicy + { + public ShareRetentionPolicy() { } + public int? Days { get { throw null; } set { } } + public bool Enabled { get { throw null; } set { } } + } + public enum ShareRootSquash + { + NoRootSquash = 0, + RootSquash = 1, + AllSquash = 2, + } + public partial class ShareServiceProperties + { + public ShareServiceProperties() { } + public System.Collections.Generic.IList Cors { get { throw null; } set { } } + public Azure.Storage.Files.Shares.Models.ShareMetrics HourMetrics { get { throw null; } set { } } + public Azure.Storage.Files.Shares.Models.ShareMetrics MinuteMetrics { get { throw null; } set { } } + public Azure.Storage.Files.Shares.Models.ShareProtocolSettings Protocol { get { throw null; } set { } } + } + public partial class ShareSetPropertiesOptions + { + public ShareSetPropertiesOptions() { } + public Azure.Storage.Files.Shares.Models.ShareAccessTier? AccessTier { get { throw null; } set { } } + public Azure.Storage.Files.Shares.Models.ShareFileRequestConditions Conditions { get { throw null; } set { } } + public int? QuotaInGB { get { throw null; } set { } } + public Azure.Storage.Files.Shares.Models.ShareRootSquash? RootSquash { get { throw null; } set { } } + } + public partial class ShareSignedIdentifier + { + public ShareSignedIdentifier() { } + public Azure.Storage.Files.Shares.Models.ShareAccessPolicy AccessPolicy { get { throw null; } set { } } + public string Id { get { throw null; } set { } } + } + public partial class ShareSmbSettings + { + public ShareSmbSettings() { } + public Azure.Storage.Files.Shares.Models.SmbMultichannel Multichannel { get { throw null; } set { } } + } + public static partial class SharesModelFactory + { + public static Azure.Storage.Files.Shares.Models.FileSmbProperties FileSmbProperties(System.DateTimeOffset? fileChangedOn, string fileId, string parentId) { throw null; } + public static Azure.Storage.Files.Shares.Models.ShareDirectoryInfo StorageDirectoryInfo(Azure.ETag eTag, System.DateTimeOffset lastModified, string filePermissionKey, string fileAttributes, System.DateTimeOffset fileCreationTime, System.DateTimeOffset fileLastWriteTime, System.DateTimeOffset fileChangeTime, string fileId, string fileParentId) { throw null; } + } + public partial class ShareSnapshotInfo + { + internal ShareSnapshotInfo() { } + public Azure.ETag ETag { get { throw null; } } + public System.DateTimeOffset LastModified { get { throw null; } } + public string Snapshot { get { throw null; } } + } + public enum ShareSnapshotsDeleteOption + { + Include = 0, + IncludeWithLeased = 1, + } + [System.FlagsAttribute] + public enum ShareStates + { + All = -1, + None = 0, + Snapshots = 1, + Deleted = 2, + } + public partial class ShareStatistics + { + internal ShareStatistics() { } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public int ShareUsageBytes { get { throw null; } } + public long ShareUsageInBytes { get { throw null; } } + } + [System.FlagsAttribute] + public enum ShareTraits + { + All = -1, + None = 0, + Metadata = 1, + } + public partial class SmbMultichannel + { + public SmbMultichannel() { } + public bool? Enabled { get { throw null; } set { } } + } + public partial class StorageClosedHandlesSegment + { + internal StorageClosedHandlesSegment() { } + public string Marker { get { throw null; } } + public int NumberOfHandlesClosed { get { throw null; } } + public int NumberOfHandlesFailedToClose { get { throw null; } } + } +} +namespace Azure.Storage.Files.Shares.Specialized +{ + public partial class ShareLeaseClient + { + public static readonly System.TimeSpan InfiniteLeaseDuration; + protected ShareLeaseClient() { } + public ShareLeaseClient(Azure.Storage.Files.Shares.ShareClient client, string leaseId = null) { } + public ShareLeaseClient(Azure.Storage.Files.Shares.ShareFileClient client, string leaseId = null) { } + protected virtual Azure.Storage.Files.Shares.ShareFileClient FileClient { get { throw null; } } + public virtual string LeaseId { get { throw null; } } + protected virtual Azure.Storage.Files.Shares.ShareClient ShareClient { get { throw null; } } + public System.Uri Uri { get { throw null; } } + public virtual Azure.Response Acquire(System.TimeSpan? duration = default(System.TimeSpan?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual Azure.Response Acquire(System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual System.Threading.Tasks.Task> AcquireAsync(System.TimeSpan? duration = default(System.TimeSpan?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public virtual System.Threading.Tasks.Task> AcquireAsync(System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.Response Break(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> BreakAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Change(string proposedId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ChangeAsync(string proposedId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Release(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ReleaseAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Renew(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RenewAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public static partial class SpecializedFileExtensions + { + public static Azure.Storage.Files.Shares.Specialized.ShareLeaseClient GetShareLeaseClient(this Azure.Storage.Files.Shares.ShareClient client, string leaseId = null) { throw null; } + public static Azure.Storage.Files.Shares.Specialized.ShareLeaseClient GetShareLeaseClient(this Azure.Storage.Files.Shares.ShareFileClient client, string leaseId = null) { throw null; } + } + public static partial class SpecializedShareExtensions + { + public static Azure.Storage.Files.Shares.ShareDirectoryClient GetParentDirectoryClient(this Azure.Storage.Files.Shares.ShareDirectoryClient client) { throw null; } + public static Azure.Storage.Files.Shares.ShareServiceClient GetParentServiceClient(this Azure.Storage.Files.Shares.ShareClient client) { throw null; } + public static Azure.Storage.Files.Shares.ShareClient GetParentShareClient(this Azure.Storage.Files.Shares.ShareDirectoryClient client) { throw null; } + public static Azure.Storage.Files.Shares.ShareClient GetParentShareClient(this Azure.Storage.Files.Shares.ShareFileClient client) { throw null; } + public static Azure.Storage.Files.Shares.ShareDirectoryClient GetParentShareDirectoryClient(this Azure.Storage.Files.Shares.ShareFileClient client) { throw null; } + } +} +namespace Azure.Storage.Sas +{ + [System.FlagsAttribute] + public enum ShareAccountSasPermissions + { + All = -1, + Read = 1, + Add = 2, + Create = 4, + Write = 8, + Delete = 16, + List = 32, + } + [System.FlagsAttribute] + public enum ShareFileSasPermissions + { + All = -1, + Read = 1, + Create = 2, + Write = 4, + Delete = 8, + } + public partial class ShareSasBuilder + { + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public ShareSasBuilder() { } + public ShareSasBuilder(Azure.Storage.Sas.ShareFileSasPermissions permissions, System.DateTimeOffset expiresOn) { } + public ShareSasBuilder(Azure.Storage.Sas.ShareSasPermissions permissions, System.DateTimeOffset expiresOn) { } + public string CacheControl { get { throw null; } set { } } + public string ContentDisposition { get { throw null; } set { } } + public string ContentEncoding { get { throw null; } set { } } + public string ContentLanguage { get { throw null; } set { } } + public string ContentType { get { throw null; } set { } } + public System.DateTimeOffset ExpiresOn { get { throw null; } set { } } + public string FilePath { get { throw null; } set { } } + public string Identifier { get { throw null; } set { } } + public Azure.Storage.Sas.SasIPRange IPRange { get { throw null; } set { } } + public string Permissions { get { throw null; } } + public Azure.Storage.Sas.SasProtocol Protocol { get { throw null; } set { } } + public string Resource { get { throw null; } set { } } + public string ShareName { get { throw null; } set { } } + public System.DateTimeOffset StartsOn { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public string Version { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public void SetPermissions(Azure.Storage.Sas.ShareAccountSasPermissions permissions) { } + public void SetPermissions(Azure.Storage.Sas.ShareFileSasPermissions permissions) { } + public void SetPermissions(Azure.Storage.Sas.ShareSasPermissions permissions) { } + public void SetPermissions(string rawPermissions) { } + public void SetPermissions(string rawPermissions, bool normalize = false) { } + public Azure.Storage.Sas.SasQueryParameters ToSasQueryParameters(Azure.Storage.StorageSharedKeyCredential sharedKeyCredential) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override string ToString() { throw null; } + } + [System.FlagsAttribute] + public enum ShareSasPermissions + { + All = -1, + Read = 1, + Create = 2, + Write = 4, + Delete = 8, + List = 16, + } +} +namespace Microsoft.Extensions.Azure +{ + public static partial class ShareClientBuilderExtensions + { + public static Azure.Core.Extensions.IAzureClientBuilder AddFileServiceClient(this TBuilder builder, string connectionString) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilder { throw null; } + public static Azure.Core.Extensions.IAzureClientBuilder AddFileServiceClient(this TBuilder builder, System.Uri serviceUri) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilder { throw null; } + public static Azure.Core.Extensions.IAzureClientBuilder AddFileServiceClient(this TBuilder builder, System.Uri serviceUri, Azure.Storage.StorageSharedKeyCredential sharedKeyCredential) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilder { throw null; } + public static Azure.Core.Extensions.IAzureClientBuilder AddFileServiceClient(this TBuilder builder, TConfiguration configuration) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration { throw null; } + } +} diff --git a/sdk/storage/Azure.Storage.Queues/api/Azure.Storage.Queues.net6.0.cs b/sdk/storage/Azure.Storage.Queues/api/Azure.Storage.Queues.net6.0.cs new file mode 100644 index 0000000000000..c1a1e8ff69480 --- /dev/null +++ b/sdk/storage/Azure.Storage.Queues/api/Azure.Storage.Queues.net6.0.cs @@ -0,0 +1,456 @@ +namespace Azure.Storage.Queues +{ + public partial class QueueClient + { + protected QueueClient() { } + public QueueClient(string connectionString, string queueName) { } + public QueueClient(string connectionString, string queueName, Azure.Storage.Queues.QueueClientOptions options) { } + public QueueClient(System.Uri queueUri, Azure.AzureSasCredential credential, Azure.Storage.Queues.QueueClientOptions options = null) { } + public QueueClient(System.Uri queueUri, Azure.Core.TokenCredential credential, Azure.Storage.Queues.QueueClientOptions options = null) { } + public QueueClient(System.Uri queueUri, Azure.Storage.Queues.QueueClientOptions options = null) { } + public QueueClient(System.Uri queueUri, Azure.Storage.StorageSharedKeyCredential credential, Azure.Storage.Queues.QueueClientOptions options = null) { } + public virtual string AccountName { get { throw null; } } + public virtual bool CanGenerateSasUri { get { throw null; } } + public virtual int MaxPeekableMessages { get { throw null; } } + public virtual int MessageMaxBytes { get { throw null; } } + protected virtual System.Uri MessagesUri { get { throw null; } } + public virtual string Name { get { throw null; } } + public virtual System.Uri Uri { get { throw null; } } + public virtual Azure.Response ClearMessages(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task ClearMessagesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Create(System.Collections.Generic.IDictionary metadata = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task CreateAsync(System.Collections.Generic.IDictionary metadata = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response CreateIfNotExists(System.Collections.Generic.IDictionary metadata = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task CreateIfNotExistsAsync(System.Collections.Generic.IDictionary metadata = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Delete(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response DeleteIfExists(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> DeleteIfExistsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response DeleteMessage(string messageId, string popReceipt, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteMessageAsync(string messageId, string popReceipt, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Uri GenerateSasUri(Azure.Storage.Sas.QueueSasBuilder builder) { throw null; } + public virtual System.Uri GenerateSasUri(Azure.Storage.Sas.QueueSasPermissions permissions, System.DateTimeOffset expiresOn) { throw null; } + public virtual Azure.Response> GetAccessPolicy(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task>> GetAccessPolicyAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected internal virtual Azure.Storage.Queues.QueueServiceClient GetParentQueueServiceClientCore() { throw null; } + public virtual Azure.Response GetProperties(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetPropertiesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected virtual System.Threading.Tasks.Task OnMessageDecodingFailedAsync(Azure.Storage.Queues.Models.QueueMessage receivedMessage, Azure.Storage.Queues.Models.PeekedMessage peekedMessage, bool isRunningSynchronously, System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual Azure.Response PeekMessage(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> PeekMessageAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response PeekMessages(int? maxMessages = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> PeekMessagesAsync(int? maxMessages = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response ReceiveMessage(System.TimeSpan? visibilityTimeout = default(System.TimeSpan?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ReceiveMessageAsync(System.TimeSpan? visibilityTimeout = default(System.TimeSpan?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response ReceiveMessages() { throw null; } + public virtual Azure.Response ReceiveMessages(int? maxMessages = default(int?), System.TimeSpan? visibilityTimeout = default(System.TimeSpan?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response ReceiveMessages(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ReceiveMessagesAsync() { throw null; } + public virtual System.Threading.Tasks.Task> ReceiveMessagesAsync(int? maxMessages = default(int?), System.TimeSpan? visibilityTimeout = default(System.TimeSpan?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ReceiveMessagesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SendMessage(System.BinaryData message, System.TimeSpan? visibilityTimeout = default(System.TimeSpan?), System.TimeSpan? timeToLive = default(System.TimeSpan?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SendMessage(string messageText) { throw null; } + public virtual Azure.Response SendMessage(string messageText, System.TimeSpan? visibilityTimeout = default(System.TimeSpan?), System.TimeSpan? timeToLive = default(System.TimeSpan?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SendMessage(string messageText, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SendMessageAsync(System.BinaryData message, System.TimeSpan? visibilityTimeout = default(System.TimeSpan?), System.TimeSpan? timeToLive = default(System.TimeSpan?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SendMessageAsync(string messageText) { throw null; } + public virtual System.Threading.Tasks.Task> SendMessageAsync(string messageText, System.TimeSpan? visibilityTimeout = default(System.TimeSpan?), System.TimeSpan? timeToLive = default(System.TimeSpan?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SendMessageAsync(string messageText, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetAccessPolicy(System.Collections.Generic.IEnumerable permissions, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task SetAccessPolicyAsync(System.Collections.Generic.IEnumerable permissions, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetMetadata(System.Collections.Generic.IDictionary metadata, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task SetMetadataAsync(System.Collections.Generic.IDictionary metadata, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response UpdateMessage(string messageId, string popReceipt, System.BinaryData message, System.TimeSpan visibilityTimeout = default(System.TimeSpan), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response UpdateMessage(string messageId, string popReceipt, string messageText = null, System.TimeSpan visibilityTimeout = default(System.TimeSpan), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateMessageAsync(string messageId, string popReceipt, System.BinaryData message, System.TimeSpan visibilityTimeout = default(System.TimeSpan), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateMessageAsync(string messageId, string popReceipt, string messageText = null, System.TimeSpan visibilityTimeout = default(System.TimeSpan), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected internal virtual Azure.Storage.Queues.QueueClient WithClientSideEncryptionOptionsCore(Azure.Storage.ClientSideEncryptionOptions clientSideEncryptionOptions) { throw null; } + } + public partial class QueueClientOptions : Azure.Core.ClientOptions + { + public QueueClientOptions(Azure.Storage.Queues.QueueClientOptions.ServiceVersion version = Azure.Storage.Queues.QueueClientOptions.ServiceVersion.V2021_12_02) { } + public bool EnableTenantDiscovery { get { throw null; } set { } } + public System.Uri GeoRedundantSecondaryUri { get { throw null; } set { } } + public Azure.Storage.Queues.QueueMessageEncoding MessageEncoding { get { throw null; } set { } } + public Azure.Storage.Queues.QueueClientOptions.ServiceVersion Version { get { throw null; } } + public event Azure.Core.SyncAsyncEventHandler MessageDecodingFailed { add { } remove { } } + public enum ServiceVersion + { + V2019_02_02 = 1, + V2019_07_07 = 2, + V2019_12_12 = 3, + V2020_02_10 = 4, + V2020_04_08 = 5, + V2020_06_12 = 6, + V2020_08_04 = 7, + V2020_10_02 = 8, + V2020_12_06 = 9, + V2021_02_12 = 10, + V2021_04_10 = 11, + V2021_06_08 = 12, + V2021_08_06 = 13, + V2021_10_04 = 14, + V2021_12_02 = 15, + } + } + public partial class QueueMessageDecodingFailedEventArgs : Azure.SyncAsyncEventArgs + { + public QueueMessageDecodingFailedEventArgs(Azure.Storage.Queues.QueueClient queueClient, Azure.Storage.Queues.Models.QueueMessage receivedMessage, Azure.Storage.Queues.Models.PeekedMessage peekedMessage, bool isRunningSynchronously, System.Threading.CancellationToken cancellationToken) : base (default(bool), default(System.Threading.CancellationToken)) { } + public Azure.Storage.Queues.Models.PeekedMessage PeekedMessage { get { throw null; } } + public Azure.Storage.Queues.QueueClient Queue { get { throw null; } } + public Azure.Storage.Queues.Models.QueueMessage ReceivedMessage { get { throw null; } } + } + public enum QueueMessageEncoding + { + None = 0, + Base64 = 1, + } + public partial class QueueServiceClient + { + protected QueueServiceClient() { } + public QueueServiceClient(string connectionString) { } + public QueueServiceClient(string connectionString, Azure.Storage.Queues.QueueClientOptions options) { } + public QueueServiceClient(System.Uri serviceUri, Azure.AzureSasCredential credential, Azure.Storage.Queues.QueueClientOptions options = null) { } + public QueueServiceClient(System.Uri serviceUri, Azure.Core.TokenCredential credential, Azure.Storage.Queues.QueueClientOptions options = null) { } + public QueueServiceClient(System.Uri serviceUri, Azure.Storage.Queues.QueueClientOptions options = null) { } + public QueueServiceClient(System.Uri serviceUri, Azure.Storage.StorageSharedKeyCredential credential, Azure.Storage.Queues.QueueClientOptions options = null) { } + public virtual string AccountName { get { throw null; } } + public virtual bool CanGenerateAccountSasUri { get { throw null; } } + public virtual System.Uri Uri { get { throw null; } } + public virtual Azure.Response CreateQueue(string queueName, System.Collections.Generic.IDictionary metadata = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateQueueAsync(string queueName, System.Collections.Generic.IDictionary metadata = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response DeleteQueue(string queueName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteQueueAsync(string queueName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public System.Uri GenerateAccountSasUri(Azure.Storage.Sas.AccountSasBuilder builder) { throw null; } + public System.Uri GenerateAccountSasUri(Azure.Storage.Sas.AccountSasPermissions permissions, System.DateTimeOffset expiresOn, Azure.Storage.Sas.AccountSasResourceTypes resourceTypes) { throw null; } + public virtual Azure.Response GetProperties(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetPropertiesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Storage.Queues.QueueClient GetQueueClient(string queueName) { throw null; } + public virtual Azure.Pageable GetQueues(Azure.Storage.Queues.Models.QueueTraits traits = Azure.Storage.Queues.Models.QueueTraits.None, string prefix = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetQueuesAsync(Azure.Storage.Queues.Models.QueueTraits traits = Azure.Storage.Queues.Models.QueueTraits.None, string prefix = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetStatistics(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetStatisticsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetProperties(Azure.Storage.Queues.Models.QueueServiceProperties properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task SetPropertiesAsync(Azure.Storage.Queues.Models.QueueServiceProperties properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class QueueUriBuilder + { + public QueueUriBuilder(System.Uri uri) { } + public string AccountName { get { throw null; } set { } } + public string Host { get { throw null; } set { } } + public string MessageId { get { throw null; } set { } } + public bool Messages { get { throw null; } set { } } + public int Port { get { throw null; } set { } } + public string Query { get { throw null; } set { } } + public string QueueName { get { throw null; } set { } } + public Azure.Storage.Sas.SasQueryParameters Sas { get { throw null; } set { } } + public string Scheme { get { throw null; } set { } } + public override string ToString() { throw null; } + public System.Uri ToUri() { throw null; } + } +} +namespace Azure.Storage.Queues.Models +{ + public partial class PeekedMessage + { + internal PeekedMessage() { } + public System.BinaryData Body { get { throw null; } } + public long DequeueCount { get { throw null; } } + public System.DateTimeOffset? ExpiresOn { get { throw null; } } + public System.DateTimeOffset? InsertedOn { get { throw null; } } + public string MessageId { get { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public string MessageText { get { throw null; } } + } + public partial class QueueAccessPolicy + { + public QueueAccessPolicy() { } + public System.DateTimeOffset? ExpiresOn { get { throw null; } set { } } + public string Permissions { get { throw null; } set { } } + public System.DateTimeOffset? StartsOn { get { throw null; } set { } } + } + public partial class QueueAnalyticsLogging + { + public QueueAnalyticsLogging() { } + public bool Delete { get { throw null; } set { } } + public bool Read { get { throw null; } set { } } + public Azure.Storage.Queues.Models.QueueRetentionPolicy RetentionPolicy { get { throw null; } set { } } + public string Version { get { throw null; } set { } } + public bool Write { get { throw null; } set { } } + } + public partial class QueueCorsRule + { + public QueueCorsRule() { } + public string AllowedHeaders { get { throw null; } set { } } + public string AllowedMethods { get { throw null; } set { } } + public string AllowedOrigins { get { throw null; } set { } } + public string ExposedHeaders { get { throw null; } set { } } + public int MaxAgeInSeconds { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct QueueErrorCode : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public QueueErrorCode(string value) { throw null; } + public static Azure.Storage.Queues.Models.QueueErrorCode AccountAlreadyExists { get { throw null; } } + public static Azure.Storage.Queues.Models.QueueErrorCode AccountBeingCreated { get { throw null; } } + public static Azure.Storage.Queues.Models.QueueErrorCode AccountIsDisabled { get { throw null; } } + public static Azure.Storage.Queues.Models.QueueErrorCode AuthenticationFailed { get { throw null; } } + public static Azure.Storage.Queues.Models.QueueErrorCode AuthorizationFailure { get { throw null; } } + public static Azure.Storage.Queues.Models.QueueErrorCode AuthorizationPermissionMismatch { get { throw null; } } + public static Azure.Storage.Queues.Models.QueueErrorCode AuthorizationProtocolMismatch { get { throw null; } } + public static Azure.Storage.Queues.Models.QueueErrorCode AuthorizationResourceTypeMismatch { get { throw null; } } + public static Azure.Storage.Queues.Models.QueueErrorCode AuthorizationServiceMismatch { get { throw null; } } + public static Azure.Storage.Queues.Models.QueueErrorCode AuthorizationSourceIPMismatch { get { throw null; } } + public static Azure.Storage.Queues.Models.QueueErrorCode ConditionHeadersNotSupported { get { throw null; } } + public static Azure.Storage.Queues.Models.QueueErrorCode ConditionNotMet { get { throw null; } } + public static Azure.Storage.Queues.Models.QueueErrorCode EmptyMetadataKey { get { throw null; } } + public static Azure.Storage.Queues.Models.QueueErrorCode FeatureVersionMismatch { get { throw null; } } + public static Azure.Storage.Queues.Models.QueueErrorCode InsufficientAccountPermissions { get { throw null; } } + public static Azure.Storage.Queues.Models.QueueErrorCode InternalError { get { throw null; } } + public static Azure.Storage.Queues.Models.QueueErrorCode InvalidAuthenticationInfo { get { throw null; } } + public static Azure.Storage.Queues.Models.QueueErrorCode InvalidHeaderValue { get { throw null; } } + public static Azure.Storage.Queues.Models.QueueErrorCode InvalidHttpVerb { get { throw null; } } + public static Azure.Storage.Queues.Models.QueueErrorCode InvalidInput { get { throw null; } } + public static Azure.Storage.Queues.Models.QueueErrorCode InvalidMarker { get { throw null; } } + public static Azure.Storage.Queues.Models.QueueErrorCode InvalidMd5 { get { throw null; } } + public static Azure.Storage.Queues.Models.QueueErrorCode InvalidMetadata { get { throw null; } } + public static Azure.Storage.Queues.Models.QueueErrorCode InvalidQueryParameterValue { get { throw null; } } + public static Azure.Storage.Queues.Models.QueueErrorCode InvalidRange { get { throw null; } } + public static Azure.Storage.Queues.Models.QueueErrorCode InvalidResourceName { get { throw null; } } + public static Azure.Storage.Queues.Models.QueueErrorCode InvalidUri { get { throw null; } } + public static Azure.Storage.Queues.Models.QueueErrorCode InvalidXmlDocument { get { throw null; } } + public static Azure.Storage.Queues.Models.QueueErrorCode InvalidXmlNodeValue { get { throw null; } } + public static Azure.Storage.Queues.Models.QueueErrorCode Md5Mismatch { get { throw null; } } + public static Azure.Storage.Queues.Models.QueueErrorCode MessageNotFound { get { throw null; } } + public static Azure.Storage.Queues.Models.QueueErrorCode MessageTooLarge { get { throw null; } } + public static Azure.Storage.Queues.Models.QueueErrorCode MetadataTooLarge { get { throw null; } } + public static Azure.Storage.Queues.Models.QueueErrorCode MissingContentLengthHeader { get { throw null; } } + public static Azure.Storage.Queues.Models.QueueErrorCode MissingRequiredHeader { get { throw null; } } + public static Azure.Storage.Queues.Models.QueueErrorCode MissingRequiredQueryParameter { get { throw null; } } + public static Azure.Storage.Queues.Models.QueueErrorCode MissingRequiredXmlNode { get { throw null; } } + public static Azure.Storage.Queues.Models.QueueErrorCode MultipleConditionHeadersNotSupported { get { throw null; } } + public static Azure.Storage.Queues.Models.QueueErrorCode OperationTimedOut { get { throw null; } } + public static Azure.Storage.Queues.Models.QueueErrorCode OutOfRangeInput { get { throw null; } } + public static Azure.Storage.Queues.Models.QueueErrorCode OutOfRangeQueryParameterValue { get { throw null; } } + public static Azure.Storage.Queues.Models.QueueErrorCode PopReceiptMismatch { get { throw null; } } + public static Azure.Storage.Queues.Models.QueueErrorCode QueueAlreadyExists { get { throw null; } } + public static Azure.Storage.Queues.Models.QueueErrorCode QueueBeingDeleted { get { throw null; } } + public static Azure.Storage.Queues.Models.QueueErrorCode QueueDisabled { get { throw null; } } + public static Azure.Storage.Queues.Models.QueueErrorCode QueueNotEmpty { get { throw null; } } + public static Azure.Storage.Queues.Models.QueueErrorCode QueueNotFound { get { throw null; } } + public static Azure.Storage.Queues.Models.QueueErrorCode RequestBodyTooLarge { get { throw null; } } + public static Azure.Storage.Queues.Models.QueueErrorCode RequestUrlFailedToParse { get { throw null; } } + public static Azure.Storage.Queues.Models.QueueErrorCode ResourceAlreadyExists { get { throw null; } } + public static Azure.Storage.Queues.Models.QueueErrorCode ResourceNotFound { get { throw null; } } + public static Azure.Storage.Queues.Models.QueueErrorCode ResourceTypeMismatch { get { throw null; } } + public static Azure.Storage.Queues.Models.QueueErrorCode ServerBusy { get { throw null; } } + public static Azure.Storage.Queues.Models.QueueErrorCode UnsupportedHeader { get { throw null; } } + public static Azure.Storage.Queues.Models.QueueErrorCode UnsupportedHttpVerb { get { throw null; } } + public static Azure.Storage.Queues.Models.QueueErrorCode UnsupportedQueryParameter { get { throw null; } } + public static Azure.Storage.Queues.Models.QueueErrorCode UnsupportedXmlNode { get { throw null; } } + public bool Equals(Azure.Storage.Queues.Models.QueueErrorCode other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Storage.Queues.Models.QueueErrorCode left, Azure.Storage.Queues.Models.QueueErrorCode right) { throw null; } + public static implicit operator Azure.Storage.Queues.Models.QueueErrorCode (string value) { throw null; } + public static bool operator !=(Azure.Storage.Queues.Models.QueueErrorCode left, Azure.Storage.Queues.Models.QueueErrorCode right) { throw null; } + public override string ToString() { throw null; } + } + public partial class QueueGeoReplication + { + internal QueueGeoReplication() { } + public System.DateTimeOffset? LastSyncedOn { get { throw null; } } + public Azure.Storage.Queues.Models.QueueGeoReplicationStatus Status { get { throw null; } } + } + public enum QueueGeoReplicationStatus + { + Live = 0, + Bootstrap = 1, + Unavailable = 2, + } + public partial class QueueItem + { + internal QueueItem() { } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + public string Name { get { throw null; } } + } + public partial class QueueMessage + { + internal QueueMessage() { } + public System.BinaryData Body { get { throw null; } } + public long DequeueCount { get { throw null; } } + public System.DateTimeOffset? ExpiresOn { get { throw null; } } + public System.DateTimeOffset? InsertedOn { get { throw null; } } + public string MessageId { get { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public string MessageText { get { throw null; } } + public System.DateTimeOffset? NextVisibleOn { get { throw null; } } + public string PopReceipt { get { throw null; } } + public Azure.Storage.Queues.Models.QueueMessage Update(Azure.Storage.Queues.Models.UpdateReceipt updated) { throw null; } + } + public partial class QueueMetrics + { + public QueueMetrics() { } + public bool Enabled { get { throw null; } set { } } + public bool? IncludeApis { get { throw null; } set { } } + public Azure.Storage.Queues.Models.QueueRetentionPolicy RetentionPolicy { get { throw null; } set { } } + public string Version { get { throw null; } set { } } + } + public partial class QueueProperties + { + public QueueProperties() { } + public int ApproximateMessagesCount { get { throw null; } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + } + public partial class QueueRetentionPolicy + { + public QueueRetentionPolicy() { } + public int? Days { get { throw null; } set { } } + public bool Enabled { get { throw null; } set { } } + } + public partial class QueueServiceProperties + { + public QueueServiceProperties() { } + public System.Collections.Generic.IList Cors { get { throw null; } set { } } + public Azure.Storage.Queues.Models.QueueMetrics HourMetrics { get { throw null; } set { } } + public Azure.Storage.Queues.Models.QueueAnalyticsLogging Logging { get { throw null; } set { } } + public Azure.Storage.Queues.Models.QueueMetrics MinuteMetrics { get { throw null; } set { } } + } + public partial class QueueServiceStatistics + { + internal QueueServiceStatistics() { } + public Azure.Storage.Queues.Models.QueueGeoReplication GeoReplication { get { throw null; } } + } + public partial class QueueSignedIdentifier + { + public QueueSignedIdentifier() { } + public Azure.Storage.Queues.Models.QueueAccessPolicy AccessPolicy { get { throw null; } set { } } + public string Id { get { throw null; } set { } } + } + public static partial class QueuesModelFactory + { + public static Azure.Storage.Queues.Models.PeekedMessage PeekedMessage(string messageId, System.BinaryData message, long dequeueCount, System.DateTimeOffset? insertedOn = default(System.DateTimeOffset?), System.DateTimeOffset? expiresOn = default(System.DateTimeOffset?)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.Storage.Queues.Models.PeekedMessage PeekedMessage(string messageId, string messageText, long dequeueCount, System.DateTimeOffset? insertedOn = default(System.DateTimeOffset?), System.DateTimeOffset? expiresOn = default(System.DateTimeOffset?)) { throw null; } + public static Azure.Storage.Queues.Models.QueueGeoReplication QueueGeoReplication(Azure.Storage.Queues.Models.QueueGeoReplicationStatus status, System.DateTimeOffset? lastSyncedOn = default(System.DateTimeOffset?)) { throw null; } + public static Azure.Storage.Queues.Models.QueueItem QueueItem(string name, System.Collections.Generic.IDictionary metadata = null) { throw null; } + public static Azure.Storage.Queues.Models.QueueMessage QueueMessage(string messageId, string popReceipt, System.BinaryData body, long dequeueCount, System.DateTimeOffset? nextVisibleOn = default(System.DateTimeOffset?), System.DateTimeOffset? insertedOn = default(System.DateTimeOffset?), System.DateTimeOffset? expiresOn = default(System.DateTimeOffset?)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.Storage.Queues.Models.QueueMessage QueueMessage(string messageId, string popReceipt, string messageText, long dequeueCount, System.DateTimeOffset? nextVisibleOn = default(System.DateTimeOffset?), System.DateTimeOffset? insertedOn = default(System.DateTimeOffset?), System.DateTimeOffset? expiresOn = default(System.DateTimeOffset?)) { throw null; } + public static Azure.Storage.Queues.Models.QueueProperties QueueProperties(System.Collections.Generic.IDictionary metadata, int approximateMessagesCount) { throw null; } + public static Azure.Storage.Queues.Models.QueueServiceStatistics QueueServiceStatistics(Azure.Storage.Queues.Models.QueueGeoReplication geoReplication = null) { throw null; } + public static Azure.Storage.Queues.Models.SendReceipt SendReceipt(string messageId, System.DateTimeOffset insertionTime, System.DateTimeOffset expirationTime, string popReceipt, System.DateTimeOffset timeNextVisible) { throw null; } + public static Azure.Storage.Queues.Models.UpdateReceipt UpdateReceipt(string popReceipt, System.DateTimeOffset nextVisibleOn) { throw null; } + } + [System.FlagsAttribute] + public enum QueueTraits + { + None = 0, + Metadata = 1, + } + public partial class SendReceipt + { + internal SendReceipt() { } + public System.DateTimeOffset ExpirationTime { get { throw null; } } + public System.DateTimeOffset InsertionTime { get { throw null; } } + public string MessageId { get { throw null; } } + public string PopReceipt { get { throw null; } } + public System.DateTimeOffset TimeNextVisible { get { throw null; } } + } + public partial class UpdateReceipt + { + internal UpdateReceipt() { } + public System.DateTimeOffset NextVisibleOn { get { throw null; } } + public string PopReceipt { get { throw null; } } + } +} +namespace Azure.Storage.Queues.Specialized +{ + public partial class ClientSideDecryptionFailureEventArgs + { + internal ClientSideDecryptionFailureEventArgs() { } + public System.Exception Exception { get { throw null; } } + } + public partial class QueueClientSideEncryptionOptions : Azure.Storage.ClientSideEncryptionOptions + { + public QueueClientSideEncryptionOptions(Azure.Storage.ClientSideEncryptionVersion version) : base (default(Azure.Storage.ClientSideEncryptionVersion)) { } + public event System.EventHandler DecryptionFailed { add { } remove { } } + } + public partial class SpecializedQueueClientOptions : Azure.Storage.Queues.QueueClientOptions + { + public SpecializedQueueClientOptions(Azure.Storage.Queues.QueueClientOptions.ServiceVersion version = Azure.Storage.Queues.QueueClientOptions.ServiceVersion.V2021_12_02) : base (default(Azure.Storage.Queues.QueueClientOptions.ServiceVersion)) { } + public Azure.Storage.ClientSideEncryptionOptions ClientSideEncryption { get { throw null; } set { } } + } + public static partial class SpecializedQueueExtensions + { + public static Azure.Storage.Queues.QueueServiceClient GetParentQueueServiceClient(this Azure.Storage.Queues.QueueClient client) { throw null; } + public static Azure.Storage.Queues.QueueClient WithClientSideEncryptionOptions(this Azure.Storage.Queues.QueueClient client, Azure.Storage.ClientSideEncryptionOptions clientSideEncryptionOptions) { throw null; } + } +} +namespace Azure.Storage.Sas +{ + [System.FlagsAttribute] + public enum QueueAccountSasPermissions + { + All = -1, + Read = 1, + Write = 2, + Delete = 4, + List = 8, + Add = 16, + Update = 32, + Process = 64, + } + public partial class QueueSasBuilder + { + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public QueueSasBuilder() { } + public QueueSasBuilder(Azure.Storage.Sas.QueueAccountSasPermissions permissions, System.DateTimeOffset expiresOn) { } + public QueueSasBuilder(Azure.Storage.Sas.QueueSasPermissions permissions, System.DateTimeOffset expiresOn) { } + public System.DateTimeOffset ExpiresOn { get { throw null; } set { } } + public string Identifier { get { throw null; } set { } } + public Azure.Storage.Sas.SasIPRange IPRange { get { throw null; } set { } } + public string Permissions { get { throw null; } } + public Azure.Storage.Sas.SasProtocol Protocol { get { throw null; } set { } } + public string QueueName { get { throw null; } set { } } + public System.DateTimeOffset StartsOn { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public string Version { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public void SetPermissions(Azure.Storage.Sas.QueueAccountSasPermissions permissions) { } + public void SetPermissions(Azure.Storage.Sas.QueueSasPermissions permissions) { } + public void SetPermissions(string rawPermissions) { } + public void SetPermissions(string rawPermissions, bool normalize = false) { } + public Azure.Storage.Sas.SasQueryParameters ToSasQueryParameters(Azure.Storage.StorageSharedKeyCredential sharedKeyCredential) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override string ToString() { throw null; } + } + [System.FlagsAttribute] + public enum QueueSasPermissions + { + All = -1, + Read = 1, + Add = 2, + Update = 4, + Process = 8, + } +} +namespace Microsoft.Extensions.Azure +{ + public static partial class QueueClientBuilderExtensions + { + public static Azure.Core.Extensions.IAzureClientBuilder AddQueueServiceClient(this TBuilder builder, string connectionString) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilder { throw null; } + public static Azure.Core.Extensions.IAzureClientBuilder AddQueueServiceClient(this TBuilder builder, System.Uri serviceUri) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithCredential { throw null; } + public static Azure.Core.Extensions.IAzureClientBuilder AddQueueServiceClient(this TBuilder builder, System.Uri serviceUri, Azure.Storage.StorageSharedKeyCredential sharedKeyCredential) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilder { throw null; } + public static Azure.Core.Extensions.IAzureClientBuilder AddQueueServiceClient(this TBuilder builder, TConfiguration configuration) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration { throw null; } + } +} From 9b79912deb8c80851eb90ff0ded0dd936b0db6e0 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Tue, 21 Feb 2023 20:56:05 -0500 Subject: [PATCH 66/72] Increment version for storage releases (#34440) --- sdk/storage/Azure.Storage.Blobs.Batch/CHANGELOG.md | 10 ++++++++++ .../src/Azure.Storage.Blobs.Batch.csproj | 4 ++-- .../Azure.Storage.Blobs.ChangeFeed/CHANGELOG.md | 10 ++++++++++ .../src/Azure.Storage.Blobs.ChangeFeed.csproj | 2 +- sdk/storage/Azure.Storage.Blobs/CHANGELOG.md | 10 ++++++++++ .../Azure.Storage.Blobs/src/Azure.Storage.Blobs.csproj | 4 ++-- sdk/storage/Azure.Storage.Common/CHANGELOG.md | 10 ++++++++++ .../src/Azure.Storage.Common.csproj | 4 ++-- sdk/storage/Azure.Storage.Files.DataLake/CHANGELOG.md | 10 ++++++++++ .../src/Azure.Storage.Files.DataLake.csproj | 4 ++-- sdk/storage/Azure.Storage.Files.Shares/CHANGELOG.md | 10 ++++++++++ .../src/Azure.Storage.Files.Shares.csproj | 4 ++-- sdk/storage/Azure.Storage.Queues/CHANGELOG.md | 10 ++++++++++ .../src/Azure.Storage.Queues.csproj | 4 ++-- .../CHANGELOG.md | 10 ++++++++++ ...osoft.Azure.WebJobs.Extensions.Storage.Blobs.csproj | 6 ++++-- .../CHANGELOG.md | 10 ++++++++++ ...soft.Azure.WebJobs.Extensions.Storage.Queues.csproj | 4 +++- .../CHANGELOG.md | 10 ++++++++++ .../Microsoft.Azure.WebJobs.Extensions.Storage.csproj | 4 +++- 20 files changed, 123 insertions(+), 17 deletions(-) diff --git a/sdk/storage/Azure.Storage.Blobs.Batch/CHANGELOG.md b/sdk/storage/Azure.Storage.Blobs.Batch/CHANGELOG.md index ee3b1eb1b7007..07e1d05e0c3b2 100644 --- a/sdk/storage/Azure.Storage.Blobs.Batch/CHANGELOG.md +++ b/sdk/storage/Azure.Storage.Blobs.Batch/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 12.13.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 12.12.0 (2023-02-21) - Includes all features from 12.12.0-beta.1. diff --git a/sdk/storage/Azure.Storage.Blobs.Batch/src/Azure.Storage.Blobs.Batch.csproj b/sdk/storage/Azure.Storage.Blobs.Batch/src/Azure.Storage.Blobs.Batch.csproj index 2c45aec2ab5af..8a33ac37bc566 100644 --- a/sdk/storage/Azure.Storage.Blobs.Batch/src/Azure.Storage.Blobs.Batch.csproj +++ b/sdk/storage/Azure.Storage.Blobs.Batch/src/Azure.Storage.Blobs.Batch.csproj @@ -6,9 +6,9 @@ Microsoft Azure.Storage.Blobs.Batch client library - 12.12.0 + 12.13.0-beta.1 - 12.11.0 + 12.12.0 BlobSDK;$(DefineConstants) Microsoft Azure Storage Blobs Batching;Batch blob;Batch operation;BlobBatchClient;BlobBatch;Microsoft;Azure;Blobs;Blob;Storage;StorageScalable;$(PackageCommonTags) diff --git a/sdk/storage/Azure.Storage.Blobs.ChangeFeed/CHANGELOG.md b/sdk/storage/Azure.Storage.Blobs.ChangeFeed/CHANGELOG.md index 8f5f337586a71..a5a71f2bfee42 100644 --- a/sdk/storage/Azure.Storage.Blobs.ChangeFeed/CHANGELOG.md +++ b/sdk/storage/Azure.Storage.Blobs.ChangeFeed/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 12.0.0-preview.32 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 12.0.0-preview.31 (2023-02-21) - This release contains bug fixes to improve quality. diff --git a/sdk/storage/Azure.Storage.Blobs.ChangeFeed/src/Azure.Storage.Blobs.ChangeFeed.csproj b/sdk/storage/Azure.Storage.Blobs.ChangeFeed/src/Azure.Storage.Blobs.ChangeFeed.csproj index 26bfd125d5f08..fac2255aaaddc 100644 --- a/sdk/storage/Azure.Storage.Blobs.ChangeFeed/src/Azure.Storage.Blobs.ChangeFeed.csproj +++ b/sdk/storage/Azure.Storage.Blobs.ChangeFeed/src/Azure.Storage.Blobs.ChangeFeed.csproj @@ -6,7 +6,7 @@ Microsoft Azure.Storage.Blobs.ChangeFeed client library - 12.0.0-preview.31 + 12.0.0-preview.32 ChangeFeedSDK;$(DefineConstants) Microsoft Azure Change Feed;Microsoft;Azure;Storage;StorageScalable;$(PackageCommonTags) diff --git a/sdk/storage/Azure.Storage.Blobs/CHANGELOG.md b/sdk/storage/Azure.Storage.Blobs/CHANGELOG.md index 5b3f8d1c2d78e..3ef63ec7198c1 100644 --- a/sdk/storage/Azure.Storage.Blobs/CHANGELOG.md +++ b/sdk/storage/Azure.Storage.Blobs/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 12.16.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 12.15.0 (2023-02-21) - Includes all features from 12.15.0-beta.1. - Added BlobDownloadDetails.CreatedOn property. diff --git a/sdk/storage/Azure.Storage.Blobs/src/Azure.Storage.Blobs.csproj b/sdk/storage/Azure.Storage.Blobs/src/Azure.Storage.Blobs.csproj index 05be174b102b9..6a4b36169ea06 100644 --- a/sdk/storage/Azure.Storage.Blobs/src/Azure.Storage.Blobs.csproj +++ b/sdk/storage/Azure.Storage.Blobs/src/Azure.Storage.Blobs.csproj @@ -6,9 +6,9 @@ Microsoft Azure.Storage.Blobs client library - 12.15.0 + 12.16.0-beta.1 - 12.14.1 + 12.15.0 BlobSDK;$(DefineConstants) Microsoft Azure Storage Blobs;Microsoft;Azure;Blobs;Blob;Storage;StorageScalable;$(PackageCommonTags) diff --git a/sdk/storage/Azure.Storage.Common/CHANGELOG.md b/sdk/storage/Azure.Storage.Common/CHANGELOG.md index 43c4b26de4472..6f04a5f832184 100644 --- a/sdk/storage/Azure.Storage.Common/CHANGELOG.md +++ b/sdk/storage/Azure.Storage.Common/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 12.15.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 12.14.0 (2023-02-21) - Includes all features from 12.14.0-beta.1. diff --git a/sdk/storage/Azure.Storage.Common/src/Azure.Storage.Common.csproj b/sdk/storage/Azure.Storage.Common/src/Azure.Storage.Common.csproj index f2c47d5ecb7d1..1463a6a44bfaa 100644 --- a/sdk/storage/Azure.Storage.Common/src/Azure.Storage.Common.csproj +++ b/sdk/storage/Azure.Storage.Common/src/Azure.Storage.Common.csproj @@ -6,9 +6,9 @@ Microsoft Azure.Storage.Common client library - 12.14.0 + 12.15.0-beta.1 - 12.13.0 + 12.14.0 CommonSDK;$(DefineConstants) Microsoft Azure Storage Common, Microsoft, Azure, StorageScalable, azureofficial diff --git a/sdk/storage/Azure.Storage.Files.DataLake/CHANGELOG.md b/sdk/storage/Azure.Storage.Files.DataLake/CHANGELOG.md index ee7e073431013..abb9b2ffc373b 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/CHANGELOG.md +++ b/sdk/storage/Azure.Storage.Files.DataLake/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 12.14.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 12.13.0 (2023-02-21) - Includes all features from 12.13.0-beta.1. - Added FileDownloadDetails.CreatedOn property. diff --git a/sdk/storage/Azure.Storage.Files.DataLake/src/Azure.Storage.Files.DataLake.csproj b/sdk/storage/Azure.Storage.Files.DataLake/src/Azure.Storage.Files.DataLake.csproj index 041dbd7a7e6bf..a2f59dc485578 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/src/Azure.Storage.Files.DataLake.csproj +++ b/sdk/storage/Azure.Storage.Files.DataLake/src/Azure.Storage.Files.DataLake.csproj @@ -6,9 +6,9 @@ Microsoft Azure.Storage.Files.DataLake client library - 12.13.0 + 12.14.0-beta.1 - 12.12.1 + 12.13.0 DataLakeSDK;$(DefineConstants) Microsoft Azure Storage Files;Microsoft;Azure;File;Files;Data Lake;Storage;StorageScalable;$(PackageCommonTags) diff --git a/sdk/storage/Azure.Storage.Files.Shares/CHANGELOG.md b/sdk/storage/Azure.Storage.Files.Shares/CHANGELOG.md index 5d43adf29001d..e48cc323133b3 100644 --- a/sdk/storage/Azure.Storage.Files.Shares/CHANGELOG.md +++ b/sdk/storage/Azure.Storage.Files.Shares/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 12.14.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 12.13.0 (2023-02-21) - Includes all features from 12.13.0-beta.1. diff --git a/sdk/storage/Azure.Storage.Files.Shares/src/Azure.Storage.Files.Shares.csproj b/sdk/storage/Azure.Storage.Files.Shares/src/Azure.Storage.Files.Shares.csproj index 4e27cd22dd3f5..57be9b58cd376 100644 --- a/sdk/storage/Azure.Storage.Files.Shares/src/Azure.Storage.Files.Shares.csproj +++ b/sdk/storage/Azure.Storage.Files.Shares/src/Azure.Storage.Files.Shares.csproj @@ -6,9 +6,9 @@ Microsoft Azure.Storage.Files.Shares client library - 12.13.0 + 12.14.0-beta.1 - 12.12.1 + 12.13.0 FileSDK;$(DefineConstants) Microsoft Azure Storage Files;Microsoft;Azure;File;Files;Storage;StorageScalable;$(PackageCommonTags) diff --git a/sdk/storage/Azure.Storage.Queues/CHANGELOG.md b/sdk/storage/Azure.Storage.Queues/CHANGELOG.md index 78e33ea238981..4307adfa77dfe 100644 --- a/sdk/storage/Azure.Storage.Queues/CHANGELOG.md +++ b/sdk/storage/Azure.Storage.Queues/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 12.14.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 12.13.0 (2023-02-21) - Includes all features from 12.13.0-beta.1. diff --git a/sdk/storage/Azure.Storage.Queues/src/Azure.Storage.Queues.csproj b/sdk/storage/Azure.Storage.Queues/src/Azure.Storage.Queues.csproj index 0ae4c4eda2607..3d4c5ebdefcd1 100644 --- a/sdk/storage/Azure.Storage.Queues/src/Azure.Storage.Queues.csproj +++ b/sdk/storage/Azure.Storage.Queues/src/Azure.Storage.Queues.csproj @@ -6,9 +6,9 @@ Microsoft Azure.Storage.Queues client library - 12.13.0 + 12.14.0-beta.1 - 12.12.0 + 12.13.0 QueueSDK;$(DefineConstants) Microsoft Azure Storage Queues;Microsoft;Azure;Queues;Queue;Storage;StorageScalable;$(PackageCommonTags) diff --git a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/CHANGELOG.md b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/CHANGELOG.md index d6338164fefd9..341f6404da4a9 100644 --- a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/CHANGELOG.md +++ b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 5.2.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 5.1.0 (2023-02-21) - Includes all features from 5.1.0-beta.1. - Added Target Based Scaling support for Storage Queues and Blobs diff --git a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/src/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs.csproj b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/src/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs.csproj index 7808dcc34bdd2..ef4208df73cb4 100644 --- a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/src/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs.csproj +++ b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/src/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs.csproj @@ -1,9 +1,11 @@ - + $(RequiredTargetFrameworks) - 5.1.0 + 5.2.0-beta.1 + + 5.1.0 This extension adds bindings for Storage $(NoWarn);IDT002;IDT003 diff --git a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues/CHANGELOG.md b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues/CHANGELOG.md index 3bcb852e61ab8..6c839fb34f6c8 100644 --- a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues/CHANGELOG.md +++ b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 5.2.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 5.1.0 (2023-02-21) - Includes all features from 5.1.0-beta.1. - Added Target Based Scaling support for Storage Queues and Blobs diff --git a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues/src/Microsoft.Azure.WebJobs.Extensions.Storage.Queues.csproj b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues/src/Microsoft.Azure.WebJobs.Extensions.Storage.Queues.csproj index 87cf572b54b26..7fe76379ce9f5 100644 --- a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues/src/Microsoft.Azure.WebJobs.Extensions.Storage.Queues.csproj +++ b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues/src/Microsoft.Azure.WebJobs.Extensions.Storage.Queues.csproj @@ -3,7 +3,9 @@ $(RequiredTargetFrameworks) - 5.1.0 + 5.2.0-beta.1 + + 5.1.0 This extension adds bindings for Storage $(NoWarn);IDT002 diff --git a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage/CHANGELOG.md b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage/CHANGELOG.md index 0f7a3a9fe5f2c..1da362626a721 100644 --- a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage/CHANGELOG.md +++ b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 5.2.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 5.1.0 (2023-02-21) Please refer to [`Microsoft.Azure.WebJobs.Extension.Storage.Blobs`](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/CHANGELOG.md) and [`Microsoft.Azure.WebJobs.Extension.Storage.Queues`](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues/CHANGELOG.md) for detailed list of changes. diff --git a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage/src/Microsoft.Azure.WebJobs.Extensions.Storage.csproj b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage/src/Microsoft.Azure.WebJobs.Extensions.Storage.csproj index 05ed27d80d241..fe6c2439f6bb8 100644 --- a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage/src/Microsoft.Azure.WebJobs.Extensions.Storage.csproj +++ b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage/src/Microsoft.Azure.WebJobs.Extensions.Storage.csproj @@ -3,7 +3,9 @@ $(RequiredTargetFrameworks) - 5.1.0 + 5.2.0-beta.1 + + 5.1.0 This extension adds bindings for Storage false From 37979ddda0a7d219035641312bf8d4de8f08a950 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Tue, 21 Feb 2023 22:36:21 -0500 Subject: [PATCH 67/72] Temporarily pin Node 18 to 18.13.0 - Fixes #5536 (#34451) Co-authored-by: Mike Harder --- eng/common/pipelines/templates/steps/check-spelling.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eng/common/pipelines/templates/steps/check-spelling.yml b/eng/common/pipelines/templates/steps/check-spelling.yml index a25fd94441183..0c489f089354a 100644 --- a/eng/common/pipelines/templates/steps/check-spelling.yml +++ b/eng/common/pipelines/templates/steps/check-spelling.yml @@ -18,8 +18,8 @@ steps: - task: NodeTool@0 condition: and(succeededOrFailed(), ne(variables['Skip.SpellCheck'],'true')) inputs: - versionSpec: 18.x - displayName: Use Node.js 18.x + versionSpec: 18.13.0 + displayName: Use Node.js 18.13.0 - task: PowerShell@2 displayName: Check spelling (cspell) From f892638b0c1f1ffc46039f0fd91cdc94c1d7a5a6 Mon Sep 17 00:00:00 2001 From: Dapeng Zhang Date: Wed, 22 Feb 2023 13:11:21 +0800 Subject: [PATCH 68/72] Fix network SDK issue https://github.com/Azure/azure-sdk-for-net/issues/34094 (#34227) * initial attempt * mitigate the breaking change * resolve comments * update changelog --- .../CHANGELOG.md | 2 ++ ....ResourceManager.Network.netstandard2.0.cs | 3 +++ .../Models/EffectiveNetworkSecurityGroup.cs | 18 ++++++++++++++++ ...ctiveNetworkSecurityGroup.Serialization.cs | 21 ++++++++++++++++--- .../Models/EffectiveNetworkSecurityGroup.cs | 9 ++++---- .../src/autorest.md | 4 ++++ 6 files changed, 50 insertions(+), 7 deletions(-) create mode 100644 sdk/network/Azure.ResourceManager.Network/src/Customization/Models/EffectiveNetworkSecurityGroup.cs diff --git a/sdk/network/Azure.ResourceManager.Network/CHANGELOG.md b/sdk/network/Azure.ResourceManager.Network/CHANGELOG.md index f82bd37b654c5..ca6728a8db2a4 100644 --- a/sdk/network/Azure.ResourceManager.Network/CHANGELOG.md +++ b/sdk/network/Azure.ResourceManager.Network/CHANGELOG.md @@ -8,6 +8,8 @@ ### Bugs Fixed +- Fixed issue https://github.com/Azure/azure-sdk-for-net/issues/34094. Please use `EffectiveNetworkSecurityGroup.TagToIPAddresses` instead of `EffectiveNetworkSecurityGroup.TagMap`. + ### Other Changes ## 1.1.1 (2023-02-13) diff --git a/sdk/network/Azure.ResourceManager.Network/api/Azure.ResourceManager.Network.netstandard2.0.cs b/sdk/network/Azure.ResourceManager.Network/api/Azure.ResourceManager.Network.netstandard2.0.cs index edb715c80e533..fbe49da70de1a 100644 --- a/sdk/network/Azure.ResourceManager.Network/api/Azure.ResourceManager.Network.netstandard2.0.cs +++ b/sdk/network/Azure.ResourceManager.Network/api/Azure.ResourceManager.Network.netstandard2.0.cs @@ -6319,7 +6319,10 @@ internal EffectiveNetworkSecurityGroup() { } public Azure.ResourceManager.Network.Models.EffectiveNetworkSecurityGroupAssociation Association { get { throw null; } } public System.Collections.Generic.IReadOnlyList EffectiveSecurityRules { get { throw null; } } public Azure.Core.ResourceIdentifier NetworkSecurityGroupId { get { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + [System.ObsoleteAttribute("This property is obsolete and might be removed in a future version, please use `TagToIPAddresses` instead", false)] public string TagMap { get { throw null; } } + public System.Collections.Generic.IReadOnlyDictionary> TagToIPAddresses { get { throw null; } } } public partial class EffectiveNetworkSecurityGroupAssociation { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Customization/Models/EffectiveNetworkSecurityGroup.cs b/sdk/network/Azure.ResourceManager.Network/src/Customization/Models/EffectiveNetworkSecurityGroup.cs new file mode 100644 index 0000000000000..cbe76dcb94056 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Customization/Models/EffectiveNetworkSecurityGroup.cs @@ -0,0 +1,18 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Network.Models +{ + public partial class EffectiveNetworkSecurityGroup + { + /// Mapping of tags to list of IP Addresses included within the tag. + [EditorBrowsable(EditorBrowsableState.Never)] + [Obsolete("This property is obsolete and might be removed in a future version, please use `TagToIPAddresses` instead", false)] + public string TagMap { get; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveNetworkSecurityGroup.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveNetworkSecurityGroup.Serialization.cs index be409a98260ff..ebc41d8cede22 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveNetworkSecurityGroup.Serialization.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveNetworkSecurityGroup.Serialization.cs @@ -19,7 +19,7 @@ internal static EffectiveNetworkSecurityGroup DeserializeEffectiveNetworkSecurit Optional networkSecurityGroup = default; Optional association = default; Optional> effectiveSecurityRules = default; - Optional tagMap = default; + Optional>> tagMap = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("networkSecurityGroup"u8)) @@ -59,11 +59,26 @@ internal static EffectiveNetworkSecurityGroup DeserializeEffectiveNetworkSecurit } if (property.NameEquals("tagMap"u8)) { - tagMap = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + Dictionary> dictionary = new Dictionary>(); + foreach (var property0 in property.Value.EnumerateObject()) + { + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + dictionary.Add(property0.Name, array); + } + tagMap = dictionary; continue; } } - return new EffectiveNetworkSecurityGroup(networkSecurityGroup, association.Value, Optional.ToList(effectiveSecurityRules), tagMap.Value); + return new EffectiveNetworkSecurityGroup(networkSecurityGroup, association.Value, Optional.ToList(effectiveSecurityRules), Optional.ToDictionary(tagMap)); } } } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveNetworkSecurityGroup.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveNetworkSecurityGroup.cs index dd39ddb989523..1b7cef0f1d4a2 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveNetworkSecurityGroup.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveNetworkSecurityGroup.cs @@ -18,19 +18,20 @@ public partial class EffectiveNetworkSecurityGroup internal EffectiveNetworkSecurityGroup() { EffectiveSecurityRules = new ChangeTrackingList(); + TagToIPAddresses = new ChangeTrackingDictionary>(); } /// Initializes a new instance of EffectiveNetworkSecurityGroup. /// The ID of network security group that is applied. /// Associated resources. /// A collection of effective security rules. - /// Mapping of tags to list of IP Addresses included within the tag. - internal EffectiveNetworkSecurityGroup(WritableSubResource networkSecurityGroup, EffectiveNetworkSecurityGroupAssociation association, IReadOnlyList effectiveSecurityRules, string tagMap) + /// Mapping of tags to list of IP Addresses included within the tag. + internal EffectiveNetworkSecurityGroup(WritableSubResource networkSecurityGroup, EffectiveNetworkSecurityGroupAssociation association, IReadOnlyList effectiveSecurityRules, IReadOnlyDictionary> tagToIPAddresses) { NetworkSecurityGroup = networkSecurityGroup; Association = association; EffectiveSecurityRules = effectiveSecurityRules; - TagMap = tagMap; + TagToIPAddresses = tagToIPAddresses; } /// The ID of network security group that is applied. @@ -46,6 +47,6 @@ public ResourceIdentifier NetworkSecurityGroupId /// A collection of effective security rules. public IReadOnlyList EffectiveSecurityRules { get; } /// Mapping of tags to list of IP Addresses included within the tag. - public string TagMap { get; } + public IReadOnlyDictionary> TagToIPAddresses { get; } } } diff --git a/sdk/network/Azure.ResourceManager.Network/src/autorest.md b/sdk/network/Azure.ResourceManager.Network/src/autorest.md index d5b87da0f8daf..c593c48137282 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/autorest.md +++ b/sdk/network/Azure.ResourceManager.Network/src/autorest.md @@ -100,6 +100,7 @@ rename-mapping: EndpointType: ConnectionMonitorEndpointType ConnectionState: NetworkConnectionState ApplicationGatewayAvailableSslOptions: ApplicationGatewayAvailableSslOptionsInfo + EffectiveNetworkSecurityGroup.tagMap: tagToIPAddresses format-by-name-rules: 'tenantId': 'uuid' @@ -382,6 +383,9 @@ directive: transform: > $.ResourceNavigationLinkFormat.properties.link['x-ms-format'] = 'arm-id'; $.ServiceAssociationLinkPropertiesFormat.properties.link['x-ms-format'] = 'arm-id'; + - from: networkInterface.json # a temporary fix for issue https://github.com/Azure/azure-sdk-for-net/issues/34094 + where: $.definitions.EffectiveNetworkSecurityGroup.properties.tagMap.type + transform: return "object"; ``` ### Tag: package-track2-preview From 001c4fe0defaecf5245f09623e09436f18e4819c Mon Sep 17 00:00:00 2001 From: m-nash <64171366+m-nash@users.noreply.github.com> Date: Tue, 21 Feb 2023 22:15:28 -0800 Subject: [PATCH 69/72] bump autorest version (#34449) --- eng/Packages.Data.props | 2 +- eng/emitter-package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props index f01c28bbccc3e..a64e2584effcc 100644 --- a/eng/Packages.Data.props +++ b/eng/Packages.Data.props @@ -160,7 +160,7 @@ All should have PrivateAssets="All" set so they don't become package dependencies --> - + diff --git a/eng/emitter-package.json b/eng/emitter-package.json index d751875492821..4516b994b0aaa 100644 --- a/eng/emitter-package.json +++ b/eng/emitter-package.json @@ -1,6 +1,6 @@ { "main": "dist/src/index.js", "dependencies": { - "@azure-tools/cadl-csharp": "0.1.11-beta.20230220.2" + "@azure-tools/cadl-csharp": "0.1.11-beta.20230221.2" } } From 3b47f598a332aa2d94a5e7f05552dfbda1790ae1 Mon Sep 17 00:00:00 2001 From: Yao Kou Date: Wed, 22 Feb 2023 15:07:12 +0800 Subject: [PATCH 70/72] update monitor changelog (#34458) --- sdk/monitor/Azure.ResourceManager.Monitor/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/CHANGELOG.md b/sdk/monitor/Azure.ResourceManager.Monitor/CHANGELOG.md index 18c8e507c0dd3..2f29ea592ac17 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/CHANGELOG.md +++ b/sdk/monitor/Azure.ResourceManager.Monitor/CHANGELOG.md @@ -25,6 +25,7 @@ This release is the first stable release of the Monitor Management library. - The type of `MonitorScaleCapacity.minimum`, `MonitorScaleCapacity.maximum` and `MonitorScaleCapacity.default` were changed to `integer`. - The type of `RecurrentSchedule.Days` was changed to `MonitorDayOfWeek`. +- Removed the extension methods `GetDiagnosticSettings` and `GetDiagnosticSetting` that extends from `ArmResource`. ### Other Changes From 8b5fc149f3abb95ff197b08c84343a2780f31215 Mon Sep 17 00:00:00 2001 From: Dapeng Zhang Date: Wed, 22 Feb 2023 15:41:21 +0800 Subject: [PATCH 71/72] regen for https://github.com/Azure/autorest.csharp/pull/3119 (#34256) * regenerate * regenerate after merge * regenerate again after merge * update version * refresh api files --- eng/Packages.Data.props | 2 +- .../Generated/ApiManagementServiceResource.cs | 6 +++--- .../Generated/AppPlatformServiceResource.cs | 4 ++-- .../VirtualMachineScaleSetResource.cs | 2 +- .../ContainerAppManagedEnvironmentResource.cs | 2 +- .../src/Generated/ContainerAppResource.cs | 2 +- .../ContainerServiceAgentPoolResource.cs | 2 +- .../ContainerServiceManagedClusterResource.cs | 2 +- .../Generated/CassandraKeyspaceResource.cs | 2 +- .../src/Generated/CassandraTableResource.cs | 2 +- .../Generated/CosmosDBSqlContainerResource.cs | 2 +- .../Generated/CosmosDBSqlDatabaseResource.cs | 2 +- .../src/Generated/CosmosDBTableResource.cs | 2 +- .../src/Generated/GremlinDatabaseResource.cs | 2 +- .../src/Generated/GremlinGraphResource.cs | 2 +- .../Generated/MongoDBCollectionResource.cs | 2 +- .../src/Generated/MongoDBDatabaseResource.cs | 2 +- .../Generated/DataBoxEdgeDeviceResource.cs | 6 +++--- .../src/Generated/DataBoxEdgeRoleResource.cs | 2 +- .../Generated/NetworkConnectionResource.cs | 2 +- .../Extensions/ArmResourceExtensionClient.cs | 2 +- .../ResourceGroupResourceExtensionClient.cs | 2 +- .../Generated/EventHubsNamespaceResource.cs | 2 +- .../Extensions/ArmResourceExtensionClient.cs | 2 +- .../Extensions/ArmResourceExtensionClient.cs | 2 +- .../MySql/Generated/MySqlServerResource.cs | 2 +- .../Generated/PostgreSqlServerResource.cs | 2 +- .../RecoveryServicesVaultResource.cs | 2 +- .../src/Generated/RelayNamespaceResource.cs | 2 +- .../Extensions/ArmResourceExtensionClient.cs | 2 +- .../Generated/ArmDeploymentScriptResource.cs | 2 +- .../Extensions/ArmResourceExtensionClient.cs | 2 +- .../Generated/IotSecuritySolutionResource.cs | 2 +- .../Generated/ServiceBusNamespaceResource.cs | 2 +- .../src/Generated/ManagedInstanceResource.cs | 2 +- .../src/Generated/SqlDatabaseResource.cs | 8 +++---- .../src/Generated/SqlServerResource.cs | 2 +- .../src/Generated/BlobContainerResource.cs | 2 +- .../src/Generated/StorageAccountResource.cs | 12 +++++------ .../api/Azure.Storage.Blobs.net6.0.cs | 3 +++ .../Azure.Storage.Files.DataLake.net6.0.cs | 21 +++++++++++-------- .../TenantResourceExtensionClient.cs | 2 +- .../src/Generated/SynapseSqlPoolResource.cs | 12 +++++------ .../src/Generated/SynapseWorkspaceResource.cs | 6 +++--- .../SubscriptionResourceExtensionClient.cs | 2 +- .../TenantResourceExtensionClient.cs | 2 +- .../AppServiceEnvironmentResource.cs | 4 ++-- .../src/Generated/AppServicePlanResource.cs | 2 +- .../TenantResourceExtensionClient.cs | 2 +- .../src/Generated/SiteInstanceResource.cs | 2 +- .../src/Generated/SiteSlotInstanceResource.cs | 2 +- .../src/Generated/WebSiteResource.cs | 20 +++++++++--------- .../src/Generated/WebSiteSlotResource.cs | 20 +++++++++--------- .../src/Generated/PhpWorkloadResource.cs | 2 +- 54 files changed, 106 insertions(+), 100 deletions(-) diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props index a64e2584effcc..787499b267562 100644 --- a/eng/Packages.Data.props +++ b/eng/Packages.Data.props @@ -160,7 +160,7 @@ All should have PrivateAssets="All" set so they don't become package dependencies --> - + diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementServiceResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementServiceResource.cs index eafa87e6aa849..d66c4e91f8cdf 100644 --- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementServiceResource.cs +++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementServiceResource.cs @@ -1153,21 +1153,21 @@ public virtual Response GetApiManagementPor /// Returns a object. public virtual ApiManagementPortalSignInSettingResource GetApiManagementPortalSignInSetting() { - return new ApiManagementPortalSignInSettingResource(Client, new ResourceIdentifier(Id.ToString() + "/portalsettings/signin")); + return new ApiManagementPortalSignInSettingResource(Client, Id.AppendChildResource("portalsettings", "signin")); } /// Gets an object representing a ApiManagementPortalSignUpSettingResource along with the instance operations that can be performed on it in the ApiManagementService. /// Returns a object. public virtual ApiManagementPortalSignUpSettingResource GetApiManagementPortalSignUpSetting() { - return new ApiManagementPortalSignUpSettingResource(Client, new ResourceIdentifier(Id.ToString() + "/portalsettings/signup")); + return new ApiManagementPortalSignUpSettingResource(Client, Id.AppendChildResource("portalsettings", "signup")); } /// Gets an object representing a ApiManagementPortalDelegationSettingResource along with the instance operations that can be performed on it in the ApiManagementService. /// Returns a object. public virtual ApiManagementPortalDelegationSettingResource GetApiManagementPortalDelegationSetting() { - return new ApiManagementPortalDelegationSettingResource(Client, new ResourceIdentifier(Id.ToString() + "/portalsettings/delegation")); + return new ApiManagementPortalDelegationSettingResource(Client, Id.AppendChildResource("portalsettings", "delegation")); } /// Gets a collection of ApiManagementPrivateEndpointConnectionResources in the ApiManagementService. diff --git a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/AppPlatformServiceResource.cs b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/AppPlatformServiceResource.cs index 51537176a339d..16af20298f063 100644 --- a/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/AppPlatformServiceResource.cs +++ b/sdk/appplatform/Azure.ResourceManager.AppPlatform/src/Generated/AppPlatformServiceResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Returns a object. public virtual AppPlatformConfigServerResource GetAppPlatformConfigServer() { - return new AppPlatformConfigServerResource(Client, new ResourceIdentifier(Id.ToString() + "/configServers/default")); + return new AppPlatformConfigServerResource(Client, Id.AppendChildResource("configServers", "default")); } /// Gets a collection of AppPlatformConfigurationServiceResources in the AppPlatformService. @@ -269,7 +269,7 @@ public virtual Response GetAppPlatformBuildServ /// Returns a object. public virtual AppPlatformMonitoringSettingResource GetAppPlatformMonitoringSetting() { - return new AppPlatformMonitoringSettingResource(Client, new ResourceIdentifier(Id.ToString() + "/monitoringSettings/default")); + return new AppPlatformMonitoringSettingResource(Client, Id.AppendChildResource("monitoringSettings", "default")); } /// Gets a collection of AppPlatformAppResources in the AppPlatformService. diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSetResource.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSetResource.cs index 5cc8516401ec0..2b13fda17aeba 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSetResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSetResource.cs @@ -153,7 +153,7 @@ public virtual Response GetVirtualMachi /// Returns a object. public virtual VirtualMachineScaleSetRollingUpgradeResource GetVirtualMachineScaleSetRollingUpgrade() { - return new VirtualMachineScaleSetRollingUpgradeResource(Client, new ResourceIdentifier(Id.ToString() + "/rollingUpgrades/latest")); + return new VirtualMachineScaleSetRollingUpgradeResource(Client, Id.AppendChildResource("rollingUpgrades", "latest")); } /// Gets a collection of VirtualMachineScaleSetVmResources in the VirtualMachineScaleSet. diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppManagedEnvironmentResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppManagedEnvironmentResource.cs index 6b73a4bee5393..75a83b36227ab 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppManagedEnvironmentResource.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppManagedEnvironmentResource.cs @@ -256,7 +256,7 @@ public virtual Response GetConta /// Returns a object. public virtual ContainerAppManagedEnvironmentDetectorResourcePropertyResource GetContainerAppManagedEnvironmentDetectorResourceProperty() { - return new ContainerAppManagedEnvironmentDetectorResourcePropertyResource(Client, new ResourceIdentifier(Id.ToString() + "/detectorProperties/rootApi")); + return new ContainerAppManagedEnvironmentDetectorResourcePropertyResource(Client, Id.AppendChildResource("detectorProperties", "rootApi")); } /// Gets a collection of ContainerAppManagedEnvironmentStorageResources in the ContainerAppManagedEnvironment. diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppResource.cs index 7aaece995b19a..63039c6a01368 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppResource.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppResource.cs @@ -146,7 +146,7 @@ public virtual Response GetContainerAppAuthConfi /// Returns a object. public virtual ContainerAppDetectorPropertyResource GetContainerAppDetectorProperty() { - return new ContainerAppDetectorPropertyResource(Client, new ResourceIdentifier(Id.ToString() + "/detectorProperties/rootApi")); + return new ContainerAppDetectorPropertyResource(Client, Id.AppendChildResource("detectorProperties", "rootApi")); } /// Gets a collection of ContainerAppRevisionResources in the ContainerApp. diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceAgentPoolResource.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceAgentPoolResource.cs index 6fcc27b9d98d3..5c03d89ec61e5 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceAgentPoolResource.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceAgentPoolResource.cs @@ -91,7 +91,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Returns a object. public virtual AgentPoolUpgradeProfileResource GetAgentPoolUpgradeProfile() { - return new AgentPoolUpgradeProfileResource(Client, new ResourceIdentifier(Id.ToString() + "/upgradeProfiles/default")); + return new AgentPoolUpgradeProfileResource(Client, Id.AppendChildResource("upgradeProfiles", "default")); } /// diff --git a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceManagedClusterResource.cs b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceManagedClusterResource.cs index 1de663cf7437e..53761c8302e7f 100644 --- a/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceManagedClusterResource.cs +++ b/sdk/containerservice/Azure.ResourceManager.ContainerService/src/Generated/ContainerServiceManagedClusterResource.cs @@ -105,7 +105,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Returns a object. public virtual ManagedClusterUpgradeProfileResource GetManagedClusterUpgradeProfile() { - return new ManagedClusterUpgradeProfileResource(Client, new ResourceIdentifier(Id.ToString() + "/upgradeProfiles/default")); + return new ManagedClusterUpgradeProfileResource(Client, Id.AppendChildResource("upgradeProfiles", "default")); } /// Gets a collection of ContainerServiceMaintenanceConfigurationResources in the ContainerServiceManagedCluster. diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CassandraKeyspaceResource.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CassandraKeyspaceResource.cs index 5e7010f25400a..8e9f8dbe2b6da 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CassandraKeyspaceResource.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CassandraKeyspaceResource.cs @@ -92,7 +92,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Returns a object. public virtual CassandraKeyspaceThroughputSettingResource GetCassandraKeyspaceThroughputSetting() { - return new CassandraKeyspaceThroughputSettingResource(Client, new ResourceIdentifier(Id.ToString() + "/throughputSettings/default")); + return new CassandraKeyspaceThroughputSettingResource(Client, Id.AppendChildResource("throughputSettings", "default")); } /// Gets a collection of CassandraTableResources in the CassandraKeyspace. diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CassandraTableResource.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CassandraTableResource.cs index 48a1c8950abf1..c2b5361071409 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CassandraTableResource.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CassandraTableResource.cs @@ -92,7 +92,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Returns a object. public virtual CassandraTableThroughputSettingResource GetCassandraTableThroughputSetting() { - return new CassandraTableThroughputSettingResource(Client, new ResourceIdentifier(Id.ToString() + "/throughputSettings/default")); + return new CassandraTableThroughputSettingResource(Client, Id.AppendChildResource("throughputSettings", "default")); } /// diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CosmosDBSqlContainerResource.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CosmosDBSqlContainerResource.cs index 2f74e7f4a98eb..db6f905910343 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CosmosDBSqlContainerResource.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CosmosDBSqlContainerResource.cs @@ -92,7 +92,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Returns a object. public virtual CosmosDBSqlContainerThroughputSettingResource GetCosmosDBSqlContainerThroughputSetting() { - return new CosmosDBSqlContainerThroughputSettingResource(Client, new ResourceIdentifier(Id.ToString() + "/throughputSettings/default")); + return new CosmosDBSqlContainerThroughputSettingResource(Client, Id.AppendChildResource("throughputSettings", "default")); } /// Gets a collection of CosmosDBSqlStoredProcedureResources in the CosmosDBSqlContainer. diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CosmosDBSqlDatabaseResource.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CosmosDBSqlDatabaseResource.cs index 80a69a12f46df..53c6f46a444b2 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CosmosDBSqlDatabaseResource.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CosmosDBSqlDatabaseResource.cs @@ -92,7 +92,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Returns a object. public virtual CosmosDBSqlDatabaseThroughputSettingResource GetCosmosDBSqlDatabaseThroughputSetting() { - return new CosmosDBSqlDatabaseThroughputSettingResource(Client, new ResourceIdentifier(Id.ToString() + "/throughputSettings/default")); + return new CosmosDBSqlDatabaseThroughputSettingResource(Client, Id.AppendChildResource("throughputSettings", "default")); } /// Gets a collection of CosmosDBSqlContainerResources in the CosmosDBSqlDatabase. diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CosmosDBTableResource.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CosmosDBTableResource.cs index 388a294f2e9e6..be147a63e4177 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CosmosDBTableResource.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CosmosDBTableResource.cs @@ -92,7 +92,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Returns a object. public virtual CosmosTableThroughputSettingResource GetCosmosTableThroughputSetting() { - return new CosmosTableThroughputSettingResource(Client, new ResourceIdentifier(Id.ToString() + "/throughputSettings/default")); + return new CosmosTableThroughputSettingResource(Client, Id.AppendChildResource("throughputSettings", "default")); } /// diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/GremlinDatabaseResource.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/GremlinDatabaseResource.cs index aee6616e14973..2bdd4c627dc8b 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/GremlinDatabaseResource.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/GremlinDatabaseResource.cs @@ -92,7 +92,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Returns a object. public virtual GremlinDatabaseThroughputSettingResource GetGremlinDatabaseThroughputSetting() { - return new GremlinDatabaseThroughputSettingResource(Client, new ResourceIdentifier(Id.ToString() + "/throughputSettings/default")); + return new GremlinDatabaseThroughputSettingResource(Client, Id.AppendChildResource("throughputSettings", "default")); } /// Gets a collection of GremlinGraphResources in the GremlinDatabase. diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/GremlinGraphResource.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/GremlinGraphResource.cs index adb34d816e408..616cba9c2337e 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/GremlinGraphResource.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/GremlinGraphResource.cs @@ -92,7 +92,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Returns a object. public virtual GremlinGraphThroughputSettingResource GetGremlinGraphThroughputSetting() { - return new GremlinGraphThroughputSettingResource(Client, new ResourceIdentifier(Id.ToString() + "/throughputSettings/default")); + return new GremlinGraphThroughputSettingResource(Client, Id.AppendChildResource("throughputSettings", "default")); } /// diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/MongoDBCollectionResource.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/MongoDBCollectionResource.cs index 480fbf1956ed3..0b49d10a35a00 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/MongoDBCollectionResource.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/MongoDBCollectionResource.cs @@ -92,7 +92,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Returns a object. public virtual MongoDBCollectionThroughputSettingResource GetMongoDBCollectionThroughputSetting() { - return new MongoDBCollectionThroughputSettingResource(Client, new ResourceIdentifier(Id.ToString() + "/throughputSettings/default")); + return new MongoDBCollectionThroughputSettingResource(Client, Id.AppendChildResource("throughputSettings", "default")); } /// diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/MongoDBDatabaseResource.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/MongoDBDatabaseResource.cs index 7ce8b81ba0e29..825bce3374700 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/MongoDBDatabaseResource.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/MongoDBDatabaseResource.cs @@ -92,7 +92,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Returns a object. public virtual MongoDBDatabaseThroughputSettingResource GetMongoDBDatabaseThroughputSetting() { - return new MongoDBDatabaseThroughputSettingResource(Client, new ResourceIdentifier(Id.ToString() + "/throughputSettings/default")); + return new MongoDBDatabaseThroughputSettingResource(Client, Id.AppendChildResource("throughputSettings", "default")); } /// Gets a collection of MongoDBCollectionResources in the MongoDBDatabase. diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/DataBoxEdgeDeviceResource.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/DataBoxEdgeDeviceResource.cs index 23141cf65a5e0..c0131edb6a6a4 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/DataBoxEdgeDeviceResource.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/DataBoxEdgeDeviceResource.cs @@ -215,14 +215,14 @@ public virtual Response GetBandwidthSchedule(string n /// Returns a object. public virtual DiagnosticProactiveLogCollectionSettingResource GetDiagnosticProactiveLogCollectionSetting() { - return new DiagnosticProactiveLogCollectionSettingResource(Client, new ResourceIdentifier(Id.ToString() + "/diagnosticProactiveLogCollectionSettings/default")); + return new DiagnosticProactiveLogCollectionSettingResource(Client, Id.AppendChildResource("diagnosticProactiveLogCollectionSettings", "default")); } /// Gets an object representing a DiagnosticRemoteSupportSettingResource along with the instance operations that can be performed on it in the DataBoxEdgeDevice. /// Returns a object. public virtual DiagnosticRemoteSupportSettingResource GetDiagnosticRemoteSupportSetting() { - return new DiagnosticRemoteSupportSettingResource(Client, new ResourceIdentifier(Id.ToString() + "/diagnosticRemoteSupportSettings/default")); + return new DiagnosticRemoteSupportSettingResource(Client, Id.AppendChildResource("diagnosticRemoteSupportSettings", "default")); } /// Gets a collection of DataBoxEdgeJobResources in the DataBoxEdgeDevice. @@ -282,7 +282,7 @@ public virtual Response GetDataBoxEdgeJob(string name, C /// Returns a object. public virtual DataBoxEdgeOrderResource GetDataBoxEdgeOrder() { - return new DataBoxEdgeOrderResource(Client, new ResourceIdentifier(Id.ToString() + "/orders/default")); + return new DataBoxEdgeOrderResource(Client, Id.AppendChildResource("orders", "default")); } /// Gets a collection of DataBoxEdgeRoleResources in the DataBoxEdgeDevice. diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/DataBoxEdgeRoleResource.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/DataBoxEdgeRoleResource.cs index 25289c2ae64e1..7b69e6271bbdf 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/DataBoxEdgeRoleResource.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/DataBoxEdgeRoleResource.cs @@ -143,7 +143,7 @@ public virtual Response GetDataBoxEdgeRoleAddon(st /// Returns a object. public virtual MonitoringMetricConfigurationResource GetMonitoringMetricConfiguration() { - return new MonitoringMetricConfigurationResource(Client, new ResourceIdentifier(Id.ToString() + "/monitoringConfig/default")); + return new MonitoringMetricConfigurationResource(Client, Id.AppendChildResource("monitoringConfig", "default")); } /// diff --git a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/NetworkConnectionResource.cs b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/NetworkConnectionResource.cs index 21c8c097b9fd5..f2d0c7932ec90 100644 --- a/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/NetworkConnectionResource.cs +++ b/sdk/devcenter/Azure.ResourceManager.DevCenter/src/Generated/NetworkConnectionResource.cs @@ -93,7 +93,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Returns a object. public virtual HealthCheckStatusDetailResource GetHealthCheckStatusDetail() { - return new HealthCheckStatusDetailResource(Client, new ResourceIdentifier(Id.ToString() + "/healthChecks/latest")); + return new HealthCheckStatusDetailResource(Client, Id.AppendChildResource("healthChecks", "latest")); } /// diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Extensions/ArmResourceExtensionClient.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Extensions/ArmResourceExtensionClient.cs index 52d7740c71171..c8a1b5fefc0cd 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Extensions/ArmResourceExtensionClient.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Extensions/ArmResourceExtensionClient.cs @@ -42,7 +42,7 @@ public virtual EventSubscriptionCollection GetEventSubscriptions() /// Returns a object. public virtual ExtensionTopicResource GetExtensionTopic() { - return new ExtensionTopicResource(Client, new ResourceIdentifier(Id.ToString() + "/providers/Microsoft.EventGrid/extensionTopics/default")); + return new ExtensionTopicResource(Client, Id.AppendProviderResource("Microsoft.EventGrid", "extensionTopics", "default")); } } } diff --git a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs index ba156fca5bc19..8e4c0f582bd3d 100644 --- a/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs +++ b/sdk/eventgrid/Azure.ResourceManager.EventGrid/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs @@ -63,7 +63,7 @@ public virtual EventGridTopicCollection GetEventGridTopics() /// Returns a object. public virtual PartnerConfigurationResource GetPartnerConfiguration() { - return new PartnerConfigurationResource(Client, new ResourceIdentifier(Id.ToString() + "/providers/Microsoft.EventGrid/partnerConfigurations/default")); + return new PartnerConfigurationResource(Client, Id.AppendProviderResource("Microsoft.EventGrid", "partnerConfigurations", "default")); } /// Gets a collection of PartnerNamespaceResources in the ResourceGroupResource. diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceResource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceResource.cs index b0b57a45e0b30..1ccd62e56e651 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceResource.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceResource.cs @@ -109,7 +109,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Returns a object. public virtual EventHubsNetworkRuleSetResource GetEventHubsNetworkRuleSet() { - return new EventHubsNetworkRuleSetResource(Client, new ResourceIdentifier(Id.ToString() + "/networkRuleSets/default")); + return new EventHubsNetworkRuleSetResource(Client, Id.AppendChildResource("networkRuleSets", "default")); } /// Gets a collection of EventHubsNamespaceAuthorizationRuleResources in the EventHubsNamespace. diff --git a/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/Extensions/ArmResourceExtensionClient.cs b/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/Extensions/ArmResourceExtensionClient.cs index 1d8d655cf28bf..9ba7f0fbb0940 100644 --- a/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/Extensions/ArmResourceExtensionClient.cs +++ b/sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/src/Generated/Extensions/ArmResourceExtensionClient.cs @@ -35,7 +35,7 @@ private string GetApiVersionOrNull(ResourceType resourceType) /// Returns a object. public virtual SystemAssignedIdentityResource GetSystemAssignedIdentity() { - return new SystemAssignedIdentityResource(Client, new ResourceIdentifier(Id.ToString() + "/providers/Microsoft.ManagedIdentity/identities/default")); + return new SystemAssignedIdentityResource(Client, Id.AppendProviderResource("Microsoft.ManagedIdentity", "identities", "default")); } } } diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Extensions/ArmResourceExtensionClient.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Extensions/ArmResourceExtensionClient.cs index a09f56bb1f794..348afc195b5b1 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Extensions/ArmResourceExtensionClient.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Extensions/ArmResourceExtensionClient.cs @@ -49,7 +49,7 @@ public virtual DiagnosticSettingsCategoryCollection GetDiagnosticSettingsCategor /// Returns a object. public virtual VmInsightsOnboardingStatusResource GetVmInsightsOnboardingStatus() { - return new VmInsightsOnboardingStatusResource(Client, new ResourceIdentifier(Id.ToString() + "/providers/Microsoft.Insights/vmInsightsOnboardingStatuses/default")); + return new VmInsightsOnboardingStatusResource(Client, Id.AppendProviderResource("Microsoft.Insights", "vmInsightsOnboardingStatuses", "default")); } /// Gets a collection of DataCollectionRuleAssociationResources in the ArmResource. diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/MySqlServerResource.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/MySqlServerResource.cs index b7b9872d367ed..81d85178d080f 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/MySqlServerResource.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/MySqlServerResource.cs @@ -329,7 +329,7 @@ public virtual Response GetMySqlConfiguration(string /// Returns a object. public virtual MySqlServerAdministratorResource GetMySqlServerAdministrator() { - return new MySqlServerAdministratorResource(Client, new ResourceIdentifier(Id.ToString() + "/administrators/activeDirectory")); + return new MySqlServerAdministratorResource(Client, Id.AppendChildResource("administrators", "activeDirectory")); } /// Gets a collection of MySqlServerSecurityAlertPolicyResources in the MySqlServer. diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/PostgreSqlServerResource.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/PostgreSqlServerResource.cs index f78dba7f9f7b3..00f831eeb5b13 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/PostgreSqlServerResource.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSql/Generated/PostgreSqlServerResource.cs @@ -321,7 +321,7 @@ public virtual Response GetPostgreSqlConfigurat /// Returns a object. public virtual PostgreSqlServerAdministratorResource GetPostgreSqlServerAdministrator() { - return new PostgreSqlServerAdministratorResource(Client, new ResourceIdentifier(Id.ToString() + "/administrators/activeDirectory")); + return new PostgreSqlServerAdministratorResource(Client, Id.AppendChildResource("administrators", "activeDirectory")); } /// Gets a collection of PostgreSqlServerSecurityAlertPolicyResources in the PostgreSqlServer. diff --git a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/RecoveryServicesVaultResource.cs b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/RecoveryServicesVaultResource.cs index 494a4128ce488..d1225c3c02f05 100644 --- a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/RecoveryServicesVaultResource.cs +++ b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/RecoveryServicesVaultResource.cs @@ -162,7 +162,7 @@ public virtual Response GetRecoveryServices /// Returns a object. public virtual RecoveryServicesVaultExtendedInfoResource GetRecoveryServicesVaultExtendedInfo() { - return new RecoveryServicesVaultExtendedInfoResource(Client, new ResourceIdentifier(Id.ToString() + "/extendedInformation/vaultExtendedInfo")); + return new RecoveryServicesVaultExtendedInfoResource(Client, Id.AppendChildResource("extendedInformation", "vaultExtendedInfo")); } /// diff --git a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RelayNamespaceResource.cs b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RelayNamespaceResource.cs index e2a326ce5565a..2091b4480d416 100644 --- a/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RelayNamespaceResource.cs +++ b/sdk/relay/Azure.ResourceManager.Relay/src/Generated/RelayNamespaceResource.cs @@ -146,7 +146,7 @@ public virtual Response GetRelayNamespa /// Returns a object. public virtual RelayNetworkRuleSetResource GetRelayNetworkRuleSet() { - return new RelayNetworkRuleSetResource(Client, new ResourceIdentifier(Id.ToString() + "/networkRuleSets/default")); + return new RelayNetworkRuleSetResource(Client, Id.AppendChildResource("networkRuleSets", "default")); } /// Gets a collection of RelayHybridConnectionResources in the RelayNamespace. diff --git a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Extensions/ArmResourceExtensionClient.cs b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Extensions/ArmResourceExtensionClient.cs index df8f48f2640e2..9683ff6bee371 100644 --- a/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Extensions/ArmResourceExtensionClient.cs +++ b/sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/src/Generated/Extensions/ArmResourceExtensionClient.cs @@ -35,7 +35,7 @@ private string GetApiVersionOrNull(ResourceType resourceType) /// Returns a object. public virtual AvailabilityStatusResource GetAvailabilityStatus() { - return new AvailabilityStatusResource(Client, new ResourceIdentifier(Id.ToString() + "/providers/Microsoft.ResourceHealth/availabilityStatuses/current")); + return new AvailabilityStatusResource(Client, Id.AppendProviderResource("Microsoft.ResourceHealth", "availabilityStatuses", "current")); } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmDeploymentScriptResource.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmDeploymentScriptResource.cs index a42d9b7a9a0ad..bcf70787ac008 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmDeploymentScriptResource.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ArmDeploymentScriptResource.cs @@ -97,7 +97,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Returns a object. public virtual ScriptLogResource GetScriptLog() { - return new ScriptLogResource(Client, new ResourceIdentifier(Id.ToString() + "/logs/default")); + return new ScriptLogResource(Client, Id.AppendChildResource("logs", "default")); } /// diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Extensions/ArmResourceExtensionClient.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Extensions/ArmResourceExtensionClient.cs index 106a1c85a7398..9c6f44cb01bff 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Extensions/ArmResourceExtensionClient.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Extensions/ArmResourceExtensionClient.cs @@ -42,7 +42,7 @@ public virtual ComplianceResultCollection GetComplianceResults() /// Returns a object. public virtual AdvancedThreatProtectionSettingResource GetAdvancedThreatProtectionSetting() { - return new AdvancedThreatProtectionSettingResource(Client, new ResourceIdentifier(Id.ToString() + "/providers/Microsoft.Security/advancedThreatProtectionSettings/current")); + return new AdvancedThreatProtectionSettingResource(Client, Id.AppendProviderResource("Microsoft.Security", "advancedThreatProtectionSettings", "current")); } /// Gets a collection of DeviceSecurityGroupResources in the ArmResource. diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/IotSecuritySolutionResource.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/IotSecuritySolutionResource.cs index 0b453942fbb24..6a65ac8503eb5 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/IotSecuritySolutionResource.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/IotSecuritySolutionResource.cs @@ -93,7 +93,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Returns a object. public virtual IotSecuritySolutionAnalyticsModelResource GetIotSecuritySolutionAnalyticsModel() { - return new IotSecuritySolutionAnalyticsModelResource(Client, new ResourceIdentifier(Id.ToString() + "/analyticsModels/default")); + return new IotSecuritySolutionAnalyticsModelResource(Client, Id.AppendChildResource("analyticsModels", "default")); } /// diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusNamespaceResource.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusNamespaceResource.cs index 4d01f4b30372b..cbaea746c3db7 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusNamespaceResource.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusNamespaceResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Returns a object. public virtual ServiceBusNetworkRuleSetResource GetServiceBusNetworkRuleSet() { - return new ServiceBusNetworkRuleSetResource(Client, new ResourceIdentifier(Id.ToString() + "/networkRuleSets/default")); + return new ServiceBusNetworkRuleSetResource(Client, Id.AppendChildResource("networkRuleSets", "default")); } /// Gets a collection of ServiceBusPrivateEndpointConnectionResources in the ServiceBusNamespace. diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceResource.cs index 2474f6dcaf86b..d069ce83ec9af 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceResource.cs @@ -613,7 +613,7 @@ public virtual Response GetRecoverableManage /// Returns a object. public virtual SqlAgentConfigurationResource GetSqlAgentConfiguration() { - return new SqlAgentConfigurationResource(Client, new ResourceIdentifier(Id.ToString() + "/sqlAgent/current")); + return new SqlAgentConfigurationResource(Client, Id.AppendChildResource("sqlAgent", "current")); } /// Gets a collection of RestorableDroppedManagedDatabaseResources in the ManagedInstance. diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseResource.cs index 4103415637dff..9db0c5abd3545 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabaseResource.cs @@ -131,7 +131,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Returns a object. public virtual DataMaskingPolicyResource GetDataMaskingPolicy() { - return new DataMaskingPolicyResource(Client, new ResourceIdentifier(Id.ToString() + "/dataMaskingPolicies/Default")); + return new DataMaskingPolicyResource(Client, Id.AppendChildResource("dataMaskingPolicies", "Default")); } /// Gets a collection of GeoBackupPolicyResources in the SqlDatabase. @@ -240,7 +240,7 @@ public virtual Response GetSqlDatabaseAdvisor(string /// Returns a object. public virtual SqlDatabaseAutomaticTuningResource GetSqlDatabaseAutomaticTuning() { - return new SqlDatabaseAutomaticTuningResource(Client, new ResourceIdentifier(Id.ToString() + "/automaticTuning/current")); + return new SqlDatabaseAutomaticTuningResource(Client, Id.AppendChildResource("automaticTuning", "current")); } /// Gets a collection of SqlDatabaseSchemaResources in the SqlDatabase. @@ -496,14 +496,14 @@ public virtual Response GetLongTermRetentionPol /// Returns a object. public virtual MaintenanceWindowOptionResource GetMaintenanceWindowOption() { - return new MaintenanceWindowOptionResource(Client, new ResourceIdentifier(Id.ToString() + "/maintenanceWindowOptions/current")); + return new MaintenanceWindowOptionResource(Client, Id.AppendChildResource("maintenanceWindowOptions", "current")); } /// Gets an object representing a MaintenanceWindowsResource along with the instance operations that can be performed on it in the SqlDatabase. /// Returns a object. public virtual MaintenanceWindowsResource GetMaintenanceWindows() { - return new MaintenanceWindowsResource(Client, new ResourceIdentifier(Id.ToString() + "/maintenanceWindows/current")); + return new MaintenanceWindowsResource(Client, Id.AppendChildResource("maintenanceWindows", "current")); } /// Gets a collection of SqlServerDatabaseRestorePointResources in the SqlDatabase. diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerResource.cs index cfe5eb6e8fd4e..7b512421e1b7b 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServerResource.cs @@ -641,7 +641,7 @@ public virtual Response GetSqlPrivateLinkResource(string /// Returns a object. public virtual SqlServerAutomaticTuningResource GetSqlServerAutomaticTuning() { - return new SqlServerAutomaticTuningResource(Client, new ResourceIdentifier(Id.ToString() + "/automaticTuning/current")); + return new SqlServerAutomaticTuningResource(Client, Id.AppendChildResource("automaticTuning", "current")); } /// Gets a collection of SqlServerAzureADAdministratorResources in the SqlServer. diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobContainerResource.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobContainerResource.cs index cd058707bdda3..778e9ba65b3e0 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobContainerResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobContainerResource.cs @@ -91,7 +91,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Returns a object. public virtual ImmutabilityPolicyResource GetImmutabilityPolicy() { - return new ImmutabilityPolicyResource(Client, new ResourceIdentifier(Id.ToString() + "/immutabilityPolicies/default")); + return new ImmutabilityPolicyResource(Client, Id.AppendChildResource("immutabilityPolicies", "default")); } /// diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountResource.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountResource.cs index 9e617b2192b87..e216665ea0ce0 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountResource.cs @@ -97,14 +97,14 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Returns a object. public virtual StorageAccountManagementPolicyResource GetStorageAccountManagementPolicy() { - return new StorageAccountManagementPolicyResource(Client, new ResourceIdentifier(Id.ToString() + "/managementPolicies/default")); + return new StorageAccountManagementPolicyResource(Client, Id.AppendChildResource("managementPolicies", "default")); } /// Gets an object representing a BlobInventoryPolicyResource along with the instance operations that can be performed on it in the StorageAccount. /// Returns a object. public virtual BlobInventoryPolicyResource GetBlobInventoryPolicy() { - return new BlobInventoryPolicyResource(Client, new ResourceIdentifier(Id.ToString() + "/inventoryPolicies/default")); + return new BlobInventoryPolicyResource(Client, Id.AppendChildResource("inventoryPolicies", "default")); } /// Gets a collection of StoragePrivateEndpointConnectionResources in the StorageAccount. @@ -323,28 +323,28 @@ public virtual Response GetEncryptionScope(string encry /// Returns a object. public virtual BlobServiceResource GetBlobService() { - return new BlobServiceResource(Client, new ResourceIdentifier(Id.ToString() + "/blobServices/default")); + return new BlobServiceResource(Client, Id.AppendChildResource("blobServices", "default")); } /// Gets an object representing a FileServiceResource along with the instance operations that can be performed on it in the StorageAccount. /// Returns a object. public virtual FileServiceResource GetFileService() { - return new FileServiceResource(Client, new ResourceIdentifier(Id.ToString() + "/fileServices/default")); + return new FileServiceResource(Client, Id.AppendChildResource("fileServices", "default")); } /// Gets an object representing a QueueServiceResource along with the instance operations that can be performed on it in the StorageAccount. /// Returns a object. public virtual QueueServiceResource GetQueueService() { - return new QueueServiceResource(Client, new ResourceIdentifier(Id.ToString() + "/queueServices/default")); + return new QueueServiceResource(Client, Id.AppendChildResource("queueServices", "default")); } /// Gets an object representing a TableServiceResource along with the instance operations that can be performed on it in the StorageAccount. /// Returns a object. public virtual TableServiceResource GetTableService() { - return new TableServiceResource(Client, new ResourceIdentifier(Id.ToString() + "/tableServices/default")); + return new TableServiceResource(Client, Id.AppendChildResource("tableServices", "default")); } /// diff --git a/sdk/storage/Azure.Storage.Blobs/api/Azure.Storage.Blobs.net6.0.cs b/sdk/storage/Azure.Storage.Blobs/api/Azure.Storage.Blobs.net6.0.cs index 948199db8d38c..283a0f29ae2f8 100644 --- a/sdk/storage/Azure.Storage.Blobs/api/Azure.Storage.Blobs.net6.0.cs +++ b/sdk/storage/Azure.Storage.Blobs/api/Azure.Storage.Blobs.net6.0.cs @@ -486,6 +486,7 @@ public BlobDownloadDetails() { } public System.Uri CopySource { get { throw null; } } public Azure.Storage.Blobs.Models.CopyStatus CopyStatus { get { throw null; } } public string CopyStatusDescription { get { throw null; } } + public System.DateTimeOffset CreatedOn { get { throw null; } } public string EncryptionKeySha256 { get { throw null; } } public string EncryptionScope { get { throw null; } } public Azure.ETag ETag { get { throw null; } } @@ -1015,7 +1016,9 @@ public static partial class BlobsModelFactory [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.Storage.Blobs.Models.BlobCopyInfo BlobCopyInfo(Azure.ETag eTag, System.DateTimeOffset lastModified, string copyId, Azure.Storage.Blobs.Models.CopyStatus copyStatus) { throw null; } public static Azure.Storage.Blobs.Models.BlobCopyInfo BlobCopyInfo(Azure.ETag eTag, System.DateTimeOffset lastModified, string versionId, string copyId, Azure.Storage.Blobs.Models.CopyStatus copyStatus) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.Storage.Blobs.Models.BlobDownloadDetails BlobDownloadDetails(Azure.Storage.Blobs.Models.BlobType blobType, long contentLength, string contentType, byte[] contentHash, System.DateTimeOffset lastModified, System.Collections.Generic.IDictionary metadata, string contentRange, string contentEncoding, string cacheControl, string contentDisposition, string contentLanguage, long blobSequenceNumber, System.DateTimeOffset copyCompletedOn, string copyStatusDescription, string copyId, string copyProgress, System.Uri copySource, Azure.Storage.Blobs.Models.CopyStatus copyStatus, Azure.Storage.Blobs.Models.LeaseDurationType leaseDuration, Azure.Storage.Blobs.Models.LeaseState leaseState, Azure.Storage.Blobs.Models.LeaseStatus leaseStatus, string acceptRanges, int blobCommittedBlockCount, bool isServerEncrypted, string encryptionKeySha256, string encryptionScope, byte[] blobContentHash, long tagCount, string versionId, bool isSealed, System.Collections.Generic.IList objectReplicationSourceProperties, string objectReplicationDestinationPolicy) { throw null; } + public static Azure.Storage.Blobs.Models.BlobDownloadDetails BlobDownloadDetails(Azure.Storage.Blobs.Models.BlobType blobType, long contentLength, string contentType, byte[] contentHash, System.DateTimeOffset lastModified, System.Collections.Generic.IDictionary metadata, string contentRange, string contentEncoding, string cacheControl, string contentDisposition, string contentLanguage, long blobSequenceNumber, System.DateTimeOffset copyCompletedOn, string copyStatusDescription, string copyId, string copyProgress, System.Uri copySource, Azure.Storage.Blobs.Models.CopyStatus copyStatus, Azure.Storage.Blobs.Models.LeaseDurationType leaseDuration, Azure.Storage.Blobs.Models.LeaseState leaseState, Azure.Storage.Blobs.Models.LeaseStatus leaseStatus, string acceptRanges, int blobCommittedBlockCount, bool isServerEncrypted, string encryptionKeySha256, string encryptionScope, byte[] blobContentHash, long tagCount, string versionId, bool isSealed, System.Collections.Generic.IList objectReplicationSourceProperties, string objectReplicationDestinationPolicy, bool hasLegalHold, System.DateTimeOffset createdOn) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.Storage.Blobs.Models.BlobDownloadDetails BlobDownloadDetails(System.DateTimeOffset lastModified, System.Collections.Generic.IDictionary metadata, string contentRange, string contentEncoding, string cacheControl, string contentDisposition, string contentLanguage, long blobSequenceNumber, System.DateTimeOffset copyCompletedOn, string copyStatusDescription, string copyId, string copyProgress, System.Uri copySource, Azure.Storage.Blobs.Models.CopyStatus copyStatus, Azure.Storage.Blobs.Models.LeaseDurationType leaseDuration, Azure.Storage.Blobs.Models.LeaseState leaseState, Azure.Storage.Blobs.Models.LeaseStatus leaseStatus, string acceptRanges, int blobCommittedBlockCount, bool isServerEncrypted, string encryptionKeySha256, string encryptionScope, byte[] blobContentHash, long tagCount, string versionId, bool isSealed, System.Collections.Generic.IList objectReplicationSourceProperties, string objectReplicationDestinationPolicy) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] diff --git a/sdk/storage/Azure.Storage.Files.DataLake/api/Azure.Storage.Files.DataLake.net6.0.cs b/sdk/storage/Azure.Storage.Files.DataLake/api/Azure.Storage.Files.DataLake.net6.0.cs index 5949d2d551549..332b8bcacf2eb 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/api/Azure.Storage.Files.DataLake.net6.0.cs +++ b/sdk/storage/Azure.Storage.Files.DataLake/api/Azure.Storage.Files.DataLake.net6.0.cs @@ -561,7 +561,7 @@ public partial class DataLakeFileAppendOptions public DataLakeFileAppendOptions() { } public byte[] ContentHash { get { throw null; } set { } } public bool? Flush { get { throw null; } set { } } - public Azure.Storage.Files.DataLake.Models.LeaseAction? LeaseAction { get { throw null; } set { } } + public Azure.Storage.Files.DataLake.Models.DataLakeLeaseAction? LeaseAction { get { throw null; } set { } } public System.TimeSpan? LeaseDuration { get { throw null; } set { } } public string LeaseId { get { throw null; } set { } } public System.IProgress ProgressHandler { get { throw null; } set { } } @@ -579,7 +579,7 @@ public DataLakeFileFlushOptions() { } public bool? Close { get { throw null; } set { } } public Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions Conditions { get { throw null; } set { } } public Azure.Storage.Files.DataLake.Models.PathHttpHeaders HttpHeaders { get { throw null; } set { } } - public Azure.Storage.Files.DataLake.Models.LeaseAction? LeaseAction { get { throw null; } set { } } + public Azure.Storage.Files.DataLake.Models.DataLakeLeaseAction? LeaseAction { get { throw null; } set { } } public System.TimeSpan? LeaseDuration { get { throw null; } set { } } public string ProposedLeaseId { get { throw null; } set { } } public bool? RetainUncommittedData { get { throw null; } set { } } @@ -650,6 +650,13 @@ internal DataLakeLease() { } public string LeaseId { get { throw null; } } public int? LeaseTime { get { throw null; } } } + public enum DataLakeLeaseAction + { + Acquire = 0, + AutoRenew = 1, + Release = 2, + AcquireRelease = 3, + } public enum DataLakeLeaseDuration { Infinite = 0, @@ -679,7 +686,9 @@ public DataLakeMetrics() { } public static partial class DataLakeModelFactory { public static Azure.Storage.Files.DataLake.Models.DataLakeQueryError DataLakeQueryError(string name = null, string description = null, bool isFatal = false, long position = (long)0) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.Storage.Files.DataLake.Models.FileDownloadDetails FileDownloadDetails(System.DateTimeOffset lastModified, System.Collections.Generic.IDictionary metadata, string contentRange, Azure.ETag eTag, string contentEncoding, string cacheControl, string contentDisposition, string contentLanguage, System.DateTimeOffset copyCompletionTime, string copyStatusDescription, string copyId, string copyProgress, System.Uri copySource, Azure.Storage.Files.DataLake.Models.CopyStatus copyStatus, Azure.Storage.Files.DataLake.Models.DataLakeLeaseDuration leaseDuration, Azure.Storage.Files.DataLake.Models.DataLakeLeaseState leaseState, Azure.Storage.Files.DataLake.Models.DataLakeLeaseStatus leaseStatus, string acceptRanges, bool isServerEncrypted, string encryptionKeySha256, byte[] contentHash) { throw null; } + public static Azure.Storage.Files.DataLake.Models.FileDownloadDetails FileDownloadDetails(System.DateTimeOffset lastModified, System.Collections.Generic.IDictionary metadata, string contentRange, Azure.ETag eTag, string contentEncoding, string cacheControl, string contentDisposition, string contentLanguage, System.DateTimeOffset copyCompletionTime, string copyStatusDescription, string copyId, string copyProgress, System.Uri copySource, Azure.Storage.Files.DataLake.Models.CopyStatus copyStatus, Azure.Storage.Files.DataLake.Models.DataLakeLeaseDuration leaseDuration, Azure.Storage.Files.DataLake.Models.DataLakeLeaseState leaseState, Azure.Storage.Files.DataLake.Models.DataLakeLeaseStatus leaseStatus, string acceptRanges, bool isServerEncrypted, string encryptionKeySha256, byte[] contentHash, System.DateTimeOffset createdOn) { throw null; } public static Azure.Storage.Files.DataLake.Models.FileDownloadInfo FileDownloadInfo(long contentLength, System.IO.Stream content, byte[] contentHash, Azure.Storage.Files.DataLake.Models.FileDownloadDetails properties) { throw null; } public static Azure.Storage.Files.DataLake.Models.FileSystemInfo FileSystemInfo(Azure.ETag etag, System.DateTimeOffset lastModified) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] @@ -841,6 +850,7 @@ internal FileDownloadDetails() { } public System.Uri CopySource { get { throw null; } } public Azure.Storage.Files.DataLake.Models.CopyStatus CopyStatus { get { throw null; } } public string CopyStatusDescription { get { throw null; } } + public System.DateTimeOffset CreatedOn { get { throw null; } } public string EncryptionKeySha256 { get { throw null; } } public Azure.ETag ETag { get { throw null; } } public bool IsServerEncrypted { get { throw null; } } @@ -910,13 +920,6 @@ public enum FileSystemTraits None = 0, Metadata = 1, } - public enum LeaseAction - { - Acquire = 0, - AutoRenew = 1, - Release = 2, - AcquireRelease = 3, - } public partial class PathAccessControl { internal PathAccessControl() { } diff --git a/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/Extensions/TenantResourceExtensionClient.cs b/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/Extensions/TenantResourceExtensionClient.cs index b1e11e7ec32ce..7bc08b2df6392 100644 --- a/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/Extensions/TenantResourceExtensionClient.cs +++ b/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/Extensions/TenantResourceExtensionClient.cs @@ -54,7 +54,7 @@ public virtual SubscriptionAliasCollection GetSubscriptionAliases() /// Returns a object. public virtual TenantPolicyResource GetTenantPolicy() { - return new TenantPolicyResource(Client, new ResourceIdentifier(Id.ToString() + "/providers/Microsoft.Subscription/policies/default")); + return new TenantPolicyResource(Client, Id.AppendProviderResource("Microsoft.Subscription", "policies", "default")); } /// Gets a collection of BillingAccountPolicyResources in the TenantResource. diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseSqlPoolResource.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseSqlPoolResource.cs index 56ea770027dfd..291db46089409 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseSqlPoolResource.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseSqlPoolResource.cs @@ -110,7 +110,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Returns a object. public virtual SynapseMetadataSyncConfigurationResource GetSynapseMetadataSyncConfiguration() { - return new SynapseMetadataSyncConfigurationResource(Client, new ResourceIdentifier(Id.ToString() + "/metadataSync/config")); + return new SynapseMetadataSyncConfigurationResource(Client, Id.AppendChildResource("metadataSync", "config")); } /// Gets a collection of SynapseGeoBackupPolicyResources in the SynapseSqlPool. @@ -321,14 +321,14 @@ public virtual Response GetSynapseReplicationLin /// Returns a object. public virtual SynapseMaintenanceWindowResource GetSynapseMaintenanceWindow() { - return new SynapseMaintenanceWindowResource(Client, new ResourceIdentifier(Id.ToString() + "/maintenancewindows/current")); + return new SynapseMaintenanceWindowResource(Client, Id.AppendChildResource("maintenancewindows", "current")); } /// Gets an object representing a SynapseMaintenanceWindowOptionResource along with the instance operations that can be performed on it in the SynapseSqlPool. /// Returns a object. public virtual SynapseMaintenanceWindowOptionResource GetSynapseMaintenanceWindowOption() { - return new SynapseMaintenanceWindowOptionResource(Client, new ResourceIdentifier(Id.ToString() + "/maintenanceWindowOptions/current")); + return new SynapseMaintenanceWindowOptionResource(Client, Id.AppendChildResource("maintenanceWindowOptions", "current")); } /// Gets a collection of SynapseTransparentDataEncryptionResources in the SynapseSqlPool. @@ -384,7 +384,7 @@ public virtual Response GetSynapseTran /// Returns a object. public virtual SynapseSqlPoolBlobAuditingPolicyResource GetSynapseSqlPoolBlobAuditingPolicy() { - return new SynapseSqlPoolBlobAuditingPolicyResource(Client, new ResourceIdentifier(Id.ToString() + "/auditingSettings/default")); + return new SynapseSqlPoolBlobAuditingPolicyResource(Client, Id.AppendChildResource("auditingSettings", "default")); } /// Gets a collection of SynapseSqlPoolSchemaResources in the SynapseSqlPool. @@ -591,14 +591,14 @@ public virtual Response GetSynapseSql /// Returns a object. public virtual SynapseExtendedSqlPoolBlobAuditingPolicyResource GetSynapseExtendedSqlPoolBlobAuditingPolicy() { - return new SynapseExtendedSqlPoolBlobAuditingPolicyResource(Client, new ResourceIdentifier(Id.ToString() + "/extendedAuditingSettings/default")); + return new SynapseExtendedSqlPoolBlobAuditingPolicyResource(Client, Id.AppendChildResource("extendedAuditingSettings", "default")); } /// Gets an object representing a SynapseDataMaskingPolicyResource along with the instance operations that can be performed on it in the SynapseSqlPool. /// Returns a object. public virtual SynapseDataMaskingPolicyResource GetSynapseDataMaskingPolicy() { - return new SynapseDataMaskingPolicyResource(Client, new ResourceIdentifier(Id.ToString() + "/dataMaskingPolicies/Default")); + return new SynapseDataMaskingPolicyResource(Client, Id.AppendChildResource("dataMaskingPolicies", "Default")); } /// Gets a collection of SynapseWorkloadGroupResources in the SynapseSqlPool. diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseWorkspaceResource.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseWorkspaceResource.cs index 97858f56f7846..c775e65e4e9c0 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseWorkspaceResource.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseWorkspaceResource.cs @@ -767,21 +767,21 @@ public virtual Response GetSynapse /// Returns a object. public virtual SynapseWorkspaceAdministratorResource GetSynapseWorkspaceAdministratorResource() { - return new SynapseWorkspaceAdministratorResource(Client, new ResourceIdentifier(Id.ToString() + "/administrators/activeDirectory")); + return new SynapseWorkspaceAdministratorResource(Client, Id.AppendChildResource("administrators", "activeDirectory")); } /// Gets an object representing a SynapseWorkspaceSqlAdministratorResource along with the instance operations that can be performed on it in the SynapseWorkspace. /// Returns a object. public virtual SynapseWorkspaceSqlAdministratorResource GetSynapseWorkspaceSqlAdministratorResource() { - return new SynapseWorkspaceSqlAdministratorResource(Client, new ResourceIdentifier(Id.ToString() + "/sqlAdministrators/activeDirectory")); + return new SynapseWorkspaceSqlAdministratorResource(Client, Id.AppendChildResource("sqlAdministrators", "activeDirectory")); } /// Gets an object representing a SynapseManagedIdentitySqlControlSettingResource along with the instance operations that can be performed on it in the SynapseWorkspace. /// Returns a object. public virtual SynapseManagedIdentitySqlControlSettingResource GetSynapseManagedIdentitySqlControlSetting() { - return new SynapseManagedIdentitySqlControlSettingResource(Client, new ResourceIdentifier(Id.ToString() + "/managedIdentitySqlControlSettings/default")); + return new SynapseManagedIdentitySqlControlSettingResource(Client, Id.AppendChildResource("managedIdentitySqlControlSettings", "default")); } /// Gets a collection of SynapseRestorableDroppedSqlPoolResources in the SynapseWorkspace. diff --git a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs index 8078c7d14409e..a3acf1250d057 100644 --- a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs +++ b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs @@ -44,7 +44,7 @@ private string GetApiVersionOrNull(ResourceType resourceType) /// Returns a object. public virtual TrafficManagerUserMetricsResource GetTrafficManagerUserMetrics() { - return new TrafficManagerUserMetricsResource(Client, new ResourceIdentifier(Id.ToString() + "/providers/Microsoft.Network/trafficManagerUserMetricsKeys/default")); + return new TrafficManagerUserMetricsResource(Client, Id.AppendProviderResource("Microsoft.Network", "trafficManagerUserMetricsKeys", "default")); } /// diff --git a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/Extensions/TenantResourceExtensionClient.cs b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/Extensions/TenantResourceExtensionClient.cs index 3225b806bfa2a..8ae33a4d10b34 100644 --- a/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/Extensions/TenantResourceExtensionClient.cs +++ b/sdk/trafficmanager/Azure.ResourceManager.TrafficManager/src/Generated/Extensions/TenantResourceExtensionClient.cs @@ -47,7 +47,7 @@ private string GetApiVersionOrNull(ResourceType resourceType) /// Returns a object. public virtual TrafficManagerGeographicHierarchyResource GetTrafficManagerGeographicHierarchy() { - return new TrafficManagerGeographicHierarchyResource(Client, new ResourceIdentifier(Id.ToString() + "/providers/Microsoft.Network/trafficManagerGeographicHierarchies/default")); + return new TrafficManagerGeographicHierarchyResource(Client, Id.AppendProviderResource("Microsoft.Network", "trafficManagerGeographicHierarchies", "default")); } /// diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceEnvironmentResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceEnvironmentResource.cs index 8dbafb52d85b5..0b76f6c557002 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceEnvironmentResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceEnvironmentResource.cs @@ -160,14 +160,14 @@ public virtual Response GetHostingEnvironmen /// Returns a object. public virtual AseV3NetworkingConfigurationResource GetAseV3NetworkingConfiguration() { - return new AseV3NetworkingConfigurationResource(Client, new ResourceIdentifier(Id.ToString() + "/configurations/networking")); + return new AseV3NetworkingConfigurationResource(Client, Id.AppendChildResource("configurations", "networking")); } /// Gets an object representing a HostingEnvironmentMultiRolePoolResource along with the instance operations that can be performed on it in the AppServiceEnvironment. /// Returns a object. public virtual HostingEnvironmentMultiRolePoolResource GetHostingEnvironmentMultiRolePool() { - return new HostingEnvironmentMultiRolePoolResource(Client, new ResourceIdentifier(Id.ToString() + "/multiRolePools/default")); + return new HostingEnvironmentMultiRolePoolResource(Client, Id.AppendChildResource("multiRolePools", "default")); } /// Gets a collection of HostingEnvironmentWorkerPoolResources in the AppServiceEnvironment. diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanResource.cs index 3fc349552d4e3..a1feea53d0433 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlanResource.cs @@ -147,7 +147,7 @@ public virtual Response Ge /// Returns a object. public virtual HybridConnectionLimitResource GetHybridConnectionLimit() { - return new HybridConnectionLimitResource(Client, new ResourceIdentifier(Id.ToString() + "/hybridConnectionPlanLimits/limit")); + return new HybridConnectionLimitResource(Client, Id.AppendChildResource("hybridConnectionPlanLimits", "limit")); } /// Gets a collection of AppServicePlanVirtualNetworkConnectionResources in the AppServicePlan. diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Extensions/TenantResourceExtensionClient.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Extensions/TenantResourceExtensionClient.cs index eb7d8ca820bcf..4377ef79d9bb3 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Extensions/TenantResourceExtensionClient.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Extensions/TenantResourceExtensionClient.cs @@ -53,7 +53,7 @@ private string GetApiVersionOrNull(ResourceType resourceType) /// Returns a object. public virtual PublishingUserResource GetPublishingUser() { - return new PublishingUserResource(Client, new ResourceIdentifier(Id.ToString() + "/providers/Microsoft.Web/publishingUsers/web")); + return new PublishingUserResource(Client, Id.AppendProviderResource("Microsoft.Web", "publishingUsers", "web")); } /// Gets a collection of AppServiceSourceControlResources in the TenantResource. diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteInstanceResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteInstanceResource.cs index e3a5c907ad87d..fad9077a07a30 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteInstanceResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteInstanceResource.cs @@ -90,7 +90,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Returns a object. public virtual SiteInstanceExtensionResource GetSiteInstanceExtension() { - return new SiteInstanceExtensionResource(Client, new ResourceIdentifier(Id.ToString() + "/extensions/MSDeploy")); + return new SiteInstanceExtensionResource(Client, Id.AppendChildResource("extensions", "MSDeploy")); } /// Gets a collection of SiteInstanceProcessResources in the SiteInstance. diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstanceResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstanceResource.cs index 04ca2019c2211..d37c9cfc51b42 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstanceResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstanceResource.cs @@ -90,7 +90,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Returns a object. public virtual SiteSlotInstanceExtensionResource GetSiteSlotInstanceExtension() { - return new SiteSlotInstanceExtensionResource(Client, new ResourceIdentifier(Id.ToString() + "/extensions/MSDeploy")); + return new SiteSlotInstanceExtensionResource(Client, Id.AppendChildResource("extensions", "MSDeploy")); } /// Gets a collection of SiteSlotInstanceProcessResources in the SiteSlotInstance. diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteResource.cs index c493bee3b5173..b8b5a0636dae3 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteResource.cs @@ -433,7 +433,7 @@ public virtual Response GetSiteRecommendation(string /// Returns a object. public virtual WebSiteResourceHealthMetadataResource GetWebSiteResourceHealthMetadata() { - return new WebSiteResourceHealthMetadataResource(Client, new ResourceIdentifier(Id.ToString() + "/resourceHealthMetadata/default")); + return new WebSiteResourceHealthMetadataResource(Client, Id.AppendChildResource("resourceHealthMetadata", "default")); } /// Gets a collection of WebSiteSlotResources in the WebSite. @@ -546,14 +546,14 @@ public virtual Response GetSiteBackup(string backupId, Cance /// Returns a object. public virtual WebSiteFtpPublishingCredentialsPolicyResource GetWebSiteFtpPublishingCredentialsPolicy() { - return new WebSiteFtpPublishingCredentialsPolicyResource(Client, new ResourceIdentifier(Id.ToString() + "/basicPublishingCredentialsPolicies/ftp")); + return new WebSiteFtpPublishingCredentialsPolicyResource(Client, Id.AppendChildResource("basicPublishingCredentialsPolicies", "ftp")); } /// Gets an object representing a ScmSiteBasicPublishingCredentialsPolicyResource along with the instance operations that can be performed on it in the WebSite. /// Returns a object. public virtual ScmSiteBasicPublishingCredentialsPolicyResource GetScmSiteBasicPublishingCredentialsPolicy() { - return new ScmSiteBasicPublishingCredentialsPolicyResource(Client, new ResourceIdentifier(Id.ToString() + "/basicPublishingCredentialsPolicies/scm")); + return new ScmSiteBasicPublishingCredentialsPolicyResource(Client, Id.AppendChildResource("basicPublishingCredentialsPolicies", "scm")); } /// Gets a collection of SiteConfigAppsettingResources in the WebSite. @@ -666,21 +666,21 @@ public virtual Response GetWebSiteConfigC /// Returns a object. public virtual LogsSiteConfigResource GetLogsSiteConfig() { - return new LogsSiteConfigResource(Client, new ResourceIdentifier(Id.ToString() + "/config/logs")); + return new LogsSiteConfigResource(Client, Id.AppendChildResource("config", "logs")); } /// Gets an object representing a SlotConfigNamesResource along with the instance operations that can be performed on it in the WebSite. /// Returns a object. public virtual SlotConfigNamesResource GetSlotConfigNamesResource() { - return new SlotConfigNamesResource(Client, new ResourceIdentifier(Id.ToString() + "/config/slotConfigNames")); + return new SlotConfigNamesResource(Client, Id.AppendChildResource("config", "slotConfigNames")); } /// Gets an object representing a WebSiteConfigResource along with the instance operations that can be performed on it in the WebSite. /// Returns a object. public virtual WebSiteConfigResource GetWebSiteConfig() { - return new WebSiteConfigResource(Client, new ResourceIdentifier(Id.ToString() + "/config/web")); + return new WebSiteConfigResource(Client, Id.AppendChildResource("config", "web")); } /// Gets a collection of WebSiteContinuousWebJobResources in the WebSite. @@ -846,7 +846,7 @@ public virtual Response GetSiteDomainOwne /// Returns a object. public virtual SiteExtensionResource GetSiteExtension() { - return new SiteExtensionResource(Client, new ResourceIdentifier(Id.ToString() + "/extensions/MSDeploy")); + return new SiteExtensionResource(Client, Id.AppendChildResource("extensions", "MSDeploy")); } /// Gets a collection of SiteFunctionResources in the WebSite. @@ -1118,7 +1118,7 @@ public virtual Response GetSiteProcess(string processId, Ca /// Returns a object. public virtual SiteNetworkConfigResource GetSiteNetworkConfig() { - return new SiteNetworkConfigResource(Client, new ResourceIdentifier(Id.ToString() + "/networkConfig/virtualNetwork")); + return new SiteNetworkConfigResource(Client, Id.AppendChildResource("networkConfig", "virtualNetwork")); } /// Gets a collection of WebSitePremierAddonResources in the WebSite. @@ -1178,7 +1178,7 @@ public virtual Response GetWebSitePremierAddon(stri /// Returns a object. public virtual WebSitePrivateAccessResource GetWebSitePrivateAccess() { - return new WebSitePrivateAccessResource(Client, new ResourceIdentifier(Id.ToString() + "/privateAccess/virtualNetworks")); + return new WebSitePrivateAccessResource(Client, Id.AppendChildResource("privateAccess", "virtualNetworks")); } /// Gets a collection of SitePublicCertificateResources in the WebSite. @@ -1291,7 +1291,7 @@ public virtual Response GetWebSiteExtension(string sit /// Returns a object. public virtual WebSiteSourceControlResource GetWebSiteSourceControl() { - return new WebSiteSourceControlResource(Client, new ResourceIdentifier(Id.ToString() + "/sourcecontrols/web")); + return new WebSiteSourceControlResource(Client, Id.AppendChildResource("sourcecontrols", "web")); } /// Gets a collection of WebSiteSlotTriggeredWebJobResources in the WebSite. diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotResource.cs index fdc0089727a53..1b6c81d80ea52 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSiteSlotResource.cs @@ -366,7 +366,7 @@ public virtual Response GetSiteSlotDiagnostic(string /// Returns a object. public virtual WebSiteSlotResourceHealthMetadataResource GetWebSiteSlotResourceHealthMetadata() { - return new WebSiteSlotResourceHealthMetadataResource(Client, new ResourceIdentifier(Id.ToString() + "/resourceHealthMetadata/default")); + return new WebSiteSlotResourceHealthMetadataResource(Client, Id.AppendChildResource("resourceHealthMetadata", "default")); } /// Gets a collection of SiteSlotBackupResources in the WebSiteSlot. @@ -426,14 +426,14 @@ public virtual Response GetSiteSlotBackup(string backupI /// Returns a object. public virtual WebSiteSlotFtpPublishingCredentialsPolicyResource GetWebSiteSlotFtpPublishingCredentialsPolicy() { - return new WebSiteSlotFtpPublishingCredentialsPolicyResource(Client, new ResourceIdentifier(Id.ToString() + "/basicPublishingCredentialsPolicies/ftp")); + return new WebSiteSlotFtpPublishingCredentialsPolicyResource(Client, Id.AppendChildResource("basicPublishingCredentialsPolicies", "ftp")); } /// Gets an object representing a ScmSiteSlotBasicPublishingCredentialsPolicyResource along with the instance operations that can be performed on it in the WebSiteSlot. /// Returns a object. public virtual ScmSiteSlotBasicPublishingCredentialsPolicyResource GetScmSiteSlotBasicPublishingCredentialsPolicy() { - return new ScmSiteSlotBasicPublishingCredentialsPolicyResource(Client, new ResourceIdentifier(Id.ToString() + "/basicPublishingCredentialsPolicies/scm")); + return new ScmSiteSlotBasicPublishingCredentialsPolicyResource(Client, Id.AppendChildResource("basicPublishingCredentialsPolicies", "scm")); } /// Gets a collection of WebSiteSlotConfigAppSettingResources in the WebSiteSlot. @@ -546,14 +546,14 @@ public virtual Response GetWebSiteSlo /// Returns a object. public virtual LogsSiteSlotConfigResource GetLogsSiteSlotConfig() { - return new LogsSiteSlotConfigResource(Client, new ResourceIdentifier(Id.ToString() + "/config/logs")); + return new LogsSiteSlotConfigResource(Client, Id.AppendChildResource("config", "logs")); } /// Gets an object representing a WebSiteSlotConfigResource along with the instance operations that can be performed on it in the WebSiteSlot. /// Returns a object. public virtual WebSiteSlotConfigResource GetWebSiteSlotConfig() { - return new WebSiteSlotConfigResource(Client, new ResourceIdentifier(Id.ToString() + "/config/web")); + return new WebSiteSlotConfigResource(Client, Id.AppendChildResource("config", "web")); } /// Gets a collection of WebSiteSlotContinuousWebJobResources in the WebSiteSlot. @@ -719,7 +719,7 @@ public virtual Response GetSiteSlotDo /// Returns a object. public virtual SiteSlotExtensionResource GetSiteSlotExtension() { - return new SiteSlotExtensionResource(Client, new ResourceIdentifier(Id.ToString() + "/extensions/MSDeploy")); + return new SiteSlotExtensionResource(Client, Id.AppendChildResource("extensions", "MSDeploy")); } /// Gets a collection of SiteSlotFunctionResources in the WebSiteSlot. @@ -991,7 +991,7 @@ public virtual Response GetSiteSlotProcess(string proce /// Returns a object. public virtual SiteSlotNetworkConfigResource GetSiteSlotNetworkConfig() { - return new SiteSlotNetworkConfigResource(Client, new ResourceIdentifier(Id.ToString() + "/networkConfig/virtualNetwork")); + return new SiteSlotNetworkConfigResource(Client, Id.AppendChildResource("networkConfig", "virtualNetwork")); } /// Gets a collection of WebSiteSlotPremierAddOnResources in the WebSiteSlot. @@ -1051,7 +1051,7 @@ public virtual Response GetWebSiteSlotPremierAd /// Returns a object. public virtual WebSiteSlotPrivateAccessResource GetWebSiteSlotPrivateAccess() { - return new WebSiteSlotPrivateAccessResource(Client, new ResourceIdentifier(Id.ToString() + "/privateAccess/virtualNetworks")); + return new WebSiteSlotPrivateAccessResource(Client, Id.AppendChildResource("privateAccess", "virtualNetworks")); } /// Gets a collection of WebSiteSlotPublicCertificateResources in the WebSiteSlot. @@ -1164,7 +1164,7 @@ public virtual Response GetWebSiteSlotExtension(st /// Returns a object. public virtual MigrateMySqlStatusResource GetMigrateMySqlStatus() { - return new MigrateMySqlStatusResource(Client, new ResourceIdentifier(Id.ToString() + "/migratemysql/status")); + return new MigrateMySqlStatusResource(Client, Id.AppendChildResource("migratemysql", "status")); } /// Gets a collection of NetworkFeatureResources in the WebSiteSlot. @@ -1224,7 +1224,7 @@ public virtual Response GetNetworkFeature(string view, C /// Returns a object. public virtual WebSiteSlotSourceControlResource GetWebSiteSlotSourceControl() { - return new WebSiteSlotSourceControlResource(Client, new ResourceIdentifier(Id.ToString() + "/sourcecontrols/web")); + return new WebSiteSlotSourceControlResource(Client, Id.AppendChildResource("sourcecontrols", "web")); } /// Gets a collection of WebSiteTriggeredwebJobResources in the WebSiteSlot. diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/PhpWorkloadResource.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/PhpWorkloadResource.cs index 21ea8d7490d7e..268e6958b9745 100644 --- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/PhpWorkloadResource.cs +++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/PhpWorkloadResource.cs @@ -93,7 +93,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Returns a object. public virtual WordPressInstanceResource GetWordPressInstanceResource() { - return new WordPressInstanceResource(Client, new ResourceIdentifier(Id.ToString() + "/wordpressInstances/default")); + return new WordPressInstanceResource(Client, Id.AppendChildResource("wordpressInstances", "default")); } /// From a35b015c86e95d487c7bb25b8e668953c8e8f0a7 Mon Sep 17 00:00:00 2001 From: Yao Kou Date: Wed, 22 Feb 2023 16:18:02 +0800 Subject: [PATCH 72/72] [CognitiveServices] Revert flatten KeyVaultProperties in the Encryption model (#34459) * revert flatten in cognitive services * update changelog * resolve comment --- ...zure.ResourceManager.CognitiveServices.sln | 12 +++ .../CHANGELOG.md | 2 + ...anager.CognitiveServices.netstandard2.0.cs | 17 ++++ ...mple_CognitiveServicesAccountCollection.cs | 9 +- .../ServiceAccountEncryptionProperties.cs | 91 +++++++++++++++++++ ...ervicesKeyVaultProperties.Serialization.cs | 84 +++++++++++++++++ .../CognitiveServicesKeyVaultProperties.cs | 42 +++++++++ ...countEncryptionProperties.Serialization.cs | 76 +++------------- .../ServiceAccountEncryptionProperties.cs | 24 +---- .../src/autorest.md | 2 +- 10 files changed, 271 insertions(+), 88 deletions(-) create mode 100644 sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Customized/Models/ServiceAccountEncryptionProperties.cs create mode 100644 sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesKeyVaultProperties.Serialization.cs create mode 100644 sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesKeyVaultProperties.cs diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/Azure.ResourceManager.CognitiveServices.sln b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/Azure.ResourceManager.CognitiveServices.sln index 0ff68dca0936a..e539fe95eca80 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/Azure.ResourceManager.CognitiveServices.sln +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/Azure.ResourceManager.CognitiveServices.sln @@ -57,6 +57,18 @@ Global {7F2D11EE-8853-45D8-AB2D-5518C4C87543}.Release|x64.Build.0 = Release|Any CPU {7F2D11EE-8853-45D8-AB2D-5518C4C87543}.Release|x86.ActiveCfg = Release|Any CPU {7F2D11EE-8853-45D8-AB2D-5518C4C87543}.Release|x86.Build.0 = Release|Any CPU + {6C76231F-3D6D-4E1D-BC60-9832AD145E3E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {6C76231F-3D6D-4E1D-BC60-9832AD145E3E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {6C76231F-3D6D-4E1D-BC60-9832AD145E3E}.Debug|x64.ActiveCfg = Debug|Any CPU + {6C76231F-3D6D-4E1D-BC60-9832AD145E3E}.Debug|x64.Build.0 = Debug|Any CPU + {6C76231F-3D6D-4E1D-BC60-9832AD145E3E}.Debug|x86.ActiveCfg = Debug|Any CPU + {6C76231F-3D6D-4E1D-BC60-9832AD145E3E}.Debug|x86.Build.0 = Debug|Any CPU + {6C76231F-3D6D-4E1D-BC60-9832AD145E3E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {6C76231F-3D6D-4E1D-BC60-9832AD145E3E}.Release|Any CPU.Build.0 = Release|Any CPU + {6C76231F-3D6D-4E1D-BC60-9832AD145E3E}.Release|x64.ActiveCfg = Release|Any CPU + {6C76231F-3D6D-4E1D-BC60-9832AD145E3E}.Release|x64.Build.0 = Release|Any CPU + {6C76231F-3D6D-4E1D-BC60-9832AD145E3E}.Release|x86.ActiveCfg = Release|Any CPU + {6C76231F-3D6D-4E1D-BC60-9832AD145E3E}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/CHANGELOG.md b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/CHANGELOG.md index 2844272daa4dd..74cd8fef151b7 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/CHANGELOG.md +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/CHANGELOG.md @@ -8,6 +8,8 @@ ### Bugs Fixed +- Reverted the flattening of `KeyVaultProperties` in `ServiceAccountEncryptionProperties` as service side does not support passing empty object for this property. + ### Other Changes ## 1.2.1 (2023-02-20) diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/api/Azure.ResourceManager.CognitiveServices.netstandard2.0.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/api/Azure.ResourceManager.CognitiveServices.netstandard2.0.cs index d657b0291467d..13d82b3f7883f 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/api/Azure.ResourceManager.CognitiveServices.netstandard2.0.cs +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/api/Azure.ResourceManager.CognitiveServices.netstandard2.0.cs @@ -475,6 +475,14 @@ public partial class CognitiveServicesIPRule public CognitiveServicesIPRule(string value) { } public string Value { get { throw null; } set { } } } + public partial class CognitiveServicesKeyVaultProperties + { + public CognitiveServicesKeyVaultProperties() { } + public System.Guid? IdentityClientId { get { throw null; } set { } } + public string KeyName { get { throw null; } set { } } + public System.Uri KeyVaultUri { get { throw null; } set { } } + public string KeyVersion { get { throw null; } set { } } + } public partial class CognitiveServicesMultiRegionSettings { public CognitiveServicesMultiRegionSettings() { } @@ -846,10 +854,19 @@ internal ServiceAccountCallRateLimit() { } public partial class ServiceAccountEncryptionProperties { public ServiceAccountEncryptionProperties() { } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + [System.ObsoleteAttribute("This property is obsolete and will be removed in a future release", false)] public System.Guid? IdentityClientId { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + [System.ObsoleteAttribute("This property is obsolete and will be removed in a future release", false)] public string KeyName { get { throw null; } set { } } public Azure.ResourceManager.CognitiveServices.Models.ServiceAccountEncryptionKeySource? KeySource { get { throw null; } set { } } + public Azure.ResourceManager.CognitiveServices.Models.CognitiveServicesKeyVaultProperties KeyVaultProperties { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + [System.ObsoleteAttribute("This property is obsolete and will be removed in a future release", false)] public System.Uri KeyVaultUri { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + [System.ObsoleteAttribute("This property is obsolete and will be removed in a future release", false)] public string KeyVersion { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/samples/Generated/Samples/Sample_CognitiveServicesAccountCollection.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/samples/Generated/Samples/Sample_CognitiveServicesAccountCollection.cs index c0413e4105495..954abe8e4d2c5 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/samples/Generated/Samples/Sample_CognitiveServicesAccountCollection.cs +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/samples/Generated/Samples/Sample_CognitiveServicesAccountCollection.cs @@ -54,10 +54,13 @@ public async Task CreateOrUpdate_CreateAccount() { Encryption = new ServiceAccountEncryptionProperties() { + KeyVaultProperties = new CognitiveServicesKeyVaultProperties() + { + KeyName = "KeyName", + KeyVersion = "891CF236-D241-4738-9462-D506AF493DFA", + KeyVaultUri = new Uri("https://pltfrmscrts-use-pc-dev.vault.azure.net/"), + }, KeySource = ServiceAccountEncryptionKeySource.MicrosoftKeyVault, - KeyName = "KeyName", - KeyVersion = "891CF236-D241-4738-9462-D506AF493DFA", - KeyVaultUri = new Uri("https://pltfrmscrts-use-pc-dev.vault.azure.net/"), }, UserOwnedStorage = { diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Customized/Models/ServiceAccountEncryptionProperties.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Customized/Models/ServiceAccountEncryptionProperties.cs new file mode 100644 index 0000000000000..a6f1e4bad6925 --- /dev/null +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Customized/Models/ServiceAccountEncryptionProperties.cs @@ -0,0 +1,91 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.CognitiveServices.Models +{ + /// Properties to configure Encryption. + public partial class ServiceAccountEncryptionProperties + { + /// Name of the Key from KeyVault. + [Obsolete("This property is obsolete and will be removed in a future release", false)] + [EditorBrowsable(EditorBrowsableState.Never)] + public string KeyName + { + get + { + if (KeyVaultProperties != null) + return KeyVaultProperties.KeyName; + else + return default; + } + set + { + if (KeyVaultProperties == null) + KeyVaultProperties = new CognitiveServicesKeyVaultProperties(); + KeyVaultProperties.KeyName = value; + } + } + /// Version of the Key from KeyVault. + [Obsolete("This property is obsolete and will be removed in a future release", false)] + [EditorBrowsable(EditorBrowsableState.Never)] + public string KeyVersion + { + get + { + if (KeyVaultProperties != null) + return KeyVaultProperties.KeyVersion; + else + return default; + } + set + { + if (KeyVaultProperties == null) + KeyVaultProperties = new CognitiveServicesKeyVaultProperties(); + KeyVaultProperties.KeyVersion = value; + } + } + /// Uri of KeyVault. + [Obsolete("This property is obsolete and will be removed in a future release", false)] + [EditorBrowsable(EditorBrowsableState.Never)] + public Uri KeyVaultUri + { + get + { + if (KeyVaultProperties != null) + return KeyVaultProperties.KeyVaultUri; + else + return default; + } + set + { + if (KeyVaultProperties == null) + KeyVaultProperties = new CognitiveServicesKeyVaultProperties(); + KeyVaultProperties.KeyVaultUri = value; + } + } + /// Gets or sets the identity client id. + [Obsolete("This property is obsolete and will be removed in a future release", false)] + [EditorBrowsable(EditorBrowsableState.Never)] + public Guid? IdentityClientId + { + get + { + if (KeyVaultProperties != null) + return KeyVaultProperties.IdentityClientId; + else + return default; + } + set + { + if (KeyVaultProperties == null) + KeyVaultProperties = new CognitiveServicesKeyVaultProperties(); + KeyVaultProperties.IdentityClientId = value; + } + } + } +} diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesKeyVaultProperties.Serialization.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesKeyVaultProperties.Serialization.cs new file mode 100644 index 0000000000000..fefaf72a235fc --- /dev/null +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesKeyVaultProperties.Serialization.cs @@ -0,0 +1,84 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.CognitiveServices.Models +{ + public partial class CognitiveServicesKeyVaultProperties : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(KeyName)) + { + writer.WritePropertyName("keyName"u8); + writer.WriteStringValue(KeyName); + } + if (Optional.IsDefined(KeyVersion)) + { + writer.WritePropertyName("keyVersion"u8); + writer.WriteStringValue(KeyVersion); + } + if (Optional.IsDefined(KeyVaultUri)) + { + writer.WritePropertyName("keyVaultUri"u8); + writer.WriteStringValue(KeyVaultUri.AbsoluteUri); + } + if (Optional.IsDefined(IdentityClientId)) + { + writer.WritePropertyName("identityClientId"u8); + writer.WriteStringValue(IdentityClientId.Value); + } + writer.WriteEndObject(); + } + + internal static CognitiveServicesKeyVaultProperties DeserializeCognitiveServicesKeyVaultProperties(JsonElement element) + { + Optional keyName = default; + Optional keyVersion = default; + Optional keyVaultUri = default; + Optional identityClientId = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("keyName"u8)) + { + keyName = property.Value.GetString(); + continue; + } + if (property.NameEquals("keyVersion"u8)) + { + keyVersion = property.Value.GetString(); + continue; + } + if (property.NameEquals("keyVaultUri"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + keyVaultUri = null; + continue; + } + keyVaultUri = new Uri(property.Value.GetString()); + continue; + } + if (property.NameEquals("identityClientId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + identityClientId = property.Value.GetGuid(); + continue; + } + } + return new CognitiveServicesKeyVaultProperties(keyName.Value, keyVersion.Value, keyVaultUri.Value, Optional.ToNullable(identityClientId)); + } + } +} diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesKeyVaultProperties.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesKeyVaultProperties.cs new file mode 100644 index 0000000000000..58352ba26754d --- /dev/null +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesKeyVaultProperties.cs @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.CognitiveServices.Models +{ + /// Properties to configure keyVault Properties. + public partial class CognitiveServicesKeyVaultProperties + { + /// Initializes a new instance of CognitiveServicesKeyVaultProperties. + public CognitiveServicesKeyVaultProperties() + { + } + + /// Initializes a new instance of CognitiveServicesKeyVaultProperties. + /// Name of the Key from KeyVault. + /// Version of the Key from KeyVault. + /// Uri of KeyVault. + /// + internal CognitiveServicesKeyVaultProperties(string keyName, string keyVersion, Uri keyVaultUri, Guid? identityClientId) + { + KeyName = keyName; + KeyVersion = keyVersion; + KeyVaultUri = keyVaultUri; + IdentityClientId = identityClientId; + } + + /// Name of the Key from KeyVault. + public string KeyName { get; set; } + /// Version of the Key from KeyVault. + public string KeyVersion { get; set; } + /// Uri of KeyVault. + public Uri KeyVaultUri { get; set; } + /// Gets or sets the identity client id. + public Guid? IdentityClientId { get; set; } + } +} diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/ServiceAccountEncryptionProperties.Serialization.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/ServiceAccountEncryptionProperties.Serialization.cs index 12827d5c89e36..848b01bd67513 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/ServiceAccountEncryptionProperties.Serialization.cs +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/ServiceAccountEncryptionProperties.Serialization.cs @@ -5,7 +5,6 @@ #nullable disable -using System; using System.Text.Json; using Azure.Core; @@ -16,100 +15,47 @@ public partial class ServiceAccountEncryptionProperties : IUtf8JsonSerializable void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); + if (Optional.IsDefined(KeyVaultProperties)) + { + writer.WritePropertyName("keyVaultProperties"u8); + writer.WriteObjectValue(KeyVaultProperties); + } if (Optional.IsDefined(KeySource)) { writer.WritePropertyName("keySource"u8); writer.WriteStringValue(KeySource.Value.ToString()); } - writer.WritePropertyName("keyVaultProperties"u8); - writer.WriteStartObject(); - if (Optional.IsDefined(KeyName)) - { - writer.WritePropertyName("keyName"u8); - writer.WriteStringValue(KeyName); - } - if (Optional.IsDefined(KeyVersion)) - { - writer.WritePropertyName("keyVersion"u8); - writer.WriteStringValue(KeyVersion); - } - if (Optional.IsDefined(KeyVaultUri)) - { - writer.WritePropertyName("keyVaultUri"u8); - writer.WriteStringValue(KeyVaultUri.AbsoluteUri); - } - if (Optional.IsDefined(IdentityClientId)) - { - writer.WritePropertyName("identityClientId"u8); - writer.WriteStringValue(IdentityClientId.Value); - } - writer.WriteEndObject(); writer.WriteEndObject(); } internal static ServiceAccountEncryptionProperties DeserializeServiceAccountEncryptionProperties(JsonElement element) { + Optional keyVaultProperties = default; Optional keySource = default; - Optional keyName = default; - Optional keyVersion = default; - Optional keyVaultUri = default; - Optional identityClientId = default; foreach (var property in element.EnumerateObject()) { - if (property.NameEquals("keySource"u8)) + if (property.NameEquals("keyVaultProperties"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { property.ThrowNonNullablePropertyIsNull(); continue; } - keySource = new ServiceAccountEncryptionKeySource(property.Value.GetString()); + keyVaultProperties = CognitiveServicesKeyVaultProperties.DeserializeCognitiveServicesKeyVaultProperties(property.Value); continue; } - if (property.NameEquals("keyVaultProperties"u8)) + if (property.NameEquals("keySource"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { property.ThrowNonNullablePropertyIsNull(); continue; } - foreach (var property0 in property.Value.EnumerateObject()) - { - if (property0.NameEquals("keyName"u8)) - { - keyName = property0.Value.GetString(); - continue; - } - if (property0.NameEquals("keyVersion"u8)) - { - keyVersion = property0.Value.GetString(); - continue; - } - if (property0.NameEquals("keyVaultUri"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - keyVaultUri = null; - continue; - } - keyVaultUri = new Uri(property0.Value.GetString()); - continue; - } - if (property0.NameEquals("identityClientId"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - property0.ThrowNonNullablePropertyIsNull(); - continue; - } - identityClientId = property0.Value.GetGuid(); - continue; - } - } + keySource = new ServiceAccountEncryptionKeySource(property.Value.GetString()); continue; } } - return new ServiceAccountEncryptionProperties(Optional.ToNullable(keySource), keyName.Value, keyVersion.Value, keyVaultUri.Value, Optional.ToNullable(identityClientId)); + return new ServiceAccountEncryptionProperties(keyVaultProperties.Value, Optional.ToNullable(keySource)); } } } diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/ServiceAccountEncryptionProperties.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/ServiceAccountEncryptionProperties.cs index af98e37a428af..ecf019ca9198d 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/ServiceAccountEncryptionProperties.cs +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/ServiceAccountEncryptionProperties.cs @@ -5,8 +5,6 @@ #nullable disable -using System; - namespace Azure.ResourceManager.CognitiveServices.Models { /// Properties to configure Encryption. @@ -18,29 +16,17 @@ public ServiceAccountEncryptionProperties() } /// Initializes a new instance of ServiceAccountEncryptionProperties. + /// Properties of KeyVault. /// Enumerates the possible value of keySource for Encryption. - /// Name of the Key from KeyVault. - /// Version of the Key from KeyVault. - /// Uri of KeyVault. - /// - internal ServiceAccountEncryptionProperties(ServiceAccountEncryptionKeySource? keySource, string keyName, string keyVersion, Uri keyVaultUri, Guid? identityClientId) + internal ServiceAccountEncryptionProperties(CognitiveServicesKeyVaultProperties keyVaultProperties, ServiceAccountEncryptionKeySource? keySource) { + KeyVaultProperties = keyVaultProperties; KeySource = keySource; - KeyName = keyName; - KeyVersion = keyVersion; - KeyVaultUri = keyVaultUri; - IdentityClientId = identityClientId; } + /// Properties of KeyVault. + public CognitiveServicesKeyVaultProperties KeyVaultProperties { get; set; } /// Enumerates the possible value of keySource for Encryption. public ServiceAccountEncryptionKeySource? KeySource { get; set; } - /// Name of the Key from KeyVault. - public string KeyName { get; set; } - /// Version of the Key from KeyVault. - public string KeyVersion { get; set; } - /// Uri of KeyVault. - public Uri KeyVaultUri { get; set; } - /// Gets or sets the identity client id. - public Guid? IdentityClientId { get; set; } } } diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/autorest.md b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/autorest.md index 884eb6d9d249f..f2045ceb64ca0 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/autorest.md +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/autorest.md @@ -77,6 +77,7 @@ rename-mapping: MultiRegionSettings: CognitiveServicesMultiRegionSettings CommitmentPlanProperties.commitmentPlanGuid: -|uuid CommitmentPlanAssociation.commitmentPlanId: -|arm-id + KeyVaultProperties: CognitiveServicesKeyVaultProperties prepend-rp-prefix: - Account @@ -136,7 +137,6 @@ directive: transform: > $.CheckDomainAvailabilityParameter.properties.type['x-ms-format'] = 'resource-type'; $.CheckSkuAvailabilityParameter.properties.type['x-ms-format'] = 'resource-type'; - $.Encryption.properties.keyVaultProperties['x-ms-client-flatten'] = true; $.PrivateEndpointConnection.properties.properties['x-ms-client-flatten'] = true; delete $.AccountProperties.properties.internalId; # TODO, these configs will be replaced by the new rename-mapping